/*
 * webssh: the website. It wears the app's own clothes: the "night console" palette (warm black,
 * bone text, one chartreuse signal colour), Bricolage Grotesque set narrow for headlines, and
 * Departure Mono for the small labels. Day colours follow the device, as in the app.
 */

@font-face {
  font-family: 'Bricolage';
  src: url('/fonts/bricolage-grotesque-wdth.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Departure Mono';
  src: url('/fonts/DepartureMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink-950: #0a0908;
  --ink-900: #0f0e0c;
  --ink-850: #151412;
  --ink-800: #1b1917;
  --ink-700: #26231f;
  --ink-600: #36322c;
  --line: #2a2723;
  --bone: #ece6da;
  --bone-dim: #a59e90;
  --bone-faint: #6f695e;
  --signal: #d3ff3d;
  --signal-ink: #141a02;
  --claude: #ff8d63;
  --codex: #66d2ff;
  --danger: #ff5e57;
  --glow: rgb(211 255 61 / 0.13);
  --shadow: rgb(0 0 0 / 0.55);
  --sans: 'Bricolage', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', system-ui, sans-serif;
  --pixel: 'Departure Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page: min(1180px, 100% - 44px);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --ink-950: #ebe5d9;
    --ink-900: #f5f1e8;
    --ink-850: #faf7f0;
    --ink-800: #fffdf8;
    --ink-700: #e8e1d2;
    --ink-600: #d6cebd;
    --line: #dcd4c3;
    --bone: #1c1a16;
    --bone-dim: #575145;
    --bone-faint: #8a8374;
    --signal: #47680a;
    --signal-ink: #fbfff0;
    --claude: #c2511f;
    --codex: #0c72a3;
    --danger: #c22f29;
    --glow: rgb(71 104 10 / 0.12);
    --shadow: rgb(60 48 20 / 0.22);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Atmosphere: two soft lights and the faint scan lines of a console. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  z-index: -2;
  background:
    radial-gradient(900px 620px at 82% -10%, var(--glow), transparent 62%),
    radial-gradient(760px 560px at -12% 34%, color-mix(in oklab, var(--claude) 9%, transparent), transparent 62%), var(--ink-900);
}
body::after {
  z-index: -1;
  background: repeating-linear-gradient(0deg, color-mix(in oklab, var(--bone) 2.2%, transparent) 0 1px, transparent 1px 3px);
}

/* One language at a time. */
html[data-lang='zh'] .en,
html:not([data-lang='zh']) .zh {
  display: none !important;
}

a {
  color: inherit;
}

img {
  display: block;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--signal);
  color: var(--signal-ink);
  z-index: 50;
}
.skip:focus {
  left: 12px;
}

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

/* --- small type ------------------------------------------------------------------------------ */

.eyebrow,
.pixel,
.card-tag,
.node-tag,
.pane-label,
figcaption,
.nav,
.lang button,
.needs-title {
  font-family: var(--pixel);
  font-size: 11.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.5;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--signal);
}

/* --- top bar --------------------------------------------------------------------------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 22px;
  /* As wide as the window, its content lined up with the page below. */
  padding: 16px max(22px, calc((100% - 1180px) / 2));
  background: color-mix(in oklab, var(--ink-900) 82%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img {
  border-radius: 8px;
}
.brand-name {
  font-family: var(--pixel);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav a {
  color: var(--bone-dim);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover {
  color: var(--bone);
}

.lang {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-850);
}
.lang button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 5px 11px;
  background: transparent;
  color: var(--bone-dim);
  cursor: pointer;
  letter-spacing: 0.06em;
}
.lang button[aria-pressed='true'] {
  background: var(--bone);
  color: var(--ink-900);
}

/* --- hero ------------------------------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: var(--page);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 6vw, 76px);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 760;
  font-stretch: 78%;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px, 6.5vw, 94px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: wrap;
}
h1 .line {
  display: block;
}
h1 em {
  font-style: normal;
  color: var(--signal);
}

h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1;
  max-width: 17em;
}

h3 {
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Chinese sets wider and needs more air between lines. */
html[data-lang='zh'] h1 {
  font-size: clamp(38px, 5.4vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 700;
}
html[data-lang='zh'] h2 {
  line-height: 1.18;
  letter-spacing: 0;
  font-weight: 700;
}
html[data-lang='zh'] h3 {
  letter-spacing: 0;
  font-weight: 700;
}
html[data-lang='zh'] body {
  line-height: 1.75;
}

.lede {
  max-width: 33em;
  margin: 28px 0 0;
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--bone-dim);
}

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

.button {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ink-600);
  border-radius: 16px;
  color: var(--bone);
  font-size: 16.5px;
  font-weight: 600;
  font-stretch: 88%;
  text-decoration: none;
  transition:
    transform 0.18s var(--ease),
    border-color 0.2s,
    box-shadow 0.25s;
}
.button:hover {
  transform: translateY(-2px);
  border-color: var(--bone-faint);
}
.button.primary {
  border-color: transparent;
  background: var(--signal);
  color: var(--signal-ink);
  box-shadow: 0 0 34px -10px var(--signal);
}
.button.primary:hover {
  box-shadow: 0 0 44px -6px var(--signal);
}

/* Things arrive one after the other when the page opens. */
.rise {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) forwards;
}
.d1 {
  animation-delay: 0.05s;
}
.d2 {
  animation-delay: 0.14s;
}
.d3 {
  animation-delay: 0.26s;
}
.d4 {
  animation-delay: 0.38s;
}
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- the phone ------------------------------------------------------------------------------- */

.device {
  margin: 0;
  justify-self: center;
}
.device figcaption {
  margin-top: 16px;
  text-align: center;
  color: var(--bone-faint);
  font-size: 10.5px;
}

.phone {
  position: relative;
  width: min(352px, 86vw);
  padding: 9px;
  border: 1px solid var(--ink-600);
  border-radius: 50px;
  background: linear-gradient(160deg, var(--ink-700), var(--ink-850) 46%);
  box-shadow:
    0 50px 90px -34px var(--shadow),
    0 0 0 1px color-mix(in oklab, var(--bone) 5%, transparent) inset,
    0 0 120px -30px var(--glow);
  transform: rotate(1.6deg);
}
.phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 92px;
  height: 25px;
  margin-left: -46px;
  border-radius: 999px;
  background: #050505;
  z-index: 3;
}

.screen {
  display: flex;
  flex-direction: column;
  height: min(664px, 166vw);
  overflow: hidden;
  border-radius: 41px;
  background: var(--ink-900);
  font-size: 13px;
  line-height: 1.42;
  font-stretch: 100%;
}

.app-top {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 58px 14px 10px;
  border-bottom: 1px solid var(--line);
}
.back {
  width: 9px;
  height: 9px;
  margin: 0 2px 0 3px;
  border-left: 2px solid var(--bone-dim);
  border-bottom: 2px solid var(--bone-dim);
  transform: rotate(45deg);
}
.mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 17px;
  line-height: 1;
}
.mark.claude {
  color: var(--claude);
  background: color-mix(in oklab, var(--claude) 16%, var(--ink-850));
  border: 1px solid color-mix(in oklab, var(--claude) 38%, transparent);
}
.who {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-right: auto;
}
.who b {
  font-size: 15px;
  font-stretch: 84%;
  font-weight: 700;
  white-space: nowrap;
}
.who i,
.status-bar,
.switch,
.tools b,
.rec,
.ask-what {
  font-family: var(--pixel);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.who i {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--bone-dim);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  text-decoration: none;
}
.who .dot,
.dot.live {
  animation: pulse 1.5s ease-in-out infinite;
}
.dot.ok {
  background: var(--bone-faint);
}
.dot.live {
  background: var(--danger);
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-800);
}
.switch b,
.switch i {
  padding: 5px 8px;
  border-radius: 9px;
  font-weight: 400;
  font-style: normal;
  color: var(--bone-dim);
}
.switch b {
  background: var(--bone);
  color: var(--ink-900);
}

.status-bar {
  display: flex;
  gap: 6px;
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--bone-dim);
}
.status-bar span {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--ink-850);
}

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-height: 0;
  padding: 14px 14px 6px;
  overflow: hidden;
}
.chat p,
.talk p,
.composer p {
  margin: 0;
}
.me {
  align-self: flex-end;
  max-width: 82%;
  padding: 8px 12px;
  border: 1px solid var(--ink-600);
  border-radius: 16px 16px 5px 16px;
  background: var(--ink-700);
}
.agent,
.talk {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.thought {
  padding-left: 9px;
  border-left: 2px dotted var(--bone-faint);
  color: var(--bone-dim);
}
.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--ink-850);
  color: var(--bone-dim);
  font-size: 12px;
}
.tools span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tools b {
  font-weight: 400;
  color: var(--bone-faint);
}
.said {
  color: var(--bone);
}

.ask {
  padding: 11px 12px 12px;
  border: 1px solid color-mix(in oklab, var(--signal) 42%, var(--line));
  border-radius: 15px;
  background: color-mix(in oklab, var(--signal) 6%, var(--ink-850));
}
.ask-what {
  color: var(--signal);
}
.ask-code {
  margin: 5px 0 7px !important;
  padding: 6px 8px;
  border-radius: 8px;
  background: var(--ink-950);
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ask-buttons {
  display: flex;
  gap: 6px;
  margin-top: 9px !important;
}
.ask-buttons b {
  padding: 7px 10px;
  border: 1px solid var(--ink-600);
  border-radius: 10px;
  background: var(--ink-800);
  font-size: 12px;
  font-weight: 600;
  font-stretch: 88%;
  white-space: nowrap;
}
.ask-buttons .yes {
  border-color: transparent;
  background: var(--signal);
  color: var(--signal-ink);
  animation: nudge 2.6s var(--ease) infinite;
}
@keyframes nudge {
  0%,
  72%,
  100% {
    box-shadow: 0 0 0 0 transparent;
  }
  82% {
    box-shadow: 0 0 0 5px color-mix(in oklab, var(--signal) 26%, transparent);
  }
}

.composer {
  padding: 8px 12px 20px;
  border-top: 1px solid var(--line);
}
.heard {
  margin-bottom: 8px !important;
  padding: 7px 11px;
  border: 1px dashed color-mix(in oklab, var(--signal) 40%, var(--line));
  border-radius: 12px;
  background: color-mix(in oklab, var(--signal) 6%, var(--ink-800));
  color: var(--bone-dim);
  font-size: 12.5px;
}
.caret {
  display: inline-block;
  width: 6px;
  height: 13px;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--signal);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.voice {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 6px 0 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--ink-800);
}
.x {
  position: relative;
  width: 12px;
  height: 12px;
}
.x::before,
.x::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -1px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--bone-faint);
  transform: rotate(45deg);
}
.x::after {
  transform: rotate(-45deg);
}
.rec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
}
.wave {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  height: 24px;
  overflow: hidden;
}
.wave i {
  width: 3px;
  height: 46%;
  border-radius: 2px;
  background: var(--signal);
  animation: speak 1.1s ease-in-out infinite;
}
.wave i:nth-child(3n + 1) {
  height: 82%;
}
.wave i:nth-child(4n + 2) {
  height: 28%;
}
.wave i:nth-child(5n) {
  height: 64%;
}
.wave i:nth-child(2n) {
  animation-duration: 0.8s;
  animation-delay: -0.3s;
}
.wave i:nth-child(3n) {
  animation-duration: 1.4s;
  animation-delay: -0.7s;
}
.wave i:nth-child(5n) {
  animation-duration: 0.95s;
  animation-delay: -0.5s;
}
.wave i:nth-child(7n) {
  animation-delay: -0.9s;
}
@keyframes speak {
  0%,
  100% {
    transform: scaleY(0.35);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.1);
    opacity: 1;
  }
}
.done {
  position: relative;
  width: 40px;
  height: 34px;
  border-radius: 14px;
  background: var(--signal);
}
.done::after {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  width: 9px;
  height: 14px;
  border-right: 2.5px solid var(--signal-ink);
  border-bottom: 2.5px solid var(--signal-ink);
  transform: rotate(40deg);
}

/* --- three facts ----------------------------------------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: var(--page);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  padding: 30px 26px 30px 0;
}
.fact + .fact {
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.fact b {
  display: block;
  font-size: clamp(46px, 6.4vw, 84px);
  font-weight: 760;
  font-stretch: 76%;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.fact small {
  margin-left: 6px;
  font-size: 0.34em;
  font-stretch: 90%;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--signal);
}
.fact p {
  max-width: 17em;
  margin: 14px 0 0;
  color: var(--bone-dim);
  font-size: 15.5px;
  line-height: 1.45;
}
sup {
  line-height: 0;
}
sup a {
  margin-left: 2px;
  color: var(--signal);
  text-decoration: none;
  font-family: var(--pixel);
  font-size: 10px;
}

/* --- sections -------------------------------------------------------------------------------- */

.split,
.features,
.how,
.yours,
.status {
  width: var(--page);
  margin: 0 auto;
  padding: clamp(64px, 9vw, 124px) 0 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 76px);
}
.split-copy > p:not(.eyebrow),
.how-note,
.status-grid > p {
  max-width: 34em;
  margin: 22px 0 0;
  color: var(--bone-dim);
}

.ticks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding: 13px 0 13px 30px;
  border-top: 1px solid var(--line);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 21px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--signal);
  border-bottom: 2px solid var(--signal);
  transform: rotate(-45deg);
}

.compare {
  display: grid;
  gap: 14px;
}
.pane {
  padding: 16px 18px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--ink-850);
}
.pane-label {
  margin: 0 0 12px;
  color: var(--bone-faint);
}
.pane.term {
  opacity: 0.74;
}
.pane.term pre {
  margin: 0;
  overflow: hidden;
  color: var(--bone-dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
}
.pane.talk {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-color: color-mix(in oklab, var(--signal) 34%, var(--line));
  box-shadow: 0 30px 70px -40px var(--shadow);
  font-size: 15.5px;
  line-height: 1.5;
}
.pane.talk .pane-label {
  margin-bottom: 4px;
  color: var(--signal);
}
.pane.talk .tools {
  font-size: 13.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}
.card {
  position: relative;
  padding: 24px 24px 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--ink-850), color-mix(in oklab, var(--ink-850) 55%, var(--ink-900)));
  transition:
    border-color 0.25s,
    transform 0.3s var(--ease);
}
.card:hover {
  border-color: color-mix(in oklab, var(--signal) 42%, var(--line));
  transform: translateY(-3px);
}
.card-tag {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: 0 0 18px;
  border-radius: 9px;
  background: var(--signal);
  color: var(--signal-ink);
  font-size: 12px;
  letter-spacing: 0;
}
.card p:last-child {
  margin: 10px 0 0;
  color: var(--bone-dim);
  font-size: 15.5px;
  line-height: 1.55;
}

/* --- how it works ---------------------------------------------------------------------------- */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 70px minmax(0, 1.25fr);
  align-items: stretch;
  margin-top: 42px;
}
.node {
  padding: 22px 22px 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink-850);
}
.node.mac {
  border-color: color-mix(in oklab, var(--signal) 40%, var(--line));
  background: color-mix(in oklab, var(--signal) 5%, var(--ink-850));
}
.node-tag {
  margin: 0 0 12px;
  color: var(--bone-faint);
}
.node.mac .node-tag {
  color: var(--signal);
}
.node p:not(.node-tag):not(.stack) {
  margin: 10px 0 0;
  color: var(--bone-dim);
  font-size: 15px;
  line-height: 1.5;
}
.stack {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 14px 0 4px;
}
.stack b {
  padding: 4px 9px;
  border: 1px solid var(--ink-600);
  border-radius: 9px;
  background: var(--ink-800);
  font-family: var(--pixel);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stack b.claude {
  color: var(--claude);
  border-color: color-mix(in oklab, var(--claude) 40%, transparent);
}
.stack b.codex {
  color: var(--codex);
  border-color: color-mix(in oklab, var(--codex) 40%, transparent);
}
.stack i {
  color: var(--bone-faint);
  font-style: normal;
}
.wire {
  position: relative;
  align-self: center;
  height: 2px;
  overflow: hidden;
}
.wire i {
  position: absolute;
  inset: 0 -24px 0 0;
  background: repeating-linear-gradient(90deg, var(--signal) 0 9px, transparent 9px 18px);
  animation: flow 1.1s linear infinite;
}
@keyframes flow {
  to {
    transform: translateX(-18px);
  }
}
.how-note {
  max-width: 44em;
  margin-top: 30px;
  font-size: 18px;
}

/* --- yours ----------------------------------------------------------------------------------- */

.yours {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 76px);
}
.keeps {
  margin: 0;
}
.keeps div {
  display: grid;
  grid-template-columns: 11.5em minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.keeps div:last-child {
  border-bottom: 1px solid var(--line);
}
.keeps dt {
  font-weight: 700;
  font-stretch: 86%;
}
.keeps dd {
  margin: 0;
  color: var(--bone-dim);
}

/* --- status ---------------------------------------------------------------------------------- */

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px clamp(26px, 5vw, 76px);
  margin-top: 8px;
}
.needs {
  grid-row: span 2;
  margin: 22px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--ink-850);
  list-style: none;
}
.needs li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--bone-dim);
  font-size: 15.5px;
}
.needs .needs-title {
  padding-top: 0;
  border-top: 0;
  color: var(--bone-faint);
  font-size: 11.5px;
}
.status-grid > .tested {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  font-size: 15.5px;
}
.tested b {
  color: var(--signal);
  font-size: 58px;
  font-weight: 760;
  font-stretch: 76%;
  line-height: 1;
  letter-spacing: -0.03em;
}

/* --- foot ------------------------------------------------------------------------------------ */

.foot {
  width: var(--page);
  margin: clamp(64px, 9vw, 120px) auto 0;
  padding: 26px 0 46px;
  border-top: 1px solid var(--line);
  color: var(--bone-faint);
  font-size: 13.5px;
  line-height: 1.55;
}
.foot p {
  max-width: 62em;
  margin: 0 0 12px;
}
.foot sup {
  margin-right: 4px;
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--signal);
}
.sign {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px !important;
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sign img {
  border-radius: 5px;
}

/* --- narrower screens ------------------------------------------------------------------------ */

@media (min-width: 981px) {
  h1 .line {
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .lang {
    margin-left: auto;
  }
  .hero,
  .split,
  .yours,
  .status-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .device {
    margin-top: 12px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .flow {
    grid-template-columns: minmax(0, 1fr);
  }
  .wire {
    width: 2px;
    height: 34px;
    justify-self: center;
  }
  .wire i {
    inset: 0 0 -24px 0;
    background: repeating-linear-gradient(180deg, var(--signal) 0 9px, transparent 9px 18px);
    animation-name: flow-down;
  }
  .needs {
    grid-row: auto;
  }
}
@keyframes flow-down {
  to {
    transform: translateY(-18px);
  }
}

@media (max-width: 640px) {
  :root {
    --page: calc(100% - 36px);
  }
  .top {
    padding-inline: 18px;
  }
  body {
    font-size: 16.5px;
  }
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }
  .fact,
  .fact + .fact {
    padding: 24px 0;
    border-left: 0;
  }
  .fact + .fact {
    border-top: 1px solid var(--line);
  }
  .grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .keeps div {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .phone {
    transform: none;
  }
  .button {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .rise {
    opacity: 1;
    transform: none;
  }
}
