/* Kodo landing page: Night Lab tokens from docs/design_system.md §3–§5. */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #0a0e14;
  --surface: #111722;
  --surface2: #182030;
  --selected: #24304a;
  --border: #1b2433;
  --hairline: #1e2838;
  --text: #e6edf5;
  --text2: #8796aa;
  --text3: #56657a;
  --run: #4fd1c5;
  --station: #f2a93b;
  --transition: #8c8fd8;
  --rest: #3b4a63;
  --accent: #7b93ff;
  --accent-soft: rgba(123, 147, 255, 0.14);
  --z1: #3b4a63;
  --z2: #4f8ef7;
  --z3: #4fd1c5;
  --z4: #f2a93b;
  --z5: #f25f5c;
  --hatch: repeating-linear-gradient(45deg, var(--transition) 0 2px, #26324a 2px 4px);
  --w-hatch: repeating-linear-gradient(45deg, var(--transition) 0 2px, #1f1f1f 2px 4px);

  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  --gutter: 16px;
  color-scheme: dark;
}

@media (prefers-contrast: more) {
  :root {
    --border: #2c3a52;
    --hairline: #2c3a52;
    --text2: #a9b6c8;
    --text3: #8796aa;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
p, h1, h2, h3, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #a5b5ff; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
b { font-weight: 600; }

.num { font-family: var(--display); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.teal { color: var(--run); }
.amber { color: var(--station); }
.accent { color: var(--accent); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 20, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { margin-right: auto; display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display); font-weight: 600; font-size: 21px; letter-spacing: -0.03em; }
.brand:hover { color: var(--text); }
.nav-links { display: none; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: var(--text2); }
.nav-links a:hover { color: var(--text); }
@media (min-width: 760px) { .nav-links { display: flex; } }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--text2); white-space: nowrap;
}
a.pill:hover { color: var(--text); border-color: var(--hairline); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--run); animation: breathe 1.2s ease-in-out infinite alternate; }

/* Type */
.eyebrow { font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 14px; }
h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(44px, 7.4vw, 82px); }
h2 { font-size: clamp(34px, 4.8vw, 54px); }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text2); margin-top: 24px; max-width: 34em; text-wrap: pretty; }
.sub { font-size: 18px; color: var(--text2); margin-top: 18px; max-width: 36em; text-wrap: pretty; }
.center .sub { margin-left: auto; margin-right: auto; }
.label { font-size: 13px; font-weight: 500; color: var(--text2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #93a7ff; color: var(--bg); }

/* Sections */
.section { padding: 88px 0; }
@media (min-width: 900px) { .section { padding: 128px 0; } }
.section-head { margin-bottom: 48px; }
@media (min-width: 900px) { .section-head { margin-bottom: 64px; } }

/* Hero */
.hero { position: relative; padding: 56px 0 40px; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%);
}
.hero-inner { position: relative; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 96px 0 64px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 32px; }
}

/* Scaled device wrapper: draw at real mockup size, scale as one unit. */
.scaled { position: relative; width: calc(var(--w) * var(--s)); height: calc(var(--h) * var(--s)); flex: none; }
.scaled > * { position: absolute; top: 0; left: 0; transform: scale(var(--s)); transform-origin: 0 0; }
.phone-scale { --w: 410px; --h: 864px; --s: 0.62; }
.watch-scale { --w: 276px; --h: 326px; --s: 0.86; }
@media (min-width: 480px) { .phone-scale { --s: 0.7; } }
@media (min-width: 1100px) { .phone-scale { --s: 0.78; } .watch-scale { --s: 0.95; } }

.hero-devices { position: relative; display: flex; justify-content: center; padding-left: 72px; }
.combo { position: relative; }
.hero-watch { position: absolute; left: -76px; bottom: 40px; --s: 0.62; z-index: 2; }
@media (min-width: 480px) { .hero-devices { padding-left: 120px; } .hero-watch { left: -120px; --s: 0.78; } }
@media (min-width: 960px) { .hero-devices { justify-content: flex-end; } }
@media (min-width: 1100px) { .hero-watch { left: -150px; bottom: 56px; --s: 0.92; } }
.hero-devices::before {
  content: ""; position: absolute; inset: 10% 0 10% 20%; z-index: -1;
  background: radial-gradient(closest-side, rgba(123, 147, 255, 0.16), transparent);
  filter: blur(20px);
}

/* iPhone */
.phone {
  width: 410px; height: 864px; padding: 10px; border-radius: 62px;
  background: #05070a;
  box-shadow: 0 0 0 1.5px #2a3446, inset 0 0 0 1px #000, 0 40px 80px rgba(0, 0, 0, 0.55);
}
.island { position: absolute; top: 22px; left: 50%; width: 118px; height: 34px; margin-left: -59px; border-radius: 20px; background: #000; z-index: 3; }
.phone-screen {
  position: relative; width: 390px; height: 844px; border-radius: 52px; overflow: hidden;
  background: var(--bg); padding: 64px 20px 0; display: flex; flex-direction: column; gap: 13px;
  font-family: var(--ui);
}
.ph-top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; color: var(--accent); }
.ph-links { display: flex; gap: 16px; font-weight: 600; }
.ph-label { font-size: 12px; font-weight: 500; color: var(--text2); margin-top: 2px; }
.ph-total { display: flex; align-items: baseline; gap: 10px; margin-top: -6px; }
.ph-time { font-size: 52px; line-height: 1; }
.ph-meta { font-size: 13px; color: var(--text2); margin-top: -4px; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--surface2); color: var(--text2); white-space: nowrap; }
.chip-accent { background: var(--accent-soft); color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.ph-pace { padding: 14px 14px 10px; }
.card-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 500; color: var(--text2); }
.pace-bars { position: relative; display: flex; align-items: flex-end; gap: 8px; height: 132px; margin-top: 8px; }
.pace-bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: 88px; border-top: 1px dashed #26324a; }
.pace-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pace-col .p { font-family: var(--display); font-size: 10px; color: var(--text2); }
.pace-col .bar { width: 100%; border-radius: 4px; background: rgba(79, 209, 197, 0.55); }
.pace-col.max .p { color: var(--text); }
.pace-col.max .bar { background: var(--run); }
.pace-col .n { font-size: 11px; color: var(--text3); }
.ph-stations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.st { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.st.slow { border-color: rgba(242, 169, 59, 0.6); }
.st .n { font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st .row { display: flex; justify-content: space-between; align-items: baseline; }
.st .t { font-family: var(--display); font-weight: 500; font-size: 19px; font-variant-numeric: tabular-nums; }
.st .d { font-size: 12px; font-weight: 600; color: var(--text2); }
.st .d.pr { color: var(--accent); }
.st .d.faster { color: var(--run); }
.tabbar {
  position: absolute; left: 30px; right: 30px; bottom: 36px; height: 60px; border-radius: 30px; z-index: 2;
  background: rgba(20, 27, 40, 0.94); border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: space-around;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 -24px 32px var(--bg);
}
.tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--text2); }
.tabbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .on { color: var(--accent); }

/* Apple Watch */
.watch { width: 276px; height: 326px; padding: 8px; }
.watch::before { /* digital crown */
  content: ""; position: absolute; right: -7px; top: 86px; width: 10px; height: 48px; border-radius: 4px;
  background: linear-gradient(90deg, #2c2c2e, #4a4a4e 60%, #2c2c2e);
}
.watch::after { /* side button */
  content: ""; position: absolute; right: -4px; top: 156px; width: 6px; height: 56px; border-radius: 3px; background: #262628;
}
.watch-screen {
  position: relative; width: 260px; height: 310px; border-radius: 58px; background: #000; overflow: hidden;
  padding: 24px 22px 18px; display: flex; flex-direction: column; color: var(--text); font-family: var(--ui);
  box-shadow: 0 0 0 7px #161616, 0 0 0 8px #2e2e2e, 0 30px 60px rgba(0, 0, 0, 0.6);
}
.w-head { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.w-hr { display: flex; align-items: center; gap: 7px; }
.w-hr .num { font-size: 22px; line-height: 1; }
.zchip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px; font-weight: 700; font-size: 12px; color: var(--bg); }
.z1 { background: var(--z1); color: var(--text); }
.z2 { background: var(--z2); }
.z4 { background: var(--z4); }
.z5 { background: var(--z5); }
.w-lab { font-size: 12.5px; font-weight: 500; color: var(--text2); }
.w-lab.teal { color: var(--run); }
.w-lab.amber { color: var(--station); }
.w-lab.accent { color: var(--accent); margin-top: 4px; }
.w-seg { margin-top: 12px; }
.w-rest { margin-top: 20px; }
.w-xl { font-size: 66px; line-height: 1; margin-top: 6px; }
.w-l { font-size: 40px; line-height: 1; }
.w-l.teal { color: var(--run); }
.w-pair { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; }
.w-pair.gap { margin-top: 22px; }
.w-pair .w-lab { margin-top: 7px; }
.w-pair .r { text-align: right; }
.w-sub { font-size: 13px; color: var(--text2); margin-top: 12px; }
.w-sub.sm { font-size: 12px; }
.w-sub b { color: var(--text); }
.w-btn {
  margin-top: auto; display: flex; align-items: center; justify-content: center; height: 52px; width: 100%;
  border-radius: 18px; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 16px; letter-spacing: 0.02em;
}
.w-btn-2 { background: var(--surface); color: var(--text); border: 1px solid var(--hairline); font-weight: 600; }
.w-fin { margin-top: 8px; }
.w-rows { margin-top: 8px; }
.w-rows li { display: flex; justify-content: space-between; align-items: center; height: 26px; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--text2); }
.w-rows li span { display: flex; align-items: center; gap: 7px; }
.w-rows b { font-size: 15px; color: var(--text); font-weight: 500; }
.target { position: relative; height: 6px; border-radius: 3px; background: #1f1f1f; margin-top: 14px; }
.target .band { position: absolute; left: 30%; width: 40%; top: 0; bottom: 0; border-radius: 3px; background: rgba(79, 209, 197, 0.3); }
.target .needle { position: absolute; left: 38%; top: -3px; width: 4px; height: 12px; border-radius: 2px; background: var(--text); }

/* Segment Ribbon */
.ribbon { display: flex; overflow: hidden; }
.ribbon > i { flex-basis: 0; min-width: 2px; }
.ribbon .run { background: var(--run); }
.ribbon .sta { background: var(--station); }
.ribbon .tra { background: var(--hatch); }
.ribbon .rest { background: var(--rest); opacity: 0.4; }
.ribbon .todo { background: #1f1f1f; }
.ribbon-summary { height: 22px; gap: 1px; border-radius: 6px; }
.ribbon-live { height: 5px; gap: 2px; border-radius: 3px; flex: none; }
.ribbon-live .tra, .ribbon-fin .tra { background: var(--w-hatch); }
.ribbon-live .rest { background: #333; opacity: 1; }
.ribbon-live .now { animation: breathe 1.2s ease-in-out infinite alternate; }
.ribbon-fin { height: 10px; gap: 1px; margin-top: 12px; border-radius: 2px; }
.ribbon-big { height: 40px; gap: 2px; border-radius: 8px; }
.ribbon-hr { height: 14px; gap: 1px; border-radius: 4px; margin-top: 10px; }
.ribbon-hyb { height: 16px; gap: 2px; border-radius: 5px; margin-top: 18px; }
@media (min-width: 720px) { .ribbon-big { height: 56px; gap: 3px; border-radius: 10px; } }

/* Ribbon draws in left to right (design_system §6.1), only when JS has marked it. */
.js .ribbon-big { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s cubic-bezier(0.22, 1, 0.36, 1); }
.js .ribbon-big.in { clip-path: inset(0 0 0 0); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text2); margin-top: -5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend b { color: var(--text); font-weight: 500; }
.sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; flex: none; }
.sw-run { background: var(--run); }
.sw-sta { background: var(--station); }
.sw-tra { background: var(--hatch); }
.sw-z4 { background: var(--z4); border-radius: 50%; }

.big-ribbon { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px 20px; }
@media (min-width: 720px) { .big-ribbon { padding: 36px 40px; } }
.big-ribbon-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.big-ribbon-time { font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.ribbon-ticks { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--text2); }
.legend-lg { font-size: 15px; gap: 10px 28px; margin-top: 24px; }
.legend-lg .sw { width: 12px; height: 12px; border-radius: 3px; }

/* Split rows */
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.sequence { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; counter-reset: none; }
.sequence li {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text2);
}
.sequence li:nth-child(3) { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.checks { margin-top: 32px; display: grid; gap: 16px; }
.checks li { position: relative; padding-left: 30px; color: var(--text2); font-size: 16px; }
.checks li b { color: var(--text); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.5l2.5 2.5L13 6.5' fill='none' stroke='%237B93FF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.watches-pair { display: flex; justify-content: center; gap: 20px; }
.watches-pair .offset { margin-top: 64px; }
@media (max-width: 600px) {
  .watches-pair .watch-scale { --s: 0.6; }
  .watches-pair { gap: 8px; }
  .watches-pair .offset { margin-top: 40px; }
}

/* Trio */
.trio { display: grid; gap: 56px; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.trio-item { display: flex; flex-direction: column; align-items: center; text-align: center; }
.trio-item .scaled { margin-bottom: 32px; }
.trio-item h3 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.trio-item > p { color: var(--text2); font-size: 16px; margin-top: 10px; max-width: 22em; }
@media (min-width: 900px) and (max-width: 1099px) { .trio .watch-scale { --s: 0.78; } }

/* Bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.tile h3 { font-size: 17px; }
.tile p { color: var(--text2); font-size: 15px; margin-top: 4px; }
.tile-hr { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .tile-hr { grid-column: span 4; }
  .tile-zones { grid-column: span 2; }
  .tile-pr, .tile-edit, .tile-pace { grid-column: span 2; }
}
.tile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tile-stat { text-align: right; white-space: nowrap; }
.tile-stat .num { font-size: 32px; line-height: 1; color: var(--z5); }
.unit { font-size: 13px; color: var(--text2); }
.hr-chart { width: 100%; height: 180px; margin-top: 20px; }
.zones { display: grid; gap: 12px; margin-top: 22px; }
.zones li { display: grid; grid-template-columns: 30px 1fr 52px; align-items: center; gap: 10px; font-size: 13px; }
.zones .zchip { justify-content: center; height: 22px; padding: 0; }
.zones .track { height: 10px; border-radius: 5px; background: var(--surface2); overflow: hidden; }
.zones .fill { display: block; height: 100%; border-radius: 5px; }
.zones .min { text-align: right; font-family: var(--display); font-variant-numeric: tabular-nums; color: var(--text); }
.pr-card { background: var(--accent-soft); border: 1px solid rgba(123, 147, 255, 0.45); border-radius: 14px; padding: 16px; margin-bottom: 20px; }
.tile .pr-line { color: var(--text); font-weight: 600; font-size: 16px; margin-top: 12px; }
.tile .pr-num { margin-top: 6px; color: var(--text); }
.pr-num .num { font-size: 34px; }
.pr-num .accent { font-weight: 600; font-size: 15px; }
.tile .pr-meta { font-size: 13px; }
.edit-demo { margin-top: auto; padding-top: 26px; }
.edit-ribbon { position: relative; display: flex; gap: 2px; height: 28px; }
.edit-ribbon .seg { flex-basis: 0; border-radius: 4px; }
.edit-ribbon .run { background: var(--run); }
.edit-ribbon .sta { background: var(--station); }
.edit-ribbon .tra { background: var(--hatch); }
.handle { position: absolute; top: -7px; bottom: -7px; width: 4px; margin-left: -2px; border-radius: 2px; background: var(--text); box-shadow: 0 0 0 3px var(--surface); }
.handle::before { content: ""; position: absolute; left: 50%; top: -8px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--text); }
.edit-nudge { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 13px; color: var(--text2); }
.edit-nudge span { padding: 4px 8px; border-radius: 6px; background: var(--surface2); }
.edit-nudge b { color: var(--text); font-size: 15px; }
.tile .pace-big { margin-top: 18px; color: var(--text); }
.pace-big .num { font-size: 52px; line-height: 1; }
.tile .pace-meta { font-size: 13px; margin-top: 12px; }

/* Features */
.features { display: grid; gap: 16px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { border-top: 1px solid var(--hairline); padding-top: 24px; }
.feature p { color: var(--text2); font-size: 15px; margin-top: 8px; }
.ficon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 18px; }

/* Privacy */
.privacy { display: grid; gap: 40px; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 32px 24px; }
@media (min-width: 900px) { .privacy { grid-template-columns: 1fr 1fr; gap: 64px; padding: 56px; align-items: center; } }
.privacy-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
@media (min-width: 560px) { .privacy-list { grid-template-columns: 1fr 1fr; } }
.privacy-list li { background: var(--bg); padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.privacy-list b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.privacy-list span { font-size: 14px; color: var(--text2); }

/* Final */
.final { padding-bottom: 112px; }
.final-icon { width: 96px; height: 96px; margin: 0 auto 32px; border-radius: 22px; box-shadow: 0 0 0 1px var(--hairline), 0 24px 60px rgba(123, 147, 255, 0.18); }
.final h2 { max-width: 14em; margin: 0 auto; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 20px; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: auto 1fr auto; gap: 48px; align-items: start; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 18px; }
.kanji { color: var(--text2); font-family: var(--ui); font-weight: 400; font-size: 15px; }
.disclaimer { font-size: 13px; color: var(--text2); max-width: 60em; }
.footer-links { display: flex; gap: 20px; font-size: 13px; color: var(--text2); white-space: nowrap; }

@keyframes breathe { from { opacity: 0.7; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot, .ribbon-live .now { animation: none; }
  .js .ribbon-big { clip-path: none; transition: none; }
}

/* Legal page */
.legal .wrap { max-width: 760px; }
.legal-title { font-size: clamp(40px, 6vw, 60px); margin-bottom: 48px; }
.legal section { border-top: 1px solid var(--hairline); padding: 28px 0; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.legal section p { color: var(--text2); }
.legal-back { margin-top: 24px; }

/* Launch-list signup (hero and final CTA) */
.signup { margin-top: 34px; max-width: 480px; }
.center .signup { margin: 30px auto 0; }
.signup-row { display: flex; gap: 10px; }
.signup-input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 16px; /* 16px stops iOS zooming into the field */
}
.signup-input::placeholder { color: var(--text3); }
.signup-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123, 147, 255, .25); }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
button.btn[disabled] { opacity: .6; cursor: progress; }
.signup-note { font-size: 14px; color: var(--text2); margin-top: 12px; }
.signup-note a { color: var(--text2); text-decoration: underline; text-underline-offset: 3px; }
.signup-note a:hover { color: var(--text); }
.signup-note.is-error { color: var(--z5); }
.signup.is-done .signup-row { display: none; }
.signup.is-done .signup-note { margin-top: 0; font-size: 16px; color: var(--text); }
.signup-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.thanks .sub { margin-top: -24px; }
@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
  .signup-input { flex: none; }
}
