/* ============================================================
   AI Health Insights — Web design system
   Mirrors HealthInsights/UI/Theme/DesignTokens.swift + Typography.swift
   ============================================================ */

:root {
  /* Base palette */
  --bg:        #0A0A0C;
  --bg-elev:   #131318;
  --bg-elev2:  #1C1C22;
  --bg-elev3:  #26262E;
  --hairline:  rgba(255,255,255,0.08);
  --hairline2: rgba(255,255,255,0.14);

  /* Text */
  --text-main: #F4F4F5;
  --text-dim:  rgba(255,255,255,0.65);
  --text-mute: rgba(255,255,255,0.42);

  /* Accents */
  --volt:    #D7FF3A;
  --ember:   #FF5A1F;
  --uv:      #B388FF;

  /* Semantic */
  --positive: #3DDC97;
  --warning:  #FFC857;
  --danger:   #FF4D6D;

  /* Spacing */
  --xs: 4px;
  --sm: 8px;
  --md: 12px;
  --lg: 16px;
  --xl: 24px;
  --xxl: 32px;
  --xxxl: 48px;

  /* Animation */
  --fast:  .18s cubic-bezier(.2,.7,.2,1);
  --med:   .32s cubic-bezier(.2,.7,.2,1);
  --slow:  .6s  cubic-bezier(.2,.7,.2,1);

  /* Fonts */
  --f-display: 'Archivo', system-ui, -apple-system, 'SF Pro Display', sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, 'SF Pro Text', sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Metric palette (mirrors iOS DesignTokens) */
  --metric-red:    #FF4D6D;
  --metric-teal:   #00C2B4;
  --metric-blue:   #5BB0FF;
  --metric-amber:  #FFC857;
  --metric-purple: #B388FF;
  --metric-orange: #FF5A1F;
  --metric-green:  #3DDC97;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text-main); font-family: var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--volt); color: var(--bg); }

/* ============================================================
   Animated background — aurora + grid + film grain
   ============================================================ */
.bg-aurora {
  position: fixed; inset: 0; z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(179,136,255,0.18), transparent 60%),
    radial-gradient(1000px 600px at 0% 30%, rgba(215,255,58,0.10), transparent 60%),
    var(--bg);
}
.aurora {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 22s ease-in-out infinite alternate;
  will-change: transform;
}
.a1 { width: 520px; height: 520px; background: var(--uv);      top: 6%;  left: 60%; }
.a2 { width: 460px; height: 460px; background: var(--volt);    top: 38%; left: -10%; animation-delay: -6s; }
.a3 { width: 420px; height: 420px; background: var(--ember);   top: 72%; left: 70%; animation-delay: -12s; opacity: .35; }

@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(60px,-40px,0) scale(1.08); }
  100% { transform: translate3d(-40px,30px,0) scale(.96); }
}

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  opacity: .35;
}

.noise {
  position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: var(--xl);
  padding: var(--md) var(--xxl);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(10,10,12,0.55);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
img.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px var(--hairline2), 0 6px 22px rgba(215,255,58,0.35);
  transition: transform var(--med), box-shadow var(--med);
}
.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.06);
  box-shadow: 0 0 0 1px var(--hairline2), 0 10px 30px rgba(215,255,58,0.55);
}
.foot img.brand-mark { width: 32px; height: 32px; border-radius: 9px; }
.brand-word { font-family: var(--f-display); font-weight: 800; letter-spacing: -.01em; }
.brand-word em { font-style: normal; color: var(--volt); }
.nav-links { display: flex; gap: var(--xl); margin-left: auto; }
.nav-links a { font-size: 14px; color: var(--text-dim); transition: color var(--fast); }
.nav-links a:hover { color: var(--text-main); }

@media (max-width: 820px) { .nav-links { display: none; } }

/* Tab-bar styled primary nav */
.nav-tabs {
  margin-left: auto;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(72px, 1fr);
  align-items: center;
  height: 56px; padding: 6px;
  background: rgba(20,20,24,0.85);
  border: 1px solid var(--hairline2);
  border-radius: 30px;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}
.nav-tab {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  height: 100%;
  color: var(--text-dim);
  font-family: var(--f-body); font-size: 11px; font-weight: 500;
  border-radius: 22px;
  transition: color var(--fast), background var(--fast), transform var(--fast);
}
.nav-tab i {
  width: 18px; height: 18px; background: var(--text-dim); display: block;
  transition: background var(--fast), transform var(--fast);
}
.nav-tab:hover { color: var(--text-main); }
.nav-tab:hover i { background: var(--text-main); }
.nav-tab:active { transform: scale(.96); }
.nav-tab.active {
  color: var(--volt);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(215,255,58,0.18);
}
.nav-tab.active i {
  background: var(--volt);
  filter: drop-shadow(0 0 6px rgba(215,255,58,0.6));
}

.nav-cta { margin-left: var(--md); }

@media (max-width: 980px) {
  .nav-tabs .nav-tab span { display: none; }
  .nav-tabs { height: 48px; grid-auto-columns: 44px; padding: 4px; border-radius: 26px; }
  .nav-tab { gap: 0; }
}
@media (max-width: 640px) {
  .nav { gap: var(--sm); padding: var(--sm) var(--md); }
  .brand-word { display: none; }
  .nav-cta { display: none; }
}

/* ============================================================
   Buttons / pills (mirror Primitives.swift)
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  font-family: var(--f-display); font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  border-radius: 999px;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
  border: 1px solid transparent;
  user-select: none;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--volt); color: var(--bg);
  box-shadow: 0 8px 24px -8px rgba(215,255,58,0.7);
}
.btn-primary:hover { box-shadow: 0 14px 36px -8px rgba(215,255,58,0.9); }
.btn-secondary {
  background: var(--bg-elev2); color: var(--text-main); border-color: var(--hairline2);
}
.btn-secondary:hover { background: var(--bg-elev3); }

.pill {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  font-family: var(--f-mono); font-weight: 500;
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  background: rgba(255,255,255,0.08); color: var(--text-main);
  border-radius: 999px;
}
.pill-volt     { background: rgba(215,255,58,0.18);  color: var(--volt); }
.pill-ember    { background: rgba(255,90,31,0.18);   color: var(--ember); }
.pill-uv       { background: rgba(179,136,255,0.20); color: var(--uv); }
.pill-positive { background: rgba(61,220,151,0.18);  color: var(--positive); }

/* ============================================================
   Typography helpers (mirror Typography.swift)
   ============================================================ */
.display {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(38px, 5.6vw, 76px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 var(--lg);
}
.lede { font-size: 17px; line-height: 1.55; color: var(--text-dim); max-width: 62ch; margin: 0; }
.card-title { font-family: var(--f-body); font-weight: 600; font-size: 17px; margin: 0; line-height: 1.3; }
.card-body  { font-family: var(--f-body); font-weight: 400; font-size: 15px; margin: 0; color: var(--text-dim); }
.caption    { font-family: var(--f-body); font-weight: 400; font-size: 12px; margin: 0; }
.metric-value {
  font-family: var(--f-mono); font-weight: 800;
  font-size: 36px; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
}
.metric-label {
  font-family: var(--f-mono); font-weight: 500;
  font-size: 10px; text-transform: uppercase; letter-spacing: .14em;
  color: var(--text-mute);
}
.hero-number {
  font-family: var(--f-display); font-weight: 900;
  font-size: clamp(48px, 6vw, 88px); letter-spacing: -.03em;
  font-variant-numeric: tabular-nums; display: block;
}
.mono { font-family: var(--f-mono); }
.mute { color: var(--text-mute); }

.word-volt  { color: var(--volt);  }
.word-uv    { color: var(--uv);    }
.word-ember { color: var(--ember); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--xxxl);
  padding: 64px var(--xxl) var(--xxxl);
  max-width: 1320px; margin: 0 auto;
  align-items: start;
}
.hero-copy > .pill { margin-bottom: var(--xl); }
.hero-icon {
  width: 96px; height: 96px;
  border-radius: 22px;
  display: block;
  margin: 0 0 var(--lg);
  box-shadow:
    0 0 0 1px var(--hairline2),
    0 20px 50px -10px rgba(0,0,0,0.7),
    0 0 60px -10px rgba(215,255,58,0.45);
  animation: iconFloat 6s ease-in-out infinite alternate;
}
@keyframes iconFloat {
  from { transform: translateY(-3px) rotate(-1deg); }
  to   { transform: translateY(3px)  rotate(1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon { animation: none; }
}
.hero-cta { display: flex; gap: var(--md); margin: var(--xl) 0; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }
.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: var(--xl); color: var(--text-dim);
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .1em;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; vertical-align: middle; box-shadow: 0 0 12px currentColor; }
.dot-positive { background: var(--positive); color: var(--positive); }
.dot-volt     { background: var(--volt);     color: var(--volt); }
.dot-uv       { background: var(--uv);       color: var(--uv); }
.dot-ember    { background: var(--ember);    color: var(--ember); }

.hero-device { position: relative; perspective: 1600px; }

/* iPhone mockup */
.phone {
  --w: 340px;
  width: var(--w); aspect-ratio: 9/19.5;
  margin: 0 auto;
  border-radius: 48px;
  background: linear-gradient(180deg, #1a1a20, #0e0e12);
  padding: 10px;
  box-shadow:
    0 0 0 1.5px #2a2a32 inset,
    0 0 0 6px #050508,
    0 40px 80px -20px rgba(0,0,0,0.7),
    0 0 120px -20px rgba(179,136,255,0.45);
  position: relative;
  transform-style: preserve-3d;
  transition: transform var(--med);
}
.phone.small { --w: 320px; }
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 40px; overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 26px; border-radius: 14px; background: #000; z-index: 2;
}

/* Floating chips around the device */
.float {
  position: absolute;
  left: calc(var(--x) - 60px); top: var(--y);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(20,20,25,0.85);
  border: 1px solid var(--hairline2);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.7);
  font-family: var(--f-mono); font-weight: 600;
  animation: floatY 6s ease-in-out infinite alternate;
}
.float strong { font-size: 18px; color: var(--text-main); }
.float .metric-label { color: var(--text-mute); }
.chip-volt     { box-shadow: 0 12px 30px -10px rgba(215,255,58,0.5); }
.chip-ember    { box-shadow: 0 12px 30px -10px rgba(255,90,31,0.5);  animation-delay: -2s; }
.chip-positive { box-shadow: 0 12px 30px -10px rgba(61,220,151,0.5); animation-delay: -3s; }
.chip-uv       { box-shadow: 0 12px 30px -10px rgba(179,136,255,0.5); animation-delay: -4s; }

@keyframes floatY {
  from { transform: translateY(-6px); }
  to   { transform: translateY(10px); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: left; padding: var(--lg) var(--lg) 80px; }
  .hero-copy { order: 1; }
  .hero-device { order: 2; margin-top: var(--xl); }
  .float { display: none; }
}

/* ============================================================
   In-phone Dashboard UI (matches HealthInsights views)
   ============================================================ */
.screen-app {
  position: absolute; inset: 0; padding: 44px 14px 18px;
  display: flex; flex-direction: column; gap: 12px;
  overflow: hidden;
  background:
    radial-gradient(700px 350px at 80% -10%, rgba(179,136,255,0.18), transparent 60%),
    radial-gradient(500px 300px at -20% 50%, rgba(215,255,58,0.07), transparent 60%),
    var(--bg);
}
.status-bar { display: flex; justify-content: space-between; align-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--text-mute); padding: 0 6px; }

.dash-header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; margin-top: 2px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--volt), var(--positive)); color: var(--bg); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; }

/* Glass card — mirrors .glassCard() modifier */
.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: var(--lg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 40%);
}

.readiness { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; }
.ring-wrap { position: relative; width: 110px; height: 110px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-track { fill: none; stroke: rgba(255,255,255,0.10); stroke-width: 10; }
.ring-progress {
  fill: none; stroke: var(--volt); stroke-width: 10; stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(215,255,58,0.45));
  transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1);
}
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 2px;
}
.ring-center .metric-value { font-size: 28px; }
.readiness-info .pill { margin-top: 8px; }

.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric-card {
  padding: 12px;
  display: grid; gap: 4px;
  position: relative; overflow: hidden;
}
.metric-card .metric-value { font-size: 24px; }
.metric-card .unit { font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em; color: var(--text-mute); text-transform: uppercase; }
.metric-card .spark { width: 100%; height: 28px; margin-top: 4px; }
.spark-line {
  fill: none; stroke: var(--volt); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.metric-card[data-accent="volt"]     .spark-line { stroke: var(--volt); filter: drop-shadow(0 0 6px rgba(215,255,58,.6)); }
.metric-card[data-accent="ember"]    .spark-line { stroke: var(--ember); filter: drop-shadow(0 0 6px rgba(255,90,31,.6)); }
.metric-card[data-accent="uv"]       .spark-line { stroke: var(--uv); filter: drop-shadow(0 0 6px rgba(179,136,255,.6)); }
.metric-card[data-accent="positive"] .spark-line { stroke: var(--positive); filter: drop-shadow(0 0 6px rgba(61,220,151,.6)); }
.metric-card[data-accent="volt"]     .metric-value { color: var(--volt); }
.metric-card[data-accent="ember"]    .metric-value { color: var(--ember); }
.metric-card[data-accent="uv"]       .metric-value { color: var(--uv); }
.metric-card[data-accent="positive"] .metric-value { color: var(--positive); }

.insight-card { display: grid; gap: 6px; }
.insight-row { display: flex; justify-content: space-between; align-items: center; }
.insight-row .caption { font-family: var(--f-mono); }

/* ============================================================
   Logo strip
   ============================================================ */
.strip {
  display: flex; align-items: center; justify-content: center;
  gap: var(--xxl); flex-wrap: wrap;
  padding: var(--xl) var(--xxl);
  color: var(--text-mute);
  font-family: var(--f-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .18em;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.strip-item { color: var(--text-dim); }

/* ============================================================
   Sections
   ============================================================ */
.section {
  max-width: 1280px; margin: 0 auto;
  padding: clamp(72px, 10vw, 140px) var(--xxl);
}
.section-head { max-width: 880px; margin: 0 auto var(--xxl); text-align: center; display: grid; place-items: center; gap: var(--lg); }
.section-head .pill { margin-bottom: var(--xs); }

/* Dashboard stage (legacy) */
.dashboard-stage {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--xl);
}
@media (max-width: 900px) { .dashboard-stage { grid-template-columns: 1fr; } }

/* Dashboard showcase — uses in-phone Today components, scaled up */
.dashboard-showcase {
  display: grid; gap: var(--lg);
  grid-template-columns: 1fr 1fr;
  max-width: 1080px; margin: 0 auto;
}
.dashboard-showcase .ds-feature { grid-column: 1 / -1; }
.dashboard-showcase .ds-col    { grid-column: span 1; }
.dashboard-showcase .ds-grid {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lg);
}

/* Scale up shared in-phone card styles for desktop viewing */
.dashboard-showcase .t-card {
  padding: var(--lg) var(--xl);
  border-radius: 22px;
  background: rgba(255,255,255,0.035);
  border-color: rgba(255,255,255,0.08);
}
.dashboard-showcase .ai-insight {
  grid-template-columns: 56px 1fr auto;
  padding: var(--xl);
}
.dashboard-showcase .ai-badge { width: 50px; height: 50px; font-size: 16px; }
.dashboard-showcase .ai-body h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.dashboard-showcase .ai-body .t-sub { font-size: 15px; }
.dashboard-showcase .ai-body .t-action { font-size: 16px; }

.dashboard-showcase .activity {
  grid-template-columns: 160px 1fr; gap: var(--lg);
  padding: var(--xl);
}
.dashboard-showcase .rings3 { width: 160px; height: 160px; }
.dashboard-showcase .lets-go { font-size: 36px; }
.dashboard-showcase .act-line { font-size: 12px; grid-template-columns: 12px 110px auto auto 1fr; gap: 10px; }
.dashboard-showcase .act-line b { font-size: 16px; }
.dashboard-showcase .act-line em { font-size: 10px; }

.dashboard-showcase .readiness-card { padding: var(--xl); }
.dashboard-showcase .readiness-score b { font-size: 84px; }
.dashboard-showcase .readiness-score span { font-size: 18px; }
.dashboard-showcase .big-head { font-size: 24px; margin-top: 12px; }
.dashboard-showcase .t-sub  { font-size: 14px; }
.dashboard-showcase .t-arrow { font-size: 13px; }
.dashboard-showcase .ready-bars { gap: 10px; margin-top: 16px; }
.dashboard-showcase .rb { grid-template-columns: 90px 1fr 36px; font-size: 11px; }
.dashboard-showcase .rb b { font-size: 14px; }

.dashboard-showcase .steps-card { padding: var(--xl); }
.dashboard-showcase .steps-big { font-size: 96px; }
.dashboard-showcase .weekly-chart { height: 120px; margin-top: 14px; }
.dashboard-showcase .week-axis { font-size: 11px; }

.dashboard-showcase .t-card.mini { padding: var(--lg); min-height: 160px; }
.dashboard-showcase .mini-value { font-size: 28px; }
.dashboard-showcase .mini-value em { font-size: 12px; }
.dashboard-showcase .mini-sub,
.dashboard-showcase .mini-body { font-size: 12px; }
.dashboard-showcase .mini-spark { height: 36px; }

@media (max-width: 900px) {
  .dashboard-showcase { grid-template-columns: 1fr; }
  .dashboard-showcase .ds-col { grid-column: 1 / -1; }
  .dashboard-showcase .ds-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .dashboard-showcase .ds-grid { grid-template-columns: 1fr; }
  .dashboard-showcase .activity { grid-template-columns: 1fr; place-items: center; text-align: center; }
}

.big-ring { display: grid; gap: var(--xl); place-items: center; padding: var(--xxl); }
.ring-xl { position: relative; width: min(360px, 70vw); aspect-ratio: 1/1; }
.ring-xl svg { width: 100%; height: 100%; }
.ring-track-xl { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 14; }
.ring-xl-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; }
.ring-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--md); width: 100%; }
.ring-legend > div { display: grid; gap: 4px; padding: var(--md); background: rgba(255,255,255,0.03); border: 1px solid var(--hairline); border-radius: 14px; text-align: center; }
.ring-legend strong { font-size: 18px; color: var(--text-main); font-weight: 700; }

.chart-card { display: grid; gap: var(--lg); padding: var(--xl); }
.chart-head { display: flex; justify-content: space-between; align-items: center; }
.chips { display: flex; gap: 6px; }
.chip-btn {
  height: 30px; padding: 0 14px;
  background: transparent; color: var(--text-dim);
  border: 1px solid var(--hairline2);
  border-radius: 999px;
  font-family: var(--f-body); font-weight: 600; font-size: 12px;
  transition: all var(--fast);
}
.chip-btn.active, .chip-btn:hover { background: var(--text-main); color: var(--bg); border-color: transparent; }
.bigchart { width: 100%; height: 220px; }
.chart-axis { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .12em; padding: 0 4px; }

/* Insights deck */
.insights-deck {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--lg);
}
.insight-tile {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: var(--xl);
  display: grid; gap: var(--md);
  transition: transform var(--med), border-color var(--med), background var(--med);
  position: relative; overflow: hidden;
}
.insight-tile::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(400px 200px at 100% 0%, var(--tone-glow, transparent), transparent 60%);
  opacity: .8;
}
.insight-tile[data-tone="positive"] { --tone-glow: rgba(61,220,151,0.18); }
.insight-tile[data-tone="uv"]       { --tone-glow: rgba(179,136,255,0.18); }
.insight-tile[data-tone="ember"]    { --tone-glow: rgba(255,90,31,0.16); }
.insight-tile[data-tone="volt"]     { --tone-glow: rgba(215,255,58,0.18); }
.insight-tile:hover { transform: translateY(-4px); border-color: var(--hairline2); background: rgba(255,255,255,0.05); }
.insight-tile header { display: flex; justify-content: space-between; align-items: center; }
.insight-tile time { font-family: var(--f-mono); font-size: 11px; color: var(--text-mute); }
.insight-tile h3 { font-family: var(--f-display); font-size: 22px; line-height: 1.15; letter-spacing: -.01em; margin: 0; font-weight: 700; }
.insight-tile p { color: var(--text-dim); margin: 0; line-height: 1.55; font-size: 15px; }
.confidence { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-family: var(--f-mono); font-size: 11px; color: var(--text-mute); }
.confidence .bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.confidence .bar i {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--volt), var(--positive));
  border-radius: 999px;
  transition: width 1.4s cubic-bezier(.2,.7,.2,1);
}
.confidence.visible .bar i { width: var(--w); }
.confidence b { color: var(--text-main); font-weight: 700; }

.insights-feature-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg);
  margin-top: var(--xxxl);
}
@media (max-width: 820px) { .insights-feature-row { grid-template-columns: 1fr; } }
.feature {
  padding: var(--xl);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  display: grid; gap: var(--md);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 14px;
  background: rgba(215,255,58,0.12); display: grid; place-items: center;
  border: 1px solid rgba(215,255,58,0.3);
  position: relative;
}
.feature-icon::before {
  content: ""; width: 22px; height: 22px;
  background: var(--volt);
  -webkit-mask: var(--icon-mask) center/contain no-repeat;
  mask: var(--icon-mask) center/contain no-repeat;
}
.feature-icon[data-i="lock"]  { --icon-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 1a5 5 0 0 0-5 5v4H6a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-9a2 2 0 0 0-2-2h-1V6a5 5 0 0 0-5-5zm-3 9V6a3 3 0 1 1 6 0v4H9z'/></svg>"); }
.feature-icon[data-i="bolt"]  { --icon-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 2 4 14h6l-1 8 9-12h-6l1-8z'/></svg>"); }
.feature-icon[data-i="cloud"] { --icon-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6.5 19a4.5 4.5 0 0 1-.5-8.97A6 6 0 0 1 17.5 9a4.5 4.5 0 0 1-1 8.94L6.5 19z'/></svg>"); }

/* ============================================================
   Onboarding stage — scroll-driven step swap
   ============================================================ */
.onboarding-stage {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--xxxl); align-items: start;
}
@media (max-width: 900px) { .onboarding-stage { grid-template-columns: 1fr; } }
.onb-rail { display: grid; gap: var(--xl); }
.onb-step {
  padding: var(--xl);
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  transition: all var(--med);
  opacity: .55;
}
.onb-step.active {
  opacity: 1; transform: translateX(6px);
  border-color: var(--hairline2);
  background: rgba(215,255,58,0.04);
  box-shadow: -4px 0 0 0 var(--volt);
}
.onb-step .step-num {
  font-family: var(--f-mono); font-weight: 700; font-size: 12px; letter-spacing: .14em;
  color: var(--volt); display: block; margin-bottom: 8px;
}
.onb-step h3 { font-family: var(--f-display); font-weight: 700; font-size: 22px; margin: 0 0 6px; }
.onb-step p { color: var(--text-dim); margin: 0; font-size: 15px; line-height: 1.5; }

.onb-device { position: sticky; top: 100px; display: grid; place-items: center; gap: var(--lg); }
.onb-dots { display: flex; gap: 8px; }
.onb-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--hairline2); transition: all var(--med); }
.onb-dots span.active { background: var(--volt); width: 22px; border-radius: 999px; }

/* Onboarding screen variants */
.onb-frame { position: absolute; inset: 0; padding: 44px 14px 18px; display: flex; flex-direction: column; gap: 14px; transition: opacity .4s ease; }
.onb-frame .big-emoji { font-size: 64px; text-align: center; padding-top: 20px; }
.onb-progress { height: 6px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.onb-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--volt), var(--positive)); border-radius: 999px; transition: width 1.6s cubic-bezier(.2,.7,.2,1); }
.permission-row { display: grid; grid-template-columns: 28px 1fr 36px; gap: 10px; padding: 12px; align-items: center; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid var(--hairline); }
.permission-row .ico { width: 28px; height: 28px; border-radius: 8px; background: rgba(215,255,58,0.15); }
.permission-row .ico.r { background: rgba(255,77,109,.2); }
.permission-row .ico.b { background: rgba(179,136,255,.2); }
.permission-row .toggle { width: 36px; height: 22px; border-radius: 999px; background: var(--volt); position: relative; }
.permission-row .toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; background: var(--bg); border-radius: 50%; }
.baseline-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); }
.baseline-row .v { font-family: var(--f-mono); font-weight: 700; color: var(--volt); }

/* ============================================================
   Rich onboarding frame components — mirrors the iOS app screens
   ============================================================ */

/* Tighten frame gap and clip overflow for the new rich layouts */
.onb-frame { gap: 8px; overflow: hidden; }

/* Utility colour helpers */
.c-volt   { color: var(--volt); }
.c-teal   { color: var(--metric-teal); }
.c-danger { color: var(--metric-red); }

/* Step header ------------------------------------------------ */
.onbf-header { display: flex; flex-direction: column; gap: 1px; }
.onbf-label  { font-family: var(--f-mono); font-weight: 600; font-size: 7.5px; letter-spacing: .18em; margin: 0; }
.onbf-h1     { font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: -.04em; color: var(--text-main); margin: 0; line-height: 1.05; }
.onbf-h2     { font-family: var(--f-display); font-weight: 900; font-size: 20px; letter-spacing: -.04em; margin: 0 0 3px; line-height: 1.05; }
.onbf-sub    { font-size: 9px; color: var(--text-dim); margin: 0; line-height: 1.4; }
.onbf-note   { font-size: 8.5px; color: var(--text-mute); margin: 0; text-align: center; }

/* Tip box ---------------------------------------------------- */
.onbf-tip {
  font-size: 9px; padding: 7px 9px; line-height: 1.45;
  background: rgba(215,255,58,.08); border: 1px solid rgba(215,255,58,.22);
  border-radius: 9px; color: var(--text-main);
}
.onbf-tip strong { color: var(--text-main); }

/* Card base -------------------------------------------------- */
.onbf-card { background: var(--bg-elev2); border: 1px solid var(--hairline2); border-radius: 13px; overflow: hidden; }
.onbf-divider { height: 1px; background: var(--hairline); }
.onbf-divider-indent { margin-left: 14px; }

/* Permission card ------------------------------------------- */
.onbf-perm-head { display: flex; align-items: center; gap: 8px; padding: 9px 12px 7px; }
.onbf-app-icon  { width: 26px; height: 26px; border-radius: 7px; background: #ff3b30; display: grid; place-items: center; font-size: 14px; color: #fff; flex-shrink: 0; }
.onbf-perm-title { font-weight: 600; font-size: 11px; color: var(--text-main); margin: 0 0 1px; }
.onbf-perm-sub   { font-family: var(--f-mono); font-size: 7.5px; letter-spacing: .04em; color: var(--text-mute); margin: 0; }
.onbf-perm-row   { display: flex; justify-content: space-between; align-items: center; padding: 6px 12px; font-size: 11px; color: var(--text-main); }
.onbf-toggle { width: 28px; height: 17px; border-radius: 999px; background: var(--bg-elev3); position: relative; flex-shrink: 0; }
.onbf-toggle.on { background: var(--volt); }
.onbf-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; transition: left .2s; }
.onbf-toggle.on::after { left: calc(100% - 15px); }
.onbf-perm-footer { display: flex; align-items: center; gap: 5px; padding: 7px 12px; font-size: 8.5px; color: var(--text-mute); }

/* Name input row --------------------------------------------- */
.onbf-input-row { display: flex; align-items: center; gap: 8px; padding: 10px 13px; font-size: 12px; color: var(--text-main); }

/* Unit selector ---------------------------------------------- */
.onbf-unit-row { display: flex; align-items: center; gap: 9px; padding: 9px 12px; }
.onbf-unit-row.selected { background: rgba(215,255,58,.04); }
.onbf-radio { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--hairline2); flex-shrink: 0; position: relative; }
.onbf-radio.active { border-color: var(--volt); }
.onbf-radio.active::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--volt); }
.onbf-unit-name { font-weight: 600; font-size: 11px; color: var(--text-main); margin: 0; }
.onbf-unit-sub  { font-family: var(--f-mono); font-size: 7.5px; color: var(--text-mute); margin: 0; letter-spacing: .04em; }
.onbf-selected-badge { margin-left: auto; font-family: var(--f-mono); font-size: 7px; font-weight: 700; letter-spacing: .08em; background: var(--volt); color: var(--bg); padding: 2px 6px; border-radius: 999px; flex-shrink: 0; }

/* Card section header --------------------------------------- */
.onbf-card-header { display: flex; align-items: center; gap: 4px; padding: 7px 11px; font-family: var(--f-mono); font-size: 7.5px; font-weight: 700; letter-spacing: .1em; }

/* Baseline metric rows (units step) ------------------------- */
.onbf-metric-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; font-size: 10.5px; color: var(--text-main); }
.onbf-metric-row strong { font-family: var(--f-display); font-weight: 700; font-size: 11px; }
.onbf-metric-row em { font-family: var(--f-mono); font-weight: 400; font-size: 8.5px; color: var(--text-mute); font-style: normal; margin-left: 2px; }

/* Load rows (data loading step) ----------------------------- */
.onbf-load-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--bg-elev2); border: 1px solid var(--hairline); border-radius: 9px; }
.onbf-load-row.done    { border-color: rgba(61,220,151,.22); }
.onbf-load-row.loading { border-color: rgba(215,255,58,.28); }
.onbf-mi { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; flex-shrink: 0; }
.onbf-mi i { width: 10px; height: 10px; display: block; }
.onbf-load-row > span { font-weight: 700; font-size: 11px; color: var(--text-main); flex: 1; }
.onbf-chk { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; font-size: 10px; font-weight: 700; }
.onbf-chk.done { background: rgba(61,220,151,.15); color: var(--positive); }
.onbf-chk.done::after { content: "✓"; }
.onbf-spinner { width: 16px; height: 16px; border: 2px solid rgba(215,255,58,.2); border-top-color: var(--volt); border-radius: 50%; animation: onbf-spin .8s linear infinite; flex-shrink: 0; }
@keyframes onbf-spin { to { transform: rotate(360deg); } }

/* Insight cards (reveal step) ------------------------------- */
.onbf-insight-card { display: flex; overflow: hidden; background: var(--bg-elev2); border: 1px solid var(--hairline2); border-radius: 14px; }
.onbf-stripe { width: 4px; flex-shrink: 0; }
.onbf-ibody  { padding: 10px 11px 10px; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.onbf-itop   { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.onbf-ibadge { font-family: var(--f-mono); font-size: 7px; font-weight: 700; letter-spacing: .06em; }
.onbf-iconf-tag { font-family: var(--f-mono); font-size: 6.5px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--hairline2); padding: 2px 5px; border-radius: 4px; color: var(--text-dim); margin-left: auto; }
.onbf-itime  { font-family: var(--f-mono); font-size: 6.5px; color: var(--text-mute); }
.onbf-ititle { font-weight: 700; font-size: 11.5px; color: var(--text-main); margin: 0; line-height: 1.3; }
.onbf-itext  { font-size: 8.5px; color: var(--text-dim); margin: 0; line-height: 1.4; }
.onbf-iaction { font-size: 8.5px; font-weight: 600; color: var(--text-main); }
.onbf-ichip  { display: inline-block; font-family: var(--f-mono); font-size: 7px; font-weight: 600; letter-spacing: .08em; border: 1px solid var(--hairline2); padding: 2px 6px; border-radius: 5px; color: var(--text-dim); }
.onbf-ibar-wrap { display: flex; align-items: center; gap: 5px; margin-top: 3px; border-top: 1px solid var(--hairline); padding-top: 6px; }
.onbf-ibar-wrap > span { font-family: var(--f-mono); font-size: 6.5px; color: var(--text-mute); white-space: nowrap; }
.onbf-ibar   { flex: 1; height: 3px; background: var(--bg-elev3); border-radius: 2px; overflow: hidden; }
.onbf-ibar i { display: block; height: 100%; background: var(--volt); width: var(--w, 0%); border-radius: 2px; }
.onbf-ibar-wrap b { font-family: var(--f-mono); font-size: 8.5px; font-weight: 700; color: var(--text-main); white-space: nowrap; }

/* In-frame CTA buttons -------------------------------------- */
.onbf-btn-primary {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 36px; flex-shrink: 0;
  background: var(--volt); color: var(--bg); border: none; border-radius: 11px;
  font-family: var(--f-display); font-weight: 800; font-size: 10.5px;
  letter-spacing: .07em; text-transform: uppercase; cursor: pointer;
}
.onbf-btn-ghost {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 28px; flex-shrink: 0;
  background: none; border: none; color: var(--text-mute); font-size: 10.5px; cursor: pointer;
}

/* ============================================================
   Widgets & Watch
   ============================================================ */
.widgets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--xl);
  align-items: stretch;
}
@media (max-width: 980px) { .widgets-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .widgets-grid { grid-template-columns: 1fr; } }

.widget {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: var(--lg);
  display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
  min-height: 160px;
  backdrop-filter: blur(18px);
}
.widget::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 40%);
}
.w-small { grid-column: span 1; }
.w-medium { grid-column: span 2; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--lg); }
.w-large { grid-column: span 4; }
@media (max-width: 980px) { .w-medium, .w-large { grid-column: span 2; } }
@media (max-width: 600px) { .w-medium, .w-large { grid-column: span 1; } }
.widget .hero-number { font-size: 56px; line-height: 1; color: var(--volt); }
.w-small .metric-value { font-size: 30px; color: var(--volt); margin-top: 4px; }
.widget-row { display: flex; justify-content: space-between; align-items: center; }
.widget-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--md); margin: var(--md) 0; }
.widget-stats > div { display: grid; gap: 2px; }
.widget-stats strong { font-size: 22px; }
.ring-mini { width: 80px; height: 80px; flex-shrink: 0; }
.ring-mini svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.ring-mini .ring-track { stroke-width: 8; }
.ring-mini .ring-progress { stroke-width: 8; }

/* ============================================================
   Home-screen widgets (replicating real iOS widgets)
   ============================================================ */
.widgets-grid { align-items: stretch; }
.hs-widget-wrap {
  grid-column: span 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: var(--lg);
  border-radius: 28px;
  background:
    radial-gradient(800px 400px at 30% 0%, rgba(120,140,200,0.18), transparent 60%),
    radial-gradient(600px 500px at 100% 100%, rgba(80,60,140,0.22), transparent 60%),
    linear-gradient(180deg, #1a1f3a, #0c0d1e 60%, #060616);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
  height: 100%;
}
.hs-widget-wrap .hs-widget { flex: 1 1 auto; display: grid; }
@media (max-width: 980px) { .hs-widget-wrap { grid-column: span 1; } }
@media (max-width: 600px) { .hs-widget-wrap { padding: var(--lg); } }

.hs-widget {
  width: 100%; max-width: 360px;
  background: #0a0a0c;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
.hs-name {
  font-family: var(--f-body); font-size: 13px; color: #fff;
  margin: 0;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

/* --- Activity widget --- */
.activity-widget {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: center;
  min-height: 170px;
}
.aw-rings { width: 92px; height: 92px; }
.aw-rings svg { width: 100%; height: 100%; }
.aw-right { display: grid; gap: 8px; }
.aw-title {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: .14em;
  color: var(--volt); margin: 0;
  display: flex; align-items: center; gap: 6px;
}
.aw-title .dot { box-shadow: none; }
.aw-row {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px;
}
.aw-lbl { font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; color: var(--text-mute); margin: 0; }
.aw-val { font-family: var(--f-body); font-size: 14px; font-weight: 600; color: #fff; margin: 1px 0 0; }
.aw-pct { font-family: var(--f-mono); font-size: 13px; font-weight: 700; }
.aw-ico { width: 18px; height: 18px; background: var(--text-dim); display: block; }
.ico-flame { background: #FF8A3D; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 22a7 7 0 0 1-7-7c0-4 3-6 4-10 0 2 2 4 4 5 3-3 3-7 2-10 5 3 7 8 7 12a8 8 0 0 1-10 10z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 22a7 7 0 0 1-7-7c0-4 3-6 4-10 0 2 2 4 4 5 3-3 3-7 2-10 5 3 7 8 7 12a8 8 0 0 1-10 10z'/></svg>") center/contain no-repeat; }
.ico-walk  { background: var(--positive); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='13' cy='4' r='2' fill='black'/><path fill='black' d='M9 22 11 14 8 11 11 6 14 8 17 7l1 2-3 2-1 4 3 3 1 6h-2l-1-5-2-2-1 5z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='13' cy='4' r='2' fill='black'/><path fill='black' d='M9 22 11 14 8 11 11 6 14 8 17 7l1 2-3 2-1 4 3 3 1 6h-2l-1-5-2-2-1 5z'/></svg>") center/contain no-repeat; }
.ico-stand { background: #FF8A3D; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='4' r='2' fill='black'/><path fill='black' d='M10 22V12H8V8a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v4h-2v10z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='4' r='2' fill='black'/><path fill='black' d='M10 22V12H8V8a3 3 0 0 1 3-3h2a3 3 0 0 1 3 3v4h-2v10z'/></svg>") center/contain no-repeat; }

/* --- Readiness widget --- */
.readiness-widget {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 12px;
  min-height: 170px;
}
.rw-left { display: grid; align-content: center; gap: 2px; }
.rw-title { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--volt); margin: 0 0 6px; }
.ico-bolt-volt { width: 14px; height: 14px; background: var(--volt); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 2 4 14h6l-1 8 9-12h-6l1-8z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 2 4 14h6l-1 8 9-12h-6l1-8z'/></svg>") center/contain no-repeat; filter: drop-shadow(0 0 4px rgba(215,255,58,0.6)); }
.rw-score {
  font-family: var(--f-display); font-weight: 900;
  font-size: 56px; line-height: 1; color: #FF5A3D;
  letter-spacing: -.04em; margin: 4px 0 0;
}
.rw-sub { font-family: var(--f-body); font-size: 14px; color: var(--text-dim); margin: 4px 0 0; }
.rw-state { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--text-main); margin: 8px 0 0; }

.rw-right { display: grid; gap: 8px; align-content: stretch; }
.rw-mini {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 8px 10px;
}
.rw-mini-head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--text-dim); margin: 0;
}
.rw-mini-head i { width: 11px; height: 11px; }
.rw-mini-head b { margin-left: auto; color: #fff; font-family: var(--f-mono); font-weight: 700; font-size: 14px; }
.rw-mini[data-tone="uv"]       .rw-mini-head i { background: var(--uv); }
.rw-mini[data-tone="volt"]     .rw-mini-head i { background: var(--volt); filter: drop-shadow(0 0 4px rgba(215,255,58,.6)); }
.rw-mini[data-tone="danger"]   .rw-mini-head i { background: var(--danger); }
.rw-mini[data-tone="positive"] .rw-mini-head i { background: var(--positive); }
.rw-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.rw-bar i { display: block; height: 100%; width: var(--w); border-radius: 999px; }
.rw-mini[data-tone="uv"]       .rw-bar i { background: var(--uv); }
.rw-mini[data-tone="volt"]     .rw-bar i { background: var(--volt); box-shadow: 0 0 6px rgba(215,255,58,.6); }
.rw-mini[data-tone="danger"]   .rw-bar i { background: var(--danger); }
.rw-mini[data-tone="positive"] .rw-bar i { background: var(--positive); }

/* --- Steps widget --- */
.steps-widget {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  min-height: 170px;
}
.sw-left { display: grid; align-content: start; gap: 4px; }
.sw-title { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; color: var(--text-dim); margin: 0; }
.sw-top-row { display: flex; justify-content: flex-end; margin-top: -16px; }
.sw-trend { font-family: var(--f-mono); font-size: 11px; }
.sw-big { font-family: var(--f-display); font-weight: 900; font-size: 44px; line-height: 1; color: #fff; letter-spacing: -.04em; margin-top: 6px; }
.sw-foot { font-family: var(--f-body); font-size: 11px; color: var(--text-mute); margin-top: auto; padding-top: 12px; }

.sw-right { display: grid; gap: 8px; }
.sw-mini { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 8px 10px; }
.sw-mini-head { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; margin: 0; }
.sw-mini-head i { width: 11px; height: 11px; background: currentColor; }
.sw-mini-val { font-family: var(--f-display); font-weight: 800; font-size: 18px; color: #fff; margin: 2px 0 0; }
.sw-mini-val em { font-style: normal; font-family: var(--f-mono); font-size: 11px; color: var(--text-mute); font-weight: 500; margin-left: 2px; }

.ico-pulse { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='2,12 6,12 9,4 13,20 16,12 22,12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='2,12 6,12 9,4 13,20 16,12 22,12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }

@media (max-width: 600px) {
  .activity-widget, .readiness-widget, .steps-widget { grid-template-columns: 1fr; }
  .aw-rings { width: 130px; margin: 0 auto; }
}

/* Watch */
.watch {
  grid-column: 1 / -1;
  display: grid; place-items: center;
  padding: var(--xxxl) 0 var(--xl);
  margin-top: var(--xxl);
  position: relative;
}
.watch-body {
  width: 220px; height: 260px;
  border-radius: 56px;
  background: linear-gradient(180deg, #1a1a20, #0d0d12);
  box-shadow: 0 0 0 1px #2a2a32 inset, 0 0 0 4px #050508, 0 30px 60px -20px rgba(0,0,0,0.7), 0 0 80px -20px rgba(215,255,58,0.4);
  position: relative;
  display: grid; place-items: center;
}
.watch-screen {
  width: 88%; height: 84%; border-radius: 44px;
  background: var(--bg);
  display: grid; place-items: center;
  position: relative; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.watch-rings { position: relative; width: 84%; aspect-ratio: 1/1; }
.watch-rings svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.wr { fill: none; stroke-width: 9; stroke-linecap: round; }
.wr-bg-volt  { stroke: rgba(215,255,58,0.15); }
.wr-bg-ember { stroke: rgba(255,90,31,0.15); }
.wr-bg-uv    { stroke: rgba(179,136,255,0.15); }
.wr-volt     { stroke: var(--volt);  filter: drop-shadow(0 0 6px rgba(215,255,58,.7)); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.wr-ember    { stroke: var(--ember); filter: drop-shadow(0 0 6px rgba(255,90,31,.7));  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.wr-uv       { stroke: var(--uv);    filter: drop-shadow(0 0 6px rgba(179,136,255,.7)); transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1); }
.watch-readiness { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.watch-readiness b { font-family: var(--f-display); font-weight: 900; font-size: 42px; color: var(--volt); display: block; line-height: 1; }
.watch-readiness span { font-family: var(--f-mono); font-size: 9px; letter-spacing: .2em; color: var(--text-mute); }
.crown { position: absolute; right: -4px; top: 80px; width: 12px; height: 32px; border-radius: 4px; background: linear-gradient(180deg, #3a3a44, #1f1f26); }
.action { position: absolute; right: -3px; top: 140px; width: 10px; height: 50px; border-radius: 3px; background: linear-gradient(180deg, #2a2a30, #16161c); }
.watch-strap {
  width: 130px; height: 60px;
  background: linear-gradient(180deg, #1d1d22, #0e0e12);
  position: absolute;
  border-radius: 8px;
}
.watch-strap.top { top: -40px; }
.watch-strap.bottom { bottom: -40px; }

/* ============================================================
   Watch Showcase — 4-screen gallery (mirrors watchOS app)
   ============================================================ */
.ws-showcase {
  grid-column: 1 / -1;
  padding: var(--xxl) 0 var(--xl);
  margin-top: var(--xxl);
}
.ws-gallery-label {
  text-align: center;
  font-family: var(--f-mono); font-weight: 600; font-size: 10px;
  letter-spacing: .18em; color: var(--text-mute); text-transform: uppercase;
  margin: 0 0 var(--xl);
}
.ws-row {
  display: flex; justify-content: center;
  gap: 28px; flex-wrap: wrap; align-items: flex-start;
}

/* Per-watch wrapper */
.ws-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  position: relative;
}
.ws-caption {
  font-family: var(--f-mono); font-size: 9px; font-weight: 600;
  letter-spacing: .14em; color: var(--text-mute); text-transform: uppercase;
}

/* Screen base — fills the watch-screen inner area */
.ws-screen { padding: 0; overflow: hidden; }

/* Shared top bar */
.ws-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px 4px; width: 100%; box-sizing: border-box;
}
.ws-topbar-right { justify-content: flex-end; }
.ws-mono-label {
  font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; color: var(--text-main);
}
.ws-greeting-text {
  font-family: var(--f-display); font-weight: 700; font-size: 11px;
  color: var(--text-main);
}
.ws-time {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600;
  color: var(--text-main); display: flex; align-items: center; gap: 2px;
}

/* Dots pagination */
.ws-dots {
  display: flex; gap: 5px; justify-content: center;
  padding: 6px 0 8px;
}
.ws-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--hairline2); display: block;
}
.ws-dots i.on { background: var(--text-main); }

/* ── Screen 1: Activity Rings ─────────────────────────────── */
.ws-rings-screen {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; height: 100%;
}
.ws-date {
  font-size: 9px; color: var(--text-mute); margin: 0 0 4px;
  padding: 0 12px; align-self: flex-start;
}
.ws-rings-wrap {
  position: relative; width: 80%; aspect-ratio: 1/1;
  flex: 1; max-height: 124px;
}
.ws-ring-center {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center;
}
.ws-ring-center b {
  font-family: var(--f-display); font-weight: 900; font-size: 26px;
  color: var(--volt); display: block; line-height: 1;
}
.ws-ring-center span {
  font-family: var(--f-mono); font-size: 7px; letter-spacing: .18em; color: var(--text-mute);
}

/* ── Screen 2: Metrics 2×2 ───────────────────────────────── */
.ws-metrics-screen {
  display: flex; flex-direction: column; width: 100%; height: 100%;
}
.ws-metric-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3px;
  padding: 2px 5px; flex: 1;
}
.ws-mc {
  background: var(--bg-elev2); border-radius: 10px;
  padding: 7px 7px 5px; display: flex; flex-direction: column; overflow: hidden;
}
.ws-mc-head {
  font-family: var(--f-mono); font-size: 7px; font-weight: 700;
  letter-spacing: .04em; margin: 0 0 2px;
  display: flex; align-items: center; gap: 3px;
}
.ws-mc-val {
  font-family: var(--f-display); font-weight: 800; font-size: 15px;
  color: var(--text-main); margin: 0; line-height: 1.1;
}
.ws-mc-val em { font-size: 8px; font-weight: 400; color: var(--text-mute); font-style: normal; }
.ws-mc-sub { font-size: 7px; color: var(--text-mute); margin: 0 0 3px; }
.ws-spark { width: 100%; height: 16px; margin-top: auto; }
.ws-sleep-bars {
  display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-top: auto;
}
.ws-sleep-bars i {
  flex: 1; border-radius: 2px 2px 0 0; background: #B388FF;
  height: var(--h, 50%); display: block;
}

/* ── Screen 3: AI Insight ─────────────────────────────────── */
.ws-insight-screen {
  display: flex; flex-direction: column; padding: 0 12px 6px; height: 100%;
}
.ws-insight-label {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 6px;
}
.ws-warn-ico { font-size: 10px; }
.ws-insight-title {
  font-family: var(--f-display); font-weight: 700; font-size: 14px;
  color: var(--text-main); margin: 0 0 6px; line-height: 1.3;
}
.ws-insight-body {
  font-size: 9.5px; color: var(--text-dim); margin: 0 0 8px;
  line-height: 1.5; flex: 1;
}
.ws-hr { height: 1px; background: var(--hairline2); margin-bottom: 8px; }
.ws-insight-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ws-btn-yes {
  background: var(--positive); color: #000; border: none; border-radius: 10px;
  padding: 7px 4px; font-size: 10px; font-weight: 700; cursor: default;
}
.ws-btn-no {
  background: var(--bg-elev2); color: var(--text-dim); border: none; border-radius: 10px;
  padding: 7px 4px; font-size: 10px; font-weight: 500; cursor: default;
}

/* ── Screen 4: Readiness Breakdown ───────────────────────── */
.ws-ready-screen {
  display: flex; flex-direction: column; width: 100%; height: 100%;
}
.ws-ready-hero {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 10px 6px;
}
.ws-ready-ring-wrap { width: 60px; height: 60px; flex-shrink: 0; }
.ws-ready-score { display: flex; flex-direction: column; }
.ws-ready-score b {
  font-family: var(--f-display); font-weight: 900; font-size: 30px;
  color: var(--volt); line-height: 1;
}
.ws-ready-score span { font-size: 9px; color: var(--text-mute); margin-top: 2px; }
.ws-ready-rows {
  display: flex; flex-direction: column; gap: 3px;
  padding: 0 8px; flex: 1;
}
.ws-rr {
  display: flex; align-items: center; gap: 5px;
  background: var(--bg-elev2); border-radius: 8px; padding: 5px 8px;
}
.ws-rr > span { font-size: 9px; color: var(--text-main); width: 46px; flex-shrink: 0; }
.ws-rr-track {
  flex: 1; height: 3px; background: var(--bg-elev3); border-radius: 2px; overflow: hidden;
}
.ws-rr-track i { display: block; height: 100%; width: var(--w, 0%); border-radius: 2px; }
.ws-rr b {
  font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  color: var(--text-main); width: 24px; text-align: right; flex-shrink: 0;
}

/* ============================================================
   Big stats strip
   ============================================================ */
.bigstats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--lg);
  padding: var(--xxl) var(--xxl);
  max-width: 1280px; margin: 0 auto;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.bs { padding: var(--lg); text-align: center; display: grid; gap: var(--xs); }
.bs .hero-number { color: var(--volt); }
@media (max-width: 820px) { .bigstats { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   CTA + footer
   ============================================================ */
.cta { padding: var(--xxxl) var(--xxl); max-width: 1280px; margin: 0 auto; }
.cta-inner { padding: clamp(40px, 8vw, 80px); text-align: center; background: linear-gradient(135deg, rgba(215,255,58,0.08), rgba(179,136,255,0.08)); border-color: var(--hairline2); }
.cta-inner .display { margin-bottom: var(--md); }

.foot { padding: var(--xl) var(--xxl) var(--xxl); max-width: 1280px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: var(--lg); margin-bottom: var(--lg); flex-wrap: wrap; }
.foot-links { display: flex; gap: var(--xl); color: var(--text-dim); font-size: 14px; }
.foot-links a:hover { color: var(--text-main); }

/* ============================================================
   In-phone "Today" screen — high-fidelity rebuild
   ============================================================ */
.screen-app.today {
  padding: 0;
  background: #000;
  overflow: hidden;
}
.screen-app.today .status-bar {
  height: 40px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 8px 20px 0;
  font-family: var(--f-mono);
  font-size: 13px;
  color: #fff;
  font-weight: 600;
  gap: 6px;
}
.ic-bed { width: 14px; height: 10px; background: #fff; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'><path fill='black' d='M2 2v8h2v2H2v2h0V2zm20 0v12h0v-2h-2V8a4 4 0 0 0-4-4H10a4 4 0 0 0-4 4v2H4V2H2v12h2v-2h16v2h2V2z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'><path fill='black' d='M2 2h2v12H2zM4 6h12a4 4 0 0 1 4 4v4H4z'/></svg>") center/contain no-repeat; }
.status-right { display: inline-flex; gap: 5px; align-items: center; }
.status-right i { display: inline-block; }
.ic-signal { width: 16px; height: 10px; background: linear-gradient(to top right, #fff 0, #fff 60%, transparent 60%); border-radius: 1px; }
.ic-wifi   { width: 15px; height: 11px; background: #fff; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'><path fill='black' d='M12 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5-5a8 8 0 0 0-10 0l-2-2a11 11 0 0 1 14 0zm4-4a14 14 0 0 0-18 0l-2-2a17 17 0 0 1 22 0z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 18'><path fill='black' d='M12 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5-5a8 8 0 0 0-10 0l-2-2a11 11 0 0 1 14 0zm4-4a14 14 0 0 0-18 0l-2-2a17 17 0 0 1 22 0z'/></svg>") center/contain no-repeat; }
.ic-batt   { width: 26px; height: 12px; border: 1px solid #fff; border-radius: 3px; position: relative; }
.ic-batt::before { content: ""; position: absolute; right: -3px; top: 3px; width: 2px; height: 5px; background: #fff; border-radius: 1px; }
.ic-batt::after  { content: ""; position: absolute; left: 1px; top: 1px; bottom: 1px; width: 60%; background: #FFC857; border-radius: 1px; }

.today-head.pinned {
  position: absolute; top: 40px; left: 0; right: 0;
  padding: 6px 18px 14px;
  z-index: 3;
  background: linear-gradient(180deg, #000 70%, rgba(0,0,0,0.85) 90%, rgba(0,0,0,0));
}
.today-pan {
  padding: 4px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: absolute; top: 128px; left: 0; right: 0;
  animation: panVertical 38s ease-in-out infinite alternate;
  will-change: transform;
}
.today-pan > * { flex-shrink: 0; }
.screen-app.today::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 76px;
  height: 60px; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, transparent, #000 90%);
}
@keyframes panVertical {
  0%, 12%   { transform: translateY(0); }
  88%, 100% { transform: translateY(var(--pan-end, 0px)); }
}
.today:hover .today-pan { animation-play-state: paused; }

.today-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 6px;
}
.day-stamp {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: .18em; color: var(--volt);
  margin: 0 0 4px;
}
.hey {
  font-family: var(--f-display); font-weight: 900;
  font-size: 30px; line-height: 1; letter-spacing: -.02em;
  color: #fff; margin: 0;
}
.avatar-volt {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--volt); color: #000;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 18px;
  box-shadow: 0 0 22px rgba(215,255,58,0.4);
}

/* Generic Today card */
.t-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.t-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-weight: 500;
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
}
.t-sub  { font-family: var(--f-body); font-size: 12px; color: var(--text-dim); margin: 4px 0 0; line-height: 1.4; }
.t-fine { font-family: var(--f-body); font-size: 11px; margin: 2px 0 0; }
.t-mono { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; margin: 4px 0 0; }
.t-meta { font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em; color: var(--text-mute); margin: 8px 0 0; text-transform: uppercase; }

/* AI insight */
.ai-insight {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px; align-items: start;
  background:
    radial-gradient(220px 100px at 100% 0%, rgba(215,255,58,0.10), transparent 70%),
    rgba(215,255,58,0.025);
  border-color: rgba(215,255,58,0.25);
}
.ai-badge {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--volt); color: #000;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 900; font-size: 13px;
  box-shadow: 0 0 22px rgba(215,255,58,0.45);
  margin-top: 4px;
}
.ai-body h3 {
  font-family: var(--f-body); font-weight: 600;
  font-size: 13px; line-height: 1.3; color: #fff;
  margin: 4px 0 4px;
}
.ai-body .t-action {
  font-family: var(--f-body); font-weight: 600;
  font-size: 12px; color: var(--volt);
  margin: 6px 0 0; line-height: 1.4;
}
.t-chev { color: var(--text-mute); font-size: 22px; line-height: 1; padding-top: 8px; }

/* Activity */
.activity {
  display: grid; grid-template-columns: 110px 1fr; gap: 10px;
  align-items: center;
}
.rings3 { position: relative; width: 110px; height: 110px; }
.rings3 svg { width: 100%; height: 100%; }
.r-bg     { fill: none; stroke-width: 8; }
.r-fg     { fill: none; stroke-width: 8; stroke-linecap: round; }
.r-bg-volt { stroke: rgba(215,255,58,0.18); }
.r-bg-pos  { stroke: rgba(61,220,151,0.18); }
.r-bg-emb  { stroke: rgba(255,170,90,0.18); }
.r-volt    { stroke: var(--volt);     filter: drop-shadow(0 0 6px rgba(215,255,58,.6)); }
.r-pos     { stroke: var(--positive); filter: drop-shadow(0 0 6px rgba(61,220,151,.6)); }
.r-emb     { stroke: #FFAE5A;         filter: drop-shadow(0 0 6px rgba(255,174,90,.6)); }

.activity-info { display: grid; gap: 4px; }
.lets-go {
  font-family: var(--f-display); font-weight: 900;
  font-size: 24px; letter-spacing: -.01em; color: #fff; margin: 2px 0 6px;
}
.act-line {
  display: grid; grid-template-columns: 10px 70px auto auto 1fr; gap: 6px;
  align-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  color: var(--text-dim);
}
.act-line .dot { width: 6px; height: 6px; box-shadow: none; }
.act-line span { color: var(--text-dim); }
.act-line b { color: #fff; font-family: var(--f-mono); font-weight: 700; font-size: 12px; }
.act-line em { font-style: normal; color: var(--text-mute); font-size: 9px; letter-spacing: .12em; }

/* Readiness */
.readiness-card { padding: 16px 14px; background: linear-gradient(180deg, rgba(215,255,58,0.04), rgba(215,255,58,0)); }
.readiness-score {
  display: flex; align-items: baseline; gap: 4px; margin: 6px 0 2px;
}
.readiness-score b {
  font-family: var(--f-display); font-weight: 900;
  font-size: 56px; line-height: 1; color: var(--volt);
  letter-spacing: -.04em;
}
.readiness-score span { font-family: var(--f-mono); color: var(--text-mute); font-size: 14px; }
.big-head {
  font-family: var(--f-display); font-weight: 900;
  font-size: 18px; letter-spacing: -.01em;
  color: #fff; margin: 8px 0 4px; text-transform: uppercase;
}
.t-arrow {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: center;
  font-size: 12px; color: #fff; margin: 10px 0 0;
}
.arrow-circle {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--volt); color: #000;
  display: grid; place-items: center;
  font-family: var(--f-body); font-weight: 800; font-size: 12px;
}
.ready-scale { margin-top: 12px; }
.ready-bar {
  height: 4px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden;
}
.ready-bar i { display: block; height: 100%; width: var(--w); background: var(--volt); border-radius: 999px; box-shadow: 0 0 8px rgba(215,255,58,0.6); }
.ready-labels {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em;
  color: var(--text-mute);
}
.ready-labels .lit { color: var(--volt); }
.ready-labels span:nth-child(2) { text-align: center; }
.ready-labels span:nth-child(3) { text-align: center; }
.ready-labels span:nth-child(4) { text-align: right; }
.ready-bars { display: grid; gap: 8px; margin-top: 12px; }
.rb {
  display: grid; grid-template-columns: 70px 1fr 28px; gap: 10px; align-items: center;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; color: var(--text-mute);
}
.rb-bar { height: 4px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.rb-bar i { display: block; height: 100%; width: var(--w); background: var(--volt); border-radius: 999px; box-shadow: 0 0 6px rgba(215,255,58,0.4); }
.rb b { color: var(--volt); font-weight: 700; text-align: right; }

/* Steps card */
.steps-card .t-label .ic-step {
  width: 12px; height: 12px; border: 1.5px solid var(--text-mute); border-radius: 50%; display: inline-block;
}
.steps-big {
  font-family: var(--f-display); font-weight: 900;
  font-size: 72px; line-height: 1; color: var(--volt);
  letter-spacing: -.04em; margin: 6px 0 0;
}
.weekly-chart { width: 100%; height: 80px; margin: 8px 0 4px; display: block; }
.week-axis {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .12em;
  color: var(--text-mute); text-align: center;
}
.week-axis .lit { color: var(--volt); }

/* 4 metric grid */
.t-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.t-card.mini { padding: 12px; display: flex; flex-direction: column; gap: 4px; min-height: 130px; }
.mini-head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em;
  color: var(--text-mute);
}
.mini-head .trend { margin-left: auto; }
.trend.down { color: var(--danger); font-family: var(--f-mono); font-size: 10px; }
.mini-value {
  font-family: var(--f-display); font-weight: 900;
  font-size: 22px; color: #fff; margin: 2px 0 0;
}
.mini-value em { font-style: normal; font-family: var(--f-mono); font-weight: 500; font-size: 10px; color: var(--text-mute); margin-left: 2px; letter-spacing: .1em; }
.mini-sub { font-family: var(--f-body); font-size: 11px; color: var(--text-dim); margin: 0; }
.mini-body { font-family: var(--f-body); font-size: 10px; color: var(--text-dim); margin: 0; line-height: 1.35; }
.mini-spark { width: 100%; height: 26px; margin-top: auto; }

/* mini icons */
.ic-heart, .ic-bolt, .ic-moon, .ic-run, .ic-recovery { width: 12px; height: 12px; background: var(--text-mute); display: inline-block; }
.ic-heart { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 21s-7-4.5-9.5-9C.7 8.7 2.5 4 7 4c2 0 3.5 1 5 3 1.5-2 3-3 5-3 4.5 0 6.3 4.7 4.5 8-2.5 4.5-9.5 9-9.5 9z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 21s-7-4.5-9.5-9C.7 8.7 2.5 4 7 4c2 0 3.5 1 5 3 1.5-2 3-3 5-3 4.5 0 6.3 4.7 4.5 8-2.5 4.5-9.5 9-9.5 9z'/></svg>") center/contain no-repeat; }
.ic-bolt  { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 2 4 14h6l-1 8 9-12h-6l1-8z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 2 4 14h6l-1 8 9-12h-6l1-8z'/></svg>") center/contain no-repeat; }
.ic-moon  { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 13A9 9 0 1 1 11 3a7 7 0 0 0 10 10z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M21 13A9 9 0 1 1 11 3a7 7 0 0 0 10 10z'/></svg>") center/contain no-repeat; }
.ic-run      { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-2 17 1-6 -2-2 3-7 4 3 4-1-1 4-3-1-1 3 2 2-2 5z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 4a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm-2 17 1-6 -2-2 3-7 4 3 4-1-1 4-3-1-1 3 2 2-2 5z'/></svg>") center/contain no-repeat; }
.ic-recovery { -webkit-mask: none !important; mask: none !important; background: transparent !important; font-style: normal; font-size: 11px; line-height: 12px; text-align: center; }
.ic-recovery::before { content: '↻'; }

/* sleep bars */
.sleep-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 32px; margin-top: auto; padding-top: 4px;
}
.sleep-bars i {
  flex: 1; height: var(--h);
  background: linear-gradient(180deg, #B388FF, rgba(179,136,255,.4));
  border-radius: 2px;
}

/* Tab bar */
.tabbar {
  position: absolute; left: 10px; right: 10px; bottom: 12px;
  height: 60px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(20,20,24,0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 30px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--text-dim);
  font-family: var(--f-body); font-size: 10px; font-weight: 500;
  height: 100%;
  position: relative;
}
.tab i { width: 18px; height: 18px; background: var(--text-dim); display: block; }
.tab.active { color: var(--volt); }
.tab.active i { background: var(--volt); }
.tab.active::before {
  content: ""; position: absolute; inset: 6px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px;
}
.tab > * { position: relative; z-index: 1; }
.ic-sun    { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 7a5 5 0 1 0 0 10 5 5 0 0 0 0-10zm0-5v3m0 14v3m9-9h-3M5 12H2m15.5-6.5-2 2m-7 7-2 2m11 0-2-2m-7-7L5.5 5.5'/><path fill='none' stroke='black' stroke-width='2' stroke-linecap='round' d='M12 2v3m0 14v3m9-9h-3M5 12H2m15.5-6.5-2 2m-7 7-2 2m11 0-2-2m-7-7L5.5 5.5'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='12' r='5' fill='black'/><g stroke='black' stroke-width='2' stroke-linecap='round' fill='none'><path d='M12 2v2M12 20v2M2 12h2M20 12h2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/></g></svg>") center/contain no-repeat; }
.ic-chart  { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='3,18 9,12 13,16 21,7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/><polyline points='15,7 21,7 21,13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='3,18 9,12 13,16 21,7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/><polyline points='15,7 21,7 21,13' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat; }
.ic-bolt2  { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 2 4 14h6l-1 8 9-12h-6l1-8z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M13 2 4 14h6l-1 8 9-12h-6l1-8z'/></svg>") center/contain no-repeat; }
.ic-flag   { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 2v20h2v-8h12L17 9l2-5H5z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M5 2v20h2v-8h12L17 9l2-5H5z'/></svg>") center/contain no-repeat; }
.ic-person { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4' fill='black'/><path fill='black' d='M4 22a8 8 0 0 1 16 0z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><circle cx='12' cy='8' r='4' fill='black'/><path fill='black' d='M4 22a8 8 0 0 1 16 0z'/></svg>") center/contain no-repeat; }

@media (prefers-reduced-motion: reduce) {
  .today-pan { animation: none !important; }
}

/* ============================================================
   Legal pages (Privacy Policy / Terms of Use)
   ============================================================ */
.legal-page .bg-aurora { opacity: .35; }

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) var(--xxl) var(--xxl);
}
.legal-head { text-align: center; display: grid; place-items: center; gap: var(--md); margin-bottom: var(--xxxl); }
.legal-head .display { font-size: clamp(36px, 5vw, 64px); margin: var(--xs) 0 0; }
.legal-head .lede { max-width: 60ch; margin-top: var(--md); }
.legal-stamp {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-mute); margin: 0;
}

.legal-body {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 56px);
  backdrop-filter: blur(14px);
}
.legal-body h2 {
  font-family: var(--f-display); font-weight: 800;
  font-size: 22px; letter-spacing: -.01em;
  color: var(--text-main);
  margin: var(--xxl) 0 var(--md);
  padding-top: var(--lg);
  border-top: 1px solid var(--hairline);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 {
  font-family: var(--f-body); font-weight: 700;
  font-size: 16px; color: var(--volt);
  margin: var(--lg) 0 var(--sm);
  text-transform: none; letter-spacing: 0;
}
.legal-body p {
  font-family: var(--f-body); font-size: 16px; line-height: 1.7;
  color: var(--text-dim);
  margin: 0 0 var(--md);
}
.legal-body strong { color: var(--text-main); font-weight: 600; }
.legal-body a {
  color: var(--volt);
  text-decoration: underline;
  text-decoration-color: rgba(215,255,58,0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--fast);
}
.legal-body a:hover { text-decoration-color: var(--volt); }
.legal-body ul {
  margin: 0 0 var(--md);
  padding: 0;
  list-style: none;
}
.legal-body li {
  font-family: var(--f-body); font-size: 16px; line-height: 1.65;
  color: var(--text-dim);
  padding: 4px 0 4px 22px;
  position: relative;
}
.legal-body li::before {
  content: "";
  position: absolute; left: 4px; top: 14px;
  width: 6px; height: 6px;
  background: var(--volt);
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(215,255,58,0.5);
}

.legal-body .legal-block {
  font-family: var(--f-mono); font-size: 13px; line-height: 1.7;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--ember);
  border-radius: 10px;
  padding: var(--lg);
  color: var(--text-main);
  letter-spacing: .01em;
}

.legal-table-wrap { overflow-x: auto; margin: 0 0 var(--md); }
.legal-table {
  width: 100%; border-collapse: collapse;
  font-family: var(--f-body); font-size: 14px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  overflow: hidden;
}
.legal-table thead th {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-mute);
  text-align: left;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--hairline);
}
.legal-table td {
  padding: 12px 16px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--hairline);
}
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.legal-foot {
  margin-top: var(--xxl);
  display: flex; flex-wrap: wrap; gap: var(--md);
  justify-content: center;
}

@media (max-width: 600px) {
  .legal { padding: 32px var(--lg) var(--lg); }
  .legal-body { padding: var(--xl) var(--lg); }
}

/* ============================================================
   Help & Support page
   ============================================================ */
.legal.help .legal-head .display { font-size: clamp(36px, 5vw, 56px); }

/* Quick actions */
.help-actions {
  display: grid; gap: var(--md);
  margin-bottom: var(--xxxl);
}
.help-action {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center; gap: var(--md);
  padding: var(--md) var(--lg);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline2);
  border-radius: 16px;
  color: var(--text-main);
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
}
.help-action:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(215,255,58,0.3);
  transform: translateX(2px);
}
.ha-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(215,255,58,0.12);
  position: relative;
}
.ha-icon::before {
  content: ""; position: absolute; inset: 11px;
  background: var(--volt);
}
.ha-mail::before   { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 8 8-5H4l8 5z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm9 8 8-5H4l8 5z'/></svg>") center/contain no-repeat; }
.ha-health::before { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 21s-7-4.5-9.5-9C.7 8.7 2.5 4 7 4c2 0 3.5 1 5 3 1.5-2 3-3 5-3 4.5 0 6.3 4.7 4.5 8-2.5 4.5-9.5 9-9.5 9z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M12 21s-7-4.5-9.5-9C.7 8.7 2.5 4 7 4c2 0 3.5 1 5 3 1.5-2 3-3 5-3 4.5 0 6.3 4.7 4.5 8-2.5 4.5-9.5 9-9.5 9z'/></svg>") center/contain no-repeat; }
.ha-watch::before  { -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M8 1h8l-1 4h-6zM8 19l-1 4h10l-1-4zM6 5h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/></svg>") center/contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M8 1h8l-1 4h-6zM8 19l-1 4h10l-1-4zM6 5h12a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2z'/></svg>") center/contain no-repeat; }
.ha-text { display: grid; gap: 2px; }
.ha-text strong { font-family: var(--f-body); font-weight: 600; font-size: 15px; color: var(--text-main); }
.ha-text span   { font-family: var(--f-body); font-weight: 400; font-size: 13px; color: var(--text-dim); }
.ha-chev { color: var(--text-mute); font-size: 22px; line-height: 1; }

/* Section labels */
.section-label {
  font-family: var(--f-mono); font-weight: 600;
  font-size: 11px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute); margin: 0 0 var(--md);
}

.help-section { margin-bottom: var(--xxxl); }

/* FAQ accordion using native <details> */
.faq-list { display: grid; gap: var(--sm); }
.faq {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline2);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color var(--fast), background var(--fast);
}
.faq[open] {
  background: rgba(215,255,58,0.04);
  border-color: rgba(215,255,58,0.25);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--md) var(--lg);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sm);
  font-family: var(--f-body); font-weight: 600; font-size: 15px;
  color: var(--text-main);
}
.faq summary::-webkit-details-marker { display: none; }
.faq-chev {
  width: 14px; height: 14px;
  background: var(--text-mute);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='6,9 12,15 18,9' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='6,9 12,15 18,9' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/contain no-repeat;
  flex-shrink: 0;
  transition: transform var(--med), background var(--fast);
}
.faq[open] .faq-chev { transform: rotate(180deg); background: var(--volt); }
.faq p {
  font-family: var(--f-body); font-size: 15px; line-height: 1.65;
  color: var(--text-dim);
  margin: 0;
  padding: 0 var(--lg) var(--lg);
  animation: faqOpen .22s ease-out;
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Troubleshooting */
.tips {
  list-style: none;
  padding: var(--lg);
  margin: 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline2);
  border-radius: 14px;
  display: grid; gap: var(--sm);
}
.tips li {
  display: grid; grid-template-columns: 22px 1fr; gap: var(--sm);
  align-items: start;
  font-family: var(--f-body); font-size: 15px; line-height: 1.55;
  color: var(--text-dim);
}
.tip-check {
  position: relative;
  width: 18px; height: 18px;
  background: var(--volt);
  border-radius: 50%;
  margin-top: 1px;
  box-shadow: 0 0 6px rgba(215,255,58,0.5);
  flex-shrink: 0;
}
.tip-check::after {
  content: "";
  position: absolute; inset: 0;
  background: #000;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='6,12 10,16 18,8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/70% 70% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='6,12 10,16 18,8' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/70% 70% no-repeat;
}

/* Contact card */
.contact-card {
  padding: var(--xl);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--hairline2);
  border-radius: 16px;
  display: grid; gap: var(--md);
}
.contact-card p {
  font-family: var(--f-body); font-size: 15px; line-height: 1.6;
  color: var(--text-dim);
  margin: 0;
}
.contact-cta {
  justify-self: stretch;
  height: 48px;
  font-size: 13px; letter-spacing: .1em;
}
.contact-version {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--text-mute) !important;
  margin: 0 !important;
}

/* ============================================================
   Animations — reveal on scroll
   ============================================================ */
[data-anim="reveal"], .reveal { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
[data-anim="reveal"].visible, .reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .aurora { animation: none !important; }
  .float  { animation: none !important; }
}

/* ============================================================
   Responsive — tablet & mobile fine-tuning
   ============================================================ */

/* Tablet & smaller laptops */
@media (max-width: 820px) {
  .section { padding: clamp(60px, 9vw, 100px) var(--xl); }
  .hero { padding: var(--xxl) var(--xl) 60px; }
  .lede { font-size: 16px; }
}

/* Mobile portrait */
@media (max-width: 640px) {
  .section { padding: 64px var(--lg); }
  .hero { padding: var(--xl) var(--lg) 48px; gap: var(--xl); }
  .hero-icon { width: 72px; height: 72px; }
  .hero-cta { flex-wrap: wrap; gap: var(--md); }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
  .hero-meta { flex-wrap: wrap; gap: var(--md); font-size: 13px; }
  .lede { font-size: 15.5px; }

  /* Onboarding phone — shrink so it never overflows narrow screens */
  .phone.small { --w: 280px; }

  /* Watch row: tighter wrap */
  .ws-row { gap: 20px; }

  /* Section heads */
  .section-head { gap: var(--md); margin-bottom: var(--xl); }

  /* Big stats: 2-up already; smaller numbers */
  .bigstats { padding: var(--xxl) var(--lg); gap: var(--xl); }
  .hero-number { font-size: clamp(36px, 9vw, 56px); }

  /* CTA */
  .cta { padding: var(--xxl) var(--lg); }
  .cta-inner { padding: var(--xxl) var(--lg); }

  /* Footer */
  .foot { padding: var(--lg); }
  .foot-row { flex-direction: column; gap: var(--md); text-align: center; }
}

/* Small phones (≤380px) */
@media (max-width: 380px) {
  .phone.small { --w: 260px; }
  .phone { --w: 280px; }
  .display { font-size: clamp(32px, 9vw, 48px); }
  .section { padding: 48px var(--md); }
  .hero-meta { font-size: 12px; }
  .ws-row { gap: 16px; }
  .nav { padding: var(--xs) var(--sm); }
  .nav-cta { padding: 8px 14px; font-size: 13px; }
}

/* Prevent horizontal scroll on any device */
html, body { overflow-x: hidden; }
img, svg, video { max-width: 100%; }
