:root {
  --bg: #0f1413;
  --surface: rgba(255, 255, 255, 0.05);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef3f1;
  --muted: #a6b3ae;
  --accent: #7dccb5;
  --teal: #2f6f62;
  --teal-light: #76b5a3;
  --warn: #edb06b;
  --plum: #a187bf;
  --radius: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* The glow behind the phone may reach past the edge; it never scrolls the page sideways. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  background:
    radial-gradient(600px 420px at 8% 0%, #29261f 0%, transparent 70%),
    radial-gradient(520px 380px at 100% 40%, #142a24 0%, transparent 70%),
    radial-gradient(600px 420px at 10% 100%, #171c26 0%, transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

a { color: var(--accent); }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }
.wrap.wide { max-width: 1040px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand .mark { width: 28px; height: 28px; display: block; }
nav a { color: var(--muted); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--text); }

.eyebrow { color: var(--accent); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; margin: 0 0 14px; }
h1 { font-size: clamp(40px, 7vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 700; }
.lede { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.button {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.button:hover { background: #357b6d; }
.note { color: var(--muted); font-size: 15px; }

section { padding: 40px 0; }
h2 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 8px; }

/* Home: plain type on the background, real screenshots, hairlines instead of boxes. */
.home h1 { font-size: clamp(44px, 7.4vw, 76px); letter-spacing: -0.035em; text-wrap: balance; }
.home .lede { font-size: clamp(19px, 2.2vw, 22px); max-width: 30ch; line-height: 1.45; }
.home .cta { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin: 0; }

.intro {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 56px; align-items: center;
  padding: 48px 0 88px;
}

.phone { margin: 0; position: relative; }
.phone img {
  display: block; width: 100%; height: auto;
  border-radius: 44px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.intro-phone { width: 330px; }
/* A soft teal glow behind the phone, the colour of the glass. */
.intro-phone::before {
  content: ""; position: absolute; inset: 12% -18% 8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(47, 111, 98, 0.45), transparent);
  filter: blur(20px);
}

.screens {
  display: grid; grid-template-columns: repeat(2, minmax(0, 290px)); gap: 64px;
  justify-content: center; padding: 24px 0 96px;
}
.screens figcaption { color: var(--muted); font-size: 16px; text-align: center; margin: 22px auto 0; }

.statement { padding: 56px 0; border-top: 1px solid var(--line); text-align: center; }
.statement h2 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; }
.statement p { color: var(--muted); margin: 0 auto; max-width: 52ch; font-size: 18px; }
.statement .cta-center { margin-top: 26px; }

footer {
  border-top: 1px solid var(--line); margin-top: 48px; padding: 28px 0 48px;
  color: var(--muted); font-size: 14px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
footer a { color: var(--muted); }
.home footer { margin-top: 0; }

/* Privacy policy */
.doc { max-width: 680px; padding: 32px 0 24px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc p, .doc li { color: #cfd8d4; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .updated { color: var(--muted); margin-top: -6px; }

/* How it works: short text beside a flat drawing, one per idea. */
.serif, .how-page h1, .how-page h2, .home h1, .statement h2 {
  font-family: "New York", ui-serif, "Iowan Old Style", Georgia, serif; font-weight: 500; letter-spacing: -0.015em;
}
.how-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 56px; align-items: center;
  padding: 40px 0 72px;
}
.how-intro h1 { font-size: clamp(44px, 6.4vw, 68px); line-height: 1.04; margin: 0 0 20px; }
.how-intro .lede { font-size: clamp(19px, 2.1vw, 22px); max-width: 30ch; line-height: 1.45; margin: 0; }

.step {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 64px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--line);
}
.step:nth-of-type(odd) .art { order: -1; }
.step.plain { align-items: start; grid-template-columns: 1fr 1fr; }
.step.plain .text h2 { font-size: 26px; }
.step .num { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.1em; margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.step h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; margin: 0 0 16px; }
.step p, .step li { color: #cfd8d4; }
.step p { margin: 0 0 12px; max-width: 46ch; }
.step b { color: var(--text); font-weight: 600; }
.step ul { padding-left: 20px; margin: 0; }
.step li { margin: 6px 0; }
.facts { width: 100%; max-width: 46ch; border-collapse: collapse; margin: 6px 0 16px; font-size: 15px; }
.facts th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.facts td { color: #cfd8d4; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }

/* The drawings: one stroke weight, flat fills, Tachie's colours. */
.art { margin: 0; }
.art svg { display: block; width: 100%; height: auto; overflow: visible; }
.art text { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
.art .label { fill: var(--muted); font-size: 14px; }
.art .label-strong { fill: var(--text); font-size: 15px; font-weight: 600; }
.art .label-amber { fill: var(--warn); font-size: 14px; font-weight: 600; }
.art .label-caps { fill: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; }
.art .serif-art { fill: var(--muted); font: italic 17px "New York", ui-serif, Georgia, serif; }
.art .serif-number { fill: var(--text); font: 500 44px "New York", ui-serif, Georgia, serif; }
.art .serif-big { fill: var(--warn); font: 500 76px "New York", ui-serif, Georgia, serif; }
.art .ink, .art .ink-bright, .art .faint, .art .faint-ink, .art .amber-ink, .art .plum-ink {
  fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.art .ink { stroke: rgba(238, 243, 241, 0.55); }
.art .ink-bright { stroke: var(--text); stroke-width: 2; }
.art .ink-bright.thick { stroke-width: 3; }
.art .faint { stroke: rgba(238, 243, 241, 0.16); }
.art .faint-ink { stroke: rgba(238, 243, 241, 0.32); }
.art .amber-ink { stroke: var(--warn); }
.art .plum-ink { stroke: var(--plum); fill: rgba(161, 135, 191, 0.25); }
.art .teal-fill { fill: var(--accent); }
.art .teal-soft-fill { fill: rgba(125, 204, 181, 0.34); }
.art .teal-soft { fill: rgba(125, 204, 181, 0.22); }
.art .teal-dark { fill: var(--teal); }
.art .amber-fill { fill: var(--warn); }
.art .plum-fill { fill: var(--plum); }
.art .plum-soft { fill: rgba(161, 135, 191, 0.55); }
.art .faint-fill { fill: rgba(255, 255, 255, 0.07); }
.art .zone-rest { fill: rgba(118, 181, 163, 0.07); }
.art .zone-active { fill: rgba(125, 204, 181, 0.14); }
.art .zone-high { fill: rgba(237, 176, 107, 0.13); }
.art .card { fill: rgba(255, 255, 255, 0.06); stroke: rgba(255, 255, 255, 0.10); }
.art .chip { fill: rgba(47, 111, 98, 0.85); }
.art .handle { fill: var(--text); }
.art .selected { fill: rgba(255, 255, 255, 0.16); }
.art .dot { fill: #fff; }
.art .node circle { fill: #151c1b; stroke: rgba(238, 243, 241, 0.18); stroke-width: 1.2; }
.art .chev path { fill: none; stroke: rgba(238, 243, 241, 0.45); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Home: a quiet text link beside the button. */
.text-link { color: var(--text); text-decoration: none; font-weight: 600; }
.text-link:hover { color: var(--accent); }
.home .cta + .note { display: block; margin-top: 16px; }

@media (max-width: 760px) {
  .intro { grid-template-columns: 1fr; gap: 44px; padding: 24px 0 64px; }
  .intro-phone { width: min(300px, 78vw); justify-self: center; }
  .screens { grid-template-columns: minmax(0, 260px); gap: 56px; padding-bottom: 72px; }
  .statement { text-align: left; }
  .statement p { margin: 0; }
  .how-intro { grid-template-columns: 1fr; gap: 32px; padding: 20px 0 48px; }
  .step, .step.plain { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
  .step .art { order: -1; }
  .facts { font-size: 14px; }
  nav a { margin-left: 14px; }
}
