/* IBM Plex Sans (OFL), self-hosted as one variable file per subset: Latin, and
   Latin Extended for Polish. Nothing is fetched from Google. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/plex-latin-ext.woff2') format('woff2');
  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-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/plex-latin.woff2') format('woff2');
  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;
}

/* Same palette as the apps (apps/mobile/src/ui.tsx). One ground, one ink, one accent:
   the accent sits on the actions, the table's "No" cells and the wordmark's prompt. */
:root {
  --bg: #0a0e14;
  --surface: #0f1620;
  --raised: #172130;
  --text: #d5deea;
  --ink: #eef3f9;
  --muted: #94a3b8;
  --accent: #39ff88;
  --on-accent: #04110a;
  --mono:
    ui-monospace, 'SF Mono', Menlo, Consolas, monospace; /* code and the wordmark: taste-skill-ignore */
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --measure: 36em;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  interpolate-size: allow-keywords;
}

p,
li,
figcaption,
summary {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

/* Browser surfaces carry the palette too. */
::selection {
  background: var(--accent);
  color: var(--on-accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--muted);
}

a:hover {
  text-decoration-color: var(--accent);
}

code,
pre {
  font-family: var(--mono);
  font-size: 14px;
}

h1,
h2,
h3 {
  color: var(--ink);
  margin: 0;
}

h1 {
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* The word that carries the promise, in the accent. */
h1 em {
  font-style: normal;
  color: var(--accent);
}

h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}

/* Nav: a plain bar. Wordmark, four links, one action, the other language. */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px max(16px, calc((100% - 1120px) / 2));
  background: var(--bg);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

/* Language and Get it, kept together at the end of the bar. */
.nav-end {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav nav a,
.footer nav a,
.nav .lang-opt,
.nav .nav-get {
  text-decoration: none;
  font-size: 14px;
}

.nav nav a:hover,
.footer nav a:hover {
  text-decoration: underline;
}

.nav .nav-get {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.nav .nav-get:hover {
  text-decoration: none;
}

/* The wordmark is the one place the terminal voice stays (brand). */
.logo {
  font-family: var(--mono); /* taste-skill-ignore */
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
  text-decoration: none;
}

.prompt {
  color: var(--accent);
}

/* Language: two flags in one pill, the current one lit; always the last thing
   in the bar, top right. */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--raised);
}

.lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    transform 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.lang-opt[aria-current] {
  background: var(--bg);
  color: var(--ink);
}

.lang-opt .flag {
  width: 20px;
  height: 14px;
  border-radius: 3px;
  flex: none;
}

a.lang-opt:hover {
  color: var(--ink);
}

.button:active,
.lang-opt:active,
.nav-get:active {
  transform: scale(0.97);
}

/* Icons from src/icons.svg */
.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.brand {
  width: 22px;
  height: 22px;
}

/* Keyboard users skip the navigation */
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

main {
  overflow-x: clip;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px 120px;
}

/* Hero: the title across the width, then the words in the left third and the
   product in the right two-thirds. */
.hero {
  padding: 64px 0 0;
}

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 48px;
  align-items: start;
  margin-top: 36px;
}

.lead {
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  margin: 0 0 18px;
  color: var(--ink);
}

/* The promises: one line each, a green tick in front, quieter than the lead. */
.promises {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
  font-size: 17px;
  line-height: 1.45;
  color: var(--text);
}

.promises li {
  display: flex;
  gap: 12px;
  align-items: start;
}

.promises .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  padding: 3px;
  border-radius: 50%;
  background: rgb(57 255 136 / 0.14);
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}

.button.primary {
  background: var(--accent);
  color: var(--on-accent);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    transform: translateY(-1px);
  }
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.platforms li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 44px;
}

.hero-shot {
  position: relative;
  min-width: 0;
  padding: 0 0 40px 40px;
}

.hero-shot img,
.hero-shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* The phone settles onto the desktop shot: the same board, in your pocket. */
.hero-shot .phone {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30%;
  animation: phone-in 700ms var(--ease-out) 200ms both;
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* Sections: 120px apart, each composed differently from its neighbours. */
.section {
  padding-top: 120px;
}

/* The heading in the left column, its intro in the right: the row is full. */
.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 24px 48px;
  align-items: start;
  margin-bottom: 40px;
}

.head p {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
}

.head p.small {
  font-size: 16px;
}

/* Points: a list set large, no icons, no boxes. */
.points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
}

.points li {
  min-width: 0;
}

.points h3 {
  margin-bottom: 6px;
}

.points p {
  margin: 0;
  max-width: 32em;
}

.points.one {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 24px;
}

/* Who can see what: a real table, which keeps its lines. */
.who {
  margin: 0 0 56px;
  overflow-x: auto;
  padding: 8px 12px 12px;
  border-radius: 16px;
  background: var(--surface);
}

.who table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.who caption {
  text-align: left;
  padding: 10px 8px 6px;
  font-weight: 600;
  color: var(--ink);
}

.who th,
.who td {
  text-align: left;
  padding: 12px 8px;
  border-top: 1px solid var(--raised);
}

.who thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.who tbody th {
  color: var(--ink);
  font-weight: 600;
}

.who .no {
  color: var(--accent);
  font-weight: 600;
}

/* Galleries (use cases, agents): one slide at a time, named tabs above it.
   The track is a scroll-snap row, so it swipes on its own; the script plays it. */
.gallery {
  border-radius: 24px;
  background: var(--surface);
  padding: 20px;
}

.gallery-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.js .gallery-bar {
  display: flex;
}

.gallery-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-tab,
.gallery-arrows button {
  font: inherit;
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
}

.gallery-tab {
  position: relative;
  overflow: hidden;
  flex: none;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition:
    color 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    transform 160ms var(--ease-out);
}

.gallery-tab:hover {
  color: var(--ink);
}

.gallery-tab[aria-current] {
  background: var(--raised);
  color: var(--ink);
}

/* The active tab's bar fills while its slide is up; when it is full the next
   slide comes. Held (hover, focus, off screen) the bar waits. */
.gallery-tab .bar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.gallery.auto .gallery-tab[aria-current] .bar {
  animation: fill 7s linear forwards;
}

.gallery.auto.held .gallery-tab[aria-current] .bar {
  animation-play-state: paused;
}

@keyframes fill {
  to {
    transform: scaleX(1);
  }
}

.gallery-arrows {
  display: flex;
  gap: 6px;
  flex: none;
}

.gallery-arrows button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--ink);
  transition: transform 160ms var(--ease-out);
}

.gallery-arrows .icon {
  width: 18px;
  height: 18px;
}

.gallery-tab:active,
.gallery-arrows button:active {
  transform: scale(0.96);
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: 16px;
}

.gallery-track::-webkit-scrollbar,
.gallery-tabs::-webkit-scrollbar {
  display: none;
}

.gallery-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: center;
  padding: 24px 24px 0 28px;
}

.slide-copy h3 {
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 14px;
}

.slide-lead {
  margin: 0;
  max-width: 28em;
  font-size: 19px;
  line-height: 1.5;
}

.slide-points {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 14px;
  max-width: 30em;
  color: var(--muted);
}

.slide-points strong {
  color: var(--ink);
  font-weight: 600;
}

/* The phone stands on the bottom edge, cropped, as if held up to the frame. */
.slide .shot {
  align-self: end;
  max-height: 520px;
  border-radius: 20px 20px 0 0;
}

.shot {
  margin: 0;
  min-width: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg);
}

.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
}

pre {
  margin: 0;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.55;
}

.note {
  max-width: var(--measure);
  margin: 40px 0 0;
}

.note strong {
  color: var(--ink);
}

.live {
  font-style: normal;
}

.live::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  vertical-align: -1px;
  border: 2px solid var(--raised);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* How it works: three columns, the order told by position and the words. */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 40px;
}

.steps li {
  min-width: 0;
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  margin: 0;
}

/* Privacy: six cards, each led by its icon in a lit tile. */
.guard {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.guard-item {
  min-width: 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--raised);
}

.guard-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: rgb(57 255 136 / 0.1);
  color: var(--accent);
}

.guard-icon .icon {
  width: 24px;
  height: 24px;
}

.guard-item h3 {
  margin-bottom: 8px;
}

.guard-item p {
  margin: 0;
}

/* How it works: three numbered cards, each with a small picture on top, and
   the trade-off in a wide card below. */
.how {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.how-step {
  min-width: 0;
  padding: 20px 20px 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--raised);
}

.how-step h3 {
  margin-bottom: 8px;
}

.how-step p {
  margin: 0;
}

.how-num {
  display: block;
  margin: 24px 8px 10px;
  font-family: var(--mono); /* taste-skill-ignore */
  font-size: 13px;
  color: var(--accent);
}

.how-step h3,
.how-step p {
  margin-inline: 8px;
}

.how-visual {
  display: grid;
  place-items: center;
  height: 168px;
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
}

/* 01: the recovery words, hidden, numbered. */
.words {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 8px;
}

.words span {
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--raised);
  font-family: var(--mono); /* taste-skill-ignore */
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

.words b {
  margin-right: 6px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0;
}

.words .more {
  color: var(--ink);
  text-align: center;
}

/* 02: the invite, as a code and a link. */
.invite {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--bg);
}

.qr .icon {
  width: 48px;
  height: 48px;
}

.invite-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 180px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--raised);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.invite-pill .icon {
  color: var(--accent);
}

/* 03: devices joined straight to each other; a pulse runs along each wire. */
.sync {
  display: flex;
  align-items: center;
  width: min(100%, 300px);
  padding: 0 16px;
}

.node {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--raised);
  color: var(--ink);
}

.node .icon {
  width: 22px;
  height: 22px;
}

.wire {
  position: relative;
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--raised) 0 6px, transparent 6px 10px);
}

.wire::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse-run 2.8s var(--ease-out) infinite;
}

.wire.back::after {
  animation-direction: reverse;
  animation-delay: -1.4s;
}

@keyframes pulse-run {
  from {
    left: 0;
  }
  to {
    left: calc(100% - 8px);
  }
}

.how-note {
  display: flex;
  gap: 14px;
  align-items: start;
  margin: 16px 0 0;
  padding: 20px 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--raised);
}

.how-note .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--accent);
}

.how-note strong {
  color: var(--ink);
}

/* Get it: the page changes ground, and each platform is a row. */
.field {
  position: relative;
  isolation: isolate;
  margin-top: 120px;
  padding: 96px 0;
}

/* The ground is a rounded panel. Narrower screens inset the content inside it;
   wide ones (below) push the panel out instead, so the content keeps the
   page's frame. */
.field::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 32px;
  background: var(--surface);
}

/* Wide screens have room beside the page, so the panel reaches 40px out; the
   sideways clip moves from main to the body so its corners show. */
@media (max-width: 1199px) {
  .field {
    padding-inline: 24px;
  }
}

@media (max-width: 640px) {
  .field {
    padding-inline: 14px;
  }
  .field::before {
    border-radius: 24px;
  }
}

@media (min-width: 1200px) {
  body {
    overflow-x: clip;
  }
  main {
    overflow-x: visible;
  }
  .field::before {
    inset: 0 -40px;
  }
}

.field .head {
  margin-bottom: 8px;
}

/* Get it: three cards, one per way in. Each has one action; the card for the
   visitor's own device is lit. */
.ways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

/* Each card spans six rows of the grid (icons, title, text, action, link,
   foot), so the same row lines up across all three. */
.way {
  position: relative;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  justify-items: start;
  align-items: start;
  min-width: 0;
  padding: 28px;
  border-radius: 24px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--raised);
  transition:
    transform 200ms var(--ease-out),
    box-shadow 200ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .way:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 1px #2a3a52;
  }
}

.way.yours {
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 0 4px rgb(57 255 136 / 0.08);
}

.way-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  justify-self: stretch;
  margin-bottom: 28px;
}

.way-icons {
  display: flex;
  gap: 10px;
  color: var(--ink);
}

.way-icons .brand {
  width: 26px;
  height: 26px;
}

.way-yours {
  display: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(57 255 136 / 0.12);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.way.yours .way-yours {
  display: inline-block;
}

.way h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.way > p {
  margin: 0 0 24px;
  color: var(--text);
}

.way > .button {
  justify-self: stretch;
  text-align: center;
}

/* A command you copy: the line in mono, cut with an ellipsis, Copy beside it. */
.cmd {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-self: stretch;
  min-width: 0;
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--raised);
}

.cmd code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono); /* taste-skill-ignore */
  font-size: 13px;
  color: var(--ink);
}

.cmd code::before {
  content: '$ ';
  color: var(--accent);
}

.cmd-copy {
  flex: none;
  min-width: 84px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--raised);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 160ms var(--ease-out),
    background-color 160ms var(--ease-out),
    color 160ms var(--ease-out);
}

.cmd-copy:active {
  transform: scale(0.96);
}

.cmd-copy.done {
  background: var(--accent);
  color: var(--on-accent);
}

.way-link {
  margin-top: 16px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.way-link:hover {
  text-decoration: underline;
}

.way > .way-foot {
  margin: 16px 0 0;
  padding-top: 16px;
  justify-self: stretch;
  border-top: 1px solid var(--raised);
  font-size: 14px;
  color: var(--muted);
}

.field .note {
  background: var(--raised);
  margin-top: 16px;
}

/* FAQ: filled rows that open in place. */
.faq {
  display: grid;
  gap: 8px;
}

.faq details {
  background: var(--surface);
  border-radius: 14px;
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--muted);
  transition: transform 200ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

/* Answers slide open where ::details-content is supported; elsewhere they snap. */
.faq details::details-content {
  block-size: 0;
  opacity: 0;
  overflow: clip;
  transition:
    block-size 250ms var(--ease-out),
    opacity 200ms ease-out,
    content-visibility 250ms allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

.faq details p {
  margin: 0 0 20px;
  max-width: 68ch;
}

/* Docs: one column of prose, a contents list up top, sections 72px apart. */
.doc-intro {
  padding-top: 72px;
  max-width: 46em;
}

.doc-intro .lead {
  margin-top: 16px;
}

.toc ul {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
}

.toc a:hover {
  color: var(--ink);
  background: var(--raised);
}

.section.doc {
  padding-top: 72px;
  scroll-margin-top: 16px;
}

.doc h2 {
  margin-bottom: 20px;
}

.doc-body {
  max-width: 46em;
}

.doc-body p,
.doc-body ul {
  margin: 0 0 16px;
}

.doc-body p code {
  white-space: nowrap;
}

.doc-body pre {
  margin: 0 0 20px;
  background: var(--surface);
}

.doc-body .who {
  margin: 24px 0 0;
}

.docs .footer {
  margin-top: 96px;
}

/* Beta: four numbered steps, two by two, each with its button. */
.beta .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 880px;
}

.beta .steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 24px;
  border-radius: 20px;
  background: var(--surface);
}

.beta .steps h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 700;
}

.beta .steps .button {
  margin-top: auto;
}

/* The close: the name returns, large. */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  width: min(1088px, 100% - 32px);
  margin: 0 auto;
  padding: 24px 0 48px;
}

.footer .logo {
  font-size: clamp(32px, 3.6vw, 48px);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

/* Phone-only furniture, hidden elsewhere. */
.platforms-line,
.sticky-get {
  display: none;
}

/* Entrances: each section's parts rise in turn as it comes into view. Without
   script nothing is hidden; with reduced motion nothing moves. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.js .reveal.from-right {
  transform: translateX(28px);
}

.js .reveal.scale {
  transform: translateY(16px) scale(0.98);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.js .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.js .reveal:nth-child(4) {
  transition-delay: 240ms;
}

.js .reveal:nth-child(5) {
  transition-delay: 320ms;
}

.js .reveal:nth-child(6) {
  transition-delay: 400ms;
}

.js .hero h1,
.js .hero-copy {
  animation: rise 700ms var(--ease-out) both;
}

.js .hero-copy {
  animation-delay: 120ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

/* Narrow screens */
@media (max-width: 900px) {
  .hero-row,
  .head {
    grid-template-columns: minmax(0, 1fr);
  }
  .head {
    align-items: start;
    gap: 16px;
  }
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .how {
    grid-template-columns: minmax(0, 1fr);
  }
  .guard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .slide {
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 32px;
  }
  .ways {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-shot {
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .nav nav {
    display: none;
  }
  .beta .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The sticky Get button takes over on the landing page. */
  body:not(.docs) .nav .nav-get {
    display: none;
  }
  h2 {
    font-size: 34px;
  }
  /* The hero shows the top of the board, not the whole phone. */
  .hero-shot picture {
    display: block;
    max-height: 400px;
    overflow: hidden;
    border-radius: 20px;
  }
  /* The first screen: one line of platforms, not seven targets. */
  .platforms {
    display: none;
  }
  .platforms-line {
    display: block;
    text-wrap: balance;
    margin: 24px 0 0;
    font-size: 14px;
    color: var(--muted);
  }
  /* Fewer points: the ones that carry the claim. */
  .points li.more,
  .guard-item.more {
    display: none;
  }
  .guard {
    grid-template-columns: minmax(0, 1fr);
  }
  .guard-item {
    padding: 22px;
  }
  .footer .desk {
    display: none;
  }
  .footer nav {
    justify-content: flex-start;
  }
  /* One Get button within reach of the thumb. */
  .js .sticky-get {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 9;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transform: translateY(140%);
    transition: transform 300ms var(--ease-out);
  }
  .js .sticky-get.show {
    transform: none;
  }
  /* Galleries: the words above, the phone below, cropped to its top. */
  .gallery {
    padding: 12px;
  }
  .gallery-arrows {
    display: none;
  }
  .gallery-tab {
    padding: 8px 12px;
    font-size: 14px;
  }
  .gallery-tab .bar {
    left: 12px;
    right: 12px;
  }
  .slide {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 12px 8px 0;
    align-items: start;
  }
  .slide-copy h3 {
    font-size: 24px;
  }
  .slide-lead {
    font-size: 17px;
  }
  .slide-points {
    margin-top: 16px;
    font-size: 15px;
  }
  .slide .shot {
    justify-self: center;
    width: min(260px, 80%);
    max-height: 360px;
  }
  /* One column: no rows to line up, so each card simply stacks. */
  .way {
    display: flex;
    grid-row: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
  }
  .way-top,
  .way > .button,
  .cmd,
  .way-foot {
    align-self: stretch;
  }
  .ways {
    margin-top: 28px;
  }
  .lang-opt {
    padding: 4px 8px 4px 5px;
  }
  main {
    padding-bottom: 72px;
  }
  .section {
    padding-top: 72px;
  }
  .field {
    margin-top: 72px;
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero-row {
    gap: 36px;
  }
  .hero-shot {
    padding-bottom: 0;
  }
  .hero-shot .phone {
    display: none;
  }
  .lead {
    font-size: 19px;
  }
  .promises {
    font-size: 16px;
    margin-bottom: 28px;
  }
  /* Both actions on one row, equal width. */
  .hero .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero .actions .button {
    display: grid;
    place-items: center;
    min-height: 52px;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
  }
  .points,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .points {
    gap: 22px;
  }
  .platforms {
    justify-content: space-between;
    gap: 8px 4px;
  }
  /* The table becomes a list of small cards, two labelled lines each. */
  .who table {
    min-width: 0;
  }
  .who thead {
    display: none;
  }
  .who caption {
    padding: 8px 6px 4px;
  }
  .who tr {
    display: block;
    padding: 12px 6px;
    border-top: 1px solid var(--raised);
  }
  .who th,
  .who td {
    display: block;
    padding: 0;
    border: 0;
  }
  .who tbody th {
    margin-bottom: 6px;
  }
  .who td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-align: right;
  }
  .who td::before {
    content: attr(data-label);
    flex: none;
    text-align: left;
    color: var(--muted);
    font-weight: 400;
  }
  .footer {
    flex-direction: column;
    align-items: start;
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-shot .phone {
    animation-name: fade-in;
  }
  .js .hero h1,
  .js .hero-copy {
    animation: none;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .js .sticky-get {
    transition: none;
  }
  .wire::after {
    animation: none;
    left: calc(50% - 4px);
  }
  .live::before {
    animation: none;
    border-color: var(--accent);
  }
  .faq details::details-content,
  .button,
  .lang-opt,
  .way,
  .cmd-copy,
  .gallery-tab,
  .gallery-arrows button {
    transition-duration: 0ms;
  }
}
