/* Samros website and account screens, on the shared tokens (design/tokens.css). */

.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
a { color: inherit; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.link:hover { text-decoration-color: var(--ink); }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); }
.nav .wrap { display: flex; align-items: center; gap: var(--s5); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--text-lg);
  letter-spacing: var(--tight); text-decoration: none; color: var(--mark-long); }
.brand svg { flex: none; }
.nav-links { display: flex; gap: var(--s5); margin-left: auto; align-items: center; font-size: var(--text-sm); }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.theme button { height: 24px; font-size: var(--text-xs); padding: 0 10px; }

/* ---------- the signature: emerald bands (always the night palette, both themes) ---------- */
.skip { position: absolute; left: 16px; top: 12px; z-index: 50; padding: 10px 14px; border-radius: var(--radius-sm);
  background: var(--ink); color: var(--bg); text-decoration: none; transform: translateY(-160%);
  transition: transform 0.2s var(--ease); }
.skip:focus-visible { transform: none; }
.band { position: relative; overflow: hidden; isolation: isolate; background: #0e3b2e; color: #f0f3ef; }
.band-pattern { position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: url('/design/pattern-emerald.svg') center / cover no-repeat; }
.band :focus-visible { outline-color: #9ef3cf; }
.band-title { font-size: clamp(40px, 6.4vw, 96px); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98;
  margin: 0; max-width: 20ch; }
.band-title em { font-style: normal; color: #9ef3cf; display: block; }
.band-title.small { font-size: clamp(32px, 4vw, 56px); max-width: 24ch; }
.band-title .w { display: inline-block; opacity: 0; transform: translateY(0.18em);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.band-title .w.lit { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .band-title .w { opacity: 1; transform: none; transition: none; } }
.band-lede { margin: 28px 0 0; font-size: var(--text-lg); line-height: 1.55; color: #c9d4ce; max-width: 34em; }
.band-note { margin: 18px 0 0; font-size: var(--text-sm); color: #9fb0a7; max-width: 40em; }
.band .cta { margin-top: 32px; }
.btn.lumen { background: #9ef3cf; color: #07110e; border-color: #9ef3cf; font-weight: 600; }
.btn.lumen:hover:not(:disabled) { background: #b8f7dc; border-color: #b8f7dc; }
.btn.ghost-light { color: #f0f3ef; border-color: rgba(240, 243, 239, 0.35); background: transparent; }
.btn.ghost-light:hover:not(:disabled) { background: rgba(240, 243, 239, 0.08); border-color: rgba(240, 243, 239, 0.6); }

.hero-band { padding: 72px 0 96px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: 'copy stage' 'talk stage';
  grid-template-rows: auto 1fr; column-gap: 56px; row-gap: 36px; margin-top: 36px; }
.hero-copy { grid-area: copy; }
.hero-copy .band-lede { margin-top: 0; }
.hero-band .transcript { grid-area: talk; align-self: start; }

/* the 3D stage: raw footage is cut into clips (web/site/src/hero3d.js). Decorative; the transcript tells the story. */
.hero-stage { grid-area: stage; position: sticky; top: 72px; align-self: start; height: 640px; margin: -40px -32px 0 0; }
.hero-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.9s var(--ease); }
.hero-stage.ready canvas { opacity: 1; }
.stage-fallback { position: absolute; inset: 0; display: grid; place-items: center; perspective: 1200px;
  transition: opacity 0.6s var(--ease); }
.hero-stage.ready .stage-fallback { opacity: 0; pointer-events: none; }
.hero-stage:not(.ready):not(.no-gl) .fb-card { opacity: 0.35; }
.fb-card { grid-area: 1 / 1; width: min(200px, 32%); aspect-ratio: 9 / 16; border-radius: 18px; padding: 14px;
  display: flex; flex-direction: column; justify-content: space-between; color: #f7faf8;
  background: radial-gradient(120% 60% at 80% 18%, rgba(240, 243, 239, 0.22), transparent 60%), linear-gradient(160deg, #134233, #0a1d17);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(158, 243, 207, 0.14); }
.fb-card span { font-size: 11px; font-weight: 600; background: rgba(7, 17, 14, 0.55); padding: 4px 10px; border-radius: 999px; width: fit-content; }
.fb-card p { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.2; text-align: center; text-wrap: balance; }
.fb-card em { font-style: normal; color: #9ef3cf; }
.fb-card:nth-child(1) { transform: translateX(-62%) rotateY(28deg) rotateZ(-3deg) scale(0.9); }
.fb-card:nth-child(2) { transform: translateZ(60px); z-index: 1; box-shadow: 0 30px 70px -18px rgba(0, 0, 0, 0.7), 0 0 0 1.5px #9ef3cf, 0 0 40px -6px rgba(158, 243, 207, 0.45); }
.fb-card:nth-child(3) { transform: translateX(62%) rotateY(-28deg) rotateZ(3deg) scale(0.9); }

/* the producer call, shown as a transcript with timecodes */
.transcript { margin: 0; background: rgba(7, 17, 14, 0.62); border: 1px solid rgba(158, 243, 207, 0.14);
  border-radius: 20px; padding: 20px 22px 8px; backdrop-filter: blur(6px); }
.transcript figcaption { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: #9fb0a7; padding-bottom: 14px;
  border-bottom: 1px solid rgba(240, 243, 239, 0.1); }
.transcript figcaption::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9ef3cf;
  box-shadow: 0 0 0 4px rgba(158, 243, 207, 0.18); }
.transcript ol { list-style: none; margin: 0; padding: 0; }
.transcript li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; padding: 14px 0;
  border-bottom: 1px solid rgba(240, 243, 239, 0.08); font-size: var(--text-sm); line-height: 1.5; }
.transcript li:last-child { border-bottom: 0; }
.transcript time { grid-row: span 2; font: 400 12px / 1.7 var(--font-mono); color: #6f8a7e; font-variant-numeric: tabular-nums; }
.transcript b { font-weight: 600; color: #f0f3ef; font-size: var(--text-xs); }
.transcript span { color: #dfe6e1; }
.transcript li.ai b { color: #9ef3cf; }
.transcript.play li { opacity: 0.22; transform: translateY(6px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.transcript.play li.on { opacity: 1; transform: none; }

.final-band { padding: 88px 0; }
.final-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s6); align-items: end; }
.final-band .cta { justify-content: flex-end; margin: 0; }
.promise { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: #c9d4ce; }
.promise li::before { content: ''; display: inline-block; width: 14px; height: 6px; border-radius: 3px; background: #9ef3cf;
  margin-right: 12px; vertical-align: middle; }

/* ---------- sections ---------- */
section.block { padding: 88px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--s6); margin-bottom: 40px; align-items: end; }
.section-head .title { font-size: clamp(28px, 3.4vw, 40px); text-wrap: balance; }
.section-head .title .second { display: block; color: var(--ink-2); }
.section-head p { color: var(--ink-2); margin: 0; max-width: 36em; }
.cta { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: center; }
.cta .btn { height: 48px; padding: 0 var(--s5); font-size: var(--text-base); }
.fine { margin-top: var(--s4); color: var(--ink-2); font-size: var(--text-sm); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* status: what works today, honestly */
.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--pill);
  font-size: var(--text-xs); font-weight: 500; white-space: nowrap; width: fit-content; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.live { background: var(--accent-soft); color: var(--accent-line); }
.status.soon { background: var(--surface-2); color: var(--ink-2); }
.status.planned { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-strong); }

/* the team, as credits: role, job, status */
.credits { margin: 0; border-top: 1px solid var(--line); }
.credits > div { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2.4fr) 120px; gap: var(--s5);
  align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.credits dt { font-weight: 600; font-size: var(--text-lg); letter-spacing: -0.01em; }
.credits dd { margin: 0; color: var(--ink-2); max-width: 46em; }
.credits dd.state { justify-self: end; }

/* how the team works: a timeline track, five clips in order */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  counter-reset: clip; }
.track li { counter-increment: clip; position: relative; padding: 48px 18px 0 0; display: grid; gap: 6px; align-content: start; }
.track li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 26px; border-radius: 8px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.track li:nth-child(3)::before { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.track li::after { content: counter(clip); position: absolute; left: 12px; top: 5px; font: 500 12px / 16px var(--font-mono);
  color: var(--ink-3); font-variant-numeric: tabular-nums; }
.track b { font-weight: 600; }
.track span { color: var(--ink-2); font-size: var(--text-sm); }

/* plain columns with a top rule: tools, audiences, trust */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.columns > div { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.columns h3 { margin: 0; font-size: var(--text-lg); font-weight: 600; letter-spacing: -0.01em; }
.columns p { margin: 0; color: var(--ink-2); max-width: 32em; }
.columns .status { margin-top: 6px; }

.compare-wrap { margin-top: 56px; overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare th, .compare td { text-align: left; padding: 16px 12px; border-bottom: 1px solid var(--line); }
.compare thead th { color: var(--ink-2); font-weight: 500; font-size: var(--text-sm); }
.compare thead th:nth-child(2), .compare td:nth-child(2) { color: var(--ink); font-weight: 600; }
.compare tbody th { font-weight: 500; color: var(--ink-2); }

.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.roadmap > div { border-top: 2px solid var(--line-strong); padding-top: 18px; }
.roadmap > .now { border-top-color: var(--accent-line); }
.roadmap h3 { margin: 0 0 12px; font-size: var(--text-lg); }
.roadmap ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink-2); }

.waitlist { margin-top: 48px; display: grid; grid-template-columns: 1.3fr 1fr auto; gap: var(--s3); align-items: end;
  background: var(--surface); border-radius: 20px; padding: 24px; }
.waitlist .field { display: grid; gap: 6px; min-width: 0; }
.waitlist label { font-size: var(--text-sm); color: var(--ink-2); }
.waitlist .input { width: 100%; height: 48px; }
.waitlist .btn { height: 48px; }
.waitlist .msg { grid-column: 1 / -1; margin: 0; font-size: var(--text-sm); min-height: 20px; color: var(--ink-2); }
.waitlist .msg:empty { display: none; }
.waitlist .msg.ok { color: var(--ok); }
.waitlist .msg.error { color: var(--danger); }
.waitlist .input[aria-invalid='true'] { border-color: var(--danger); }
.plan .per-clip { font-size: var(--text-xs); color: var(--ink-3); margin: -6px 0 0; }
.brand .tld { color: var(--accent-line); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.plan { display: flex; flex-direction: column; gap: var(--s3); background: var(--surface); border-radius: var(--radius-lg);
  padding: var(--s5); box-shadow: inset 0 0 0 1px transparent; }
.plan.featured { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent-line); }
.plan .name { font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.plan .price { font-size: 36px; font-weight: 600; letter-spacing: var(--tight); line-height: 1; }
.plan .price small { font-size: var(--text-sm); color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; font-size: var(--text-sm); }
.plan li { padding: 8px 0; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; }
.plan .blurb { color: var(--ink-2); font-size: var(--text-sm); min-height: 40px; margin: 0; }
.fine { margin-top: var(--s4); color: var(--ink-2); font-size: var(--text-sm); }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: var(--s4) 0; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::after { content: '+'; color: var(--ink-2); }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--ink-2); margin: var(--s3) 0 0; max-width: 720px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s7); font-size: var(--text-sm); color: var(--ink-2); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; }
footer.site nav { display: flex; gap: var(--s4); flex-wrap: wrap; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ink); }

/* ---------- legal pages ---------- */
.legal { padding: var(--s7) 0; }
.legal h1 { margin-bottom: var(--s2); }
.legal h2 { font-size: var(--text-lg); margin: var(--s6) 0 var(--s2); letter-spacing: -0.01em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal li { margin-bottom: 6px; }
.legal .card { margin-top: var(--s5); }
.legal dl { display: grid; grid-template-columns: 180px 1fr; gap: var(--s2) var(--s4); margin: 0; }
.legal dt { color: var(--ink-2); }
.legal dd { margin: 0; }

/* ---------- sign-in ---------- */
.auth { min-height: calc(100vh - 65px); display: grid; place-items: center; padding: var(--s6) 16px; }
.auth .card { width: min(420px, 100%); display: grid; gap: var(--s4); background: var(--surface); }
.auth form { display: grid; gap: var(--s3); }
.auth .input { width: 100%; }
.auth .tabs { width: 100%; }
.auth .msg { font-size: var(--text-sm); min-height: 20px; margin: 0; }
.auth .msg.error { color: var(--danger); }
.auth .msg.ok { color: var(--ok); }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--text-sm); color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--accent-line); }
.divider { display: flex; align-items: center; gap: var(--s3); color: var(--ink-3); font-size: var(--text-xs); }
.divider::before, .divider::after { content: ''; height: 1px; background: var(--line); flex: 1; }

/* ---------- account bits in the app ---------- */
.usage { display: inline-flex; gap: var(--s4); align-items: center; font-size: var(--text-sm); }
.usage .meter { width: 72px; display: inline-block; vertical-align: middle; margin-left: 6px; }
.usage .meter > span { background: var(--ink); }
.usage.low .meter > span { background: var(--warn); }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; display: grid; z-index: 30; }
.menu-list button, .menu-list a { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: var(--radius-sm);
  font: inherit; font-size: var(--text-sm); color: var(--ink); cursor: pointer; text-decoration: none; }
.menu-list button:hover, .menu-list a:hover { background: var(--surface); }
.menu-list .danger { color: var(--danger); }
.menu-list .who { padding: 10px 12px; color: var(--ink-2); font-size: var(--text-xs); border-bottom: 1px solid var(--line); margin-bottom: 4px; }

dialog.sheet { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(1040px, 100% - 32px); max-height: calc(100vh - 48px);
  background: var(--bg); color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25); }
dialog.sheet::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.sheet-body { padding: var(--s6); overflow: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s4); margin-bottom: var(--s5); }
.packs { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); }
.pack { background: var(--surface); border-radius: var(--radius); padding: var(--s4); display: flex; gap: var(--s4); align-items: center; }
.paywall { margin: var(--s4) var(--s5) 0; padding: var(--s4); border-radius: var(--radius); background: var(--surface);
  display: flex; gap: var(--s4); align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 3px solid var(--accent-line); }

@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .final-grid, .section-head { grid-template-columns: 1fr; }
  .hero-grid { grid-template-areas: 'copy' 'stage' 'talk'; grid-template-rows: none; row-gap: 32px; }
  .hero-stage { position: relative; top: auto; height: 460px; margin: -8px -16px; }
  .final-band .cta { justify-content: flex-start; }
  .section-head { gap: var(--s3); }
  .track { grid-template-columns: 1fr; gap: 0; }
  .track li { padding: 0 0 20px 44px; }
  .track li::before { left: 0; right: auto; top: 0; bottom: 12px; width: 26px; height: auto; }
  .track li::after { left: 8px; top: 4px; }
  .credits > div { grid-template-columns: 1fr auto; row-gap: 6px; }
  .credits dd:not(.state) { grid-column: 1 / -1; grid-row: 2; }
  .credits dd.state { grid-row: 1; grid-column: 2; }
  .columns, .roadmap { grid-template-columns: 1fr; gap: var(--s5); }
}
@media (max-width: 960px) {
  .nav-links { gap: var(--s4); }
  .nav-links a[href='#how'], .nav-links a[href='#faq'] { display: none; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .waitlist { grid-template-columns: 1fr; }
  .hero-band { padding: 64px 0 72px; }
  .hero-stage { height: 420px; }
  section.block { padding: 64px 0; }
  .final-band { padding: 64px 0; }
  #nav-start { height: 40px; padding: 0 16px; }
  .nav-links a:not(.btn), .nav-links .theme, #nav-signin { display: none; }
  .nav-links { gap: var(--s2); }
  .nav .wrap { gap: var(--s3); }
  .legal dl { grid-template-columns: 1fr; }
  .sheet-body { padding: var(--s5); }
}

#billing-plans { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  #billing-plans { grid-template-columns: 1fr; }
  .usage .meter, .top-right .theme { display: none; }
  .usage { gap: var(--s3); }
  .top-right { gap: var(--s2); }
}

/* ---------- motion and depth (site.js adds .motion only when reduced motion is off) ---------- */
.nav { transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nav.solid { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(7, 17, 14, 0.35); }
.motion .rise { opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .rise.in { opacity: 1; transform: none; }

.btn { transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease),
  box-shadow 0.3s var(--ease), transform 0.2s var(--ease); }
.btn.lumen { box-shadow: 0 0 0 0 rgba(158, 243, 207, 0); }
.btn.lumen:hover:not(:disabled) { box-shadow: 0 10px 40px -8px rgba(158, 243, 207, 0.55); transform: translateY(-1px); }
.btn.accent:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: translateY(0) scale(0.98); }

/* the team: each row lights up under the pointer, live agents breathe */
.credits > div { position: relative; transition: background-color 0.25s var(--ease); }
.credits > div::before { content: ''; position: absolute; left: -16px; top: 18px; bottom: 18px; width: 3px; border-radius: 2px;
  background: var(--accent-line); transform: scaleY(0); transition: transform 0.3s var(--ease); }
.credits > div:hover::before { transform: scaleY(1); }
.credits > div:hover dt { color: var(--accent-line); }
.status.live::before { animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 4px var(--accent-soft); } }

/* how it works: the five clips light up in order, like a playhead passing */
.track { position: relative; }
.track li:nth-child(3)::before { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.track li::before { transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.motion .track.in li::before, html:not(.motion) .track li::before { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.track.in li:nth-child(2)::before { transition-delay: 0.25s; }
.track.in li:nth-child(3)::before { transition-delay: 0.5s; }
.track.in li:nth-child(4)::before { transition-delay: 0.75s; }
.track.in li:nth-child(5)::before { transition-delay: 1s; }
.motion .track::after { content: ''; position: absolute; top: -6px; height: 38px; width: 2px; left: 0; border-radius: 1px;
  background: var(--accent-line); box-shadow: 0 0 14px var(--accent-line); opacity: 0; }
.motion .track.in::after { animation: playhead 1.6s var(--ease) 0.1s forwards; }
@keyframes playhead { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* columns get a quiet surface on hover */
.columns > div { transition: border-color 0.3s var(--ease); }
.columns > div:hover { border-top-color: var(--accent-line); }

/* comparison: the Samros column sits on an accent tint */
.compare td:nth-child(2), .compare thead th:nth-child(2) { background: var(--accent-soft); }
.compare thead th:nth-child(2) { border-radius: 12px 12px 0 0; }
.compare tbody tr:last-child td:nth-child(2) { border-radius: 0 0 12px 12px; }

/* pricing: real depth. Cards tilt toward the pointer with a soft light under it. */
.plans { perspective: 1400px; }
.plan { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--ease), box-shadow 0.4s var(--ease); transform-style: preserve-3d; }
.plan::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
  transition: opacity 0.4s var(--ease); }
.plan:hover::after { opacity: 1; }
.plan:hover { box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(7, 17, 14, 0.35); }
.plan.featured { box-shadow: inset 0 0 0 1.5px var(--accent-line), 0 24px 60px -28px rgba(19, 112, 76, 0.5); }
.plan.featured:hover { box-shadow: inset 0 0 0 1.5px var(--accent-line), 0 34px 70px -28px rgba(19, 112, 76, 0.6); }
.plan > * { position: relative; z-index: 1; }

/* roadmap: the current column glows a little */
.roadmap > .now { background: linear-gradient(180deg, var(--accent-soft), transparent 70%); border-radius: 0 0 16px 16px; padding: 18px 16px 16px; }

/* FAQ opens smoothly where the browser supports it */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: hidden;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.faq summary { transition: color 0.2s var(--ease); }
.faq summary:hover { color: var(--accent-line); }
.faq summary::after { transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { content: '+'; transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .status.live::before { animation: none; }
  .plan { transform: none; }
}
@media (max-width: 960px) { .credits > div::before { left: -10px; } }
.motion .plans .plan.rise { transition: opacity 0.8s var(--ease), transform 0.5s var(--ease), box-shadow 0.4s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms), 0s, 0s; }
.motion .plans .plan.rise.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }

/* =====================================================================================================
   Premium 2: a serif voice for the lit lines, a floating island nav, machined double-bezel cards,
   numbered eyebrows, button-in-button arrows and a whisper of film grain.
   ===================================================================================================== */
/* the voice: Geist says it, Tiro italic sings the second line */
.band-title em, .title .second { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.012em; }
.band-title em { font-size: 1.07em; line-height: 1.04; padding-bottom: 0.04em; }
.section-head .title { font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.04em; line-height: 1.02; }
.section-head .title .second { font-size: 1.06em; line-height: 1.08; margin-top: 2px; }
.section-head p { font-size: var(--text-lg); line-height: 1.6; }
#faq-title { margin: 0 0 32px; font-size: clamp(32px, 4vw, 54px); letter-spacing: -0.04em; line-height: 1.02; }

/* numbered eyebrow above each section */
.eyebrow, .section-head .eyebrow { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; width: fit-content; margin: 0 0 6px;
  padding: 5px 14px 5px 5px; border-radius: var(--pill); font: 500 12px / 1 var(--font-mono); letter-spacing: 0.02em;
  color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.eyebrow span { display: grid; place-items: center; height: 22px; min-width: 30px; padding: 0 8px; border-radius: var(--pill);
  background: var(--accent); color: var(--accent-ink); font-size: 11px; }

/* floating island nav: a glass pill that hovers over the page */
.nav { background: transparent; border-bottom: 0; backdrop-filter: none; padding: 12px 0; pointer-events: none; }
.nav .wrap { pointer-events: auto; width: min(1180px, 100% - 24px); height: 60px; padding: 0 10px 0 22px; border-radius: var(--pill);
  background: color-mix(in srgb, var(--bg) 74%, transparent); backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 8%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 18px 40px -26px rgba(7, 17, 14, 0.55); transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.nav.solid { box-shadow: none; }
.nav.solid .wrap { background: color-mix(in srgb, var(--bg) 90%, transparent); }
.nav .btn.small { height: 40px; padding: 0 18px; }
main > .hero-band:first-child { margin-top: -84px; padding-top: 148px; }

/* button-in-button: the arrow lives in its own little island */
.btn .btn-icon { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; margin: 0 -16px 0 14px;
  border-radius: 50%; background: rgba(7, 17, 14, 0.1); transition: transform 0.6s var(--ease), background-color 0.3s var(--ease); }
.btn:hover .btn-icon { transform: translate(2px, -1px) scale(1.06); background: rgba(7, 17, 14, 0.16); }
.cta .btn { height: 52px; padding: 0 26px; border-radius: var(--pill); }

/* machined double-bezel: a core sitting in a tray */
.plans { gap: 28px; padding: 8px; }
.plan { --shell: color-mix(in srgb, var(--surface) 70%, var(--bg)); background: var(--bg); border-radius: 22px; padding: 28px 24px;
  box-shadow: 0 0 0 7px var(--shell), 0 0 0 8px var(--line); }
.plan:hover { box-shadow: 0 0 0 7px var(--shell), 0 0 0 8px var(--line-strong), 0 34px 60px -30px rgba(7, 17, 14, 0.4); }
.plan.featured { background: linear-gradient(180deg, var(--accent-soft), transparent 46%), var(--bg);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-line) 12%, var(--bg)), 0 0 0 8px var(--accent-line), 0 28px 60px -28px rgba(19, 112, 76, 0.55); }
.plan.featured:hover { box-shadow: 0 0 0 7px color-mix(in srgb, var(--accent-line) 12%, var(--bg)), 0 0 0 8px var(--accent-line), 0 40px 70px -28px rgba(19, 112, 76, 0.65); }
.plan .price { font-family: var(--font-serif); font-weight: 400; font-size: 46px; letter-spacing: -0.02em; font-variant-numeric: lining-nums; }
.plan .price { white-space: nowrap; }
.plan .price small { display: block; margin-top: 8px; font-family: var(--font); }
.waitlist { background: var(--bg); border-radius: 24px; margin: 64px 9px 9px; padding: 26px;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--surface) 70%, var(--bg)), 0 0 0 9px var(--line); }
.transcript { border-radius: 22px; box-shadow: 0 0 0 6px #123f31, 0 0 0 7px rgba(158, 243, 207, 0.16),
  0 30px 60px -30px rgba(0, 0, 0, 0.6); border-color: rgba(158, 243, 207, 0.1); }
.compare-wrap { padding: 4px; }

/* air: sections breathe */
section.block { padding: 128px 0; }
.section-head { margin-bottom: 56px; }

/* heavier, softer entrances */
.motion .rise { filter: blur(6px); transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.motion .rise.in { filter: none; }

/* a whisper of film grain over everything (fixed, never scrolls, never catches the pointer) */
body::after { content: ''; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme='dark'] body::after { opacity: 0.07; }

@media (max-width: 960px) {
  section.block { padding: 96px 0; }
  .section-head { margin-bottom: 40px; }
}
@media (max-width: 560px) {
  section.block { padding: 72px 0; }
  .nav .wrap { width: calc(100% - 16px); padding: 0 8px 0 16px; height: 56px; }
  main > .hero-band:first-child { padding-top: 120px; }
  .plans { gap: 24px; }
  .cta .btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .motion .rise { filter: none; } }
.section-head { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.band-title.small { max-width: 30ch; }
.final-grid { grid-template-columns: minmax(0, 1.6fr) auto; }
@media (max-width: 960px) { .section-head, .final-grid { grid-template-columns: 1fr; } }
