/* ==========================================================================
   pathofbuilding.org — light theme
   Palette from the PoB logo: carved stone greys, aged bronze/gold and the
   pale medallion glow, on a warm parchment background.
   Each section uses its own box style on purpose (no repeated card look).
   ========================================================================== */
:root {
  --bg: #f8f4ed;
  --bg-2: #f2ebe0;
  --paper: #fffdf9;
  --panel: #ffffff;
  --panel-2: #fbf7f0;
  --panel-3: #f3ecdf;
  --line: #e6dccb;
  --line-2: #d4c5ac;
  --heading: #22190f;
  --text: #2d241a;
  --text-2: #4d4235;
  --muted: #7b6e5f;
  --stone: #726c65;
  --stone-light: #c9c4bc;
  --bronze: #9a6528;
  --bronze-dark: #6e4a22;
  --gold: #b07a3a;
  --gold-2: #8a5718;
  --gold-soft: #f3e2c2;
  --ember: #c4561c;
  --arcane: #3c6c99;
  --arcane-soft: #e3edf6;
  --good: #2f7d43;
  --bad: #b33f2e;
  --radius: 14px;
  --shadow: 0 14px 40px -22px rgba(64, 44, 20, .45);
  --shadow-sm: 0 4px 14px -8px rgba(64, 44, 20, .35);
  --font-head: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --wrap: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font-body);
  background-image: radial-gradient(1100px 520px at 88% -8%, rgba(176, 122, 58, .12), transparent 62%), radial-gradient(800px 460px at -8% 18%, rgba(60, 108, 153, .06), transparent 60%);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--bronze); text-decoration-color: rgba(154, 101, 40, .35); text-underline-offset: 3px; }
a:hover { color: var(--bronze-dark); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--arcane); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; color: var(--heading); letter-spacing: .01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
code, kbd { font-family: var(--font-mono); font-size: .86em; background: var(--panel-3); border: 1px solid var(--line); border-radius: 5px; padding: .08em .38em; color: var(--bronze-dark); overflow-wrap: anywhere; }
kbd { box-shadow: inset 0 -2px 0 var(--line-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--heading); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 200; font-weight: 700; }
.skip-link:focus { top: 12px; }
.ico { flex: none; vertical-align: middle; }
.eyebrow { font: 700 .78rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--bronze); display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: 1.15rem; color: var(--text-2); }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 46px; padding: .7em 1.25em; border-radius: 10px; font: 600 1rem/1.1 var(--font-body); text-decoration: none; border: 1px solid var(--line-2); color: var(--text); background: var(--panel); cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s; }
.btn:hover { transform: translateY(-1px); color: var(--heading); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn-primary { color: #fff; border: 1px solid #8a5718; background: linear-gradient(180deg, #c99248, #a86f2c 60%, #8f5b20); box-shadow: 0 8px 22px -10px rgba(154, 101, 40, .8), inset 0 1px 0 rgba(255,255,255,.35); text-shadow: 0 1px 0 rgba(80, 45, 10, .35); }
.btn-primary:hover { color: #fff; border-color: #6e4a22; box-shadow: 0 12px 28px -10px rgba(154, 101, 40, .9), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-ghost { background: transparent; }
.btn-arcane { color: #fff; border-color: #2f5880; background: linear-gradient(180deg, #4b7cab, #345f8a); }
.btn-arcane:hover { color: #fff; border-color: #24496d; }
.btn-lg { min-height: 56px; padding: .9em 1.6em; font-size: 1.08rem; border-radius: 12px; }
.btn-sm { min-height: 38px; padding: .45em .9em; font-size: .92rem; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.icon-btn:hover { background: var(--panel-3); color: var(--bronze-dark); border-color: var(--line); }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(255, 253, 249, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 60px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font: 700 1.06rem/1.1 var(--font-head); letter-spacing: .03em; color: var(--heading); }
.brand-sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .96rem; position: relative; }
.main-nav a:hover { color: var(--heading); background: var(--panel-3); }
.main-nav a[aria-current="page"] { color: var(--bronze-dark); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--bronze), var(--gold)); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; }
@media (max-width: 1100px) { .main-nav a { padding: 8px 9px; font-size: .92rem; } .brand-sub { display: none; } }
@media (max-width: 980px) {
  .nav-toggle { display: inline-grid; }
  .main-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px 20px 22px; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .22s ease; max-height: calc(100vh - var(--header-h)); overflow: auto; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 13px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a[aria-current="page"]::after { left: 0; right: auto; width: 3px; top: 10px; bottom: 10px; height: auto; }
}
@media (max-width: 520px) { .header-dl span { display: none; } .header-dl { padding: .45em .65em; } .brand img { width: 52px; } .brand-name { font-size: .98rem; } }

/* ---------- breadcrumbs ---------- */
.breadcrumbs { padding-top: 18px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--line-2); }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--bronze); }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 70px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.rune-divider { display: flex; align-items: center; gap: 14px; color: var(--bronze); justify-content: center; margin: 0 auto; max-width: var(--wrap); padding: 0 20px; }
.rune-divider::before, .rune-divider::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--line-2)); }
.rune-divider::after { background: linear-gradient(90deg, var(--line-2), transparent); }
.rune-divider span { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--bronze); background: var(--gold-soft); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -25% -10% auto auto; width: 820px; height: 820px; border-radius: 50%; background: radial-gradient(circle, rgba(176,122,58,.18), rgba(196,86,28,.05) 42%, transparent 68%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 64px); align-items: center; position: relative; }
.hero h1 { margin-bottom: .45em; }
.hero h1 .h1-accent { display: block; font-size: .56em; color: var(--bronze); margin-top: .35em; letter-spacing: .06em; }
.hero-intro { font-size: 1.16rem; color: var(--text-2); max-width: 56ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.release-strip { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: .92rem; color: var(--muted); padding-top: 18px; border-top: 1px dashed var(--line-2); }
.release-strip strong { color: var(--heading); font-weight: 700; }
.release-strip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(47,125,67,.18); display: inline-block; margin-right: 6px; }

/* app-window preview: intentionally dark — it depicts the desktop program */
.app-window { position: relative; border-radius: 16px; background: linear-gradient(180deg, #1c1712, #120f0c); border: 1px solid #4d4033; box-shadow: 0 40px 80px -34px rgba(40, 26, 10, .65); overflow: hidden; transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transition: transform .6s ease; }
.app-window:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #3a3027; background: #17130f; font-size: .78rem; color: #a3988a; }
.app-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3027; display: inline-block; }
.app-bar .t { margin-left: 8px; font-family: var(--font-mono); }
.app-tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: #15110e; border-bottom: 1px solid #3a3027; overflow: hidden; }
.app-tabs span { font-size: .76rem; padding: 6px 12px; border: 1px solid #3a3027; border-bottom: 0; border-radius: 6px 6px 0 0; color: #a3988a; background: #1a1511; white-space: nowrap; }
.app-tabs span.on { color: #f1d095; background: #221b14; }
.app-body { display: grid; grid-template-columns: 170px 1fr; min-height: 340px; }
.app-side { border-right: 1px solid #3a3027; padding: 12px; font-size: .74rem; font-family: var(--font-mono); color: #cfc5b6; background: #14110d; }
.app-side dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.app-side dt { color: #a3988a; }
.app-side dd { margin: 0; text-align: right; }
.app-side .k-life { color: #e0705f; } .app-side .k-es { color: #9ec3e6; } .app-side .k-mana { color: #7a9ce0; } .app-side .k-dps { color: #f1d095; }
.app-side .sec { margin: 10px 0 6px; color: #b07a3a; font-family: var(--font-body); letter-spacing: .12em; text-transform: uppercase; font-size: .66rem; }
.app-canvas { position: relative; background: radial-gradient(circle at 50% 50%, #1d1812, #0f0c0a 70%); overflow: hidden; }
.app-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.app-badge { position: absolute; right: 12px; bottom: 12px; font-size: .72rem; color: #cfc5b6; background: rgba(13,11,9,.8); padding: 4px 8px; border-radius: 6px; border: 1px solid #3a3027; }
.hero-note { margin-top: 12px; font-size: .82rem; color: var(--muted); text-align: right; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } .app-window, .app-window:hover { transform: none; } }
@media (max-width: 560px) { .app-body { grid-template-columns: 1fr; min-height: 260px; } .app-side { display: none; } }

/* ---------- intro explainer: "polaroid" figure + numbered timeline ---------- */
.explainer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.explainer-visual { position: sticky; top: calc(var(--header-h) + 24px); }
.figure-frame { margin: 0; background: #fff; padding: 12px 12px 4px; border: 1px solid var(--line); box-shadow: 0 22px 40px -24px rgba(64,44,20,.55); transform: rotate(-1.2deg); }
.figure-frame img { display: block; width: 100%; }
.figure-frame figcaption { font-size: .86rem; color: var(--muted); padding: 10px 4px; font-style: italic; }
.explain-list { counter-reset: ex; display: grid; }
.explain-item { position: relative; padding: 16px 0 18px 64px; }
.explain-item::after { content: ""; position: absolute; left: 21px; top: 62px; bottom: -10px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 11px); }
.explain-item:last-child::after { display: none; }
.explain-item::before { counter-increment: ex; content: counter(ex, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 700 1rem/1 var(--font-head); color: var(--bronze-dark); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); border: 2px solid #e2c48f; }
.explain-item h3 { font-size: 1.12rem; margin-bottom: .35em; }
.explain-item p { margin: 0; color: var(--text-2); }
@media (max-width: 900px) { .explainer { grid-template-columns: 1fr; } .explainer-visual { position: static; } .figure-frame { transform: none; } }

/* ---------- features bento: white tiles with coloured top bar ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-item { grid-column: span 2; position: relative; padding: 28px 24px 24px; border-radius: 4px 4px 18px 18px; background: var(--panel); border: 1px solid var(--line); border-top: 0; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; overflow: hidden; }
.bento-item::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--bronze), #d9a95c); }
.bento-item:nth-child(3n+2)::before { background: linear-gradient(90deg, #345f8a, #7aa6cf); }
.bento-item:nth-child(3n)::before { background: linear-gradient(90deg, #c4561c, #e8955a); }
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-item.wide { grid-column: span 3; }
.bento-item h3 { font-size: 1.14rem; margin: 14px 0 8px; }
.bento-item p { color: var(--text-2); font-size: .98rem; margin-bottom: 12px; }
.bento-item a.more { font-weight: 700; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.feat-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--bronze-dark); background: var(--gold-soft); }
.bento-item:nth-child(3n+2) .feat-ico { color: #2f5880; background: var(--arcane-soft); }
.bento-item:nth-child(3n) .feat-ico { color: #a7461a; background: #fbe4d6; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento-item, .bento-item.wide { grid-column: span 1; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } }

/* ---------- download ledger: "ticket" with perforation ---------- */
.ledger { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); border-radius: 8px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.ledger-specs { padding: clamp(24px, 4vw, 40px); }
.ledger-specs h2, .ledger-specs h3 { margin-bottom: .2em; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: .98rem; table-layout: fixed; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px dotted var(--line-2); vertical-align: top; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; padding-right: 16px; }
.spec-table td { color: var(--text); overflow-wrap: anywhere; }
.spec-table code { font-size: .82rem; word-break: break-all; }
.ledger-cta { position: relative; padding: clamp(24px, 4vw, 40px); background: linear-gradient(160deg, #f6e6c8, #ecd3a5); border-left: 2px dashed #c9a36a; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; }
.ledger-cta::before, .ledger-cta::after { content: ""; position: absolute; left: -13px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); }
.ledger-cta::before { top: -13px; } .ledger-cta::after { bottom: -13px; }
.ledger-cta .ver { font: 700 2.6rem/1 var(--font-head); color: var(--bronze-dark); }
.ledger-cta .ver small { display: block; font: 700 .8rem/1.4 var(--font-body); color: var(--bronze); letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; }
.ledger-cta .btn-ghost { background: rgba(255,255,255,.6); }
.verified { display: inline-flex; gap: 6px; align-items: center; font-size: .86rem; color: var(--good); font-weight: 600; }
.live-status { font-size: .8rem; color: var(--bronze-dark); min-height: 1.2em; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; } .ledger-cta { border-left: 0; border-top: 2px dashed #c9a36a; } .ledger-cta::before, .ledger-cta::after { display: none; } }

.edition-tabs { display: inline-flex; padding: 4px; background: var(--panel-3); border-radius: 999px; gap: 4px; margin-bottom: 22px; flex-wrap: wrap; }
.edition-tabs button { border: 0; background: transparent; color: var(--text-2); padding: 10px 18px; border-radius: 999px; font: 700 .96rem var(--font-body); cursor: pointer; }
.edition-tabs button[aria-selected="true"] { background: var(--heading); color: #fff; }

/* package cards (download page): tinted, borderless */
.pkg { border-radius: 10px; background: var(--panel-3); padding: 26px; }
.pkg.alt { background: var(--arcane-soft); }
.pkg h2 { display: flex; align-items: center; gap: 10px; }

/* steps timeline */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: st; position: relative; }
.steps::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), transparent); }
.steps > li { position: relative; padding: 0 0 26px 66px; }
.steps > li::before { counter-increment: st; content: counter(st); position: absolute; left: 0; top: -2px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem var(--font-head); color: #fff; background: var(--bronze); box-shadow: 0 0 0 5px var(--bg); }
.steps h3 { font-size: 1.08rem; margin-bottom: .3em; padding-top: 8px; }
.steps p { color: var(--text-2); margin-bottom: .4em; }

/* callouts: left stripe notes */
.callout { display: flex; gap: 14px; padding: 14px 18px; border-left: 4px solid var(--arcane); background: var(--arcane-soft); border-radius: 0 8px 8px 0; margin: 1.2em 0; }
.callout .ico { color: var(--arcane); margin-top: 2px; }
.callout p { margin: 0; color: var(--text-2); }
.callout.warn { border-left-color: var(--ember); background: #fbe9de; }
.callout.warn .ico { color: var(--ember); }
.callout.good { border-left-color: var(--good); background: #e5f2e8; }
.callout.good .ico { color: var(--good); }

/* platforms: segmented strip */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 2px solid var(--heading); border-radius: 0; }
.platform { padding: 24px; }
.platform + .platform { border-left: 2px solid var(--heading); }
.platform h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.platform .tag { font-size: .72rem; padding: 2px 8px; border: 1px solid var(--line-2); color: var(--muted); font-family: var(--font-body); letter-spacing: .06em; text-transform: uppercase; }
.platform .tag.ok { color: #fff; background: var(--good); border-color: var(--good); }
.platform p { color: var(--text-2); font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr; } .platform + .platform { border-left: 0; border-top: 2px solid var(--heading); } }

/* ---------- planner teaser: receipt-style paper ---------- */
.teaser { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: center; }
.teaser-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.teaser-list li { display: flex; gap: 12px; color: var(--text-2); }
.teaser-list .ico { color: var(--good); margin-top: 3px; }
.stat-mock { background: #fff; padding: 22px 22px 26px; font-family: var(--font-mono); font-size: .86rem; box-shadow: 0 1px 0 var(--line), 0 18px 30px -22px rgba(64,44,20,.6); position: relative; border-top: 6px solid var(--arcane);
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; }
.stat-mock .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.stat-mock .row span:last-child { color: var(--arcane); font-weight: 500; }
@media (max-width: 900px) { .teaser { grid-template-columns: 1fr; } }

/* ---------- guides index on home: ruled list, no boxes ---------- */
.guide-index { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.guide-index li { border-bottom: 1px solid var(--line-2); }
.guide-index a { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; padding: 18px 4px; text-decoration: none; color: var(--text); transition: padding .2s, color .2s; }
.guide-index a:hover { padding-left: 10px; color: var(--bronze-dark); }
.guide-index .num { font: 700 1.4rem var(--font-head); color: var(--gold); }
.guide-index .t { font-weight: 700; font-size: 1.05rem; display: block; }
.guide-index .d { color: var(--muted); font-size: .9rem; display: block; margin-top: 2px; }
.guide-index .ico { color: var(--line-2); transition: color .2s, transform .2s; }
.guide-index a:hover .ico { color: var(--bronze); transform: translateX(3px); }
@media (max-width: 860px) { .guide-index { grid-template-columns: 1fr; } }

/* ---------- guides page: tall cards with tinted header ---------- */
.guides-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.search-field { position: relative; flex: 1 1 320px; max-width: 520px; }
.search-field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-field input, .input, select, textarea { width: 100%; background: #fff; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 1rem; }
.search-field input { padding-left: 44px; border-radius: 999px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(176,122,58,.18); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px; padding: 7px 14px; font: 700 .88rem var(--font-body); cursor: pointer; }
.filter-chips button[aria-pressed="true"] { border-color: var(--bronze); color: #fff; background: var(--bronze); }
.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guide-card { display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); overflow: hidden; text-decoration: none; color: var(--text); box-shadow: 0 2px 0 var(--line), 0 12px 26px -20px rgba(64,44,20,.6); transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); color: var(--text); box-shadow: 0 2px 0 var(--line-2), 0 20px 34px -20px rgba(64,44,20,.7); }
.guide-card .gc-top { position: relative; height: 104px; display: flex; align-items: flex-end; padding: 16px 18px; background: linear-gradient(135deg, #f3e2c2, #e9cf9f); overflow: hidden; }
.guide-card[data-cat="Setup"] .gc-top { background: linear-gradient(135deg, #e3edf6, #c9dcee); }
.guide-card[data-cat="Mechanics"] .gc-top { background: linear-gradient(135deg, #fbe4d6, #f3c7aa); }
.guide-card[data-cat="Troubleshooting"] .gc-top { background: linear-gradient(135deg, #f6dcd7, #ecbcb3); }
.guide-card[data-cat="Basics"] .gc-top { background: linear-gradient(135deg, #e7ece1, #cfdcc3); }
.guide-card .gc-top .big { position: absolute; right: 14px; top: -10px; font: 700 5.6rem/1 var(--font-head); color: rgba(34,25,15,.10); }
.guide-card .gc-top .feat-ico { width: 44px; height: 44px; background: rgba(255,255,255,.75); color: var(--heading); }
.guide-card .gc-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide-card h2, .guide-card h3 { font-size: 1.12rem; margin: 0; }
.guide-card p { color: var(--muted); font-size: .94rem; margin: 0; }
.guide-card .meta { margin-top: auto; padding-top: 8px; font-size: .82rem; color: var(--muted); display: flex; gap: 14px; }
.no-results { padding: 30px; text-align: center; color: var(--muted); border: 2px dashed var(--line-2); border-radius: 12px; }
@media (max-width: 1000px) { .guide-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .guide-cards { grid-template-columns: 1fr; } }

/* ---------- FAQ: flat rows with gold side bar when open ---------- */
.faq { display: grid; border-top: 2px solid var(--heading); }
.faq details { border-bottom: 1px solid var(--line-2); transition: background .2s; }
.faq details[open] { background: var(--paper); box-shadow: inset 4px 0 0 var(--gold); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 18px; position: relative; font-weight: 700; font-size: 1.06rem; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--font-body); color: var(--bronze); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq .faq-a { padding: 0 18px 18px; color: var(--text-2); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- article ---------- */
.article-hero { padding: 26px 0 34px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), transparent); }
.article-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; margin-top: 16px; }
.article-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-hero h1 { max-width: 22ch; }
.article-hero .lead { max-width: 70ch; }
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 270px; gap: 44px; padding: 40px 0 70px; align-items: start; }
.article-layout > * { min-width: 0; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; font-size: .92rem; padding-right: 6px; }
.toc-title { font: 700 .74rem var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--bronze); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; }
.toc li a:hover { color: var(--text); }
.toc li a.active { color: var(--bronze-dark); border-left-color: var(--gold); font-weight: 600; }
.toc li.h3 a { padding-left: 26px; font-size: .86rem; }
.toc-mobile { display: none; margin-bottom: 26px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper); }
.toc-mobile summary { padding: 14px 18px; cursor: pointer; font-weight: 700; }
.toc-mobile ol { margin: 0; padding: 0 18px 16px 36px; color: var(--muted); }
.toc-mobile a { color: var(--text-2); text-decoration: none; }
.prose { min-width: 0; font-size: 1.08rem; }
.prose > h2 { margin-top: 2.1em; padding-top: .5em; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 1.7em; color: var(--bronze-dark); font-size: 1.22rem; }
.prose h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; margin-top: 1.4em; }
.prose p, .prose li { color: var(--text-2); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose ul li::marker { color: var(--gold); }
.prose ol li::marker { color: var(--bronze); font-weight: 700; }
.prose strong { color: var(--heading); overflow-wrap: anywhere; }
.prose blockquote { margin: 1.5em 0; padding: 14px 20px; border: 1px solid var(--line-2); border-left: 4px solid var(--gold); background: #fdf6e8; color: var(--text-2); font-family: var(--font-mono); font-size: .95rem; }
.prose blockquote p:last-child { margin: 0; }
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.prose th { text-align: left; background: var(--heading); color: #f6ead5; font-weight: 600; padding: 12px 14px; }
.prose td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose tr:last-child td { border-bottom: 0; }
.prose tbody tr:nth-child(even) td { background: var(--panel-2); }
.prose figure { margin: 1.8em 0; }
.prose figure img, .prose figure svg { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--line-2); }
.prose figcaption { font-size: .9rem; color: var(--muted); margin-top: 10px; text-align: center; font-style: italic; }
.prose pre { background: #2a2119; border-radius: 10px; padding: 14px 16px; overflow-x: auto; font-size: .88rem; }
.prose pre code { background: none; border: 0; padding: 0; color: #f3e2c2; }
.prose .heading-anchor { opacity: 0; margin-left: .4em; text-decoration: none; color: var(--line-2); font-size: .8em; }
.prose h2:hover .heading-anchor, .prose h3:hover .heading-anchor { opacity: 1; }
/* sidebar: dashed outline boxes */
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 18px; }
.aside-box { border: 1.5px dashed var(--line-2); border-radius: 6px; padding: 18px; background: transparent; }
.aside-box h2 { font-size: .8rem; font-family: var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--bronze); margin-bottom: 12px; }
.aside-box ul { list-style: none; margin: 0; padding: 0; }
.aside-box li a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: .94rem; line-height: 1.35; }
.aside-box li:last-child a { border-bottom: 0; }
.aside-box li a:hover { color: var(--bronze); }
.aside-dl { text-align: center; border: 0; background: linear-gradient(160deg, #f6e6c8, #ecd3a5); border-radius: 16px; }
.aside-dl .feat-ico { background: rgba(255,255,255,.7); }
.aside-dl p { font-size: .92rem; color: var(--text-2); }
/* related: left-accent strips */
.related { margin-top: 50px; }
.related h2 { font-size: 1.4rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-grid a { display: block; padding: 14px 16px; border-left: 4px solid var(--arcane); background: var(--arcane-soft); text-decoration: none; color: var(--heading); }
.related-grid a:hover { border-left-color: var(--bronze); }
.related-grid span { display: block; font-size: .86rem; color: var(--muted); margin-top: 6px; }
/* prev / next: pill links */
.prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.prevnext a { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; border-radius: 999px; text-decoration: none; color: var(--heading); background: var(--panel-3); }
.prevnext a:hover { background: var(--gold-soft); }
.prevnext .lbl { font-size: .74rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.prevnext .next { text-align: right; align-items: flex-end; }
@media (max-width: 1180px) { .article-layout { grid-template-columns: 220px minmax(0, 1fr); } .article-aside { display: none; } }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } .toc-mobile { display: block; } .related-grid { grid-template-columns: 1fr; } .prevnext { grid-template-columns: 1fr; } .prevnext a { border-radius: 14px; } }
.mobile-aside { display: none; }
@media (max-width: 1180px) { .mobile-aside { display: block; margin-top: 40px; } }

/* ---------- generic page content ---------- */
.page-hero { padding: 30px 0 40px; }
.page-hero p { max-width: 70ch; }
.content-narrow { max-width: 820px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.two-col > * { min-width: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { border-radius: 2px; background: var(--paper); padding: 26px; border: 1px solid var(--line); box-shadow: 6px 6px 0 var(--gold-soft); }

/* features page rows: icon in circle + checklist on tint */
.feature-rows { display: grid; }
.feature-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, .9fr); gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); align-items: start; }
.feature-row .feat-ico { width: 84px; height: 84px; border-radius: 50%; }
.feature-row:nth-child(even) .feat-ico { color: #2f5880; background: var(--arcane-soft); }
.feature-row h2 { font-size: 1.5rem; }
.feature-row .points { list-style: none; margin: 0; padding: 16px 20px; background: var(--bg-2); border: 1px dotted var(--line-2); border-radius: 0 18px 0 18px; }
.feature-row .points li { display: flex; gap: 10px; padding: 5px 0; color: var(--text-2); font-size: .97rem; }
.feature-row .points .ico { color: var(--good); margin-top: 3px; }
@media (max-width: 900px) { .feature-row { grid-template-columns: 1fr; } }

/* sysreq table */
.req-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line-2); }
.req-table th, .req-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.req-table thead th { background: var(--bronze); color: #fff; font-family: var(--font-head); font-weight: 600; }
.req-table tbody th { width: 22%; color: var(--heading); font-weight: 700; background: var(--panel-3); }
.req-table tbody th .ico { color: var(--bronze); margin-right: 8px; }
.req-table td { color: var(--text-2); }
.req-table tbody tr:nth-child(even) td { background: var(--panel-2); }
.req-table .src { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; font-style: italic; }
@media (max-width: 760px) { .req-table, .req-table thead, .req-table tbody, .req-table tr, .req-table th, .req-table td { display: block; } .req-table thead { display: none; } .req-table tbody th { width: auto; border-bottom: 0; } .req-table td::before { content: attr(data-l); display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--bronze); margin-bottom: 4px; } }

/* html sitemap page */
.sitemap-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.sitemap-groups h2 { font-size: 1.15rem; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.sitemap-groups ul { list-style: none; margin: 0; padding: 0; }
.sitemap-groups li a { display: block; padding: 7px 0; color: var(--text-2); text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.sitemap-groups li a:hover { color: var(--bronze); }
@media (max-width: 860px) { .sitemap-groups { grid-template-columns: 1fr; } }

/* ---------- modals ---------- */
.modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(34, 25, 15, .45); backdrop-filter: blur(4px); }
.modal-panel { position: relative; width: min(560px, 100%); border-radius: 18px; background: var(--paper); border: 1px solid var(--line-2); padding: 28px; box-shadow: 0 30px 70px -24px rgba(34,25,15,.6); animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-panel h2 { font-size: 1.45rem; }
.modal-close { position: absolute; right: 14px; top: 14px; }
.progress { height: 6px; border-radius: 6px; background: var(--panel-3); overflow: hidden; margin: 18px 0; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--bronze), #d9a95c); transition: width 1.6s linear; }
.modal .file-line { font-family: var(--font-mono); font-size: .86rem; color: var(--text-2); background: var(--panel-3); padding: 10px 12px; border-radius: 8px; word-break: break-all; }

.search-modal { position: fixed; inset: 0; z-index: 300; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(34, 25, 15, .45); backdrop-filter: blur(4px); }
.search-panel { position: relative; width: min(680px, 100%); border-radius: 16px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -24px rgba(34,25,15,.6); overflow: hidden; }
.search-top { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.search-top input { flex: 1; background: transparent; border: 0; color: var(--text); font: inherit; font-size: 1.08rem; padding: 10px 0; }
.search-top input:focus { box-shadow: none; outline: none; }
.search-results { max-height: 60vh; overflow: auto; padding: 8px; }
.search-results a { display: block; padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--text); }
.search-results a:hover, .search-results a.sel { background: var(--panel-3); }
.search-results .sr-t { font-weight: 700; display: block; }
.search-results .sr-s { color: var(--muted); font-size: .9rem; display: block; margin-top: 2px; }
.search-results mark { background: var(--gold-soft); color: var(--bronze-dark); border-radius: 3px; padding: 0 2px; }
.search-results .empty { padding: 18px; color: var(--muted); }

/* ---------- footer (light) ---------- */
.site-footer { margin-top: 40px; background: #efe7da; border-top: 3px solid var(--gold); color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: 52px 0 36px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li a { display: inline-block; padding: 6px 0; color: #3f4566; text-decoration: none; font-size: 1.05rem; }
.footer-grid li a:hover { color: var(--bronze); text-decoration: underline; }
.footer-h { font: 600 .82rem var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: #6b6f8f; margin: 0 0 14px; }
.footer-about p { color: var(--text-2); font-size: .96rem; margin: 14px 0 0; max-width: 46ch; }
.footer-bottom { border-top: 1px dashed var(--line-2); padding: 22px 0 28px; text-align: center; color: #6b6f8f; font-size: .98rem; }
.footer-bottom p { margin: 6px 0; }
.footer-bottom a { color: #23305e; font-weight: 600; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- misc ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--heading); color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 400; opacity: 0; transition: .25s; pointer-events: none; box-shadow: var(--shadow); font-size: .95rem; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.notfound { text-align: center; padding: 90px 0 60px; }
.notfound .code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--font-head); color: transparent; background: linear-gradient(180deg, #c99248, #6e4a22); -webkit-background-clip: text; background-clip: text; }

/* overflow guards */
.ledger > *, .explainer > *, .teaser > *, .hero-grid > *, .planner-grid > *, .items-grid > * { min-width: 0; }
@media (max-width: 560px) {
  .spec-table th, .spec-table td { display: block; width: auto; padding: 4px 0; border: 0; }
  .spec-table tr { display: block; padding: 8px 0; border-bottom: 1px dotted var(--line-2); }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- home: what is (image + two paragraphs, equal height) ---------- */
.what-is { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.what-is-img { margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 24px 44px -26px rgba(64,44,20,.6); background: #0a0d14; }
.what-is-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.what-is-text { display: flex; flex-direction: column; justify-content: center; }
.what-is-text p { color: var(--text-2); font-size: 1.07rem; }
.what-is-text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .what-is { grid-template-columns: 1fr; } }

/* ==========================================================================
   Mobile: centred alignment
   ========================================================================== */
@media (max-width: 760px) {
  .hero-grid > div:first-child, .section-head, .page-hero, .article-hero, .what-is-text, .bento-item, .ledger-specs > h2, .ledger-specs > h3, .ledger-specs > p,
  .teaser > div:first-child, .guide-card, .feature-row, .platform, .related-grid a, .prevnext a, .sitemap-groups, .tool-hero-inner > div, .content-narrow > h2, .notfound,
  .two-col > div > h2, .two-col > div > p, .pkg, .panel, .footer-grid, .footer-about, .section > .wrap > h2, .section-tight > .wrap > h2, .section-tight > .wrap > p { text-align: center; }
  .eyebrow { justify-content: center; }
  .hero-intro, .article-hero h1, .article-hero .lead, .page-hero p, .footer-about p { margin-inline: auto; }
  .hero-ctas, .release-strip, .article-hero .meta, .breadcrumbs ol, .guide-card .meta, .guides-toolbar, .filter-chips, .editor-actions { justify-content: center; }
  .feat-ico, .feature-row .feat-ico, .guide-card .gc-top .feat-ico { margin-inline: auto; }
  .guide-card .gc-top { justify-content: center; }
  .bento-item a.more { justify-content: center; }
  .platform h3, .pkg h2 { justify-content: center; flex-wrap: wrap; }
  .teaser-list li, .feature-row .points li { justify-content: center; text-align: center; }
  .pkg ul, .panel ul { list-style-position: inside; padding-left: 0; }
  .callout { flex-direction: column; align-items: center; text-align: center; border-left: 0; border-top: 4px solid var(--arcane); border-radius: 0 0 8px 8px; }
  .callout.warn { border-top-color: var(--ember); } .callout.good { border-top-color: var(--good); }
  .faq summary { text-align: center; padding: 18px 44px; }
  .faq .faq-a { text-align: center; }
  .spec-table th, .spec-table td { text-align: center; }
  .req-table th, .req-table td { text-align: center; }
  .steps::before { display: none; }
  .steps > li { padding: 56px 0 22px; text-align: center; }
  .steps > li::before { left: 50%; transform: translateX(-50%); }
  .prose > h2, .prose h3, .prose h4, .prose figcaption, .toc-mobile summary { text-align: center; }
  .prevnext .next { align-items: center; text-align: center; }
  .prevnext a { align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-about .brand { justify-content: center; }
  .stat-mock .row { gap: 10px; }
  .figure-frame, .what-is-img { margin-inline: auto; }
  .search-field { margin-inline: auto; }
}
@media (max-width: 760px) { .eyebrow::before { display: none; } .hero-note { text-align: center; } }

/* ---------- guide featured images ---------- */
.article-feature { margin: 28px 0 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #1a1712; box-shadow: var(--shadow); aspect-ratio: 16 / 7; display: flex; align-items: center; justify-content: center; }
.article-feature img { width: 100%; height: 100%; object-fit: contain; display: block; }
.guide-card .gc-img { aspect-ratio: 16 / 9; overflow: hidden; background: #1a1712; border-bottom: 1px solid var(--line); }
.guide-card .gc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.guide-card:hover .gc-img img { transform: scale(1.04); }
@media (max-width: 760px) { .article-feature { aspect-ratio: 16 / 10; margin-top: 18px; } }

/* ==========================================================================
   One H1 size everywhere + centred alignment (desktop and mobile)
   ========================================================================== */
h1, .hero h1, .tool-hero h1, .article-hero h1, .page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.18; }
.hero-grid > div:first-child, .section-head, .page-hero, .article-hero, .what-is-text, .bento-item, .ledger-specs > h2, .ledger-specs > h3, .ledger-specs > p, .tool-hero-inner > div:first-child, .notfound, .footer-bottom { text-align: center; }
.eyebrow { justify-content: center; }
.eyebrow::before { display: none; }
.hero-intro, .page-hero p, .page-hero h1, .article-hero h1, .article-hero .lead, .section-head { margin-inline: auto; }
.hero-ctas, .release-strip, .article-hero .meta, .breadcrumbs ol { justify-content: center; }
.bento-item .feat-ico { margin-inline: auto; }
.bento-item a.more { justify-content: center; }
.faq summary { text-align: center; padding-left: 56px; }
.faq .faq-a { text-align: center; }
.hero-note { text-align: center; }
.home-planner { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* scroll to top */
.to-top { position: fixed; right: 20px; bottom: 22px; z-index: 150; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #8a5718; background: linear-gradient(180deg, #c99248, #8f5b20); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(64,44,20,.8); transition: transform .2s; }
.to-top[hidden] { display: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top .ico { transform: rotate(90deg); }
@media (max-width: 760px) { .to-top { right: 14px; bottom: 16px; width: 44px; height: 44px; } }

/* ==========================================================================
   Centre alignment for every section (desktop + mobile); long guide text stays readable
   ========================================================================== */
.section-head, .section-head.center { text-align: center; margin-inline: auto; }
.two-col > div > h2, .two-col > div > p, .two-col > div > .eyebrow, .pkg, .panel, .feature-row, .platform, .guide-card, .related-grid a, .sitemap-groups,
.content-narrow > h2, .content-narrow > p, .section-tight > .wrap > h2, .section-tight > .wrap > p, .footer-grid, .footer-about, .what-is-text, .teaser > div { text-align: center; }
.footer-about p { margin-inline: auto; }
.footer-about .brand { justify-content: center; }
.footer-grid { justify-items: center; }
.feature-row .feat-ico, .guide-card .gc-top .feat-ico { margin-inline: auto; }
.feature-row .points li, .teaser-list li { justify-content: center; text-align: center; }
.platform h3, .pkg h2 { justify-content: center; flex-wrap: wrap; }
.pkg ul, .panel ul { list-style-position: inside; padding-left: 0; }
.guide-card .meta, .guides-toolbar, .filter-chips { justify-content: center; }
.search-field { margin-inline: auto; }
.callout { flex-direction: column; align-items: center; text-align: center; border-left: 0; border-top: 4px solid var(--arcane); border-radius: 0 0 8px 8px; }
.callout.warn { border-top-color: var(--ember); } .callout.good { border-top-color: var(--good); }
.steps::before { display: none; }
.steps > li { padding: 56px 0 22px; text-align: center; }
.steps > li::before { left: 50%; transform: translateX(-50%); }
.prevnext a, .prevnext .next { align-items: center; text-align: center; }
.prose > h2, .prose h3, .prose h4, .prose figcaption { text-align: center; }
.feature-row { grid-template-columns: 1fr; justify-items: center; max-width: 820px; margin-inline: auto; }

/* ---------- home: installation flow (connected circles) ---------- */
.install-flow { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; max-width: 1080px; }
.install-flow::before { content: ""; position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.install-flow li { position: relative; text-align: center; }
.install-flow .if-num { position: relative; z-index: 1; display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); font: 700 1.5rem var(--font-head); color: var(--bronze-dark); box-shadow: 0 0 0 8px var(--bg-2); }
.install-flow h3 { font-size: 1.1rem; margin-bottom: .4em; }
.install-flow p { color: var(--text-2); font-size: .97rem; margin: 0; }
@media (max-width: 860px) { .install-flow { grid-template-columns: 1fr 1fr; } .install-flow::before { display: none; } }
@media (max-width: 520px) { .install-flow { grid-template-columns: 1fr; } }

/* ---------- home: requirements strip (single bar with dividers) ---------- */
.req-strip { margin: 0 auto; max-width: 1100px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--heading); color: #f6ead5; border-radius: 999px; overflow: hidden; }
.req-strip > div { padding: 22px 16px; text-align: center; }
.req-strip > div + div { border-left: 1px solid rgba(246,234,213,.18); }
.req-strip dt { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 700 .76rem var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #e2c48f; }
.req-strip dd { margin: 8px 0 0; font-size: .98rem; color: #fff; }
@media (max-width: 960px) { .req-strip { grid-template-columns: repeat(2, 1fr); border-radius: 20px; } .req-strip > div { border-left: 0 !important; border-top: 1px solid rgba(246,234,213,.18); } .req-strip > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .req-strip { grid-template-columns: 1fr; } }

/* ---------- Header: mobile & tablet responsive fix ---------- */
.header-actions { flex: none; }
@media (max-width: 980px) {
  .header-inner { gap: 14px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-text { min-width: 0; }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nav-toggle { width: 42px; height: 42px; border-color: var(--line); background: #fff; }
}
@media (max-width: 520px) {
  .header-inner { gap: 10px; }
  .brand { gap: 9px; }
  .header-dl { width: 42px; height: 42px; padding: 0; justify-content: center; }
}
@media (max-width: 360px) {
  .brand img { width: 42px; }
  .brand { gap: 7px; }
  .brand-name { font-size: .84rem; letter-spacing: 0; }
  .header-actions { gap: 6px; }
}

/* ---------- Safety: no sideways scrolling on mobile ---------- */
html { overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
