:root {
    --bg: #F7F7F9;
    --bg-tint: #EEF0F4;
    --ink: #15151F;
    --ink-2: #3D3D55;
    --muted: #7A7A92;
    --line: #E4E6EC;
    --card: #FFFFFF;
    --chip: #EEF0FF;
    --chip-ink: #4A5BFF;
    --accent-a: #5B6CFF;
    --accent-b: #8B5CF6;
    --accent-grad: linear-gradient(120deg, var(--accent-a) 0%, var(--accent-b) 100%);
    --warm: #FFB74D;
    --mint: #2FBE8F;
    --coral: #FF6B5B;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-pill: 999px;
    --shadow-md: 0 2px 6px rgba(20,20,40,.05), 0 12px 32px rgba(20,20,40,.06);
    --shadow-lg: 0 10px 40px rgba(91,108,255,.12), 0 30px 80px rgba(20,20,40,.08);
    --maxw: 1240px;
    --pad: clamp(20px, 4vw, 48px);
  }
  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
  }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  h1,h2,h3,h4 { margin: 0; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); text-wrap: balance; }
  p { margin: 0; }
  .serif { font-family: 'Instrument Serif', serif; font-weight: 400; font-style: italic; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--r-pill);
    background: var(--chip); color: var(--chip-ink);
    font-size: 12px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
  }
  .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 22px; border-radius: var(--r-pill);
    font-weight: 600; font-size: 15px;
    transition: transform .2s, box-shadow .2s, background .2s;
  }
  .btn-primary { background: var(--accent-grad); color: white; box-shadow: 0 8px 24px rgba(91,108,255,.3); }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(91,108,255,.4); }
  .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
  .btn-ghost:hover { background: white; border-color: var(--ink); }
  .btn-dark { background: var(--ink); color: white; }
  .btn-dark:hover { background: #000; }
  .btn-sm { padding: 10px 16px; font-size: 13px; }

  /* nav */
  .logo-new {max-width: 50%;}
  .footer-logo-new {max-width: 30%;filter: brightness(0) invert(1);}
  .nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(20px); background: rgba(247,247,249,.82); border-bottom: 1px solid rgba(228,230,236,.6); }
  .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
  .brand { display: flex; align-items: center; font-family: 'Instrument Serif', serif; font-size: 30px; letter-spacing: -0.02em; }
  .brand .pin { position: relative; display: inline-block; width: 16px; height: 16px; background: var(--warm); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); margin: 0 5px 8px 3px; box-shadow: 0 2px 6px rgba(255,183,77,.35); }
  .brand .pin::after { content:''; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; background: #fff; border-radius: 50%; }
  .brand sup { font-size: 14px; vertical-align: super; margin-left: 2px; font-style: italic; }
  .nav-links { display: flex; gap: 4px; }
  .nav-link { padding: 8px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; color: var(--ink-2); }
  .nav-link:hover, .nav-link.active { background: white; color: var(--ink); }
  .nav-cta { display: flex; gap: 10px; align-items: center; }

  /* progress bar */
  .stepbar { display: flex; gap: 12px; justify-content: center; margin: 40px auto 0; max-width: 640px; padding: 0 var(--pad); }
  .stepbar .s { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .stepbar .s .n { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-tint); color: var(--muted); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
  .stepbar .s.active .n { background: var(--accent-grad); color: white; box-shadow: 0 4px 12px rgba(91,108,255,.3); }
  .stepbar .s.active { color: var(--ink); }
  .stepbar .s.done .n { background: var(--mint); color: white; }
  .stepbar .s::after { content:''; height: 2px; background: var(--bg-tint); flex: 1; border-radius: 2px; }
  .stepbar .s:last-child::after { display: none; }
  .stepbar .s.done::after { background: var(--mint); }

  /* hero */
  .hero { padding: 56px 0 40px; text-align: center; }
  .hero h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.03; margin-top: 20px; letter-spacing: -0.035em; }
  .hero h1 .serif { color: var(--ink-2); }
  .hero p { margin: 22px auto 0; color: var(--ink-2); font-size: 18px; max-width: 560px; }

  /* toggle */
  .toggle-wrap { margin: 40px auto 0; display: flex; justify-content: center; }
  .toggle-shell { display: inline-flex; background: white; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px; position: relative; box-shadow: 0 2px 6px rgba(20,20,40,.04); }
  .toggle-shell button { padding: 10px 22px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--ink-2); transition: color .2s; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; }
  .toggle-shell button.on { color: var(--ink); }
  .toggle-shell .slider { position: absolute; top: 6px; bottom: 6px; border-radius: var(--r-pill); background: var(--bg-tint); transition: left .3s cubic-bezier(.4,0,.2,1), width .3s cubic-bezier(.4,0,.2,1); z-index: 0; }

  .upgrade-note { text-align: center; font-size: 14px; color: var(--muted); margin-top: 16px; }
  .upgrade-note a { color: var(--accent-a); font-weight: 600; }

  /* pricing */
  .pricing { padding: 48px 0 24px; }
  .plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; }
  @media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

  .plan {
    background: var(--card);
    border-radius: var(--r-xl);
    border: 1px solid var(--line);
    padding: 36px 32px;
    position: relative;
    display: flex; flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
  }
  .plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .plan.featured {
    border: 2px solid transparent;
    background:
      linear-gradient(white, white) padding-box,
      var(--accent-grad) border-box;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px) scale(1.02);
  }
  .plan.featured:hover { transform: translateY(-12px) scale(1.02); }
  .plan .tag {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--accent-grad); color: white;
    padding: 6px 16px; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(91,108,255,.3);
    white-space: nowrap;
  }
  .plan .tag.best { background: var(--warm); color: var(--ink); box-shadow: 0 8px 20px rgba(255,183,77,.4); }

  .plan .ico {
    width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center;
    margin-bottom: 20px;
  }
  .plan.p-m .ico { background: linear-gradient(135deg,#FFF4E0,#FFE2B3); color: #D97706; }
  .plan.p-q .ico { background: linear-gradient(135deg,#D4F5E9,#A7EFCE); color: #065F46; }
  .plan.p-y .ico { background: linear-gradient(135deg,#E4E0FF,#C7BCFF); color: #4A5BFF; }

  .plan h3 { font-size: 24px; line-height: 1; }
  .plan .sublabel { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }

  .plan .price { margin: 24px 0 0px; display: flex; align-items: baseline; gap: 4px; }
  .plan .price .dollar { font-family: 'Instrument Serif', serif; font-size: 32px; color: var(--ink-2); line-height: 1; }
  .plan .price .num { font-family: 'Instrument Serif', serif; font-size: 68px; line-height: .9; letter-spacing: -0.04em; color: var(--ink); font-weight: 400; }
  .plan .price .cents { font-family: 'Instrument Serif', serif; font-size: 32px; color: var(--ink-2); }
  .plan .price .per { font-size: 14px; color: var(--muted); margin-left: 4px; }
  .price-det {
    font-family: 'Instrument Serif', serif;
    font-size: 68px;
    line-height: .9;
    letter-spacing: -0.04em;
    color: var(--ink);
    font-weight: 400;
}
.price-val-line {
  display: block;
    margin-top: 6px;
    font-size: clamp(14px, 2.6vw, 16px);
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.88;
    margin-bottom: 12px;
}
  .plan .save {
    display: inline-block; margin-bottom: 6px;
    padding: 4px 12px; border-radius: var(--r-pill);
    font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase;width: fit-content;
  }
  .plan .save.green { background: rgba(47,190,143,.14); color: #0F7A52; }
  .plan .save.purple { background: rgba(139,92,246,.14); color: #6d28d9; }
  .plan .save.gray { background: rgba(122,122,146,.12); color: var(--muted);margin-top: 15px; }

  .plan .billed { font-size: 13px; color: var(--muted); margin-bottom: 4px; }

  .plan ul { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-direction: column; gap: 10px; }
  .plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
  .plan li .check { width: 18px; height: 18px; border-radius: 50%; background: var(--mint); color: white; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
  .plan li.bold { color: var(--ink); font-weight: 600; }

  .plan .cta { margin-top: auto; width: 100%; }
  .plan .cta.ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
  .plan .cta.ghost:hover { border-color: var(--ink); }

  /* secondary toggle: new/existing */
  .usertog { display: flex; justify-content: center; margin-top: 28px; }
  .usertog .seg { display: inline-flex; background: white; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
  .usertog .seg button { padding: 10px 20px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; transition: all .2s; }
  .usertog .seg button.on { background: var(--bg-tint); color: var(--ink); font-weight: 600; }

  /* trust strip */
  .trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 960px; margin: 56px auto 0; padding: 0 var(--pad); }
  @media (max-width: 820px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
  .trust-strip .it { display: flex; gap: 12px; align-items: center; }
  .trust-strip .it .ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(47,190,143,.12); color: var(--mint); display: grid; place-items: center; flex-shrink: 0; }
  .trust-strip .it .t { font-size: 14px; font-weight: 600; }
  .trust-strip .it .s { font-size: 12px; color: var(--muted); }

  /* comparison */
  .compare { padding: 80px 0 40px; }
  .compare-card { background: white; border-radius: var(--r-xl); border: 1px solid var(--line); overflow: hidden; }
  .compare-head { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); padding: 20px 28px; background: var(--bg-tint); font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .04em; text-transform: uppercase; }
  .compare-head > div:first-child { text-align: left; }
  .compare-head > div { text-align: center; }
  .compare-row { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); padding: 16px 28px; border-top: 1px solid var(--line); align-items: center; }
  .compare-row .lbl { font-size: 14px; color: var(--ink); }
  .compare-row .val { text-align: center; font-size: 14px; color: var(--ink-2); }
  .compare-row .val.check { color: var(--mint); font-size: 18px; }
  .compare-row .val.dash { color: var(--muted); }
  @media (max-width: 720px) { .compare { display: none; } }

  /* testimonials */
  .testi { padding: 80px 0; background: var(--bg-tint); }
  .testi-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
  .testi-head h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; margin-top: 16px; }
  .testi-head h2 .serif { color: var(--ink-2); }
  .quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1080px; margin: 0 auto; padding: 0 var(--pad); }
  @media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }
  .quote { background: white; border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); }
  .quote .stars { color: var(--warm); letter-spacing: 2px; font-size: 16px; }
  .quote .body { font-family: 'Instrument Serif', serif; font-size: 17px; line-height: 1.45; color: var(--ink); }
  .quote .who { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
  .quote .who .n { font-weight: 600; font-size: 14px; }
  .quote .who .t { font-size: 12px; color: var(--muted); margin-top: 2px; }

  /* press */
  .press { padding: 40px var(--pad) 60px; text-align: center; }
  .press-label { font-size: 12px; color: var(--muted); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
  .press-logos { display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; font-family: 'Instrument Serif', serif; font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); }
  .press-logos span { font-style: italic; opacity: .7; }

  /* faq */
  .faq { padding: 80px 0; }
  .faq-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
  .faq-head h2 { font-size: clamp(32px, 4.5vw, 52px); line-height: 1.05; margin-top: 16px; }
  .faq-head p { color: var(--ink-2); margin-top: 16px; font-size: 17px; }
  .faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
  .faq-item { background: white; border-radius: var(--r-md); border: 1px solid var(--line); overflow: hidden; transition: border-color .2s; }
  .faq-item.open { border-color: var(--accent-a); }
  .faq-q { padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; font-weight: 600; font-size: 16px; }
  .faq-q .caret { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-tint); display: grid; place-items: center; transition: transform .25s, background .25s; flex-shrink: 0; }
  .faq-item.open .caret { transform: rotate(45deg); background: var(--accent-grad); color: white; }
  .faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; padding: 0 24px; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
  .faq-item.open .faq-a { max-height: 400px; padding: 0 24px 22px; }

  /* final cta */
  .finalcta { margin: 0 var(--pad) 40px; border-radius: var(--r-xl);
    padding: clamp(48px, 7vw, 84px) clamp(24px, 4vw, 48px);
    background: radial-gradient(circle at 20% 30%, rgba(91,108,255,.25), transparent 50%), radial-gradient(circle at 80% 70%, rgba(139,92,246,.2), transparent 50%), linear-gradient(160deg, #0f1127 0%, #1a1a2e 100%);
    color: white; text-align: center; overflow: hidden; position: relative;
  }
  .finalcta::before { content:''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
  .finalcta .eyebrow { background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); }
  .finalcta h2 { color: white; font-size: clamp(32px, 5vw, 56px); line-height: 1.04; margin-top: 18px; }
  .finalcta h2 .serif { color: rgba(255,255,255,.6); }
  .finalcta p { color: rgba(255,255,255,.75); font-size: 17px; margin: 18px auto 0; max-width: 520px; }
  .finalcta .ctas { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
  .finalcta .btn-ghost { color: white; border-color: rgba(255,255,255,.2); }
  .finalcta .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: white; }

  /* footer */
  footer { padding: 80px 0 32px; background: #0b0b15; color: rgba(255,255,255,.72); }
  .ft-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
  @media (max-width: 820px) { .ft-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
  .ft-brand .brand { color: white; margin-bottom: 16px; }
  .ft-brand .brand .pin::after { background: #0b0b15; }
  .ft-brand p { font-size: 14px; line-height: 1.6; max-width: 320px; }
  .ft-col h4 { color: white; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
  .ft-col a, .ft-col .line { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,.6); }
  .ft-col a:hover { color: white; }
  .ft-bot { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 12px; color: rgba(255,255,255,.4); }

  /* sticky activation bar */
  .stickybar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    background: rgba(11,11,21,.96); backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,.08);
    transform: translateY(100%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
    color: white;
  }
  .stickybar.show { transform: translateY(0); }
  .sb-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; gap: 20px; }
  .sb-inner .meta { flex: 1; display: flex; gap: 20px; align-items: center; font-size: 14px; }
  .sb-inner .meta .plan-n { font-weight: 600; }
  .sb-inner .meta .plan-p { color: rgba(255,255,255,.65); }
  .sb-inner .meta .save-n { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(47,190,143,.2); color: #6EE7B7; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

  @media (max-width: 620px) { .sb-inner .meta { flex-direction: column; align-items: flex-start; gap: 4px; } }

  .reveal { transition: opacity .7s ease, transform .7s ease; }
  .js-reveal .reveal:not(.in) { opacity: 0; transform: translateY(20px); }
  .reveal.in { opacity: 1; transform: none; }
