/* ============================================================================
   Croft — marketing site design system
   One stylesheet, shared by every page. Zero external dependencies (no webfont
   CDN), so it works offline, on any static host, and inside a strict CSP.

   Identity: the Croft mark — a Croft-blue C on a beige tile. Warm beige
   ground · Croft blue (#1159E0) · charcoal ink (#2C2C2C) · a warm-grey dark
   theme · Satoshi (self-hosted, assets/fonts/) for everything but mono
   labels · fine "furrow" rules.

   NOTE (product naming): the product is "Croft" (internal codename "Nate").
   The contact email + domain in the pages are placeholders — swap before launch
   (see marketing/README.md).
   ========================================================================== */

/* ---- Brand face: Satoshi (Fontshare, ITF Free Font License —
   assets/fonts/Satoshi-FFL.txt). Self-hosted, and the file must stay the
   official one: the license forbids subsetting, converting or editing it, and
   forbids publishing it in a public repository. ------------------------- */
@font-face {
  font-family: "Satoshi";
  src: url("assets/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---- Tokens: light (default) --------------------------------------------- */
:root {
  --ground:      #FEF5E6;  /* page background — the logo's beige */
  --surface:     #FFFBF4;  /* raised cards */
  --surface-2:   #F6E9D5;  /* sunken wells */
  --ink:         #2C2C2C;  /* text — the wordmark's charcoal */
  --muted:       #6A635C;  /* secondary text — warm grey */
  --brand:       #1159E0;  /* Croft blue — primary */
  --brand-ink:   #0A47BC;  /* pressed/hover blue */
  --on-brand:    #FEF5E6;  /* text on brand */
  --accent:      #93673A;  /* warm tan — used sparingly */
  --accent-soft: #B08655;
  --line:        #EADCC6;  /* hairlines */
  --line-strong: #D9C6A9;
  --shadow:      0 1px 2px rgba(44,44,44,.05), 0 12px 32px -12px rgba(44,44,44,.16);
  --radius:      14px;
  --radius-sm:   9px;

  --display: "Satoshi", "Avenir Next", "Helvetica Neue", system-ui, sans-serif;
  --serif: var(--display);  /* headings use the brand face */
  --sans:  "Satoshi", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, system-ui, sans-serif;
  --mono:  ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --measure: 64ch;
  --page:    1120px;
  --gutter:  clamp(20px, 5vw, 56px);

  color-scheme: light dark;
}

/* ---- Tokens: dark -------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:      #262321;  /* warm charcoal, from the dark logo ground */
    --surface:     #302C29;
    --surface-2:   #3A3531;
    --ink:         #FBEEDE;
    --muted:       #B8AEA2;
    --brand:       #7EA6F6;  /* Croft blue, lifted for contrast on charcoal */
    --brand-ink:   #A3C0F9;
    --on-brand:    #1E1C1A;
    --accent:      #D3AB7C;
    --accent-soft: #B08655;
    --line:        #423D38;
    --line-strong: #544E48;
    --shadow:      0 1px 2px rgba(0,0,0,.35), 0 18px 44px -16px rgba(0,0,0,.6);
  }
}
/* Explicit theme overrides (viewer toggle stamps data-theme on <html>) */
:root[data-theme="light"] {
  --ground:#FEF5E6; --surface:#FFFBF4; --surface-2:#F6E9D5; --ink:#2C2C2C;
  --muted:#6A635C; --brand:#1159E0; --brand-ink:#0A47BC; --on-brand:#FEF5E6;
  --accent:#93673A; --accent-soft:#B08655; --line:#EADCC6; --line-strong:#D9C6A9;
  --shadow:0 1px 2px rgba(44,44,44,.05), 0 12px 32px -12px rgba(44,44,44,.16);
}
:root[data-theme="dark"] {
  --ground:#262321; --surface:#302C29; --surface-2:#3A3531; --ink:#FBEEDE;
  --muted:#B8AEA2; --brand:#7EA6F6; --brand-ink:#A3C0F9; --on-brand:#1E1C1A;
  --accent:#D3AB7C; --accent-soft:#B08655; --line:#423D38; --line-strong:#544E48;
  --shadow:0 1px 2px rgba(0,0,0,.35), 0 18px 44px -16px rgba(0,0,0,.6);
}

/* ---- Reset-ish ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.stack > * + * { margin-top: 1.1em; }
.lede { font-size: clamp(1.12rem, 2vw, 1.35rem); color: var(--muted); max-width: 60ch; line-height: 1.55; }
.measure { max-width: var(--measure); }
.center { text-align: center; margin-inline: auto; }

/* Furrow rule — the signature motif (fine planting rows) */
.furrow { height: 10px; width: 100%; border: 0; margin: 0;
  background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 4px);
  opacity: .8; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Eyebrow / label */
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 .9rem; display: inline-flex; align-items: center; gap: .55em; }
.eyebrow::before { content: ""; width: 1.6em; height: 1px; background: currentColor; opacity: .6; }

/* Type scale */
.display { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.h3 { font-size: clamp(1.35rem, 2.3vw, 1.7rem); }
.kicker { font-family: var(--serif); font-size: clamp(1.5rem,2.6vw,2rem); font-weight: 600; }

/* ---- Header / nav -------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 500; font-size: 1.45rem; letter-spacing: 0; margin-right: auto; }
.brand__mark { width: 28px; height: 28px; flex: none; }
.mark-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* The mark is backlit, lit from the upper left: a Croft-blue tile with warm
   light through the C on a light page, a beige tile with blue light through
   it on a dark one. The shading lives in the SVG filters in .mark-defs. */
.mark--on-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark--on-light { display: none; }
  :root:not([data-theme="light"]) .mark--on-dark { display: inline; }
}
:root[data-theme="dark"] .mark--on-light { display: none; }
:root[data-theme="dark"] .mark--on-dark { display: inline; }
.nav__links { display: flex; align-items: center; gap: 1.35rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .96rem; font-weight: 500;
  transition: color .15s ease; white-space: nowrap; }
.nav__links a:not(.btn):hover, .nav__links a:not(.btn)[aria-current="page"] { color: var(--ink); }
.nav__toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font-family: var(--sans); font-weight: 600;
  font-size: .96rem; text-decoration: none; padding: .68em 1.15em; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { font-size: 1.02rem; padding: .82em 1.5em; }
.btn__arrow { transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---- Hero ---------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 128px) clamp(40px, 7vw, 84px); position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(32px, 5vw, 68px); align-items: center; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; gap: 36px; } }
.hero__inner { max-width: none; }
.hero__media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.hero .display { margin-bottom: 1.1rem; }
.hero .lede { font-size: clamp(1.18rem, 2.2vw, 1.5rem); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.hero__note { font-size: .9rem; color: var(--muted); margin-top: 1.1rem; }
.hero__note strong { color: var(--ink); font-weight: 600; }

/* ---- Cards / grids ------------------------------------------------------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px); box-shadow: var(--shadow); }
.card--flat { box-shadow: none; }
.card--link { text-decoration: none; color: inherit; display: block;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease; }
.card--link:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; }
.card__num { font-family: var(--mono); font-size: .74rem; color: var(--accent); letter-spacing: .12em; }

/* Feature glyph tile */
.glyph { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand);
  border: 1px solid var(--line); margin-bottom: 1rem; }
.glyph svg { width: 22px; height: 22px; }

/* Feature row (alternating) */
.feature-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.feature-row + .feature-row { margin-top: clamp(48px, 7vw, 96px); }
.feature-row--flip .feature-row__media { order: -1; }
@media (max-width: 820px) { .feature-row { grid-template-columns: 1fr; } .feature-row--flip .feature-row__media { order: 0; } }
.feature-row__media { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 260px; box-shadow: var(--shadow); overflow: hidden; }

/* Checklist */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.ticks li { position: relative; padding-left: 1.75rem; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .46em; width: 13px; height: 7px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* Pill */
.pill { display: inline-flex; align-items: center; gap: .45em; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .06em; text-transform: uppercase; padding: .32em .7em; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface); }
.pill--brand { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

/* Stat */
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.stat__label { color: var(--muted); font-size: .95rem; margin-top: .4rem; }

/* Quote / callout */
.callout { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: clamp(28px,5vw,56px); }
.callout .quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.28; letter-spacing: -0.01em; }
.callout .attrib { margin-top: 1.2rem; font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .82; }

/* Integrations list rows */
.intg { color: var(--ink); display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.intg__row { display: grid; grid-template-columns: 180px 1fr auto; gap: 1.2rem; align-items: center; padding: 1rem 1.3rem; border-top: 1px solid var(--line); }
.intg__row:first-child { border-top: 0; }
.intg__name { font-weight: 600; }
.intg__desc { color: var(--muted); font-size: .95rem; }
@media (max-width: 640px) { .intg__row { grid-template-columns: 1fr; gap: .3rem; } }

/* Status tag */
.tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .28em .6em; border-radius: 6px; white-space: nowrap; }
.tag--live { color: #1f5133; background: color-mix(in srgb, #2e7d4f 18%, var(--surface)); }
.tag--soon { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tag--live { color: #9ad9ac; } }
:root[data-theme="dark"] .tag--live { color: #9ad9ac; }

/* Pricing */
.price-card { display: flex; flex-direction: column; gap: 1rem; }
.price-card--anchor { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent), var(--shadow); }
.price { font-family: var(--sans); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.02em; }
.price small { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }

/* CTA band */
.cta-band { background: var(--brand); color: var(--on-brand); border-radius: var(--radius); padding: clamp(36px,6vw,72px); text-align: center; }
.cta-band h2 { color: var(--on-brand); }
.cta-band .btn--primary { background: var(--on-brand); color: var(--brand); }
.cta-band .btn--primary:hover { background: #fff; }
.cta-band .btn--ghost { color: var(--on-brand); border-color: color-mix(in srgb, var(--on-brand) 45%, transparent); }
.cta-band .btn--ghost:hover { border-color: var(--on-brand); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: clamp(40px,6vw,80px); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px,4vw,48px); padding-block: clamp(40px,6vw,64px); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer-links a { text-decoration: none; color: var(--ink); font-size: .95rem; opacity: .85; }
.footer-links a:hover { opacity: 1; color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; align-items: center; justify-content: space-between; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* Utility */
.muted { color: var(--muted); }
.brand-text { color: var(--brand); }
.mt-0 { margin-top: 0; }
.mono { font-family: var(--mono); }
.small { font-size: .9rem; }
.maxw-prose { max-width: 68ch; }
.hide-mobile { }
@media (max-width: 760px) {
  .nav__links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--ground); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.2rem; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: .7rem 0; border-top: 1px solid var(--line); }
  .nav__links .btn { margin-top: .7rem; justify-content: center; }
  .nav__toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line-strong);
    border-radius: 11px; background: var(--surface); color: var(--brand); cursor: pointer;
    -webkit-tap-highlight-color: transparent; transition: background .15s ease, border-color .15s ease; }
  .nav__toggle:hover, .nav__toggle[aria-expanded="true"] { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); border-color: var(--brand); }
  .nav__toggle svg { width: 19px; height: 19px; }
}

/* Reveal-on-scroll (progressive; no-JS shows everything) */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ============================================================================
   Apple-style presentation layer — used by the HOME page (opt-in `a-`/`h-`/
   device/panel classes). Bold system sans (SF Pro on Apple devices), big type,
   generous spacing, large rounded panels, device mockups + live waveform, and
   tasteful "poppy" gradients. Other pages keep the editorial serif system.
   ========================================================================== */
:root { --pop-1:#1159E0; --pop-2:#5A8EF0; --pop-3:#B08655; --ap-r:30px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --pop-1:#7EA6F6; --pop-2:#A3C0F9; --pop-3:#D3AB7C; } }
:root[data-theme="dark"] { --pop-1:#7EA6F6; --pop-2:#A3C0F9; --pop-3:#D3AB7C; }
:root[data-theme="light"] { --pop-1:#1159E0; --pop-2:#5A8EF0; --pop-3:#B08655; }

.wrap-wide { width:100%; max-width:1240px; margin-inline:auto; padding-inline:var(--gutter); }
.h-sect { padding-block: clamp(64px,10vw,132px); }
.h-sect--tight { padding-block: clamp(40px,6vw,76px); }
.stack-lg > * + * { margin-top:1.5rem; }

.a-eyebrow { font-family:var(--sans); font-weight:700; font-size:clamp(.95rem,1.4vw,1.1rem); color:var(--pop-1); margin:0 0 1rem; }
.a-display { font-family:var(--display); font-weight:600; letter-spacing:-0.035em; line-height:1.03; font-size:clamp(2.9rem,8.2vw,6rem); margin:0; text-wrap:balance; }
.a-h2 { font-family:var(--display); font-weight:600; letter-spacing:-0.03em; line-height:1.06; font-size:clamp(2.1rem,5.2vw,3.7rem); margin:0; text-wrap:balance; }
.a-h3 { font-family:var(--display); font-weight:600; letter-spacing:-0.02em; line-height:1.12; font-size:clamp(1.45rem,2.5vw,2rem); margin:0; }
.a-sub { font-family:var(--sans); font-weight:500; font-size:clamp(1.12rem,2vw,1.55rem); line-height:1.42; letter-spacing:-0.01em; color:var(--muted); margin:0; }
.a-sub b, .a-lead { color:var(--ink); font-weight:600; }
.a-center { text-align:center; } .a-center .a-sub, .a-center .a-cta { margin-inline:auto; max-width:34ch; }
.a-center .a-cta { justify-content:center; max-width:none; }
.pop-word { background:linear-gradient(115deg,var(--pop-1),var(--pop-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }

.a-cta { display:flex; flex-wrap:wrap; gap:.9rem 1.4rem; align-items:center; }
.btn-pill { display:inline-flex; align-items:center; gap:.5em; font-family:var(--sans); font-weight:600; font-size:1.05rem; text-decoration:none; padding:.8em 1.7em; border-radius:999px; border:1px solid transparent; transition:transform .12s ease, background .15s, color .15s; }
.btn-pill:active { transform:translateY(1px); }
.btn-fill { background:var(--brand); color:var(--on-brand); } .btn-fill:hover { background:var(--brand-ink); }
.btn-link2 { color:var(--pop-1); font-weight:600; text-decoration:none; } .btn-link2:hover { text-decoration:underline; }
.btn-link2 .btn__arrow { transition:transform .15s ease; display:inline-block; } .btn-link2:hover .btn__arrow { transform:translateX(3px); }

/* Panels */
.panel { border-radius:var(--ap-r); padding:clamp(30px,5vw,64px); background:var(--surface); border:1px solid var(--line); overflow:hidden; position:relative; }
.panel--tint { background:linear-gradient(180deg, color-mix(in srgb,var(--brand) 5%,var(--surface-2)), var(--surface)); }
.panel--dark { background:radial-gradient(130% 120% at 50% -10%, #57524D 0%, #2B2825 62%); color:#FBEEDE; border-color:#45403B; }
.panel--dark .a-sub { color:#CFC4B6; } .panel--dark .a-lead, .panel--dark b { color:#fff; } .panel--dark .a-eyebrow { color:var(--pop-2); }
.panel--pop { background:linear-gradient(160deg,#1A63EA,#0450D8); color:#FEF5E6; border:0; }
.panel--pop .a-sub { color:rgba(254,245,230,.86); } .panel--pop .a-eyebrow { color:rgba(254,245,230,.78); }
.panel--pop .a-sub b, .panel--pop .a-lead { color:#fff; }
.panel--pop .btn-link2 { color:#FEF5E6; }
.panel--pop .btn-fill { background:#FEF5E6; color:#1159E0; } .panel--pop .btn-fill:hover { background:#fff; }
.pgrid { display:grid; grid-template-columns:1fr 1fr; gap:clamp(16px,2.2vw,24px); }
@media (max-width:820px){ .pgrid { grid-template-columns:1fr; } }
.panel-split { display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,5vw,60px); align-items:center; }
.panel-split--flip .ps-media { order:-1; }
@media (max-width:860px){ .panel-split { grid-template-columns:1fr; } .panel-split--flip .ps-media { order:0; } }
.ps-media { display:flex; justify-content:center; }

/* iPhone device */
.device { width:min(300px,72vw); aspect-ratio:295/610; background:linear-gradient(160deg,#3A3633,#1B1917); border-radius:46px; padding:11px; position:relative; box-shadow:0 40px 80px -30px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.06); flex:none; }
.device--sm { width:min(252px,62vw); }
.device__island { position:absolute; top:20px; left:50%; transform:translateX(-50%); width:78px; height:22px; background:#04060a; border-radius:13px; z-index:6; }
.device__screen { width:100%; height:100%; border-radius:35px; overflow:hidden; background:var(--ground); position:relative; display:flex; flex-direction:column; }

/* App screens */
.scr { flex:1; display:flex; flex-direction:column; gap:11px; padding:46px 15px 18px; font-family:var(--sans); background:var(--ground); }
.scr-h { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.scr-h b { font-size:1.02rem; font-weight:700; letter-spacing:-.02em; color:var(--ink); }
.scr-h span { font-family:var(--mono); font-size:.6rem; color:var(--muted); }
.scr-card { background:var(--surface); border:1px solid var(--line); border-radius:15px; padding:11px 13px; }
.scr-label { font-family:var(--mono); font-size:.58rem; letter-spacing:.07em; text-transform:uppercase; color:var(--muted); margin:0; }
.scr-txt { font-size:.8rem; color:var(--ink); line-height:1.38; margin:3px 0 0; }
.chip-rec { align-self:center; display:inline-flex; align-items:center; gap:.4em; font-weight:600; font-size:.76rem; color:#c33a2c; }
.chip-rec .dot { width:8px; height:8px; border-radius:50%; background:#d94436; animation:pulse 1.4s ease-in-out infinite; }
@media (prefers-color-scheme:dark){ :root:not([data-theme="light"]) .chip-rec { color:#ef8b80; } }
:root[data-theme="dark"] .chip-rec { color:#ef8b80; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.wave { display:flex; align-items:center; justify-content:center; gap:4px; height:112px; margin:4px 0; }
.wave i { display:block; width:5px; height:58px; border-radius:4px; background:var(--brand); transform:scaleY(.28); transform-origin:center; animation:wv 1.1s ease-in-out infinite; }
@keyframes wv { 0%,100%{transform:scaleY(.2)} 50%{transform:scaleY(1)} }
.wave i:nth-child(8n+1){animation-delay:-.90s} .wave i:nth-child(8n+2){animation-delay:-.20s;animation-duration:1.3s}
.wave i:nth-child(8n+3){animation-delay:-.55s} .wave i:nth-child(8n+4){animation-delay:-.05s;animation-duration:.9s}
.wave i:nth-child(8n+5){animation-delay:-.75s} .wave i:nth-child(8n+6){animation-delay:-.35s;animation-duration:1.2s}
.wave i:nth-child(8n+7){animation-delay:-.62s} .wave i:nth-child(8n){animation-delay:-.15s;animation-duration:1s}
.scr-time { text-align:center; font-family:var(--mono); font-size:1.55rem; font-weight:600; color:var(--ink); letter-spacing:.02em; }
.scr-ctrls { display:flex; justify-content:center; align-items:center; gap:16px; margin-top:auto; }
.ctl { width:44px; height:44px; border-radius:50%; border:1px solid var(--line-strong); display:grid; place-items:center; background:var(--surface); color:var(--ink); }
.ctl svg { width:18px; height:18px; }
.ctl--rec { width:58px; height:58px; border-radius:50%; display:grid; place-items:center; background:#c1503f; border:0; } .ctl--rec span { width:19px; height:19px; border-radius:5px; background:#fff; display:block; }
.scr-consent { text-align:center; font-size:.66rem; color:var(--muted); }
.tab-row { display:flex; gap:5px; }
.tab { font-size:.7rem; font-weight:600; padding:.34em .7em; border-radius:999px; color:var(--muted); }
.tab--on { background:var(--brand); color:var(--on-brand); }
.ai-item { display:flex; gap:8px; align-items:flex-start; font-size:.78rem; color:var(--ink); line-height:1.3; }
.ai-item .bx { width:14px; height:14px; border-radius:4px; border:1.5px solid var(--brand); margin-top:2px; flex:none; }
.btn-send { margin-top:auto; text-align:center; background:var(--brand); color:var(--on-brand); font-weight:700; font-size:.82rem; padding:.72em; border-radius:12px; }
.bub { max-width:84%; padding:8px 11px; border-radius:15px; font-size:.78rem; line-height:1.34; }
.bub--you { align-self:flex-end; background:var(--brand); color:var(--on-brand); border-bottom-right-radius:5px; }
.bub--ai { align-self:flex-start; background:var(--surface); border:1px solid var(--line); color:var(--ink); border-bottom-left-radius:5px; }

/* Hardware product cards */
.prod { display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(14px,1.8vw,20px); }
@media (max-width:900px){ .prod { grid-template-columns:repeat(2,1fr); } }
@media (max-width:520px){ .prod { grid-template-columns:1fr; } }
.prod-card { background:var(--surface); border:1px solid var(--line); border-radius:24px; padding:28px 22px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:10px; }
.prod-ico { width:62px; height:62px; border-radius:18px; display:grid; place-items:center; background:color-mix(in srgb,var(--brand) 12%,var(--surface)); color:var(--brand); }
.prod-ico svg { width:30px; height:30px; }
.prod-card h3 { font-family:var(--display); font-weight:600; letter-spacing:-.02em; font-size:1.15rem; margin:.2rem 0 0; }
.prod-card p { color:var(--muted); font-size:.92rem; margin:0; }

/* Hero glow */
.home-hero { position:relative; overflow:hidden; }
.home-hero::before { content:""; position:absolute; z-index:0; top:-8%; left:50%; transform:translateX(-50%); width:min(920px,124vw); height:640px; background:radial-gradient(closest-side, color-mix(in srgb,var(--pop-2) 46%, transparent), transparent 72%); opacity:.5; pointer-events:none; }
.home-hero > * { position:relative; z-index:1; }

/* Coaching illustration (placeholder for real photography) */
.illus { width:100%; border-radius:var(--ap-r); overflow:hidden; aspect-ratio:16/10; background:linear-gradient(140deg,var(--pop-1),var(--pop-2) 58%,var(--pop-3)); position:relative; }
.illus svg { position:absolute; inset:0; width:100%; height:100%; display:block; }
.illus__tag { position:absolute; left:14px; bottom:12px; font-family:var(--mono); font-size:.6rem; color:rgba(255,255,255,.9); background:rgba(0,0,0,.22); padding:.32em .6em; border-radius:6px; }

/* Big product-name reveal + photography */
.a-mega { font-family:var(--display); font-weight:500; letter-spacing:-0.035em; line-height:.9; font-size:clamp(4.5rem,17vw,11rem); margin:0; }
.a-vision { font-family:var(--display); font-weight:600; letter-spacing:-0.02em; color:var(--ink); font-size:clamp(1.35rem,3vw,2.1rem); line-height:1.2; margin:0; }
.photo { border-radius:var(--ap-r); overflow:hidden; box-shadow:0 34px 74px -32px rgba(0,0,0,.42); border:1px solid var(--line); }
.photo img { display:block; width:100%; height:100%; object-fit:cover; }
.photo--hero { aspect-ratio:16/9; }
.photo--tall { aspect-ratio:4/5; height:100%; }
@media (max-width:860px){ .photo--tall { aspect-ratio:4/3; } }

/* ---- Apple-layer vertical rhythm ------------------------------------------
   The a-* type classes set margin:0 and are defined AFTER .stack-lg, so at
   equal specificity their margin:0 was defeating the stack's row spacing — a
   heading and the paragraph beneath it rendered flush (0px) across every page.
   These adjacent-sibling rules are declared last so they win, and they give
   size-aware breathing room whether or not a .stack-lg wrapper is present.
   Spacing scales with the heading above: the bigger the type, the more air. */
.a-eyebrow { margin-bottom: clamp(.6rem, 1vw, .85rem); }   /* label hugs its heading */
* + .a-mega     { margin-top: clamp(1rem, 2vw, 1.6rem); }
/* space BEFORE a heading preceded by a sibling (e.g. a label+tag row) — small,
   and it collapses with an eyebrow's margin-bottom so normal stacks don't grow. */
* + .a-display, * + .a-h2, * + .a-h3 { margin-top: clamp(.6rem, 1vw, .85rem); }
.a-mega + *     { margin-top: clamp(1.1rem, 2.2vw, 1.8rem); }
.a-display + *  { margin-top: clamp(1.05rem, 1.9vw, 1.55rem); }
.a-vision + *   { margin-top: clamp(.95rem, 1.7vw, 1.35rem); }
.a-h2 + *       { margin-top: clamp(1rem, 1.7vw, 1.4rem); }
.a-h3 + *       { margin-top: clamp(.7rem, 1.2vw, 1.05rem); }
* + .a-sub      { margin-top: clamp(1rem, 1.7vw, 1.4rem); }
* + .a-cta      { margin-top: clamp(1.5rem, 2.6vw, 2.1rem); }
* + .ticks      { margin-top: clamp(1.15rem, 2vw, 1.5rem); }
.a-sub + .a-sub { margin-top: clamp(.7rem, 1.2vw, 1rem); }

/* ---- Wide-window mockup (iPad / Mac panes) ------------------------------- */
.win { margin-top:clamp(28px,4vw,44px); background:var(--surface); border:1px solid var(--line-strong); border-radius:18px; overflow:hidden; box-shadow:0 34px 70px -34px rgba(44,44,44,.4); max-width:100%; }
.win__bar { display:flex; gap:7px; padding:11px 14px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.win__bar i { width:11px; height:11px; border-radius:50%; background:var(--line-strong); display:block; }
.win__body { display:grid; grid-template-columns:.8fr 1.1fr 2.4fr; min-height:300px; font-family:var(--sans); }
.win__pane { padding:16px 14px; display:flex; flex-direction:column; gap:8px; min-width:0; }
.win__pane + .win__pane { border-left:1px solid var(--line); }
.win__side { background:color-mix(in srgb,var(--brand) 5%,var(--surface)); }
.win__row { font-size:.84rem; color:var(--muted); padding:6px 9px; border-radius:8px; margin:0; }
.win__row--on { background:var(--brand); color:var(--on-brand); font-weight:600; }
.win__item { display:flex; flex-direction:column; gap:2px; padding:9px 10px; border-radius:10px; border:1px solid transparent; }
.win__item b { font-size:.84rem; color:var(--ink); } .win__item span { font-size:.72rem; color:var(--muted); font-family:var(--mono); }
.win__item--on { border-color:color-mix(in srgb,var(--brand) 40%,var(--line)); background:color-mix(in srgb,var(--brand) 7%,var(--surface)); }
.win__detail { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.win__col { display:flex; flex-direction:column; gap:6px; min-width:0; }
.win__col--quiet { border-left:1px solid var(--line); padding-left:16px; }
.win__col .scr-txt { font-size:.84rem; }
.win__col .scr-txt b { color:var(--brand); font-weight:600; margin-right:.3em; }
@media (max-width:900px){ .win__body { grid-template-columns:1fr 2fr; } .win__side { display:none; } .win__list { border-left:0 !important; } .win__detail { grid-template-columns:1fr; } .win__col--quiet { border-left:0; padding-left:0; border-top:1px solid var(--line); padding-top:12px; } }
@media (max-width:560px){ .win__body { grid-template-columns:1fr; } .win__list { display:none; } .win__detail { border-left:0 !important; } }
