/* Landing page. Loaded after tokens.css and site.css. */

body {
  background:
    radial-gradient(120% 80% at 50% 0%, #D9D5E8 0%, transparent 70%),
    linear-gradient(180deg, #CFCADF, #E4E2EC 60%);
  background-attachment: fixed;
}
[data-theme="dark"] body {
  background: radial-gradient(120% 80% at 50% 0%, #1B1A2A 0%, #0C0D13 70%);
}
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 24px; }

.sheet {
  max-width: 1320px; margin: 28px auto;
  border-radius: var(--r-lg); overflow: clip;
  background: var(--paper);
  box-shadow: var(--shadow-frame);
}

/* ================= HERO ================= */
.hero { overflow: hidden; }

.arc {
  position: absolute; z-index: -1; left: -150px; top: -150px; width: 470px; height: 470px;
  fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 36;
}
[data-theme="dark"] .arc { stroke: rgba(255, 255, 255, .04); }

.stage {
  position: relative;
  height: clamp(460px, 62vh, 580px);
  --gap: 150px;               /* half the gap the card sits in */
}

/* The one loud element: a violet letterform straddling the seam. */
.bigC {
  position: absolute; left: 50%; top: 50%; z-index: 0;
  translate: -50% -52%;
  font-size: clamp(400px, 46vw, 640px); font-weight: 800; line-height: .8;
  color: var(--violet); letter-spacing: 0;
  pointer-events: none; user-select: none;
  animation: rise 1000ms var(--ease-out) both;
}

.hero-word {
  position: absolute; left: 0; right: 0; top: 50%; z-index: 1;
  translate: 0 -78%;
  display: flex; align-items: center;
  margin: 0; font-size: clamp(46px, 6.3vw, 92px); font-weight: 600;
  letter-spacing: .38em; text-transform: uppercase; line-height: 1;
}
.hw-a {
  width: calc(50% - var(--gap)); text-align: right;
  margin-right: -.38em;      /* letter-spacing trails the last letter */
  color: var(--text);
  animation: from-left 900ms 180ms var(--ease-out) both;
}
.hw-b {
  width: calc(50% - var(--gap)); margin-left: auto; padding-left: .12em;
  color: var(--on-navy);
  animation: from-right 900ms 180ms var(--ease-out) both;
}

/* thin rules that frame the word, like callouts on a spec sheet */
.rule {
  position: absolute; z-index: 1; display: flex; align-items: center; gap: 16px;
  font-size: 12.5px; font-weight: 550; white-space: nowrap;
}
.rule i { flex: 1; height: 1px; background: currentColor; opacity: .4;
  animation: draw 900ms 380ms var(--ease-out) both; }
.rule-a { left: clamp(110px, 10vw, 150px); right: calc(50% + var(--gap) + 10px); color: var(--text); }
.rule-a i { transform-origin: left; }
.rule-b { right: clamp(110px, 10vw, 150px); left: calc(50% + var(--gap) + 10px); color: var(--on-navy); }
.rule-b i { transform-origin: right; }
.rule-top { top: calc(50% - 128px); }
.rule-bot { top: calc(50% + 46px); }
.rule span { animation: fade 700ms 420ms ease both; }

.vtab {
  position: absolute; top: 50%; z-index: 1;
  writing-mode: vertical-rl;
  padding: 16px 9px; border: 1px solid currentColor; border-radius: 2px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none;
  opacity: .8; transition: opacity 160ms ease, background-color 160ms ease;
}
.vtab-a { left: clamp(20px, 3vw, 40px); translate: 0 -60%; rotate: 180deg; color: var(--text); }
.vtab-b { right: clamp(20px, 3vw, 40px); translate: 0 -60%; color: var(--on-navy); }
@media (hover: hover) and (pointer: fine) { .vtab:hover { opacity: 1; } }

/* ---- the product card, sitting in the gap ---- */
.hcard {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  translate: -50% -60%;
  width: 282px; margin: 0; padding: 18px 20px 16px;
  background: var(--navy-2); color: var(--on-navy);
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 34px 60px -24px rgba(12, 12, 30, .65), 0 6px 14px -6px rgba(12, 12, 30, .4);
  animation: rise 800ms 120ms var(--ease-out) both;
}
.hc-top { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 14px; margin-bottom: 16px; }
.hc-ring, .hc-score { grid-area: 1 / 1; }
.hc-ring { width: 74px; height: 74px; }
.hc-track { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 8; }
.hc-fill {
  fill: none; stroke: var(--hc, #B9A5EE); stroke-width: 8; stroke-linecap: round;
  transition: stroke-dasharray 700ms var(--ease-out), stroke 300ms ease;
}
.hc-score { place-self: center; font-size: 22px; font-weight: 700; }
.hc-verdict { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--hc, #B9A5EE); transition: color 300ms ease; }
.hc-sub { font-size: 12px; color: var(--on-navy-muted); margin-top: 3px; }
.hc-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hc-bars li { display: grid; grid-template-columns: 66px 1fr 24px; align-items: center; gap: 10px; font-size: 11.5px; }
.hc-bars span { color: var(--on-navy-muted); }
.hc-bars i { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hc-bars b { display: block; height: 100%; background: var(--on-navy); transform-origin: left;
  transition: transform 600ms var(--ease-out), background-color 300ms ease; }
.hc-bars b.low { background: #F08A91; }
.hc-bars em { font-style: normal; font-weight: 600; text-align: right; }
.hcard[data-tone="flop"] { --hc: #F08A91; }
.hcard[data-tone="mid"] { --hc: #E8C27A; }
/* Swapping examples: a short blur bridges old and new so it reads as one card changing. */
.hc-top > div, .hc-score, .hc-bars em { transition: filter 160ms ease, opacity 160ms ease; }
.hcard.swapping .hc-top > div, .hcard.swapping .hc-score, .hcard.swapping .hc-bars em {
  filter: blur(3px); opacity: .25;
}

.hero-cta {
  position: absolute; left: 50%; bottom: 7%; z-index: 2;
  translate: -50% 0;
  animation: rise 800ms 420ms var(--ease-out) both;
}

/* ---- bottom strip ---- */
.hero-foot { display: grid; grid-template-columns: 1fr 1fr; font-size: 12.5px; }
.hf-a, .hf-b { display: flex; align-items: center; gap: 22px; padding: 0 clamp(20px, 3.4vw, 44px) 26px; }
.hf-a { color: var(--muted); }
.hf-b { justify-content: flex-end; gap: 26px; color: var(--on-navy-muted); }
.lede { max-width: 360px; line-height: 1.55; }

.pager { display: inline-flex; flex: 0 0 auto; color: var(--text); }
.pager button {
  width: 38px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  background: none; color: inherit; border: 1px solid currentColor; cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out);
}
.pager button + button { border-left: 0; }
.pager button:first-child { border-radius: 2px 0 0 2px; }
.pager button:last-child { border-radius: 0 2px 2px 0; }
.pager button:active { transform: scale(.94); }
.pager svg { width: 10px; height: 10px; fill: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .pager button:hover { background: var(--text); color: var(--mist); }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes from-left { from { opacity: 0; transform: translateX(-18px); } }
@keyframes from-right { from { opacity: 0; transform: translateX(18px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes fade { from { opacity: 0; } }

/* ================= SECTIONS ================= */
.block {
  display: grid; grid-template-columns: minmax(220px, 4fr) 8fr; gap: 40px 56px;
  padding: clamp(60px, 8vw, 104px) clamp(20px, 5.5vw, 76px);
  border-top: 1px solid var(--line);
}
.block-head h2 { font-size: clamp(28px, 3.2vw, 38px); font-weight: 650; letter-spacing: -.02em; }
.block-head p { color: var(--muted); margin-top: 12px; max-width: 34ch; font-size: 15px; }

/* how: a real sequence, so it gets numbers */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  counter-increment: s; display: grid; grid-template-columns: 70px 1fr; column-gap: 8px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before {
  content: counter(s); grid-row: span 2;
  font-size: 40px; font-weight: 300; line-height: 1; color: var(--violet-ink);
}
.steps h3 { font-size: 18px; font-weight: 650; }
.steps p { color: var(--muted); margin-top: 8px; max-width: 62ch; }

.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 34px 40px; }
.facts div { border-top: 2px solid var(--text); padding-top: 18px; }
.facts dt { font-size: 16px; font-weight: 650; }
.facts dd { margin: 8px 0 0; color: var(--muted); max-width: 44ch; }

.honest {
  display: grid; grid-template-columns: minmax(220px, 4fr) 8fr; gap: 24px 56px; align-items: baseline;
  background: var(--navy); color: var(--on-navy);
  padding: clamp(56px, 7vw, 88px) clamp(20px, 5.5vw, 76px);
}
.honest-q { font-size: clamp(28px, 3.2vw, 38px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.honest-a { color: var(--on-navy-muted); font-size: 16px; max-width: 58ch; }

/* pricing spans the full width: three prices side by side need the room */
.pricing { grid-template-columns: 1fr; }
.pricing .block-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 28px; }
.pricing .block-head p { margin: 0; max-width: none; }
.tier { margin-top: 18px; }
.tier + .tier { margin-top: 56px; }
.tier-name { font-size: 22px; font-weight: 700; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tier-name span { font-size: 14px; font-weight: 500; color: var(--muted); }

.pwho { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 4px 0 10px; }
.pcard.featured .pwho { color: inherit; opacity: .75; }
.pgrid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card);
}
.pcard { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; }
.pcard + .pcard { border-left: 1px solid var(--line); }
.pcard.featured {
  background: var(--navy); color: var(--on-navy); border-color: transparent;
  margin: -1px 0; border-radius: var(--r-md);
  box-shadow: 0 30px 50px -30px rgba(20, 20, 45, .6);
}
.pcard.featured + .pcard { border-left-color: transparent; }
.ptag {
  position: absolute; top: -11px; left: 28px;
  background: var(--violet); color: #fff; font-size: 11.5px; font-weight: 600;
  padding: 4px 10px; border-radius: 2px;
}
.ptag + .ptag { left: auto; right: 28px; }
.pname { font-size: 14px; font-weight: 650; color: var(--muted); }
.featured .pname { color: var(--on-navy-muted); }
.pprice { font-size: 36px; font-weight: 650; letter-spacing: -.02em; margin: 10px 0 2px; line-height: 1.15; }
.pprice s { font-size: 15px; font-weight: 400; color: var(--muted); margin-right: 4px; }
.pprice i { font-size: 14px; font-weight: 500; font-style: normal; color: var(--muted); margin-left: 2px; }
.featured .pprice s, .featured .pprice i { color: var(--on-navy-muted); }
.pmeta { font-size: 13px; color: var(--muted); }
.featured .pmeta { color: var(--on-navy-muted); }
.pcard p { color: var(--muted); font-size: 14px; margin: 16px 0 20px; }
.featured p { color: var(--on-navy-muted); }
.plist { list-style: none; margin: 16px 0 22px; padding: 0; font-size: 13.5px; }
.plist li { position: relative; padding: 5px 0 5px 18px; }
.plist li::before { content: ''; position: absolute; left: 0; top: 14px; width: 8px; height: 1.5px; background: var(--violet); }
.pcard .full { margin-top: auto; }
.featured .btn-ghost { color: var(--on-navy); border-color: var(--on-navy-line); }

.referral { margin-top: 34px; color: var(--muted); font-size: 14.5px; max-width: 70ch; }
.referral b { color: var(--text); }

/* faq */
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 20px 44px 20px 0; font-size: 16.5px; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before, .faq-list summary::after {
  content: ''; position: absolute; right: 6px; top: 50%; width: 14px; height: 1.5px;
  background: currentColor; transition: transform 220ms var(--ease-out);
}
.faq-list summary::after { transform: rotate(90deg); }
.faq-list details[open] summary::after { transform: rotate(0deg); }
.faq-list details p { color: var(--muted); padding: 0 0 22px; max-width: 66ch; }
@media (hover: hover) and (pointer: fine) { .faq-list summary:hover { color: var(--violet-ink); } }

/* final band: the hero's split, in miniature */
.final { padding: clamp(64px, 8vw, 104px) 0; overflow: hidden; }
.final-word {
  display: flex; font-size: clamp(32px, 4.4vw, 64px); font-weight: 600; line-height: 1;
  letter-spacing: .28em; text-transform: uppercase;
}
.final-word span:first-child { width: 50%; text-align: right; padding-right: .5em; margin-right: -.28em; color: var(--text); }
.final-word span:last-child { width: 50%; padding-left: .5em; color: var(--on-navy); }
.final-body { display: grid; grid-template-columns: 1fr 1fr; margin-top: 44px; align-items: center; }
.final-body h2 { justify-self: end; text-align: right; max-width: 22ch; padding-right: 40px;
  font-size: clamp(18px, 1.8vw, 22px); font-weight: 600; }
.final-body .btn-light { justify-self: start; margin-left: 40px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1080px) {
  .vtab { display: none; }
  .rule-a { left: 36px; }
  .rule-b { right: 36px; }
}

@media (max-width: 820px) {
  .sheet { margin: 0; border-radius: 0; box-shadow: none; }
  .arc, .rule { display: none; }

  /* the seam turns horizontal: grey above, navy below, through the card */
  .stage {
    height: auto; padding: 96px 20px 150px;
    background: linear-gradient(180deg, var(--mist) 0 47%, var(--navy) 47% 100%);
  }
  .bigC { font-size: 540px; translate: -50% -50%; }
  .hero-word { position: static; translate: none; display: block; font-size: 42px; letter-spacing: .3em; }
  .hw-a, .hw-b { position: absolute; left: 0; right: 0; width: auto; margin: 0; padding: 0 0 0 .3em; text-align: center; }
  .hw-a { top: 30px; }
  .hw-b { bottom: 92px; }
  .hcard { position: relative; left: auto; top: auto; translate: none; margin: 0 auto; }
  .hero-cta { bottom: 22px; }

  .hero-foot { grid-template-columns: 1fr; background: var(--navy); }
  .hf-a { flex-direction: column; align-items: flex-start; gap: 16px; color: var(--on-navy-muted); padding-bottom: 18px; }
  .pager { color: var(--on-navy); order: 2; }
  .hf-b { justify-content: flex-start; flex-wrap: wrap; gap: 8px 18px; padding-bottom: 30px; }

  .block, .honest { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; gap: 26px; }
  .pgrid { grid-template-columns: 1fr; }
  .pcard + .pcard { border-left: 0; border-top: 1px solid var(--line); }
  .pcard.featured { margin: 0 -1px; }
  .pcard.featured + .pcard { border-top-color: transparent; }

  .final { background: var(--navy); padding: 64px 20px; }
  .final-word { flex-direction: column; letter-spacing: .2em; font-size: 38px; }
  .final-word span:first-child, .final-word span:last-child { width: auto; text-align: left; padding: 0; margin: 0; color: var(--on-navy); }
  .final-word span:first-child { color: var(--violet-ink); }
  .final-body { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .final-body h2 { justify-self: start; text-align: left; padding: 0; color: var(--on-navy); }
  .final-body .btn-light { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bigC, .hcard, .hw-a, .hw-b, .rule i, .rule span, .hero-cta { animation: fade 300ms ease both; }
}

/* Both tiers have three cards now (the free card is gone), so #pgridSelf
   uses the same three-column .pgrid layout as the Live tier. */
