/* Longcord website. Design: "Copper Line" (the app's docs/design/DESIGN.md): porcelain, copper cord, glass knots,
   Big Shoulders Display for big moments, Atkinson Hyperlegible for reading. Fonts are on this website itself. */

@font-face {
  font-family: 'Atkinson Hyperlegible Next Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Next Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/atkinson-hyperlegible-mono-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Atkinson Hyperlegible Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/atkinson-hyperlegible-mono-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Display Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/big-shoulders-display-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Big Shoulders Display Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('../fonts/big-shoulders-display-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens: "Porcelain" by day, "Night line" by night (the app's _tokens.scss) ---------- */
:root {
  --bg: #f4f0e8;
  --paper: #fbf9f4;
  --sunk: #ece6da;
  --ink: #1c1916;
  --ink-2: #5a534b;
  --ink-3: #6b645b;
  --rule: rgb(28 25 22 / 0.12);
  --rule-2: rgb(28 25 22 / 0.22);
  --copper: #b4582a;
  --copper-ink: #8e4220;
  --sheen: #e9a171;
  --glass: #5fa8a3;
  --glass-ink: #23706b;
  --on-copper: #ffffff;
  --phone: #1c1916;
  /* the Station section is always the night line */
  --night: #0d0c0b;
  --night-ink: #f1ebe1;
  --night-ink-2: #b5aca0;
  --night-copper: #d9773f;
  --night-copper-ink: #e89463;
  --night-glass: #7cc3be;
  --night-rule: rgb(241 235 225 / 0.14);

  --font-text: 'Atkinson Hyperlegible Next Variable', 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --font-mono: 'Atkinson Hyperlegible Mono Variable', 'Atkinson Hyperlegible Mono', ui-monospace, monospace;
  --font-display: 'Big Shoulders Display Variable', 'Big Shoulders Display', 'Arial Narrow', sans-serif;

  --pad: clamp(20px, 4.2vw, 64px);
  --max: 1320px;
  --top: 72px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110f;
    --paper: #1c1916;
    --sunk: #26221e;
    --ink: #f1ebe1;
    --ink-2: #b5aca0;
    --ink-3: #8b8378;
    --rule: rgb(241 235 225 / 0.14);
    --rule-2: rgb(241 235 225 / 0.26);
    --copper: #d9773f;
    --copper-ink: #e89463;
    --sheen: #f6bf93;
    --glass: #7cc3be;
    --glass-ink: #9ad6d1;
    --on-copper: #1c1410;
    --phone: #2b2622;
  }
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--top) + 12px);
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 clamp(17px, 1.05rem + 0.2vw, 20px) / 1.55 var(--font-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img,
svg,
canvas {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p,
ol,
ul,
figure,
dl,
dd {
  margin: 0;
}
ol,
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration-color: var(--copper);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}
a:hover {
  color: var(--copper-ink);
}
:focus-visible {
  outline: 3px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection {
  background: var(--copper);
  color: var(--on-copper);
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wrap {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.mono {
  font-family: var(--font-mono);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 12px;
  font: 700 17px/1 var(--font-text);
  text-decoration: none;
  border: 2px solid transparent;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn-copper {
  background: var(--copper);
  color: var(--on-copper);
}
.btn-copper:hover {
  background: var(--copper-ink);
  color: var(--on-copper);
}
.btn-line {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-line:hover {
  background: var(--ink);
  color: var(--bg);
}
.btn-sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
  border-radius: 10px;
}

/* ---------- Header ---------- */
.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--top);
  transition:
    background-color 200ms ease,
    box-shadow 200ms ease;
}
.top.is-scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: 0 1px 0 var(--rule);
  -webkit-backdrop-filter: saturate(1.2) blur(6px);
  backdrop-filter: saturate(1.2) blur(6px);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wordmark {
  font: 800 30px/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper-ink);
  text-decoration: none;
}
.wordmark:hover {
  color: var(--copper);
}
.top-nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.top-nav a {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.top-nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--copper);
}
@media (max-width: 820px) {
  .top-nav {
    display: none;
  }
  .top .btn {
    margin-left: auto;
  }
}

/* ---------- The stage: the 3D cord, the hero and the story ---------- */
.stage {
  position: relative;
  background: var(--bg);
}
.stage-canvas {
  width: 100%;
  touch-action: pan-y;
}
.stage-fallback {
  display: none;
}
.hero-title {
  font: 800 clamp(52px, 6.7vw, 124px) / 0.86 var(--font-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-title .cu {
  color: var(--copper-ink);
}
.hero-lead {
  margin-top: clamp(18px, 2.2vw, 30px);
  max-width: 30ch;
  font-size: clamp(19px, 1.15rem + 0.45vw, 25px);
  line-height: 1.4;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(24px, 3vw, 38px);
}
.hero-note {
  margin-top: 16px;
  font: 600 13px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hint {
  display: none;
}
.story-step h2 {
  font: 800 clamp(44px, 5.2vw, 92px) / 0.88 var(--font-display);
  text-wrap: balance;
}
.story-step p {
  margin-top: 16px;
  font-size: clamp(19px, 1.1rem + 0.3vw, 23px);
  line-height: 1.4;
  color: var(--ink-2);
  max-width: 26ch;
  text-wrap: pretty;
}
.story-num {
  display: block;
  margin-bottom: 18px;
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--copper-ink);
}
.ends,
.story-dots {
  display: none;
}

/* Static stage (no script, reduced motion, or no 3D): hero, then the picture, then the four steps as a list */
.stage {
  padding: calc(var(--top) + clamp(32px, 6vh, 72px)) var(--pad) clamp(48px, 8vh, 96px);
}
.stage > .hero,
.stage > .story,
.stage > .stage-fallback,
.stage > .stage-canvas {
  width: min(100%, var(--max));
  margin-inline: auto;
}
.stage-canvas {
  height: clamp(320px, 112vw, 600px);
  margin-block: 24px;
  display: none;
}
html.webgl .stage-canvas {
  display: block;
}
html:not(.webgl) .stage-fallback {
  display: block;
  margin-block: clamp(24px, 6vh, 64px);
}
.stage-fallback img {
  width: min(560px, 90%);
  margin-inline: auto;
}
.story {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px 40px;
}
.story-step h2 {
  font-size: clamp(36px, 3.4vw, 56px);
}

/* Pinned stage: the canvas fills the screen, the words sit over the picture and change as you scroll */
html.js.motion.webgl .stage {
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  padding: 0;
  overflow: hidden;
}
html.js.motion.webgl .stage-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
}
html.js.motion.webgl .hero {
  position: absolute;
  z-index: 2;
  left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  top: calc(var(--top) + clamp(28px, 9vh, 120px));
  width: min(48rem, 56vw);
  margin: 0;
}
html.js.motion.webgl .hint {
  display: flex;
  align-items: center;
  gap: 12px;
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: clamp(18px, 4vh, 36px);
  transform: translateX(-50%);
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
html.js.motion.webgl .hint span {
  display: flex;
  align-items: center;
  gap: 12px;
}
html.js.motion.webgl .hint span::after {
  content: '';
  width: 2px;
  height: 26px;
  background: linear-gradient(var(--copper), var(--copper)) top / 2px 40% no-repeat;
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint {
  0% {
    background-position: 0 -12px;
  }
  100% {
    background-position: 0 30px;
  }
}
html.js.motion.webgl .story {
  display: grid;
  align-items: center;
  position: absolute;
  z-index: 2;
  left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  top: var(--top);
  bottom: 0;
  width: min(24rem, 28vw);
  margin: 0;
}
html.js.motion.webgl .story-step {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
}
html.js.motion.webgl .story-step h2 {
  font-size: clamp(42px, 4.2vw, 78px);
}
html.webgl .ends {
  display: block;
}
.end {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  min-width: 12rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.end strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
}
.end span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ink-2);
}
html.js.motion.webgl .story-dots {
  display: flex;
  gap: 10px;
  position: absolute;
  z-index: 2;
  left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  bottom: clamp(22px, 5vh, 44px);
  opacity: 0;
}
.story-dots li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--copper);
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    transform 200ms ease;
}
.story-dots li.is-on {
  background: var(--glass);
  border-color: var(--glass);
  transform: scale(1.2);
}

@media (max-aspect-ratio: 9/10) {
  html.js.motion.webgl .hero,
  html.js.motion.webgl .story {
    left: var(--pad);
    right: var(--pad);
    width: auto;
  }
  html.js.motion.webgl .hero {
    top: calc(var(--top) + 16px);
  }
  html.js.motion.webgl .hero-title {
    font-size: clamp(44px, 12.6vw, 84px);
  }
  html.js.motion.webgl .hero-lead {
    font-size: 18px;
    margin-top: 14px;
  }
  html.js.motion.webgl .hero-actions {
    margin-top: 20px;
  }
  html.js.motion.webgl .hero-note {
    display: none;
  }
  html.js.motion.webgl .story {
    top: calc(var(--top) + 18px);
    bottom: auto;
    align-items: start;
  }
  html.js.motion.webgl .story-step h2 {
    font-size: clamp(40px, 11vw, 64px);
  }
  html.js.motion.webgl .story-step p {
    font-size: 18px;
    margin-top: 10px;
  }
  html.js.motion.webgl .story-num {
    margin-bottom: 10px;
  }
  .end strong {
    font-size: 14px;
  }
  .end span {
    font-size: 12px;
  }
  .end {
    min-width: 9rem;
  }
  html.js.motion.webgl .story-dots {
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-aspect-ratio: 9/10) and (max-height: 700px) {
  html.js.motion.webgl .hero-lead {
    display: none;
  }
}

/* ---------- Sections ---------- */
.sec {
  padding-block: clamp(88px, 13vw, 184px);
  position: relative;
}
.sec + .sec {
  border-top: 1px solid var(--rule);
}
.sec-num {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-ink);
}
.sec-title {
  margin-top: 22px;
  font: 800 clamp(52px, 7.6vw, 128px) / 0.86 var(--font-display);
  letter-spacing: -0.005em;
  text-wrap: balance;
  max-width: 14ch;
}
.sec-lead {
  margin-top: 22px;
  font-size: clamp(19px, 1.1rem + 0.4vw, 24px);
  color: var(--ink-2);
  max-width: 34ch;
}

/* Setup: three knots on a cord */
.setup-cord {
  margin-top: clamp(48px, 7vw, 96px);
  color: var(--copper);
}
.setup-cord svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.setup-cord .cord {
  fill: none;
  stroke: var(--copper);
  stroke-width: 9;
  stroke-linecap: round;
}
.setup-cord .cord-sheen {
  fill: none;
  stroke: var(--sheen);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.9;
}
.setup-cord .knot {
  fill: var(--glass);
  stroke: var(--bg);
  stroke-width: 8;
}
.setup-cord .knot-shine {
  fill: none;
  stroke: #fff;
  stroke-width: 3.5;
  stroke-linecap: round;
  opacity: 0.6;
}
.setup-cord text {
  font: 700 26px var(--font-mono);
  fill: #1c1916;
  text-anchor: middle;
}
.setup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 64px);
  margin-top: 8px;
  counter-reset: step;
}
.setup-steps li {
  padding-top: 18px;
}
.setup-steps h3 {
  font-size: clamp(22px, 1.3rem + 0.4vw, 28px);
  line-height: 1.18;
  font-weight: 700;
  text-wrap: balance;
}
.setup-steps p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 34ch;
}
.setup-steps .step-n {
  display: none;
  font: 700 15px/1 var(--font-mono);
  color: var(--copper-ink);
}
@media (max-width: 860px) {
  .setup-cord {
    display: none;
  }
  .setup-steps {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 48px;
    border-left: 4px solid var(--copper);
    margin-left: 14px;
  }
  .setup-steps li {
    position: relative;
    padding: 0 0 44px 34px;
  }
  .setup-steps li:last-child {
    padding-bottom: 0;
  }
  .setup-steps li::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--glass);
    box-shadow: 0 0 0 6px var(--bg);
  }
  .setup-steps .step-n {
    display: block;
    margin-bottom: 10px;
  }
}

/* What you get: a directory of features, with the app beside the list */
.feat {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}
.feat-list {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule-2);
}
.feat-list li {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 4px 12px;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--rule);
}
.feat-list .n {
  grid-row: span 2;
  font: 600 15px/1.6 var(--font-mono);
  color: var(--copper-ink);
}
.feat-list h3 {
  font-size: clamp(22px, 1.25rem + 0.5vw, 30px);
  line-height: 1.15;
  font-weight: 700;
}
.feat-list p {
  color: var(--ink-2);
  max-width: 42ch;
}
.feat-list li.is-on h3 {
  color: var(--copper-ink);
}
.feat-shot {
  display: none;
}
.feat-phone {
  position: sticky;
  top: calc(var(--top) + 40px);
  margin-top: clamp(40px, 6vw, 80px);
  justify-self: center;
  width: min(100%, 330px);
}
.frame {
  position: relative;
  aspect-ratio: 393 / 852;
  border-radius: 46px;
  padding: 11px;
  background: var(--phone);
  box-shadow:
    0 0 0 1px var(--rule-2),
    0 30px 60px -30px rgb(28 25 22 / 0.45);
}
.frame-screen {
  position: relative;
  height: 100%;
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper);
}
.frame-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 420ms ease;
}
.frame-screen img.is-on {
  opacity: 1;
}
.frame-cap {
  margin-top: 18px;
  text-align: center;
  font: 600 13px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
@media (max-width: 900px) {
  .feat {
    grid-template-columns: 1fr;
  }
  .feat-phone {
    display: none;
  }
  .feat-shot {
    display: block;
    grid-column: 2;
    margin-top: 20px;
    width: min(62vw, 250px);
  }
  .feat-shot .frame {
    border-radius: 34px;
    padding: 8px;
  }
  .feat-shot .frame-screen {
    border-radius: 27px;
  }
  .feat-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

/* Station mode: the main phone as a clock, always the night line */
.station {
  background: var(--night);
  color: var(--night-ink);
  border-top: 0 !important;
  overflow: hidden;
}
.station .sec-num {
  color: var(--night-copper-ink);
}
.station-in {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.clock {
  font: 600 clamp(150px, 27vw, 420px) / 0.78 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--night-ink);
  margin-top: 28px;
}
.clock .colon {
  display: inline-block;
  color: var(--night-copper);
}
@media (prefers-reduced-motion: no-preference) {
  .clock .colon {
    animation: blink 2s steps(1) infinite;
  }
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.station h2 {
  font: 800 clamp(44px, 5.4vw, 88px) / 0.88 var(--font-display);
  text-wrap: balance;
}
.station-copy p {
  margin-top: 20px;
  color: var(--night-ink-2);
  max-width: 32ch;
  font-size: clamp(19px, 1.1rem + 0.3vw, 23px);
}
.station .live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--night-copper-ink);
}
.station .live::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--night-glass);
}
@media (max-width: 860px) {
  .station-in {
    grid-template-columns: 1fr;
  }
  .clock {
    font-size: clamp(120px, 40vw, 260px);
  }
}

/* Private by design */
.promises {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(32px, 5vw, 80px);
  margin-top: clamp(44px, 6vw, 84px);
  border-top: 1px solid var(--rule-2);
}
.promises li {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--rule);
}
.promises h3 {
  font: 800 clamp(34px, 3.4vw, 54px) / 0.95 var(--font-display);
}
.promises p {
  margin-top: 12px;
  color: var(--ink-2);
  max-width: 36ch;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  border-bottom: 2px solid var(--copper);
  padding-bottom: 4px;
}
@media (max-width: 760px) {
  .promises {
    grid-template-columns: 1fr;
  }
}

/* What you need */
.needs-in {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 112px);
}
.checks {
  border-top: 1px solid var(--rule-2);
}
.checks li {
  position: relative;
  padding: 22px 0 22px 52px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(19px, 1.1rem + 0.25vw, 22px);
  line-height: 1.4;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.notes {
  margin-top: 32px;
  display: grid;
  gap: 16px;
  color: var(--ink-2);
  max-width: 54ch;
}
@media (max-width: 860px) {
  .needs-in {
    grid-template-columns: 1fr;
  }
}

/* Questions */
.faq {
  margin-top: clamp(40px, 6vw, 80px);
  border-top: 1px solid var(--rule-2);
  max-width: 900px;
}
.faq details {
  border-bottom: 1px solid var(--rule);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
  font-size: clamp(20px, 1.15rem + 0.45vw, 27px);
  font-weight: 700;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: 0 0 26px;
  height: 26px;
  background:
    linear-gradient(var(--copper), var(--copper)) center / 100% 3px no-repeat,
    linear-gradient(var(--copper), var(--copper)) center / 3px 100% no-repeat;
  transition: transform 220ms ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--copper-ink);
}
.faq details p {
  padding: 0 0 28px;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Get Longcord */
.get {
  background: var(--copper);
  color: var(--on-copper);
  border-top: 0 !important;
}
.get .sec-num {
  color: inherit;
}
.get h2 {
  margin-top: 22px;
  font: 800 clamp(60px, 10vw, 176px) / 0.84 var(--font-display);
  text-wrap: balance;
  max-width: 11ch;
}
.get p:not(.sec-num) {
  margin-top: 26px;
  max-width: 44ch;
  font-size: clamp(19px, 1.1rem + 0.4vw, 24px);
  line-height: 1.45;
}
.get .btn {
  margin-top: 36px;
  background: var(--bg);
  color: var(--ink);
}
.get .btn:hover {
  background: var(--ink);
  color: var(--bg);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.get .store {
  display: grid;
  gap: 4px;
  min-width: 220px;
  padding: 14px 24px 16px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}
.get .store span {
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.get .store strong {
  font: 800 30px/1 var(--font-display);
  letter-spacing: 0.01em;
}
.get .store:hover {
  background: var(--ink);
  color: var(--bg);
}
.get .store:hover span {
  color: inherit;
}

/* ---------- Footer ---------- */
.foot {
  padding: clamp(56px, 8vw, 112px) 0 40px;
  border-top: 1px solid var(--rule);
  overflow: hidden;
}
.foot-mark {
  font: 800 clamp(64px, 19.4vw, 300px) / 0.8 var(--font-display);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper);
  white-space: nowrap;
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px 40px;
  margin-top: clamp(28px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--rule-2);
}
.foot-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}
.foot-row nav a {
  font-weight: 600;
  text-decoration: none;
}
.foot-row nav a:hover {
  text-decoration: underline;
  text-decoration-color: var(--copper);
}
.foot-small {
  margin-top: 28px;
  font: 500 14px/1.4 var(--font-mono);
  color: var(--ink-3);
}

/* ---------- Pages: privacy, terms, delete your data ---------- */
.doc-head {
  padding: calc(var(--top) + clamp(48px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.doc-head h1 {
  margin-top: 22px;
  font: 800 clamp(60px, 9vw, 150px) / 0.84 var(--font-display);
  text-wrap: balance;
}
.doc-head .lead {
  margin-top: 24px;
  max-width: 44ch;
  font-size: clamp(19px, 1.1rem + 0.4vw, 24px);
  color: var(--ink-2);
}
.doc-meta {
  margin-top: 22px;
  font: 600 13px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.doc-body {
  display: grid;
  grid-template-columns: minmax(200px, 270px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  padding-block: clamp(40px, 6vw, 88px) clamp(72px, 10vw, 140px);
}
.toc {
  position: sticky;
  top: calc(var(--top) + 24px);
  align-self: start;
  max-height: calc(100vh - var(--top) - 48px);
  overflow: auto;
  padding-right: 8px;
}
.toc p {
  font: 600 13px/1 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-ink);
  margin-bottom: 14px;
}
.toc ol {
  border-left: 2px solid var(--rule-2);
}
.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--ink);
  border-left-color: var(--copper);
}
.prose {
  max-width: 72ch;
}
.prose > * + * {
  margin-top: 1.1em;
}
.prose h2 {
  margin-top: 2.2em;
  padding-top: 0.6em;
  font: 800 clamp(34px, 3.2vw, 52px) / 0.95 var(--font-display);
  border-top: 1px solid var(--rule);
}
.prose > h2:first-child {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 22px;
  line-height: 1.25;
}
.prose ul,
.prose ol {
  display: grid;
  gap: 0.6em;
}
.prose ul li {
  position: relative;
  padding-left: 26px;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--glass);
}
.prose ol {
  counter-reset: n;
}
.prose ol > li {
  position: relative;
  padding-left: 40px;
  counter-increment: n;
}
.prose ol > li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: 0.05em;
  font: 700 15px/1.5 var(--font-mono);
  color: var(--copper-ink);
}
.prose li ul {
  margin-top: 0.6em;
}
.prose strong {
  font-weight: 700;
}
.prose code {
  font: 0.88em var(--font-mono);
  background: var(--sunk);
  padding: 1px 5px;
  border-radius: 4px;
}
.prose .table {
  overflow-x: auto;
  border-top: 1px solid var(--rule-2);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}
.prose th,
.prose td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--rule);
}
.prose th {
  font: 600 12px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.prose .short {
  padding: 26px 28px;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 16px;
}
.prose .short h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
@media (max-width: 900px) {
  .doc-body {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
  }
}

/* 404 */
.lost {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding: calc(var(--top) + 40px) var(--pad) 60px;
  width: min(100%, var(--max));
  margin-inline: auto;
}
.lost h1 {
  font: 800 clamp(64px, 12vw, 200px) / 0.84 var(--font-display);
  text-wrap: balance;
}
.lost p {
  margin-top: 20px;
  font-size: 22px;
  color: var(--ink-2);
}
.lost .btn {
  margin-top: 32px;
  justify-self: start;
}

@media print {
  .top,
  .toc,
  .foot-mark {
    display: none;
  }
  .doc-body {
    grid-template-columns: 1fr;
  }
}
