/* Wring — site styles. One file, no framework.
   Tokens mirror the app (Theme.swift): teal accent, ink, off-white ground; dark scheme follows the system. */

:root {
  --ink: #0B1220;
  --ink-2: #5B6675;
  --ink-3: #626D7C;
  --line: #E3E8EE;
  --ground: #F4F6F8;
  --surface: #FFFFFF;
  --surface-2: #EEF2F5;
  --accent: #0B6E6A;
  --accent-deep: #0B6E6A;
  --accent-2: #37C6A5;
  --accent-soft: #E3F3F2;
  --good: #1A9E5C;
  --warn: #E08A00;
  --bad: #D7263D;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(11, 18, 32, 0.08);
  --shadow: 0 30px 80px rgba(11, 18, 32, 0.16), 0 2px 6px rgba(11, 18, 32, 0.06);
  --shadow-sm: 0 10px 30px rgba(11, 18, 32, 0.10);
  --radius: 22px;
  --radius-lg: 32px;
  --gutter: clamp(16px, 4vw, 40px);
  --font-display: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #EEF2F6;
    --ink-2: #AAB4C3;
    --ink-3: #7A8595;
    --line: #1F2A3C;
    --ground: #0B1220;
    --surface: #121A2A;
    --surface-2: #182236;
    --accent: #2AB3A9;
    --accent-deep: #1D8F87;
    --accent-2: #4ED8B8;
    --accent-soft: #10302F;
    --glass: rgba(18, 26, 42, 0.72);
    --glass-line: rgba(255, 255, 255, 0.08);
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 7.2vw, 5.4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ink-2); line-height: 1.5; text-wrap: pretty; max-width: 34em; }
.eyebrow { font-family: var(--font-display); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--ink-2); }
.small { font-size: 0.92rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; letter-spacing: -0.01em;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn-primary { background: var(--ink); color: var(--ground); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(11, 18, 32, .22); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 30px rgba(14, 138, 132, .32); }
.btn-accent:hover { background: var(--accent-deep); }
.btn-ghost { background: var(--glass); border-color: var(--glass-line); color: var(--ink); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn .sub { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; line-height: 1; }
.btn .two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; gap: 3px; }
.store-logo { width: 22px; height: 22px; flex: none; }
.store-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.nav-store-actions { flex-wrap: nowrap; gap: 6px; }
.nav .nav-store-actions .btn { padding-inline: 14px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  transition: padding .2s ease;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 10px 8px 14px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 8px 30px rgba(11, 18, 32, .08);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; letter-spacing: .16em; font-size: .95rem; text-transform: uppercase; color: var(--accent); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink-2); white-space: nowrap; transition: background .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav .btn { min-height: 44px; padding: 0 18px; font-size: .93rem; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface-2); align-items: center; justify-content: center; cursor: pointer; }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links { display: flex; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px); flex-direction: column; padding: 10px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 22px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-sm); }
  .nav.open .nav-links a { padding: 12px 16px; font-size: 1.05rem; }
}
@media (max-width: 860px) {
  .nav-store-actions.desktop-only { display: none; }
  .nav .btn.desktop-only { display: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 .serif { color: var(--accent); }
.hero-slogan { margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: -.02em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--ink-2); font-size: .92rem; font-weight: 500; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--accent); }

.hero-visual { position: relative; min-height: 420px; }
.hero-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1076 / 900;
  background: #E9ECEF; box-shadow: var(--shadow); border: 1px solid var(--glass-line);
  transform: rotate(1.5deg);
}
.hero-card video { width: 100%; height: 100%; object-fit: cover; }
.hero-card .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 32, .55), rgba(11, 18, 32, 0) 45%); pointer-events: none; }
.hero-card .caption { position: absolute; left: 22px; top: 20px; color: #fff; }
.hero-card .caption .eyebrow { color: #BBEEEE; }
.hero-card .caption strong { display: block; font-family: var(--font-display); font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }

.phone {
  position: relative; width: 100%; border-radius: 44px; padding: 10px; background: #0B1220;
  box-shadow: var(--shadow), inset 0 0 0 2px #2A3242;
}
.phone img { border-radius: 36px; width: 100%; }
.phone::after { content: ""; position: absolute; left: 50%; top: 20px; transform: translateX(-50%); width: 34%; height: 24px; border-radius: 14px; background: #0B1220; }
.hero-phone { position: absolute; width: 34%; left: -6%; bottom: -10%; transform: rotate(-6deg); }

.glass-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm); font-weight: 600; font-size: .92rem; color: var(--ink);
}
.glass-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.glass-chip .dot svg { width: 18px; height: 18px; }
.glass-chip small { display: block; color: var(--ink-2); font-weight: 500; font-size: .78rem; }
.chip-a { right: -4%; top: 8%; animation: float 6s ease-in-out infinite; }
.chip-b { right: 6%; bottom: 14%; animation: float 7s ease-in-out 1s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* mesh background */
.mesh { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55; }
.mesh span { position: absolute; border-radius: 50%; }
.mesh .m1 { width: 44vw; height: 44vw; left: -8vw; top: -6vw; background: radial-gradient(circle at 30% 30%, #37C6A5, transparent 62%); }
.mesh .m2 { width: 40vw; height: 40vw; right: -10vw; top: 2vw; background: radial-gradient(circle at 60% 40%, #0E8A84, transparent 62%); }
.mesh .m3 { width: 30vw; height: 30vw; left: 30vw; top: 20vw; background: radial-gradient(circle, #BEF6E8, transparent 60%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mesh { opacity: .35; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 14px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; }
.marquee-track span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); }
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - 20px), 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } .chip-a, .chip-b { animation: none; } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 26px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 18px; top: 10px; font-family: var(--font-display); font-size: 4.2rem; font-weight: 800; letter-spacing: -.05em; color: var(--accent-soft); line-height: 1; }
.step .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; position: relative; }
.step .ico svg { width: 26px; height: 26px; }
.step h3 { margin-bottom: 8px; position: relative; }
.step p { color: var(--ink-2); position: relative; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.tile {
  position: relative; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line);
  padding: 28px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 300px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.tile h3 { max-width: 20ch; }
.tile p { color: var(--ink-2); max-width: 34ch; text-wrap: pretty; }
.tile .eyebrow { margin-bottom: 2px; }
.tile .art { margin-top: auto; }
.tile.dark { background: linear-gradient(160deg, #0F8F88, #0B6E6A 55%, #0B1220); color: #fff; border-color: transparent; }
.tile.dark p { color: rgba(255, 255, 255, .8); }
.tile.dark .eyebrow { color: #BBEEEE; }
.span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-8 { grid-column: span 8; } .span-12 { grid-column: span 12; }
/* A phone rising out of the tile's bottom edge: in flow, clipped by the tile, showing the top of the screen. */
.tile-screen { position: relative; width: 60%; margin: 22px auto -40%; align-self: center; border-radius: 34px 34px 0 0; padding: 8px 8px 0; background: #0B1220; box-shadow: var(--shadow); flex: none; }
.tile-screen img { border-radius: 26px 26px 0 0; }
.tile.split { flex-direction: row; align-items: flex-end; gap: 24px; }
.tile.split .text { flex: 1; align-self: flex-start; display: flex; flex-direction: column; gap: 10px; }
.tile.split .tile-screen { width: 40%; margin: 8% 0 -26% 0; }
.tile-video { position: absolute; inset: 0; }
.tile-video video { width: 100%; height: 100%; object-fit: cover; }
.tile-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 18, 32, .82) 0%, rgba(11, 18, 32, .55) 38%, rgba(11, 18, 32, .05) 70%); }
.tile.has-video { color: #fff; }
.tile.has-video > :not(.tile-video) { position: relative; z-index: 1; }
.tile.has-video p { color: rgba(255, 255, 255, .82); }
.tile.has-video .eyebrow { color: #BBEEEE; }
.tile.has-video .tile-video { z-index: 0; }
.tile-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.tile-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-weight: 600; font-size: .95rem; }
.tile-list li svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.tile-list li span { color: var(--ink-2); font-weight: 500; margin-left: auto; font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); font-size: .88rem; font-weight: 600; }
.watch-frame { position: absolute; right: 22px; bottom: -34px; width: 156px; border-radius: 42px; padding: 10px; background: #1c2434; box-shadow: var(--shadow), inset 0 0 0 2px #2f3a4f; }
.watch-frame img { border-radius: 32px; }
.tile.wrist h3, .tile.wrist p, .tile.wrist .chips { max-width: 62%; }

/* score ring */
.ring { position: relative; width: 168px; height: 168px; margin-top: 8px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--good); stroke-dasharray: 452; stroke-dashoffset: 452; transition: stroke-dashoffset 1.6s cubic-bezier(.2, .7, .2, 1); }
.ring.in .bar { stroke-dashoffset: calc(452 - 452 * var(--v, .97)); }
.ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; }
.ring .num small { display: block; font-size: .55rem; letter-spacing: .1em; color: var(--ink-2); font-weight: 700; margin-top: 6px; white-space: nowrap; }

/* science */
.science { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.wave { display: flex; align-items: center; gap: 6px; height: 160px; padding: 0 8px; }
.wave i { flex: 1; border-radius: 6px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); height: 20%; transform-origin: center; animation: wave 1.6s ease-in-out infinite; animation-delay: calc(var(--i) * .07s); }
@keyframes wave { 0%, 100% { height: 18%; opacity: .55; } 50% { height: calc(30% + var(--h) * 70%); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .wave i { animation: none; height: calc(20% + var(--h) * 70%); } }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 26px; }
.spec { padding: 18px 18px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.spec b { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.03em; line-height: 1; }
.spec span { color: var(--ink-2); font-size: .9rem; }
.science-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist li svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.checklist li b { color: var(--ink); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.plan.best { border-color: var(--accent); box-shadow: 0 20px 60px rgba(14, 138, 132, .18); }
.plan .badge { position: absolute; top: -13px; left: 24px; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: var(--ground); font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.plan .name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.plan .price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; margin-top: 8px; }
.plan .price small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--ink-2); }
.plan .per { color: var(--ink-2); font-size: .95rem; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.plan ul li { display: flex; gap: 10px; }
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 800; }
.plan-store-actions { display: grid; gap: 8px; margin-top: 14px; }
.plan-store-actions .btn { width: 100%; min-height: 52px; padding-inline: 16px; justify-content: flex-start; }
.plan .web-buy { margin-top: auto; }
.legal-note { color: var(--ink-3); font-size: .86rem; margin: 22px auto 0; max-width: 96ch; text-align: center; line-height: 1.55; }
.plan .web-buy { text-align: center; font-weight: 700; font-size: .92rem; color: var(--accent); padding: 4px 0 0; }
.plan .web-buy:hover { text-decoration: underline; text-underline-offset: 3px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; flex: none; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--ink-2); max-width: 70ch; }

/* cta band */
.cta-band { border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); background: linear-gradient(135deg, #0F8F88, #0B6E6A 60%, #0B1220); color: #fff; position: relative; overflow: hidden; text-align: center; display: grid; justify-items: center; gap: 18px; }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: rgba(255, 255, 255, .8); max-width: 44ch; }
.cta-band .btn-primary { background: #fff; color: #0B1220; }
.cta-store-actions { justify-content: center; }
.cta-band::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(190, 246, 232, .35), transparent 65%); right: -20%; top: -30%; }

/* footer */
.footer { padding: 40px 0 34px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer h4 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 800; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--ink); }
.footer .fine { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--ink-3); font-size: .82rem; }

/* sticky mobile CTA */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none; visibility: hidden; padding: 10px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow); align-items: center; justify-content: space-between; gap: 10px; transform: translateY(120%); transition: transform .3s ease, visibility 0s linear .3s; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.sticky-cta.show { visibility: visible; transform: translateY(0); transition-delay: 0s; }
.sticky-cta .t { font-family: var(--font-display); font-weight: 800; font-size: .95rem; padding-left: 8px; }
.sticky-cta .t small { display: block; color: var(--ink-2); font-weight: 500; font-size: .8rem; }
.sticky-cta .btn { min-height: 46px; padding: 0 18px; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; } .reveal[data-delay="2"] { transition-delay: .16s; } .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- legal / support pages ---------- */
.page-head { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 36px); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-head .meta { color: var(--ink-3); margin-top: 12px; font-size: .95rem; }
.legal { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; padding-bottom: clamp(56px, 8vw, 112px); }
.toc { position: sticky; top: 96px; display: grid; gap: 6px; font-size: .92rem; }
.toc a { color: var(--ink-2); padding: 6px 10px; border-radius: 10px; }
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; scroll-margin-top: 96px; }
.prose h3 { font-size: 1.12rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose .callout { padding: 18px 20px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); border: 1px solid transparent; margin: 0 0 18px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0 0 18px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink); font-weight: 700; }
.prose td { color: var(--ink-2); }
.placeholder { background: #FFF3E0; color: #7A4B00; padding: 0 6px; border-radius: 6px; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .placeholder { background: #3A2A10; color: #F5C57A; } }

.support-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 28px 0 40px; }
.support-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; align-content: start; }
.support-card .ico { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.support-card .ico svg { width: 22px; height: 22px; }
.support-card p { color: var(--ink-2); font-size: .95rem; }
.support-card a.link { color: var(--accent); font-weight: 700; }

/* redeem */
.redeem { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.redeem .box { display: grid; gap: 16px; justify-items: center; max-width: 520px; }
.redeem .icon { width: 96px; height: 96px; border-radius: 26px; box-shadow: var(--shadow-sm); }
.redeem .steps-mini { display: grid; gap: 10px; text-align: left; margin: 4px 0 0; padding: 0; list-style: none; counter-reset: s; max-width: 440px; }
.redeem .steps-mini li { position: relative; padding-left: 36px; color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.redeem .steps-mini li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.redeem .code-box { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 8px 8px 8px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.redeem .code-box code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: .02em; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.redeem .code-box button { flex: 0 0 auto; border: 0; border-radius: 10px; padding: 10px 14px; background: var(--ink); color: var(--ground); font: 600 14px var(--font-body); cursor: pointer; }
.redeem .code-box button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.redeem .code-box button.done { background: var(--accent); }
.redeem [hidden] { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .span-7, .span-5, .span-6, .span-4, .span-8 { grid-column: span 6; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 12px; }
  .hero-phone { width: 40%; left: -4%; bottom: -10%; }
  .steps { grid-template-columns: 1fr; }
  .science { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; display: flex; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-ctas .btn, .cta-store-actions .btn { width: 100%; }
  .cta-store-actions { width: 100%; }
}
@media (max-width: 640px) {
  .span-7, .span-5, .span-6, .span-4, .span-8 { grid-column: span 12; }
  .tile { min-height: 240px; }
  .tile.split { flex-direction: column; align-items: stretch; }
  .tile.split .tile-screen { width: 62%; margin: 18px auto -40%; }
  .watch-frame { width: 130px; right: 14px; bottom: -28px; }
  .tile.wrist h3, .tile.wrist p, .tile.wrist .chips { max-width: 100%; }
  .tile.wrist { padding-bottom: 150px; }
  .tile.wrist .watch-frame { left: 28px; right: auto; }
  .specs { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .hero-phone { width: 34%; left: -3%; bottom: -12%; }
  .hero-card .caption { display: none; }
  .chip-a { right: -2%; top: 6%; }
  .chip-b { right: 4%; bottom: 10%; }
}
