/* ============================================================
   Weavana Studio — marketing landing page
   Built on the Grove design system (../styles.css tokens).
   Mobile-first. Calm, light-leaning, premium.
   ============================================================ */

*, *::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;
  font-family: var(--font-sans);
  background: var(--surface-canvas);
  color: var(--text-primary);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

/* ---- Layout primitives ---------------------------------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 24px; }
.wrap--narrow { max-width: 900px; }

section { position: relative; }
.section { padding-block: clamp(72px, 11vw, 132px); }
.section--tight { padding-block: clamp(54px, 8vw, 92px); }

/* Surface tones */
.tone-oat   { background: var(--surface-canvas); }
.tone-pale  { background: var(--stone-50); }
.tone-mist  { background: var(--teal-50); }
.tone-grove { background: var(--teal-800); color: var(--text-on-brand); }
.tone-grove .eyebrow { color: var(--teal-200); }

/* ---- Typography ----------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--text-accent);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
  content: ""; width: 22px; height: 1px; background: currentColor; opacity: .55;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; }
.display {
  font-size: clamp(2.55rem, 6.4vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
  font-weight: 600;
}
.h-sec {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h-pillar {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  line-height: 1.1;
  letter-spacing: -0.018em;
}
.lede {
  font-size: clamp(1.06rem, 1.5vw, 1.3rem);
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 56ch;
  margin: 22px 0 0;
}
.tone-grove .lede { color: rgba(243,239,230,.82); }
.muted { color: var(--text-muted); }
.serif-em { font-family: var(--font-display); font-style: italic; font-weight: 500; }

/* ---- Buttons -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 600; font-size: var(--text-base);
  line-height: 1; white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 1.5px solid transparent; border-radius: var(--radius-pill);
  padding: 15px 26px;
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:active { transform: scale(.975); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand-primary); color: var(--text-on-brand); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--brand-primary-hover); box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.btn-on-dark { background: var(--stone-50); color: var(--teal-800); box-shadow: 0 10px 30px rgba(0,0,0,.28); }
.btn-on-dark:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border-default); color: var(--text-primary); }
.btn-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-ghost-light { background: transparent; border-color: rgba(243,239,230,.4); color: var(--stone-50); }
.btn-ghost-light:hover { border-color: rgba(243,239,230,.85); }
.btn-lg { padding: 17px 30px; font-size: var(--text-md); }

.cta-note { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }
.tone-grove .cta-note { color: rgba(243,239,230,.6); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }

/* ---- Nav ------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(250,248,242,.82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--border-subtle);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-primary); }
.brand img { height: 30px; width: auto; transition: filter .3s ease; }
.brand-name { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; letter-spacing: -.01em; }
.brand-chip {
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-accent);
  border: 1.5px solid var(--amber-300); border-radius: var(--radius-pill); padding: 3px 9px;
}
.nav-links { display: none; align-items: center; gap: 30px; }
.nav-links a { font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); text-decoration: none; transition: color .2s ease; }
.nav-links a:hover { color: var(--text-brand); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 20px; font-size: var(--text-sm); }
.nav-signin { display: inline-flex; align-items: center; font-size: var(--text-sm); font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.nav-signin:hover { color: var(--text-brand); }

/* Light treatment while over the dark hero */
.nav.over-hero:not(.is-stuck) .brand,
.nav.over-hero:not(.is-stuck) .nav-links a,
.nav.over-hero:not(.is-stuck) .nav-signin { color: rgba(248,243,234,.9); }
.nav.over-hero:not(.is-stuck) .brand img { filter: brightness(0) invert(1); opacity: .96; }
.nav.over-hero:not(.is-stuck) .brand-chip { color: #EAD9C4; border-color: rgba(234,217,196,.5); }

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

/* Small phones: keep "Sign in" + "Start free trial" both visible and from
   crowding the bar — drop the decorative Studio chip and tighten the CTA. */
@media (max-width: 560px) {
  .brand-chip { display: none; }
  .nav-cta { gap: 12px; }
  .nav-cta .btn { padding: 11px 16px; }
}

/* ---- Hero ----------------------------------------------- */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg-img {
  position: absolute; inset: 0; z-index: -3;
  background: var(--teal-800) url("assets/hero-bg.webp") center right / cover no-repeat;
}
#grove-backdrop { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: .7; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(22,29,25,.93) 0%, rgba(22,29,25,.78) 42%, rgba(22,29,25,.34) 72%, rgba(22,29,25,.12) 100%),
    linear-gradient(0deg, rgba(22,29,25,.55) 0%, rgba(22,29,25,0) 38%);
}
.hero-inner {
  display: grid; grid-template-columns: 1fr; gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(118px, 16vw, 168px);
  padding-bottom: clamp(64px, 9vw, 104px);
}
.hero-copy { max-width: 620px; }
.hero .eyebrow { color: #E7D2BC; }
.hero h1 { color: #F8F3EA; }
.hero h1 .grad { color: #EBC9A6; font-style: italic; font-weight: 500; }
.hero-sub { color: rgba(248,243,234,.86); font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.6; max-width: 52ch; margin: 24px 0 0; }
.hero-cta { margin-top: 36px; }
.hero-cta .cta-note { color: rgba(248,243,234,.72); margin-top: 14px; display: flex; align-items: center; gap: 8px; }
.hero-cta .cta-note svg { width: 15px; height: 15px; color: #A9C2B2; }
.hero-fork {
  margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(248,243,234,.16);
  font-size: var(--text-sm); color: rgba(248,243,234,.7);
}
.hero-fork a { color: #EBC9A6; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(235,201,166,.4); padding-bottom: 1px; }
.hero-fork a:hover { border-bottom-color: #EBC9A6; }

@media (min-width: 1000px) {
  .hero-inner { grid-template-columns: 1.02fr 0.98fr; }
}

/* ---- Generation panel (the hero centerpiece) ------------ */
.genpanel {
  background: rgba(250,248,242,.97);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-2xl);
  box-shadow: 0 40px 90px -20px rgba(10,18,14,.6), 0 0 0 1px rgba(0,0,0,.03);
  overflow: hidden;
  width: 100%; max-width: 480px; margin-inline: auto;
}
.gen-head { display: flex; align-items: center; gap: 9px; padding: 14px 18px; border-bottom: 1px solid var(--border-subtle); background: #fff; }
.gen-dot { width: 10px; height: 10px; border-radius: 50%; }
.gen-spacer { flex: 1; }
.gen-tablabel { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.gen-body { padding: 20px 20px 22px; min-height: 408px; }

.gen-prompt-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 10px; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-sm); font-weight: 600; color: var(--text-brand);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: var(--radius-pill); padding: 7px 13px;
  opacity: 0; transform: translateY(6px) scale(.96);
}
.gen-chip .mono { font-family: var(--font-mono); color: var(--text-accent); font-weight: 500; }
.gen-chip.in { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s cubic-bezier(.2,.8,.3,1); }

.gen-loader { display: flex; align-items: center; gap: 11px; margin-top: 22px; opacity: 0; transition: opacity .35s ease; }
.gen-loader.in { opacity: 1; }
.gen-loader .spin { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--teal-100); border-top-color: var(--brand-primary); }
@media (prefers-reduced-motion: no-preference) { .gen-loader .spin { animation: gen-spin .8s linear infinite; } }
@keyframes gen-spin { to { transform: rotate(360deg); } }
.gen-loader span { font-size: var(--text-sm); color: var(--text-secondary); font-weight: 500; }
.gen-loader .serif-em { color: var(--text-brand); }

.gen-flow { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.gen-movement { opacity: 0; }
.gen-movement.in { opacity: 1; transition: opacity .5s ease; }
.gen-mv-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 9px; }
.gen-mv-name { font-family: var(--font-display); font-size: var(--text-base); font-weight: 600; color: var(--text-primary); }
.gen-mv-dur { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); letter-spacing: .03em; }
.gen-poses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gen-pose {
  background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md);
  padding: 10px 6px 8px; text-align: center;
  opacity: 0; transform: translateY(10px) scale(.94);
}
.gen-pose.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .45s cubic-bezier(.2,.8,.3,1); }
.gen-pose svg { margin: 0 auto; }
.gen-pose .pname { font-size: 10px; font-weight: 600; color: var(--text-secondary); margin-top: 4px; line-height: 1.15; }
.gen-pose .pdur { font-family: var(--font-mono); font-size: 9.5px; color: var(--text-accent); margin-top: 1px; }

.gen-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-subtle); opacity: 0; transition: opacity .4s ease; }
.gen-foot.in { opacity: 1; }
.gen-foot-meta { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--text-muted); }
.gen-foot-cta { font-size: var(--text-sm); font-weight: 700; color: var(--text-accent); display: inline-flex; align-items: center; gap: 6px; }
.gen-foot-cta svg { width: 15px; height: 15px; }

/* ---- Loop strip (Plan → Teach → Grow) ------------------- */
.loop { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 8px; }
.loop-word { font-family: var(--font-display); font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 600; letter-spacing: -.02em; color: var(--text-primary); }
.loop-word .n { font-family: var(--font-mono); font-size: .5em; color: var(--text-accent); vertical-align: super; margin-right: 6px; font-weight: 500; }
.loop-arrow { color: var(--teal-300); width: 30px; height: 30px; flex: none; }
.loop-sub { text-align: center; }

/* ---- Pillars -------------------------------------------- */
.pillar { display: grid; grid-template-columns: 1fr; gap: clamp(36px, 5vw, 68px); align-items: center; }
.pillar + .pillar { margin-top: clamp(72px, 10vw, 128px); }
.pillar-copy { max-width: 540px; }
.pillar-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.pillar-list li { display: flex; gap: 13px; align-items: flex-start; }
.pillar-list .ic {
  flex: none; width: 34px; height: 34px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--teal-50); color: var(--text-brand);
}
.pillar-list .ic svg { width: 18px; height: 18px; }
.pillar-list b { display: block; font-size: var(--text-base); font-weight: 700; color: var(--text-primary); }
.pillar-list span { display: block; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.55; margin-top: 2px; }
.pillar-msg { margin-top: 28px; font-family: var(--font-display); font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; color: var(--text-brand); padding-left: 18px; border-left: 2px solid var(--amber-300); }

@media (min-width: 980px) {
  .pillar { grid-template-columns: 1fr 1.08fr; }
  .pillar--rev .pillar-copy { order: 2; }
  .pillar--rev .pillar-visual { order: 1; }
}

/* ---- Device / product frames ---------------------------- */
.frame {
  border-radius: var(--radius-xl);
  background: #fff; border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--border-subtle); background: var(--stone-50); }
.frame-bar .tl { width: 9px; height: 9px; border-radius: 50%; background: var(--border-default); }
.frame-bar .url { margin-left: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); letter-spacing: .02em; }

/* Plan visual — timeline builder */
.tl-canvas { padding: 22px 20px; background:
  radial-gradient(circle at 1px 1px, var(--stone-200) 1px, transparent 0) 0 0 / 22px 22px,
  var(--stone-50); }
.tl-groups { display: flex; gap: 14px; align-items: stretch; overflow: hidden; }
.tl-group { flex: 1; min-width: 0; }
.tl-group-label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.tl-group-label::before { content:""; width: 7px; height: 7px; border-radius: 2px; background: var(--teal-300); }
.tl-track { display: flex; flex-direction: column; gap: 8px; }
.tl-node { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 7px 9px; box-shadow: var(--shadow-xs); }
.tl-node .pf { flex: none; width: 30px; height: 30px; background: var(--teal-50); border-radius: var(--radius-sm); display: grid; place-items: center; }
.tl-node .pf svg { width: 24px; height: 24px; }
.tl-node .nm { font-size: 11px; font-weight: 600; color: var(--text-primary); line-height: 1.1; }
.tl-node .du { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); }
.tl-fan { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 5px; }
.tl-fan .sug { font-size: 9.5px; font-weight: 600; color: var(--text-brand); background: var(--teal-50); border: 1px dashed var(--teal-200); border-radius: var(--radius-pill); padding: 3px 8px; }

/* Teach visual — dark player */
.teach-frame { background: var(--teal-900); border: none; box-shadow: var(--shadow-xl); border-radius: var(--radius-xl); overflow: hidden; position: relative; }
/* real teach-mode capture fills the frame */
.teach-shot { display: block; width: 100%; height: auto; }
.teach-stage { position: relative; padding: 30px 26px 26px; min-height: 360px; display: flex; flex-direction: column; }
.teach-bg { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 30%, rgba(75,92,83,.55), transparent 60%); }
.teach-top { position: relative; display: flex; align-items: center; justify-content: space-between; color: rgba(244,237,226,.7); }
.teach-top .mono { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.teach-fig { position: relative; flex: 1; display: grid; place-items: center; margin: 14px 0; }
.teach-halo { position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, rgba(217,166,107,.22), transparent 68%); }
@media (prefers-reduced-motion: no-preference) { .teach-halo { animation: halo 5.2s ease-in-out infinite alternate; } }
@keyframes halo { from { transform: scale(.92); opacity: .6; } to { transform: scale(1.08); opacity: 1; } }
.teach-name { position: relative; text-align: center; }
.teach-name .en { font-family: var(--font-display); font-size: var(--text-2xl); color: #F8F3EA; line-height: 1.05; }
.teach-name .sk { font-family: var(--font-display); font-style: italic; font-size: var(--text-md); color: #EBC9A6; margin-top: 3px; }
.teach-timer { position: relative; text-align: center; margin-top: 16px; }
.teach-timer .t { font-family: var(--font-mono); font-size: 2.6rem; color: #F8F3EA; letter-spacing: .02em; font-weight: 500; }
.teach-cue { position: relative; text-align: center; color: rgba(244,237,226,.78); font-family: var(--font-display); font-style: italic; font-size: var(--text-md); margin-top: 6px; }
.teach-bar { position: relative; height: 4px; border-radius: 99px; background: rgba(244,237,226,.16); margin-top: 20px; overflow: hidden; }
.teach-bar i { display: block; height: 100%; width: 58%; background: var(--amber-400); border-radius: 99px; }
.teach-dots { position: relative; display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.teach-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(244,237,226,.28); }
.teach-dots i.on { background: var(--amber-400); width: 20px; border-radius: 99px; }

/* Grow visual — clients + earnings */
.grow-stack { padding: 18px; background: var(--stone-50); display: flex; flex-direction: column; gap: 14px; }
.grow-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.grow-card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 15px; box-shadow: var(--shadow-xs); }
.grow-card .lab { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 4px; }
.grow-card .big { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--text-primary); line-height: 1; }
.grow-card .big .cur { color: var(--text-accent); }
.grow-card .delta { font-family: var(--font-mono); font-size: 11px; color: var(--success); margin-top: 5px; }
.grow-bars { display: flex; align-items: flex-end; gap: 6px; height: 52px; margin-top: 10px; }
.grow-bars i { flex: 1; background: var(--teal-200); border-radius: 3px 3px 0 0; }
.grow-bars i.hi { background: var(--brand-primary); }
.grow-clients { display: flex; flex-direction: column; gap: 9px; }
.grow-client { display: flex; align-items: center; gap: 11px; }
.grow-av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-on-brand); }
.grow-client .who { flex: 1; min-width: 0; }
.grow-client .who b { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.grow-client .who span { font-size: 11px; color: var(--text-muted); }
.grow-client .rate { font-family: var(--font-mono); font-size: 12px; color: var(--text-primary); }
.grow-tag { font-size: 10px; font-weight: 700; color: var(--clay-500); background: var(--clay-100); border-radius: var(--radius-pill); padding: 2px 8px; }

/* ---- Why it flows --------------------------------------- */
.why-grid { display: grid; grid-template-columns: 1fr; gap: 22px; margin-top: 48px; }
.why-card { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.why-card .ic { width: 46px; height: 46px; border-radius: var(--radius-md); background: var(--teal-700); color: #EBC9A6; display: grid; place-items: center; margin-bottom: 18px; }
.why-card .ic svg { width: 23px; height: 23px; }
.why-card h3 { font-size: var(--text-lg); line-height: 1.18; margin-bottom: 9px; }
.why-card p { margin: 0; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.6; }
.why-card .stat { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; color: var(--text-brand); line-height: 1; margin-bottom: 6px; }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- Depth grid ----------------------------------------- */
.depth-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border-subtle); border: 1px solid var(--border-subtle); border-radius: var(--radius-xl); overflow: hidden; margin-top: 44px; }
.depth-item { background: var(--surface-card); padding: 20px 18px; display: flex; gap: 13px; align-items: flex-start; }
.depth-item .ic { flex: none; color: var(--text-brand); margin-top: 1px; }
.depth-item .ic svg { width: 19px; height: 19px; }
.depth-item b { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); line-height: 1.25; }
.depth-item span { display: block; font-size: var(--text-xs); color: var(--text-muted); margin-top: 3px; line-height: 1.45; }
@media (min-width: 680px) { .depth-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .depth-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---- Social proof --------------------------------------- */
.proof-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 0 auto 44px; }
.proof-stat { text-align: center; padding: 0 22px; }
.proof-stat .n { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.9rem); font-weight: 600; color: var(--stone-50); line-height: 1; }
.proof-stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-200); margin-top: 8px; }
.proof-stat .stars { color: #EBC9A6; font-size: 15px; letter-spacing: 2px; }
.quotes { display: grid; grid-template-columns: 1fr; gap: 20px; }
.quote { background: rgba(250,248,242,.06); border: 1px solid rgba(243,239,230,.14); border-radius: var(--radius-xl); padding: 28px 26px; }
.quote p { font-family: var(--font-display); font-size: var(--text-md); line-height: 1.5; color: #F2EEE5; margin: 0 0 20px; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.quote-av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: var(--teal-900); }
.quote-by b { display: block; font-size: var(--text-sm); color: #F2EEE5; font-weight: 600; }
.quote-by .vrf { display: flex; align-items: center; gap: 5px; font-size: var(--text-xs); color: var(--teal-200); margin-top: 1px; }
.quote-by .vrf svg { width: 13px; height: 13px; color: #9CC2A8; }
@media (min-width: 820px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

/* ---- Pricing -------------------------------------------- */
.trial-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; text-align: center; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--radius-pill); padding: 12px 22px; max-width: max-content; margin: 0 auto 44px; }
.trial-banner b { font-weight: 700; color: var(--text-brand); }
.trial-banner span { font-size: var(--text-sm); color: var(--text-secondary); }
.trial-banner .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal-300); }

.plans { display: grid; grid-template-columns: 1fr; gap: 22px; max-width: 860px; margin: 0 auto; }
.plan { position: relative; background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); padding: 32px 30px; display: flex; flex-direction: column; }
.plan--pro { border-color: var(--teal-600); box-shadow: var(--shadow-lg); }
.plan-flag { position: absolute; top: -13px; left: 30px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-on-brand); background: var(--brand-primary); border-radius: var(--radius-pill); padding: 5px 13px; display: inline-flex; align-items: center; gap: 6px; }
.plan-flag svg { width: 13px; height: 13px; }
.plan-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.plan-tag { font-size: var(--text-sm); color: var(--text-secondary); margin: 6px 0 20px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.plan-price .amt { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600; color: var(--text-primary); line-height: 1; }
.plan-price .per { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-muted); }
.plan-bill { font-size: var(--text-xs); color: var(--text-muted); margin-bottom: 24px; }
.plan .btn { width: 100%; margin-bottom: 24px; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--text-sm); color: var(--text-secondary); line-height: 1.45; }
.plan-feats .ck { flex: none; color: var(--success); margin-top: 1px; }
.plan-feats .ck svg { width: 17px; height: 17px; }
.plan-feats .gem { color: var(--text-accent); }
.plan-divider { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin: 6px 0 -2px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }

/* ---- Final CTA ------------------------------------------ */
.final { text-align: center; position: relative; overflow: hidden; }
.final .leaf-deco { position: absolute; opacity: .14; pointer-events: none; }
.final h2 { color: #F8F3EA; }
.final .lede { margin-inline: auto; }
.final .cta-row { justify-content: center; margin-top: 32px; }

/* ---- Footer --------------------------------------------- */
.footer { background: var(--teal-900); color: rgba(243,239,230,.7); padding-block: 60px 40px; }
.footer-top { display: grid; grid-template-columns: 1fr; gap: 38px; padding-bottom: 40px; border-bottom: 1px solid rgba(243,239,230,.12); }
.footer-brand .brand-name { color: #F8F3EA; }
.footer-brand img { height: 30px; filter: brightness(0) invert(1); opacity: .95; }
.footer-tagline { font-size: var(--text-sm); line-height: 1.6; margin: 16px 0 0; max-width: 30ch; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-200); margin: 0 0 14px; font-weight: 500; }
.footer-col a { display: block; font-size: var(--text-sm); color: rgba(243,239,230,.72); text-decoration: none; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: #F8F3EA; }
.footer-fork { background: rgba(250,248,242,.05); border: 1px solid rgba(243,239,230,.13); border-radius: var(--radius-lg); padding: 18px 20px; }
.footer-fork b { font-family: var(--font-display); font-size: var(--text-md); color: #F8F3EA; font-weight: 600; }
.footer-fork p { font-size: var(--text-sm); margin: 6px 0 12px; line-height: 1.5; }
.footer-fork a { color: #EBC9A6; font-weight: 600; text-decoration: none; font-size: var(--text-sm); display: inline-flex; align-items: center; gap: 6px; }
.footer-fork a svg { width: 15px; height: 15px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 30px; font-size: var(--text-xs); color: rgba(243,239,230,.5); }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: #F8F3EA; }
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.4fr 2fr; gap: 50px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 980px) {
  .footer-top { grid-template-columns: 1.3fr 2fr 1fr; }
}

/* ---- Scroll reveal -------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gen-chip, .gen-pose, .gen-movement, .gen-loader, .gen-foot { opacity: 1 !important; transform: none !important; }
}

/* ---- Hero demo: real Studio stills, device toggle, prompt→result fade ---- */
.hero-visual { position: relative; }
.hero-glow {
  position: absolute; inset: -10% -6% 4%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 40% at 66% 20%, rgba(217,166,107,.30), transparent 70%),
    radial-gradient(56% 50% at 30% 78%, rgba(95,150,120,.26), transparent 72%);
  filter: blur(10px);
}

.hero-visual { text-align: center; }

/* Studio demo, hand-built from the real planner UI (no video). The browser
   frame cross-fades: generator → loader → the assembled practice (auto-scrolls). */
.sd {
  position: relative; z-index: 1; width: 100%; max-width: 540px; margin-inline: auto;
  border-radius: var(--radius-xl); background: var(--surface-card);
  border: 1px solid var(--border-subtle); overflow: hidden; text-align: left;
  box-shadow: 0 46px 92px -24px rgba(8,16,12,.6), 0 0 0 1px rgba(0,0,0,.04);
}
.sd-stage { position: relative; height: 462px; background: var(--surface-canvas); }
.sd-scene { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .5s ease; }
.sd[data-scene="gen"] .sd-gen,
.sd[data-scene="loader"] .sd-loader,
.sd[data-scene="practice"] .sd-practice { opacity: 1; }

/* generator */
.sd-gen { overflow: hidden; }
.sd-gen-scroll { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; transition: transform .85s cubic-bezier(.4,0,.2,1); }
.sd-gen-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.sd-field { display: flex; flex-direction: column; gap: 9px; }
.sd-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); display: flex; align-items: baseline; gap: 7px; }
.sd-label em { font-style: normal; text-transform: none; letter-spacing: 0; font-size: 10.5px; font-weight: 500; color: var(--text-muted); opacity: .8; }
/* free-text "in your words" with a typing caret */
.sd-input { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-card); overflow: hidden; }
.sd-input-ico { flex: none; color: var(--text-accent); }
.sd-typed { font-size: var(--text-sm); color: var(--text-primary); white-space: nowrap; }
.sd-typed:empty::before { content: attr(data-ph); color: var(--text-muted); }
.sd-caret { display: inline-block; width: 1.5px; height: 16px; background: var(--brand-primary); margin-left: 1px; opacity: 0; flex: none; }
.sd-caret.on { animation: sd-blink 1.05s step-end infinite; }
@keyframes sd-blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.sd-select--muted { color: var(--text-muted); }
.sd-chips--sm .sd-chip { font-size: 12px; padding: 5px 11px; }
.sd-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.sd-chip { font-size: var(--text-sm); font-weight: 600; padding: 6px 13px; border-radius: var(--radius-pill); border: 1.5px solid var(--border-default); color: var(--text-secondary); background: var(--surface-card); }
.sd-chip[data-on] { background: var(--brand-primary); border-color: var(--brand-primary); color: var(--text-on-brand); }
.sd-seg { display: inline-flex; align-self: flex-start; background: var(--stone-100); border-radius: var(--radius-pill); padding: 3px; }
.sd-seg span { padding: 6px 15px; border-radius: var(--radius-pill); font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); font-family: var(--font-mono); }
.sd-seg .is-on { background: var(--surface-card); color: var(--text-primary); box-shadow: var(--shadow-xs); }
.sd-select { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); font-size: var(--text-sm); color: var(--text-primary); background: var(--surface-card); }
.sd-generate { margin-top: 5px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px; border: none; border-radius: var(--radius-pill); background: var(--amber-400); color: #3b2c1a; font-family: var(--font-sans); font-weight: 700; font-size: var(--text-md); cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .15s ease; }
.sd-generate.is-press { transform: scale(.965); }

/* loader */
.sd-loader { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: var(--text-md); color: var(--text-secondary); }
.sd-loader em { font-family: var(--font-display); font-style: italic; color: var(--text-brand); }
.sd-spin { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid var(--teal-100); border-top-color: var(--brand-primary); }
@media (prefers-reduced-motion: no-preference) { .sd-spin { animation: sd-spin .8s linear infinite; } }
@keyframes sd-spin { to { transform: rotate(360deg); } }

/* practice */
.sd-practice { display: flex; flex-direction: column; }
.sd-pr-head { padding: 16px 20px 13px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-card); }
.sd-pr-vibes { display: flex; gap: 6px; margin-bottom: 8px; }
.sd-pr-vibes span { font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--teal-50); color: var(--text-brand); }
.sd-pr-vibes span:first-child { background: var(--amber-100); color: var(--amber-700); }
.sd-pr-title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: 1.12; }
.sd-pr-meta { font-size: var(--text-sm); color: var(--text-muted); margin-top: 5px; }
.sd-pr-meta .mono { font-family: var(--font-mono); color: var(--text-secondary); }
.sd-scroll { flex: 1; overflow: hidden; }
.sd-track { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 20px 40px; transition: transform 0s; }
/* tree rail + node dots (the SequenceEditor look) */
.sd-rail { position: absolute; left: 17px; top: 26px; bottom: 26px; width: 2px; border-radius: 2px; background: linear-gradient(var(--teal-200), var(--teal-100)); pointer-events: none; }
.sd-mv-head { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 13px 9px 10px; background: var(--teal-50); border: 1px solid var(--teal-200); border-radius: var(--radius-lg); }
.sd-mv-chev { display: inline-flex; color: var(--teal-600); }
.sd-mv-chev svg { transform: rotate(90deg); }
.sd-mv-ico { display: inline-flex; color: var(--teal-500); }
.sd-mv-name { font-family: var(--font-display); font-weight: 600; color: var(--teal-700); font-size: 15px; }
.sd-mv-dur { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--teal-600); opacity: .85; }
.sd-row { position: relative; display: flex; align-items: center; gap: 12px; background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: 9px 10px 9px 12px; }
.sd-row::before { content: ""; position: absolute; left: -23px; top: 50%; transform: translateY(-50%); width: 10px; height: 10px; border-radius: 50%; background: var(--surface-card); border: 2px solid var(--teal-300); box-sizing: border-box; }
.sd-grip { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 30px; border-radius: var(--radius-sm); color: var(--stone-400); cursor: grab; }
.sd-grip--drag { color: var(--teal-500); }
/* drag demo: lift one pose, shift its neighbour, show a drop indicator */
.sd-row[data-drag] { transition: transform .55s cubic-bezier(.2,.8,.3,1), box-shadow .25s ease, border-color .25s ease; will-change: transform; }
.is-dragdemo .sd-row[data-drag="lift"] { box-shadow: var(--shadow-lg); border-color: var(--border-default); z-index: 7; }
.sd-cursor { position: absolute; right: 13px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; opacity: 0; transition: opacity .2s ease; pointer-events: none; z-index: 9;
  background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.96), rgba(120,130,110,.45) 58%, transparent 72%);
  box-shadow: 0 0 0 2px rgba(60,72,54,.32), 0 4px 11px rgba(30,40,28,.3); }
.is-dragdemo .sd-cursor { opacity: 1; }
.sd-drop2 { position: absolute; left: 38px; right: 14px; height: 3px; border-radius: 3px; background: var(--clay-400); opacity: 0; transition: opacity .15s ease; z-index: 6; pointer-events: none; }
.sd-drop2::before { content: ""; position: absolute; left: -9px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--clay-400); box-shadow: 0 0 0 3px rgba(166,86,54,.18); }
.is-dragdemo .sd-drop2 { opacity: 1; }
.sd-art { flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden; background: #F3EFE6; box-shadow: 0 0 0 1px var(--border-subtle); }
.sd-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); }
.sd-rb { flex: 1; min-width: 0; }
.sd-rn { font-size: var(--text-sm); font-weight: 700; color: var(--text-primary); }
.sd-rn i { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 12.5px; color: var(--text-muted); margin-left: 5px; }
.sd-rc { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; line-height: 1.35; }
.sd-rd { flex: none; font-family: var(--font-mono); font-size: var(--text-sm); color: var(--text-secondary); }

.hero-device-cap {
  position: relative; z-index: 2; display: inline-flex; flex-wrap: wrap;
  align-items: center; justify-content: center; gap: 7px; margin-top: 20px;
  font-size: var(--text-sm); color: rgba(248,243,234,.74);
}
.hero-device-cap .mono {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .03em;
  color: #EBC9A6; background: rgba(235,201,166,.1);
  border: 1px solid rgba(235,201,166,.26); border-radius: var(--radius-pill); padding: 4px 11px;
}

.frame-shot { display: block; width: 100%; height: auto; }

/* Section-01 tabbed planner frame: Generate · Timeline · Sequence */
.sd2 { max-width: none; }
.sd2-tabs { display: flex; gap: 4px; padding: 9px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-card); }
.sd2-tab { border: none; background: none; padding: 7px 14px; border-radius: var(--radius-pill); font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); cursor: pointer; transition: background .15s, color .15s; }
.sd2-tab.is-on { background: var(--teal-50); color: var(--text-brand); }
.sd2-body { position: relative; aspect-ratio: 1280 / 800; overflow: hidden; background: var(--surface-canvas); }
.sd2-panel { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .4s ease; }
/* real-app stills fill each tab panel */
.sd2-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.sd2-panel.is-on { opacity: 1; pointer-events: auto; }
.sd-gen--compact { display: flex; flex-direction: column; gap: 13px; padding: 18px 20px; overflow: visible; }
.sd-track--static { transform: none !important; }
.sd2 .tl-canvas { border: none; }

/* timeline: branch-ripple connectors (from the real builder) + energy arc */
.tl-link { flex: 0 0 auto; align-self: center; display: inline-flex; }
.tl-link svg { transform: rotate(90deg); }
.tl-arc { margin-top: 16px; }
.tl-arc-svg { width: 100%; height: 48px; overflow: visible; display: block; }
.tl-arc-labels { display: flex; justify-content: space-between; margin-top: 3px; font-family: var(--font-mono); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }

/* early-access invitation (replaces fabricated social proof) */
.invite-points { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 560px; margin: 42px auto 0; text-align: left; }
.invite-point { display: flex; gap: 13px; align-items: flex-start; }
.invite-point svg { width: 20px; height: 20px; flex: none; color: #A9C2B2; margin-top: 3px; }
.invite-point span { font-size: var(--text-sm); color: rgba(243,239,230,.76); line-height: 1.5; }
.invite-point b { display: block; color: #F2EEE5; font-weight: 700; font-size: var(--text-base); margin-bottom: 2px; }
@media (min-width: 760px) {
  .invite-points { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .invite-point { flex-direction: column; gap: 11px; }
}

/* Studio+ labelling on the Grow pillar (private clients) */
.eyebrow-plus { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-on-brand); background: var(--brand-primary); border-radius: var(--radius-pill); padding: 3px 9px 3px 8px; vertical-align: middle; }
.eyebrow-plus svg { width: 11px; height: 11px; }
.win-cap { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 9px; font-size: var(--text-sm); color: var(--text-muted); text-align: center; }
.win-plus { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--text-on-brand); background: var(--brand-primary); border-radius: var(--radius-pill); padding: 3px 10px 3px 9px; }
.win-plus svg { width: 12px; height: 12px; }

/* landing3: real-tool video, browser-framed */
.tool-frame { position: relative; z-index: 1; width: 100%; border-radius: var(--radius-xl); background: var(--surface-card); border: 1px solid var(--border-subtle); overflow: hidden; box-shadow: 0 46px 92px -24px rgba(8,16,12,.6), 0 0 0 1px rgba(0,0,0,.04); }
.tool-screen { aspect-ratio: 1280 / 800; background: var(--surface-canvas); }
.tool-vid { width: 100%; height: 100%; object-fit: cover; display: block; }
