/* RamWarden site. One stylesheet, no framework, no web fonts: the page for a
   memory manager should not itself be heavy. */

:root {
  --bg: #0d0b0e;
  --bg-2: #161216;
  --panel: #21181d;
  --line: #443039;
  --text: #f2eff0;
  --muted: #b5a9b0;
  --accent: #f24455;
  --accent-ink: #ffffff;
  --accent-2: #f29ca6;
  --warn: #ffb454;
  --error: #ff6b6b;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); }
a:hover { color: #8cc4ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 640px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: .2px; }
.brand img { width: 26px; height: 26px; }
.site-header nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a:hover { color: var(--text); }
@media (max-width: 720px) { .site-header nav a.hide-sm { display: none; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
  background: var(--accent); color: var(--accent-ink);
  font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
}
.button:hover { background: #5be6a9; color: var(--accent-ink); }
.button.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.button.secondary:hover { border-color: var(--muted); }
.button.small { padding: 6px 12px; font-size: 14px; }
.button[disabled], .wallet[disabled] { opacity: .5; cursor: progress; }

/* Hero */
.hero { padding: 88px 0 64px; }
.eyebrow { color: var(--accent); font: 600 13px/1 var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; margin: 16px 0 20px; letter-spacing: -1px; max-width: 16ch; }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .actions small { color: var(--muted); width: 100%; }

/* A small "terminal" readout of a decision, the product in one picture. */
.readout {
  margin-top: 56px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  font: 14px/1.7 var(--mono); padding: 20px 22px; overflow-x: auto;
}
.readout .row { display: grid; grid-template-columns: 2.2fr 1fr 1fr 2.4fr; gap: 16px; white-space: nowrap; }
.readout .head { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 6px; }
.readout .keep { color: var(--accent-2); }
.readout .close { color: var(--accent); }
.readout .spare { color: var(--warn); }
.readout .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; color: var(--accent); }

/* Sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0 0 12px; letter-spacing: -.4px; }
section.block > .wrap > p.sub { color: var(--muted); max-width: 64ch; margin: 0 0 36px; font-size: 17px; }

.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid.two { grid-template-columns: 1fr; } }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); }
.card .num { font: 700 13px var(--mono); color: var(--accent); display: block; margin-bottom: 10px; }

/* Ladder */
.ladder { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ladder li {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 16px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px;
}
.ladder li span:first-child { font: 600 14px var(--mono); color: var(--accent); }
.ladder li span:last-child { color: var(--muted); font-size: 15px; }
@media (max-width: 720px) { .ladder li { grid-template-columns: 1fr; gap: 4px; } }

/* Comparison table */
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
table.compare th, table.compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare th { color: var(--muted); font-weight: 600; }
table.compare td:first-child { color: var(--text); }
table.compare td.yes { color: var(--accent); }
table.compare td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; }

/* Downloads */
.download.card { display: flex; flex-direction: column; gap: 12px; }
.download.card.detected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.download .tag { font: 600 12px var(--mono); color: var(--accent); min-height: 1em; }
.download .button { margin-top: auto; }
.download code, .code-block { font: 13px/1.6 var(--mono); }
.code-block { display: block; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--text); overflow-x: auto; white-space: pre; }
details summary { cursor: pointer; color: var(--muted); font-size: 14px; }
details[open] summary { margin-bottom: 8px; }

/* Pricing */
.price.card { display: flex; flex-direction: column; gap: 14px; }
.price.card.featured { border-color: var(--accent); }
.price .amount { font-size: 36px; font-weight: 750; letter-spacing: -1px; }
.price .amount small { font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price ul { margin: 0; padding-left: 18px; color: var(--muted); }
.price ul li { margin: 4px 0; }
.price .button { margin-top: auto; }
.pay-methods { color: var(--muted); font-size: 14px; margin-top: 20px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { color: var(--text); font-weight: 600; font-size: 17px; }
.faq p { color: var(--muted); margin: 10px 0 0; max-width: 72ch; }

/* App pages: link and account */
main.app { padding: 56px 0 96px; }
main.app h1 { font-size: 32px; margin: 0 0 12px; letter-spacing: -.5px; }
.muted { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 20px; }
.panel h2 { margin: 0 0 8px; font-size: 20px; }

.notice { border-radius: 10px; padding: 12px 14px; margin: 16px 0; border: 1px solid var(--line); background: var(--bg-2); }
.notice.ok { border-color: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent); }
.notice.error { border-color: color-mix(in srgb, var(--error) 60%, transparent); color: var(--error); }
.notice.info { color: var(--text); }

.wallets { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.wallet {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 180px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.wallet:hover:not([disabled]) { border-color: var(--accent); }
.wallet span { color: var(--muted); font-size: 13px; }
.coin-picker { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 14px 0; }
.coin-picker select {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; min-width: 200px;
}
.coin-pay dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 12px 0; }
.coin-pay dt { color: var(--muted); }
.coin-pay dd { margin: 0; overflow-wrap: anywhere; }
.coin-pay code { font-family: var(--mono); user-select: all; }

.code-form { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.code-form input {
  font: 600 22px var(--mono); letter-spacing: 3px; text-transform: uppercase; width: 220px;
  background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
}
.device-card { display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.device-card .code { font: 700 24px var(--mono); letter-spacing: 3px; color: var(--accent); }
.device-card div { display: flex; flex-direction: column; }

.plans { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.plan-choice { display: flex; align-items: center; gap: 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.plan-choice:has(input:checked) { border-color: var(--accent); }
.plan-choice span { color: var(--muted); }

ul.devices { list-style: none; padding: 0; margin: 12px 0 0; }
ul.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }

.mock-banner { background: var(--warn); color: #241400; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; }

/* Prose pages */
.prose h1 { font-size: 34px; }
.prose h2 { margin-top: 36px; }
.prose p, .prose li { color: #c3cfdc; max-width: 72ch; }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
footer a { color: var(--muted); }

.mt { margin-top: 18px; }
.mt-lg { margin-top: 40px; }

/* The woodland guardian: warm typography and an interactive, honest explanation. */
.landing { --bg:#101310; --bg-2:#161c17; --panel:#1b231d; --line:#354036; --text:#eeeadd; --muted:#a4afa2; --accent:#ccdc9e; --accent-ink:#192015; --accent-2:#dfb58e; }
.landing .site-header { background:#101310e8; border-bottom:1px solid #ffffff0a; }
.hero-layout { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.landing .hero { padding:86px 0 76px; background:radial-gradient(ellipse at 75% 20%,#34402c66,transparent 65%); }
.landing .hero h1 { font-family:Georgia,'Times New Roman',serif; font-weight:500; font-size:clamp(48px,5.6vw,76px); line-height:1.03; letter-spacing:-3px; margin:24px 0; }
.landing .hero h1 em { color:#d4be97; font-weight:400; }
.platform-note { display:block; font:10px var(--mono); color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin-top:12px; }
.landing .hero .lede { font-size:17px; line-height:1.7; max-width:39ch; }
.landing .hero .actions { gap:12px; }
.landing .hero .eyebrow { color:#d4be97; letter-spacing:1.6px; font-size:10px; }
.memory-lab { border:1px solid #4a5547; border-radius:22px; padding:25px; background:linear-gradient(135deg,#263026,#181f19); box-shadow:0 35px 80px #0005; min-width:0; }
.lab-heading { display:flex; align-items:center; gap:7px; font:9px var(--mono); letter-spacing:1px; color:#d1d9c4; }
.lab-lamp { width:6px; height:6px; border-radius:50%; background:#c7dc98; box-shadow:0 0 12px #c7dc9850; }
.demo-label { margin-left:auto; font-size:8px; color:#a7b29c; }
.lab-stats { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin:27px 0 18px; }
.lab-stats>div { display:flex; flex-direction:column; gap:5px; }
.metric-label { font:8px var(--mono); letter-spacing:1px; color:#a8b59e; }
.lab-stats strong { font:48px Georgia,serif; line-height:1; font-weight:400; }
.lab-stats strong small { font-size:26px; }
.lab-stats div>span:last-child { color:#a8b59e; font-size:9px; }
.memory-bar { display:flex; height:10px; border-radius:8px; overflow:hidden; gap:3px; }
.memory-active { background:#8b9d7d; width:52%; }.memory-cold { background:#d7b387; width:26%; }.memory-free { background:#455442; width:22%; }
.chart-legend { display:flex; gap:12px; font-size:8px; color:#b4c0ab; margin:9px 0 22px; }
.dot { display:inline-block; width:5px; height:5px; border-radius:2px; margin-right:4px; }.dot.active { background:#8b9d7d; }.dot.cold { background:#d7b387; }.dot.free { background:#455442; }
.pressure-chart { background:#1118106b; padding:14px 12px 5px; border:1px solid #ffffff08; border-radius:10px; }
.chart-title { display:flex; justify-content:space-between; font:7px var(--mono); letter-spacing:.8px; color:#9caa94; }
.pressure-chart svg { display:block; width:100%; height:auto; }
.chart-grid { stroke:#ffffff10; fill:none; }.pressure-chart text { fill:#8f9d89; font:8px system-ui; }
.pressure-control { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:15px; font-size:10px; color:#b5bfae; }
.pressure-control input { width:115px; accent-color:#e8aa75; cursor:pointer; }
.lab-verdict { display:flex; align-items:flex-start; gap:12px; margin:18px 0 12px; min-height:60px; }
.verdict-icon { color:#dcb28c; font-size:25px; }.lab-verdict strong { font-size:12px; color:#e9dec4; }.lab-verdict p { color:#adb7a7; font-size:11px; line-height:1.5; margin:3px 0; }
.lab-run { width:100%; font-size:11px; padding:9px 13px; }.lab-run:disabled { opacity:.4; cursor:not-allowed; }.lab-footnote { font-size:8px; line-height:1.5; color:#92a088; margin:12px 0 0; }
.decision-flow { display:flex; align-items:center; gap:10px; margin:32px 0; }
.decision-flow>div { flex:1; border:1px solid #354036; border-radius:12px; padding:16px 12px; display:flex; flex-direction:column; min-height:113px; }
.decision-flow span { color:#b3c694; font:10px var(--mono); }.decision-flow strong { font:17px Georgia,serif; margin:9px 0 5px; }.decision-flow small { color:#9eae98; font-size:10px; }.decision-flow>b { color:#63755a; font-weight:400; }
.decision-flow .current { border-color:#e8aa75; background:#e8aa7510; }.decision-flow .passed { border-color:#8b9d7d; }
@media(max-width:900px) { .hero-layout { gap:30px; }.landing .hero h1 { font-size:58px; }.memory-lab { padding:18px; }.demo-label { font-size:6px; }.lab-heading { font-size:8px; } }
@media(max-width:700px) { .hero-layout { grid-template-columns:1fr; }.landing .hero { padding:46px 0; }.landing .hero h1 { font-size:60px; }.hero-copy { max-width:510px; }.memory-lab { max-width:510px; width:100%; }.decision-flow { overflow:auto; padding-bottom:8px; }.decision-flow>div { flex:0 0 130px; }.chart-legend { font-size:9px; } }
.landing .hero h1 { max-width:none; font-size:clamp(48px,5vw,68px); }
.landing .brand img { width:30px; height:28px; image-rendering:pixelated; }
.metric-label { font-size:10px; }.lab-stats div>span:last-child { font-size:11px; }.chart-legend { font-size:10px; }.chart-title { font-size:9px; }.pressure-chart text { font-size:10px; }.pressure-control { font-size:12px; }.lab-verdict p { font-size:12px; }.lab-footnote { font-size:10px; }
/* Canonical white-eyed ram palette: crimson, black, silver and white. */
.landing { --bg:#0d0b0e; --bg-2:#161216; --panel:#21181d; --line:#443039; --text:#f2eff0; --muted:#b5a9b0; --accent:#f24455; --accent-ink:#fff; --accent-2:#f29ca6; }
.landing .site-header { background:#0d0b0eeb; }
.landing .hero { background:radial-gradient(ellipse at 75% 22%,#6d102b44,transparent 66%); padding-top:48px; }
.hero-emblem { display:block; width:112px; height:112px; object-fit:contain; margin-bottom:18px; }
.landing .hero h1 { font-size:clamp(46px,4.5vw,62px); letter-spacing:-2px; }.landing .hero h1 em { color:#d3cbd0; }.landing .hero .eyebrow { color:#f29ca6; }
.memory-lab { border-color:#65404d; background:linear-gradient(135deg,#302028,#161216); }.lab-heading { color:#e5d8df; }.lab-lamp { background:#ff697c; box-shadow:0 0 12px #ff697c60; }
.demo-label,.metric-label,.lab-stats div>span:last-child,.chart-legend,.chart-title,.pressure-control,.lab-footnote { color:#bdaab4; }
.memory-active,.dot.active { background:#cd2642; }.memory-cold,.dot.cold { background:#c7bec5; }.memory-free,.dot.free { background:#4a3944; }
.pressure-chart { background:#0a090b70; }.pressure-chart text { fill:#bdaab4; }.pressure-control input { accent-color:#ff697c; }.verdict-icon { color:#ff697c; }.lab-verdict strong { color:#f0e8ec; }.lab-verdict p { color:#c3b5bd; }
.decision-flow>div { border-color:#443039; }.decision-flow span { color:#ff91a0; }.decision-flow small { color:#bdaab4; }.decision-flow>b { color:#8c5669; }.decision-flow .current { border-color:#f24455; background:#f2445510; }.decision-flow .passed { border-color:#9c7b8b; }
.landing .brand img { width:38px; height:38px; image-rendering:auto; }

.hero-emblem { width:136px; height:136px; }
.brand { color:#eee8ed; font-weight:800; letter-spacing:.25px; }

/* ---- Warden tabs in the header ---------------------------------------- */
.warden-tabs { display:flex; gap:4px; margin-left:20px; padding:4px; border:1px solid var(--line); border-radius:999px; background:var(--bg-2); }
.site-header .warden-tabs a { display:flex; align-items:center; gap:8px; padding:5px 14px 5px 8px; border-radius:999px; color:var(--muted); font-size:14px; font-weight:600; }
.site-header .warden-tabs a img { width:22px; height:22px; image-rendering:pixelated; }
.site-header .warden-tabs a[aria-current="page"] { background:var(--panel); color:var(--text); box-shadow:inset 0 0 0 1px var(--accent); }
.site-header .warden-tabs + nav { margin-left:auto; }
@media (max-width:860px) { .site-header .wrap { flex-wrap:wrap; height:auto; padding-top:8px; padding-bottom:8px; row-gap:6px; } .warden-tabs { order:3; margin:0 auto; } }

/* ---- Scroll-world hero: sticky film, scroll drives its clock ----------- */
.world { position:relative; height:320vh; background:#000; }
.world-sticky { position:sticky; top:0; height:100vh; overflow:hidden; }
.world-video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; background:#000 url("world/promo-poster.jpg") center/cover no-repeat; }
.world.still .world-video { background-image:url("world/promo-end.jpg"); }
.world-shade { position:absolute; inset:0; background:linear-gradient(90deg,#000c 0%,#0008 38%,#0000 70%), linear-gradient(0deg,#000a,#0000 30%); pointer-events:none; }
.world-copy { position:relative; height:100%; display:grid; align-items:center; }
.world .beat { grid-area:1/1; max-width:620px; opacity:0; transform:translateY(18px); transition:opacity .45s ease, transform .45s ease; pointer-events:none; }
.world .beat.on { opacity:1; transform:none; pointer-events:auto; }
.world.still .world-copy { align-content:center; gap:28px; }
.world.still .beat { grid-area:auto; }
.catchline, .world-line { font-family:Georgia,'Times New Roman',serif; font-size:clamp(38px,5vw,68px); line-height:1.06; letter-spacing:-1.5px; margin:0; color:#fff; }
.catchline em { display:inline-block; font-style:italic; color:var(--accent-2); transition:opacity .35s ease, transform .35s ease; }
.catchline em.out { opacity:0; transform:translateY(-10px); }
.world-line em { font-style:italic; color:var(--accent-2); }
.world .actions { display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.world-progress { position:absolute; left:0; right:0; bottom:0; height:3px; background:#ffffff14; }
.world-progress i { display:block; height:100%; background:var(--accent); transform-origin:left; transform:scaleX(0); }
.world-hint { position:absolute; left:50%; bottom:22px; transform:translateX(-50%); font:600 11px var(--mono); letter-spacing:2px; text-transform:uppercase; color:#fff9; animation:hint 1.8s ease-in-out infinite; }
@keyframes hint { 50% { transform:translate(-50%,6px); opacity:.5; } }
@media (prefers-reduced-motion: reduce) { .world { height:auto; } .world-sticky { position:relative; height:auto; min-height:80vh; padding:80px 0; } .world-hint { display:none; } }

/* ---- Install ------------------------------------------------------------ */
.install { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:18px; }
.os-tabs { display:flex; gap:6px; margin-bottom:12px; }
.os-tabs button { font:inherit; font-size:14px; font-weight:600; padding:7px 14px; border-radius:8px; border:1px solid var(--line); background:transparent; color:var(--muted); cursor:pointer; }
.os-tabs button[aria-selected="true"] { color:var(--text); border-color:var(--accent); background:var(--bg-2); }
.os-panel { display:flex; align-items:center; gap:12px; background:var(--bg); border:1px solid var(--line); border-radius:10px; padding:12px 14px; }
.os-panel .shell { font:600 11px var(--mono); color:var(--muted); text-transform:uppercase; letter-spacing:1px; white-space:nowrap; }
.os-panel .cmd { flex:1; font:14px var(--mono); color:var(--text); overflow-x:auto; white-space:nowrap; }
.os-panel .cmd::before { content:"$ "; color:var(--accent); }
.copy { font:600 13px var(--mono); padding:6px 12px; border-radius:8px; border:1px solid var(--line); background:var(--bg-2); color:var(--text); cursor:pointer; }
.copy:hover { border-color:var(--accent); }
.small { font-size:13px; margin:12px 0 0; }
.card.path { display:flex; flex-direction:column; }
.card.path.featured { border-color:var(--accent); }
.card.path p { flex:1; }
.card.path .button { align-self:flex-start; }

/* ---- The pet ------------------------------------------------------------ */
.pet { position:fixed; right:18px; bottom:18px; z-index:20; display:flex; align-items:flex-end; gap:8px; pointer-events:none; }
.pet img { width:72px; height:72px; image-rendering:pixelated; filter:drop-shadow(0 6px 10px #0009); animation:bob 1.6s steps(2) infinite; pointer-events:auto; }
.pet.hop img { animation:hop .45s ease-out, bob 1.6s steps(2) .45s infinite; }
.pet-say { max-width:220px; margin:0 0 40px; padding:9px 12px; border-radius:12px 12px 2px 12px; background:var(--panel); border:1px solid var(--line); font-size:13px; line-height:1.4; box-shadow:0 8px 20px #0007; }
@keyframes bob { 50% { transform:translateY(-3px); } }
@keyframes hop { 40% { transform:translateY(-14px); } }
@media (max-width:600px) { .pet-say { display:none; } .pet img { width:56px; height:56px; } }
@media (prefers-reduced-motion: reduce) { .pet img, .pet.hop img { animation:none; } }

/* ---- ThreatWarden: black, purple and green ------------------------------ */
.theme-threat { --bg:#050407; --bg-2:#0c0912; --panel:#120d1c; --line:#2a2140; --text:#ece8f7; --muted:#a59cbf; --accent:#39ff88; --accent-ink:#03140a; --accent-2:#a78bfa; --warn:#ffd166; }
.theme-threat .site-header { background:#050407eb; }
.theme-threat .button { background:var(--accent); color:var(--accent-ink); }
.theme-threat .button:hover { background:#7dffb0; }
.theme-threat .button.secondary { background:transparent; color:var(--text); }
.theme-threat .site-header .warden-tabs a[aria-current="page"] { box-shadow:inset 0 0 0 1px #8b5cf6; }
.radar { --radar:#ff4d5e; --glow:#f2445588; position:relative; aspect-ratio:1; max-width:420px; width:100%; justify-self:center; border-radius:50%; border:1px solid color-mix(in srgb,var(--radar) 20%,transparent); background:radial-gradient(circle,color-mix(in srgb,var(--radar) 4%,transparent) 0 30%,transparent 31%), repeating-radial-gradient(circle,transparent 0 58px,color-mix(in srgb,var(--radar) 13%,transparent) 59px 60px); overflow:hidden; }
.theme-threat .radar { --radar:#39ff88; --glow:#8b5cf688; }
.radar::before { content:""; position:absolute; inset:0; border-radius:50%; background:conic-gradient(from 0deg,color-mix(in srgb,var(--radar) 33%,transparent),transparent 22%); animation:sweep 4s linear infinite; }
.radar img { position:absolute; left:50%; top:50%; width:46%; transform:translate(-50%,-50%); image-rendering:pixelated; filter:drop-shadow(0 0 18px var(--glow)); }
.radar .blip { position:absolute; width:8px; height:8px; border-radius:50%; background:var(--radar); box-shadow:0 0 12px var(--radar); animation:blip 4s ease-out infinite; }
@keyframes sweep { to { transform:rotate(1turn); } }
@keyframes blip { 0%,70% { opacity:0; } 75% { opacity:1; } 100% { opacity:0; } }
@media (prefers-reduced-motion: reduce) { .radar::before, .radar .blip { animation:none; } .radar .blip { opacity:1; } }
.stack .card .num { color:var(--accent); }
.stack .card h3 small { color:var(--muted); font-weight:500; font-size:14px; }
.levels { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.levels div { border:1px solid var(--line); border-radius:10px; padding:14px; background:var(--panel); }
.levels strong { display:block; font:700 13px var(--mono); text-transform:uppercase; letter-spacing:1px; }
.levels .clear strong { color:var(--accent); } .levels .watch strong { color:var(--warn); } .levels .alert strong { color:#ff4d6d; } .levels .off strong { color:var(--muted); }
.levels span { color:var(--muted); font-size:14px; }
@media (max-width:720px) { .levels { grid-template-columns:1fr 1fr; } }
.radar .b1 { left:24%; top:30%; animation-delay:.4s; } .radar .b2 { left:72%; top:62%; animation-delay:1.6s; } .radar .b3 { left:62%; top:20%; animation-delay:2.7s; }
.price .button[aria-disabled="true"] { opacity:.6; cursor:default; }
[hidden] { display: none !important; }

/* ==== Spec layout (docs/product-spec.md 2): one skeleton for both tabs ==== */

/* 1. Hero */
.landing .hero { padding:64px 0 72px; }
.hero .catchline { font-size:clamp(30px,3.6vw,48px); min-height:2.2em; display:flex; align-items:flex-end; }
.hero .catchline em { color:var(--accent-2); }
.landing .hero h1 { font-size:clamp(40px,4.4vw,60px); margin:14px 0 16px; }
.landing .hero .lede { max-width:44ch; margin-bottom:26px; }
.hero-media { justify-self:center; width:100%; }
.theme-threat .hero { background:radial-gradient(ellipse at 78% 30%,#5b21b655,transparent 62%), radial-gradient(ellipse at 10% 90%,#39ff8814,transparent 50%); }
.theme-threat .hero h1 em { color:var(--accent); }
.theme-threat .hero .eyebrow { color:var(--accent); }
.hero-media.radar { max-width:420px; }

/* 2. Install */
.install { display:grid; grid-template-columns:1fr 260px; gap:18px; padding:18px; }
.install-main { min-width:0; }
.os-panel { display:block; padding:16px; }
.os-panel p { margin:0 0 14px; color:var(--muted); }
.cmd-row { display:flex; align-items:center; gap:12px; }
.install-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:14px; font-size:13px; }
.install-oss { display:flex; flex-direction:column; gap:6px; padding:16px; border:1px dashed var(--line); border-radius:10px; font-size:14px; color:var(--muted); align-self:start; }
.install-oss strong { color:var(--text); }
@media (max-width:760px) { .install { grid-template-columns:1fr; } .cmd-row { flex-wrap:wrap; } }

/* 3. Scroll world, ThreatWarden: same component, the green clip */
.world-threat .world-video { background-image:url("world/threat-poster.jpg"); }
.world-threat.still .world-video { background-image:url("world/threat-end.jpg"); }
.world-threat .world-shade { background:linear-gradient(90deg,#050407e6 0%,#05040799 38%,#0000 70%), linear-gradient(0deg,#050407cc,#0000 30%); }

/* 4. Pet stage */
.stage-layout { display:grid; grid-template-columns:auto 1fr; gap:56px; align-items:center; }
.stage-pet { position:relative; display:flex; flex-direction:column; align-items:center; }
.stage-pet img { width:192px; height:192px; image-rendering:pixelated; filter:drop-shadow(0 14px 22px #000a); animation:bob 1.6s steps(2) infinite; }
.stage-say { min-height:3.2em; max-width:280px; margin:0 0 16px; padding:12px 14px; border-radius:14px 14px 14px 2px; background:var(--panel); border:1px solid var(--line); font-size:15px; line-height:1.4; box-shadow:0 10px 24px #0007; }
.colors { display:grid; gap:16px; margin-top:8px; }
.swatches { display:flex; flex-wrap:wrap; gap:8px; }
.swatch { width:30px; height:30px; border-radius:8px; border:2px solid var(--line); background:var(--swatch); cursor:pointer; }
.swatch[aria-pressed="true"] { border-color:var(--text); }
.parts { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; }
.part { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:14px; }
.part input[type=color] { width:34px; height:30px; padding:0; border:2px solid var(--line); border-radius:8px; background:none; cursor:pointer; }
.part input[type=color]::-webkit-color-swatch-wrapper { padding:2px; }
.part input[type=color]::-webkit-color-swatch { border:0; border-radius:5px; }
.part select { background:var(--panel); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:6px 8px; font:inherit; }
/* The memory demo, in How it works */
.demo-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:40px; align-items:center; margin:56px 0; }
@media (max-width:900px) { .demo-layout { grid-template-columns:1fr; gap:20px; } }
@media (max-width:700px) { .stage-layout { grid-template-columns:1fr; gap:24px; justify-items:center; text-align:center; } .swatches, .parts, .colors .row-actions { justify-content:center; } }
@media (prefers-reduced-motion: reduce) { .stage-pet img { animation:none; } }

/* 5. How it works */
.grid.four { grid-template-columns:repeat(4,1fr); }
@media (max-width:900px) { .grid.four { grid-template-columns:1fr 1fr; } }
@media (max-width:520px) { .grid.four { grid-template-columns:1fr; } }
.subhead { font-size:20px; margin:44px 0 16px; letter-spacing:-.2px; }
.soon { font-style:normal; margin-left:8px; padding:1px 7px; border-radius:999px; border:1px solid var(--line); color:var(--muted); font-size:11px; letter-spacing:.5px; }

/* 6. Pricing: RamWarden card in crimson, Pro card in ThreatWarden colors, on both pages */
.interval { display:inline-flex; gap:4px; padding:4px; margin-bottom:22px; border:1px solid var(--line); border-radius:999px; background:var(--bg-2); }
.interval button { font:inherit; font-size:14px; font-weight:600; padding:7px 16px; border-radius:999px; border:0; background:transparent; color:var(--muted); cursor:pointer; }
.interval button small { margin-left:6px; color:var(--accent-2); font-weight:500; }
.interval button[aria-pressed="true"] { background:var(--panel); color:var(--text); box-shadow:inset 0 0 0 1px var(--accent); }
.price-cards { display:grid; grid-template-columns:repeat(3,minmax(0,340px)); gap:18px; align-items:stretch; }
@media (max-width:1000px) { .price-cards { grid-template-columns:1fr; max-width:420px; } }
.price .tagline { margin:-8px 0 0; font-weight:650; color:var(--text); }
.price .badge { align-self:flex-start; padding:3px 10px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:12px; font-weight:750; letter-spacing:.3px; text-transform:uppercase; }
.price ul { list-style:none; padding-left:0; }
.price ul li { position:relative; padding-left:22px; }
.price ul li::before { content:"✓"; position:absolute; left:0; color:var(--accent); font-weight:800; }
.price ul li.lead { padding-left:0; color:var(--text); font-weight:650; }
.price ul li.lead::before { content:none; }
.price .fine { margin:-6px 0 0; font-size:13px; color:var(--muted); text-align:center; }
.price.tier-lite { background:var(--panel); }
.price.tier-lite .button { background:transparent; color:var(--text); border:1px solid var(--line); }
.price.tier-ram { box-shadow:0 18px 50px #f2445533; }
.pricing[data-interval="two_months"] [data-price="year"], .pricing[data-interval="year"] [data-price="two_months"] { display:none; }
.price .alt { color:var(--muted); font-size:14px; margin:-8px 0 0; }
.price.tier-ram { --accent:#f24455; --accent-ink:#fff; --panel:#21181d; --line:#443039; border-color:#f24455; background:#21181d; }
.price.tier-pro { --accent:#39ff88; --accent-ink:#03140a; --accent-2:#a78bfa; background:linear-gradient(160deg,#1b1030,#07050b); border-color:#8b5cf6; color:#ece8f7; }
.price.tier-pro h3 { color:#c4b5fd; }
.price.tier-pro ul { color:#a59cbf; }
.price .button { background:var(--accent); color:var(--accent-ink); }
.oss-line { color:var(--muted); font-size:14px; margin:6px 0 0; }

/* Corner pet: mute instead of hide */
.pet-mute { pointer-events:auto; position:absolute; top:-10px; right:-4px; padding:2px 8px; border-radius:999px; border:1px solid var(--line); background:var(--bg-2); color:var(--muted); font:600 11px var(--mono); cursor:pointer; }
.pet.muted .pet-say { display:none; }
.app .install { grid-template-columns:1fr; padding:0; border:0; background:none; }
.app .install-oss { display:none; }
.or { color:var(--muted); font-size:13px; text-transform:uppercase; letter-spacing:1px; margin:6px 0; }
.email-form { display:flex; gap:10px; flex-wrap:wrap; margin:8px 0; }
.email-form input { flex:1; min-width:200px; font:inherit; background:var(--bg-2); color:var(--text); border:1px solid var(--line); border-radius:10px; padding:10px 14px; }
.linkish { background:none; border:0; padding:0; color:var(--accent-2); font:inherit; font-size:14px; text-decoration:underline; cursor:pointer; }
.row-actions { display:flex; gap:10px; flex-wrap:wrap; }

.how-note { color:var(--muted); font-size:14px; margin:18px 0 0; }

.annual-reference { font-size: .5em; opacity: .6; margin-right: .4em; }

/* Shared pixel city: one media plane, a haze plane, and HTML content. */
.landing .city-hero, .city-interlude {
  position:relative; isolation:isolate; overflow:hidden; background:#070b1a;
  --city-shift:0px; --city-storm:0;
}
.landing .city-hero { min-height:calc(100svh - 72px); display:grid; align-items:center; padding:80px 0; }
.city-backdrop { position:absolute; inset:-60px 0; z-index:-1; pointer-events:none; transform:translateY(var(--city-shift)); }
.city-film,.city-still,.city-storm { position:absolute; width:100%; height:100%; inset:0; object-fit:cover; object-position:center; }
.city-storm { opacity:var(--city-storm); }
.city-haze { position:absolute; inset:0; background:linear-gradient(90deg,#070b1ae6,#070b1a99 52%,#070b1a22),linear-gradient(0deg,#070b1a,transparent 30%,#070b1a22 85%); }
.city-hero .hero-layout { width:min(1180px,calc(100% - 48px)); }
.city-hero .hero-copy,.city-caption { text-shadow:0 2px 20px #000b; }
.landing .city-hero .lede { color:#e0e6ff; }
.city-hero .hero-media { filter:drop-shadow(0 8px 30px #0009); }
.city-motion { position:absolute; bottom:20px; right:24px; z-index:2; color:#f5f7ff; background:#070b1abf; border:1px solid #b8c6ff66; border-radius:20px; padding:8px 14px; cursor:pointer; font:inherit; font-size:12px; }
.city-motion:focus-visible { outline:2px solid #52d7ff; outline-offset:4px; }
.city-interlude { min-height:76svh; display:grid; align-items:center; }
.city-caption { padding:100px 0; }
.city-caption h2 { font-size:clamp(34px,5vw,66px); line-height:1.08; letter-spacing:-2px; margin:20px 0 30px; max-width:19ch; color:#f5f7ff; }
.city-red .eyebrow { color:#ff9b66; }
.city-blue .eyebrow { color:#52d7ff; }
.city-red .city-haze { background:linear-gradient(90deg,#170711dc,#17071177 65%,#17071122),linear-gradient(0deg,#070b1a,transparent 30%); }
@media(max-width:700px) {
  .landing .city-hero { padding:64px 0 76px; }
  .city-hero .hero-layout { width:calc(100% - 36px); gap:24px; }
  .city-hero .hero-media { max-width:180px; }
  .city-haze { background:linear-gradient(90deg,#070b1ae6,#070b1a99),linear-gradient(0deg,#070b1a,transparent 40%); }
  .city-interlude { min-height:65svh; }
  .city-caption h2 { letter-spacing:-1px; }
}
@media(prefers-reduced-motion:reduce) {
  .city-backdrop { transform:none; }
  .city-film { content-visibility:hidden; }
  .city-hero .city-backdrop { background:url('city/blue-calm.jpg') center/cover; }
  .city-storm,.city-motion { display:none; }
}
.city-motion { right:auto; left:24px; }
#flow>section { margin:28px 0; padding:24px; border:1px solid #b8c6ff33; border-radius:18px; background:#101b4722; }
#flow textarea[readonly] { width:100%; box-sizing:border-box; padding:16px; margin-bottom:16px; color:inherit; background:#070b1a; border:1px solid #b8c6ff66; border-radius:10px; font:14px/1.6 var(--mono); }
.setup-check { display:flex; gap:8px; align-items:center; margin-top:20px; }
/* The world continues behind the explanation, customization and pricing. */
.landing main { background:#070b1a url('city/red-walkers.jpg') center/cover fixed; }
.landing.theme-threat main { background-image:url('city/blue-walkers.jpg'); }
.landing .city-content { background:linear-gradient(100deg,#070b1ab8,#070b1a7a); position:relative; }
.landing .city-content .sub { color:#e0e6ff; }
.landing .city-content .card { background:#0b1020df; }
.landing .city-content .stage-say { background:#101629e8; }
.scroll-reveal { opacity:0; transform:translateY(32px); transition:opacity .7s ease,transform .7s cubic-bezier(.2,.65,.2,1); }
.scroll-reveal.in-view { opacity:1; transform:translateY(0); }
@media(max-width:700px) { .landing main { background-attachment:scroll; background-size:auto 100vh; background-repeat:repeat-y; } }
@media(prefers-reduced-motion:reduce) { .scroll-reveal { opacity:1; transform:none; transition:none; } .landing main { background-attachment:scroll; } }
/* The account is always the last header item; its status comes from the API. */
.site-header a.account-header { display:inline-flex; align-items:center; gap:9px; min-height:36px; white-space:nowrap; }
.site-header a.account-connected { padding:4px 12px 4px 5px; border:1px solid #ffffff26; border-radius:24px; background:#101629c9; color:#f5f7ff; }
.account-avatar { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:linear-gradient(135deg,#92273b,#391933); color:#ffe6ec; flex-shrink:0; }
.account-avatar svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.account-identity { max-width:160px; overflow:hidden; text-overflow:ellipsis; font-size:12px; }
.account-online { width:6px; height:6px; background:#55e59b; border-radius:50%; flex-shrink:0; }
@media(max-width:700px) { .account-identity { display:none; } .site-header a.account-connected { padding-right:8px; gap:5px; } }

/* Keep the trial CTA on one line as the account badge gains a label. */
.site-header nav:last-child { position:relative; gap:14px; }
.site-header nav .button { flex-shrink:0; white-space:nowrap; }
.site-header a.account-header { flex-shrink:0; }
.account-details { position:absolute; top:calc(100% + 14px); right:0; z-index:100; width:min(340px,calc(100vw - 32px)); box-sizing:border-box; padding:18px; border:1px solid #ffffff26; border-radius:18px; background:#15121bf2; backdrop-filter:blur(22px); box-shadow:0 16px 48px #0008; display:grid; gap:14px; color:#f5f7ff; }
.account-method { display:flex; gap:10px; align-items:center; font-size:12px; overflow-wrap:anywhere; }
.account-method span:last-child { min-width:0; }
@media(max-width:1150px) { .site-header .account-identity { max-width:100px; } .site-header nav:last-child {gap:10px;} }

.site-header nav a { white-space:nowrap; }
.site-header .account-identity { max-width:128px; }

.site-header .brand { flex-shrink:0; }
.site-header .brand img { width:80px; height:56px; object-fit:contain; image-rendering:pixelated; }
/* Give the landing-page tabs their own row before the wider logo crowds navigation. */
@media (max-width:1100px) {
  .landing .site-header .wrap { flex-wrap:wrap; height:auto; padding-top:8px; padding-bottom:8px; row-gap:6px; }
  .landing .site-header .warden-tabs { order:3; margin:0 auto; }
}

/* ==== Phones (320 to 430px wide) ==========================================
   Measured on an iPhone at 320 to 430 CSS px. Before this block the landing
   header took three rows (about 175px of a 660px screen) and its tabs ran off
   the right edge at 320px; the corner pet sat on top of the hero copy; the
   OS and billing toggles wrapped or clipped. The rules below keep the header
   to two short rows, give buttons and toggles equal columns, and tighten the
   vertical rhythm. Copy is unchanged: only its wrapping is. */
.nowrap { white-space:nowrap; }
.pet { transition:opacity .25s ease, transform .25s ease, visibility 0s; }
/* pets.js tucks the corner pet away while the hero is on a phone screen:
   the hero already shows the same warden on its radar. */
.pet.tucked:not(.chatting) { opacity:0; transform:translateY(16px); visibility:hidden; transition:opacity .25s ease, transform .25s ease, visibility 0s .25s; }

@media (max-width:700px) {
  .wrap { padding:0 18px; }
  .landing .site-header .wrap { display:grid; grid-template-columns:auto 1fr; align-items:center; column-gap:12px; row-gap:8px; padding-top:8px; padding-bottom:10px; }
  .site-header .brand img, .landing .site-header .brand img { width:64px; height:44px; }
  .site-header nav:last-child { gap:12px; }
  .site-header nav:last-child .button.small { padding:7px 12px; font-size:13px; }
  .landing .site-header .brand { grid-row:1; grid-column:1; }
  .landing .site-header nav:last-child { grid-row:1; grid-column:2; justify-self:end; margin-left:0; }
  .landing .site-header .warden-tabs { grid-row:2; grid-column:1 / -1; order:0; margin:0; width:100%; }
  .site-header .warden-tabs a { flex:1; justify-content:center; padding:5px 8px; font-size:13px; }
  .site-header .warden-tabs a img { width:20px; height:20px; }
  .site-header .account-hint { display:none; }
  .site-header nav a { font-size:14px; }

  /* Hero */
  .landing .city-hero { min-height:0; padding:28px 0 64px; }
  .city-hero .hero-layout { width:auto; gap:28px; }
  .landing .hero .eyebrow { display:block; font-size:10px; letter-spacing:1.2px; line-height:1.7; }
  .hero .catchline { font-size:clamp(22px,6.8vw,28px); line-height:1.15; letter-spacing:-.5px; margin-top:12px; }
  .landing .hero h1 { font-size:clamp(34px,10.6vw,46px); line-height:1.05; letter-spacing:-1.2px; margin:12px 0 14px; }
  .landing .hero .lede { font-size:16px; line-height:1.6; margin-bottom:22px; }
  .hero .actions, .landing .hero .actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .hero .actions .button { padding:11px 10px; font-size:15px; text-align:center; }
  .hero .actions .button:first-child { grid-column:1 / -1; }
  .city-hero .hero-media { max-width:168px; }
  .city-motion { bottom:14px; left:18px; padding:6px 12px; font-size:11px; }

  /* Sections */
  section.block { padding:52px 0; }
  section.block > .wrap > p.sub { font-size:16px; margin-bottom:26px; }
  .city-caption h2 { font-size:clamp(30px,9vw,40px); margin:14px 0 24px; }
  .world-line { font-size:clamp(30px,9.4vw,40px); letter-spacing:-1px; }
  .card { padding:18px; }
  .subhead { margin-top:34px; }

  /* Install: three equal OS tabs instead of a row that clips "Linux" */
  .install { padding:14px; }
  .os-tabs button { flex:1; padding:7px 6px; }
  .os-panel { padding:14px; }

  /* Pricing: the billing toggle spans the column, one label per line */
  .interval { display:flex; width:100%; }
  .interval button { flex:1; padding:8px 10px; font-size:13px; line-height:1.3; }
  .interval button small { display:block; margin:2px 0 0; font-size:11px; }
  .price-cards { max-width:none; }
  .price .amount { font-size:32px; }

  /* Pet stage */
  .stage-pet img { width:152px; height:152px; }

  /* App pages */
  main.app { padding:36px 0 72px; }
  main.app h1, .prose h1 { font-size:28px; line-height:1.2; }
  .panel { padding:18px; }

  /* Corner pet: smaller, closer to the corner, clear of the home indicator.
     Its speech bubble is already hidden below 600px, so Mute has nothing to
     mute there and goes too (rule below); the sprite and "Ask me" stay. */
  .pet { right:max(10px, env(safe-area-inset-right)); bottom:max(12px, env(safe-area-inset-bottom)); }
  .pet[data-pet] { gap:4px; }
  .pet img { width:48px; height:48px; }
  .pet-ask { font-size:10px; padding:2px 8px; }

  footer { padding:28px 0 96px; }
  footer .wrap { gap:12px; }
}
/* `.site-header nav a` (muted gray) outranked `.button`, so the header's trial
   button had gray text on crimson. */
.site-header nav a.button { color:var(--accent-ink); }
/* `.small` (install notes) also sets margin-top:12px, which pushed the header's
   trial button 6px below the line of the links beside it. */
.site-header nav .button.small { margin:0; }
/* .city-caption's vertical padding shorthand zeroed .wrap's side padding, so
   the caption touched the screen edge below 1080px. */
.wrap.city-caption { padding-left:24px; padding-right:24px; }
@media (max-width:700px) { .wrap.city-caption { padding:72px 18px; } }
@media (max-width:600px) { .pet[data-pet] .pet-mute { display:none; } }
/* Signed out, the link is plain text plus its hint: no flex gap between them. */
.site-header a.account-header:not(.account-connected) { gap:0; }
