/* subby.baby · one stylesheet, phones first.
   No inline styles anywhere: the Content-Security-Policy only allows this file. */

@font-face {
  font-family: Fredoka;
  src: url("../fonts/fredoka-subby.woff2") format("woff2");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Sea, top to bottom */
  --sea-night: #0E1B3D;
  --sea-wave: #162B5E;
  --sea-mid: #132552;
  --card: #1A2E63;
  --line: #27407E;
  --teal: #0B3B47;
  --teal-card: #0E2F3A;
  --teal-line: #1E5A68;
  --teal-dash: #3C8A9A;
  --floor: #082B34;
  --floor-line: #12505D;

  /* Text */
  --text: #ffffff;
  --text-1: #DCE3F5;
  --text-2: #C7D0EA;
  --text-3: #AEB9D9;
  --teal-text: #CFE6EA;
  --floor-text: #B5D3D9;

  /* The sub */
  --sun: #FFC93C;
  --sun-deep: #E8A317;
  --cream: #FFF1B8;
  --sky: #7DD3FC;
  --ink: #1E2A5A;

  --font-round: Fredoka, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4cqi, 48px);

  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sea-night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
}
.page { container-type: inline-size; overflow-x: clip; }
h1, h2, h3, p, ul { margin: 0; }
a { color: var(--sun); }
a:hover { color: var(--cream); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
strong { color: var(--text); }
svg { flex: none; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--sun); color: var(--sea-night); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */

.h2 {
  font-family: var(--font-round); font-weight: 600;
  font-size: clamp(30px, 3.6cqi, 44px); line-height: 1.1;
}
.h2--sm { font-size: clamp(28px, 3.2cqi, 38px); line-height: 1.15; }
.soft { color: var(--text-2); }
.teal-soft { color: var(--teal-text); }
.muted { color: var(--text-3); }
.small { font-size: 15px; }
.eyebrow { font-size: 14px; font-weight: 600; }
.eyebrow--sky { color: var(--sky); }
.eyebrow-pill {
  align-self: flex-start;
  font-size: 14px; font-weight: 600; color: var(--cream);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 241, 184, 0.35);
}
.pun { font-size: 15px; color: var(--cream); }

/* ---------- Layout helpers ---------- */

.stack-8, .stack-16, .stack-28, .stack-32 { display: flex; flex-direction: column; }
.stack-8 { gap: 8px; }
.stack-16 { gap: 16px; }
.stack-28 { gap: 28px; }
.stack-32 { gap: 32px; }
.pad-y { padding-block: clamp(56px, 7cqi, 96px); }
.pad-b { padding-bottom: clamp(56px, 7cqi, 96px); }
.intro { display: flex; flex-direction: column; gap: 10px; max-width: 40em; }

.band { position: relative; }
.band--mid { background: var(--sea-mid); }
.band--teal { background: var(--teal); }

/* ---------- Nav ---------- */

.nav {
  padding-block: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 24px;
}
.nav__home { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.nav__logo { width: 36px; height: 36px; }
.nav__name { font-family: var(--font-round); font-weight: 600; font-size: 26px; line-height: 1; color: var(--sun); }
.nav__links { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 16px; }
.nav__links a { color: var(--text-1); text-decoration: none; padding: 10px 0; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--sun); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; }
.hero__inner {
  padding-top: clamp(24px, 5cqi, 72px);
  padding-bottom: clamp(96px, 12cqi, 160px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
}
.hero__copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero__title {
  font-family: var(--font-round); font-weight: 600;
  font-size: clamp(40px, 6cqi, 68px); line-height: 1.05; letter-spacing: -0.01em;
}
.hero__lead { max-width: 34em; font-size: clamp(17px, 1.6cqi, 20px); color: var(--text-2); }
.hero__note { font-size: 15px; color: var(--text-3); }
.hero__art { flex: 1 1 340px; min-width: 0; display: flex; justify-content: center; position: relative; padding-top: 40px; }
.hero__bubbles { position: absolute; left: 0; top: 0; width: 150px; height: 110px; }
.hero__moon { position: absolute; right: 8%; top: 0; width: 40px; height: 40px; }
.hero__waves {
  position: absolute; left: 0; bottom: -1px; display: block;
  width: 100%; height: clamp(56px, 8cqi, 120px);
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: flex; flex-direction: column; justify-content: center;
  min-height: 52px; padding: 6px 18px; border-radius: 14px;
  border: 1.5px dashed rgba(220, 227, 245, 0.4); color: var(--text-1);
}
.store__small { font-size: 12px; line-height: 1.2; color: var(--text-3); }
.store__name { font-size: 17px; line-height: 1.3; font-weight: 600; }

/* ---------- Cards ---------- */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.cards--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card {
  padding: 22px; border-radius: 20px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
}
.card__icon { width: 28px; height: 28px; }
.card__title { font-size: 18px; line-height: 1.3; }
.card__text { font-size: 15px; color: var(--text-2); }

/* ---------- Feature list ---------- */

.features {
  padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 2px 32px; font-size: 16px; color: var(--text-1);
}
.features li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dot { flex: none; width: 10px; height: 10px; border-radius: 5px; }
.dot--feed { background: #67e8f9; }
.dot--sleep { background: #a78bfa; }
.dot--diaper { background: #fbbf24; }
.dot--nap { background: #c4b5fd; }
.dot--growth { background: #86efac; }
.dot--health { background: #f0abfc; }
.dot--story { background: #fdba74; }
.dot--trends { background: #5eead4; }
.dot--data { background: #cbd5e1; }

/* ---------- Sync teaser ---------- */

.wave-top { display: block; width: 100%; height: clamp(40px, 5cqi, 80px); }
.wave-top--mid { background: var(--sea-mid); }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split__text { flex: 1 1 420px; min-width: 0; }
.pad-sync { padding-top: clamp(24px, 4cqi, 48px); padding-bottom: clamp(56px, 7cqi, 96px); }
.dots-list { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; color: var(--teal-text); font-size: 16px; }
.dots-list li::before { content: "· "; }

.button {
  align-self: flex-start; display: inline-flex; align-items: center;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  background: var(--sun); color: var(--sea-night); font-weight: 600; text-decoration: none;
}
.button:hover { background: var(--cream); color: var(--sea-night); }

.boxes { flex: 1 1 380px; min-width: 0; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2cqi, 20px); }
.boxes__phone, .boxes__server { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--teal-text); text-align: center; }
.boxes__phone { width: 84px; height: 140px; border-radius: 20px; border: 2px solid var(--sky); }
.boxes__phone svg { width: 30px; height: 30px; }
.boxes__server { width: 120px; height: 120px; border-radius: 24px; background: var(--sea-night); border: 1px solid var(--teal-line); }
.boxes__server svg { width: 40px; height: 40px; }
.boxes__arrow { color: var(--sky); font-size: 20px; }

/* ---------- Pricing ---------- */

.pad-price { padding-bottom: clamp(64px, 8cqi, 112px); }
.price {
  padding: 24px; border-radius: 20px; background: var(--teal-card); border: 1px solid var(--teal-line);
  display: flex; flex-direction: column; gap: 8px;
}
.price--draft { border: 1.5px dashed var(--teal-dash); }
.price__label { font-size: 14px; color: var(--teal-text); }
.price__label--split { display: flex; justify-content: space-between; gap: 8px; }
.price__draft { font-weight: 600; color: var(--cream); }
.price__amount { font-family: var(--font-round); font-weight: 600; font-size: 34px; line-height: 1.1; }
.price__text { font-size: 15px; color: var(--teal-text); }

/* ---------- Footer ---------- */

.footer { background: var(--floor); border-top: 1px solid var(--floor-line); }
.footer__inner {
  padding-top: 40px; padding-bottom: 48px;
  display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between;
  font-size: 14px; color: var(--floor-text);
}
.footer__about { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; }
.footer__sub { display: flex; align-items: flex-end; gap: 10px; }
.footer__subart { width: 64px; height: 44px; transform: rotate(6deg); }
.footer__z { font-weight: 700; color: var(--sky); font-size: 13px; padding-bottom: 30px; }
.footer__col { display: flex; flex-direction: column; gap: 6px; }
.footer__head { font-size: 14px; font-weight: 600; color: var(--text); }

/* ---------- 404 ---------- */

.lost { min-height: 50vh; }

/* ---------- Phone mockup ----------
   The app screen is laid out at its real size (390 × 844) and scaled into the frame. */

.phone {
  width: 320px; height: 669px; padding: 10px; border-radius: 48px;
  background: #0b1224; border: 1px solid #334155;
}
.phone__screen { width: 300px; height: 649px; border-radius: 38px; overflow: hidden; background: #020617; }
.ph {
  width: 390px; height: 844px; transform: scale(0.76923); transform-origin: 0 0;
  background: #020617; color: #ffffff; font-family: var(--font-body); line-height: normal;
  display: flex; flex-direction: column;
}
.ph-head { display: flex; align-items: center; margin: 62px 16px 16px; }
.ph-child { flex: 1; display: flex; align-items: center; }
.ph-avatar {
  width: 40px; height: 40px; border-radius: 20px; background: #4c1d95;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #ddd6fe;
}
.ph-childtext { margin-left: 12px; display: flex; flex-direction: column; }
.ph-childname { display: flex; align-items: center; gap: 4px; font-size: 20px; line-height: 28px; font-weight: 700; }
.ph-dim { color: #94a3b8; font-size: 13px; line-height: 18px; }
.ph-small { font-size: 12px; line-height: 16px; margin-top: 2px; }
.ph-log {
  width: 40px; height: 40px; border-radius: 20px;
  background: rgba(139, 92, 246, 0.15); border: 1px solid rgba(139, 92, 246, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.ph-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 8px 16px 12px; }
.ph-tile {
  position: relative; overflow: hidden; border-radius: 24px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.ph-tile--sm { padding: 16px; }
.ph-sleep { flex: 1; background: rgba(139, 92, 246, 0.2); border: 1px solid rgba(139, 92, 246, 0.3); }
.ph-sleep--on { background: rgba(139, 92, 246, 0.3); border-color: rgba(167, 139, 250, 0.6); }
.ph-feed { background: rgba(6, 182, 212, 0.2); border: 1px solid rgba(6, 182, 212, 0.3); }
.ph-diaper { background: rgba(245, 158, 11, 0.2); border: 1px solid rgba(245, 158, 11, 0.3); }
.ph-row { position: relative; display: flex; align-items: center; justify-content: space-between; }
.ph-row--end { align-items: flex-end; gap: 12px; }
.ph-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.ph-label--sleep { color: #c4b5fd; }
.ph-label--feed { color: #67e8f9; }
.ph-label--diaper { color: #fbbf24; }
.ph-hint { font-size: 12px; color: #94a3b8; }
.ph-stack { position: relative; display: flex; flex-direction: column; }
.ph-big { font-size: 44px; line-height: 48px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-mid { font-size: 28px; line-height: 32px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ph-clip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-pill {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid #334155; background: rgba(2, 6, 23, 0.4); font-size: 12px; color: #94a3b8;
}
.ph-pair { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ph-list { border-radius: 16px; background: #0f172a; border: 1px solid #1e293b; }
.ph-item { display: flex; align-items: center; padding: 12px 14px; font-size: 14px; }
.ph-item + .ph-item { border-top: 1px solid #1e293b; }
.ph-itemtext { flex: 1; margin-left: 10px; }
.ph-count { margin: 0 4px 0 0; }
.ph-tabs {
  height: 82px; padding-top: 8px; background: #0f172a; border-top: 1px solid #1e293b;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start;
}
.ph-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10px; color: #94a3b8; }
.ph-tab--on { color: #c4b5fd; }

/* The sub dozing in the sleep tile, and its faint outline when awake */
.ph-doze { position: absolute; right: 20px; bottom: 64px; width: 120px; height: 87px; }
.ph-dozesub { position: absolute; left: 0; top: 0; transform: rotate(-3deg); }
.ph-bubble { position: absolute; border-radius: 50%; border: 1.5px solid var(--sky); }
.ph-bubble--1 { left: 4px; top: 50px; width: 6px; height: 6px; opacity: 0.6; }
.ph-bubble--2 { left: -6px; top: 60px; width: 4px; height: 4px; opacity: 0.45; }
.ph-z { position: absolute; font-weight: 700; color: var(--sky); }
.ph-z--1 { left: 76px; top: -20px; font-size: 17px; opacity: 0.9; }
.ph-z--2 { left: 92px; top: -36px; font-size: 13px; opacity: 0.6; }
.ph-ghost { position: absolute; right: -18px; bottom: -14px; opacity: 0.08; }

/* ---------- Shared bits added for the inner pages ---------- */

.wrap--narrow { max-width: 820px; }
.stack-12 { display: flex; flex-direction: column; gap: 12px; }
.pad-y-sm { padding-block: clamp(48px, 6cqi, 88px); }
.h3 { font-family: var(--font-round); font-weight: 600; font-size: clamp(26px, 3cqi, 34px); line-height: 1.15; }
.hero__title--sm { font-size: clamp(38px, 5.6cqi, 64px); line-height: 1.06; }
.eyebrow-pill--sky { color: var(--sky); border-color: rgba(125, 211, 252, 0.4); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button--ghost { background: transparent; color: var(--text-1); border: 1px solid rgba(220, 227, 245, 0.4); padding: 0 18px; }
.button--ghost:hover { background: rgba(220, 227, 245, 0.08); color: var(--text); }
.button--sm { min-height: 44px; padding: 0 18px; border-radius: 12px; }
.textlink { align-self: flex-start; padding: 8px 0; }
.cards--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.cards--340 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.card--deep { background: var(--sea-night); gap: 10px; }
.card__title--sm { font-size: 17px; }
.nav__links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sun); }
.tag { font-size: 13px; font-weight: 600; }
.tag--cream { color: var(--cream); padding: 2px 10px; border-radius: 999px; border: 1px solid rgba(255, 241, 184, 0.4); }
.tag--sky { color: var(--sky); }
.dots-list--sm { font-size: 15px; gap: 6px; }
.code {
  margin: 0; padding: 12px 14px; border-radius: 12px; overflow-x: auto;
  background: var(--floor); border: 1px solid var(--floor-line);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--teal-text);
}

/* ---------- Sync: hero sub with sonar rings ---------- */

.hero__inner--sync { gap: 40px; padding-top: clamp(24px, 5cqi, 64px); padding-bottom: clamp(88px, 11cqi, 140px); }
.hero__copy--wide { flex: 1.3 1 440px; gap: 20px; }
.sonar { flex: 1 1 300px; min-width: 0; display: flex; justify-content: center; }
.sonar__stage { position: relative; width: 280px; height: 220px; }
.sonar__ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(125, 211, 252, 0.35); }
.sonar__ring--1 { left: 40px; top: 90px; width: 150px; height: 150px; }
.sonar__ring--2 { left: 10px; top: 60px; width: 210px; height: 210px; border-color: rgba(125, 211, 252, 0.2); }
.sonar__bubble { position: absolute; border-radius: 50%; border: 1.5px solid var(--sky); }
.sonar__bubble--1 { left: 230px; top: 30px; width: 10px; height: 10px; opacity: 0.6; }
.sonar__bubble--2 { left: 246px; top: 8px; width: 7px; height: 7px; opacity: 0.45; }
.sonar__sub { position: absolute; left: 10px; top: 50px; width: 220px; height: 160px; }

/* ---------- Sync: keys-and-boxes flow ---------- */

.flow { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 12px; }
.flow__node {
  flex: 1 1 230px; max-width: 300px; padding: 20px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
}
.flow__node--server { background: var(--sea-night); border: 1.5px dashed #3C5A9A; }
.flow__head { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.flow__head svg { width: 26px; height: 26px; }
.flow__entry { padding: 10px 12px; border-radius: 12px; background: rgba(6, 182, 212, 0.15); border: 1px solid rgba(6, 182, 212, 0.4); font-size: 14px; }
.flow__text { font-size: 14px; color: var(--text-2); }
.flow__locks { display: flex; gap: 6px; }
.flow__locks span { flex: 1; height: 40px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.flow__locks svg { width: 16px; height: 16px; }
.flow__arrow { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.flow__arrow svg { width: 40px; height: 24px; }
/* When the boxes stack on a phone, the arrows point down. */
@container (max-width: 760px) {
  .flow { flex-direction: column; align-items: center; }
  .flow__node { width: 100%; flex: none; }
  .flow__arrow svg { transform: rotate(90deg); }
}

/* ---------- Sync: steps, sea floor, hosting, FAQ ---------- */

.steps { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.step__num {
  width: 34px; height: 34px; border-radius: 17px; background: var(--sun); color: var(--sea-night);
  font-family: var(--font-round); font-weight: 600; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.floor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 40px; }
.words { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--teal-text); }
.words li { padding: 4px 10px; border-radius: 8px; background: var(--teal-card); border: 1px solid var(--teal-line); }
.words__more { color: #8FB8C0; }
.host {
  padding: 26px; border-radius: 22px; background: var(--teal-card); border: 1px solid var(--teal-line);
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.host--draft { border: 1.5px dashed var(--teal-dash); }
.host__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; color: var(--teal-text); }
.host__price { font-family: var(--font-round); font-weight: 600; font-size: 32px; line-height: 1.1; }
.host__text { font-size: 15px; color: var(--teal-text); }
.faq-band { border-top: 1px solid var(--floor-line); }
.faq { padding-block: clamp(48px, 6cqi, 80px); display: flex; flex-direction: column; gap: 8px; }
.faq__title { margin-bottom: 12px; }
.faq__item { padding: 16px 0; border-bottom: 1px solid var(--floor-line); }
.faq__item:last-child { border-bottom: 0; }
.faq__item h3 { margin: 0 0 4px; font-size: 17px; }
.faq__item p { font-size: 15px; color: var(--teal-text); }

/* ---------- Self-host ---------- */

.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }
.pad-t { padding-top: clamp(48px, 6cqi, 80px); }
.pad-setup { padding-top: clamp(48px, 6cqi, 80px); padding-bottom: clamp(56px, 7cqi, 96px); }
.hero__copy--wider { flex: 1.4 1 440px; gap: 20px; }
.cards--260 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card--tight { gap: 6px; }
.fine { font-size: 14px; color: #8FB8C0; }
.inline { font-family: var(--font-mono); font-size: 14px; color: var(--cream); }

.harbor { flex: 1 1 280px; min-width: 0; display: flex; justify-content: center; }
.harbor__stage { position: relative; width: 290px; height: 200px; }
.harbor__rack {
  position: absolute; right: 0; top: 34px; width: 96px; height: 132px; padding: 16px 14px;
  border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.harbor__rack > span {
  height: 22px; border-radius: 6px; background: var(--sea-night); border: 1px solid var(--line);
  display: flex; align-items: center; padding-left: 8px;
}
.led { width: 6px; height: 6px; border-radius: 3px; }
.led--green { background: #86efac; }
.led--sky { background: var(--sky); }
.harbor__bubble { position: absolute; border-radius: 50%; border: 1.5px solid var(--sky); }
.harbor__bubble--1 { left: 150px; top: 24px; width: 8px; height: 8px; opacity: 0.6; }
.harbor__bubble--2 { left: 164px; top: 6px; width: 6px; height: 6px; opacity: 0.45; }
.harbor__sub { position: absolute; left: 0; top: 50px; width: 180px; height: 131px; }
.harbor__line { position: absolute; left: 176px; top: 118px; width: 18px; height: 2px; background: var(--sky); opacity: 0.6; }

.setup { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.setup__step {
  display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 22px;
  border-radius: 20px; background: var(--card); border: 1px solid var(--line);
}
.setup__what { flex: 1 1 260px; display: flex; gap: 14px; }
.setup__what .step__num { flex: none; }
.code--step, .crumbs {
  flex: 2 1 380px; min-width: 0; padding: 14px 16px;
  background: #0A1430; border-color: var(--line); color: var(--text-1); font-size: 13.5px; line-height: 1.7;
}
.code .comment { color: #7FA8B0; }
.code--step .comment { color: #8FA0C9; }
.code .fill { color: var(--cream); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.crumbs__sep { color: #8FA0C9; }
.crumbs__url { font-family: var(--font-mono); font-size: 13.5px; color: var(--cream); overflow-wrap: anywhere; }

.compose { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.compose__text { flex: 1 1 300px; }
.code--file { flex: 1.6 1 440px; min-width: 0; padding: 18px 20px; border-radius: 16px; line-height: 1.65; }
.code--sm { font-size: 12.5px; line-height: 1.65; border-radius: 10px; }
.host--sm { padding: 20px; border-radius: 18px; gap: 10px; }

.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed;
  border-radius: 18px; background: var(--teal-card); border: 1px solid var(--teal-line); overflow: hidden;
  font-size: 15px; color: var(--teal-text);
}
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--teal-line); }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead > tr > * { font-size: 14px; font-weight: 600; color: #8FB8C0; }
.compare tbody th { font-weight: 600; color: var(--text); width: 20%; }
.compare__note { color: var(--cream); }
/* On phones each row becomes a small card: label on top, the two answers below. */
@container (max-width: 640px) {
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto; }
  .compare thead { display: none; }
  .compare tbody tr { padding: 14px 18px; border-bottom: 1px solid var(--teal-line); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare tbody th, .compare tbody td { padding: 0; border: 0; }
  .compare tbody th { margin-bottom: 6px; }
  .compare tbody td + td { margin-top: 6px; }
  .compare tbody td::before { display: block; font-size: 13px; font-weight: 600; color: #8FB8C0; }
  .compare tbody td:nth-of-type(1)::before { content: "Your server"; }
  .compare tbody td:nth-of-type(2)::before { content: "sync.subby.baby (opens at launch)"; }
}

/* ---------- Privacy ---------- */

.hero__copy--widest { flex: 1.5 1 440px; gap: 20px; }
.hero__title--privacy { font-size: clamp(38px, 5.6cqi, 62px); line-height: 1.06; }
.intro--wide { max-width: 44em; gap: 8px; }
.measure { max-width: 44em; }
.cards--380 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.card--dashed { border: 1.5px dashed #3C5A9A; }
.band--floor { background: var(--floor); border-top: 1px solid var(--floor-line); }
.band--ruled { border-top: 1px solid var(--line); }

.toc {
  flex: 1 1 260px; min-width: 0; padding: 20px 22px; border-radius: 20px;
  background: var(--sea-mid); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; font-size: 15px;
}
.toc__title { font-size: 13px; font-weight: 600; color: var(--text-3); padding-bottom: 6px; }
.toc a { color: var(--text-1); text-decoration: none; padding: 7px 0; }
.toc a:hover { color: var(--sun); }

.plain-list { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--teal-text); }
.callout {
  padding: 18px 22px; border-radius: 16px; background: var(--floor); border: 1px solid var(--floor-line);
  display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--teal-text);
}
.callout svg { width: 22px; height: 22px; margin-top: 2px; }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; }
.limit { padding: 16px 18px; border-radius: 14px; background: var(--floor); border: 1px dashed var(--teal-dash); font-size: 15px; color: var(--teal-text); }

.recovery { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.recovery__text { flex: 1.3 1 420px; min-width: 0; }
.rules { flex: 1 1 340px; min-width: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rules li { padding: 14px 16px; border-radius: 14px; background: var(--teal-card); border: 1px solid var(--teal-line); font-size: 15px; color: var(--teal-text); }

.crypto { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.crypto__text { flex: 1 1 300px; }
.crypto__audit { flex: 1 1 100%; font-size: 14px; }
.specs {
  flex: 1.6 1 440px; min-width: 0; margin: 0; border-radius: 18px; overflow: hidden;
  background: var(--sea-night); border: 1px solid var(--line); font-size: 15px;
}
.specs > div { display: flex; flex-wrap: wrap; gap: 2px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { flex: 1 1 180px; color: var(--text-2); }
.specs dd { flex: 1 1 220px; margin: 0; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-1); }

/* ---------- Hosted sync terms ---------- */

.price__fine { font-size: 13px; color: #8FB8C0; }
.terms { padding: 24px; border-radius: 20px; background: var(--floor); border: 1px solid var(--floor-line); display: flex; flex-direction: column; gap: 12px; }
.terms__title { font-size: 18px; }
.terms__list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 0 32px; font-size: 15px; }
.terms__list > div { padding: 12px 0; border-top: 1px solid var(--floor-line); }
.terms__list dt { font-weight: 600; color: var(--text); }
.terms__list dd { margin: 2px 0 0; color: var(--teal-text); }

/* ---------- Motion (only for people who haven't asked for less) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .sonar__ring { animation: ping 5s ease-out infinite; transform-origin: center; }
  .sonar__ring--2 { animation-delay: -2.5s; }
  @keyframes ping {
    0% { transform: scale(0.9); opacity: 0.2; }
    40% { opacity: 1; }
    100% { transform: scale(1.08); opacity: 0.2; }
  }
  .sonar__sub { animation: bob 5s ease-in-out infinite; }
  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
  .rise { animation: rise 6s ease-in-out infinite; transform-box: fill-box; }
  .rise--2 { animation-delay: -1.5s; }
  .rise--3 { animation-delay: -3s; }
  .rise--4 { animation-delay: -4.5s; }
  @keyframes rise {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  .ph-dozesub { animation: doze 4s ease-in-out infinite; }
  @keyframes doze {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-3px); }
  }

  .ph-z { animation: snooze 3s ease-in-out infinite; }
  /* The footer z's drift instead of fading, so they keep their contrast. */
  .footer__z { display: inline-block; animation: drift 3s ease-in-out infinite; }
  @keyframes drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
  }
  .ph-z--2 { animation-delay: -1.5s; }
  @keyframes snooze {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.9; }
  }
}

/* ---------- Narrow phones ---------- */

@container (max-width: 359px) {
  .phone { transform: scale(0.9); transform-origin: top center; margin-bottom: -67px; }
}
