/* Ardenta — "instrument panel for the body" · frontend-design redesign
 * Warm porcelain · ember heat accent · coal gauge-bezels · concentric-ring signature.
 * Display: Archivo · Body: Hanken Grotesk · Data: Space Mono.
 * ========================================================================= */

:root {
  /* core palette */
  --paper:   #F8F7F4;   /* warm porcelain instrument face */
  --paper-2: #FDFCFA;   /* raised card surface */
  --ink:     #17140F;   /* warm near-black */
  --ink-2:   #4E4839;   /* warm graphite (secondary text) */
  --haze:    #7C7565;   /* warm muted (large/labels only) */
  --rule:    #E5E0D6;   /* hairline */
  --rule-2:  #EFEBE2;
  --coal:    #1A1712;   /* dark gauge-bezel panel */
  --coal-2:  #262019;
  --on-coal: #F4F1EA;   /* text on coal */
  --on-coal-2: #B6AE9C;

  /* signature heat */
  --ember:     #FF4D17;            /* fills, strokes, large accents */
  --ember-ink: #C2390E;            /* readable accent text on porcelain */
  --on-ember:  #1C0A03;            /* dark text on ember fill */

  /* data spectrum — ring/gauge encodings only (semantic, not decoration) */
  --move:   #FF2D55;
  --burn:   #FF8A1F;
  --cardio: #12C2D6;
  --score:  #6C4DFF;

  /* spacing (4-pt) */
  --s-2xs: .5rem; --s-xs: .75rem; --s-sm: 1rem; --s-md: 1.5rem;
  --s-lg: 2rem; --s-xl: 3rem; --s-2xl: 4.5rem; --s-3xl: 7rem;

  /* type scale */
  --t-sm: .875rem; --t-base: 1.0625rem; --t-md: 1.1875rem; --t-lg: 1.5rem;
  --t-xl: 2rem; --t-2xl: clamp(2.2rem, 4.5vw, 3.25rem);
  --t-3xl: clamp(2.8rem, 7vw, 5rem); --t-display: clamp(3.4rem, 9.5vw, 7.5rem);

  --radius: 18px; --radius-sm: 12px; --radius-pill: 999px;
  --maxw: 1180px;

  --shadow: 0 18px 44px -26px rgba(28, 20, 10, 0.45);
  --shadow-lift: 0 28px 64px -30px rgba(28, 20, 10, 0.5);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --dur: 220ms;

  --font-display: "Archivo", "Noto Sans Thai", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-mono: "Space Mono", "Noto Sans Thai", ui-monospace, "SFMono-Regular", monospace;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--paper); color: var(--ink);
  font-size: var(--t-base); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display); font-weight: 800; font-style: normal;
  line-height: 0.96; letter-spacing: -0.02em; overflow-wrap: anywhere; min-width: 0;
}
.grad-text { color: var(--ember-ink); } /* legacy hook → solid accent */

/* instrument label (mono eyebrow) */
.label, .eyebrow {
  font-family: var(--font-mono); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.18em; font-size: .78rem; color: var(--ember-ink);
}
.label .tick { color: var(--haze); }

:focus-visible { outline: 3px solid var(--score); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 50%; top: -64px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 0 0 10px 10px;
  z-index: 1000; font-family: var(--font-mono); transition: top var(--dur) var(--ease-out);
}
.skip-link:focus-visible { top: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3.25rem, 8vw, 6.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em;
  white-space: nowrap; padding: 13px 24px; min-height: 52px; border-radius: var(--radius-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-ember { background: var(--ember); color: var(--on-ember); }
.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255, 77, 23, 0.6); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-oncoal { background: var(--paper); color: var(--ink); }
.btn-oncoal:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* keep legacy button hooks (privacy/support markup) on-brand */
.btn-energy { background: var(--ember); color: var(--on-ember); }
.btn-energy:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255,77,23,.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-accent { background: var(--ember); color: var(--on-ember); }

/* App Store badge */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px; background: var(--ink); border: 2px solid var(--ink);
  color: var(--paper); border-radius: 13px; padding: 9px 18px; min-height: 56px; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.appstore-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.appstore-badge svg { width: 26px; height: 26px; flex: none; }
.appstore-badge .ab-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge .ab-small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; opacity: .85; }
.appstore-badge .ab-big { font-family: var(--font-display); font-size: 20px; font-weight: 700; }

/* ---------- nav (instrument header) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--rule); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800;
  font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); }
.brand .mark { width: 34px; height: 34px; flex: none; border-radius: 8px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: 9px 13px; font-family: var(--font-mono); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .1em; color: var(--ink-2); white-space: nowrap; transition: color var(--dur) var(--ease-out); }
.nav-links a:hover { color: var(--ember-ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { min-height: 44px; padding: 8px 18px; font-size: .95rem; }
.nav-toggle { display: none; background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  width: 46px; height: 46px; border-radius: 10px; cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }
.mobile-menu { display: none; position: fixed; inset: 64px 0 auto 0; z-index: 99; background: var(--paper);
  border-bottom: 1px solid var(--rule); padding: 14px 18px 22px; }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 12px; border-radius: 10px; color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.mobile-menu a:hover { background: var(--rule-2); }
.mobile-menu .btn { width: 100%; margin-top: 10px; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: var(--t-display); font-weight: 900; margin: var(--s-md) 0 var(--s-sm); max-width: 13ch; }
.hero h1 .em { color: var(--ember-ink); }
.hero .lede { color: var(--ink-2); font-size: clamp(1.1rem, 1.8vw, 1.35rem); max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 13px; margin-top: var(--s-lg); align-items: center; }
.hero-micro { font-family: var(--font-mono); font-size: .8rem; color: var(--haze); margin-top: var(--s-md); letter-spacing: .02em; }
.hero-micro b { color: var(--ink); font-weight: 700; }

/* ring signature stage */
.ring-stage { position: relative; display: grid; place-items: center; }
.ring-stage::before { content: ""; position: absolute; width: 84%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,23,.16), transparent 66%); }
.ring-wrap { position: relative; width: min(420px, 84vw); aspect-ratio: 1; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { fill: none; stroke: var(--rule); stroke-width: 15; opacity: .7; }
.ring .arc { fill: none; stroke-width: 15; stroke-linecap: round; stroke-dashoffset: var(--off); }
@media (prefers-reduced-motion: no-preference) {
  .ring .arc { transition: stroke-dashoffset 1.5s var(--ease-out); }
  .ring-wrap:not(.drawn) .ring .arc { stroke-dashoffset: var(--c); }
}
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-center .score { font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 7vw, 4.5rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.ring-center .of { font-family: var(--font-mono); font-size: .9rem; color: var(--haze); }
.ring-center .cap { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .16em; font-size: .68rem; color: var(--ember-ink); margin-top: 8px; }
.ring-legend { display: flex; gap: 16px; justify-content: center; margin-top: var(--s-md); flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .76rem; color: var(--ink-2); }
.ring-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* ---------- readout strip ---------- */
.readout { border-block: 1px solid var(--rule); background: var(--paper-2); }
.readout ul { list-style: none; margin: 0; display: flex; flex-wrap: wrap; } /* padding-inline comes from .container */
.readout li { flex: 1 1 auto; padding: clamp(1rem, 3vw, 1.5rem) clamp(1rem, 3vw, 1.75rem); border-left: 1px solid var(--rule);
  display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.readout li:first-child { border-left: none; }
.readout .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--ink); font-variant-numeric: tabular-nums; }
.readout .v em { font-style: normal; color: var(--ember-ink); }
.readout .k { font-family: var(--font-mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--haze); }

/* ---------- section heads ---------- */
.head { max-width: 46ch; margin-bottom: var(--s-xl); }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: var(--t-2xl); margin-top: 12px; }
.head h2 .em { color: var(--ember-ink); }
.head p { color: var(--ink-2); font-size: var(--t-md); margin-top: 12px; }

/* ---------- feature panels (instrument) ---------- */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem); display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.panel:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--dot) 50%, var(--rule)); }
.panel .ptop { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: var(--s-md); }
.panel .pdot { width: 34px; height: 34px; flex: none; }
.panel .pno { font-family: var(--font-mono); font-size: .8rem; color: var(--haze); letter-spacing: .1em; }
.panel h3 { font-size: var(--t-lg); }
.panel p { color: var(--ink-2); margin-top: 9px; font-size: 1.02rem; }
.panel ul { list-style: none; padding: 0; margin-top: var(--s-md); display: grid; gap: 8px; }
.panel li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; color: var(--ink-2); }
.panel li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); margin-top: 7px; flex: none; }
.p-move { --dot: var(--move); } .p-burn { --dot: var(--burn); } .p-cardio { --dot: var(--cardio); } .p-score { --dot: var(--score); }

/* ---------- screenshots (clean figures, no device chrome) ---------- */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); align-items: start; }
.shot { margin: 0; }
.shot img { width: 100%; border-radius: 22px; border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--paper-2); }
.shot figcaption { font-family: var(--font-mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--haze); margin-top: 14px; }
.shot figcaption b { color: var(--ink); font-weight: 700; display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: 1rem; margin-bottom: 2px; }

/* ---------- iPad band ---------- */
.ipad-band { background: var(--paper-2); border-block: 1px solid var(--rule); }
.ipad-row { display: flex; gap: 22px; overflow-x: auto; padding: 6px 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.ipad-row::-webkit-scrollbar { display: none; }
.ipad-card { scroll-snap-align: center; flex: 0 0 auto; width: min(330px, 78vw); margin: 0; }
.ipad-card img { width: 100%; border-radius: 16px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.ipad-card figcaption { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--haze); margin-top: 12px; }

/* ---------- Mac band (landscape windows) ---------- */
.mac-band { border-block: 1px solid var(--rule); }
.mac-row { display: flex; gap: 22px; overflow-x: auto; padding: 6px 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mac-row::-webkit-scrollbar { display: none; }
.mac-card { scroll-snap-align: center; flex: 0 0 auto; width: min(580px, 90vw); margin: 0; }
.mac-card img { width: 100%; border-radius: 12px; border: 1px solid var(--rule); box-shadow: var(--shadow); }
.mac-card figcaption { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--haze); margin-top: 12px; }

/* ---------- coal privacy band ---------- */
.coal-band { background: var(--coal); color: var(--on-coal); }
.coal-band .head h2 { color: var(--on-coal); } .coal-band .head h2 .em { color: var(--ember); }
.coal-band .head p { color: var(--on-coal-2); }
.coal-band .label { color: var(--ember); }
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: var(--s-lg); }
.ro { background: var(--coal-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: var(--s-lg); }
.ro .ck { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,77,23,.16); color: var(--ember); margin-bottom: var(--s-sm); }
.ro .ck svg { width: 22px; height: 22px; }
.ro h3 { color: var(--on-coal); font-size: var(--t-md); }
.ro p { color: var(--on-coal-2); margin-top: 8px; font-size: .98rem; }
.ro strong { color: var(--on-coal); }
.coal-band .btn-line { color: var(--on-coal); border-color: rgba(255,255,255,.4); }
.coal-band .btn-line:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

/* ---------- ember CTA ---------- */
.cta { text-align: center; }
.cta .panel-ember { background: var(--ember); color: var(--on-ember); border-radius: 28px; padding: clamp(2.5rem, 7vw, 5rem) 1.5rem; }
.cta h2 { color: var(--on-ember); font-size: var(--t-3xl); max-width: 16ch; margin-inline: auto; }
.cta p { color: rgba(28,10,3,.82); font-size: var(--t-md); max-width: 42ch; margin: 14px auto 0; }
.cta .hero-cta { justify-content: center; margin-top: var(--s-lg); }
.cta .btn-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta .btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.cta .appstore-badge { background: var(--ink); border-color: var(--ink); }

/* ---------- footer (mono colophon) ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--rule); }
.colophon { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding-block: var(--s-2xl) var(--s-lg); }
.colophon .cbrand { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; display: inline-flex; align-items: center; gap: 10px; }
.colophon .cbrand .mark { width: 30px; height: 30px; border-radius: 7px; object-fit: contain; }
.colophon p { color: var(--ink-2); font-size: .98rem; margin-top: 12px; max-width: 34ch; }
.colophon h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; color: var(--haze); margin-bottom: 12px; }
.colophon ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.colophon a { color: var(--ink-2); transition: color var(--dur) var(--ease-out); white-space: nowrap; }
.colophon a:hover { color: var(--ember-ink); }
.foot-base { border-top: 1px solid var(--rule); padding-block: var(--s-md) var(--s-lg); }
.foot-base .line { font-family: var(--font-mono); font-size: .76rem; color: var(--haze); letter-spacing: .04em; }
.foot-base .disclaimer { color: var(--haze); font-size: .82rem; margin-top: 10px; max-width: 82ch; }
.foot-base .credits { color: var(--haze); font-size: .8rem; margin-top: 8px; }
.foot-base .credits a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.foot-base .credits a:hover { color: var(--ember-ink); }

/* ---------- legal / prose pages ---------- */
.legal { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3.5rem, 9vw, 6rem); }
.legal-head { max-width: 760px; }
.legal-head h1 { font-size: var(--t-3xl); margin-top: 10px; }
.legal-head .updated { font-family: var(--font-mono); color: var(--haze); margin-top: 12px; font-size: .85rem; }
.legal-body { max-width: 760px; margin-top: var(--s-xl); }
.legal-body h2 { font-size: var(--t-xl); margin-top: var(--s-xl); }
.legal-body h3 { font-size: 1.2rem; margin-top: var(--s-lg); font-family: var(--font-body); font-weight: 700; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.7; }
.legal-body p { margin-top: 14px; }
.legal-body ul { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--ember-ink); text-decoration: underline; text-underline-offset: 3px; }
.callout { background: var(--paper-2); border: 1px solid var(--rule); border-left: 4px solid var(--ember); border-radius: 12px; padding: 20px 22px; margin-top: var(--s-lg); }
.callout p { margin-top: 0; color: var(--ink); }
.toc { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px 24px; margin-top: var(--s-lg); }
.toc h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; font-size: .74rem; color: var(--haze); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.toc a { color: var(--ink-2); } .toc a:hover { color: var(--ember-ink); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center;
  padding-block: var(--s-lg); font-family: var(--font-mono); font-size: .82rem; color: var(--haze); }
.footer-bottom a { color: var(--ink-2); } .footer-bottom a:hover { color: var(--ember-ink); }

/* ---------- reveal ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- platforms / trust strip ---------- */
.platforms { background: var(--paper-2); border-bottom: 1px solid var(--rule); }
.plat-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding-block: clamp(1rem, 3vw, 1.4rem); }
.plat-lead { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.plat-lead strong { color: var(--ember-ink); }
.plat-chips { list-style: none; padding: 0; margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.plat-chips li { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 6px 12px; background: var(--paper); white-space: nowrap; }
.plat-chips li.sep { border-color: color-mix(in srgb, var(--ember) 40%, var(--rule)); color: var(--ember-ink); }

/* ---------- spotlights (deep-dive feature rows) ---------- */
.spotlights { border-bottom: 1px solid var(--rule); }
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding-block: clamp(2.75rem, 7vw, 5rem); }
.spotlight.flip .sp-media { order: -1; }
.sp-body { max-width: 48ch; }
.sp-body h2 { font-size: var(--t-2xl); margin-top: 12px; }
.sp-body h2 .em { color: var(--ember-ink); }
.sp-body > p { color: var(--ink-2); font-size: var(--t-md); margin-top: 14px; }
.sp-body p em { font-style: normal; color: var(--ink); font-weight: 600; }
.sp-list { list-style: none; padding: 0; margin-top: var(--s-lg); display: grid; gap: 12px; }
.sp-list li { position: relative; padding-left: 34px; color: var(--ink-2); font-size: 1.05rem; }
.sp-list li::before { content: ""; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--glow) 18%, transparent); }
.sp-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 9px; height: 5px;
  border-left: 2px solid var(--glow); border-bottom: 2px solid var(--glow); transform: rotate(-45deg); }
.sp-list em { font-style: normal; color: var(--ink); font-weight: 600; }

.sp-media { display: grid; place-items: center; }
.sp-media .stage { position: relative; display: grid; place-items: center; width: min(360px, 78%); }
.sp-media .stage::before { content: ""; position: absolute; inset: -14%; border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--glow) 26%, transparent), transparent 64%); }
.sp-media img { position: relative; z-index: 1; border-radius: 30px; border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift); background: var(--paper-2); }
.sp-media.duo .stage { width: min(460px, 96%); }
.sp-media.duo .front { position: relative; z-index: 2; width: 60%; margin-left: auto; transform: rotate(2.5deg); }
.sp-media.duo .back { position: absolute; z-index: 1; width: 55%; left: 0; bottom: 5%; transform: rotate(-5deg);
  opacity: .94; border-radius: 26px; }
.sp-media.duo .front { border-radius: 26px; }

/* ---------- full screens row ---------- */
.screens-band { background: var(--paper-2); border-block: 1px solid var(--rule); }
.phone-row { display: flex; gap: clamp(16px, 3vw, 26px); overflow-x: auto; padding: 6px 0 18px;
  scroll-snap-type: x mandatory; scrollbar-width: none; }
.phone-row::-webkit-scrollbar { display: none; }
.phone-card { scroll-snap-align: center; flex: 0 0 auto; width: min(248px, 64vw); margin: 0; }
.phone-card img { width: 100%; border-radius: 30px; border: 1px solid var(--rule); box-shadow: var(--shadow); background: var(--paper-2); }
.phone-card figcaption { font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--haze); margin-top: 14px; }
.phone-card figcaption b { color: var(--ink); font-weight: 700; display: block; font-family: var(--font-body); text-transform: none; letter-spacing: 0; font-size: .98rem; margin-bottom: 2px; }
.row-hint { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--haze); text-align: center; margin-top: 6px; }

/* ---------- ecosystem grid ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.eco-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 1.9rem);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out); }
.eco-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--ember) 35%, var(--rule)); }
.eco-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ember) 14%, transparent); color: var(--ember-ink); margin-bottom: var(--s-sm); }
.eco-ic svg { width: 24px; height: 24px; }
.eco-card h3 { font-size: var(--t-md); }
.eco-card p { color: var(--ink-2); margin-top: 8px; font-size: 1rem; }
.eco-card em { font-style: normal; color: var(--ink); font-weight: 600; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.price-card { position: relative; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(1.6rem, 3vw, 2.2rem); display: flex; flex-direction: column; }
.price-card.featured { background: var(--coal); color: var(--on-coal); border-color: var(--coal); box-shadow: var(--shadow-lift); }
.pc-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--ember); color: var(--on-ember); font-family: var(--font-mono); font-size: .66rem; letter-spacing: .06em;
  text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius-pill); }
.pc-name { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--ember-ink); }
.price-card.featured .pc-name { color: var(--ember); }
.pc-price { margin-top: 12px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-amt { font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 4vw, 2.8rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pc-per { font-family: var(--font-mono); font-size: .85rem; color: var(--haze); }
.price-card.featured .pc-per { color: var(--on-coal-2); }
.pc-sub { margin-top: 10px; color: var(--ink-2); font-size: 1rem; flex: 1 0 auto; }
.price-card.featured .pc-sub { color: var(--on-coal-2); }
.pc-btn { margin-top: var(--s-lg); width: 100%; }
.price-card.featured .btn-line { color: var(--on-coal); border-color: rgba(255,255,255,.4); }
.unlocks { margin-top: var(--s-2xl); text-align: center; }
.unlocks h3 { font-family: var(--font-mono); font-weight: 400; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; color: var(--haze); }
.unlock-chips { list-style: none; padding: 0; margin: var(--s-md) auto 0; max-width: 840px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.unlock-chips li { font-size: .92rem; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 8px 16px; }
.unlock-chips li::before { content: "✓\00a0"; color: var(--ember-ink); font-weight: 700; }
.price-fine { max-width: 72ch; margin: var(--s-xl) auto 0; text-align: center; color: var(--haze); font-size: .84rem; line-height: 1.65; }

/* ---------- FAQ (native disclosure) ---------- */
.faq-band { background: var(--paper-2); border-block: 1px solid var(--rule); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--font-display); font-weight: 700;
  font-size: 1.12rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  transition: color var(--dur) var(--ease-out); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ember-ink); }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); font-size: 1.5rem; line-height: 1; color: var(--ember-ink);
  flex: none; transition: transform var(--dur) var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 22px 20px; }
.faq-a p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.65; }

/* ---------- hero art (real screenshot + floating data chips) ---------- */
.hero-art { position: relative; display: grid; place-items: center; isolation: isolate; }
.ha-glow { position: absolute; z-index: 0; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,23,.22), transparent 66%); }
.ha-phone { position: relative; z-index: 1; width: min(290px, 72%); }
.ha-phone img { width: 100%; border-radius: 34px; border: 1px solid var(--rule);
  box-shadow: var(--shadow-lift); background: var(--paper-2); }
.ha-chip { position: absolute; z-index: 2; }
.ha-chip-in { display: flex; align-items: center; gap: 9px; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: 14px; padding: 9px 13px; box-shadow: var(--shadow); white-space: nowrap; }
.ha-chip span { display: flex; flex-direction: column; line-height: 1.16; }
.ha-chip b { font-family: var(--font-display); font-weight: 800; font-size: .98rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.ha-chip em { font-style: normal; font-family: var(--font-mono); font-size: .64rem; letter-spacing: .04em; color: var(--haze); text-transform: uppercase; }
.ha-chip-ai .spark { width: 22px; height: 22px; fill: #6C4DFF; flex: none; }
.ha-chip-ai b { color: #5a3ff0; }
.ha-chip-battery .bolt { width: 20px; height: 20px; fill: #19C37D; flex: none; }
.ha-chip-score .mini-ring { width: 34px; height: 34px; flex: none; transform: rotate(-90deg); }
.ha-chip-score .mini-ring .t { fill: none; stroke: var(--rule); stroke-width: 5; }
.ha-chip-score .mini-ring .a { fill: none; stroke: var(--ember); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 113; stroke-dashoffset: 14; }
.ha-chip-ai { top: 7%; left: -7%; }
.ha-chip-score { top: 33%; right: -11%; }
.ha-chip-battery { bottom: 9%; left: -9%; }

@media (prefers-reduced-motion: no-preference) {
  .ha-glow { animation: glowPulse 6s ease-in-out infinite; }
  .ha-phone { opacity: 0; animation: haRise .85s var(--ease-out) .1s both; }
  .ha-phone img { animation: floatY 6.5s ease-in-out 1s infinite; }
  .ha-chip { opacity: 0; animation: chipIn .6s var(--ease-out) both; }
  .ha-chip-ai { animation-delay: .55s; } .ha-chip-score { animation-delay: .8s; } .ha-chip-battery { animation-delay: 1.05s; }
  .ha-chip-in { animation: floatY 7s ease-in-out infinite; }
  .ha-chip-ai .ha-chip-in { animation-duration: 6s; }
  .ha-chip-battery .ha-chip-in { animation-duration: 8s; animation-delay: .5s; }
  .ha-chip-score .mini-ring .a { stroke-dashoffset: 113; animation: ringDraw 1.4s var(--ease-out) .9s forwards; }
}
@keyframes haRise { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes glowPulse { 0%, 100% { transform: scale(1); opacity: .72; } 50% { transform: scale(1.07); opacity: 1; } }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ringDraw { to { stroke-dashoffset: 14; } }

/* ---------- AI showcase (animated coach demo) ---------- */
.ai-band { background: var(--paper-2); border-block: 1px solid var(--rule); overflow: hidden; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.ai-copy { max-width: 46ch; }
.ai-spark { color: #6C4DFF; }
.ai-copy h2 { font-size: var(--t-2xl); margin-top: 12px; } .ai-copy h2 .em { color: var(--ember-ink); }
.ai-copy > p { color: var(--ink-2); font-size: var(--t-md); margin-top: 14px; }
.ai-list { list-style: none; padding: 0; margin-top: var(--s-lg); display: grid; gap: 11px; }
.ai-list li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 1.03rem; }
.ai-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 6px;
  background: color-mix(in srgb, #6C4DFF 16%, transparent); }
.ai-list li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 4px;
  border-left: 2px solid #6C4DFF; border-bottom: 2px solid #6C4DFF; transform: rotate(-45deg); }
.ai-list b { color: var(--ink); font-weight: 700; }
.ai-badges { display: flex; flex-wrap: wrap; gap: 9px; margin-top: var(--s-lg); }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: .7rem;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); background: var(--paper);
  border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: 7px 13px; }
.ai-badge svg { width: 15px; height: 15px; color: #6C4DFF; flex: none; }

.ai-demo { display: grid; place-items: center; }
.ai-chat { width: min(420px, 100%); background: var(--paper); border: 1px solid var(--rule); border-radius: 24px;
  box-shadow: var(--shadow-lift); padding: 18px 18px 20px; position: relative;
  background-image: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, #6C4DFF 9%, transparent), transparent 60%); }
.ai-chat-top { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--rule-2); }
.ai-ava { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 18px;
  background: linear-gradient(135deg, #7B5Cff, #C44BD6); box-shadow: 0 6px 16px -6px rgba(123,92,255,.7); flex: none; }
.ai-chat-name { font-family: var(--font-display); font-weight: 800; display: flex; flex-direction: column; line-height: 1.15; }
.ai-chat-name em { font-style: normal; font-family: var(--font-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; color: var(--haze); }
.ai-live { width: 9px; height: 9px; border-radius: 50%; background: #19C37D; margin-left: auto; box-shadow: 0 0 0 0 rgba(25,195,125,.5); }
.msg { max-width: 84%; width: fit-content; padding: 11px 15px; border-radius: 16px; font-size: 1rem; margin-top: 10px; line-height: 1.45; }
.msg.user { margin-left: auto; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.msg.user b { color: #fff; }
.msg.bot { margin-right: auto; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink-2); border-bottom-left-radius: 5px; }
.msg.bot b { color: var(--ink); }
.msg.last { display: flex; align-items: center; }
.dots { display: none; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--haze); display: inline-block; }
.txt { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .ai-chat .msg { opacity: 0; transform: translateY(10px); }
  .ai-chat.play .msg { animation: msgIn .5s var(--ease-out) forwards; }
  .ai-chat.play .msg:nth-child(2) { animation-delay: .2s; }
  .ai-chat.play .msg:nth-child(3) { animation-delay: .9s; }
  .ai-chat.play .msg:nth-child(4) { animation-delay: 1.7s; }
  .ai-chat.play .msg:nth-child(5) { animation-delay: 2.5s; }
  .ai-chat .msg.last .dots { display: inline-flex; }
  .ai-chat .msg.last .txt { opacity: 0; width: 0; overflow: hidden; }
  .ai-chat.play .msg.last .dots { animation: dotsOut .3s ease 3.5s forwards; }
  .ai-chat.play .msg.last .dots i { animation: dotPulse 1s ease-in-out infinite; }
  .ai-chat.play .msg.last .dots i:nth-child(2) { animation-delay: .15s; }
  .ai-chat.play .msg.last .dots i:nth-child(3) { animation-delay: .3s; }
  .ai-chat.play .msg.last .txt { animation: txtIn .45s var(--ease-out) 3.6s forwards; }
  .ai-chat.play .ai-live { animation: livePulse 2s ease-out infinite; }
}
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dotPulse { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes dotsOut { to { opacity: 0; width: 0; margin: 0; } }
@keyframes txtIn { from { opacity: 0; } to { opacity: 1; width: auto; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(25,195,125,.5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(25,195,125,0); } }

/* ---------- language switcher ---------- */
.lang-switch { display: inline-flex; align-items: stretch; border: 1px solid var(--rule); border-radius: var(--radius-pill);
  overflow: hidden; background: var(--paper-2); flex: none; }
.lang-switch button { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .03em; line-height: 1;
  padding: 8px 11px; min-height: 40px; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.lang-switch button + button { border-left: 1px solid var(--rule); }
.lang-switch button:hover { color: var(--ember-ink); }
.lang-switch button.active { background: var(--ink); color: var(--paper); }
.lang-switch button:focus-visible { outline: 2px solid var(--score); outline-offset: -2px; }
/* legacy coal-header pages (privacy/support) keep the switch readable on light header */
.site-header .lang-switch { background: var(--paper-2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .ring-stage, .hero-art { order: -1; }
  .hero-art { margin-bottom: var(--s-md); }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-demo { order: -1; }
  .ai-copy { max-width: none; }
  .panels { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .readouts { grid-template-columns: 1fr; }
  .colophon { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .readout li { flex-basis: 50%; }
  .readout li:nth-child(odd) { border-left: none; }
  .spotlight { grid-template-columns: 1fr; gap: clamp(1.5rem, 5vw, 2.5rem); }
  .spotlight .sp-media { order: -1; }
  .sp-body { max-width: none; }
  .sp-media .stage, .sp-media.duo .stage { width: min(420px, 86%); }
  .eco-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; }
  .plat-chips { margin-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .btn, .appstore-badge { width: 100%; }
  .hero-cta .btn, .hero-cta .appstore-badge { width: 100%; }
  .colophon { grid-template-columns: 1fr; gap: 22px; }
  .readout li { flex-basis: 100%; border-left: none; border-top: 1px solid var(--rule); }
  .readout li:first-child { border-top: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .eco-grid { grid-template-columns: 1fr; }
  .plat-lead { width: 100%; }
  .ha-phone { width: min(280px, 66%); }
  .ha-chip-ai { top: 4%; left: 1%; }
  .ha-chip-score { top: 30%; right: 1%; }
  .ha-chip-battery { bottom: 7%; left: 0; }
  .ha-chip-in { padding: 7px 11px; border-radius: 12px; }
  .ha-chip b { font-size: .9rem; } .ha-chip em { font-size: .6rem; }
}
