/* Nattlys website: one stylesheet for every page.
   The colours are the app's own (Shared/Palette.swift): amber is the tint, mint means
   "all is well", red needs attention now. The font is the system's. Dark only, like the
   app at night. */

:root {
  color-scheme: dark;
  --bg: #000;
  --bg-2: #0b0b0d;
  --surface: #161618;
  --surface-2: #1d1d1f;
  --hairline: rgba(255, 255, 255, 0.12);
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --amber: #ffc77a;
  --amber-dim: #c99d62;
  --mint: #73dec2;
  --red: #ff5e66;
  --lavender: #b8adff;
  --max: 1120px;
  --gutter: clamp(16px, 5vw, 40px);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; }
ul, ol { margin: 0; }

.skip {
  position: absolute; left: -9999px; top: 10px; z-index: 100;
  background: var(--surface-2); color: var(--text); padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 16px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.narrow { width: min(820px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 52px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 22.5%; }
.nav ul { display: flex; align-items: center; gap: 24px; margin-left: auto; padding: 0; list-style: none; font-size: 14px; }
.nav ul a { color: var(--text-2); transition: color 0.2s; }
.nav ul a:hover, .nav ul a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav .lang { display: inline-flex; align-items: center; gap: 6px; }
.nav .lang svg { width: 15px; height: 15px; }
@media (max-width: 640px) {
  .nav .opt { display: none; }
  .nav ul { gap: 18px; }
}

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

.eyebrow {
  margin-bottom: 14px;
  color: var(--amber);
  font-family: var(--display); font-weight: 600;
  font-size: clamp(17px, 1.7vw, 21px); letter-spacing: -0.01em;
}
.h1 {
  font-size: clamp(46px, 8.4vw, 100px); line-height: 1.02;
  font-weight: 700; letter-spacing: -0.034em;
}
.h2 {
  font-size: clamp(36px, 5.8vw, 68px); line-height: 1.05;
  font-weight: 700; letter-spacing: -0.03em;
}
.h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.18; letter-spacing: -0.022em; }
.lead {
  margin-top: 22px; max-width: 36em;
  color: var(--text-2);
  font-size: clamp(19px, 1.9vw, 23px); line-height: 1.42; font-weight: 500; letter-spacing: -0.016em;
}
.lead strong, .muted strong { color: var(--text); font-weight: 600; }
.center .lead { margin-inline: auto; }
.muted { color: var(--text-2); }
.small { font-size: 14px; line-height: 1.45; color: var(--text-3); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 500; }
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover svg { transform: translateX(3px); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 980px;
  background: var(--amber); color: #1d1406;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: background 0.2s, transform 0.2s;
}
.button:hover { text-decoration: none; background: #ffd497; }
.button:active { transform: scale(0.98); }
.soon { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 15px; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }

/* ---------- Devices (the app's real screenshots in drawn frames) ---------- */

.device { container-type: inline-size; flex: none; }
.device .frame {
  position: relative;
  padding: 3.1cqw;
  border-radius: 16cqw;
  background: #050506;
  box-shadow:
    inset 0 0 0 0.42cqw #4a4a4f,
    inset 0 0 0 0.75cqw #18181a,
    0 3cqw 9cqw rgba(0, 0, 0, 0.55);
}
.device .screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: 12.9cqw;
  background: #000;
}
.device .screen img { width: 100%; height: 100%; object-fit: cover; }
.device .island {
  position: absolute; z-index: 2; top: 2.5cqw; left: 50%;
  width: 29cqw; height: 8.4cqw; transform: translateX(-50%);
  border-radius: 99px; background: #000;
}
.device.ipad .frame { padding: 3.3cqw; border-radius: 5.4cqw; }
.device.ipad .screen { aspect-ratio: 2064 / 2752; border-radius: 2.3cqw; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(96px, 13vw, 170px); }
.section.tight-top { padding-top: clamp(48px, 7vw, 96px); }
.alt { background: var(--bg-2); }
.section-head { max-width: 860px; }
.section-head.center { margin-inline: auto; }

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

/* Sizes follow the window's height too, so the phones start on the first screen of a short laptop window. */
.hero { padding-top: clamp(32px, min(5vw, 6vh), 68px); text-align: center; overflow: clip; }
.hero-icon { width: clamp(60px, min(6vw, 9vh), 80px); height: auto; margin: 0 auto clamp(16px, 2.6vh, 22px); border-radius: 22.5%; }
.hero .h1 { font-size: clamp(46px, min(7.2vw, 10.4vh), 92px); }
.hero .lead { margin: clamp(14px, 2.2vh, 18px) auto 0; font-size: clamp(19px, 1.7vw, 22px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin-top: clamp(22px, 3.2vh, 28px); }
.stage {
  display: flex; justify-content: center; align-items: flex-start;
  gap: clamp(14px, 2.6vw, 40px);
  height: clamp(480px, 60vw, 760px);
  margin-top: clamp(32px, min(4.4vw, 5.4vh), 60px);
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.stage > div { flex: none; }
.stage .main { width: clamp(236px, 29vw, 352px); position: relative; z-index: 2; }
.stage .side { width: clamp(190px, 23.5vw, 290px); margin-top: clamp(40px, 5vw, 70px); }
@media (max-width: 700px) {
  .stage .side { width: 46vw; }
  .stage .main { width: 60vw; }
}

/* Facts under the hero */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--hairline); }
.fact { padding: 30px 26px 32px; }
.fact + .fact { border-left: 1px solid var(--hairline); }
.fact b { display: block; font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.fact p { margin-top: 6px; color: var(--text-2); font-size: 15px; line-height: 1.45; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 420px) {
  .fact { padding: 24px 16px 26px; }
}

/* ---------- How it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(56px, 7vw, 88px); padding: 0; list-style: none; }
.step-visual { display: flex; align-items: flex-end; justify-content: center; height: 430px; }
.step-visual .device { width: 196px; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 32px 0 14px;
  border-radius: 50%; border: 1px solid var(--hairline);
  color: var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 24px; letter-spacing: -0.025em; }
.step p { margin-top: 8px; color: var(--text-2); }
.code-panel {
  width: min(100%, 300px); align-self: center;
  padding: 34px 26px 30px; border-radius: 30px;
  background: var(--surface); text-align: center;
}
.code-panel .label { color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.code-panel .code {
  margin: 14px 0 16px; color: var(--amber);
  font-family: var(--display); font-weight: 700; font-size: 54px; line-height: 1;
  letter-spacing: 0.02em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.code-panel .or { color: var(--text-2); font-size: 15px; line-height: 1.4; }
.code-panel .qr { width: 112px; margin: 0 auto 24px; padding: 11px; border-radius: 20px; background: #fff; }
.code-panel .qr svg { width: 100%; height: auto; }

/* The Lock Screen with the app's Live Activity, drawn (step 3) */
.lockscreen .screen { background: radial-gradient(130% 75% at 50% 0%, #1c2242 0%, #0b0d1a 58%, #050609 100%); font-family: var(--display); }
.ls-date { position: absolute; top: 16cqw; inset-inline: 0; text-align: center; color: rgba(235, 238, 255, 0.78); font-size: 5.3cqw; font-weight: 600; }
.ls-time { position: absolute; top: 21cqw; inset-inline: 0; text-align: center; color: rgba(235, 238, 255, 0.94); font-size: 24cqw; font-weight: 700; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ls-activity {
  position: absolute; left: 4cqw; right: 4cqw; bottom: 13cqw;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3cqw;
  padding: 4.2cqw 4.4cqw; border-radius: 7.5cqw;
  background: rgba(30, 30, 36, 0.86); box-shadow: inset 0 0 0 0.3cqw rgba(255, 255, 255, 0.12);
}
.ls-activity svg { width: 7cqw; height: 7cqw; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; }
.ls-activity b { display: block; font-size: 4.8cqw; font-weight: 600; line-height: 1.2; }
.ls-activity span { color: var(--mint); font-size: 4.4cqw; line-height: 1.2; }
.ls-activity .when { color: var(--text-2); font-size: 3.5cqw; text-align: right; white-space: nowrap; }
.ls-activity .when i { display: block; width: 19cqw; height: 1.3cqw; margin: 2cqw 0 0 auto; border-radius: 1cqw; background: rgba(255, 255, 255, 0.2); }
.ls-activity .when i::before { content: ""; display: block; width: 10%; height: 100%; border-radius: 1cqw; background: var(--mint); }
.ls-home { position: absolute; bottom: 2.6cqw; left: 50%; width: 34cqw; height: 1.3cqw; transform: translateX(-50%); border-radius: 1cqw; background: rgba(255, 255, 255, 0.85); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; text-align: center; }
  .step-visual { height: auto; min-height: 0; }
  .step-visual .device { width: 200px; }
}

/* ---------- Split sections: words on one side, the app on the other ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.split .visual { display: flex; justify-content: center; }
.split .visual .device { width: min(340px, 64vw); }
.split .visual .device.ipad { width: min(480px, 86vw); }
.split.reverse .visual { order: -1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .visual { order: 0; }
  .split .visual { margin-top: 8px; }
}

/* The parent unit's tray, explained button by button */
.tray { display: grid; gap: 22px; margin-top: 40px; padding: 0; list-style: none; }
.tray li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; }
.tray .btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); }
.tray .btn.on { background: #fff; color: #000; }
.tray .btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tray h3 { font-size: 19px; letter-spacing: -0.02em; }
.tray p { margin-top: 2px; color: var(--text-2); font-size: 16px; line-height: 1.42; }
.also { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--hairline); color: var(--text-2); font-size: 16px; line-height: 1.5; }

/* ---------- Alarms ---------- */

.meter {
  width: min(100%, 760px); margin: clamp(48px, 6vw, 72px) auto 0;
  padding: 22px 24px 26px; border-radius: 32px;
  background: linear-gradient(180deg, #1a1b22, #121217);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.meter-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.meter-state { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 21px; font-weight: 600; transition: color 0.2s; }
.meter-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); transition: background 0.2s; }
.meter-state.alarm { color: var(--red); }
.meter-state.alarm::before { background: var(--red); }
.meter-level { color: var(--text-3); font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.meter-level::before { content: ""; width: 18px; border-top: 2px dashed rgba(255, 255, 255, 0.45); }
.meter canvas { width: 100%; height: 128px; margin-top: 16px; }
.alarms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 48px; margin-top: clamp(56px, 7vw, 84px); padding: 0; list-style: none; }
.alarms h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; letter-spacing: -0.02em; }
.alarms h3::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--red)); }
.alarms p { margin-top: 6px; color: var(--text-2); font-size: 16px; line-height: 1.45; }
@media (max-width: 860px) { .alarms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .alarms { grid-template-columns: 1fr; gap: 28px; } }

/* Night mode: the bedside clock */
.bedside { text-align: center; padding-block: clamp(84px, 11vw, 150px); background: #000; }
.clock {
  color: var(--amber-dim);
  font-family: var(--display); font-weight: 200; font-size: clamp(110px, 24vw, 300px);
  line-height: 0.9; letter-spacing: -0.03em; font-variant-numeric: tabular-nums;
}
.clock-state { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; color: var(--text-2); font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; }
.clock-state::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.clock-bar { width: 180px; height: 6px; margin: 18px auto 0; border-radius: 3px; background: #262628; overflow: hidden; }
.clock-bar::before { content: ""; display: block; width: 18%; height: 100%; border-radius: 3px; background: #6d6d72; }
.bedside .narrow { margin-top: clamp(64px, 9vw, 110px); }

/* ---------- Soothe ---------- */

.sounds { margin-top: 34px; font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; font-weight: 600; letter-spacing: -0.025em; color: var(--text); }
.sounds span { white-space: nowrap; }
.sounds .sep { color: #3a3a3e; padding-inline: 0.18em; }
.sounds .dim { color: var(--text-3); }

/* ---------- Night log ---------- */

.night {
  width: min(100%, 880px); margin: clamp(52px, 7vw, 80px) auto 0;
  padding: clamp(24px, 3.4vw, 40px); border-radius: 36px;
  background: var(--surface);
}
.night-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.night-range { font-family: var(--display); font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.night-sub { margin-top: 10px; color: var(--text-2); font-size: clamp(17px, 1.8vw, 21px); }
.night-sub b { color: var(--mint); font-weight: 600; }
.ring {
  --p: 0;
  position: relative; flex: none; display: grid; place-items: center;
  width: clamp(76px, 9vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--p) * 1turn), rgba(115, 222, 194, 0.18) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px));
  transition: --p 1.6s var(--ease);
}
.ring-wrap { position: relative; flex: none; }
.ring-wrap span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; font-variant-numeric: tabular-nums; }
.in .ring, .ring.static, .no-js .ring { --p: 0.9; }
.no-js .track .tick { transform: none; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.night-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 16px; margin: 30px 0 0; }
.night-stats div { min-width: 0; }
.night-stats dt { order: 2; color: var(--text-2); font-size: 15px; margin-top: 4px; }
.night-stats dd { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(21px, 2.8vw, 32px); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.night-stats div { display: flex; flex-direction: column; }
.night-stats .cry dd { color: var(--red); }
@media (max-width: 520px) { .night-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.timeline { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--hairline); }
.track { position: relative; height: clamp(56px, 7vw, 76px); border-radius: 16px; background: #2b2b2e; overflow: hidden; }
.track i { position: absolute; display: block; }
.track .sleep { top: 0; bottom: 0; background: #35514a; }
.track .onset { bottom: 5px; width: clamp(14px, 3vw, 26px); height: 6px; border-radius: 3px; background: var(--mint); }
.track .tick { top: 14%; bottom: 14%; width: 5px; margin-left: -2.5px; border-radius: 3px; background: var(--amber); transform: scaleY(0); transition: transform 0.7s var(--ease); }
.track .tick.red { top: 7%; bottom: 7%; background: var(--red); }
.in .track .tick { transform: none; }
.timeline-axis { display: flex; justify-content: space-between; margin-top: 12px; color: var(--text-2); font-size: 15px; font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--text-2); font-size: 14px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.night figcaption, .caption { margin-top: 18px; color: var(--text-3); font-size: 14px; }
.duo { display: flex; justify-content: center; gap: clamp(20px, 4vw, 56px); margin-top: clamp(64px, 8vw, 96px); }
.duo .device { width: min(310px, 42vw); }
.duo .device:nth-child(2) { margin-top: clamp(40px, 6vw, 80px); }

/* ---------- Diary, Lock Screen and widget ---------- */

.glance { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; margin-top: 40px; }
.widget {
  width: 172px; aspect-ratio: 1; padding: 16px 16px 15px; border-radius: 38px;
  background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  display: flex; flex-direction: column; justify-content: space-between;
  font-family: var(--display); letter-spacing: -0.01em;
}
.widget-top { display: flex; justify-content: space-between; gap: 6px; }
.widget-top b { display: block; font-size: 18px; font-weight: 600; }
.widget-top span { color: var(--text-2); font-size: 13px; }
.widget .ring-wrap span { font-size: 22px; }
.widget .ring { width: 54px; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); }
.widget-bottom b { display: block; color: var(--mint); font-size: 19px; font-weight: 600; }
.widget-bottom span { display: block; color: var(--text-2); font-size: 12.5px; line-height: 1.3; }
.activity {
  flex: 1 1 280px; max-width: 400px; align-self: center;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: 26px;
  background: rgba(30, 30, 34, 0.9); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.activity svg { width: 26px; height: 26px; color: var(--mint); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.activity b { display: block; font-size: 16px; font-weight: 600; }
.activity span { color: var(--mint); font-size: 15px; }
.activity .when { color: var(--text-2); font-size: 13px; text-align: right; }
.activity .when i { display: block; width: 90px; height: 5px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); }
.activity .when i::before { content: ""; display: block; width: 8%; height: 100%; border-radius: 3px; background: var(--mint); }
.glance-caption { flex-basis: 100%; color: var(--text-3); font-size: 14px; }

/* ---------- Family ---------- */

.tablet-stage { display: flex; justify-content: center; margin-top: clamp(56px, 7vw, 88px); }
.tablet-stage .device { width: min(720px, 88vw); }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; margin-top: clamp(56px, 7vw, 84px); }
.trio h3 { font-size: 21px; letter-spacing: -0.022em; }
.trio p { margin-top: 8px; color: var(--text-2); font-size: 16px; line-height: 1.47; }
.trio .big { display: block; margin-bottom: 10px; color: var(--amber); font-family: var(--display); font-size: clamp(40px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
@media (max-width: 760px) { .trio { grid-template-columns: 1fr; } }

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

/* Two devices on the home network, talking straight to each other */
.lan { width: min(100%, 760px); margin: clamp(52px, 7vw, 80px) auto 0; text-align: center; }
.lan-cloud { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-3); font-size: 15px; }
.lan-cloud svg { width: 84px; height: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-dasharray: 5 5; stroke-linejoin: round; }
.lan-cloud .strike { stroke-dasharray: none; stroke-linecap: round; }
.lan-box {
  position: relative; margin-top: 26px;
  padding: 58px clamp(20px, 5vw, 56px) 34px; border-radius: 36px;
  border: 1.5px dashed rgba(255, 255, 255, 0.2);
}
.lan-label {
  position: absolute; top: 20px; left: 26px;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 14px; font-weight: 600;
}
.lan-label svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lan-label circle { fill: currentColor; stroke: none; }
.lan-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lan-dev { display: flex; flex-direction: column; align-items: center; gap: 12px; flex: none; font-size: 15px; font-weight: 600; }
.lan-dev svg { width: 64px; height: auto; fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 2; }
.lan-dev .scr { fill: #0e1226; stroke: none; }
.lan-dev .moon { fill: var(--amber); stroke: none; }
.lan-dev .bars { stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
.lan-link { position: relative; flex: 1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-bottom: 30px; margin-top: -26px; }
.lan-link .wire { height: 2px; background: repeating-linear-gradient(90deg, var(--mint) 0 7px, transparent 7px 15px); background-size: 15px 2px; animation: wire 0.9s linear infinite; }
.lan-link .wire.back { animation-direction: reverse; }
@keyframes wire { to { background-position: 15px 0; } }
.lan-link .lock { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #000; box-shadow: inset 0 0 0 1.5px rgba(115, 222, 194, 0.55); }
.lan-link .lock svg { width: 22px; height: 22px; fill: none; stroke: var(--mint); stroke-width: 2; stroke-linecap: round; }
.lan-link b { position: absolute; left: 0; right: 0; bottom: 0; color: var(--mint); font-size: 14px; font-weight: 600; }
@media (max-width: 560px) {
  .lan-row { flex-direction: column; gap: 6px; }
  .lan-link { grid-template-columns: auto; grid-template-rows: 34px auto 34px; justify-items: center; width: 100%; margin: 4px 0; padding: 0; }
  .lan-link .wire { width: 2px; height: 100%; background: repeating-linear-gradient(180deg, var(--mint) 0 7px, transparent 7px 15px); background-size: 2px 15px; animation-name: wire-down; }
  @keyframes wire-down { to { background-position: 0 15px; } }
  .lan-link b { position: static; grid-row: 2; display: none; }
  .lan-link .lock { grid-row: 2; }
}

/* ---------- Price ---------- */

.price-box {
  width: min(100%, 640px); margin: clamp(44px, 6vw, 64px) auto 0;
  padding: clamp(28px, 4vw, 44px); border-radius: 36px; background: var(--surface);
}
.checks { display: grid; gap: 16px; padding: 0; list-style: none; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; align-items: start; font-size: 19px; line-height: 1.35; letter-spacing: -0.018em; }
.checks svg { width: 24px; height: 24px; margin-top: 1px; fill: none; stroke: var(--mint); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.checks small { display: block; margin-top: 3px; color: var(--text-2); font-size: 15px; }
.price-box .foot-note { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }

/* ---------- Good to know ---------- */

.know { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.know > div { padding: clamp(26px, 3.4vw, 38px); border-radius: 30px; background: var(--surface); }
.know h3 { font-size: 22px; letter-spacing: -0.022em; }
.know ul { margin-top: 16px; padding-left: 1.15em; color: var(--text-2); }
.know li + li { margin-top: 8px; }
.know p { margin-top: 14px; color: var(--text-2); }
.know .note h3 { display: flex; align-items: center; gap: 10px; }
@media (max-width: 760px) { .know { grid-template-columns: 1fr; } }

/* ---------- Questions ---------- */

.faq { margin-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 2px; cursor: pointer; list-style: none;
  font-family: var(--display); font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px;
  border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2);
  transform: translateY(-3px) rotate(45deg); transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding: 0 2px 26px; max-width: 46em; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.faq + .more { margin-top: 30px; }

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

.foot { padding: 56px 0 64px; border-top: 1px solid var(--hairline); background: var(--bg-2); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: center; }
.foot-top .tag { margin-top: 6px; color: var(--text-2); font-size: 15px; }
.foot nav ul { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 0; list-style: none; font-size: 15px; }
.foot nav a { color: var(--text-2); }
.foot nav a:hover { color: var(--text); }
.foot .fine { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--text-3); font-size: 13px; line-height: 1.55; }
.foot .fine p + p { margin-top: 8px; }

/* ---------- Help and privacy pages ---------- */

.doc { padding: clamp(52px, 8vw, 104px) 0 clamp(88px, 10vw, 132px); }
.doc .wrap { width: min(760px, 100% - 2 * var(--gutter)); }
.doc-icon { width: 64px; height: auto; margin-bottom: 24px; border-radius: 22.5%; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.04; font-weight: 700; letter-spacing: -0.04em; }
.doc .meta { margin-top: 14px; color: var(--text-3); font-size: 15px; }
.doc .intro { margin-top: 22px; color: var(--text-2); font-size: clamp(19px, 2vw, 22px); line-height: 1.45; font-weight: 500; letter-spacing: -0.016em; }
.doc .toc { margin: 40px 0 8px; padding: 26px 28px; border-radius: 26px; background: var(--surface); }
.doc .toc h2 { margin: 0 0 14px; font-size: 15px; color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.doc .toc ol { columns: 2; column-gap: 32px; padding-left: 1.2em; color: var(--text-3); }
.doc .toc li { break-inside: avoid; margin: 0 0 9px; font-size: 16px; line-height: 1.35; }
.doc .toc a { color: var(--text); }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.doc-body h2 { margin: 52px 0 14px; font-size: clamp(23px, 2.6vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; scroll-margin-top: 76px; }
.doc-body p, .doc-body li { color: #d2d2d7; font-size: 17px; line-height: 1.62; }
.doc-body p + p, .doc-body p + ul, .doc-body p + ol, .doc-body ul + p, .doc-body ol + p { margin-top: 14px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li + li { margin-top: 8px; }
.doc-body strong { color: var(--text); font-weight: 600; }
.doc-body code { font-size: 0.9em; }
.doc .contact { margin-top: 56px; padding: 30px 32px; border-radius: 28px; background: var(--surface); }
.doc .contact h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -0.025em; }
.doc .contact p { color: #d2d2d7; line-height: 1.6; }
.doc .contact p + p { margin-top: 10px; }
.doc .switch { margin-top: 44px; font-size: 16px; }
.todo { padding: 0 6px; border: 1px dashed rgba(255, 199, 122, 0.55); border-radius: 6px; background: rgba(255, 199, 122, 0.1); color: var(--amber); }

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

.missing { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.missing .clock { font-size: clamp(96px, 20vw, 200px); }

/* ---------- Appearing as the page scrolls ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 0.08s; }
.js .reveal.d2 { transition-delay: 0.16s; }
.js .reveal.d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ring { transition: none; }
  .track .tick { transform: none; transition: none; }
  .lan-link .wire { animation: none; }
}
