/* ============================================================
   Chant — product site
   Palette, type and shapes mirror the iOS app (Theme.swift).
   ============================================================ */

:root {
  /* Light palette — Palette.make(dark: false) */
  --bg: #f5ead8;
  --surface: #ebddc5;
  --field: #f9f4ed;
  --fg: #201e1d;
  --muted: #645c50;
  --accent: #c67139;
  --accent2: #7a8a5e;
  --line: rgba(32, 30, 29, .14);
  --on-accent: #f9f4ed;
  --shadow: rgba(32, 30, 29, .16);
  --glass: rgba(245, 234, 216, .72);
  --bezel: #1a1715;

  --fh: "Caprasimo", Georgia, "Times New Roman", serif;
  --fb: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-card: 28px;
  --r-lg: 36px;
  --gut: clamp(20px, 5vw, 72px);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .74, .26, 1);
}

:root[data-theme="dark"] {
  --bg: #1b1917;
  --surface: #272320;
  --field: #211e1b;
  --fg: #f5ead8;
  --muted: #a19786;
  --accent: #f6a06b;
  --accent2: #aebf92;
  --line: rgba(245, 234, 216, .16);
  --on-accent: #1b1917;
  --shadow: rgba(0, 0, 0, .5);
  --glass: rgba(39, 35, 32, .72);
  --bezel: #0c0b0a;
}

* , *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--fb);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.62;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- type ---------- */

h1, h2, h3, .display {
  font-family: var(--fh);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 7.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); line-height: 1.06; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.15; }

p { margin: 0; }

.eyebrow {
  font-size: clamp(.66rem, 1.1vw, .78rem);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.24rem);
  color: var(--muted);
  max-width: 54ch;
  line-height: 1.65;
}

.muted { color: var(--muted); }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}

section { position: relative; }

.band { padding-block: clamp(64px, 11vw, 150px); }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- scroll progress ---------- */

.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 90;
  pointer-events: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: clamp(10px, 2vw, 20px);
  left: 50%;
  translate: -50% 0;
  z-index: 80;
  width: min(calc(100% - 2 * clamp(14px, 4vw, 40px)), 1100px);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 9px 9px 16px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 10px 34px -18px var(--shadow);
  transition: box-shadow .4s var(--ease), background-color .4s var(--ease), padding .4s var(--ease);
}

.nav.is-stuck { box-shadow: 0 16px 44px -20px var(--shadow); }

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fh);
  font-size: 1.15rem;
  letter-spacing: .01em;
  margin-right: auto;
  white-space: nowrap;
}

.brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px -3px var(--shadow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 14px;
  white-space: nowrap;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .25s, background-color .25s;
}

.nav-links a:hover { color: var(--fg); background: color-mix(in srgb, var(--fg) 7%, transparent); }
.nav-links a.active { color: var(--on-accent); background: var(--accent); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}

.icon-btn:hover { color: var(--fg); border-color: var(--fg); }
.icon-btn:active { transform: scale(.93); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .moon { display: none; }
:root[data-theme="dark"] .icon-btn .sun { display: none; }
:root[data-theme="dark"] .icon-btn .moon { display: block; }

.nav-toggle { display: none; }

/* ---------- pill buttons (mirrors Controls.swift PillButton) ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: clamp(.92rem, 1.15vw, 1rem);
  white-space: nowrap;
  transition: transform .22s var(--ease), background-color .3s, border-color .3s, color .3s, box-shadow .3s;
  will-change: transform;
}

.pill:active { transform: scale(.96); }
.pill svg { width: 18px; height: 18px; flex: none; }

.pill.primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 14px 30px -16px var(--accent);
}
.pill.primary:hover { box-shadow: 0 18px 40px -14px var(--accent); }

.pill.secondary {
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
}
.pill.secondary:hover { border-color: var(--fg); }

.pill.ghost { color: var(--muted); padding-inline: 16px; }
.pill.ghost:hover { color: var(--fg); }

.pill.sm { padding: 10px 18px; font-size: .88rem; }

/* ---------- store chip ---------- */

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 13px;
  margin-bottom: 20px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
  transition: background-color .3s, transform .25s var(--ease);
}

.store-chip:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }
.store-chip:active { transform: scale(.97); }

.store-chip .pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: pulse 2.4s ease-in-out infinite;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(108px, 13vw, 158px);
  padding-bottom: clamp(48px, 7vw, 96px);
  overflow: clip;
}

.blobs {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: 0;
  pointer-events: none;
  filter: blur(70px);
  opacity: .5;
}

.blob { position: absolute; border-radius: 50%; }
.blob.a { width: 46vw; height: 46vw; left: -8vw; top: 4vw; background: var(--accent); opacity: .30; animation: drift-a 22s ease-in-out infinite; }
.blob.b { width: 38vw; height: 38vw; right: -6vw; top: -4vw; background: var(--accent2); opacity: .26; animation: drift-b 27s ease-in-out infinite; }
.blob.c { width: 30vw; height: 30vw; left: 40vw; top: 40vw; background: var(--accent); opacity: .16; animation: drift-a 31s ease-in-out infinite reverse; }

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(6vw, 5vw, 0) scale(1.14); }
}
@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.06); }
  50%      { transform: translate3d(-5vw, 7vw, 0) scale(.92); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero h1 { margin-top: .28em; }
.hero h1 .br { display: block; }

.hero .lede { margin-top: 1.2em; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3.4vw, 40px);
}

.trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: clamp(22px, 3vw, 32px);
  font-size: .86rem;
  color: var(--muted);
}

.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent2); flex: none; }

/* ---------- device frames ---------- */

.stage {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.device {
  position: relative;
  width: var(--dw, 300px);
  padding: calc(var(--dw, 300px) * .026);
  background: var(--bezel);
  border-radius: calc(var(--dw, 300px) * .145);
  box-shadow:
    0 2px 0 0 rgba(255, 255, 255, .06) inset,
    0 40px 80px -34px var(--shadow),
    0 8px 24px -14px var(--shadow);
  transition: transform .7s var(--ease);
}

.device::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, .22), transparent 34%, transparent 72%, rgba(255, 255, 255, .1));
  mix-blend-mode: screen;
}

.device .screen {
  position: relative;
  border-radius: calc(var(--dw, 300px) * .12);
  overflow: hidden;
  background: var(--bg);
  aspect-ratio: 1320 / 2868;
}

.device.pad { --pad-r: .05; border-radius: calc(var(--dw, 300px) * .05); padding: calc(var(--dw, 300px) * .022); }
.device.pad .screen { border-radius: calc(var(--dw, 300px) * .036); aspect-ratio: 2064 / 2752; }

.device .screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .55s var(--ease);
}

.device .screen img.on { opacity: 1; }

.hero .device { --dw: clamp(220px, 23vw, 296px); }

.hero .stage .device { animation: float 9s ease-in-out infinite; }

@keyframes float {
  0%, 100% { translate: 0 0; rotate: -1.2deg; }
  50%      { translate: 0 -16px; rotate: .6deg; }
}

/* parallax writes `transform` every frame — no easing, and the float above
   uses the standalone translate/rotate properties so the two compose. */
.device[data-parallax] { transition: none; }

/* orbiting mala beads behind the hero device */
.mala {
  position: absolute;
  inset: -6% -8%;
  z-index: -1;
  pointer-events: none;
  animation: spin 62s linear infinite;
}
.mala circle { fill: var(--accent2); }
.mala circle:nth-child(even) { fill: var(--accent); }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- section heads ---------- */

.head .eyebrow { margin-bottom: .9em; }
.head p { margin-top: 1em; }
.head h2 { max-width: 22ch; }

/* ---------- tap demo ---------- */

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.counter {
  position: relative;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(22px, 3.4vw, 44px);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  touch-action: manipulation;
  min-height: clamp(400px, 54vh, 560px);
  display: flex;
  flex-direction: column;
}

.counter-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 2;
}

.counter-top .name { font-family: var(--fh); font-size: clamp(1.05rem, 1.9vw, 1.4rem); }
.counter-top .clock { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .06em; color: var(--muted); }

.ring-wrap {
  position: relative;
  z-index: 2;
  margin: auto;
  width: clamp(190px, 24vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring .track { stroke: var(--line); }
.ring .value { stroke: var(--accent); transition: stroke-dashoffset .32s var(--ease); }

.ring-num {
  position: relative;
  text-align: center;
  line-height: 1;
}

.ring-num b {
  display: block;
  font-family: var(--fh);
  font-weight: 400;
  font-size: clamp(2.9rem, 6vw, 4.4rem);
  letter-spacing: -.02em;
}

.ring-num small {
  display: block;
  margin-top: .7em;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.beads {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  position: relative;
  z-index: 2;
}

.beads i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
  transition: background-color .4s var(--ease), transform .4s var(--ease);
}

.beads i.on { background: var(--accent); transform: scale(1.18); }

.counter-foot {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.counter-foot .rounds { font-size: .92rem; color: var(--muted); font-weight: 500; }

.flash {
  position: absolute;
  left: 50%;
  bottom: clamp(88px, 12vh, 120px);
  translate: -50% 0;
  z-index: 3;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: .84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}

.flash.show { animation: flashIn 1.6s var(--ease); }

@keyframes flashIn {
  0%   { opacity: 0; transform: translateY(10px); }
  16%  { opacity: 1; transform: translateY(0); }
  76%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}

.ripple {
  position: absolute;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: var(--accent);
  pointer-events: none;
  z-index: 1;
  animation: rip .7s ease-out forwards;
}

@keyframes rip {
  from { transform: scale(.16); opacity: .38; }
  to   { transform: scale(1.05); opacity: 0; }
}

.hint {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  font-size: .86rem;
  color: var(--muted);
}

.hint .pulse {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  animation: pulse 1.9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.7); opacity: .35; }
}

/* ---------- lock screen / live activity ---------- */

.ls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.ls-notes {
  list-style: none;
  margin: clamp(22px, 3vw, 30px) 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.ls-notes li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: .95rem;
}

.ls-notes li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  margin-top: .58em;
}

.ls-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.ls-caption {
  font-size: .8rem;
  color: var(--muted);
  text-align: center;
}

/* The Dynamic Island and the Lock Screen banner, drawn rather than
   photographed: sharp at any density, and they follow the accent picker
   below. Both pin the app's night palette, exactly as the real widget does. */

.island {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #0c0b0a;
  border-radius: 999px;
  padding: 11px 18px;
  min-width: 210px;
  justify-content: center;
  /* the page's own dark background is #1b1917, so without a hairline the
     banner and the island would lose their edges entirely in dark mode */
  border: 1px solid rgba(245, 234, 216, .13);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0, .8);
}

.island-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.island-count { color: #f5ead8; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.island-clock { color: var(--accent); font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; margin-left: auto; }

.la-banner {
  width: min(100%, 412px);
  background: #1b1917;
  border-radius: 26px;
  padding: 16px 18px 15px;
  display: grid;
  gap: 11px;
  border: 1px solid rgba(245, 234, 216, .13);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, .8);
}

.la-head { display: flex; align-items: baseline; gap: 12px; }

.la-name {
  font-family: var(--fh);
  font-size: 1.02rem;
  color: #f5ead8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.la-clock {
  margin-left: auto;
  color: #a19786;
  font-weight: 600;
  font-size: .84rem;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.la-mid { display: flex; align-items: center; gap: 8px; }
.la-of { align-self: flex-end; padding-bottom: .28em; }

.la-count {
  font-family: var(--fh);
  font-size: 2.3rem;
  line-height: 1;
  color: #f5ead8;
}

.la-of { color: #a19786; font-size: .78rem; font-weight: 500; }
.la-spacer { flex: 1; }

.la-beads { display: flex; gap: 4px; }
.la-beads i { width: 6px; height: 6px; border-radius: 50%; background: rgba(245, 234, 216, .18); }
.la-beads i.on { background: var(--accent); }

.la-round-col { display: grid; justify-items: end; gap: 5px; }
.la-rounds { color: #a19786; font-size: .78rem; font-weight: 500; }

.la-bar { height: 4px; border-radius: 999px; background: rgba(245, 234, 216, .18); overflow: hidden; }
.la-bar i { display: block; height: 100%; width: 66%; border-radius: 999px; background: var(--accent); }

.la-buttons { display: flex; align-items: center; gap: 8px; }

.la-btn {
  font-size: .78rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  color: #f5ead8;
  background: #272320;
  white-space: nowrap;
}

.la-btn.accent { background: var(--accent); color: #1b1917; margin-left: auto; }

/* ---------- feature cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(34px, 4.6vw, 62px);
}

.card {
  position: relative;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(22px, 2.6vw, 32px);
  overflow: hidden;
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 26px 48px -32px var(--shadow);
}

.card .ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  margin-bottom: 18px;
}

.card .ico svg { width: 23px; height: 23px; }
.card h3 { font-size: clamp(1.08rem, 1.6vw, 1.3rem); }
.card p { margin-top: .6em; color: var(--muted); font-size: .95rem; }

.card.wide { grid-column: span 2; }

/* ---------- screens gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}

.gallery-sticky {
  position: sticky;
  top: 120px;
  display: grid;
  place-items: center;
  padding-block: 10px;
}

.gallery-sticky .device { --dw: clamp(240px, 24vw, 320px); }
.gallery-sticky .device.pad { --dw: clamp(300px, 34vw, 460px); }

.size-switch {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.size-switch button {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .3s, color .3s;
}

.size-switch button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }

.steps { display: grid; gap: clamp(20px, 8vh, 64px); }

.step {
  border-radius: var(--r-card);
  border: 1px solid transparent;
  padding: clamp(18px, 2.4vw, 30px);
  transition: background-color .5s var(--ease), border-color .5s, opacity .5s;
  opacity: .5;
}

.step.active { background: var(--surface); border-color: var(--line); opacity: 1; }

.step .n {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
}

.step h3 { margin-top: .5em; }
.step p { margin-top: .7em; color: var(--muted); }

.step .inline-shot { display: none; margin-top: 22px; }

/* ---------- insights / chart ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(30px, 4vw, 48px);
}

.stat {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 28px);
}

.stat b {
  display: block;
  font-family: var(--fh);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: .9em;
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-card {
  margin-top: clamp(16px, 2vw, 24px);
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.6vw, 32px);
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
}

.chart-head .peak { color: var(--accent); letter-spacing: .04em; text-transform: none; font-size: .9rem; font-weight: 600; }

.chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(4px, 1vw, 12px);
  height: clamp(150px, 22vh, 220px);
  margin-top: 22px;
}

.chart .bar {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  background: var(--accent);
  height: var(--h, 4%);
  min-height: 5px;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform .8s var(--ease), background-color .4s;
  position: relative;
}

.chart.in .bar { transform: scaleY(1); }
.chart .bar.today { background: var(--accent2); }
.chart .bar.empty { background: var(--line); }

.chart-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: .8rem;
  color: var(--muted);
}

/* ---------- personalise ---------- */

.tune-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  margin-top: clamp(30px, 4vw, 48px);
}

.tune {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 30px);
}

.tune h3 { font-size: 1.08rem; }
.tune p { margin-top: .5em; color: var(--muted); font-size: .9rem; }

.swatches { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid transparent;
  box-shadow: 0 0 0 1px var(--line) inset;
  transition: transform .28s var(--ease), border-color .28s;
}

.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--fg); transform: scale(1.08); }

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: var(--field);
  border: 1px solid var(--line);
  margin-top: 20px;
  flex-wrap: wrap;
}

.seg button {
  padding: 9px 18px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--muted);
  transition: background-color .3s, color .3s;
}

.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

.numeral-preview {
  margin-top: 20px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--fg);
}

.numeral-preview[data-font="display"] { font-family: var(--fh); }
.numeral-preview[data-font="sans"] { font-family: var(--fb); font-weight: 500; }
.numeral-preview[data-font="serif"] { font-family: Georgia, "Times New Roman", serif; }

/* ---------- privacy panel ---------- */

.panel {
  border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--accent2) 22%, var(--bg));
  border: 1px solid var(--line);
  padding: clamp(30px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: center;
}

.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.panel li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: .96rem;
  color: var(--fg);
}

.panel li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }

/* ---------- roadmap ---------- */

.roadmap-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}

.roadmap-grid > .head {
  position: sticky;
  top: 130px;
}

.timeline { position: relative; padding-left: 34px; }

.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 2px;
  height: calc(100% - 16px);
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform 1.6s var(--ease);
}

.timeline.in::after { transform: scaleY(1); }

.tl-item { position: relative; padding-bottom: clamp(26px, 3.4vw, 42px); }
.tl-item:last-child { padding-bottom: 0; }

.tl-item::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  transition: background-color .4s;
}

.tl-item.later::before { border-color: var(--line); }

.tl-item .chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  margin-bottom: 12px;
}

.tl-item.next .chip { background: color-mix(in srgb, var(--accent2) 26%, transparent); color: var(--accent2); }
.tl-item.later .chip { background: color-mix(in srgb, var(--fg) 9%, transparent); color: var(--muted); }

.tl-item h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); }
.tl-item p { margin-top: .55em; color: var(--muted); max-width: 60ch; }

.feature-request { margin-top: clamp(30px, 4vw, 50px); padding-left: 34px; }
.feature-request h3 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); margin-top: .3em; }
.feature-request > p:last-of-type { margin-top: .55em; color: var(--muted); }
.feature-request iframe {
  display: block;
  width: 100%;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

/* ---------- faq ---------- */

.faq { margin-top: clamp(30px, 4vw, 50px); display: grid; gap: 10px; }

.qa {
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}

.qa > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 2.2vw, 26px);
  text-align: left;
  font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
}

.qa .mark {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  transition: transform .4s var(--ease);
}

.qa[open] .mark, .qa.open .mark { transform: rotate(45deg); }

.qa .body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}

.qa.open .body { grid-template-rows: 1fr; }

.qa .body > div { overflow: hidden; }

.qa .body p {
  padding: 0 clamp(18px, 2.2vw, 26px) clamp(20px, 2.2vw, 26px);
  color: var(--muted);
  max-width: 66ch;
}

.qa .body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---------- final cta ---------- */

.cta {
  text-align: center;
  border-radius: var(--r-lg);
  padding: clamp(40px, 7vw, 100px) clamp(24px, 5vw, 70px);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.cta .glow {
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  left: 50%;
  top: 100%;
  translate: -50% -50%;
  background: var(--accent);
  opacity: .22;
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.cta .lede { margin-inline: auto; }
.cta .hero-cta { justify-content: center; }

/* ---------- footer ---------- */

.foot {
  padding-block: clamp(40px, 5vw, 70px);
  border-top: 1px solid var(--line);
  margin-top: clamp(50px, 7vw, 100px);
}

.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 40px;
  align-items: center;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--muted);
}

.foot-grid nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-grid nav a:hover { color: var(--fg); }

/* ---------- reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: var(--d, 0ms);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
  .hero .stage { order: -1; margin-bottom: clamp(18px, 4vw, 34px); }
  .mala { display: none; }
  .hero .device { --dw: clamp(190px, 30vw, 252px); }
  .demo-grid { grid-template-columns: 1fr; }
  .ls-grid { grid-template-columns: 1fr; }
  .panel { grid-template-columns: 1fr; }
  .card.wide { grid-column: span 1; }
}

@media (max-width: 900px) {
  .roadmap-grid { grid-template-columns: 1fr; }
  .roadmap-grid > .head { position: static; }
  .timeline { margin-top: clamp(30px, 5vw, 48px); }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-sticky { display: none; }
  .step { opacity: 1; background: var(--surface); border-color: var(--line); }
  .step .inline-shot { display: grid; place-items: center; }
  .step .inline-shot .device { --dw: min(260px, 62vw); }
  .steps { gap: 18px; }
  .size-switch { display: none; }
}

@media (max-width: 900px) {
  .nav { padding: 8px 8px 8px 14px; }
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 24px;
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 18px 40px -22px var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .nav-toggle { display: grid; }
  .nav .pill.primary { display: none; }
  .counter { min-height: 420px; }
  .foot-grid { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero-cta .pill:not(.sm) { width: 100%; }
  .store-chip { font-size: .74rem; }
  .beads i { width: 8px; height: 8px; }
}

@media (max-width: 344px) {
  .brand span { display: none; }
}

/* wide screens */
@media (min-width: 1600px) {
  :root { --maxw: 1360px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .chart .bar { transform: scaleY(1); }
  .timeline::after { transform: scaleY(1); }
}

@media print {
  .nav, .progress, .blobs { display: none; }
}
