:root {
  --bg: #121312;
  --surface: #1a1b19;
  --text: #edebe4;
  --muted: #9a978e;
  --faint: #6e6b62;
  --line: #2c2d2a;
  --accent: #d4f25a;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Familjen Grotesk', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --reader: 'Newsreader', Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.accent { color: var(--accent); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* ---------- nav ---------- */
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 28px; max-width: 1200px; margin: 0 auto;
}
.wordmark { font-family: var(--mono); font-size: 14px; letter-spacing: 0.3em; }
.nav-cta {
  font-family: var(--sans); font-weight: 500; font-size: 15px;
  color: var(--text); text-decoration: none;
  border: 1px solid var(--line); border-radius: 22px; padding: 10px 20px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--text); color: var(--bg); }

/* ---------- hero ---------- */
.hero { max-width: 760px; margin: 8vh auto 0; padding: 0 28px; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 12vw, 128px);
  line-height: .95; margin: 14px 0 26px; letter-spacing: -0.01em;
}
.hero h1 em { font-style: italic; }
.lede { color: var(--muted); font-size: clamp(18px, 2.4vw, 22px); max-width: 560px; }

/* ---------- the phone ---------- */
.phone-wrap { display: flex; justify-content: center; padding: 9vh 28px 4vh; }
.phone {
  width: min(420px, 100%);
  border: 1px solid var(--line); border-radius: 36px;
  padding: 34px 26px 20px;
  background: var(--bg);
}
.pulse { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 20px;
  padding: 9px 14px; font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em;
}
.dist-label { font-family: var(--serif); font-style: italic; font-size: 27px; margin: 30px 0 12px; }
.dist-label.dim { color: var(--muted); margin-top: 34px; }
.dist-label.accent { color: var(--accent); font-size: 31px; }
.cloud { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.cloud span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14.5px; }
.cloud .mono { font-size: 11px; }
.rule { display: flex; align-items: center; gap: 14px; margin: 26px 0 4px; }
.rule i { flex: 1; height: 1px; background: var(--line); }
.rule .mono { font-size: 10.5px; letter-spacing: .3em; }
.list { list-style: none; }
.list li {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 10px;
  padding: 9px 0; font-size: 16.5px;
}
.list b { font-weight: 600; }
.list .mono { color: var(--muted); font-size: 12px; }
.list.big li { grid-template-columns: 16px 1fr auto; font-size: 20px; padding: 11px 0 13px; }
.list.big b { font-weight: 700; }
.list.big .mono { color: var(--text); font-size: 12px; }
.bar {
  grid-column: 1 / -1; height: 2px; background: var(--line); position: relative; margin-top: 4px;
}
.bar::after { content: ''; position: absolute; inset: 0; right: calc((1 - var(--p)) * 100%); background: var(--accent); }
.capture {
  display: flex; align-items: center; gap: 12px; margin-top: 26px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 30px;
  padding: 8px 8px 8px 16px; height: 54px;
}
.capture .caret { width: 2px; height: 20px; background: var(--accent); }
.capture span { flex: 1; color: var(--faint); font-size: 15px; }
.capture .send {
  width: 42px; height: 42px; border-radius: 50%; background: var(--text); color: var(--bg);
  display: grid; place-items: center; font-style: normal; font-size: 19px; font-weight: 600;
}

/* ---------- glyphs ---------- */
.g { display: inline-block; flex: none; }
.g-tri { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 10.5px solid var(--muted); }
.g-square { width: 10px; height: 10px; border: 1.5px solid var(--muted); }
.g-circle { width: 11px; height: 11px; border: 1.5px solid var(--muted); border-radius: 50%; }
.g-dia { width: 7.5px; height: 7.5px; border: 1.5px solid var(--muted); transform: rotate(45deg); }
.g-slash { width: 1.5px; height: 12px; background: var(--muted); transform: rotate(24deg); }
.g-lines { width: 10px; height: 9px; border-top: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); }
.g-name { width: 10px; height: 10px; border: 1.5px solid var(--muted); border-radius: 2px; }
.cloud .g, .list .g, .chip .g { align-self: center; }
.list .g { justify-self: center; }
.chip .g-tri, .list .g-tri { border-bottom-color: var(--text); }
.chip .g-square, .list .g-square { border-color: var(--text); }
.chip .g-circle, .list .g-circle { border-color: var(--text); }
.list .g-dia { border-color: var(--text); }
.list .g-slash { background: var(--text); }
.chip .g-lines { border-color: var(--text); }

/* ---------- sections ---------- */
section { max-width: 860px; margin: 0 auto; padding: 11vh 28px; }
section > .mono { display: block; margin-bottom: 18px; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 6vw, 58px); line-height: 1.05; letter-spacing: -0.01em; margin-bottom: 26px; }
h2 em { font-style: italic; }
.serif-body { font-family: var(--serif); }

/* distances */
.distances { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 36px 28px; margin-top: 20px; }
.dnum { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.distances h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 30px; margin: 8px 0 10px; }
.distances p { color: var(--muted); font-size: 16px; }

/* shapes */
.shapes { list-style: none; margin-top: 14px; }
.shapes li {
  display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 14px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.shapes .g { grid-row: 1 / 3; align-self: center; justify-self: center; border-color: var(--text); }
.shapes .g-tri { border-bottom-color: var(--text); border-left-color: transparent; border-right-color: transparent; }
.shapes .g-lines { border-color: var(--text); }
.shapes .g-slash { background: var(--text); }
.shapes b { font-weight: 600; font-size: 20px; }
.shapes .mono { color: var(--faint); font-size: 11.5px; margin-top: 5px; }

/* capture examples */
.examples { margin-top: 34px; border-top: 1px solid var(--line); }
.ex { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 17px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.ex q { font-family: var(--serif); font-size: 24px; quotes: '“' '”'; }
.ex .mono { color: var(--faint); font-size: 11.5px; }

/* dots */
.dots { display: flex; gap: 4.5vw; margin: 40px 0 18px; }
.col { display: flex; flex-direction: column; align-items: center; gap: 7px; justify-content: flex-end; min-height: 120px; }
.col i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.col.on i { background: var(--accent); }
.col s { text-decoration: none; font-family: var(--mono); font-size: 11px; color: var(--faint); margin-top: 6px; }
.col.on s { color: var(--accent); }

/* privacy */
#privacy { text-align: left; border-top: 1px solid var(--line); }

/* footer */
footer { text-align: center; padding: 12vh 28px 10vh; border-top: 1px solid var(--line); }
footer h2 { font-size: clamp(48px, 9vw, 84px); }
.cta {
  display: inline-block; margin: 30px 0 26px;
  background: var(--accent); color: var(--bg); text-decoration: none;
  font-weight: 600; font-size: 17px; padding: 17px 34px; border-radius: 30px;
}
.cta:hover { opacity: .88; }
footer .mono { display: block; }

@media (max-width: 560px) {
  .ex { flex-direction: column; gap: 4px; }
  .dots { gap: 3.5vw; }
}
