/* GHAN — ghan.io
   The original GHAN identity, rebuilt on a static, server-rendered page.
   Palette and type are lifted from the previous site's stylesheet, not
   reinterpreted: --eden/--leaf greens, the bone/white paper stack, Syne
   ExtraBold display, DM Sans body, JetBrains Mono for numbers.

   Constraint that shapes everything here: no JavaScript. The technical-GEO
   bundle measures the static response, so the particle field, the hover
   states and the section rhythm are all CSS. */

/* ---- Tokens: the original GHAN palette ---- */
:root {
  --black:    #0a0a0a;
  --graphite: #1c1c1c;
  --ash:      #6b6b6b;
  --mid:      #999999;
  --silver:   #c8c8c8;
  --cloud:    #e8e8e8;
  --bone:     #f2f1ee;
  --white:    #fafaf8;
  --pure:     #ffffff;

  --eden:   #1e4d2b;
  --canopy: #2d6b3f;
  --moss:   #3d8b52;
  --leaf:   #52a668;
  --mint:   #b8e6ac;
  --warm:   #d4a853;

  --bg:      var(--white);
  --bg-card: var(--pure);
  --bg-soft: var(--bone);
  --ink:     var(--black);
  --ink-2:   #3d3d3d;
  --ink-3:   var(--ash);
  --line:    var(--cloud);
  --accent:  var(--eden);
  --accent-b: var(--leaf);
  --wash:    #eef5f0;

  --wrap: 1180px;
  --measure: 70ch;
  --radius: 12px;
  --radius-pill: 999px;

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  --display: 'Syne', var(--sans);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #0a0a0a;
    --bg-card: #121412;
    --bg-soft: #101210;
    --ink:     #f2f1ee;
    --ink-2:   #c4c8c4;
    --ink-3:   #8e938e;
    --line:    #262a26;
    --accent:  #7fd398;
    --accent-b: var(--leaf);
    --wash:    #13221a;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --bg-card: #121412; --bg-soft: #101210;
  --ink: #f2f1ee; --ink-2: #c4c8c4; --ink-3: #8e938e;
  --line: #262a26; --accent: #7fd398; --wash: #13221a;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

::selection { background: var(--mint); color: var(--black); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 99;
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---- The bracket logo ---- */
.brand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); gap: 1px; }
.brand-lock { display: inline-flex; align-items: center; gap: 9px; line-height: 1; }
.brand-b { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--silver); transition: color .15s ease; }
.brand-mark { font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: .13em; color: var(--ink); }
.brand:hover .brand-b { color: var(--leaf); }
.brand-sub { font-size: 9px; letter-spacing: .09em; color: var(--mid); font-family: var(--sans); }
.brand-sub b { font-weight: 600; letter-spacing: .15em; color: var(--ash); }

/* ---- Header ---- */
.site-head {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 40;
}
.head-inner { display: flex; align-items: center; gap: 22px; min-height: 70px; flex-wrap: wrap; }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--leaf); }

/* ---- Buttons: the original pills ---- */
.btn {
  display: inline-block; background: var(--ink); color: var(--bg);
  padding: 13px 26px; border-radius: var(--radius-pill); text-decoration: none;
  font-weight: 700; font-size: 15px; border: 1px solid var(--ink);
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { background: var(--eden); border-color: var(--eden); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(30,77,43,.22); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--wash); color: var(--ink); border-color: var(--leaf); box-shadow: none; }

/* ---- Hero: the dot field, in pure CSS ---- */
.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 56px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle, var(--silver) 1.1px, transparent 1.2px),
    radial-gradient(circle, var(--silver) 1.1px, transparent 1.2px);
  background-size: 46px 46px, 71px 71px;
  background-position: 0 0, 23px 31px;
  opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 78%);
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 620px; height: 620px; right: -220px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(82,166,104,.16) 0%, rgba(82,166,104,0) 68%);
}
.hero .wrap { position: relative; }
.hero-lock { display: flex; justify-content: center; margin-bottom: 26px; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 6.6vw, 74px); line-height: 1.02; letter-spacing: -.03em;
  margin: 0 auto 22px; max-width: 17ch; text-align: center;
}
.hero .answer-lead {
  margin: 0 auto 26px; text-align: center; border: 0; padding: 0;
  max-width: 60ch; font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); font-weight: 400;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.hero-stats {
  display: flex; gap: 26px; justify-content: center; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em;
}
.hero-stats b { color: var(--eden); font-weight: 500; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-stats b { color: var(--accent); } }

/* ---- Page shell ---- */
.page { padding: 34px 0 72px; }
.page.has-hero { padding-top: 46px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--silver); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.025em;
  font-size: clamp(32px, 5.4vw, 54px); line-height: 1.06; margin: 0 0 18px; max-width: 20ch;
}
.answer-lead {
  font-size: clamp(18px, 2.3vw, 21px); line-height: 1.55; color: var(--ink);
  max-width: var(--measure); margin: 0 0 16px; font-weight: 500;
  border-left: 3px solid var(--leaf); padding-left: 18px;
}
.byline { font-size: 12.5px; color: var(--ink-3); margin: 0 0 30px; font-family: var(--mono); }
.byline a { color: var(--ink-3); }

.toc {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin: 0 0 36px; max-width: var(--measure);
}
.toc-h { font-family: var(--mono); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; font-weight: 500; }
.toc ol { margin: 0; padding-left: 20px; font-size: 15px; }
.toc li { margin: 5px 0; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.prose { max-width: var(--measure); }
.prose h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.16; margin: 52px 0 14px; scroll-margin-top: 90px;
}
.prose h3 { font-family: var(--display); font-size: 20px; font-weight: 700; margin: 32px 0 8px; scroll-margin-top: 90px; }
.prose h4 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; color: var(--ink-2); }
.prose p { margin: 0 0 17px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 7px 0; }
.prose li::marker { color: var(--leaf); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

.prose blockquote {
  margin: 24px 0; padding: 16px 22px; background: var(--wash);
  border-left: 3px solid var(--eden); border-radius: 0 var(--radius) var(--radius) 0;
}
.prose blockquote p { margin: 0; font-size: 16.5px; }

.prose table {
  width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px;
  display: block; overflow-x: auto;
}
.prose th, .prose td { text-align: left; padding: 11px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500; white-space: nowrap;
  border-bottom: 1px solid var(--silver);
}
.prose tbody tr:hover { background: var(--bg-soft); }

.prose code { font-family: var(--mono); font-size: .86em; background: var(--wash); padding: 2px 6px; border-radius: 5px; color: var(--eden); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .prose code { color: var(--accent); } }
.prose pre {
  background: var(--black); color: #f2f1ee; padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; margin: 22px 0; font-size: 13.5px; line-height: 1.62;
  border: 1px solid var(--graphite);
}
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; }

/* ---- FAQ ---- */
.faq { margin: 60px 0 0; max-width: var(--measure); }
.faq h2 { font-family: var(--display); font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 18px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-card);
  padding: 0 20px; margin: 0 0 10px; transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--leaf); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--leaf); font-weight: 400; font-size: 20px; line-height: 1.2; }
.faq details[open] summary::after { content: "–"; }
.faq .fa { padding: 0 0 16px; border-top: 1px solid var(--line); margin-top: 2px; }
.faq .fa p { margin: 13px 0 0; color: var(--ink-2); }

/* ---- Related ---- */
.related { margin: 60px 0 0; max-width: var(--measure); }
.related h2 { font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.relist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.relist a {
  display: block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 18px; text-decoration: none; background: var(--bg-card); color: var(--ink);
  transition: border-color .15s ease, transform .12s ease;
}
.relist a:hover { border-color: var(--leaf); background: var(--wash); transform: translateX(2px); }
.relist strong { display: block; color: var(--accent); font-size: 16px; }
.relist span { display: block; color: var(--ink-3); font-size: 14px; margin-top: 3px; }

.machine { margin: 48px 0 0; font-size: 12.5px; color: var(--ink-3); max-width: var(--measure); font-family: var(--mono); line-height: 1.9; }
.machine a { color: var(--ink-3); }

/* ---- Footer: dark band, like the original ---- */
.site-foot { background: var(--black); color: var(--silver); padding: 52px 0 46px; margin-top: 56px; border-top: 1px solid var(--graphite); }
.site-foot .brand-mark { color: var(--white); }
.site-foot .brand-b { color: var(--graphite); }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 28px; }
.fh { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ash); margin: 0 0 12px; font-weight: 500; }
.fcol ul { list-style: none; margin: 0; padding: 0; }
.fcol li { margin: 6px 0; }
.fcol a { color: var(--silver); text-decoration: none; font-size: 14px; }
.fcol a:hover { color: var(--mint); }
.fnote { font-size: 13px; color: var(--ash); margin: 30px 0 0; max-width: 92ch; }
.fnote a { color: var(--silver); }
.fnote a:hover { color: var(--mint); }
.foot-lock { margin-bottom: 30px; }

@media (max-width: 760px) {
  .head-inner { min-height: 0; padding-top: 12px; padding-bottom: 12px; gap: 14px; }
  .site-nav { margin-left: 0; width: 100%; order: 3; }
  .site-nav ul { gap: 14px; }
  .site-head { position: static; }
  .hero { padding: 54px 0 40px; }
  body { font-size: 16px; }
  .prose table { font-size: 14px; }
}

/* =========================================================================
   Landing sections — the original GHAN section rhythm, rebuilt static.
   Alternating full-bleed bands, eyebrow label + tom-title + line, card
   grids, commandment rows. No JavaScript: the old site's .reveal scroll
   animations are replaced by CSS-only entrance on the band itself, which
   degrades to "already visible" everywhere that matters.
   ========================================================================= */

.landing .prose { max-width: none; }
.landing .page > .wrap { padding: 0; max-width: none; }

.band { padding: 96px 0; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.band > .bandw { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; position: relative; }
.band-soft { background: var(--bg-soft); }
.band-dark { background: var(--black); color: var(--silver); border-bottom-color: var(--graphite); }
.band-dark .tom-title { color: var(--white); }
.band-dark .tom-line { color: rgba(242,241,238,.55); }
.band-dark .card { background: #121412; border-color: #242824; color: var(--silver); }
.band-dark .card h3 { color: var(--white); }
.band-dark a { color: var(--mint); }
.band-dark .statbar b { color: var(--mint); }
.band-dark th { color: rgba(242,241,238,.45); border-bottom-color: #2c302c; }
.band-dark td { border-bottom-color: #1d201d; }

.band-head { text-align: center; max-width: 780px; margin: 0 auto 56px; }
.band-head.left { text-align: left; margin-left: 0; }
.tom-label {
  display: inline-block; font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em; padding: 6px 14px; border-radius: 8px;
  margin-bottom: 20px; color: var(--eden); background: var(--wash); border: 1px solid rgba(30,77,43,.16);
}
.band-dark .tom-label { color: var(--mint); background: rgba(184,230,172,.07); border-color: rgba(184,230,172,.16); }
.tom-label-rd { color: #9d3b34; background: rgba(212,100,92,.09); border-color: rgba(212,100,92,.2); }
.band-dark .tom-label-rd { color: #e8928b; background: rgba(212,100,92,.1); border-color: rgba(212,100,92,.22); }

.tom-title {
  font-family: var(--display); font-size: clamp(30px, 4.6vw, 56px); font-weight: 800;
  line-height: 1.07; letter-spacing: -.032em; margin: 0; color: var(--ink);
}
.tom-line { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-3); line-height: 1.62; margin: 16px auto 0; max-width: 62ch; }
.band-head.left .tom-line { margin-left: 0; }

/* Card grids */
.cards { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; position: relative; overflow: hidden;
  transition: border-color .3s ease, transform .3s cubic-bezier(.175,.885,.32,1.275), box-shadow .3s ease;
}
.card:hover { border-color: var(--leaf); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(10,10,10,.07); }
.card h3 { font-family: var(--display); font-size: 19px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.card p { margin: 0; font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.card .kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 12px; }
.card .big { font-family: var(--display); font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; display: block; margin-bottom: 8px; color: var(--eden); }
.band-dark .card .big { color: var(--mint); }

/* Stat strip */
.statbar {
  display: flex; flex-wrap: wrap; gap: 34px; justify-content: center;
  font-family: var(--mono); font-size: 13px; color: var(--ink-3); margin-top: 44px;
}
.statbar b { color: var(--eden); font-weight: 500; }

/* Commandment rows */
.cmd-row {
  display: grid; grid-template-columns: 74px 1fr; gap: 22px; align-items: start;
  padding: 34px 0; border-bottom: 1px solid #1d201d;
}
.cmd-row:last-child { border-bottom: 0; }
.cmd-num {
  font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--graphite);
  line-height: 1; letter-spacing: -.02em; -webkit-text-stroke: 1px #3a403a;
}
.cmd-row h3 { font-family: var(--display); font-size: 22px; font-weight: 700; margin: 0 0 8px; color: var(--white); letter-spacing: -.015em; }
.cmd-row p { margin: 0; color: rgba(242,241,238,.5); font-size: 15.5px; line-height: 1.62; }
.cmd-row p + p { margin-top: 8px; }
.cmd-row .them { color: rgba(212,100,92,.8); }

/* The in-app slot card mockup — deliberately NOT an installer */
.slotwrap { display: flex; justify-content: center; }
.appframe {
  width: 100%; max-width: 620px; border-radius: 14px; overflow: hidden;
  border: 1px solid #242824; background: #131513; box-shadow: 0 30px 70px rgba(0,0,0,.45);
}
.appbar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1a1d1a; border-bottom: 1px solid #242824; }
.appdot { width: 11px; height: 11px; border-radius: 50%; background: #3a403a; }
.appdot:nth-child(1) { background: #d4645c; } .appdot:nth-child(2) { background: #d4a853; } .appdot:nth-child(3) { background: #52a668; }
.apptitle { font-family: var(--mono); font-size: 11.5px; color: rgba(242,241,238,.4); margin-left: 8px; }
.appbody { padding: 26px 22px 24px; }
.appdone { font-family: var(--sans); font-size: 15px; color: rgba(242,241,238,.62); margin: 0 0 20px; }
.appdone b { color: var(--white); font-weight: 600; }
.ghancard {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  border: 1px solid #2a2f2a; border-radius: 12px; background: #181b18;
}
.ghanicon { width: 44px; height: 44px; border-radius: 11px; background: linear-gradient(135deg, #2d6b3f, #52a668); flex-shrink: 0; }
.ghanmeta { flex: 1; min-width: 0; }
.ghanmeta strong { display: block; font-size: 15px; color: var(--white); font-weight: 600; }
.ghanmeta span { display: block; font-size: 13px; color: rgba(242,241,238,.45); margin-top: 2px; }
.ghanbtn { font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px; background: var(--white); color: var(--black); white-space: nowrap; }
.ghanfoot { font-family: var(--mono); font-size: 10.5px; color: rgba(242,241,238,.3); margin: 12px 0 0; text-align: right; }

/* Two-column compare */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split > div { border-radius: 18px; padding: 28px; border: 1px solid var(--line); background: var(--bg-card); }
.split h3 { font-family: var(--display); font-size: 18px; margin: 0 0 14px; letter-spacing: -.01em; }
.split ul { list-style: none; margin: 0; padding: 0; }
.split li { font-size: 15px; padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); line-height: 1.5; }
.split .bad li::before { content: "✗"; position: absolute; left: 0; color: #c2564e; font-weight: 700; }
.split .good li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
.band-dark .split > div { background: #121412; border-color: #242824; }
.band-dark .split li { color: rgba(242,241,238,.6); }

/* Code in a band */
.band .codewrap pre { margin: 0; max-width: 680px; }
.band-soft .codewrap { display: flex; justify-content: center; }

/* Band-level tables inherit prose styling */
.band table { width: 100%; border-collapse: collapse; font-size: 15px; }
.band th, .band td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.band th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }

.bandcta { text-align: center; margin-top: 46px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .band { padding: 62px 0; }
  .band-head { margin-bottom: 36px; }
  .g2, .g3, .g4, .split { grid-template-columns: 1fr; }
  .cmd-row { grid-template-columns: 52px 1fr; gap: 14px; padding: 26px 0; }
  .cmd-num { font-size: 22px; }
  .cmd-row h3 { font-size: 19px; }
  .statbar { gap: 18px; font-size: 12px; }
}
