/* YIP Note — product website.
   Layout: a scroll-played film of the real app, then one continuous story on the same night-blue
   ground. Red tape ties the sections together; highlighter yellow marks the words that matter. */

@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-standard-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url('fonts/newsreader-latin-standard-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('fonts/instrument-sans-latin-standard-normal.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  /* Colour: the night before a hearing. */
  --night: #0b1220; /* page ground; the film frames are drawn on exactly this */
  --night-2: #121b2d; /* raised panels */
  --paper: #fbfaf7; /* documents */
  --ink: #eef1f6; /* text on night */
  --ink-dim: #a6b0c0;
  --ink-paper: #1b1e25; /* text on paper */
  --ink-paper-dim: #5b6270;
  --tape: #c2323a; /* red tape */
  --tape-dark: #7d1a20;
  --hl: #f4d35e; /* highlighter */
  --hl-soft: rgba(244, 211, 94, 0.55);
  --star: #f2c35a;
  --accent: #d2474c; /* the app colour (Red tape by default); the colour pickers change it */
  --accent-ink: #0b1220;
  --line: rgba(238, 241, 246, 0.12);
  --black: #000000;
  --shadow: rgba(0, 0, 0, 0.45);
  /* Type */
  --display: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.4vw, 2.4rem);
  --step-3: clamp(2.1rem, 1.5rem + 2.8vw, 3.8rem);
  --step-4: clamp(2.6rem, 1.6rem + 5vw, 6rem);
  --gutter: max(16px, 5vw);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  text-wrap: balance;
  margin: 0;
}
h2 em,
h1 em {
  font-style: italic;
  color: var(--accent);
}
.eyebrow {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 1rem;
}
.lede {
  color: var(--ink-dim);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 38ch;
  margin: 1.25rem 0 0;
}
.fine {
  color: var(--ink-dim);
  font-size: 0.85rem;
  max-width: 60ch;
}

/* Highlighter marks on headlines: swept in when the section arrives. */
mark {
  color: inherit;
  background: linear-gradient(
      transparent 58%,
      var(--hl-soft) 58%,
      var(--hl-soft) 92%,
      transparent 92%
    )
    no-repeat;
  background-size: 100% 100%;
  transition: background-size 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s;
  padding: 0 0.05em;
}
.js [data-reveal]:not(.in) mark {
  background-size: 0% 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font: 600 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.3s ease,
    border-color 0.3s ease;
}
.button:hover {
  transform: translateY(-2px);
}
.button--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* ── Loader ───────────────────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 24px;
  background: var(--night);
  transition: opacity 0.7s ease;
}
#loader img {
  border-radius: 16px;
}
#loader.done {
  opacity: 0;
  pointer-events: none;
}
.loader-bar {
  width: 160px;
  height: 2px;
  background: var(--line);
  overflow: hidden;
}
.loader-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--tape);
  transition: width 0.2s ease;
}

/* ── Nav: appears once the film has played ────────────── */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 10px;
  background: rgba(11, 18, 32, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-110%);
  transition: transform 0.45s ease;
}
#nav.show {
  transform: none;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 1.15rem/1 var(--display);
  text-decoration: none;
  min-height: 44px;
}
.nav-brand img {
  border-radius: 7px;
}
.nav-links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}
.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 2px;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  transition: background 0.3s ease;
}
@media (max-width: 720px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    margin-left: auto;
  }
}

/* ── The film ─────────────────────────────────────────── */
#track {
  height: 900vh;
  position: relative;
}
#stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#captions {
  position: absolute;
  z-index: 5;
  /* Placed over the frame's free area by site.js (left on wide screens, top on phones). */
  left: var(--cap-x, 5vw);
  top: var(--cap-y, 0);
  width: var(--cap-w, 38vw);
  height: var(--cap-h, 100%);
}
.cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.cap h1 {
  font-size: clamp(3rem, 2rem + 4vw, 5.6rem);
}
.cap h2 {
  font-size: clamp(1.7rem, 1rem + 2.6vw, 3.6rem);
}
.cap p {
  color: var(--ink-dim);
  font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.25rem);
  max-width: 30ch;
  margin: 0.9rem 0 0;
}
.cap .eyebrow {
  margin: 0 0 0.8rem;
}
.cap .button {
  margin-top: 1.4rem;
  align-self: flex-start;
  pointer-events: auto;
}
.portrait-film .cap {
  justify-content: flex-end;
  text-align: center;
  align-items: center;
}
.portrait-film .cap p {
  margin-inline: auto;
  margin-top: 0.5rem;
}
.portrait-film .cap .button {
  align-self: center;
  margin-top: 0.8rem;
}
.portrait-film .cap h1 {
  font-size: clamp(2.6rem, 11vw, 4.4rem);
}
.portrait-film .cap h2 {
  font-size: clamp(1.45rem, 6.6vw, 2.4rem);
}
.portrait-film .cap p {
  font-size: 0.95rem;
}
#scroll-cue {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 3vh);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: opacity 0.4s ease;
}
#scroll-cue::after {
  content: '';
  width: 1.5px;
  height: 30px;
  background: linear-gradient(var(--tape), transparent);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue {
  50% {
    transform: translateY(8px);
    opacity: 0.4;
  }
}

/* ── Below the film ───────────────────────────────────── */
.page {
  padding-inline: var(--gutter);
  display: grid;
  gap: clamp(5rem, 12vw, 10rem);
  padding-block: clamp(3rem, 8vw, 6rem) clamp(4rem, 10vw, 8rem);
  max-width: 1280px;
  margin: 0 auto;
}
.page > * {
  min-width: 0;
}
.page section,
#launch {
  scroll-margin-top: 84px;
}
.js [data-reveal] {
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js [data-reveal]:not(.in) {
  opacity: 0.35;
  transform: translateY(22px);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not(.in) {
    opacity: 1;
    transform: none;
  }
}

/* Red tape: the ribbon that ties a court file. */
.tape {
  position: relative;
  height: 14px;
  margin-inline: calc(var(--gutter) * -1);
  background: linear-gradient(var(--tape), var(--tape-dark));
  opacity: 0.9;
  box-shadow: 0 6px 18px var(--shadow);
}
.tape::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 8px 2px;
  background: var(--tape);
  box-shadow:
    -22px 14px 0 -8px var(--tape-dark),
    22px -14px 0 -8px var(--tape-dark);
}

.manifesto .huge {
  font-size: var(--step-4);
  max-width: 16ch;
}

/* Weigh the brief */
.weight {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.weight h2,
.try h2,
.colour h2,
.privacy h2,
.devices h2,
.faq h2,
.launch h2 {
  font-size: var(--step-3);
}
.weight-label {
  display: block;
  margin-top: 2rem;
  color: var(--ink-dim);
  font-size: 0.95rem;
}
.weight-control {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.weight-control input {
  flex: 1;
  min-width: 0;
  height: 44px;
  accent-color: var(--tape);
}
.weight-control output {
  font: 600 var(--step-2) / 1 var(--display);
  font-variant-numeric: tabular-nums;
  min-width: 4ch;
  text-align: right;
}
.weight-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}
.weight-stats div {
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
.weight-stats dt {
  color: var(--ink-dim);
  font-size: 0.85rem;
}
.weight-stats dd {
  margin: 0.25rem 0 0;
  font: 500 var(--step-2) / 1.1 var(--display);
  font-variant-numeric: tabular-nums;
}
.weight-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(2rem, 6vw, 4rem);
  height: 420px;
  max-height: 60vh;
}
.pile-wrap,
.slab-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  justify-content: flex-end;
}
.pile {
  width: min(180px, 36vw);
  height: 60px;
  transition: height 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  background: repeating-linear-gradient(to top, var(--paper) 0 3px, #d9d4c8 3px 4px);
  border-radius: 3px;
  box-shadow: 0 18px 40px var(--shadow);
  position: relative;
}
.pile::before,
.pile::after {
  content: '';
  position: absolute;
  right: -10px;
  width: 16px;
  height: 10px;
  border-radius: 2px;
  background: var(--hl);
}
.pile::before {
  top: 20%;
}
.pile::after {
  top: 55%;
  background: var(--accent);
}
.slab {
  width: min(150px, 30vw);
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(#2a3040, #111621);
  box-shadow:
    0 12px 30px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  position: relative;
  display: grid;
  place-items: center;
}
.slab img {
  position: absolute;
  bottom: 24px;
  border-radius: 10px;
}
.pile-label {
  color: var(--ink-dim);
  font-size: 0.85rem;
}

/* Try it */
.try-head {
  max-width: 60ch;
}
.try-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.tool {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--night-2);
  color: var(--ink);
  font: 500 0.95rem/1 var(--body);
  cursor: pointer;
}
.tool[aria-pressed='true'] {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.tool--quiet {
  background: transparent;
  color: var(--ink-dim);
}
.tool-swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.tool-swatch--hl {
  background: var(--hl);
}
.tool-swatch--tag {
  background: var(--star);
  clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%);
}
.tool-swatch--redact {
  background: var(--black);
  outline: 1px solid var(--ink-dim);
}
.try-hint {
  color: var(--ink-dim);
  font-size: 0.9rem;
  margin: 0.75rem 0 1rem;
  min-height: 1.5em;
}
.try-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
}
.try-doc {
  background: var(--paper);
  color: var(--ink-paper);
  border-radius: 6px;
  padding: clamp(1.25rem, 4vw, 2.75rem) clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem)
    clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 30px 70px var(--shadow);
  font-family: var(--display);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  line-height: 1.7;
  position: relative;
}
.doc-kicker {
  font: 600 0.72rem/1 var(--body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-paper-dim);
  margin: 0 0 1rem;
}
.try-doc h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin: 1.2rem 0 0.4rem;
}
.try-doc ol {
  padding-left: 1.4em;
  margin: 0;
}
.try-doc li {
  position: relative;
  margin-bottom: 0.6rem;
}
.s {
  cursor: pointer;
  border-radius: 3px;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.s:hover {
  background: rgba(244, 211, 94, 0.18);
}
.s.hl {
  background: var(--hl-soft);
  box-shadow: 0 0 0 2px var(--hl-soft);
  touch-action: none;
  cursor: grab;
}
.s.flash {
  animation: flash 1.2s ease;
}
@keyframes flash {
  0%,
  100% {
    box-shadow: 0 0 0 2px var(--hl-soft);
  }
  30% {
    box-shadow: 0 0 0 6px var(--star);
  }
}
.star {
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.15em;
  vertical-align: -0.12em;
  background: var(--star);
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  animation: twinkle 2.4s ease-in-out infinite;
}
@keyframes twinkle {
  50% {
    filter: brightness(1.35);
    transform: scale(1.12) rotate(8deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .star {
    animation: none;
  }
}
.nm {
  border-radius: 2px;
  transition: background 0.2s ease;
}
.mode-redact .nm {
  outline: 1.5px dashed var(--ink-paper-dim);
  outline-offset: 2px;
  cursor: pointer;
}
.nm.redacted {
  background: var(--black);
  color: transparent;
  outline: none;
}
.mode-tag li {
  cursor: pointer;
}
.tag {
  position: absolute;
  right: -0.6rem;
  top: -0.95rem;
  font: 700 0.62rem/1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-paper);
  background: var(--star);
  padding: 0.35rem 0.8rem 0.35rem 0.45rem;
  clip-path: polygon(0 0, 82% 0, 100% 50%, 82% 100%, 0 100%);
  transform: rotate(-6deg);
  animation: pop 0.3s ease;
  pointer-events: none;
}
@keyframes pop {
  from {
    transform: rotate(-6deg) scale(0.4);
  }
}
.try-notes {
  background-color: var(--night-2);
  background-image: radial-gradient(var(--line) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1rem;
  min-height: 320px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.try-notes.drop {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent) inset;
}
.notes-title {
  font: 600 0.72rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin: 0 0 1rem;
}
.notes-empty {
  color: var(--ink-dim);
  font-size: 0.9rem;
}
.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.note {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--paper);
  color: var(--ink-paper);
  border: 0;
  border-left: 4px solid var(--hl);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  font: 400 0.95rem/1.45 var(--display);
  box-shadow: 0 10px 24px var(--shadow);
  cursor: pointer;
  animation: land 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.note cite {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  font: 600 0.8rem/1 var(--body);
  font-style: normal;
  color: var(--ink-paper-dim);
}
@keyframes land {
  from {
    transform: translateY(-12px) scale(0.96);
    opacity: 0;
  }
}
.try-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 4;
}
.try-line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.line-glow {
  stroke: var(--accent);
  stroke-width: 12;
  opacity: 0.25;
}
.line-body {
  stroke: var(--accent);
  stroke-width: 3.5;
  opacity: 0.9;
}
.try-menu[hidden] {
  display: none;
}
.try-menu {
  position: absolute;
  z-index: 6;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--night-2);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px var(--shadow);
}
.try-menu button {
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 0.9rem/1 var(--body);
  cursor: pointer;
}
.try-menu button:first-child {
  background: var(--accent);
  color: var(--accent-ink);
}
@media (max-width: 760px) {
  .try-stage {
    grid-template-columns: minmax(0, 1fr);
  }
  .try-notes {
    min-height: 200px;
  }
}

/* Feature chapters */
.chapters {
  display: grid;
  gap: clamp(4rem, 10vw, 8rem);
}
.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.chapter--flip .chapter-img {
  order: 2;
}
.chapter-img {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 70px var(--shadow);
  outline: 1px solid var(--line);
}
.chapter-img img {
  display: block;
  width: 100%;
}
.chapter--flip .chapter-img {
  max-height: 560px;
}
.chapter--flip .chapter-img img {
  object-fit: cover;
  object-position: top;
  max-height: 560px;
}
.chapter h3 {
  font-size: var(--step-2);
}
.chapter ul,
.checks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.chapter li,
.checks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-dim);
}
.chapter li::before,
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--star);
  clip-path: polygon(
    50% 0,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
}
@media (max-width: 820px) {
  .chapter,
  .weight {
    grid-template-columns: minmax(0, 1fr);
  }
  .chapter--flip .chapter-img {
    order: 0;
  }
  .weight-visual {
    height: 300px;
  }
}

/* Colour */
.colour {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}
.swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  background: var(--sw);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.2s ease;
}
.swatch:hover {
  transform: scale(1.08);
}
.swatch[aria-checked='true'] {
  border-color: var(--ink);
}
.swatch-name {
  color: var(--ink-dim);
  margin: 0.75rem 0 0;
}
.mock {
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px var(--shadow);
  border: 10px solid #1a1f29;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  background: var(--mock-bg, #f4ecdc);
  color: var(--ink-paper);
  font: 600 0.85rem/1.2 var(--display);
  transition: background 0.4s ease;
}
.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mock-primary, #8e1b1f);
  transition: background 0.4s ease;
}
.mock-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  background: var(--mock-bg, #f4ecdc);
  transition: background 0.4s ease;
}
.mock-page {
  background: var(--paper);
  margin: 0.9rem;
  padding: 1rem;
  display: grid;
  gap: 8px;
  border-radius: 3px;
}
.mock-page i {
  height: 7px;
  border-radius: 4px;
  background: #d9dce2;
}
.mock-page i.short {
  width: 60%;
}
.mock-page i.mock-hl {
  background: var(--hl);
}
.mock-notes {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  padding: 0.9rem 0.9rem 0.9rem 0;
}
.mock-note {
  background: #fff6c9;
  color: var(--ink-paper);
  font: 0.8rem/1.3 var(--display);
  padding: 0.6rem;
  border-radius: 4px;
  border: 2px solid var(--mock-primary, #8e1b1f);
  transition: border-color 0.4s ease;
}
.mock-btn {
  justify-self: start;
  background: var(--mock-primary, #8e1b1f);
  color: #ffffff;
  font: 600 0.8rem/1 var(--body);
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  transition: background 0.4s ease;
}
@media (max-width: 820px) {
  .colour {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Numbers */
.numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  border-block: 1px solid var(--line);
  padding-block: 2.5rem;
}
.numbers div {
  display: grid;
  gap: 0.35rem;
}
.numbers strong {
  font: 500 var(--step-3) / 1 var(--display);
  font-variant-numeric: tabular-nums;
}
.numbers span {
  color: var(--ink-dim);
  font-size: 0.95rem;
}
@media (max-width: 720px) {
  .numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Privacy */
.privacy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.lock svg {
  overflow: visible;
}
.lock-body {
  fill: var(--accent);
  transition: fill 0.4s ease;
}
.lock-shackle {
  stroke: var(--accent);
  transform: translateY(-12px);
  transition:
    transform 0.6s cubic-bezier(0.3, 1.6, 0.5, 1) 0.4s,
    stroke 0.4s ease;
}
.privacy.in .lock-shackle {
  transform: none;
}
.lock-hole {
  fill: var(--night);
}
@media (max-width: 720px) {
  .privacy {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Devices */
.device-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.device-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  padding: 1.75rem;
  border-radius: 10px;
  background: var(--night-2);
  border: 1px solid var(--line);
}
.device-card strong {
  font: 500 var(--step-2) / 1.1 var(--display);
}
.device-card span {
  color: var(--ink-dim);
}
.device-card em {
  font-style: normal;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--star);
}
@media (max-width: 640px) {
  .device-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* FAQ */
.faq-list {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  max-width: 820px;
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  min-height: 56px;
  padding-block: 0.9rem;
  font: 500 var(--step-1) / 1.3 var(--display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font: 400 1.6rem/1 var(--body);
  color: var(--accent);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--ink-dim);
  margin: 0 0 1.25rem;
  max-width: 60ch;
}

/* Launch */
.launch {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.5rem;
}
.launch img {
  border-radius: 16px;
  margin-bottom: 1rem;
}
.launch .lede {
  max-width: 44ch;
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 0.75rem;
}
.price-step {
  display: grid;
  gap: 0.2rem;
  min-width: 11rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.price-step strong {
  font: 600 var(--step-2) / 1.1 var(--display);
  color: var(--accent);
}
.price-step span {
  color: var(--ink-dim);
}
.price-then {
  color: var(--ink-dim);
  font-style: italic;
}
@media (max-width: 560px) {
  .price {
    flex-direction: column;
    gap: 0.5rem;
  }
  .price-step {
    width: min(100%, 18rem);
  }
}
.launch-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

/* Footer */
.footer {
  border-top: 4px solid var(--tape);
  padding: 3rem var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 3rem);
  display: grid;
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font: 600 1.2rem/1 var(--display);
}
.footer-brand img {
  border-radius: 8px;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}
.footer-cols div {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}
.footer-cols p {
  margin: 0 0 0.4rem;
  font-weight: 600;
}
.footer-cols a {
  color: var(--ink-dim);
  text-decoration: none;
  padding-block: 0.3rem;
}
.footer-cols a:hover {
  color: var(--ink);
}

/* The app colour, one tap from the first screen: a dot in the top corner that opens a row of
   colours (the same choice as the app's home screen). */
.site-colour {
  position: fixed;
  z-index: 60;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  right: max(12px, calc(var(--gutter) - 8px));
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-colour__dot {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.site-colour__dot::before {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 2px var(--night),
    0 0 0 3.5px var(--ink-dim);
  transition: background-color 0.3s ease;
}
.site-colour__row {
  order: -1;
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(18, 27, 45, 0.92);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px var(--shadow);
  animation: row-in 0.25s ease;
}
.site-colour__row[hidden] {
  display: none;
}
@keyframes row-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
}
.site-colour__row .swatch {
  width: 34px;
  height: 34px;
  border-width: 2px;
}
@media (max-width: 520px) {
  .site-colour__row {
    position: absolute;
    top: 50px;
    right: 0;
    flex-wrap: wrap;
    width: 168px;
    justify-content: center;
    border-radius: 18px;
  }
}
/* Room for the dot beside the menu once it shows. */
#nav {
  padding-right: calc(var(--gutter) + 48px);
}

/* Help and privacy pages: plain, readable documents in the same look. */
.doc-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) var(--gutter) 10px;
  border-bottom: 1px solid var(--line);
  max-width: 1280px;
  margin: 0 auto;
}
.doc-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 48px;
}
.doc-nav a {
  color: var(--ink-dim);
  text-decoration: none;
  padding: 10px 2px;
}
.doc-nav a[aria-current='page'],
.doc-nav a:hover {
  color: var(--ink);
}
.doc {
  max-width: 72ch;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) var(--gutter) clamp(3rem, 8vw, 6rem);
}
.doc h1 {
  font-size: var(--step-3);
}
.doc h2 {
  font-size: var(--step-1);
  margin: 2.5rem 0 0.75rem;
}
.doc p,
.doc li {
  color: var(--ink-dim);
}
.doc a {
  color: var(--accent);
}
.doc ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
}
.doc-date {
  font-size: 0.9rem;
  margin-top: 0.75rem;
}
.doc-summary {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  background: var(--night-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--tape);
}
.doc-summary p {
  margin: 0.25rem 0;
}
.doc-summary strong,
.doc strong {
  color: var(--ink);
}
.doc details {
  border-bottom: 1px solid var(--line);
}
.doc summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  padding-block: 0.6rem;
  font: 500 var(--step-0) / 1.35 var(--display);
  color: var(--ink);
}
.doc details p {
  margin: 0 0 1rem;
}
