/* BoomBigNose site — "Night ledger" (Campus v3). Shared by index, install, guide, first-run. No build step, no JS framework. */
:root {
  --bg: #0b1222;
  --bg-2: #0e1730;
  --surface: #111c36;
  --surface-2: #15223f;
  --line: rgb(148 163 205 / .14);
  --line-strong: rgb(148 163 205 / .26);
  --text: #eaeef8;
  --muted: #94a0bf;
  --soft: #c3cbe0;
  --gold: #f6c56e;
  --orange: #f28a33;
  --orange-2: #f6a04a;
  --accent: #f6a04a;
  --on-accent: #1a0e03;
  --grad: linear-gradient(100deg, #f9d487 0%, #f6a04a 55%, #f28a33 100%);
  --grad-btn: linear-gradient(180deg, #f8a955 0%, #f28a33 100%);
  --radius: 14px;
  --font-display: Prompt, "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  --font: "IBM Plex Sans Thai", Prompt, "Noto Sans Thai", Sarabun, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; position: relative; overflow-x: clip; counter-reset: sec;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16.5px; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* fixed night backdrop: warm lamp top-right, navy lift left, blueprint grid fading out */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(48vw 44vh at 96% -6%, rgb(242 138 51 / .2), transparent 70%),
    radial-gradient(60vw 50vh at 0% 8%, rgb(37 68 140 / .32), transparent 72%),
    radial-gradient(70vw 40vh at 50% 120%, rgb(37 68 140 / .22), transparent 70%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .7;
  background:
    linear-gradient(rgb(148 163 205 / .07) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(148 163 205 / .07) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 0%, transparent 72%);
}
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #ffd9a8; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; height: auto; }
::selection { background: rgb(242 138 51 / .4); color: #fff; }
.skip {
  position: absolute; left: 16px; top: -64px; background: var(--grad-btn); color: var(--on-accent);
  padding: 8px 14px; border-radius: 10px; font-weight: 700; z-index: 90;
}
.skip:focus { top: 14px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
body.doc .wrap { max-width: 860px; }

/* ───────── nav: full-width ledger bar ───────── */
header.nav {
  position: sticky; top: 0; z-index: 50; padding: 10px 0;
  background: rgb(11 18 34 / .8); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
header.nav > .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px rgb(255 255 255 / .2); }
.nav-links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin-left: auto; margin-right: 8px; }
.nav-links a:not(.btn) {
  color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px;
  min-height: 40px; padding: 0 14px; border-radius: 8px; display: inline-flex; align-items: center;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:not(.btn):hover { color: #fff; background: rgb(148 163 205 / .1); }

/* ───────── buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px;
  background: var(--grad-btn); color: var(--on-accent); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px; line-height: 1.3;
  border-radius: 10px; padding: 10px 22px; min-height: 44px;
  border: 1px solid rgb(255 214 160 / .5); cursor: pointer;
  box-shadow: 0 10px 28px -12px rgb(242 138 51 / .8), inset 0 1px 0 rgb(255 255 255 / .35);
  transition: transform .2s var(--ease), box-shadow .2s ease, filter .2s ease;
}
.btn:hover { color: var(--on-accent); transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 16px 36px -12px rgb(242 138 51 / .95), inset 0 1px 0 rgb(255 255 255 / .4); }
.btn.secondary {
  background: rgb(148 163 205 / .06); color: var(--text); border-color: var(--line-strong); box-shadow: none; filter: none;
}
.btn.secondary:hover { color: #fff; border-color: rgb(246 160 74 / .7); background: rgb(242 138 51 / .12); box-shadow: none; }
.btn:not(.secondary) .chip { color: var(--on-accent); border-color: rgb(26 14 3 / .45); background: rgb(255 255 255 / .35); }
.btn.sm { min-height: 40px; padding: 6px 16px; font-size: 14.5px; }
.btn.lg { min-height: 56px; padding: 14px 30px; font-size: 17px; }
#primary-download::before { /* download glyph, drawn in CSS so install.js textContent swap keeps it */
  content: ""; width: 20px; height: 20px; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 11l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ───────── type ───────── */
h1, h2, h3 { font-family: var(--font-display); }
h1 { margin: 0; font-weight: 800; letter-spacing: -.035em; line-height: 1.06; }
h2 { font-size: clamp(28px, 3.8vw, 46px); line-height: 1.25; letter-spacing: -.01em; margin: 0 0 14px; font-weight: 700; }
h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.4; font-weight: 600; letter-spacing: -.005em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; padding-bottom: .08em; }
.lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; margin: 0 0 8px; color: var(--text); }
.en { color: var(--muted); font-size: 17px; margin: 0 0 28px; }
.meta { color: var(--muted); font-size: 14.5px; margin: 16px 0 0; max-width: 64ch; }
.sub { color: var(--muted); margin: 0 0 36px; max-width: 72ch; font-size: 17px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--gold);
  padding: 6px 14px 6px 12px; border-radius: 6px; background: rgb(246 197 110 / .07); border: 1px dashed rgb(246 197 110 / .4);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgb(242 138 51 / .22), 0 0 12px var(--orange); animation: pulse 2.6s ease-in-out infinite; }
code, .mono, pre { font-family: var(--mono); }
code { font-size: .9em; overflow-wrap: anywhere; color: #ffd9a8; background: rgb(148 163 205 / .1); padding: .08em .4em; border-radius: 5px; }
.mono, pre { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; word-break: break-word; line-height: 1.6; }
.card code.mono, .mono, code.mono { color: var(--muted); background: none; padding: 0; }
p, li { overflow-wrap: break-word; }
section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.sec-head { max-width: 980px; margin-bottom: 36px; }
.sec-head .sub { margin-bottom: 0; }
.split .sec-head { margin-bottom: 0; }
/* ledger index above each section title */
body.home main > section:not(.stack):not(.privacy) .sec-head { counter-increment: sec; }
body.home main > section:not(.stack):not(.privacy) .sec-head::before {
  content: counter(sec, decimal-leading-zero); display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--orange-2);
}
body.home main > section:not(.stack):not(.privacy) .sec-head::after { content: none; }
body.home main > section:not(.stack):not(.privacy) .sec-head h2::before {
  content: ""; display: block; width: 44px; height: 2px; margin-bottom: 16px; background: var(--grad); border-radius: 2px;
}

/* ───────── cards: navy ledger panels ───────── */
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, rgb(255 255 255 / .03), transparent 40%), var(--surface);
  box-shadow: 0 24px 50px -34px rgb(0 0 0 / .9);
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease;
}
.card::before { /* amber corner tick */
  content: ""; position: absolute; left: -1px; top: 18px; width: 3px; height: 26px; border-radius: 0 3px 3px 0;
  background: var(--grad); opacity: .85;
}
.card:hover { border-color: rgb(246 160 74 / .45); }
.card h3 { color: var(--text); }
.card p, .card li { margin: 0; color: var(--muted); }
.card p + p { margin-top: 12px; }
.card ul { margin: 8px 0 0; padding-left: 1.2rem; }
.card li { margin: 8px 0; }
.card.is-this { border-color: rgb(246 160 74 / .6); background: linear-gradient(180deg, rgb(242 138 51 / .14), transparent 60%), var(--surface-2); box-shadow: 0 0 0 1px rgb(242 138 51 / .2), 0 36px 80px -34px rgb(242 138 51 / .6); }
a.card:hover, .os:hover { transform: translateY(-3px); }
.wrap.card { max-width: 860px; }
.card .sub { margin: 16px 0 0; font-size: 15px; }
.ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-tile {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: var(--orange-2);
  background: rgb(242 138 51 / .1); border: 1px solid rgb(246 160 74 / .4);
}

/* ordered lists inside cards read as ledger steps */
ol, ul { margin: 0; padding-left: 1.2em; }
.card ol { list-style: none; counter-reset: s; padding: 0; margin: 14px 0 0; }
.card ol > li { counter-increment: s; position: relative; padding-left: 44px; margin: 0 0 16px; }
.card ol > li:last-child { margin-bottom: 0; }
.card ol > li::before {
  content: counter(s); position: absolute; left: 0; top: 2px; width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 500; line-height: 1;
  color: var(--orange-2); background: rgb(242 138 51 / .1); border: 1px solid rgb(246 160 74 / .4);
}

.badges, .grid, .os-grid, .steps { display: grid; gap: 18px; }
.badges { grid-template-columns: repeat(12, 1fr); }
.grid { grid-template-columns: repeat(4, 1fr); }
.os-grid, .steps { grid-template-columns: repeat(3, 1fr); }
body.install .grid { grid-template-columns: repeat(2, 1fr); }

.chip {
  display: inline-block; white-space: nowrap; margin-left: 8px; color: var(--on-accent); background: var(--grad-btn);
  border-radius: 6px; padding: 1px 10px; font-family: var(--mono); font-size: 11.5px; font-weight: 500; vertical-align: middle; line-height: 1.7; letter-spacing: .02em;
}
.chip[hidden] { display: none !important; }

/* ───────── os / download cards ───────── */
.os { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); padding: 28px; }
.os a { color: inherit; text-decoration: none; }
.os strong { font-family: var(--font-display); font-size: 28px; letter-spacing: -.02em; line-height: 1.2; font-weight: 700; display: flex; align-items: center; flex-wrap: wrap; }
.os > span:not(.mono):not(.get) { color: var(--soft); font-size: 13.5px; }
.os .mono { display: block; padding: 9px 12px; border-radius: 8px; background: rgb(5 9 20 / .55); border: 1px dashed var(--line-strong); font-size: 11.5px; }
.os .ico-tile { margin-bottom: 8px; }
.os .get, .os a.get {
  margin-top: auto; align-self: stretch; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 20px;
  border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 15.5px; color: var(--text);
  background: rgb(148 163 205 / .07); border: 1px solid var(--line-strong);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.os:hover .get, .os a.get:hover { border-color: rgb(246 160 74 / .7); background: rgb(242 138 51 / .14); color: #fff; }
.os.is-this .get, .os.is-this a.get { background: var(--grad-btn); color: var(--on-accent); border-color: rgb(255 214 160 / .5); box-shadow: 0 12px 30px -12px rgb(242 138 51 / .9); }
.os.is-this { transform: translateY(-6px); }
.os.is-this:hover { transform: translateY(-9px); }
.os > a:not(.get) { font-weight: 500; }
.os > a:not(.get):hover { color: var(--accent); }
.os a + a:not(.get) { color: var(--accent); font-weight: 600; }
.os .alt { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-strong); display: flex; flex-direction: column; gap: 10px; }

/* ───────── install page bits ───────── */
.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 30px; max-width: 880px; }
.actions .btn { width: 100%; min-height: 62px; justify-content: space-between; padding: 12px 22px; font-size: 15px; text-align: left; white-space: nowrap; }
.actions .btn:not(.secondary) { min-height: 68px; }
.hashrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 10px 0 4px; }
.hashrow .mono { flex: 1 1 220px; padding: 10px 12px; border-radius: 8px; background: rgb(5 9 20 / .55); border: 1px dashed var(--line-strong); }
.fileline { color: var(--text) !important; font-weight: 600; font-family: var(--font-display); }
pre { margin: 12px 0; padding: 14px 16px; background: rgb(5 9 20 / .6); border: 1px solid var(--line); border-radius: 10px; white-space: pre-wrap; color: var(--soft); }
details.card { padding: 0; }
details.card summary { min-height: 56px; padding: 18px 24px; cursor: pointer; font-family: var(--font-display); font-weight: 600; list-style: none; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary::after { content: "+"; font-size: 26px; color: var(--orange-2); line-height: 1; transition: transform .3s var(--ease); }
details.card[open] summary::after { transform: rotate(45deg); }
details.card .answer { padding: 0 24px 22px; }
#copy-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.install .steps .card .btn { margin-top: 8px; }

/* ───────── hero ───────── */
.hero { padding-top: clamp(48px, 7vw, 96px); padding-bottom: 0; }
.hero-text { max-width: 1100px; }
.hero h1 { font-size: clamp(40px, 4.7vw, 70px); }
.hero h1 span { display: block; }
.h1-a { color: #fff; }
.hero h1 .grad { font-size: .62em; letter-spacing: -.03em; margin-top: .08em; }
body.home .hero .eyebrow { margin-bottom: 24px; }
body.home .hero .lead { font-size: clamp(19px, 2vw, 24px); font-weight: 500; margin-top: 26px; }
body.home .hero .en { font-size: 17px; margin-bottom: 32px; }
.hero .btn.lg { padding: 14px 22px; font-size: 16px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
body:not(.home) .hero h1, body.doc main > .wrap:first-child h1 { font-size: clamp(38px, 6vw, 72px); margin: 22px 0 18px; letter-spacing: -.02em; line-height: 1.2; }
body.doc main > .wrap:first-child { padding-top: clamp(40px, 6vw, 80px); }
body.doc .lead { color: var(--soft); font-size: 19px; }
body:not(.home) .hero .lead { font-size: clamp(19px, 2.2vw, 23px); font-weight: 500; }

/* home hero: copy left, layered app frames right */
body.home .hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.hero-shot { position: relative; padding-bottom: 9%; }
.hero-shot::before { /* lamp glow behind the stage */
  content: ""; position: absolute; z-index: -1; inset: -8% -10% 0; filter: blur(60px);
  background: radial-gradient(46% 56% at 70% 40%, rgb(242 138 51 / .32), transparent 70%), radial-gradient(50% 60% at 24% 60%, rgb(37 68 140 / .5), transparent 70%);
}
.hero-shot .main .appwin { transform: perspective(2200px) rotateY(-6deg) rotateX(2deg); transform-origin: 100% 50%; transition: transform .8s var(--ease); }
.hero-shot:hover .main .appwin { transform: none; }
.hero-shot .inset { position: absolute; z-index: 2; right: -3%; bottom: 0; width: 47%; }
.hero-shot .inset .appwin { border-color: rgb(246 160 74 / .5); box-shadow: 0 0 0 5px rgb(11 18 34 / .85), 0 40px 80px -24px rgb(0 0 0 / .95), 0 0 70px -24px rgb(242 138 51 / .55); }
.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 10px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .02em; color: var(--text);
  background: rgb(11 18 34 / .86); border: 1px solid var(--line-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .85);
}
.float .ico { width: 18px; height: 18px; color: var(--orange-2); }
.float.f1 { right: 4%; top: -5%; animation: bob 7s ease-in-out infinite; }
.float.f2 { left: 2%; bottom: 2%; animation: bob 8s ease-in-out -3s infinite; }

/* ───────── app window frame ───────── */
.shot { margin: 0; }
.appwin {
  position: relative; border-radius: 14px; overflow: hidden; background: #070d1c; isolation: isolate;
  border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 5px rgb(148 163 205 / .05), 0 50px 100px -34px rgb(0 0 0 / .95), 0 24px 70px -34px rgb(37 68 140 / .8);
}
.appwin::before { /* amber top-edge light */
  content: ""; position: absolute; left: 4%; right: 4%; top: 0; height: 1px; z-index: 3;
  background: linear-gradient(90deg, transparent, rgb(246 197 110 / .95), transparent);
}
.appbar { display: flex; align-items: center; gap: 7px; padding: 0 16px; height: 38px; background: #0d1730; border-bottom: 1px solid var(--line); }
.appbar i { width: 10px; height: 10px; border-radius: 50%; display: block; background: rgb(148 163 205 / .3); }
.appbar i:first-child { background: var(--orange); }
.appbar span {
  flex: 1; text-align: center; margin: 0 38px 0 0; padding: 3px 14px; border-radius: 6px; background: rgb(148 163 205 / .08);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.appwin img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #070d1c; }
.shot figcaption { color: var(--muted); font-size: 15px; margin-top: 16px; line-height: 1.65; }
.shot figcaption b { display: block; color: var(--text); font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 2px; }

/* showcase: one wide frame, then a 2-up ledger of screens */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 32px; }
.showcase .wide { grid-column: 1 / -1; }
.showcase .wide .appwin { box-shadow: 0 0 0 5px rgb(148 163 205 / .05), 0 60px 120px -40px rgb(0 0 0 / .95), 0 0 120px -40px rgb(242 138 51 / .45); }
.showcase .wide figcaption { max-width: 78ch; }
.showcase .appwin { transition: transform .5s var(--ease), border-color .3s ease; }
.showcase .shot:hover .appwin { transform: translateY(-5px); border-color: rgb(246 160 74 / .55); }

/* ───────── stack strip ───────── */
.stack { padding: 0; margin-top: clamp(48px, 6vw, 80px); }
.stack .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 32px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); }
.stack p { margin: 0; color: var(--muted); font-size: 15px; max-width: 54ch; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pills li { padding: 5px 14px; border-radius: 6px; font-family: var(--mono); font-size: 13px; color: var(--soft); background: rgb(148 163 205 / .07); border: 1px solid var(--line-strong); }

/* ───────── trust bento ───────── */
.badges .card { grid-column: span 6; padding: 30px; overflow: hidden; min-height: 200px; }
.badges .card:nth-child(1), .badges .card:nth-child(4) { grid-column: span 7; }
.badges .card:nth-child(2), .badges .card:nth-child(3) { grid-column: span 5; }
.badges .card h3 { font-size: 23px; }
.badges .card p { max-width: 38ch; font-size: 16px; }
.ghost { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-weight: 500; font-size: clamp(30px, 4vw, 52px); line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgb(246 160 74 / .28); pointer-events: none; user-select: none; }

/* ───────── erp split ───────── */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.split .sec-head { position: sticky; top: 100px; }
.split .grid { grid-template-columns: repeat(2, 1fr); }
.split .grid .card { min-height: 100%; }

/* ───────── flow (three steps) ───────── */
.flow { position: relative; }
.flow::before { content: ""; position: absolute; left: 16%; right: 16%; top: 33px; border-top: 2px dashed rgb(246 160 74 / .5); z-index: 0; }
.flow .card { padding-top: 80px; z-index: 1; }
.num {
  position: absolute; top: 8px; left: 26px; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--on-accent); background: var(--grad-btn);
  box-shadow: 0 0 0 7px var(--bg), 0 0 0 8px var(--line-strong), 0 12px 30px -8px rgb(242 138 51 / .8);
}

/* ───────── unsigned & privacy ───────── */
.os-pill { display: inline-block; font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.privacy { padding: clamp(44px, 6vw, 80px) 0; }
.privacy .card { display: flex; gap: 26px; align-items: flex-start; padding: clamp(26px, 4vw, 44px); overflow: hidden;
  background: radial-gradient(60% 140% at 100% 0%, rgb(242 138 51 / .14), transparent 70%), var(--surface); }
.privacy .card p { color: var(--soft); font-size: clamp(17px, 1.8vw, 19.5px); line-height: 1.8; max-width: 80ch; }
.privacy .ico-tile { flex: none; margin: 0; }
#faq .os-grid .card { padding: 26px; }
#faq h3 { color: var(--text); }

/* ───────── footer ───────── */
footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 40px 0 36px; color: var(--muted); font-size: 15px; background: linear-gradient(180deg, transparent, rgb(5 9 20 / .6)); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; }
footer p { margin: 0; }
footer a:not(.brand) { color: var(--muted); text-decoration: none; }
footer a:not(.brand):hover { color: #fff; text-decoration: underline; }
.links { display: flex; gap: 20px; flex-wrap: wrap; }
.mega {
  display: block; text-align: center; margin: 32px 0 -2vw; font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; line-height: .9;
  font-size: clamp(54px, 15.4vw, 230px); white-space: nowrap; user-select: none; pointer-events: none;
  color: transparent; -webkit-text-stroke: 1px rgb(246 160 74 / .22);
  background: linear-gradient(180deg, rgb(242 138 51 / .14), transparent 80%); -webkit-background-clip: text; background-clip: text;
}

/* ───────── docs pages (guide / first-run) ───────── */
body.doc section { padding: 12px 0; }
body.doc section:last-of-type { padding-bottom: 12px; }
body.doc .wrap.card h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; }
body.doc .wrap.card { margin-top: 0; }
body.doc .card li + li { margin-top: 0; }
body.doc footer { margin-top: 72px; }
body.doc footer .wrap { padding-top: 0; }

/* ───────── motion ───────── */
@keyframes reveal { from { transform: translateY(22px); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgb(242 138 51 / .22), 0 0 12px var(--orange); } 50% { box-shadow: 0 0 0 7px rgb(242 138 51 / .06), 0 0 20px var(--orange); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-text > * { animation: rise .8s var(--ease) backwards; }
.hero-text > :nth-child(1) { animation-delay: .05s; }
.hero-text > :nth-child(2) { animation-delay: .13s; }
.hero-text > :nth-child(3) { animation-delay: .22s; }
.hero-text > :nth-child(4) { animation-delay: .3s; }
.hero-text > :nth-child(5) { animation-delay: .38s; }
.hero-text > :nth-child(6) { animation-delay: .45s; }
.hero-shot .main { animation: rise 1.1s var(--ease) .25s backwards; }
.hero-shot .inset { animation: rise 1.1s var(--ease) .6s backwards; }
body:not(.home) .hero > *, body.doc main > .wrap:first-child > * { animation: rise .7s var(--ease) backwards; }
/* scroll-linked slide-in only where supported (transform only, so content never starts hidden) */
@supports (animation-timeline: view()) {
  .sec-head, .showcase .shot, .badges .card, .grid .card, .steps .card, .os-grid .card, .privacy .card, body.doc .wrap.card, details.card {
    animation: reveal linear backwards; animation-timeline: view(); animation-range: entry 0% entry 38%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ───────── responsive ───────── */
@media (max-width: 1040px) {
  body.home .hero { grid-template-columns: 1fr; }
  .hero-shot { margin-top: 12px; padding-bottom: 8%; }
  .hero-shot .main .appwin { transform: none; }
  .float { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split .sec-head { position: static; }
  .os-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .flow::before { display: none; }
  .os.is-this { transform: none; }
  .os.is-this:hover { transform: translateY(-3px); }
  #faq .os-grid { max-width: none; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .hero h1 { font-size: clamp(38px, 11vw, 70px); }
  body.home .hero .lead { text-wrap: balance; font-size: clamp(18px, 4.8vw, 22px); }
  .ghost { display: none; }
  .wrap { padding: 0 20px; }
  .badges .card, .badges .card:nth-child(n) { grid-column: 1 / -1; min-height: 0; padding: 24px; }
  .grid, body.install .grid, .split .grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; gap: 40px; }
  .actions { grid-template-columns: 1fr; }
  .actions .btn { white-space: normal; flex-wrap: wrap; justify-content: flex-start; }
  .privacy .card { flex-direction: column; gap: 18px; }
  .appbar { height: 30px; padding: 0 10px; gap: 5px; }
  .appbar i { width: 8px; height: 8px; }
  .appbar span { font-size: 10.5px; padding: 2px 8px; margin-right: 22px; }
  .appwin { border-radius: 10px; }
  .card { padding: 22px; }
  .os { padding: 24px; }
  .flow .card { padding-top: 76px; }
  .num { left: 22px; }
  .hero-shot .inset { right: 0; width: 52%; }
}
@media (max-width: 720px) {
  header.nav { padding: 8px 0; }
  header.nav > .wrap { row-gap: 4px; }
  .nav-links { order: 3; width: 100%; margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 22px), transparent); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:not(.btn) { white-space: nowrap; padding: 0 12px; min-height: 38px; }
  .cta-row .btn { width: 100%; }
  .btn.lg { padding: 14px 22px; }
  .sub { font-size: 16px; margin-bottom: 28px; }
  section { padding: 56px 0; }
  .stack .wrap { padding-left: 20px; padding-right: 20px; }
  .mega { margin-top: 24px; }
}
@media (max-width: 420px) {
  .eyebrow { font-size: 11.5px; padding: 5px 10px 5px 9px; }
  .os strong { font-size: 25px; }
  .brand span { font-size: 15.5px; }
}
