/* Burrow site layout. app.css (generated from the app's stylesheet) supplies the type, controls, tokens and the dark theme.
   The one idea of this page: you are reading a cross-section of the burrow. The page gets deeper (and the ground darker) as you scroll, the
   hero is a cutaway of your PC with the exits to the internet drawn as tunnels, and the privacy section is that diagram's index.
   Site-only additions: a paper/soil palette for the page bands, three logo colors (--earth, --mole, --nose), a mono label style, the depth ruler. */

:root {
  --paper: #f7f2e9; --band-1: #f2eadc; --band-2: #ece1cf; --band-3: #e6d8c2;
  --soil-1: #efe3cf; --soil-2: #d9c3a3; --tunnel: #2b211b; --tunnel-ink: #f3ece3; --note: #5a5a62;
  --earth: #a8805e; --mole: #3b302b; --nose: #ec8492; --ground-bg: #0c0c0e;
  --mono-label: 500 12px/1.4 var(--mono);
}
:root[data-theme="dark"] { --paper: #121110; --band-1: #15130f; --band-2: #181510; --band-3: #1b1711; --soil-1: #1f1914; --soil-2: #2d231a; --tunnel: #0a0807; --note: #a8a8b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #121110; --band-1: #15130f; --band-2: #181510; --band-3: #1b1711; --soil-1: #1f1914; --soil-2: #2d231a; --tunnel: #0a0807; --note: #a8a8b0; } }

html { height: auto; scroll-behavior: smooth; background: var(--paper); }
body { display: block; height: auto; overflow: visible; font-size: 16px; line-height: 1.55; background: var(--paper); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 16px; z-index: 20; background: var(--surface); padding: 8px 12px; border-radius: var(--r); }
.wrapw { max-width: 1160px; margin: 0 auto; padding: 0 var(--s5); position: relative; }
@media (min-width: 768px) { .wrapw { padding: 0 var(--s7); } }

/* ---------------------------------------------------------------------------------------------- type */
.tag { font: var(--mono-label); letter-spacing: .06em; text-transform: uppercase; color: var(--note); margin: 0 0 var(--s4); display: block; }
.h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; margin: 0 0 var(--s5); max-width: 15ch; }
.h2 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; margin: 0 0 var(--s4); max-width: 18ch; }
.lede { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-2); max-width: 56ch; margin: 0 0 var(--s4); }
.cap, .foot { font-size: 13px; color: var(--note); margin: var(--s3) 0 0; max-width: 84ch; }
.foot code { color: var(--ink-2); }
.ph { background: var(--warn-soft); color: var(--warn); border-radius: 6px; padding: 1px 6px; font-weight: 600; font-size: .92em; }
.model { min-width: 0; }
.model .chip { max-width: 100%; white-space: normal; }
.pad { padding: clamp(64px, 8vw, 112px) 0; }
section { position: relative; }

/* ---------------------------------------------------------------------------------------------- top bar + depth ruler */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line-2) 60%, transparent); }
.top .wrapw { display: flex; align-items: center; gap: var(--s3); min-height: 60px; }
.top .brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.top .brand img { width: 30px; height: 30px; border-radius: 9px; }
.top nav { display: none; gap: 2px; margin-left: var(--s6); }
@media (min-width: 900px) { .top nav { display: flex; } }
.top nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: var(--r); min-height: 36px; display: inline-flex; align-items: center; }
.top nav a:hover { background: var(--fill); color: var(--ink); }
a.btn { text-decoration: none; }
a.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
a.btn.primary:hover { background: var(--primary-hover); }
a.btn:not(.primary) { color: var(--ink); background: var(--surface); }
a.btn:not(.primary):hover { background: var(--fill); }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 15px; }

.ruler { display: none; position: fixed; left: 14px; top: 92px; bottom: 28px; width: 40px; z-index: 5; pointer-events: none; color: var(--note); font: 500 11px/1 var(--mono); }
@media (min-width: 1360px) { .ruler { display: block; } }
.ruler::before { content: ""; position: absolute; left: 33px; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.ruler .ticks { position: absolute; left: 26px; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(to bottom, var(--faint) 0 1px, transparent 1px 28px); }
.ruler .mark { position: absolute; left: 0; width: 40px; white-space: nowrap; text-align: right; transform: translateY(-50%); padding-right: 12px; color: var(--ink); background: var(--paper); }
.ruler .mark::after { content: ""; position: absolute; right: -2px; top: 50%; width: 10px; height: 1px; background: var(--ink); }

/* ---------------------------------------------------------------------------------------------- hero: the cutaway */
.hero { padding: clamp(40px, 6vw, 80px) 0 var(--s8); }
.hero .sub { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 44em; margin: 0 0 var(--s6); }
.hero .cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s7); }
.xs-card { border: 1px solid var(--line-2); border-radius: var(--r-sheet); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-1); }
.xs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.xs-bar .t { font: var(--mono-label); letter-spacing: .06em; text-transform: uppercase; color: var(--note); }
.xs-sw { display: inline-flex; align-items: center; gap: var(--s2); font-size: 14px; font-weight: 500; cursor: pointer; }
.xs-sw input { margin: 0 -2px 0 -6px; }
#xs-note { font-size: 13px; color: var(--ink-2); flex-basis: 100%; margin: 0; }
@media (min-width: 720px) { #xs-note { flex-basis: auto; } }
svg#xs { display: block; width: 100%; height: auto; }
#xs text { font-family: var(--font); }
#xs .mono { font: 500 12px var(--mono); letter-spacing: .08em; fill: var(--note); }
#xs .s1 { stop-color: var(--soil-1); } #xs .s2 { stop-color: var(--soil-2); }
#xs .crest { fill: none; stroke: var(--earth); stroke-width: 3; stroke-linecap: round; }
#xs .tun { fill: none; stroke: var(--tunnel); stroke-width: 20; stroke-linecap: round; transition: stroke var(--t); }
#xs .room { fill: var(--tunnel); stroke: transparent; stroke-width: 3; transition: stroke var(--t); }
#xs .rt { fill: var(--tunnel-ink); font-size: 17px; font-weight: 600; } #xs .rs { fill: var(--tunnel-ink); opacity: .7; font-size: 13px; }
#xs .pebble { fill: var(--earth); opacity: .28; }
#xs .hatch { fill: var(--earth); transform-box: fill-box; transform-origin: 0 100%; transform: rotate(-42deg); transition: transform 220ms var(--ease); }
#xs .badge { fill: var(--accent); transition: fill var(--t); }
#xs .bn { fill: #fff; font-size: 15px; font-weight: 600; }
#xs .lbl { fill: var(--ink); font-size: 14px; font-weight: 500; }
#xs.off .hatch { transform: none; }
#xs.off .shaft { stroke-dasharray: 1 13; opacity: .6; }
#xs.off .badge { fill: var(--faint); }
#xs .exit.hot .shaft { stroke: var(--accent); }
#xs .exit.hot .badge { fill: var(--ink); }
#xs .room.hot { stroke: var(--accent); }
.xs-foot { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding: var(--s3) var(--s5) var(--s4); font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.xs-foot a { font-weight: 500; }

/* ---------------------------------------------------------------------------------------------- bands (deeper as you scroll) */
.b1 { background: var(--band-1); } .b2 { background: var(--band-2); } .b3 { background: var(--band-3); }
.b1, .b2, .b3 { border-top: 1px solid color-mix(in srgb, var(--earth) 35%, transparent); }

/* what it does: an index, plus the real app */
.what { display: grid; gap: var(--s7); }
@media (min-width: 980px) { .what { grid-template-columns: 5fr 6fr; gap: var(--s8); align-items: start; } .what .collage { position: sticky; top: 100px; } }
.what > * { min-width: 0; }
.rooms { list-style: none; margin: var(--s6) 0 0; padding: 0; counter-reset: room; }
.rooms li { counter-increment: room; display: grid; grid-template-columns: 40px 1fr; gap: 0 var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line-2); }
.rooms li:last-child { border-bottom: 1px solid var(--line-2); }
.rooms li::before { content: counter(room, decimal-leading-zero); font: var(--mono-label); color: var(--note); padding-top: 5px; }
.rooms h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; color: var(--ink); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.rooms p { margin: 2px 0 0; color: var(--ink-2); font-size: 15px; grid-column: 2; }
.rooms kbd { margin-left: 2px; }
.collage { position: relative; padding-bottom: 66%; }
.collage picture { position: absolute; display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-2); background: var(--bg); }
.collage img { display: block; width: 100%; height: auto; }
.collage .c-chat { left: 0; top: 0; width: 84%; z-index: 2; }
.collage .c-mail { right: 0; bottom: 0; width: 72%; }
.collage + .cap { margin-top: var(--s4); }

/* the gate */
.gate .split { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 960px) { .gate .split { grid-template-columns: 5fr 7fr; gap: var(--s8); } .gate .copy { position: sticky; top: 100px; } }
.gate .split > * { min-width: 0; }
.facts3 { list-style: none; margin: var(--s6) 0 0; padding: 0; }
.facts3 li { display: flex; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.facts3 li:last-child { border-bottom: 1px solid var(--line-2); }
.facts3 b { color: var(--ink); font-weight: 600; min-width: 5.5em; flex: none; }
.demo { border: 1px solid var(--line-2); border-radius: var(--r-sheet); background: var(--bg); overflow: hidden; box-shadow: var(--shadow-2); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.demo .msgs { overflow: visible; padding: var(--s6) var(--s4); gap: var(--s5); min-height: 400px; justify-content: center; }
@media (min-width: 768px) { .demo .msgs { padding: var(--s7) var(--s6); } }
.demo .proposal { max-width: 100%; }
.demo .res { font-weight: 600; }
.demo .site-note { font-size: 12px; color: var(--muted); margin-top: var(--s2); font-weight: 400; }
.demo .seg button { color: var(--ink-2); }
.demo .evidence .muted { color: var(--ink-2); }
.demo .chips .chip { white-space: normal; text-align: left; padding-top: 4px; padding-bottom: 4px; }
.proposal h3 { margin: 0 0 var(--s3); font-size: 15px; font-weight: 600; letter-spacing: -.005em; color: var(--ink); }
.gate .cap { margin-left: 0; }

/* models */
.mgrid { display: grid; gap: var(--s3); margin-top: var(--s6); }
@media (min-width: 900px) { .mgrid { grid-template-columns: 1fr 1fr; } }
.model { border-radius: var(--r-sheet); padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line-2); display: flex; flex-direction: column; gap: var(--s3); }
.model.dark { background: var(--mole); border-color: transparent; color: #f4efe9; }
.model.dark h3, .model.dark .stat b { color: #fff; }
.model.dark p, .model.dark .stat > span { color: #e2d9d0; }
.model h3 { margin: 0; font-size: 24px; letter-spacing: -.025em; color: var(--ink); }
.model .chip { align-self: flex-start; }
.model.dark .chip.warn { background: rgba(255, 255, 255, .14); color: #ffd9a0; }
.model p { margin: 0; color: var(--ink-2); font-size: 15px; }
.stats2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); margin: var(--s4) 0 0; padding-top: var(--s5); border-top: 1px solid var(--line-2); }
.model.dark .stats2 { border-color: rgba(255, 255, 255, .2); }
.stat b { display: block; font-size: clamp(32px, 4.4vw, 52px); line-height: 1; letter-spacing: -.045em; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat b small { font-size: .38em; letter-spacing: -.01em; font-weight: 500; margin-left: 4px; }
.stat > span { display: block; font-size: 13px; color: var(--ink-2); margin-top: var(--s2); line-height: 1.4; }
.rule { margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-card); background: var(--accent-soft); color: var(--accent-ink); font-size: 15px; }
.rule b { color: var(--accent-ink); }
.tbl-wrap { margin-top: var(--s6); overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); }
table.num { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 900px; }
table.num th, table.num td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
table.num thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--bg-2); }
table.num td.n { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 150px; }
table.num th[scope="row"] { min-width: 170px; } table.num td:nth-child(3) { min-width: 180px; }
table.num td:first-child { white-space: nowrap; font-weight: 500; } table.num td:last-child { white-space: nowrap; }
table.num .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; white-space: normal; }

/* underground: the ledgers + limits */
.ground { border-top: 4px solid var(--earth); padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 10vw, 128px); }
.ground .tag { color: var(--muted); }
.ground a { color: var(--accent-ink); }
.twocol { display: grid; gap: var(--s5); margin-top: var(--s6); }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.col { border-top: 2px solid var(--line-2); padding-top: var(--s4); }
.col.stays { border-top-color: var(--good); } .col.leaves { border-top-color: var(--warn); }
.col h3 { margin: 0 0 var(--s2); font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: var(--s4) 0; border-top: 1px solid var(--line); font-size: 15px; display: grid; grid-template-columns: 30px 1fr; gap: 0 var(--s2); }
.ledger li:first-child { border-top: 0; }
.ledger li > i { font: normal 600 12px/22px var(--font); text-align: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; margin-top: 1px; }
.ledger li > i.room { background: var(--tunnel); color: var(--tunnel-ink); border-radius: 6px; border: 1px solid var(--line-2); }
.ledger li > i.none { background: transparent; }
.ledger b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.ledger span { color: var(--ink-2); }
.ledger code { font-size: 12.5px; overflow-wrap: anywhere; }
.switchnote { margin-top: var(--s7); padding: var(--s5) var(--s6); border-radius: var(--r-card); background: var(--fill); border: 1px solid var(--line); display: grid; gap: var(--s2); }
@media (min-width: 900px) { .switchnote { grid-template-columns: 220px 1fr; gap: var(--s5); align-items: start; } }
.switchnote h3 { margin: 0; font-size: 18px; color: var(--ink); } .switchnote p { margin: 0; color: var(--ink-2); font-size: 15px; }
.limits-h { margin-top: clamp(56px, 8vw, 104px); padding-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line-2); }
.limits { list-style: none; counter-reset: lim; margin: var(--s6) 0 0; padding: 0; display: grid; gap: 0 var(--s8); }
@media (min-width: 900px) { .limits { grid-template-columns: 1fr 1fr; } }
.limits li { counter-increment: lim; display: grid; grid-template-columns: 44px 1fr; gap: var(--s3); padding: var(--s4) 0; border-top: 1px solid var(--line-2); font-size: 15px; color: var(--ink-2); }
.limits li::before { content: counter(lim, decimal-leading-zero); font: var(--mono-label); color: var(--muted); padding-top: 3px; }
.limits b { color: var(--ink); font-weight: 600; }

/* surface again: download */
.dl-sec { background: var(--paper); border-top: 4px solid var(--earth); padding: clamp(64px, 9vw, 120px) 0 var(--s7); }
.dl { display: grid; gap: var(--s4); margin-top: var(--s6); }
@media (min-width: 900px) { .dl { grid-template-columns: 1fr 1fr; } }
.dl > * { min-width: 0; }
.dl .card h3 { margin: 0 0 var(--s2); color: var(--ink); font-size: 18px; letter-spacing: -.02em; }
.dl .card p { color: var(--ink-2); font-size: 15px; }
.dl a.btn { white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.steps-n { margin: var(--s2) 0 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.steps-n li { margin: 6px 0; }
pre.cmd { font: 12.5px/1.5 var(--mono); background: var(--fill); border-radius: var(--r); padding: 10px 12px; margin: var(--s2) 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
footer.site { padding: var(--s5) 0 var(--s8); color: var(--note); font-size: 13px; background: var(--paper); }
footer.site .row { gap: var(--s3); flex-wrap: wrap; }
footer.site img { width: 26px; height: 26px; border-radius: 8px; }
