/* SectorForge · sectorforge.bytehavenstudios.com
   One stylesheet for every page: landing, guides, support, privacy, terms, 404.
   The look is the app's own: the navy "ink" canvas with its faint blueprint grid, amber as the one colour
   that acts, IBM Plex Sans with letter-spaced Plex Mono labels, and the cool disk-map ramp for anything
   that draws a drive. Colours are tokens from the app, never invented:
   apps/sectorforge/app/src/main/java/.../ui/theme/ForgePalette.kt (the forge bones, vermilion accent). Forked from driveforge-web.
   Dark is the default (the app's store art); a light scheme follows the reader's system setting and uses
   the app's own paper ramp. No JavaScript anywhere on this host (CSP script-src 'none'), and no inline
   style attributes (style-src 'self'): everything is a class in this file.
   A change here MUST bump site.css?v= on every page (scripts/gen-site.py --check enforces one version). */

/* ---------- fonts (self-hosted, OFL, the same IBM Plex files the app ships, subset to Latin) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-weight: 100 700; font-style: normal; font-display: swap;
  src: url("/assets/fonts/IBMPlexSans-Var.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/assets/fonts/IBMPlexMono-Medium.woff2") format("woff2"); }

/* ---------- tokens ---------- */
:root {
  --bg: #060C15;            /* INK, the canvas */
  --raised: #0B1524;        /* NAVY_SURFACE, bars and cards */
  --surface: #16263A;       /* NAVY_SURFACE_HIGH */
  --line: #22384A;          /* STEEL_DARKEST, hairlines */
  --outline: #4A6E8A;       /* STEEL_OUTLINE_DARK, borders that outline a control */
  --muted: #8DB2D2;         /* STEEL_LIGHT lifted a step for body-size text on ink */
  --body: #CFDBE8;          /* long-form text */
  --text: #E8EEF6;          /* ON_INK */
  --amber: #FF6E45;         /* ACCENT_70: fills, the one button that acts */
  --amber-hi: #FF9270;      /* ACCENT_70 lifted */
  --on-amber: #0B1524;
  --accent: #FF6E45;        /* accent used as text or line */
  --accent-hover: #FF9270;
  --accent-wash: rgba(255,110,69,0.10);
  --accent-edge: rgba(255,110,69,0.45);
  --ok: #7FE0A8; --ok-bg: #10301F;
  --danger: #F38B82; --danger-bg: #3A1714;
  --map1: #3E6E96; --map2: #5E6BB8; --map3: #7A5A9E; --map4: #1F7789; --map5: #4C71C7;
  --grid: rgba(127,168,204,0.055);
  --head-bg: rgba(11,21,36,0.84);
  --band: rgba(11,21,36,0.62);
  --tint: rgba(127,168,204,0.10);
  --shadow: 0 30px 70px rgba(0,0,0,0.55);
  --glow: rgba(255,110,69,0.24);
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --w: 72rem;               /* page column */
  --w-text: 46rem;          /* long-form column */
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F7F9FC;          /* PAPER */
    --raised: #FFFFFF;      /* PAPER_SURFACE */
    --surface: #E4EAF2;     /* PAPER_SURFACE_HIGH */
    --line: #D3DCE7;
    --outline: #5A7186;     /* STEEL_OUTLINE_LIGHT */
    --muted: #4A6278;
    --body: #24364A;
    --text: #0B1524;
    --accent: #B4380F;      /* ACCENT_40: vermilion as text on paper */
    --accent-hover: #7A2A12;
    --accent-wash: rgba(255,110,69,0.16);
    --accent-edge: rgba(180,56,15,0.6);
    --ok: #146B3A; --ok-bg: #C8F2D6;
    --danger: #B3261E; --danger-bg: #FFE5E2;
    --map1: #2F6289; --map2: #454E9B; --map3: #5C4A85; --map4: #17667A; --map5: #4364B0;
    --grid: rgba(47,98,137,0.07);
    --head-bg: rgba(255,255,255,0.86);
    --band: rgba(228,234,242,0.6);
    --tint: rgba(47,98,137,0.08);
    --shadow: 0 24px 60px rgba(11,21,36,0.22);
    --glow: rgba(255,110,69,0.34);
    color-scheme: light;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--text);
  background-color: var(--bg);
  /* the app's blueprint grid, very faint */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
img, svg { max-width: 100%; height: auto; display: block; }
strong { font-weight: 600; color: var(--text); }
code, kbd {
  font-family: var(--mono); font-size: 0.88em;
  background: var(--tint); padding: 0.1em 0.38em; border-radius: 0.3rem;
}
.skip {
  position: absolute; left: -999px; top: 0; z-index: 99;
  background: var(--surface); color: var(--text); padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* mono label, the app's "LAYOUT" voice */
.eyebrow, .kicker {
  font-family: var(--mono); font-weight: 500; font-size: 0.76rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.9rem;
}
.eyebrow .n { color: var(--accent); margin-right: 0.6rem; }
.kicker { display: flex; align-items: center; gap: 0.6rem; }
.kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--amber); flex: none; }

/* the wordmark: Drive in ink, Forge in amber, as the app's top bar draws it */
.wm-forge { color: var(--accent); }

/* ---------- header ---------- */
.site-head-wrap { background: var(--head-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 10; }
.site-head {
  max-width: var(--w); margin: 0 auto; padding: 0.7rem 1.25rem;
  display: flex; align-items: center; gap: 0.6rem 1rem; flex-wrap: wrap;
}
.site-head .brand { display: flex; align-items: center; gap: 0.7rem; color: var(--text); text-decoration: none; }
.site-head .brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-head .brand b { display: block; font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; line-height: 1.1; }
.site-head .brand small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }
.site-head nav { margin-left: auto; display: flex; gap: 0.5rem 1.3rem; flex-wrap: wrap; align-items: center; }
.site-head nav a {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; padding: 0.35rem 0;
}
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--accent); }
.site-head nav .lang-switch { border: 1px solid var(--outline); border-radius: 6px; padding: 0.2rem 0.5rem; }
.site-head nav .get { background: var(--amber); color: var(--on-amber); border-radius: 8px; padding: 0.4rem 0.8rem; font-weight: 500; }
.site-head nav .get:hover { background: var(--amber-hi); color: var(--on-amber); }

/* ---------- buttons ---------- */
.cta-row { display: flex; gap: 0.9rem 1.2rem; flex-wrap: wrap; align-items: center; margin: 2rem 0 0; padding: 0; list-style: none; }
.btn-play {
  display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none;
  background: var(--amber); color: var(--on-amber); border-radius: 14px; padding: 0.7rem 1.4rem 0.7rem 1.1rem;
  box-shadow: 0 10px 30px var(--glow), inset 0 -2px 0 rgba(0,0,0,0.14);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-play:hover { background: var(--amber-hi); color: var(--on-amber); transform: translateY(-1px); }
.btn-play svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.btn-play span { display: flex; flex-direction: column; line-height: 1.15; }
.btn-play small { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; }
.btn-play b { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-weight: 500;
  color: var(--text); border: 1px solid var(--outline); border-radius: 14px; padding: 0.95rem 1.2rem; line-height: 1.15;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost::after { content: "→"; font-family: var(--mono); }
.fine { font-size: 0.9rem; color: var(--muted); margin: 1rem 0 0; }

/* ---------- hero ---------- */
main { overflow-x: clip; }   /* the phone glow bleeds past the column on narrow screens */
.hero {
  position: relative; max-width: var(--w); margin: 0 auto; padding: 4.5rem 1.25rem 4rem;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center;
}
.hero h1 { font-size: clamp(2.35rem, 6.2vw, 4.3rem); margin-bottom: 1.1rem; letter-spacing: -0.03em; line-height: 1.02; }
.hero h1 .accent { color: var(--accent); display: block; }
.hero .lede { font-size: 1.2rem; color: var(--muted); max-width: 33em; }
.hero .lede strong { color: var(--text); font-weight: 500; }

/* the phone, with the amber forge-glow of the feature graphic behind it, and two "readout" tags */
.device { position: relative; justify-self: center; }
.device::before {
  content: ""; position: absolute; inset: -14% -28%; z-index: -1;
  background: radial-gradient(closest-side, var(--glow), rgba(255,110,69,0.07) 55%, transparent 75%);
}
.phone {
  width: min(300px, 72vw); padding: 9px; border-radius: 38px;
  background: linear-gradient(160deg, #2A4359, #0B1524 40%, #16263A);
  box-shadow: var(--shadow), 0 0 0 1px rgba(127,168,204,0.25), inset 0 0 0 1px rgba(255,255,255,0.05);
}
.phone img { border-radius: 30px; background: #060C15; }
.tag {
  position: absolute; z-index: 2; background: var(--raised); border: 1px solid var(--line); border-radius: 12px;
  padding: 0.55rem 0.8rem; box-shadow: 0 14px 34px rgba(0,0,0,0.35); font-size: 0.86rem; font-weight: 500; line-height: 1.25;
  display: flex; flex-direction: column; gap: 0.1rem; max-width: 12.5rem;
}
.tag small { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.tag.t1 { left: -4.2rem; top: 50%; border-left: 3px solid var(--ok); }
.tag.t2 { right: -3.6rem; top: 22%; border-left: 3px solid var(--amber); }

/* ---------- the disk map: the app's partition bar, used as the site's signature ---------- */
.diskmap { margin: 2.2rem 0 0; max-width: 34rem; }
.diskmap .head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.diskmap .head span:last-child { letter-spacing: 0.04em; text-transform: none; text-align: right; }
.diskmap ol { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; height: 3.4rem; }
.diskmap li {
  position: relative; border-radius: 9px; display: flex; align-items: flex-end; min-width: 0;
  padding: 0 0.7rem 0.55rem; font-weight: 600; font-size: 0.84rem; color: #F4F8FC; overflow: hidden; white-space: nowrap;
  background: var(--map1);
}
.diskmap li::after { content: ""; position: absolute; left: 0.55rem; right: 0.55rem; bottom: 0.3rem; height: 3px;
  border-radius: 2px; background: rgba(255,255,255,0.28); }
.diskmap li:nth-child(2) { background: var(--map2); }
.diskmap li:nth-child(3) { background: var(--map3); }
.diskmap li:nth-child(4) { background: var(--map4); }
.diskmap li:nth-child(5) { background: var(--map5); }
.diskmap li.sel { box-shadow: inset 0 0 0 2px var(--amber); }
.diskmap li.void { background: repeating-linear-gradient(135deg, var(--surface) 0 6px, transparent 6px 12px); color: var(--muted); border: 1px dashed var(--outline); }
.diskmap li.void::after { display: none; }
.f1 { flex: 1; } .f2 { flex: 2; } .f3 { flex: 3; } .f4 { flex: 4; } .f5 { flex: 5; } .f6 { flex: 6; } .f8 { flex: 8; } .f10 { flex: 10; }

/* ---------- at-a-glance strip ---------- */
.strip-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--band); }
.strip {
  max-width: var(--w); margin: 0 auto; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; gap: 0.6rem 2.2rem; list-style: none;
}
.strip li { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.strip li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 0.6rem; vertical-align: 1px; }

/* ---------- sections ---------- */
.section { max-width: var(--w); margin: 0 auto; padding: 5.5rem 1.25rem; }
.section > h2, .split h2 { font-size: clamp(1.75rem, 3.8vw, 2.6rem); margin-bottom: 0.45em; letter-spacing: -0.02em; scroll-margin-top: 5rem; }
.section .sub { color: var(--muted); max-width: 42em; margin-bottom: 2.4rem; font-size: 1.1rem; }
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- three steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps3 li { counter-increment: s; background: var(--raised); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.5rem 0; overflow: hidden; display: flex; flex-direction: column; }
.steps3 li::before { content: "0" counter(s); font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.16em; color: var(--accent); }
.steps3 h3 { font-size: 1.25rem; margin: 0.5rem 0 0.4rem; }
.steps3 p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.4rem; }
.steps3 .crop { margin: auto 0 0; height: 15rem; overflow: hidden; border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; background: #060C15; }
.steps3 .crop img { width: 100%; }
.steps3 .crop.top img { margin-top: -18%; }
.steps3 .crop.mid img { margin-top: -38%; }
.steps3 .crop.low img { margin-top: -42%; }

/* ---------- feature splits ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 3.5rem; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .phone { width: min(280px, 70vw); justify-self: center; }
.split p { color: var(--muted); max-width: 36em; }
.split p strong { color: var(--text); }
.split + .split { margin-top: 6rem; }
.pill { display: inline-block; font-family: var(--mono); font-size: 0.64rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--outline); color: var(--muted); border-radius: 6px; padding: 0.1rem 0.45rem; vertical-align: 0.15em; white-space: nowrap; }
.pill.free { border-color: var(--ok); color: var(--ok); }
.pill.pro { border-color: var(--accent); color: var(--accent); }
.more { font-weight: 500; }
.more::after { content: " →"; font-family: var(--mono); }

.warnbox { border-radius: 14px; background: var(--danger-bg); color: var(--danger); padding: 0.9rem 1.1rem;
  font-weight: 500; margin: 0 0 1.4rem; display: flex; gap: 0.75rem; align-items: flex-start; max-width: 32rem; }
.warnbox::before { content: "!"; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px solid currentColor;
  display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; margin-top: 0.1rem; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0; }
.checks li { padding: 0.7rem 0 0.7rem 2.2rem; position: relative; border-top: 1px solid var(--line); color: var(--muted); }
.checks li strong { color: var(--text); font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 1.05rem; width: 1rem; height: 0.55rem;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }

/* the "becomes" plate: a drawn layout card, used where no screenshot says it better */
.plate { background: var(--raised); border: 1px solid var(--line); border-radius: 22px; padding: 1.6rem; box-shadow: var(--shadow); }
.plate .diskmap { margin: 0 0 1.4rem; max-width: none; }
.plate .diskmap:last-child { margin-bottom: 0; }
.plate .diskmap ol { height: 3rem; }

/* ---------- tables (filesystems, free vs Pro, guide tables) ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--raised); margin: 0 0 1.5rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.96rem; }
th, td { text-align: left; padding: 0.8rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
tbody th { font-weight: 600; }
td { color: var(--body); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 6.5rem; }
.compare td:first-child { color: var(--text); }
.compare .grp td { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); background: var(--tint); text-align: left; }
.yes, .no { display: inline-block; width: 1.25rem; height: 1.25rem; position: relative; vertical-align: middle; }
.yes::before { content: ""; position: absolute; left: 0.15rem; top: 0.2rem; width: 0.9rem; height: 0.5rem;
  border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.no::before { content: ""; position: absolute; left: 0.25rem; right: 0.25rem; top: 50%; height: 2px; background: var(--outline); }
.yes span, .no span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare .procol { background: var(--accent-wash); }

/* ---------- cards ---------- */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.1rem; list-style: none; margin: 0; padding: 0; }
.gcard a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--text);
  background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 1.25rem 1.3rem 1.1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gcard a:hover { border-color: var(--accent); transform: translateY(-2px); }
.gcard .k { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.55rem; }
.gcard b { font-size: 1.08rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 0.45rem; }
.gcard .d { font-size: 0.92rem; color: var(--muted); line-height: 1.5; }
.gcard .go { margin-top: auto; padding-top: 0.9rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gcard .go::after { content: " →"; }

/* ---------- private + need ---------- */
.panel {
  border: 1px solid var(--line); border-radius: 24px; padding: 2.4rem; background: var(--raised);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem;
}
.panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.panel p, .panel li { color: var(--muted); }
.panel ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.panel li { margin: 0.35rem 0; }
.chain { margin: 1.4rem 0 0; color: var(--muted); }
.chain svg { width: 100%; max-width: 27rem; }
.chain .st { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chain .am { fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 3 6; }
.chain .fa { fill: var(--amber); }
.chain text { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; fill: currentColor; text-transform: uppercase; }
.prose .chain { background: var(--raised); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; margin: 1.6rem 0; }
.prose .chain svg { margin: 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.4rem 1.1rem 0; font-weight: 600; font-size: 1.08rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.3rem; top: 0.95rem; font-family: var(--mono); font-size: 1.3rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--body); margin: 0 0 1.2rem; max-width: 44em; }

/* ---------- outro ---------- */
.outro { text-align: center; padding: 5.5rem 1.25rem 4.5rem; max-width: var(--w); margin: 0 auto; }
.outro img { width: 88px; margin: 0 auto 1.4rem; border-radius: 22px; box-shadow: 0 18px 44px var(--glow); }
.outro h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); letter-spacing: -0.02em; }
.outro .cta-row { justify-content: center; }

/* ---------- long-form documents (support, terms, 404) ---------- */
.doc { max-width: var(--w-text); margin: 0 auto; padding: 3rem 1.25rem 4.5rem; }
.doc h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); margin-bottom: 0.4em; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.3rem; margin-top: 2.4rem; scroll-margin-top: 5rem; }
.doc p, .doc li { color: var(--body); }
.doc ul { padding-left: 1.25rem; }
.doc li { margin: 0.4rem 0; }
.doc .lang { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin-bottom: 1.6rem; letter-spacing: 0.03em; }
.doc .lang [aria-current="page"] { color: var(--text); }

/* ---------- guides ---------- */
.crumbs { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 1.6rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

.guide { max-width: var(--w); margin: 0 auto; padding: 2.4rem 1.25rem 4rem; display: grid; grid-template-columns: minmax(0, var(--w-text)) 17rem; gap: 4rem; justify-content: center; align-items: start; }
.guide-main { min-width: 0; }
.guide-head { border-bottom: 1px solid var(--line); padding-bottom: 1.8rem; margin-bottom: 2rem; }
.guide-head h1 { font-size: clamp(1.95rem, 4.6vw, 2.9rem); letter-spacing: -0.025em; margin-bottom: 0.5em; }
.guide-head .lede { font-size: 1.17rem; color: var(--muted); margin: 0 0 1.2rem; }
.guide-head .meta { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.guide-head .meta a { color: var(--muted); }
.guide-head .diskmap { margin: 1.6rem 0 0; max-width: none; }
.guide-head .diskmap ol { height: 2.9rem; }

.answer { background: var(--raised); border: 1px solid var(--accent-edge); border-left: 4px solid var(--amber); border-radius: 14px; padding: 1.15rem 1.3rem; margin: 0 0 2rem; }
.answer .h { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.4rem; }
.answer p { margin: 0; color: var(--text); }

.prose h2 { font-size: 1.55rem; margin: 2.8rem 0 0.7rem; scroll-margin-top: 5rem; letter-spacing: -0.015em; }
.prose h3 { font-size: 1.14rem; margin: 1.9rem 0 0.5rem; scroll-margin-top: 5rem; }
.prose p, .prose li { color: var(--body); }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.prose li { margin: 0.45rem 0; }
.prose ol.steps { list-style: none; padding: 0; counter-reset: st; margin: 1.2rem 0 1.6rem; }
.prose ol.steps > li { counter-increment: st; position: relative; padding: 0.15rem 0 1.15rem 3.2rem; margin: 0; }
.prose ol.steps > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 2.1rem; height: 2.1rem; border-radius: 9px;
  background: var(--amber); color: var(--on-amber); font-family: var(--mono); font-weight: 500; display: grid; place-items: center; font-size: 0.95rem; }
.prose ol.steps > li::after { content: ""; position: absolute; left: 1.02rem; top: 2.4rem; bottom: 0.2rem; width: 2px; background: var(--line); }
.prose ol.steps > li:last-child::after { display: none; }
.prose ol.steps > li > b { display: block; color: var(--text); font-size: 1.06rem; margin-bottom: 0.2rem; }
.note, .warn { border-radius: 14px; padding: 1rem 1.2rem; margin: 1.4rem 0; border: 1px solid var(--line); background: var(--raised); }
.note p, .warn p { margin: 0; }
.note .h, .warn .h { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.3rem; font-weight: 500; }
.note .h { color: var(--accent); }
.warn { background: var(--danger-bg); border-color: transparent; }
.warn p, .warn .h, .warn strong { color: var(--danger); }
.shot { margin: 1.8rem 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 1.5rem; align-items: center;
  background: var(--raised); border: 1px solid var(--line); border-radius: 22px; padding: 1.3rem; }
.shot .phone { width: 200px; padding: 6px; border-radius: 26px; box-shadow: 0 14px 34px rgba(0,0,0,0.35), 0 0 0 1px rgba(127,168,204,0.25); }
.shot .phone img { border-radius: 21px; }
.shot figcaption { color: var(--muted); font-size: 0.95rem; }
.shot figcaption b { display: block; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; font-weight: 500; }

.getbox { margin: 2.6rem 0; border-radius: 22px; padding: 1.7rem; border: 1px solid var(--accent-edge);
  background: radial-gradient(120% 120% at 100% 0%, var(--accent-wash), transparent 60%), var(--raised);
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.getbox img { width: 64px; height: 64px; border-radius: 16px; }
.getbox h2 { font-size: 1.3rem; margin: 0 0 0.35rem; }
.getbox p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.getbox .cta-row { margin-top: 1.1rem; }

.guide-side { position: sticky; top: 5.2rem; font-size: 0.92rem; display: grid; gap: 1.6rem; }
.side-h { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.7rem; }
.toc { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 0.3rem 0 0.3rem 0.9rem; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.side-app { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem; background: var(--raised); }
.side-app .row { display: flex; gap: 0.7rem; align-items: center; margin-bottom: 0.7rem; }
.side-app img { width: 40px; height: 40px; border-radius: 10px; }
.side-app .row b { display: block; line-height: 1.2; }
.side-app small { color: var(--muted); font-size: 0.8rem; }
.side-app p { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.9rem; }
.side-app .btn-play { padding: 0.5rem 0.9rem 0.5rem 0.7rem; border-radius: 11px; gap: 0.6rem; box-shadow: none; }
.side-app .btn-play svg { width: 20px; height: 20px; }
.side-app .btn-play b { font-size: 0.98rem; }
.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.3rem; margin: 0 0 1.1rem; }

.hub-head { max-width: var(--w); margin: 0 auto; padding: 3.4rem 1.25rem 0.5rem; }
.hub-head h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.03em; max-width: 18em; }
.hub-head .lede { font-size: 1.17rem; color: var(--muted); max-width: 40em; }
.hub-group { max-width: var(--w); margin: 0 auto; padding: 2.2rem 1.25rem 0.6rem; }
.hub-group h2 { font-size: 1.3rem; margin-bottom: 1.1rem; display: flex; align-items: center; gap: 0.8rem; }
.hub-group h2::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hub-foot { max-width: var(--w); margin: 0 auto; padding: 1rem 1.25rem 3rem; }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); margin-top: 2rem; background: var(--band); }
.site-foot .inner {
  max-width: var(--w); margin: 0 auto; padding: 1.6rem 1.25rem 3rem;
  display: flex; gap: 0.6rem 1.6rem; flex-wrap: wrap; align-items: center;
  font-family: var(--mono); font-size: 0.78rem; color: var(--muted);
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.site-foot .studio { margin-right: auto; }
.site-foot .studio img { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 0.5rem; }
.foot-cols { max-width: var(--w); margin: 0 auto; padding: 2.6rem 1.25rem 0.6rem; display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 2rem; }
.foot-cols h2 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; font-size: 0.93rem; }
.foot-cols li { margin: 0.4rem 0; }
.foot-cols .about p { color: var(--muted); font-size: 0.93rem; max-width: 24em; margin: 0.8rem 0 0; }
.foot-cols .about b { font-size: 1.15rem; color: var(--text); }

/* ---------- narrow screens ---------- */
@media (max-width: 1180px) {
  .tag.t1 { left: -1.5rem; } .tag.t2 { right: -1.2rem; }
}
@media (max-width: 1080px) {
  .guide { grid-template-columns: minmax(0, var(--w-text)); gap: 2rem; }
  .guide-side { position: static; }
  .guide-side .toc-box { display: none; }
}
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 2.8rem; }
  .split, .panel { grid-template-columns: 1fr; gap: 2rem; }
  .split.flip > :first-child { order: 0; }
  .split + .split { margin-top: 4rem; }
  .section { padding: 3.6rem 1.25rem; }
  .panel { padding: 1.6rem 1.3rem; }
  .site-head .brand small { display: none; }
  .steps3 { grid-template-columns: 1fr; }
  .steps3 .crop { height: 12rem; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols .about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-head nav .opt { display: none; }
  .tag { display: none; }
  .shot { grid-template-columns: 1fr; justify-items: center; }
  .getbox { grid-template-columns: 1fr; }
  th, td { padding: 0.65rem 0.75rem; }
  .compare td:not(:first-child), .compare th:not(:first-child) { width: 3.6rem; }
  .diskmap li { font-size: 0.72rem; padding: 0 0.4rem 0.55rem; }
  .btn-ghost { padding: 0.8rem 1rem; }
}
@media (max-width: 400px) {
  .site-head { padding: 0.6rem 0.9rem; }
  .site-head nav { gap: 0.4rem 0.8rem; }
  .site-head nav a { font-size: 0.7rem; letter-spacing: 0.06em; }
  .hero, .section, .guide, .hub-head, .hub-group, .hub-foot, .doc { padding-left: 1rem; padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-play, .gcard a { transition: none; }
}

/* ---------- policy shell (privacy pages) ----------
   Hero with the app's own icon, an on-this-page rail, the policy column, and the ByteHaven publisher card. */
.policy { max-width: var(--w); margin: 0 auto; padding: 0 1.25rem 4rem; }
.policy-hero {
  position: relative; margin: 2.4rem 0 2.6rem; padding: 2.2rem 2.2rem 1.6rem;
  border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, var(--accent-wash) 0%, transparent 55%), var(--raised);
}
.policy-back {
  display: inline-flex; gap: 0.45rem; align-items: center; margin-bottom: 1.6rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.policy-back:hover { color: var(--accent); }
.policy-title { display: flex; gap: 1.4rem; align-items: center; }
.policy-icon { width: 72px; height: 72px; border-radius: 18px; flex: none; box-shadow: 0 10px 30px rgba(0,0,0,0.3), 0 0 0 1px var(--line); }
.policy-eyebrow { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 0.45rem; }
.policy-hero h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); margin: 0 0 0.35rem; }
.policy-hero .docmeta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); margin: 0; }
.policy-hero .lang { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted);
  margin: 1.6rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.policy-hero .lang a { color: var(--muted); }
.policy-hero .lang [aria-current="page"] { color: var(--accent); }
.policy-summary { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.3rem 0 0; padding: 0; list-style: none; }
.policy-summary li { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ok); background: var(--ok-bg); border-radius: 999px; padding: 0.25rem 0.75rem; }

.policy-grid { display: grid; grid-template-columns: 14rem minmax(0, var(--w-text)); gap: 3.5rem; justify-content: center; }
.policy-toc { position: sticky; top: 5.5rem; align-self: start; font-size: 0.9rem; }
.policy-toc-h { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.8rem; }
.policy-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); counter-reset: toc; }
.policy-toc li { counter-increment: toc; }
.policy-toc a { display: block; padding: 0.32rem 0 0.32rem 1rem; margin-left: -1px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none; line-height: 1.35; }
.policy-toc a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: var(--mono); font-size: 0.72rem; opacity: 0.7; }
.policy-toc a:hover { color: var(--text); border-left-color: var(--accent); }

.policy-body.doc { max-width: none; margin: 0; padding: 0; }
.policy-body h2 { scroll-margin-top: 5.5rem; padding-top: 2.2rem; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.policy-body h2::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 2px;
  background: var(--amber); margin-right: 0.7rem; vertical-align: 0.18em; }
.policy-body code { overflow-wrap: anywhere; }

.publisher {
  max-width: calc(14rem + 3.5rem + var(--w-text)); margin: 4rem auto 0; padding: 2rem 2.2rem;
  border: 1px solid var(--line); border-radius: 22px; background: var(--raised);
}
.publisher-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.publisher-head h2 { font-size: 1.35rem; margin: 0; scroll-margin-top: 5.5rem; }
.publisher-head img { width: 40px; height: 40px; flex: none; }
.publisher > p { color: var(--muted); max-width: 44em; }
.publisher-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 1.4rem 0; }
.publisher-facts div { border-left: 2px solid var(--amber); padding-left: 0.9rem; }
.publisher-facts dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.publisher-facts dd { margin: 0.2rem 0 0; }
.publisher-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; margin: 0; font-size: 0.92rem; }
.publisher .policy-eyebrow { color: var(--muted); text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; }

@media (max-width: 900px) {
  .policy-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .policy-toc { position: static; margin-bottom: 1rem; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; background: var(--raised); }
  .policy-toc ol { columns: 2; column-gap: 1.5rem; }
  .policy-hero { padding: 1.6rem 1.3rem 1.3rem; margin-top: 1.4rem; }
  .policy-title { gap: 1rem; }
  .policy-icon { width: 56px; height: 56px; border-radius: 14px; }
  .publisher { padding: 1.5rem 1.3rem; }
  .publisher-facts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .policy-toc ol { columns: 1; } }

/* ---------- SectorForge additions (2026-11-30) ---------- */
/* the sector map: the scan's surface view, used as the hero until store screenshots exist (D088) */
.secmap { width: min(380px, 80vw); margin: 0; padding: 1.4rem; border-radius: 24px; background: var(--raised);
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.secmap svg { display: block; width: 100%; height: auto; }
.secmap .sm-ok { fill: var(--map1); opacity: 0.55; }
.secmap .sm-slow { fill: var(--map3); }
.secmap .sm-bad { fill: var(--danger); }
.secmap .sm-ring { fill: none; stroke: var(--amber); stroke-width: 2.5; }
/* steps without screenshots */
.steps3.nos li { padding-bottom: 0.2rem; }
/* no Play listing yet: the button is a label, not a link */
.btn-play.soon { background: transparent; color: var(--text); border: 1px solid var(--outline); box-shadow: none; cursor: default; }
.btn-play.soon:hover { transform: none; background: transparent; color: var(--text); }
.btn-play.soon small { color: var(--muted); }
.site-head nav .get.soon { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 500; }
.split > .checks { margin: 0; }
