/* ==========================================================================
   SEUS Shaders — stylesheet ("Lava Light Studio" design)
   Plain CSS. Sizes are simple px values. No formulas, no build step.
   To change the look, edit ONLY the EASY EDIT block below and save.
   ========================================================================== */


/* ==========================================================================
   EASY EDIT
   ========================================================================== */
:root{
  /* ---- Hero H1 size ---- */
  --hero-h1-desktop: 54px;   /* screens wider than 960px */
  --hero-h1-tablet: 44px;    /* 601px to 960px */
  --hero-h1-mobile: 32px;    /* 600px and below */

  /* ---- Other headings ---- */
  --page-h1-desktop: 46px;   /* H1 on inner pages and guides */
  --page-h1-mobile: 30px;
  --h2-desktop: 38px;        /* section titles */
  --h2-mobile: 27px;
  --h3-size: 19px;

  /* ---- Text ---- */
  --body-size: 16px;
  --lead-size: 17px;

  /* ---- Layout ---- */
  --container: 1140px;
  --gutter: 24px;
  --gutter-mobile: 16px;
  --section-space: 96px;
  --section-space-mobile: 60px;
  --header-height: 76px;

  /* ---- Colors (lava orange + gold + charcoal, no blue) ----
     Change a hex value and the whole site follows. */
  --lava: #C2410C;           /* main buttons, links, highlights */
  --lava-hover: #9A3412;     /* button hover */
  --lava-bright: #F08C00;    /* glows, lines, icons */
  --lava-soft: #FFEDD5;      /* light orange backgrounds */
  --gold: #FFC72C;           /* accent */
  --gold-soft: #FFF4D1;      /* light gold backgrounds */
  --ember: #B42318;          /* deep red in gradients */
  --charcoal: #1E1A17;       /* dark panels, copyright bar */
  --charcoal-2: #2B2521;     /* second dark tone */
  --on-dark: #F2EEE8;        /* text on dark panels */
  --on-dark-muted: #BFB3A5;  /* small text on dark panels */
  --bg: #F6F2EC;             /* page background (warm stone) */
  --stone: #ECE5DB;          /* alternate section background */
  --paper: #FFFFFF;          /* cards and panels */
  --line: #E6DED2;           /* thin lines */
  --border: #D6CCBE;         /* borders */
  --heading: #1E1A17;        /* heading text */
  --body: #4E453D;           /* paragraph text */
  --muted: #6F655B;          /* small text */
  --shadow: rgba(30,26,23,.20);
  --ok: #2E7D32;      --ok-soft: #E3F4E4;
  --mid: #9A3412;     --mid-soft: #FFEDD5;
  --no: #B42318;      --no-soft: #FDE4E1;
  --unk: #6F655B;     --unk-soft: #EFEAE3;

  /* ---- Shapes ---- */
  --radius-small: 6px;
  --radius: 10px;
  --radius-large: 18px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Heading sizes use the variables above */
h1        { font-size: var(--page-h1-desktop); }
.hero h1  { font-size: var(--hero-h1-desktop); }
h2        { font-size: var(--h2-desktop); }
h3        { font-size: var(--h3-size); }
@media (max-width: 960px){
  .hero h1 { font-size: var(--hero-h1-tablet); }
}
@media (max-width: 600px){
  .hero h1 { font-size: var(--hero-h1-mobile); }
  h1       { font-size: var(--page-h1-mobile); }
  h2       { font-size: var(--h2-mobile); }
}
/* ======================= end of EASY EDIT ======================= */


/* ---------- Fonts (self-hosted Poppins) ---------- */
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--body-size); line-height: 1.7; color: var(--body); background: var(--bg); }
main { display: block; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lava); text-underline-offset: 3px; }
a:hover { color: var(--lava-hover); }
h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; margin: 0 0 14px; font-weight: 700; letter-spacing: -.6px; }
h3, h4 { letter-spacing: 0; font-weight: 600; }
h4 { font-size: 16px; margin-bottom: 4px; }
p { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
code, kbd { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; background: var(--stone); border-radius: 5px; padding: 1px 6px; color: var(--heading); word-break: break-word; }
:focus-visible { outline: 3px solid var(--lava-bright); outline-offset: 3px; border-radius: 4px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--charcoal); color: var(--on-dark); padding: 10px 16px; border-radius: var(--radius-small); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 16px; color: var(--on-dark); }
svg { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: var(--radius-small); font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; overflow: hidden; transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s; }
.btn-main { background: var(--lava); color: var(--paper); box-shadow: 0 10px 24px -12px var(--lava); }
.btn-main:hover { background: var(--lava-hover); color: var(--paper); transform: translateY(-2px); box-shadow: 0 16px 30px -14px var(--lava); }
.btn-line { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-line:hover { background: var(--heading); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--charcoal); }
.btn-light:hover { background: var(--gold); color: var(--charcoal); transform: translateY(-2px); }
.btn-big { padding: 17px 30px; font-size: 17px; }
.btn-main::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-100%); animation: sweep 5s ease-in-out infinite; }
@keyframes sweep { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.dl-wrap { display: inline-flex; flex-direction: column; gap: 6px; }
.dl-wrap.center { align-items: center; }
.dl-status { font-size: 13px; color: var(--lava); min-height: 20px; }
.final .dl-status, .end-cta .dl-status, .dl-main .dl-status { color: var(--gold); }

/* ---------- Header ---------- */
.ember-line { height: 4px; background: linear-gradient(90deg, var(--ember), var(--lava), var(--lava-bright), var(--gold), var(--lava-bright), var(--lava), var(--ember)); background-size: 200% 100%; animation: flow 6s linear infinite; }
@keyframes flow { to { background-position: 200% 0; } }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-height); }
.brand { display: inline-flex; align-items: center; }
.brand img { border-radius: var(--radius-small); box-shadow: 0 6px 16px -8px var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.brand:hover img { transform: scale(1.05); box-shadow: 0 0 0 3px var(--lava-bright); }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.main-nav a { position: relative; display: block; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--heading); text-decoration: none; }
.main-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--lava-bright); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--lava); }
.menu-toggle { display: none; position: relative; }
.menu-toggle summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius-small); font-weight: 600; font-size: 14px; color: var(--heading); background: var(--paper); }
.menu-toggle summary::-webkit-details-marker { display: none; }
.mobile-menu { position: absolute; right: 0; top: 52px; width: 240px; background: var(--paper); border: 1px solid var(--border); border-top: 3px solid var(--lava-bright); border-radius: var(--radius); padding: 8px; box-shadow: 0 20px 40px -18px var(--shadow); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-small); color: var(--heading); text-decoration: none; font-weight: 500; }
.mobile-menu a:hover { background: var(--lava-soft); }
.mobile-menu a[aria-current="page"] { color: var(--lava); background: var(--lava-soft); }

/* ---------- Sections ---------- */
.section { padding: var(--section-space) 0; }
.section-stone { background: var(--stone); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--charcoal); color: var(--on-dark-muted); }
.split-head { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 40px; align-items: end; margin-bottom: 46px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.split-head h2 { margin: 0; }
.split-head p { margin: 0; font-size: 16px; color: var(--muted); }
.split-head.light { border-bottom-color: var(--charcoal-2); }
.split-head.light h2 { color: var(--on-dark); }
.split-head.light p { color: var(--on-dark-muted); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--lava); margin-bottom: 10px; }
.eyebrow::before { content: "// "; color: var(--lava-bright); }
.section-dark .eyebrow { color: var(--gold); }
.small-note { font-size: 14px; color: var(--muted); margin: 18px 0 0; }

/* ---------- 1. Hero: split with diagonal viewport ---------- */
.hero { position: relative; padding: 70px 0 84px; background: linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -120px; top: -160px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(240,140,0,.22), transparent 65%); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .7; } }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 48px; align-items: center; }
.tagline { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--lava); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 1.5px; }
.flame { width: 12px; height: 18px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: linear-gradient(var(--gold), var(--lava-bright), var(--ember)); animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scaleY(1.2) translateY(-2px); opacity: .8; } }
.hero h1 { line-height: 1.1; letter-spacing: -1.5px; font-weight: 800; margin-bottom: 20px; }
.heat { background: linear-gradient(90deg, var(--ember), var(--lava), var(--lava-bright), var(--gold), var(--lava)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: flow 7s linear infinite; }
.lead { font-size: var(--lead-size); margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-bottom: 30px; }
.hero-facts { list-style: none; padding: 18px 0 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--border); }
.hero-facts li { padding: 0 14px; border-left: 1px solid var(--border); }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts span { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.hero-facts strong { color: var(--heading); font-size: 15px; }

.viewport { position: relative; background: var(--charcoal); border-radius: var(--radius-large); padding: 14px; transform: rotate(2deg); box-shadow: 0 40px 60px -30px var(--shadow), -14px 14px 0 var(--lava-bright); animation: settle 1.2s var(--ease) both; }
@keyframes settle { from { transform: rotate(6deg) translateY(30px); opacity: 0; } to { transform: rotate(2deg); opacity: 1; } }
.viewport img { width: 100%; border-radius: var(--radius); }
.rays { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); pointer-events: none; }
.ray-path { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; opacity: .85; filter: drop-shadow(0 0 4px rgba(255,199,44,.9)); animation: trace 6s ease-in-out infinite; }
.p2 { stroke: var(--lava-bright); animation-delay: 3s; }
@keyframes trace { 0% { stroke-dashoffset: 900; opacity: 0; } 10% { opacity: .85; } 60% { stroke-dashoffset: 0; opacity: .85; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.scan { position: absolute; left: 14px; right: 14px; top: 14px; height: 40px; background: linear-gradient(180deg, transparent, rgba(255,199,44,.18), transparent); animation: scan 4s linear infinite; pointer-events: none; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(330px); } }
.corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--gold); }
.tl { top: 26px; left: 26px; border-right: 0; border-bottom: 0; }
.tr { top: 26px; right: 26px; border-left: 0; border-bottom: 0; }
.bl { bottom: 52px; left: 26px; border-right: 0; border-top: 0; }
.br { bottom: 52px; right: 26px; border-left: 0; border-top: 0; }
.label { display: block; margin-top: 10px; font-size: 12px; color: var(--on-dark-muted); letter-spacing: .5px; }

/* ---------- 2. Features: divider list ---------- */
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0 40px; }
.feat { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 4px 16px; padding: 26px 0; border-top: 1px solid var(--border); }
.feat::before { content: ""; position: absolute; left: 0; top: -1px; height: 3px; width: 0; background: var(--lava-bright); transition: width .5s var(--ease); }
.feat:hover::before { width: 100%; }
.feat-n { grid-column: 1 / -1; font-size: 13px; font-weight: 700; color: var(--lava); letter-spacing: 1px; }
.feat-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--charcoal); color: var(--gold); transition: transform .4s var(--ease), background .4s; }
.feat:hover .feat-ic { transform: rotate(-12deg) scale(1.08); background: var(--lava); color: var(--paper); }
.feat h3 { font-size: 18px; margin-bottom: 6px; }
.feat p { margin: 0; font-size: 15px; }

/* ---------- 3. Download board ---------- */
.dl-board { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.dl-main { position: relative; overflow: hidden; background: var(--charcoal); color: var(--on-dark-muted); border-radius: var(--radius-large); padding: 34px; }
.dl-main::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(240,140,0,.45), transparent 70%); animation: breathe 6s ease-in-out infinite; }
.badge { display: inline-block; background: var(--gold); color: var(--charcoal); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 4px; margin-bottom: 14px; }
.dl-main h3 { color: var(--paper); font-size: 30px; }
.dl-main h3 span { color: var(--gold); }
.spec { position: relative; z-index: 1; margin: 0 0 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.spec div { padding: 10px 0; border-bottom: 1px solid var(--charcoal-2); }
.spec dt { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--on-dark-muted); }
.spec dd { margin: 0; color: var(--on-dark); font-weight: 600; font-size: 15px; }
.dl-row { position: relative; z-index: 1; }
.dl-main .note { position: relative; z-index: 1; margin: 12px 0 0; font-size: 13px; }
.dl-main .note strong { color: var(--on-dark); }
.dl-others { list-style: none; margin: 0; padding: 0; background: var(--paper); border-radius: var(--radius-large); border: 1px solid var(--border); }
.dl-others li { display: flex; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); transition: background .3s; }
.dl-others li:last-child { border-bottom: 0; }
.dl-others li:hover { background: var(--lava-soft); }
.ed-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: var(--radius-small); background: var(--lava-soft); color: var(--lava); }
.dl-others h3 { font-size: 17px; margin-bottom: 2px; }
.dl-others p { font-size: 14px; color: var(--muted); margin: 0 0 6px; }
.dl-others a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; }
.dl-others a svg { width: 14px; height: 14px; }

.edition-note { margin-top: 24px; padding: 24px 28px; background: var(--paper); border-radius: var(--radius-large); border: 1px solid var(--border); }
.edition-note h3 { margin-bottom: 8px; }
.edition-note p { margin: 0; font-size: 15px; }

/* ---------- 4. How to download: track ---------- */
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 22px; position: relative; }
.track::before { content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--lava-bright), var(--lava)); }
.track li { position: relative; }
.dot-n { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--paper); border: 3px solid var(--lava-bright); font-weight: 800; color: var(--heading); margin-bottom: 18px; transition: background .3s, color .3s; }
.track li:hover .dot-n { background: var(--lava); color: var(--paper); border-color: var(--lava); }
.track h3 { font-size: 17px; margin-bottom: 6px; }
.track p { font-size: 14px; margin: 0; }

/* ---------- 5. What it does: story ---------- */
.story { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 60px; align-items: start; }
.story-big { position: sticky; top: 110px; }
.big-line { font-size: 40px; line-height: 1.15; font-weight: 800; color: var(--heading); letter-spacing: -1px; margin-top: 24px; }
.big-line em { font-style: normal; color: var(--lava); }
.story-text p { font-size: 16px; }
.uses { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.uses li { display: flex; gap: 14px; padding: 14px 16px; background: var(--bg); border-left: 3px solid var(--lava-bright); border-radius: 0 var(--radius-small) var(--radius-small) 0; font-size: 15px; }
.uses svg { color: var(--lava); margin-top: 3px; }

/* ---------- 6. Installation: two paths ---------- */
.paths { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 24px; align-items: start; }
.path { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-large); padding: 30px; }
.main-path { border-top: 4px solid var(--lava); }
.path > h3 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 22px; margin-bottom: 20px; }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 3px 9px; border-radius: 4px; background: var(--lava); color: var(--paper); }
.tag.soft { background: var(--stone); color: var(--muted); }
.num-list { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.num-list li { position: relative; counter-increment: n; padding: 0 0 18px 50px; }
.num-list li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 34px; height: 34px; display: grid; place-items: center; background: var(--charcoal); color: var(--gold); font-weight: 700; font-size: 14px; border-radius: var(--radius-small); }
.num-list li:last-child { padding-bottom: 0; }
.num-list p { margin: 0; font-size: 15px; }
.first-use { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); }
.first-use p { margin: 0; font-size: 15px; }

/* ---------- 7 & 9. Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius-large); border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
table.data caption { text-align: left; padding: 14px 20px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
table.data th, table.data td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th { background: var(--bg); color: var(--heading); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid var(--lava-bright); }
table.data tbody th { color: var(--heading); font-weight: 600; }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: var(--bg); }
table.data .me { background: var(--lava-soft); font-weight: 600; color: var(--heading); }
table.data .me2 { background: var(--gold-soft); color: var(--heading); }
table.data thead .me { background: var(--lava); color: var(--paper); }
table.data thead .me2 { background: var(--gold); color: var(--charcoal); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 14px; height: 14px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.mid { background: var(--mid-soft); color: var(--mid); }
.pill.no { background: var(--no-soft); color: var(--no); }
.pill.unk { background: var(--unk-soft); color: var(--unk); }

/* ---------- 8. Pros and cons: ledger ---------- */
.ledger { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--border); border-radius: var(--radius-large); overflow: hidden; background: var(--paper); }
.ledger-col { padding: 30px 34px; }
.ledger-col + .ledger-col { border-left: 1px solid var(--border); }
.ledger-col h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.ledger-col h3 span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; color: var(--paper); }
.plus h3 span { background: var(--ok); }
.minus h3 span { background: var(--lava); }
.ledger ul { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.ledger li:last-child { border-bottom: 0; }

/* ---------- 10. Troubleshooting rows ---------- */
.fx { border-top: 1px solid var(--border); }
.fx-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); transition: background .3s, padding .3s; }
.fx-row:hover { background: var(--paper); padding-left: 14px; padding-right: 14px; }
.fx-row h3 { font-size: 17px; margin: 0; }
.fx-row p { margin: 0; font-size: 15px; }
.fx-row span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); }
.fx-fix span { color: var(--lava); }
.tip-line { margin: 24px 0 0; padding: 18px 22px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------- 11. Editorial perspectives (dark) ---------- */
.persp-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.persp { padding: 28px; border: 1px solid var(--charcoal-2); border-radius: var(--radius-large); transition: border-color .3s, transform .3s var(--ease); }
.persp:hover { border-color: var(--lava-bright); transform: translateY(-4px); }
.persp svg { width: 30px; height: 30px; color: var(--gold); margin-bottom: 18px; }
.persp h3 { color: var(--on-dark); }
.persp p { margin: 0; font-size: 15px; }

/* ---------- 12. FAQ grid ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-items: start; }
.faq-grid details, .faq-list details { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .25s; }
.faq-grid details[open], .faq-list details[open] { border-color: var(--lava-bright); }
.faq-grid summary, .faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 600; color: var(--heading); }
.faq-grid summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.faq-grid summary::before, .faq-list summary::before { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--lava); border-bottom: 2px solid var(--lava); transform: rotate(-45deg); transition: transform .3s; }
.faq-grid details[open] summary::before, .faq-list details[open] summary::before { transform: rotate(45deg); }
.answer { padding: 0 20px 18px 42px; }
.answer p { margin: 0; }
.faq-list { display: grid; gap: 10px; }

/* ---------- 13. Final CTA (lava) ---------- */
.final { position: relative; overflow: hidden; padding: 100px 0; text-align: center; color: var(--lava-soft); background: linear-gradient(135deg, var(--charcoal) 0%, var(--ember) 55%, var(--lava) 100%); }
.final-inner { position: relative; }
.final img { margin: 0 auto 22px; border-radius: var(--radius); box-shadow: 0 20px 40px -18px rgba(0,0,0,.6); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.final h2 { color: var(--paper); }
.final .note { font-size: 14px; margin: 14px 0 0; }
.final .note a { color: var(--gold); }
.embers span { position: absolute; bottom: -20px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 4px rgba(240,140,0,.8); animation: ember 9s linear infinite; }
.embers span:nth-child(1) { left: 5%; animation-delay: 0s; }
.embers span:nth-child(2) { left: 14%; animation-delay: -2s; width: 5px; height: 5px; }
.embers span:nth-child(3) { left: 24%; animation-delay: -5s; }
.embers span:nth-child(4) { left: 35%; animation-delay: -7s; width: 6px; height: 6px; }
.embers span:nth-child(5) { left: 47%; animation-delay: -1s; }
.embers span:nth-child(6) { left: 58%; animation-delay: -4s; width: 5px; height: 5px; }
.embers span:nth-child(7) { left: 69%; animation-delay: -6s; }
.embers span:nth-child(8) { left: 78%; animation-delay: -3s; width: 6px; height: 6px; }
.embers span:nth-child(9) { left: 88%; animation-delay: -8s; }
.embers span:nth-child(10) { left: 95%; animation-delay: -5.5s; width: 5px; height: 5px; }
@keyframes ember { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: 1; } 50% { transform: translate(20px,-260px); } 100% { transform: translate(-10px,-560px); opacity: 0; } }

/* ---------- Footer (light) ---------- */
.site-footer { background: var(--stone); color: var(--body); }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(3, minmax(0,1fr)); gap: 40px; padding: 60px 0 36px; }
.footer-brand p { margin: 18px 0 0; font-size: 15px; }
.footer-col h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--lava); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--body); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--lava); text-decoration: underline; }
.disclose { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 20px 0 28px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
.disclose svg { color: var(--lava); margin-top: 2px; }
.copyright { background: var(--charcoal); color: var(--on-dark-muted); text-align: center; padding: 16px 0; font-size: 14px; }
.copyright p { margin: 0; }
.copyright a { color: var(--gold); font-weight: 600; text-decoration: none; }
.copyright a:hover { text-decoration: underline; }

/* ---------- Inner pages ---------- */
.page-head { position: relative; padding: 56px 0 46px; background: var(--paper); border-bottom: 1px solid var(--line); margin-bottom: 50px; overflow: hidden; }
.page-head::after { content: ""; position: absolute; right: -100px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(240,140,0,.18), transparent 65%); }
.page-head .container { position: relative; z-index: 1; }
.page-head p { font-size: 17px; max-width: 760px; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.crumbs [aria-current] { color: var(--muted); }
.content { max-width: 780px; padding-bottom: 80px; }
.content h2 { font-size: 28px; margin-top: 40px; }
.content h3 { margin-top: 26px; }
.content li { margin-bottom: 6px; }
.content .table-wrap { margin: 20px 0; }
.boxes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-bottom: 10px; }
.boxes div { background: var(--paper); border-top: 3px solid var(--lava-bright); border-radius: var(--radius); padding: 18px; }
.boxes h2 { font-size: 17px; margin: 0 0 6px; }
.boxes p { margin: 0; font-size: 15px; word-break: break-word; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.cols3 h2 { font-size: 20px; margin-top: 0; }
.page-content { max-width: 860px; }

/* Guides archive: magazine list */
.glist { display: grid; gap: 14px; padding-bottom: 90px; }
.gl-item { display: grid; grid-template-columns: 54px 52px minmax(0,1fr) 40px; gap: 18px; align-items: center; padding: 22px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-large); text-decoration: none; color: var(--body); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.gl-item:hover { transform: translateX(6px); border-color: var(--lava-bright); box-shadow: -6px 0 0 var(--lava-bright); color: var(--body); }
.gl-n { font-size: 30px; font-weight: 800; color: var(--border); }
.gl-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lava-soft); color: var(--lava); }
.gl-body h2 { font-size: 21px; margin-bottom: 4px; }
.gl-body p { margin: 0; font-size: 15px; }
.gl-go { color: var(--lava); transition: transform .3s; }
.gl-item:hover .gl-go { transform: translateX(4px); }
.gl-first { background: var(--charcoal); border-color: var(--charcoal); padding: 34px 30px; }
.gl-first h2 { color: var(--paper); font-size: 26px; }
.gl-first p { color: var(--on-dark-muted); }
.gl-first .gl-n { color: var(--lava-bright); }
.gl-first .gl-ic { background: var(--lava); color: var(--paper); }
.gl-first .cat, .gl-first .gl-go { color: var(--gold); }
.gl-first:hover { color: var(--on-dark-muted); }
.cat { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--lava); margin-bottom: 6px; }

/* Guide articles: TOC on the left */
.article-wrap { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 56px; align-items: start; }
.article-wrap .content { max-width: none; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.toc { position: sticky; top: 104px; border-left: 3px solid var(--lava-bright); padding: 6px 0 6px 18px; }
.toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 18px; font-size: 14px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--body); text-decoration: none; }
.toc a:hover { color: var(--lava); text-decoration: underline; }
.keys { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--lava); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; }
.keys h2 { font-size: 19px; margin: 0 0 10px; }
.keys ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.keys li { display: flex; gap: 10px; margin: 0; }
.keys svg { color: var(--lava); margin-top: 4px; }
.end-cta { display: grid; grid-template-columns: 140px minmax(0,1fr) auto; gap: 22px; align-items: center; margin-top: 40px; padding: 26px; border-radius: var(--radius-large); background: linear-gradient(135deg, var(--charcoal), var(--ember)); color: var(--lava-soft); }
.end-cta img { border-radius: var(--radius-small); }
.end-cta h2 { color: var(--paper); font-size: 22px; margin: 0 0 4px; }
.end-cta p { margin: 0; font-size: 14px; }
.related { margin-top: 36px; }
.related h2 { font-size: 22px; }

/* 404 */
.notfound { padding: 80px 0 110px; text-align: center; }
.notfound img { margin: 0 auto 10px; border-radius: var(--radius); animation: bob 5s ease-in-out infinite; }
.notfound .code { font-size: 90px; font-weight: 800; line-height: 1; color: var(--lava); margin: 0 0 10px; }
.nf-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Scroll reveal (only active when main.js runs) ---------- */
.reveal .reveal-up { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal .reveal-l { opacity: 0; transform: translateX(-40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal .reveal-r { opacity: 0; transform: translateX(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal .in-view.reveal-up, .reveal .in-view.reveal-l, .reveal .in-view.reveal-r { opacity: 1; transform: none; }
.reveal .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal .stagger.in-view > * { opacity: 1; transform: none; }
.reveal .stagger.in-view > *:nth-child(2) { transition-delay: .07s; }
.reveal .stagger.in-view > *:nth-child(3) { transition-delay: .14s; }
.reveal .stagger.in-view > *:nth-child(4) { transition-delay: .21s; }
.reveal .stagger.in-view > *:nth-child(5) { transition-delay: .28s; }
.reveal .stagger.in-view > *:nth-child(6) { transition-delay: .35s; }
.reveal .stagger.in-view > *:nth-child(n+7) { transition-delay: .42s; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px){
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .feat-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .track { grid-template-columns: repeat(3, minmax(0,1fr)); row-gap: 34px; }
  .track::before { display: none; }
}
@media (max-width: 960px){
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .viewport { max-width: 560px; margin: 0 auto; width: 100%; }
  .split-head { grid-template-columns: 1fr; gap: 10px; }
  .dl-board, .paths, .story { grid-template-columns: 1fr; }
  .story { gap: 20px; }
  .story-big { position: static; }
  .big-line { font-size: 32px; }
  .persp-row { grid-template-columns: 1fr; }
  .fx-row { grid-template-columns: 1fr 1fr; }
  .fx-row h3 { grid-column: 1 / -1; }
  .article-wrap { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px){
  .hero-facts { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .hero-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .feat-list { grid-template-columns: 1fr; }
  .track { grid-template-columns: 1fr; }
  .spec { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-col + .ledger-col { border-left: 0; border-top: 1px solid var(--border); }
  .fx-row { grid-template-columns: 1fr; gap: 10px; }
  .faq-grid { grid-template-columns: 1fr; }
  .boxes, .cols3 { grid-template-columns: 1fr; }
  .end-cta { grid-template-columns: 1fr; }
  .gl-item { grid-template-columns: 44px minmax(0,1fr); }
  .gl-n, .gl-go { display: none; }
}
@media (max-width: 600px){
  .container { padding: 0 var(--gutter-mobile); }
  .section { padding: var(--section-space-mobile) 0; }
  .hero { padding: 40px 0 60px; }
  .lead { font-size: 16px; }
  .menu-toggle summary span { display: none; }
  .hero-ctas .btn, .hero-ctas .dl-wrap { width: 100%; }
  .viewport { transform: none; box-shadow: -8px 8px 0 var(--lava-bright); animation: none; }
  .corner { width: 16px; height: 16px; }
  .dl-main, .path, .ledger-col { padding: 22px; }
  .dl-others li { padding: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gl-item { padding: 18px; gap: 14px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal .reveal-up, .reveal .reveal-l, .reveal .reveal-r, .reveal .stagger > * { opacity: 1; transform: none; }
  .ray-path { stroke-dashoffset: 0; opacity: .6; }
}
