/* ============================================================================
   Landing page. Deliberately quiet: few sections, few controls, lots of air.
   The previous version put ~66 interactive elements and 17 type sizes on one
   page; this one is built to be scanned, not studied.
   ========================================================================== */

:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ── section rhythm ──────────────────────────────────────────────────────── */
.band {
  position: relative;
  z-index: 1;
  padding-block: clamp(72px, 10vw, 132px);
}
.band + .band {
  border-top: 1px solid var(--hairline-soft);
}

/* One consistent section header everywhere. */
.lede-block {
  max-width: 40rem;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.lede-block.center {
  margin-inline: auto;
  text-align: center;
}
.lede-block h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.lede-block p {
  margin-top: 16px;
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ── hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  padding-top: clamp(104px, 13vw, 152px);
  padding-bottom: clamp(56px, 8vw, 96px);
  text-align: center;
}
.hero .welcome {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(16, 185, 129, 0.26);
  background: rgba(16, 185, 129, 0.07);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--emerald);
}
.hero .welcome svg {
  width: 14px;
  height: 14px;
}
.hero h1 {
  margin: 26px auto 0;
  max-width: 16ch;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero .sub {
  margin: 24px auto 0;
  max-width: 40rem;
  font-size: clamp(1rem, 1.9vw, 1.1875rem);
  line-height: 1.65;
  color: var(--ink-muted);
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}
.hero .under {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

/* ── "what it does" — three plain steps, no numbered-act theatre ─────────── */
.steps {
  display: grid;
  gap: 18px;
}
@media (min-width: 880px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.step {
  padding: 26px;
}
.step .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.24);
  background: rgba(16, 185, 129, 0.09);
  color: var(--emerald);
}
.step .ico svg {
  width: 19px;
  height: 19px;
}
.step h3 {
  margin-top: 20px;
  font-size: 1.1875rem;
  letter-spacing: -0.032em;
}
.step p {
  margin-top: 11px;
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ── plans ───────────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  gap: 18px;
  align-items: stretch;
}
@media (min-width: 1000px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.plan.featured {
  border-color: rgba(16, 185, 129, 0.32);
}
.plan.featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--brand-gradient);
}
.plan .tag {
  display: inline-block;
  align-self: flex-start;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  background: var(--brand-gradient);
  color: var(--base-950);
  margin-bottom: 16px;
}
.plan h3 {
  font-size: 1.375rem;
  letter-spacing: -0.035em;
}
/* The one-line answer to "what does this plan actually do?" */
.plan .does {
  margin-top: 10px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
}
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}
.plan .price .amt {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.plan .price .per {
  font-size: 0.875rem;
  color: var(--ink-faint);
}
.plan ul {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  margin-bottom: 28px;
}
.plan li {
  display: flex;
  gap: 11px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.plan li svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 4px;
  color: var(--emerald);
}
.plan .foot {
  margin-top: auto;
}

/* ── join (waitlist) ─────────────────────────────────────────────────────── */
.join {
  display: grid;
  gap: 24px;
  align-items: start;
}
@media (min-width: 1000px) {
  .join {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
.join-copy h2 {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}
.join-copy > p {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-muted);
}
.join-copy ul {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}
.join-copy li {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-muted);
}
.join-copy li svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 3px;
  color: var(--emerald);
}
.join-copy li b {
  color: var(--ink);
  font-weight: 500;
}

/* ── deep-site links ─────────────────────────────────────────────────────── */
.more-links {
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) {
  .more-links {
    grid-template-columns: repeat(3, 1fr);
  }
}
.more-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.22s var(--ease-out), background-color 0.22s var(--ease-out),
    transform 0.18s var(--ease-out);
}
.more-link svg.arrow {
  width: 14px;
  height: 14px;
  margin-left: auto;
  flex: none;
  color: var(--ink-faint);
  transition: transform 0.22s var(--ease-out), color 0.22s var(--ease-out);
}
.more-link b {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .more-link:hover {
    border-color: rgba(6, 182, 212, 0.4);
    background: rgba(6, 182, 212, 0.05);
  }
  .more-link:hover svg.arrow {
    transform: translate(2px, -2px);
    color: var(--cyan);
  }
}
.more-link:active {
  transform: scale(0.99);
}

/* ── simulator: legible stage list for narrow viewports ─────────────────────
   The SVG graph is 995 units wide; at 375px its labels render around 4px.
   Below 900px we show real text instead and hide the graph entirely. */
.sim-steps {
  display: none;
  list-style: none;
  margin: 0;
  padding: 4px;
}
@media (max-width: 899px) {
  .sim-canvas svg {
    display: none;
  }
  .sim-steps {
    display: grid;
    gap: 6px;
  }
}
.sim-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.sim-step .pip {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
  transition: border-color 0.3s var(--ease-out), background-color 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.sim-step .txt {
  min-width: 0;
  flex: 1;
}
.sim-step .txt b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink-muted);
  transition: color 0.3s var(--ease-out);
}
.sim-step .txt em {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  font-style: normal;
  color: var(--ink-faint);
}
.sim-step .at {
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--ink-faint);
}
.sim-step[data-state='done'] .pip,
.sim-step[data-state='active'] .pip {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.16);
  color: var(--emerald);
}
.sim-step[data-state='done'] .txt b,
.sim-step[data-state='active'] .txt b {
  color: var(--ink);
}
.sim-step[data-state='active'] {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.075);
}
.sim-step[data-state='active'] .at {
  color: var(--cyan);
}

/* ── press feedback for shared components ────────────────────────────────── */
.btn-ghost:active,
.pill:active,
.tier-opt:active {
  transform: scale(0.975);
}
.btn-ghost,
.pill,
.tier-opt {
  transition: transform 0.16s var(--ease-out), border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

/* ════════════════════════════════════════════════════════════════════════════
   MOTION
   Rules this follows, deliberately:
   • entrances use a strong ease-out — starts fast, so it feels responsive
   • UI feedback stays under 300ms; only the marketing entrance runs longer
   • stagger is 60ms — inside the 30–80ms band; longer reads as sluggish
   • only transform and opacity are animated, so everything stays on the GPU
   • hover motion is gated behind (hover: hover) so a tap can't stick it on
   • reduced motion means gentler, NOT nothing — opacity is kept, travel is not
   ════════════════════════════════════════════════════════════════════════════ */

/* ── hero entrance: one staged sequence on load ──────────────────────────── */
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .welcome,
.hero h1,
.hero .sub,
.hero .actions,
.hero .under {
  animation: rise-in 0.62s var(--ease-out) both;
}
.hero .welcome {
  animation-delay: 0.04s;
}
.hero h1 {
  animation-delay: 0.1s;
}
.hero .sub {
  animation-delay: 0.18s;
}
.hero .actions {
  animation-delay: 0.26s;
}
.hero .under {
  animation-delay: 0.34s;
}

/* ── scroll reveal, staggered per group ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}

/* Cards inside a revealed group come in one after another. 60ms apart. */
.steps > *,
.plans > *,
.more-links > * {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.steps.in > *,
.plans.in > *,
.more-links.in > * {
  opacity: 1;
  transform: none;
}
.steps.in > *:nth-child(2),
.plans.in > *:nth-child(2),
.more-links.in > *:nth-child(2) {
  transition-delay: 60ms;
}
.steps.in > *:nth-child(3),
.plans.in > *:nth-child(3),
.more-links.in > *:nth-child(3) {
  transition-delay: 120ms;
}

/* ── press feedback — the highest-leverage motion on the whole page ───────
   On a phone there is no hover, so this is the ONLY confirmation a tap
   registered. 160ms, scale 0.97, on everything pressable. */
.btn,
.btn-ghost,
.pill,
.tier-opt,
.more-link,
.burger,
.sim-controls button {
  transition: transform 0.16s var(--ease-out), border-color 0.2s var(--ease-out),
    background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.btn:active,
.btn-ghost:active,
.pill:active,
.tier-opt:active,
.burger:active,
.sim-controls button:active {
  transform: scale(0.97);
}
.more-link:active {
  transform: scale(0.99);
}

/* ── card lift on hover (pointer devices only) ───────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .step,
  .plan {
    transition: transform 0.24s var(--ease-out), border-color 0.24s var(--ease-out);
  }
  .step:hover,
  .plan:hover {
    transform: translate3d(0, -3px, 0);
  }
}

/* ── waitlist form → confirmation crossfade ──────────────────────────────
   This swap is the emotional peak of the page and used to teleport. */
@keyframes phase-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[data-phase='joined']:not([hidden]) {
  animation: phase-in 0.42s var(--ease-out) both;
}

/* ── reduced motion: keep the fades, drop the travel ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero .welcome,
  .hero h1,
  .hero .sub,
  .hero .actions,
  .hero .under,
  [data-phase='joined']:not([hidden]) {
    animation: none;
    opacity: 1;
    transform: none;
  }
  [data-reveal],
  [data-reveal].in,
  .steps > *,
  .plans > *,
  .more-links > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.2s linear;
  }
  .step:hover,
  .plan:hover,
  .more-link:active,
  .btn:active,
  .btn-ghost:active,
  .pill:active,
  .tier-opt:active,
  .burger:active,
  .sim-controls button:active {
    transform: none;
  }
}
