/* The website's own styles, on the studio token core (tokens.css, a verbatim
 * copy of aiconcepts/framework/tokens/generated/tokens.css, as the studio's).
 * Desktop follows the design's Site v2 at 1440; under 900 px, Site-phone at 402. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--brand-background);
  color: var(--text-color-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text-color-link); text-decoration: none; }
a:hover { color: var(--text-color-link-hover); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-accent) 45%, transparent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--space-6); }
.band { padding-block: var(--space-12); }
.band.sand { background: var(--sand-100); }
.band.sand2 { background: var(--sand-200); }
.stack { display: flex; flex-direction: column; }
.muted { color: var(--ink-700); }
.lead { font-size: var(--text-xl); line-height: var(--leading-normal); color: var(--ink-700); }
.body-lg { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--ink-700); text-wrap: pretty; }

/* ── Header and footer ──────────────────────────────────────────────────── */
.site-header {
  height: 88px; display: flex; align-items: center; justify-content: space-between;
  padding-inline: var(--space-10); border-bottom: 1px solid var(--divider);
}
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--ink-900); }
.brand:hover { color: var(--ink-900); }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: var(--tracking-tight); }
.site-nav { display: flex; align-items: center; gap: var(--space-6); font-size: var(--text-base); }
.site-nav .signin { font-weight: 500; }
.langs { display: flex; gap: var(--space-2); align-items: center; color: var(--ink-600); }
.langs a { color: var(--ink-600); }
.langs [aria-current] { color: var(--ink-900); font-weight: 600; }
.site-footer {
  padding: var(--space-9) var(--space-10); border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); flex-wrap: wrap;
}
.site-footer .brand span { font-size: var(--text-xl); }
.site-footer nav { display: flex; gap: var(--space-6); align-items: center; flex-wrap: wrap; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 var(--space-5); border-radius: 999px; border: 0;
  background: var(--brand-primary); color: var(--text-color-inverse);
  font: 600 var(--text-sm) / 1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background 150ms cubic-bezier(.2,.8,.2,1), transform 150ms;
}
.btn:hover { background: var(--ink-800); color: var(--text-color-inverse); }
.btn:active { transform: scale(.99); }
.btn.lg { height: 48px; padding: 0 var(--space-6); font-size: var(--text-base); }
.btn.square { border-radius: var(--radius-md); }

/* ── The climb: three rings beside a section's heading ──────────────────── */
.sec-head { display: flex; gap: var(--space-6); align-items: flex-start; }
.sec-head svg { flex: none; margin-top: 6px; }
.sec-head .stack { gap: var(--space-4); max-width: 760px; }
.h2 { font-size: var(--text-5xl); line-height: var(--leading-tight); }
.h3 { font-size: var(--text-4xl); line-height: var(--leading-tight); }
.ring-off { fill: none; stroke: var(--ink-900); stroke-width: 1.5; }
.ring-on { fill: var(--pine-500); stroke: var(--ink-900); stroke-width: 1.5; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 369px; gap: var(--space-6); align-items: center;
  max-width: 1200px; margin: 0 auto; padding: var(--space-10) var(--space-5) var(--space-11);
}
.hero h1 { font-size: clamp(3rem, 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: var(--tracking-tighter); }
.hero .lead { font-size: var(--text-2xl); max-width: 600px; text-wrap: pretty; }
.hero .actions { display: flex; gap: var(--space-4); align-items: center; padding-top: var(--space-2); }
.hero .actions a.link { font-size: var(--text-lg); font-weight: 500; }

.mobile-signin { display: none; }

/* ── Why ────────────────────────────────────────────────────────────────── */
.why { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.why svg { justify-self: center; }
.why .text { max-width: 720px; font-size: var(--text-xl); line-height: var(--leading-relaxed); }
.why .text p + p { margin-top: var(--space-4); }
.why.only { grid-template-columns: 1fr; justify-items: center; }

/* ── Phones ─────────────────────────────────────────────────────────────── */
.phone { width: calc(410px * var(--s)); height: calc(864px * var(--s)); overflow: hidden; flex: none; }
.phone-inner { width: 410px; height: 864px; transform: scale(var(--s)); transform-origin: top left; font-family: var(--font-body); color: var(--ink-900); }
.phone-screen {
  width: 390px; height: 844px; border: 10px solid var(--ink-950); border-radius: 56px; overflow: hidden;
  box-shadow: var(--shadow-xl); display: flex; flex-direction: column; box-sizing: content-box;
}
.ph-status { height: 47px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 32px; font-size: var(--text-sm); font-weight: 600; }
.ph-battery { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid currentColor; }
.ph-top { display: flex; justify-content: space-between; align-items: center; padding: var(--space-2) var(--space-5); min-height: 32px; font-size: var(--text-sm); }
.ph-body { flex: 1; display: flex; flex-direction: column; padding: var(--space-5); }
.ph-h { margin: 0; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); font-weight: 600; text-wrap: balance; }
.ph-label { font-family: var(--font-mono); font-size: var(--text-sm); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 600; }
.ph-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pine-100); color: var(--pine-800); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 600; }
.ph-speaks { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: var(--sand-50); color: var(--pine-700); font-size: var(--text-sm); font-weight: 500; }
.ph-bars { display: flex; align-items: center; gap: 3px; height: 16px; }
.ph-bars span { width: 3px; border-radius: 2px; background: var(--pine-500); }
.ph-big { width: 96px; height: 96px; border-radius: 50%; background: var(--ink-900); color: var(--text-color-inverse); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.ph-tick { width: 44px; height: 44px; border-radius: 50%; background: var(--pine-500); color: var(--text-color-on-accent); display: flex; align-items: center; justify-content: center; flex: none; }
.ph-num { font-family: var(--font-display); font-size: calc(var(--text-5xl) * 2); font-weight: 600; line-height: 1; }
.stripes {
  background: repeating-linear-gradient(135deg, var(--sand-300) 0 14px, var(--sand-200) 14px 28px);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-600); text-align: center; padding: 8px;
}

/* ── The walk ───────────────────────────────────────────────────────────── */
.walk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--space-6); }
.walk-grid figure { margin: 0; display: flex; flex-direction: column; gap: var(--space-4); align-items: center; }
.walk-grid figcaption { font-size: var(--text-lg); line-height: var(--leading-normal); text-align: center; max-width: 300px; text-wrap: balance; }

/* ── Cards (studio parts) ───────────────────────────────────────────────── */
.card { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
.card.pad { padding: var(--space-6); }
.small-label { font-size: var(--text-sm); font-weight: 600; color: var(--ink-700); }
.pill-row { display: flex; gap: var(--space-1); padding: 4px; border-radius: 999px; background: var(--surface-sunken); border: 1px solid var(--border-subtle); align-self: flex-start; }
.pill-row span { height: 36px; padding: 0 var(--space-4); display: flex; align-items: center; border-radius: 999px; font-size: var(--text-sm); color: var(--ink-700); }
.pill-row span.on { font-weight: 600; background: var(--ink-900); color: var(--text-color-inverse); }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--pine-50); color: var(--pine-700); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; flex: none; }
.qbtn { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1.5px solid var(--border-default); border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600; color: var(--ink-900); background: var(--surface-card); }
.cover { position: absolute; inset: 0; overflow: hidden; }
.cover > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.coach-top { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.drafts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.draft { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.draft.on { border: 2px solid var(--pine-500); }
.draft .art { height: 132px; position: relative; }
.draft .txt { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.coach-script { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--space-6); align-items: start; }
.script-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-4); align-items: baseline; padding: 10px var(--space-3); border-radius: var(--radius-lg); border: 1.5px solid transparent; }
.script-row.on { background: var(--pine-50); border-color: var(--pine-500); }
.answers-grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.person-row { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); border-bottom: 1px solid var(--divider); }
.person-row.on { background: var(--pine-50); }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--pine-100); color: var(--pine-800); display: flex; align-items: center; justify-content: center; font-size: var(--text-sm); font-weight: 600; flex: none; }
.avatar.sm { width: 32px; height: 32px; font-size: var(--text-xs); }
.tile { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); background: var(--surface-warm-subtle); border-radius: var(--radius-lg); }
.answer-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--space-5); }

.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.program-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-6); align-items: start; }
.week { display: grid; grid-template-columns: 80px 96px minmax(0, 1fr) auto; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--divider); }
.week:last-child { border-bottom: 0; }
.week .art { width: 96px; height: 64px; border-radius: var(--radius-md); overflow: hidden; position: relative; }
.alert { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-2xl); box-shadow: var(--shadow-lg); padding: var(--space-4); display: flex; gap: var(--space-3); align-items: flex-start; }
.group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }

/* ── Catalogue ──────────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.cat { background: var(--surface-card); border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.cat .art { height: 220px; position: relative; }
.cat .txt { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.cat h3 { font-size: var(--text-2xl); line-height: var(--leading-snug); }

/* ── Kept, early access ─────────────────────────────────────────────────── */
.kept { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: var(--space-10); }
.lines p { padding: var(--space-4) 0; border-top: 1px solid var(--divider); font-size: var(--text-xl); line-height: var(--leading-normal); text-wrap: pretty; }
.access { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-5); text-align: center; }
.access img { width: 64px; height: 64px; }
.prose { gap: var(--space-4); max-width: 760px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.facts li { padding: 6px var(--space-4); border-radius: 999px; background: var(--surface-card); border: 1px solid var(--border-subtle); font-size: var(--text-sm); color: var(--ink-700); }
.access form { width: 100%; max-width: 560px; padding-top: var(--space-3); display: flex; gap: var(--space-3); align-items: flex-start; text-align: left; }
.field { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.field input {
  width: 100%; height: 48px; padding: 0 var(--space-4); border-radius: var(--radius-md);
  border: 1.5px solid var(--border-default); background: var(--surface-card); color: var(--ink-900);
  font: 400 var(--text-base) / 1 var(--font-body);
}
.field input::placeholder { color: var(--ink-500); }
.field input:focus { outline: none; border-color: var(--brand-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-accent) 45%, transparent); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field .err { font-size: var(--text-sm); color: var(--danger-text); }
.sent { min-height: 48px; display: flex; align-items: center; justify-content: center; font-size: var(--text-lg); font-weight: 500; color: var(--success-text); padding-top: var(--space-3); }
[hidden] { display: none !important; }

/* ── Invite page ────────────────────────────────────────────────────────── */
.invite-hero h1 { font-size: clamp(2.75rem, 5.4vw, 4.75rem); line-height: 1.04; }
.store-row { display: flex; gap: var(--space-3); padding-bottom: var(--space-4); }
.store {
  height: 56px; padding: 0 var(--space-5); border: 2px dashed var(--border-strong); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-700); background: var(--surface-warm-subtle);
}

/* ── Phone width (the design's Site-phone at 402) ───────────────────────── */
@media (max-width: 900px) {
  .wrap { padding-inline: var(--space-5); }
  .band { padding-block: var(--space-10); }
  .site-header { height: 68px; padding-inline: var(--space-5); }
  .brand { gap: var(--space-2); }
  .brand span { font-size: var(--text-xl); }
  .site-nav .signin, .site-nav .btn { display: none; }
  .langs { font-size: var(--text-sm); gap: 6px; }
  .site-footer { padding: var(--space-8) var(--space-5); flex-direction: column; align-items: flex-start; gap: var(--space-3); }
  .site-footer nav { flex-direction: column; align-items: flex-start; gap: 0; }
  .site-footer nav > * { min-height: 44px; display: flex; align-items: center; }

  .hero { grid-template-columns: 1fr; gap: var(--space-5); padding: var(--space-8) var(--space-5) var(--space-9); }
  .hero h1 { font-size: var(--text-5xl); line-height: 1.05; }
  .hero .lead { font-size: var(--text-lg); }
  .hero .actions { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .hero .actions .btn { width: 100%; }
  .hero .actions a.link { align-self: center; min-height: 44px; display: flex; align-items: center; font-size: var(--text-base); }
  .hero .phone, .invite-hero .phone { --s: 0.75 !important; justify-self: center; }
  .hero .mobile-signin { display: flex !important; justify-content: center; min-height: 44px; align-items: center; font-weight: 500; }

  .why { grid-template-columns: 1fr; gap: var(--space-6); justify-items: center; }
  .why svg { width: 120px; height: 165px; }
  .why .text { font-size: var(--text-lg); }

  .sec-head { gap: var(--space-4); }
  .sec-head svg { width: 20px; height: 52px; margin-top: 4px; }
  .sec-head .stack { gap: var(--space-3); }
  .h2 { font-size: var(--text-4xl); }
  .h3 { font-size: var(--text-3xl); }
  .lead { font-size: var(--text-lg); }
  .body-lg { font-size: var(--text-base); }

  .walk-grid { display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-5); margin-inline: calc(var(--space-5) * -1); padding: 0 var(--space-5) var(--space-3); }
  .walk-grid figure { flex: none; width: 267px; align-items: flex-start; scroll-snap-align: start; }
  .walk-grid .phone { --s: 0.65 !important; }
  .walk-grid figcaption { font-size: var(--text-base); text-align: left; }

  .coach-top, .coach-script, .answers-grid, .two, .program-grid, .kept { grid-template-columns: 1fr; }
  .drafts { grid-template-columns: 1fr; }
  .draft { display: grid; grid-template-columns: 96px minmax(0, 1fr); }
  .draft .art { height: auto; min-height: 96px; }
  .draft .txt { padding: var(--space-3) var(--space-4); }
  .card.pad { padding: var(--space-5); }
  .answer-body { grid-template-columns: 1fr; }
  .answer-body .stripes { height: 180px !important; }
  .week { grid-template-columns: 64px minmax(0, 1fr); row-gap: var(--space-1); }
  .week > .wk { grid-column: 1 / -1; }
  .week .art { width: 64px; height: 44px; grid-row: span 2; }
  .group-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .cat .art { height: 120px; }
  .cat .txt { padding: var(--space-3); }
  .cat h3 { font-size: var(--text-base); }
  .kept { gap: var(--space-5); }
  .lines p { font-size: var(--text-lg); padding: var(--space-3) 0; }
  .access form { flex-direction: column; align-items: stretch; }
  .access .btn { width: 100%; }
  .store-row { flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-3); }
}
@media (max-width: 480px) {
  .group-grid { grid-template-columns: 1fr; }
}
/* Legal pages (About, privacy notice, terms): one reading column. */
.legal { max-width: 820px; padding-block: var(--space-9) var(--space-12); }
.legal-doc { display: flex; flex-direction: column; gap: var(--space-6); font-size: var(--text-lg); line-height: var(--leading-relaxed); }
.legal-doc h1 { font-size: clamp(1.6rem, 6vw, 3.25rem); line-height: var(--leading-tight); overflow-wrap: break-word; }
.legal-doc h2 { font-size: var(--text-2xl); line-height: var(--leading-tight); }
.legal-doc .n { color: var(--pine-500); margin-right: var(--space-3); font-variant-numeric: tabular-nums; }
.legal-doc section { display: flex; flex-direction: column; gap: var(--space-3); border-top: 1px solid var(--divider); padding-top: var(--space-6); }
.legal-doc p, .legal-doc li { max-width: 68ch; color: var(--ink-800); text-wrap: pretty; }
.legal-doc ul { margin: 0; padding-left: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.legal-doc .meta { font-size: var(--text-base); color: var(--ink-600); }
.legal-doc .legal-head { display: flex; flex-direction: column; gap: var(--space-2); }
.legal-doc .part { font-family: var(--font-display); font-weight: 600; font-size: var(--text-3xl); padding-top: var(--space-6); }
.legal-doc .plain { background: var(--sand-100); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.legal-doc .tbl { overflow-x: auto; border: 1px solid var(--divider); border-radius: var(--radius-md); }
.legal-doc table { border-collapse: collapse; width: 100%; font-size: var(--text-base); }
.legal-doc th, .legal-doc td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--divider); }
.legal-doc th { font-size: var(--text-sm); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-600); background: var(--sand-50); }
.legal-doc tr:last-child td { border-bottom: 0; }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .legal { padding-block: var(--space-7) var(--space-10); }
  .legal-doc { font-size: var(--text-base); gap: var(--space-5); }
  .legal-doc .plain { padding: var(--space-4); }
  .legal-doc .part { font-size: var(--text-2xl); }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
