/* Memo public site. Same materials as the panel (/graph/): charcoal ground, emerald light,
   Onest + JetBrains Mono; one editorial serif accent per heading. No inline styles anywhere. */

:root {
  color-scheme: dark;
  --ground: #090a0b;
  --surface: #0f1312;
  --surface-2: #161d1a;
  --surface-3: #1d2622;
  --glass: rgba(12, 16, 15, 0.88);
  --line: rgba(150, 170, 160, 0.16);
  --line-2: rgba(150, 170, 160, 0.26);
  --text: #eef2ef;
  --text-2: #b3bdb7;
  --text-3: #86938c;
  --emerald: #3de39b;
  --emerald-rgb: 61, 227, 155;
  --wait: #62c6ff;
  --wait-rgb: 98, 198, 255;
  --work: #f2d35b;
  --work-rgb: 242, 211, 91;
  --red: #ff7b70;
  --red-rgb: 255, 123, 112;
  --gray-rgb: 134, 147, 140;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  /* One curve for every move; --ease-out stays as its alias for lang.css */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: var(--ease);
  --t-press: 120ms;
  --t-release: 260ms;
  --t-state: 200ms;
  --t-exit: 220ms;
  --wrap: 1120px;
  --pad: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body { position: relative; }
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(var(--emerald-rgb), 0.32); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--text); color: #07100c; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3);
}
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.display { font-size: clamp(44px, 7.2vw, 90px); line-height: 0.97; letter-spacing: -0.035em; }
.h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.03; letter-spacing: -0.03em; }
.h-page { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.02; letter-spacing: -0.03em; }
.display em, .h2 em, .h-page em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em;
  font-size: 1.08em; line-height: 0;
}
.lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.5; color: var(--text-2); max-width: 46ch; text-wrap: pretty; }
.muted { color: var(--text-2); }
.fine { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--text-3); }
.fine b { font-weight: 500; color: var(--text-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; -webkit-user-select: none; user-select: none;
  transition: background-color var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease), color var(--t-state) var(--ease),
    opacity var(--t-state) var(--ease), transform var(--t-release) var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: #eef2ef; color: #07100c; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18); }
.btn-ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet { background: none; color: var(--text-2); padding: 0 14px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-danger { background: rgba(var(--red-rgb), 0.12); color: #ffd0cb; box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.5); }
@media (hover: hover) {
  .btn-primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(var(--emerald-rgb), 0.5), 0 0 26px -6px rgba(var(--emerald-rgb), 0.6); }
  .btn-ghost:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2); }
  .btn-quiet:hover { color: var(--text); background: var(--surface-2); }
  .btn-danger:hover { background: rgba(var(--red-rgb), 0.2); }
}
/* Pressed: the finger gets an answer in the same frame, 120 ms in, 260 ms back */
.btn:is(:active, .is-press):not(:disabled) { transform: scale(0.97); transition-duration: var(--t-press); }
.btn-primary:is(:active, .is-press):not(:disabled) { background: #c9d3cd; box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.7); }
.btn-ghost:is(:active, .is-press):not(:disabled) { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.6); }
.btn-quiet:is(:active, .is-press):not(:disabled) { color: var(--text); background: var(--surface-3); }
.btn-danger:is(:active, .is-press):not(:disabled) { background: rgba(var(--red-rgb), 0.3); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: default; box-shadow: none; }
.btn-block { width: 100%; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 14px 0 12px;
  border-radius: 999px; background: rgba(15, 19, 18, 0.8); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--text-2);
}

.dot { --c: var(--emerald); --c-rgb: var(--emerald-rgb); flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(var(--c-rgb), 0.14); }
.dot.ring { width: 10px; height: 10px; background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.dot.dim { width: 6px; height: 6px; box-shadow: none; opacity: 0.8; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 50; padding: 12px var(--pad) 0; }
/* Nothing scrolls visibly above the floating bar: the ground covers the strip over it and fades out under it */
.top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 14px); z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, var(--ground) 0, var(--ground) 42px, rgba(9, 10, 11, 0.88) 72px, rgba(9, 10, 11, 0) 100%);
  opacity: 0; transition: opacity var(--t-state) var(--ease);
}
.top.stuck::before { opacity: 1; }
.bar {
  position: relative; max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: 8px;
  height: 60px; padding: 0 8px 0 20px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -24px #000;
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; border-radius: 8px; }
.brand svg { width: 24px; height: 24px; flex: none; }
.nav { display: flex; align-items: center; gap: 2px; margin: 0 auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 15px;
  transition: color var(--t-state) var(--ease), background-color var(--t-state) var(--ease), transform var(--t-release) var(--ease);
}
@media (hover: hover) { .nav a:hover { color: var(--text); background: var(--surface-2); } }
.nav a:is(:active, .is-press) { color: var(--text); background: var(--surface-3); transform: scale(0.98); transition-duration: var(--t-press); }
.nav a[aria-current="page"] { color: var(--text); }
.nav .nav-m { display: none; }
.acts { display: flex; align-items: center; gap: 6px; }
.menu-btn {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); cursor: pointer; place-items: center; box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color var(--t-state) var(--ease), transform var(--t-release) var(--ease);
}
.menu-btn:is(:active, .is-press) { background: var(--surface); transform: scale(0.94); transition-duration: var(--t-press); }
.menu-btn svg { width: 18px; height: 18px; }
.menu-btn .x { display: none; }
.top.open .menu-btn .x { display: block; }
.top.open .menu-btn .burger { display: none; }

@media (max-width: 860px) {
  .bar { padding: 0 8px 0 16px; }
  .menu-btn { display: grid; }
  .acts { margin-left: auto; }
  .acts .hide-m { display: none; }
  /* The menu is always laid out on a phone and moves in and out: in 320 ms, out 220 ms */
  .nav {
    flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 8px;
    border-radius: 22px; background: #0c100f;
    box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px #000;
    visibility: hidden; opacity: 0; transform: translateY(-8px) scale(0.98); transform-origin: 50% 0;
    transition: opacity var(--t-exit) var(--ease), transform var(--t-exit) var(--ease), visibility 0s linear var(--t-exit);
  }
  .top.open .nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity 320ms var(--ease), transform 320ms var(--ease), visibility 0s;
  }
  .nav a { min-height: 48px; padding: 0 16px; border-radius: 14px; font-size: 16px; }
  .nav .nav-m { display: inline-flex; }
}

/* ---------- Sections ---------- */
.sec { padding: 120px 0 0; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.sec-head.center { align-items: center; text-align: center; margin: 0 auto; }
.sec-head .lead { max-width: 52ch; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow-x: clip; }
.hero-light { position: absolute; inset: -10% -10% 30%; z-index: -1; pointer-events: none; }
.hero-light i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--emerald-rgb), 0.16), rgba(var(--emerald-rgb), 0));
  will-change: transform;
}
.hero-light i:nth-child(1) { left: 8%; top: 4%; width: 52%; aspect-ratio: 1.3; animation: drift-a 23s ease-in-out infinite; }
.hero-light i:nth-child(2) { right: 4%; top: 28%; width: 44%; aspect-ratio: 1.2; opacity: 0.7; animation: drift-b 29s ease-in-out infinite; }
/* Off screen, the light stands still (site.js) */
.hero.still .hero-light i { animation-play-state: paused; }
@keyframes drift-a { 0%, 100% { transform: translate(-4%, -6%) scale(1); } 50% { transform: translate(6%, 5%) scale(1.1); } }
@keyframes drift-b { 0%, 100% { transform: translate(5%, 4%) scale(1.05); } 50% { transform: translate(-6%, -5%) scale(0.95); } }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.hero-copy .display { margin-top: 4px; }
.hero-copy .lead { max-width: 44ch; }
.ln { display: block; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.14em; margin: -0.04em -0.02em -0.14em; }
/* The headline settles in 560 ms: 410 ms per word, 30 ms apart */
.w > span { display: inline-block; animation: word 0.41s var(--ease) both; }
.w.d1 > span { animation-delay: 30ms; }
.w.d2 > span { animation-delay: 60ms; }
.w.d3 > span { animation-delay: 90ms; }
.w.d4 > span { animation-delay: 120ms; }
.w.d5 > span { animation-delay: 150ms; }
@keyframes word { from { transform: translateY(105%); } to { transform: none; } }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* The map: the panel's own ground, cards and edges, scaled to a hero */
.scene {
  position: relative; margin: 64px auto 0; border-radius: 24px; overflow: hidden;
  background: radial-gradient(ellipse 65% 60% at 62% 58%, rgba(var(--emerald-rgb), 0.08), transparent 72%), #0a0c0c;
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 90px -50px #000;
}
.scene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(var(--emerald-rgb), 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--emerald-rgb), 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 55% 55%, #000 35%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 90% at 55% 55%, #000 35%, transparent 100%);
}
.scene-hud { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px 0; }
.hud-pick {
  display: inline-flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 14px;
  border-radius: 12px; background: rgba(12, 16, 15, 0.88); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px; font-weight: 500;
}
.hud-pick small { font-size: 12px; font-weight: 400; color: var(--text-3); }
.hud-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 11px; border-radius: 9px; background: var(--surface-2); font-size: 12px; color: var(--text-2); }
.hud-chip b { font-family: var(--mono); font-weight: 500; color: var(--wait); }
.hud-sp { flex: 1; }

.map {
  position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas: "a b c" "p e d"; gap: 44px 60px; padding: 30px 32px 36px; align-items: start;
}
.edges { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.edge { fill: none; stroke: rgba(var(--emerald-rgb), 0.42); stroke-width: 1.6; }
.edge.to-todo { stroke: rgba(var(--gray-rgb), 0.5); stroke-dasharray: 4 6; }
.edge.to-wait { stroke: rgba(var(--wait-rgb), 0.6); }
.tip { fill: rgba(var(--emerald-rgb), 0.7); }
.tip.to-todo { fill: rgba(var(--gray-rgb), 0.7); }
.tip.to-wait { fill: var(--wait); }

.node {
  --c: var(--emerald); --c-rgb: var(--emerald-rgb);
  position: relative; display: flex; flex-direction: column; gap: 8px; text-align: left;
  padding: 14px 16px 13px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(26, 36, 32, 0.97), rgba(12, 16, 15, 0.97));
  box-shadow: inset 0 1px 0 rgba(var(--emerald-rgb), 0.14), 0 18px 34px -20px #000;
}
.node.a1 { grid-area: a; } .node.a2 { grid-area: b; } .node.a3 { grid-area: c; } .node.a4 { grid-area: d; } .node.a5 { grid-area: e; }
.node[data-status="active"] { --c: var(--work); --c-rgb: var(--work-rgb); box-shadow: inset 0 0 0 1px rgba(var(--work-rgb), 0.55), 0 18px 34px -20px #000; }
.node[data-status="waiting"] {
  --c: var(--wait); --c-rgb: var(--wait-rgb);
  background: linear-gradient(180deg, rgba(20, 36, 48, 0.97), rgba(10, 16, 21, 0.97));
  box-shadow: inset 0 0 0 1.5px rgba(var(--wait-rgb), 0.85), 0 0 56px -6px rgba(var(--wait-rgb), 0.5);
}
.node[data-status="todo"] { --c: var(--text-3); --c-rgb: var(--gray-rgb); background: rgba(13, 17, 16, 0.92); box-shadow: none; outline: 1px dashed rgba(var(--gray-rgb), 0.5); outline-offset: -1px; }
.node[data-status="todo"] .n-title { color: var(--text-2); }
.n-top { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; }
.n-idx { font-family: var(--mono); font-size: 13px; color: var(--text-2); }
.n-kind { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.n-state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--c); font-weight: 500; white-space: nowrap; }
.n-state .dot { width: 7px; height: 7px; }
.n-state .dot.ring { width: 9px; height: 9px; }
.n-state .dot.dim { width: 5px; height: 5px; }
.n-title { font-size: 16px; line-height: 1.28; }
.n-sum { font-size: 13px; line-height: 1.42; color: var(--text-2); }
.n-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.n-ask { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.n-ask span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 9px; background: rgba(var(--wait-rgb), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--wait-rgb), 0.45); font-size: 13px; color: #d6efff; }
.n-ask span + span { background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }

.pcard { grid-area: p; align-self: stretch; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: rgba(12, 16, 15, 0.9); box-shadow: inset 0 0 0 1px var(--line); }
.pcard-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 6px; font-size: 13px; color: var(--text-3); }
.pcard-h b { font-weight: 500; color: var(--text); font-size: 15px; }
.prow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; font-size: 14px; }
.prow + .prow { border-top: 1px solid var(--line); }
.prow em { font-style: normal; font-size: 12px; color: var(--text-3); }
.sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: 11px; background: #29332f; box-shadow: inset 0 0 0 1px var(--line); }
.sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8f9c95; }
.sw.on { background: rgba(var(--emerald-rgb), 0.3); box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.75); }
.sw.on::after { transform: translateX(16px); background: var(--emerald); }

@media (max-width: 900px) {
  .map { grid-template-columns: minmax(0, 1fr); grid-template-areas: "b" "c" "d" "p"; gap: 30px; padding: 22px 16px 22px; }
  .node.a1, .node.a5 { display: none; }
  .scene { margin-top: 48px; border-radius: 20px; }
  .scene-hud { padding: 12px 12px 0; }
  .hud-chip.opt { display: none; }
}
@media (max-width: 560px) { .hud-pick small { display: none; } }

/* ---------- Why Memo ---------- */
.why .sec-head { max-width: 780px; }
.why .sec-head .lead { max-width: 56ch; }
.why-grid {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.why-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 24px 24px 20px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(22, 29, 26, 0.78), rgba(12, 16, 15, 0.78));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.why-top { display: flex; align-items: center; gap: 12px; }
.why-i {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--line);
}
.why-i svg { width: 20px; height: 20px; }
.why-k { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.why-n { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.why-card h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.why-t { color: var(--text-2); text-wrap: pretty; }
.why-proof {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--text-3);
}
.why-proof p { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; align-items: start; }
.why-proof svg { width: 16px; height: 16px; margin-top: 2px; color: var(--emerald); }
.why-proof b { font-weight: 500; color: var(--text-2); }
.why-proof .m svg { color: var(--text-3); }
/* Where the numbers come from: one quiet line under the grid */
.why-note { margin-top: 24px; max-width: 80ch; font-family: var(--font); font-size: 14px; line-height: 1.55; letter-spacing: 0; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .why-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
  .why-card { padding: 20px 18px 18px; border-radius: 18px; gap: 12px; }
  .why-card h3 { font-size: 20px; }
  .why-t { font-size: 15px; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { position: relative; display: flex; flex-direction: column; gap: 12px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.steps li::before { content: ""; position: absolute; left: 0; top: -1px; width: 48px; height: 1px; background: var(--text); }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--text-3); letter-spacing: 0.08em; }
.steps h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
.steps p { color: var(--text-2); max-width: 36ch; text-wrap: pretty; }
.steps code { align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; padding: 8px 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 13px; color: var(--text-2); }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; } }

/* ---------- Screenshots ---------- */
.shot { position: relative; margin: 0; }
.shot img { width: 100%; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px #000; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.shot picture { display: block; }
/* The frame (::after) wraps the caption too: the caption keeps inner padding */
.shot figcaption { margin: 0; padding: 12px 18px 16px; font-size: 14px; color: var(--text-3); }
.shot-wide { margin-top: 56px; }
.shot-phone { max-width: 300px; margin: 0 auto; }
@media (max-width: 900px) { .shot-phone { max-width: 240px; } }
@media (max-width: 760px) { .sec { padding-top: 88px; } .final { padding-top: 96px; } .foot { margin-top: 88px; } }
.shot-phone img, .shot-phone::after { border-radius: 28px; }

/* ---------- Features ---------- */
.feats { margin-top: 56px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.feat { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 18px; padding: 28px 0; border-top: 1px solid var(--line); }
.feat-i { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px var(--line); }
.feat-i svg { width: 20px; height: 20px; }
.feat h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.feat p { color: var(--text-2); max-width: 44ch; text-wrap: pretty; }
@media (max-width: 760px) { .feats { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Split rows (passport / inbox) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: center; }
.split.rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split.rev .split-copy { order: 2; }
.split-copy { display: flex; flex-direction: column; gap: 18px; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; color: var(--text-2); }
.checks svg { width: 18px; height: 18px; margin-top: 3px; color: var(--emerald); }
.checks b { font-weight: 500; color: var(--text); }
@media (max-width: 900px) {
  .split, .split.rev { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split.rev .split-copy { order: 0; }
}

/* ---------- Code ---------- */
.cmd { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 14px 14px 14px 18px; border-radius: 14px; background: #070808; box-shadow: inset 0 0 0 1px var(--line); }
/* A command wraps only between words (site.js keeps a flag with its value, an address and a file name whole,
   and starts a new line after &&); a word never splits in the middle */
.cmd pre {
  flex: 1; min-width: 0; margin: 0; padding-top: 11px; white-space: pre-wrap; word-break: normal; overflow-wrap: normal;
  font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--text); tab-size: 2;
}
.cmd pre .tk { white-space: nowrap; }
@media (max-width: 560px) {
  .cmd { flex-direction: column; align-items: stretch; padding: 14px; }
  .cmd pre { padding-top: 0; font-size: 13px; }
  .copy { align-self: flex-end; }
}
.cmd pre .c { color: var(--text-3); }
.copy {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
  background: var(--surface-2); color: var(--text-2); font-size: 13px; cursor: pointer; -webkit-user-select: none; user-select: none;
  transition: background-color var(--t-state) var(--ease), color var(--t-state) var(--ease), transform var(--t-release) var(--ease);
}
@media (hover: hover) { .copy:hover { background: var(--surface-3); color: var(--text); } }
.copy:is(:active, .is-press) { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.6); transform: scale(0.96); transition-duration: var(--t-press); }
.copy svg { width: 15px; height: 15px; }
.copy.done { background: rgba(var(--emerald-rgb), 0.2); color: #c9f5df; }
code.inline, .prose code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: 0.875em; color: var(--text); overflow-wrap: anywhere; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tools span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--mono); font-size: 13px; color: var(--text-2); }

.works { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; margin-top: 56px; align-items: start; }
.works-col { display: flex; flex-direction: column; gap: 14px; }
.works-col h3 { font-size: 20px; letter-spacing: -0.01em; }
.works-col p { color: var(--text-2); max-width: 46ch; }
.os { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 860px) { .works { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

/* ---------- Price ---------- */
.price { display: flex; align-items: flex-start; justify-content: center; gap: 6px; }
.price .cur { font-size: 32px; font-weight: 500; line-height: 1; margin-top: 16px; color: var(--text-2); }
.price .num { font-size: clamp(96px, 13vw, 148px); font-weight: 600; line-height: 0.9; letter-spacing: -0.05em; }
.price .per { align-self: flex-end; margin-bottom: 12px; font-size: 17px; color: var(--text-2); }

.teaser { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 72px 24px 64px; }
.teaser::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: min(640px, 100%); height: 360px; z-index: -1;
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--emerald-rgb), 0.12), rgba(var(--emerald-rgb), 0));
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 48px auto 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 4px;
  font-size: 18px; font-weight: 500; line-height: 1.35; cursor: pointer; list-style: none; border-radius: 8px;
  transition: color var(--t-state) var(--ease), background-color var(--t-state) var(--ease);
}
.faq summary:is(:active, .is-press) { color: #fff; background: var(--surface); transition-duration: var(--t-press); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px;
  border-right: 1.5px solid var(--text-3); border-bottom: 1.5px solid var(--text-3);
  transform: rotate(45deg) translateY(-3px); transition: transform var(--t-state) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-2px); }
@media (hover: hover) { .faq summary:hover { color: #fff; } }
.faq .a { padding: 0 4px 22px; color: var(--text-2); max-width: 64ch; }
.faq .a p + p { margin-top: 10px; }

/* ---------- Final CTA ---------- */
.final { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 128px var(--pad) 40px; }

/* ---------- Footer ---------- */
.foot { margin-top: 120px; border-top: 1px solid var(--line); padding: 48px 0 40px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(max-content, 1fr)); gap: 32px; }
.foot-brand { display: flex; flex-direction: column; gap: 12px; }
.foot-brand p { color: var(--text-3); font-size: 14px; max-width: 32ch; }
.foot h2 { margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.foot ul a {
  display: inline-flex; min-height: 36px; align-items: center; color: var(--text-2); text-decoration: none; font-size: 15px; border-radius: 6px;
  transition: color var(--t-state) var(--ease), background-color var(--t-state) var(--ease);
}
@media (hover: hover) { .foot ul a:hover { color: var(--text); } }
.foot ul a:is(:active, .is-press) { color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 4px var(--surface-2); transition-duration: var(--t-press); }
.foot-end { margin-top: 40px; font-size: 13px; color: var(--text-3); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand, .foot-contact, .foot-grid > nav[aria-labelledby="f3"] { grid-column: 1 / -1; }
  .foot ul { gap: 0; } .foot ul a { min-height: 44px; min-width: 44px; }
}

/* ---------- Pricing page ---------- */
.page-head { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 72px 0 0; }
.plan-wrap { position: relative; max-width: 560px; margin: 56px auto 0; }
.plan-card {
  position: relative; display: flex; flex-direction: column; gap: 24px; padding: 36px 36px 32px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(24, 32, 29, 0.96), rgba(11, 14, 13, 0.98));
  box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 0 70px -24px rgba(var(--emerald-rgb), 0.55), 0 40px 80px -40px #000;
}
.plan-card::before {
  content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9) 50%, transparent);
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-top .chip { min-height: 30px; font-size: 13px; }
.plan-card .price { justify-content: flex-start; }
.plan-card .checks { margin: 0; }
.plan-card hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line); }
.plan-foot { text-align: center; }
.plan-foot .nw { white-space: nowrap; }
@media (max-width: 520px) { .plan-foot .nw { display: block; } .plan-foot .sep { display: none; } }
.plan-acts { display: flex; flex-direction: column; gap: 12px; }
/* Pay, until payments open: the note takes the fine print's place in one grid cell sized for both,
   so pressing it moves nothing outside the card. .pay-text is the hidden copy that holds the note's size */
.pay-slot { display: grid; align-items: center; }
.pay-slot > * { grid-area: 1 / 1; }
.pay-slot .plan-foot { transition: opacity var(--t-state) var(--ease), visibility 0s linear 0s; }
.pay-slot.is-open .plan-foot { opacity: 0; visibility: hidden; transition: opacity var(--t-state) var(--ease), visibility 0s linear var(--t-state); }
.pay-msg { font-size: 15px; line-height: 1.5; color: var(--text); text-align: center; text-wrap: pretty; }
.pay-text { visibility: hidden; }
.pay-msg.in { animation: pay-in var(--t-release) var(--ease) both; }
@keyframes pay-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .pay-msg.in { animation: none; } .pay-slot .plan-foot { transition: none; } }
.need { max-width: 560px; margin: 28px auto 0; padding: 18px 20px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 15px; }
.need b { font-weight: 500; color: var(--text); }
@media (max-width: 520px) { .plan-card { padding: 28px 22px 24px; border-radius: 24px; } }

/* ---------- Docs / prose ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; padding-top: 64px; }
.toc { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.toc p { margin-bottom: 10px; }
.toc a {
  display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px;
  transition: color var(--t-state) var(--ease), background-color var(--t-state) var(--ease), transform var(--t-release) var(--ease);
}
@media (hover: hover) { .toc a:hover { color: var(--text); background: var(--surface-2); } }
.toc a:is(:active, .is-press) { color: var(--text); background: var(--surface-3); transform: scale(0.97); transition-duration: var(--t-press); }
@media (max-width: 900px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 48px; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .toc p { flex-basis: 100%; margin-bottom: 4px; }
  .toc a { min-height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
}
/* An anchor lands below the floating header */
.prose [id] { scroll-margin-top: 96px; }
.prose { max-width: 72ch; min-width: 0; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.04; letter-spacing: -0.03em; }
.prose h2 { margin-top: 64px; padding-top: 4px; font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; }
.prose h3 { margin-top: 32px; font-size: 18px; line-height: 1.3; }
.prose p, .prose li { color: var(--text-2); }
.prose p b, .prose li b { font-weight: 500; color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a:not(.btn) { color: var(--text); text-decoration-color: rgba(var(--emerald-rgb), 0.6); text-underline-offset: 3px; }
.prose a:not(.btn):hover { text-decoration-color: var(--emerald); }
.prose .lead { max-width: 60ch; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { padding: 10px 12px 10px 0; text-align: left; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px 12px 12px 0; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--text-2); }
.table td:first-child { width: 42%; color: var(--text); }
.table td code { font-size: 13px; }
@media (max-width: 560px) {
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { display: none; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td, .table td:first-child { width: 100%; padding: 2px 0; border: 0; }
}
.note { padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 15px; }
.note b { color: var(--text); font-weight: 500; }
.legal { max-width: 72ch; margin: 0 auto; padding-top: 64px; }
/* Legal text built from docs/legal: numbered sections and clauses, [placeholders] still to be filled */
.legal h2 { margin-top: 48px; font-size: 22px; }
.legal .legal-date { margin-top: 20px; }
.legal .cl-n { font-family: var(--mono); font-size: 0.875em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.legal .ph { color: var(--work); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin-top: 40px; }
.legal a[href^="mailto:"] { overflow-wrap: anywhere; }

/* ---------- Auth forms ---------- */
.auth { display: grid; place-items: center; padding: 64px var(--pad) 0; }
.auth-card {
  position: relative; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 22px;
  padding: 36px 32px 30px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(22, 29, 26, 0.96), rgba(11, 14, 13, 0.98));
  box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 60px -28px rgba(var(--emerald-rgb), 0.45), 0 40px 80px -40px #000;
}
.auth-card > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.auth-card h1 { font-size: 32px; line-height: 1.1; letter-spacing: -0.025em; }
.auth-card .sub { color: var(--text-2); font-size: 15px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field label span { font-weight: 400; color: var(--text-3); }
.field input {
  width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 12px;
  background: #0a0d0c; color: var(--text); font: inherit; font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow var(--t-state) var(--ease);
}
.field input::placeholder { color: #5f6b65; }
.field input:hover { box-shadow: inset 0 0 0 1px rgba(150, 170, 160, 0.4); }
.field input:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.8), 0 0 0 3px rgba(var(--emerald-rgb), 0.16); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px rgba(var(--red-rgb), 0.8); }
.field .hint { font-size: 14px; color: var(--text-3); }
/* A field's error sits under that field, in place of its hint */
.field-err { font-size: 14px; line-height: 1.45; color: #ffd0cb; }
.field-err a { color: #fff; text-underline-offset: 3px; }
.form-msg { min-height: 0; font-size: 15px; color: #ffd0cb; }
.form-msg:empty { display: none; }
.form-msg a { color: #fff; }
.form-msg.ok { color: #c9f5df; }
/* Continue with Google / GitHub, above the email form */
.oauth { display: flex; flex-direction: column; gap: 10px; }
.oauth[hidden], .btn-oauth[hidden] { display: none; }
.btn-oauth { gap: 10px; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
@media (hover: hover) { .btn-oauth:hover { background: var(--surface-3); box-shadow: inset 0 0 0 1px rgba(150, 170, 160, 0.4); } }
.btn-oauth:is(:active, .is-press), .btn-oauth.is-going { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.7); transform: scale(0.985); }
.btn-oauth.is-going { opacity: 0.75; cursor: progress; }
.btn-oauth .oauth-mark { width: 18px; height: 18px; }
.oauth-or { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
@media (prefers-reduced-motion: reduce) { .btn-oauth { transition: none; } .btn-oauth:is(:active, .is-press), .btn-oauth.is-going { transform: none; } }
.auth-alt { font-size: 15px; color: var(--text-2); text-align: center; }
.auth-alt a { color: var(--text); text-underline-offset: 3px; }
.auth-legal { font-size: 13px; color: var(--text-3); text-align: center; }
.auth-legal a { color: var(--text-2); }
@media (max-width: 480px) { .auth { padding-top: 40px; } .auth-card { padding: 28px 20px 24px; } }

/* ---------- Account ---------- */
.acct { display: flex; flex-direction: column; gap: 20px; padding-top: 56px; max-width: calc(880px + var(--pad) * 2); }
.acct-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 12px; }
.acct-head > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.acct-head h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.acct-body { display: flex; flex-direction: column; gap: 20px; }
.loading { padding: 48px 0; color: var(--text-3); }
.card h2.eyebrow { font-size: 12px; line-height: 1.4; letter-spacing: 0.16em; }
.card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 26px 28px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
.card-sub { color: var(--text-2); font-size: 15px; max-width: 60ch; }

.plan {
  --c-rgb: var(--emerald-rgb);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px;
  overflow: hidden; background: #0b0e0d;
  box-shadow: inset 0 0 0 1px rgba(var(--c-rgb), 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 60px -30px rgba(var(--c-rgb), 0.6);
}
/* Light rises from the bottom: the more days left, the higher it goes */
.plan::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -40%; height: 90%; pointer-events: none;
  background: radial-gradient(60% 100% at 30% 100%, rgba(var(--c-rgb), 0.28), rgba(var(--c-rgb), 0) 70%);
  transform-origin: 50% 100%; transform: scaleY(var(--lvl, 1)); transition: transform 0.8s var(--ease);
}
.plan > * { position: relative; z-index: 1; }
.plan.lvl-low { --lvl: 0.45; }
.plan.lvl-mid { --lvl: 0.75; }
.plan.warn { --c-rgb: var(--work-rgb); }
.plan.off { --c-rgb: var(--gray-rgb); }
.plan-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.plan-state { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.plan-state .dot { --c: rgb(var(--c-rgb)); --c-rgb: inherit; }
.plan-big { display: flex; align-items: baseline; gap: 12px; margin-top: 2px; }
.plan-big .num { font-size: clamp(64px, 9vw, 96px); font-weight: 600; line-height: 0.9; letter-spacing: -0.045em; }
.plan-big .num.word { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1; }
.plan-big .unit { font-size: 17px; color: var(--text-2); }
.plan-note { color: var(--text-2); font-size: 15px; max-width: 48ch; }
.plan-act { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.plan-act .form-msg { max-width: 30ch; text-align: right; }
@media (max-width: 680px) {
  .plan { grid-template-columns: minmax(0, 1fr); }
  .plan-act { align-items: stretch; }
  .plan-act .btn { width: 100%; }
  .plan-act .form-msg { max-width: none; text-align: left; }
}

.code-box { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: #0a0d0c; box-shadow: inset 0 0 0 1px rgba(var(--emerald-rgb), 0.3); }
.code-box > p { font-size: 15px; color: var(--text-2); }
.code-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 14px; color: var(--text-3); }
.code-meta .mono { color: var(--text); font-size: 14px; letter-spacing: 0.04em; }
.code-meta .exp { font-variant-numeric: tabular-nums; }
.code-box.expired { box-shadow: inset 0 0 0 1px var(--line); }
.code-box.expired .cmd { opacity: 0.45; }
.code-box.expired .exp { color: var(--work); }

.devices { list-style: none; margin: 0; padding: 0; }
.dev { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 20px; min-height: 68px; padding: 14px 0; }
.dev + .dev { border-top: 1px solid var(--line); }
.dev-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; font-size: 16px; font-weight: 500; }
.dev-name .nm { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-name svg { flex: none; width: 18px; height: 18px; color: var(--text-3); }
.dev-meta { margin-top: 2px; padding-left: 30px; font-size: 14px; color: var(--text-3); }
/* The computer's state, next to its name, in the colours the panel uses: blue is "your move" */
.dev-state { --c: var(--wait); --c-rgb: var(--wait-rgb); display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--c); white-space: nowrap; }
.dev-state .dot { --c: var(--wait); --c-rgb: var(--wait-rgb); width: 7px; height: 7px; }
.nw { white-space: nowrap; }
.dev-state.gone { --c: var(--text-2); --c-rgb: var(--gray-rgb); }
.dev-state.gone .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.dev-acts { display: flex; align-items: center; gap: 8px; }
.dev-acts .btn-quiet { color: var(--text-3); }
.dev-update[aria-expanded="true"] { background: var(--surface); box-shadow: inset 0 0 0 1px rgba(var(--wait-rgb), 0.55); }
/* The update line opens under the row, with its own Copy */
.dev-panel { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: #0a0d0c; box-shadow: inset 0 0 0 1px rgba(var(--wait-rgb), 0.3); }
.dev-panel > p { font-size: 15px; color: var(--text-2); }
.dev-panel:not([hidden]) { animation: panel-in 320ms var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(-6px); } }
.dev-panel.closing { animation: panel-out var(--t-exit) var(--ease) both; }
@keyframes panel-out { to { opacity: 0; transform: translateY(-4px); } }
.empty { padding: 8px 0 4px; color: var(--text-3); font-size: 15px; }
.kv { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px 20px; margin: 0; font-size: 15px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.card-foot { display: flex; flex-wrap: wrap; gap: 8px; }
/* A quiet button's text lines up with the labels above it */
.card-foot > .btn-quiet:first-child { margin-left: -16px; }
/* A plan that needs attention goes first; otherwise the computers lead */
.acct-body > .acct-head { order: -2; }
.acct-body.plan-first > .plan { order: -1; }
@media (max-width: 520px) {
  .card { padding: 22px 18px; border-radius: 20px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd + dt { margin-top: 10px; }
  .dev { grid-template-columns: minmax(0, 1fr); }
  .dev-acts { padding-left: 30px; }
  .dev-acts > .btn-quiet:first-child { margin-left: -14px; }
  .dev-panel { padding: 14px 12px; }
  .dev-panel .cmd, .code-box .cmd { padding: 12px; }
  .code-box { padding: 16px 14px; }
  /* The first computer: the one next step is a full-width button */
  .card-head .btn-primary { width: 100%; }
}

/* ---------- Footer language control: touch target, type step, pressed state ---------- */
.foot-end .lang-btn { min-height: 44px; margin: 0; font-size: 14px; transition: color var(--t-state) var(--ease), background-color var(--t-state) var(--ease), box-shadow var(--t-state) var(--ease), transform var(--t-release) var(--ease); }
.foot-end .lang-btn:is(:active, .is-press) { color: var(--text); background: var(--surface-2); transform: scale(0.97); transition-duration: var(--t-press); }
.lang-opt:is(:active, .is-press) { background: var(--surface-3); transition-duration: var(--t-press); }
.lang-x:is(:active, .is-press) { background: var(--surface-3); color: var(--text); transition-duration: var(--t-press); }

/* ---------- Header language control ----------
   Desktop: a quiet globe with the language (no region, site.js) left of the account links; a narrow desktop keeps
   the globe alone. Phone: the first row of the menu, because at 390 the bar has no 50 px left beside Memo,
   "Join the beta" and the menu button in French, Italian, Spanish or Russian. */
.acts > .lang-btn {
  min-height: 44px; margin: 0; padding: 0 14px 0 12px; gap: 8px; background: transparent; box-shadow: none; font-size: 14px;
  transition: color var(--t-state) var(--ease), background-color var(--t-state) var(--ease), transform var(--t-release) var(--ease);
}
.acts > .lang-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .acts > .lang-btn:hover { color: var(--text); background: var(--surface-2); } }
.acts > .lang-btn:is(:active, .is-press) { color: var(--text); background: var(--surface-3); transform: scale(0.97); transition-duration: var(--t-press); }
.lang-btn:is(:active, .is-press) svg { color: var(--emerald); }
.nav > .lang-btn { display: none; }
@media (max-width: 1080px) {
  .acts > .lang-btn { width: 44px; padding: 0; justify-content: center; border-radius: 50%; }
  .acts > .lang-btn > [translate="no"] { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 860px) {
  .acts > .lang-btn { display: none; }
  .nav > .lang-btn {
    display: flex; position: relative; width: 100%; min-height: 48px; margin: 0 0 7px; padding: 0 16px; gap: 12px;
    border-radius: 14px; background: transparent; box-shadow: none; color: var(--text-2); font-size: 16px; line-height: 1.3; text-align: start;
    transition: color var(--t-state) var(--ease), background-color var(--t-state) var(--ease), transform var(--t-release) var(--ease);
  }
  .nav > .lang-btn svg { width: 18px; height: 18px; }
  /* A hairline between the language and the pages */
  .nav > .lang-btn::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -5px; height: 1px; background: var(--line); pointer-events: none; }
  @media (hover: hover) { .nav > .lang-btn:hover { color: var(--text); background: var(--surface-2); } }
  .nav > .lang-btn:is(:active, .is-press) { color: var(--text); background: var(--surface-3); transform: scale(0.98); transition-duration: var(--t-press); }
}

/* ---------- 404 ---------- */
.nf { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; padding: 120px 0 0; }
.nf .code { font-family: var(--mono); font-size: 14px; letter-spacing: 0.2em; color: var(--text-3); }

/* ---------- Reveal on scroll (added by site.js; played once) ---------- */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity 0.52s var(--ease), transform 0.52s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  :is(.btn, .copy, .nav a, .toc a, .menu-btn, .lang-btn):is(:active, .is-press) { transform: none; }
  .nav { transform: none; }
}
