/* ============================================================
   niloufar.ai — landing page styles
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --brand:      #6D5EF8;
  --brand-2:    #10B981;
  --warm:       #FF9A62;

  --paper:      #FBFAF7;
  --surface:    #FFFFFF;
  --surface-2:  #F4F2EE;
  --ink:        #0E1526;
  --ink-2:      #3D4658;
  --muted:      #6B7488;
  --line:       rgba(14, 21, 38, .10);
  --line-2:     rgba(14, 21, 38, .06);

  --good-bg:    rgba(16, 185, 129, .12);
  --good-fg:    #047857;
  --warn-bg:    rgba(255, 154, 98, .16);
  --warn-fg:    #B4520F;

  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  28px;

  --shadow-sm:  0 1px 2px rgba(14,21,38,.05), 0 4px 12px rgba(14,21,38,.05);
  --shadow:     0 2px 6px rgba(14,21,38,.05), 0 18px 40px -12px rgba(14,21,38,.16);
  --shadow-lg:  0 30px 70px -24px rgba(14,21,38,.30);

  --wrap:       1160px;
  --ease:       cubic-bezier(.22,.8,.3,1);

  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
}

[data-theme="dark"] {
  --paper:      #080B14;
  --surface:    #101728;
  --surface-2:  #161F33;
  --ink:        #F2F5FA;
  --ink-2:      #C3CBDA;
  --muted:      #8994A9;
  --line:       rgba(255, 255, 255, .12);
  --line-2:     rgba(255, 255, 255, .07);

  --good-bg:    rgba(16, 185, 129, .16);
  --good-fg:    #4ADEA8;
  --warn-bg:    rgba(255, 154, 98, .16);
  --warn-fg:    #FFB287;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 2px 8px rgba(0,0,0,.4), 0 22px 48px -16px rgba(0,0,0,.6);
  --shadow-lg:  0 34px 80px -28px rgba(0,0,0,.8);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s var(--ease), color .3s var(--ease);
}

h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.022em; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1rem; color: var(--ink-2); }

a { color: inherit; text-decoration: none; }
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88em; background: var(--surface-2); border: 1px solid var(--line-2);
  padding: .12em .42em; border-radius: 6px; color: var(--ink);
}

svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark svg, .card-icon svg { stroke: none; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.dim { opacity: .55; }
.ital { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
        background: linear-gradient(105deg, var(--brand), var(--brand-2));
        -webkit-background-clip: text; background-clip: text; color: transparent; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

/* ---------- ambient background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .32; }
.blob-a { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: var(--brand); }
.blob-b { width: 38vw; height: 38vw; right: -10vw; top: 6vw; background: var(--brand-2); opacity: .22; }
.blob-c { width: 40vw; height: 40vw; left: 32vw; top: 62vw; background: var(--warm); opacity: .16; }
[data-theme="dark"] .blob { opacity: .22; }
[data-theme="dark"] .blob-b { opacity: .16; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .72rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease), opacity .18s var(--ease);
}
.btn:hover { transform: translateY(-1.5px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #8B7CFF 45%, var(--brand-2) 130%);
  box-shadow: 0 1px 2px rgba(14,21,38,.2), 0 10px 26px -10px rgba(109,94,248,.7);
}
.btn-primary:hover { box-shadow: 0 2px 4px rgba(14,21,38,.2), 0 16px 34px -10px rgba(109,94,248,.8); }

.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink-2); }
.full { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  cursor: pointer; transition: border-color .18s var(--ease), background .18s var(--ease);
}
.icon-btn:hover { border-color: var(--ink-2); }
.i-moon { display: none; }
[data-theme="dark"] .i-sun { display: none; }
[data-theme="dark"] .i-moon { display: block; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  padding: .85rem 0;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-2);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: -.02em; }
.brand-mark { display: inline-grid; place-items: center; }
.brand-name { font-size: 1.05rem; }

.nav-links { display: flex; gap: 1.5rem; margin-inline: auto; font-size: .93rem; font-weight: 500; color: var(--ink-2); }
.nav-links a { position: relative; padding: .2rem 0; transition: color .18s var(--ease); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: right .25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .55rem; }
.menu-btn { display: none; }

.mobile-menu {
  display: none; flex-direction: column; gap: .25rem;
  margin: .85rem auto 0; width: min(100% - 2.5rem, var(--wrap));
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: .75rem .9rem; border-radius: var(--radius-sm); font-weight: 500; }
.mobile-menu a:hover { background: var(--surface-2); }
.mobile-menu .btn { margin-top: .35rem; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .hide-sm { display: none; }
  .mobile-menu.open { display: flex; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.pill {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: .4rem .85rem .4rem .6rem; border-radius: 999px; box-shadow: var(--shadow-sm);
  margin-bottom: 1.4rem;
}
.pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2);
  box-shadow: 0 0 0 3px var(--good-bg);
}

.lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); max-width: 34em; margin-bottom: 1.9rem; }
.lede strong { color: var(--ink); font-weight: 600; }

.capture { display: flex; flex-wrap: wrap; gap: .6rem; position: relative; max-width: 480px; }
.capture input {
  flex: 1 1 240px; min-width: 0;
  font: inherit; font-size: .96rem; color: var(--ink);
  padding: .78rem 1.05rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.capture input::placeholder { color: var(--muted); }
.capture input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(109,94,248,.16); }
.capture input.invalid { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.14); }
.capture.big { margin-inline: auto; max-width: 520px; }
.capture.big input, .capture.big .btn { padding-block: .9rem; }

.form-msg {
  flex-basis: 100%; margin: .15rem 0 0; padding-left: 1.1rem;
  font-size: .87rem; min-height: 1.3em; color: var(--muted);
}
.form-msg.ok { color: var(--good-fg); font-weight: 500; }
.form-msg.err { color: #E5484D; }

.trust-row {
  display: flex; flex-wrap: wrap; gap: 1.1rem;
  list-style: none; padding: 0; margin: 1.6rem 0 0;
  font-size: .87rem; color: var(--muted);
}
.trust-row li { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row svg { color: var(--brand-2); stroke-width: 2.6; }

/* ---------- hero panel ---------- */
.hero-panel { perspective: 1400px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.15rem;
  transform: rotate(.7deg);
  transition: transform .5s var(--ease);
}
.panel:hover { transform: rotate(0deg) translateY(-4px); }

.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem .35rem 1rem; }
.panel-title { display: flex; align-items: center; gap: .7rem; }
.panel-title strong { display: block; font-size: .95rem; }
.panel-title .muted { font-size: .8rem; }
.avatar {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 700; font-size: .95rem;
}
.live {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--good-fg); background: var(--good-bg); padding: .28rem .6rem; border-radius: 999px;
}
.ping { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(1.5); } }

.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.task {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .8rem;
  padding: .8rem .9rem; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line-2);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), border-color .2s var(--ease);
}
.task.in { opacity: 1; transform: none; }
.task:hover { border-color: var(--line); }
.task-icon { font-size: 1.15rem; line-height: 1; }
.task-body strong { display: block; font-size: .91rem; font-weight: 600; }
.task-body .muted { font-size: .79rem; line-height: 1.45; display: block; }
.task[data-state="done"] .task-body strong { text-decoration: line-through; text-decoration-color: var(--muted); text-decoration-thickness: 1px; }

.chip {
  font-size: .75rem; font-weight: 600; white-space: nowrap;
  padding: .3rem .6rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.chip-good { background: var(--good-bg); color: var(--good-fg); border-color: transparent; }
.chip-warn { background: var(--warn-bg); color: var(--warn-fg); border-color: transparent; }

.panel-foot {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
  margin-top: 1rem; padding: .95rem .35rem .3rem; border-top: 1px solid var(--line-2);
}
.panel-foot .muted { font-size: .78rem; display: block; }
.big { font-family: var(--font-serif); font-size: 2rem; font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.sparkline { width: 120px; height: 40px; color: var(--brand-2); flex: none; }
.sparkline svg { width: 100%; height: 100%; }
.sparkline polyline { stroke-width: 2.4; vector-effect: non-scaling-stroke; }

/* ---------- marquee ---------- */
.marquee {
  margin-top: clamp(3rem, 6vw, 5rem);
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: .9rem 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 1.1rem; width: max-content;
  animation: slide 46s linear infinite;
  font-size: .9rem; color: var(--muted); white-space: nowrap;
}
.marquee-track i { color: var(--brand); font-style: normal; opacity: .55; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section.alt { background: color-mix(in srgb, var(--surface) 62%, transparent); border-block: 1px solid var(--line-2); }

.section-head { max-width: 720px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .sub { font-size: 1.05rem; }
.sub { color: var(--ink-2); font-size: 1.02rem; }

.eyebrow {
  display: inline-block; margin-bottom: .9rem;
  font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.problem h2 { max-width: 16ch; margin-inline: auto; }
.problem .sub { font-size: 1.1rem; }
.problem .sub strong { color: var(--ink); }

/* ---------- stats ---------- */
.stats { padding: clamp(2rem, 4vw, 3rem) 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat {
  padding: 1.5rem 1.35rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.stat strong {
  display: block; font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -.02em; line-height: 1.05;
  margin-bottom: .45rem;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .87rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 880px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stat-grid { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  position: relative; overflow: hidden;
  padding: 1.7rem 1.55rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line); }
.card:hover::before { transform: scaleX(1); }
.card p { font-size: .94rem; margin-bottom: 1rem; }

.card-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2);
  font-size: 1.25rem; margin-bottom: 1rem;
}

.mini { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mini li {
  font-size: .76rem; font-weight: 500; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--line-2);
  padding: .26rem .58rem; border-radius: 999px;
}

/* ---------- steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
  counter-reset: s;
}
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative; padding: 1.7rem 1.4rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-weight: 700; font-size: .95rem; margin-bottom: 1rem;
}
.step h3 { margin-bottom: .45rem; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 780px; margin-inline: auto; padding-left: 2.2rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: .4rem; bottom: .4rem; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
  opacity: .35; border-radius: 2px;
}
.tl-item { position: relative; padding-bottom: 1.1rem; }
.tl-dot {
  position: absolute; left: -2.2rem; top: .55rem; width: 16px; height: 16px; border-radius: 50%;
  background: var(--paper); border: 3px solid var(--brand); box-sizing: border-box;
}
.tl-item.is-win .tl-dot { border-color: var(--brand-2); background: var(--brand-2); box-shadow: 0 0 0 5px var(--good-bg); }
.tl-day { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }
.tl-card {
  padding: 1.05rem 1.25rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.tl-card strong { display: block; margin-bottom: .2rem; font-size: .98rem; }
.tl-card p { font-size: .91rem; margin: 0; }
.tl-card .chip { display: inline-block; margin-top: .7rem; }
.tl-item.is-win .tl-card { border-color: color-mix(in srgb, var(--brand-2) 40%, transparent); }

/* ---------- trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 980px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .trust-grid { grid-template-columns: 1fr; } }
.tcard {
  padding: 1.6rem 1.45rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.tcard:hover { border-color: var(--line); transform: translateY(-3px); }
.tcard p { font-size: .92rem; margin: 0; }
.tcard h3 { margin-bottom: .4rem; }

/* ---------- pricing ---------- */
.toggle {
  display: inline-flex; gap: .25rem; margin-top: 1.4rem; padding: .3rem;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px;
}
.toggle button {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted);
  background: transparent; border: 0; cursor: pointer;
  padding: .5rem 1.05rem; border-radius: 999px;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.save {
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  background: var(--good-bg); color: var(--good-fg); padding: .16rem .45rem; border-radius: 999px;
}

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; align-items: start; }
@media (max-width: 920px) { .price-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }

.price {
  position: relative; padding: 1.9rem 1.6rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.price.featured {
  border-color: transparent; box-shadow: var(--shadow);
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(140deg, var(--brand), var(--brand-2)) border-box;
  border: 1.5px solid transparent;
}
@media (min-width: 921px) { .price.featured { transform: scale(1.035); } }

.badge {
  position: absolute; top: -.75rem; left: 50%; transform: translateX(-50%);
  font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: #fff; background: linear-gradient(120deg, var(--brand), var(--brand-2));
  padding: .3rem .75rem; border-radius: 999px; white-space: nowrap;
}
.price h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.price-sub { font-size: .89rem; color: var(--muted); margin-bottom: 1.1rem; }
.amount { display: flex; align-items: baseline; gap: .3rem; margin-bottom: 1.25rem; }
.amount .num {
  font-family: var(--font-serif); font-weight: 400; font-size: 3rem;
  letter-spacing: -.03em; line-height: 1; color: var(--ink);
}
.amount .per { font-size: .9rem; color: var(--muted); }

.feature-list { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.feature-list li {
  position: relative; padding-left: 1.6rem; font-size: .9rem; color: var(--ink-2); line-height: 1.5;
}
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 13px; height: 8px; border-left: 2px solid var(--brand-2); border-bottom: 2px solid var(--brand-2);
  transform: rotate(-45deg);
}
.feature-list strong { color: var(--ink); }

.fineprint { margin-top: 1.8rem; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 760px) { .quote-grid { grid-template-columns: 1fr; } }
.quote {
  margin: 0; padding: 1.75rem 1.6rem; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm);
}
.quote blockquote {
  margin: 0 0 1.1rem; font-family: var(--font-serif); font-size: 1.3rem;
  line-height: 1.38; letter-spacing: -.015em; color: var(--ink);
}
.quote blockquote::before { content: "“"; color: var(--brand); margin-right: .04em; }
.quote blockquote::after { content: "”"; color: var(--brand); }
.quote figcaption { display: flex; flex-direction: column; font-size: .85rem; }
.who { font-weight: 600; }

/* ---------- faq ---------- */
.faq { display: grid; gap: .6rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: .1rem 1.25rem; box-shadow: var(--shadow-sm);
  transition: border-color .2s var(--ease);
}
.faq details[open] { border-color: color-mix(in srgb, var(--brand) 35%, transparent); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.05rem 2rem 1.05rem 0;
  font-weight: 600; font-size: 1rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .1rem; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq p { margin: 0 0 1.1rem; font-size: .94rem; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden;
  padding: clamp(4rem, 9vw, 7rem) 0;
  border-top: 1px solid var(--line-2);
  background:
    radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 70%),
    color-mix(in srgb, var(--surface) 60%, transparent);
}
.cta h2 { max-width: 15ch; margin-inline: auto; }
.cta .sub { margin-bottom: 2rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand .muted { font-size: .9rem; margin: .7rem 0 0; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.footer-col h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; font-weight: 700; }
.footer-col a { color: var(--ink-2); transition: color .18s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); font-size: .82rem;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .task { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .tcard:hover, .panel:hover { transform: none; }
}
