/* ============================================================
   iConnectSolution — style.css
   Design system: "Single-panel Field Guide"
   Layout : the whole site lives inside ONE centered container
            (the .shell) — header, hero, sections and footer all
            align to the same edges.
   Palette: deep forest green + lime signal + electric yellow
            (#063B00 / #266210 / #90B800 / #E1E100)
   Type   : Sora (display) / Inter (body) / Space Mono (labels)
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand greens */
  --green-900: #063B00;   /* darkest — headings, footer, dark blocks */
  --green-800: #0A4A04;
  --green-700: #15560A;
  --green-600: #266210;   /* links, secondary accents */
  --green-500: #3C7A1E;

  /* Lime signal */
  --lime:      #90B800;   /* primary accent / buttons */
  --lime-600:  #7CA200;   /* hover */
  --lime-700:  #668500;
  --lime-ink:  #5E8C00;   /* lime used as readable text on white */

  /* Yellow highlight */
  --yellow:      #E1E100;
  --yellow-600:  #C9C900;
  --yellow-tint: #FAFAD2;

  /* Neutrals (warm green-grey) */
  --ink:       #063B00;   /* primary text + headings */
  --text:      #35402E;   /* body copy */
  --muted:     #64735A;   /* secondary text */
  --muted-2:   #8A977E;   /* faint labels */

  --bg:        #E9F0DC;   /* page behind the shell */
  --surface:   #FFFFFF;   /* shell + cards */
  --surface-2: #F4F8EA;   /* tint zones */
  --surface-3: #EEF5DE;   /* deeper tint */

  --line:   #E3EAD6;      /* hairlines */
  --line-2: #D4DEC1;

  --lime-tint: #EDF5D4;   /* icon chips / badges */

  /* Severity dots (semantic — kept distinct for clarity) */
  --sev-critical: #C62828;
  --sev-high:     #D9A400;
  --sev-medium:   #266210;
  --sev-low:      #90B800;

  /* Legacy aliases kept so existing markup keeps working */
  --signal:      var(--lime);
  --signal-600:  var(--lime-600);
  --signal-700:  var(--lime-ink);
  --signal-tint: var(--lime-tint);
  --coral:       var(--sev-critical);
  --card:        var(--surface);
  --slate:       var(--muted);
  --slate-2:     var(--muted-2);
  --amber:       var(--yellow-600);
  --amber-tint:  var(--yellow-tint);

  /* Typography */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'Space Mono', ui-monospace, monospace;

  /* Radius + shadow + spacing */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 10px rgba(6,59,0,.06);
  --shadow:    0 16px 44px -20px rgba(6,59,0,.30);
  --shadow-lg: 0 36px 90px -36px rgba(6,59,0,.40);
  --ring: 0 0 0 3px rgba(144,184,0,.45);

  --wrap: 1180px;         /* the one container width */
  --pad:  clamp(1.15rem, 4vw, 3rem);   /* shared inner gutter */
  --gap:  clamp(1rem, 3vw, 2rem);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 88% -8%, rgba(144,184,0,.16), transparent 60%),
    radial-gradient(700px 480px at 0% 108%, rgba(38,98,16,.10), transparent 55%);
  background-attachment: fixed;
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green-600); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--lime-700); }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.14; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.05rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p  { margin: 0 0 1rem; }

/* ---------- THE ONE CONTAINER ---------- */
.shell {
  width: 100%;
  max-width: var(--wrap);
  margin: clamp(1rem, 3vw, 2.4rem) auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow), var(--shadow-lg);
  overflow: hidden;              /* clip rounded corners of inner bands */
  position: relative;
}

/* Inner gutter — every band aligns its content to the same edges */
.container { width: 100%; max-width: 100%; margin-inline: 0; padding-inline: var(--pad); }

.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: 1rem; top: -60px; z-index: 300;
  background: var(--green-900); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: var(--r-sm);
}

/* ---------- Monospace "diagnostic" label ---------- */
.mono-code, .eyebrow {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow {
  color: var(--lime-ink);
  display: inline-flex; align-items: center; gap: .5rem;
  margin-bottom: .9rem; font-weight: 700;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--lime); color: var(--green-900); box-shadow: 0 14px 28px -14px rgba(144,184,0,.9); }
.btn-primary:hover { background: var(--lime-600); color: var(--green-900); }
.btn-dark { background: var(--green-900); color: #fff; }
.btn-dark:hover { background: var(--green-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-900); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--green-900); color: var(--green-900); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-sm { padding: .55rem 1.05rem; font-size: .85rem; }
.ic, .ic-sm { width: 22px; height: 22px; flex: none; }
.ic-sm { width: 17px; height: 17px; }

/* ============================================================
   TOP BAR + HEADER / NAV  (inside the shell, static)
   ============================================================ */
.top-bar { background: var(--green-900); color: #cfe0b8; font-size: .8rem; line-height: 1.45; text-align: center; padding: .55rem 1rem; }
.top-bar p { margin: 0; }
.top-bar .tb-dot { color: var(--lime); font-weight: 700; padding: 0 .2rem; }

.site-header {
  position: relative; z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; padding-block: .6rem; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--green-900); border-radius: 13px; color: var(--lime);
  box-shadow: 0 12px 24px -12px rgba(6,59,0,.6);
}
.brand-ic { width: 25px; height: 25px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.04; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -.02em; color: var(--green-900); }
.brand-name .b2 { color: var(--lime-ink); }
.brand-sub { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }

.primary-nav { display: flex; align-items: center; gap: 1.1rem; }
.primary-nav > ul { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  color: var(--muted); font-weight: 600; font-size: .92rem;
  padding: .5rem .8rem; border-radius: 9px; position: relative;
}
.primary-nav a:hover { color: var(--green-900); background: var(--surface-3); }
.primary-nav a.is-active { color: var(--green-900); }
.primary-nav a.is-active::after {
  content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .12rem; height: 3px;
  background: var(--yellow); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--lime); color: var(--green-900) !important; padding: .58rem 1.05rem; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: .9rem;
  box-shadow: 0 12px 24px -14px rgba(144,184,0,.9);
}
.nav-cta:hover { background: var(--lime-600); transform: translateY(-1px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle-bar { width: 24px; height: 2px; background: var(--green-900); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto 0; flex-direction: column; align-items: stretch;
    gap: .3rem; background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 1.4rem; box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .25s ease, visibility .3s;
    z-index: 30;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav a { padding: .8rem .6rem; font-size: 1.02rem; }
  .primary-nav a.is-active::after { display: none; }
  .primary-nav a.is-active { background: var(--lime-tint); }
  .nav-cta { justify-content: center; margin-top: .6rem; }
}

/* ============================================================
   HERO — light, two-column
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 420px at 92% -20%, rgba(225,225,0,.20), transparent 62%),
    radial-gradient(680px 460px at 4% 120%, rgba(144,184,0,.22), transparent 58%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--ink);
  padding: clamp(2.6rem, 6vw, 4.6rem) 0 clamp(2.8rem, 6vw, 4.4rem);
  border-bottom: 1px solid var(--line);
}
.hero::before {              /* faint instrument grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,59,0,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,59,0,.04) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.8rem, 4vw, 3.4rem); align-items: center; }
.hero h1 { color: var(--green-900); }
.hero h1 .accent { color: var(--lime-ink); }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 40ch; margin-bottom: 1.6rem; }

/* Search console (light) */
.search-console {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: .45rem; margin-bottom: 1.2rem;
  display: flex; align-items: center; gap: .4rem;
  box-shadow: var(--shadow);
}
.search-console .sc-icon { color: var(--lime-ink); padding-left: .8rem; display: grid; place-items: center; }
.search-console input {
  flex: 1; background: transparent; border: 0; color: var(--ink); font-family: var(--font-body);
  font-size: 1.04rem; padding: .8rem .4rem; min-width: 0;
}
.search-console input::placeholder { color: var(--muted-2); }
.search-console input:focus { outline: none; box-shadow: none; }
.search-console button { flex: none; }

.pop-searches { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.pop-searches .pl { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-right: .2rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--surface-3); border: 1px solid var(--line-2);
  color: var(--green-700); padding: .4rem .85rem; border-radius: 999px; font-size: .84rem; font-weight: 500;
  transition: background .18s ease, border-color .18s ease, transform .18s ease, color .18s ease;
}
.chip:hover { background: var(--lime-tint); border-color: var(--lime); color: var(--green-900); transform: translateY(-1px); }

.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }

/* Hero side card — "fast fixes" */
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 1.3rem 1.4rem; position: relative; overflow: hidden;
}
.hero-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--green-900), var(--lime) 60%, var(--yellow));
}
.hero-card h2 { font-size: 1.04rem; display: flex; align-items: center; gap: .55rem; margin: .3rem 0 1rem; }
.hero-card h2 .ic-sm { color: var(--lime-ink); }
.hero-check { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hero-check li { display: flex; gap: .8rem; align-items: flex-start; padding: .75rem 0; border-top: 1px solid var(--line); }
.hero-check li:first-child { border-top: 0; }
.hero-check .hc-ic { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--lime-tint); color: var(--green-700); }
.hero-check .hc-ic .ic { width: 20px; height: 20px; }
.hero-check b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: .96rem; }
.hero-check span { font-size: .86rem; color: var(--muted); }

/* Hero trust stats */
.hero-stats { display: flex; flex-wrap: wrap; gap: 2.2rem; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-stat .n { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--green-900); }
.hero-stat .l { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-sub { max-width: none; }
}

/* ============================================================
   SECTIONS  (bands inside the one container)
   ============================================================ */
.section { padding: clamp(2.6rem, 6vw, 4.4rem) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section--tint { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; }
.section-head.center .eyebrow { justify-content: center; }
.section-flex { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-flex .section-head { margin-bottom: 0; }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-display); font-weight: 700; color: var(--green-600); }
.link-more:hover { gap: .65rem; color: var(--lime-700); }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (max-width: 900px){ .grid-4{grid-template-columns:repeat(2,1fr)} .grid-3{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 620px){ .grid-4,.grid-3,.grid-2{grid-template-columns:1fr} }

/* ---------- Problem card ---------- */
.p-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.25rem; display: flex; flex-direction: column; gap: .8rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  overflow: hidden;
}
.p-card::after {
  content: ""; position: absolute; inset: 0; background: radial-gradient(240px 120px at 100% 0, rgba(144,184,0,.14), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lime); color: var(--ink); }
.p-card:hover::after { opacity: 1; }
.p-card .p-top { display: flex; align-items: center; justify-content: space-between; }
.p-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lime-tint); color: var(--green-700); flex: none;
}
.p-icon .ic { width: 24px; height: 24px; }
.p-card h3 { font-size: 1.05rem; margin: 0; position: relative; z-index: 1; color: var(--ink); }
.p-tag { display: flex; align-items: center; gap: .55rem; position: relative; z-index: 1; }
.p-tag .mono-code { color: var(--muted-2); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 0 4px rgba(6,59,0,.05); }
.sev-critical .status-dot, .dot-critical { background: var(--sev-critical); }
.sev-high .status-dot, .dot-high { background: var(--sev-high); }
.sev-medium .status-dot, .dot-medium { background: var(--sev-medium); }
.sev-low .status-dot, .dot-low { background: var(--sev-low); }
.p-arrow { color: var(--muted-2); transition: transform .2s ease, color .2s ease; position: relative; z-index: 1; }
.p-card:hover .p-arrow { color: var(--green-700); transform: translateX(4px); }

/* ---------- Category card ---------- */
.c-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lime); }
.c-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--green-900); color: var(--lime); margin-bottom: .3rem; }
.c-icon .ic { width: 25px; height: 25px; }
.c-card h3 { font-size: 1.08rem; margin: 0; color: var(--ink); }
.c-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.c-card .c-foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; gap: .5rem; color: var(--green-600); font-family: var(--font-display); font-weight: 700; font-size: .88rem; }
.c-card:hover .c-foot { gap: .75rem; }

/* Category group label */
.cat-group { grid-column: 1 / -1; display: flex; align-items: center; gap: .8rem; margin-top: .8rem; }
.cat-group:first-child { margin-top: 0; }
.cat-group h3 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0; }
.cat-group .line { flex: 1; height: 1px; background: var(--line); }

/* ---------- Featured / article card ---------- */
.f-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s ease, box-shadow .25s ease, border-color .2s ease;
}
.f-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--lime); }
.f-thumb { position: relative; aspect-ratio: 16/9; display: grid; place-items: center; color: #fff; overflow: hidden; }
.f-thumb .ic { width: 46px; height: 46px; opacity: .96; position: relative; z-index: 2; }
.f-thumb::after { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 26px 26px; }
.thumb-1 { background: linear-gradient(140deg,#063B00,#266210); }
.thumb-2 { background: linear-gradient(140deg,#266210,#90B800); }
.thumb-3 { background: linear-gradient(140deg,#0A4A04,#5E8C00); }
.thumb-4 { background: linear-gradient(140deg,#668500,#E1E100); }
.thumb-5 { background: linear-gradient(140deg,#063B00,#7CA200); }
.thumb-6 { background: linear-gradient(140deg,#15560A,#90B800); }
.f-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.f-meta { display: flex; align-items: center; gap: .7rem; }
.badge {
  font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--lime-tint); color: var(--green-700); padding: .28rem .6rem; border-radius: 999px;
}
.f-date { font-family: var(--font-mono); font-size: .72rem; color: var(--muted-2); }
.f-card h3 { font-size: 1.12rem; margin: 0; }
.f-card h3 a { color: var(--ink); }
.f-card h3 a:hover { color: var(--green-600); }
.f-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.f-read { margin-top: auto; padding-top: .4rem; font-family: var(--font-display); font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; color: var(--green-600); }
.f-read:hover { gap: .6rem; }

/* ============================================================
   FAQ accordion
   ============================================================ */
.faq { max-width: 820px; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item[open] { border-color: var(--lime); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.15rem 1.3rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 26px; height: 26px; flex: none; position: relative; border-radius: 50%; background: var(--lime-tint); transition: background .2s ease; }
.faq-plus::before, .faq-plus::after { content:""; position:absolute; top:50%; left:50%; width:11px; height:2px; background: var(--green-700); transform: translate(-50%,-50%); border-radius: 2px; transition: transform .25s ease; }
.faq-plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: translate(-50%,-50%) rotate(0); }
.faq-item[open] .faq-plus { background: var(--lime); }
.faq-answer { padding: 0 1.3rem 1.2rem; color: var(--muted); }
.faq-answer p { margin: 0; }

/* ============================================================
   CTA band  (dark-green accent block inside the shell)
   ============================================================ */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background:
  radial-gradient(600px 300px at 90% -20%, rgba(144,184,0,.35), transparent 60%),
  radial-gradient(400px 300px at 0% 120%, rgba(225,225,0,.18), transparent 60%),
  linear-gradient(140deg, var(--green-900), #042900);
  color: #fff; padding: clamp(2.4rem, 6vw, 4rem); text-align: center; border: 1px solid var(--green-700); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e6c3; max-width: 52ch; margin: 0 auto 1.8rem; font-size: 1.08rem; }
.cta-actions { display: flex; gap: .9rem; justify-content: center; flex-wrap: wrap; }
.cta-band .pill-note { background: rgba(255,255,255,.12); color: #eaf5d8; }

/* ============================================================
   PAGE HERO + BREADCRUMBS  (light band)
   ============================================================ */
.page-hero { background:
  radial-gradient(620px 300px at 90% -30%, rgba(225,225,0,.18), transparent 60%),
  linear-gradient(180deg, var(--surface-2), var(--surface));
  color: var(--ink); padding: clamp(2.2rem,5vw,3.4rem) 0 clamp(2.2rem,5vw,3rem); position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content:""; position:absolute; inset:0; background-image:
  linear-gradient(rgba(6,59,0,.035) 1px, transparent 1px),
  linear-gradient(90deg, rgba(6,59,0,.035) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(circle at 30% 0, #000, transparent 75%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--green-900); margin-bottom: .5rem; }
.page-hero p { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.06rem; }

/* Breadcrumbs are only shown when intentionally placed inside the shell.
   Several pages pass render_breadcrumbs() through $extra_head for SEO JSON-LD;
   the browser hoists that stray <nav> to the top of <body> (outside .shell),
   so scoping visibility to .shell keeps those invisible while showing the
   real in-content trail (guides, etc.). */
.crumbs { display: none; margin-bottom: 1rem; }
.shell .crumbs { display: block; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; font-family: var(--font-mono); font-size: .76rem; }
.crumbs li { display: flex; align-items: center; gap: .5rem; color: var(--muted-2); }
.crumbs li:not(:last-child)::after { content: "/"; color: var(--line-2); }
.crumbs a { color: var(--green-600); }
.crumbs a:hover { color: var(--lime-700); }
.crumbs li[aria-current] { color: var(--green-900); }
.crumbs--light li { color: var(--muted-2); }
.crumbs--light a { color: var(--green-600); }
.crumbs--light a:hover { color: var(--lime-700); }
.crumbs--light li[aria-current] { color: var(--green-900); }
.crumbs--light li:not(:last-child)::after { color: var(--line-2); }

/* ============================================================
   CONTENT LAYOUT (guides / legal / static)
   ============================================================ */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.layout--narrow { max-width: 820px; margin-inline: auto; }
@media (max-width: 940px){ .layout { grid-template-columns: 1fr; } }

.prose { color: var(--text); font-size: 1.06rem; }
.prose h2 { margin-top: 2.4rem; font-size: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.8rem; font-size: 1.2rem; }
.prose p { margin: 0 0 1.1rem; }
.prose ul, .prose ol { margin: 0 0 1.3rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--lime); }
.prose strong { color: var(--ink); }

/* Guide article card wrapper */
.article-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.6rem); box-shadow: var(--shadow-sm); }

/* Guide meta bar */
.guide-meta { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; padding: 1rem 0 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.guide-meta .gm { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.guide-meta .ic-sm { color: var(--green-600); }

/* Symptom / cause list boxes */
.info-box { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem; margin: 1.6rem 0; }
.info-box h3 { display: flex; align-items: center; gap: .6rem; margin-top: 0; font-size: 1.08rem; }
.info-box ul { margin: 0; padding-left: 1.2rem; }
.info-box li { margin-bottom: .5rem; }
.box-symptom { background: var(--yellow-tint); border-color: #ECECB0; }
.box-symptom h3 { color: #8a7a00; }
.box-cause { background: var(--surface-3); border-color: var(--line-2); }
.box-cause h3 { color: var(--green-700); }

/* Step list — numbered "procedure" */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.6rem 0; display: flex; flex-direction: column; gap: 1rem; }
.steps > li {
  position: relative; counter-increment: step; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 1.3rem 1.25rem 4.2rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.steps > li:hover { border-color: var(--lime); box-shadow: var(--shadow-sm); }
.steps > li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 1.1rem; top: 1.1rem;
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: var(--green-900); color: var(--lime); border-radius: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: .8rem;
}
.steps h3 { margin: 0 0 .3rem; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Prevention / tips list with checks */
.check-list { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list .ic-sm { color: var(--green-700); background: var(--lime-tint); border-radius: 6px; padding: 3px; width: 24px; height: 24px; flex: none; margin-top: 1px; }

/* Callout */
.callout { display: flex; gap: .9rem; background: var(--lime-tint); border: 1px solid var(--line-2); border-radius: var(--r); padding: 1.1rem 1.2rem; margin: 1.6rem 0; }
.callout .ic { color: var(--green-700); flex: none; }
.callout p { margin: 0; color: var(--green-800); font-size: .96rem; }
.callout strong { color: var(--green-900); }

/* Related guides */
.related-guides { display: grid; gap: .8rem; grid-template-columns: repeat(3,1fr); margin-top: 1rem; }
@media (max-width: 700px){ .related-guides { grid-template-columns: 1fr; } }
.rel-card { border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; background: var(--surface); display: flex; align-items: center; gap: .8rem; transition: border-color .2s ease, transform .2s ease; }
.rel-card:hover { border-color: var(--lime); transform: translateY(-2px); }
.rel-card .p-icon { width: 40px; height: 40px; }
.rel-card span { font-family: var(--font-display); font-weight: 600; font-size: .95rem; color: var(--ink); }

/* ============================================================
   SIDEBAR
   ============================================================ */
.side { position: sticky; top: 1.4rem; display: flex; flex-direction: column; gap: 1.1rem; }
@media (max-width: 940px){ .side { position: static; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; }
.side-title { display: flex; align-items: center; gap: .5rem; font-size: .95rem; margin: 0 0 .9rem; }
.side-title .ic-sm { color: var(--green-600); }
.side-form { display: flex; gap: .4rem; }
.side-form input { flex: 1; border: 1px solid var(--line-2); border-radius: 10px; padding: .6rem .8rem; font: inherit; min-width: 0; }
.side-form button { background: var(--green-900); color: var(--lime); border: 0; border-radius: 10px; width: 42px; display: grid; place-items: center; cursor: pointer; }
.side-form button:hover { background: var(--green-700); }
.side-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.side-list li { border-top: 1px solid var(--line); }
.side-list li:first-child { border-top: 0; }
.side-list a { display: flex; align-items: center; gap: .6rem; padding: .65rem 0; color: var(--muted); font-size: .94rem; }
.side-list a:hover { color: var(--green-900); }
.side-list .mono-code { color: var(--green-600); }
.side-tip { background: var(--green-900); color: #cfe0b8; border-color: transparent; }
.side-tip .side-title { color: #fff; }
.side-tip .side-title .ic-sm { color: var(--lime); }
.side-tip strong { color: #fff; }
.side-steps { color: var(--lime); font-size: .78rem; line-height: 1.9; margin: 0; }

/* ============================================================
   FORMS (contact)
   ============================================================ */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--sev-critical); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 12px; padding: .8rem 1rem;
  font: inherit; color: var(--ink); background: #fff; transition: border-color .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime); box-shadow: var(--ring); outline: none; }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: .82rem; color: var(--muted-2); margin: .35rem 0 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 560px){ .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--muted-2); }

.alert { border-radius: var(--r); padding: 1rem 1.2rem; margin-bottom: 1.4rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; }
.alert .ic-sm { flex: none; margin-top: 2px; }
.alert-success { background: var(--lime-tint); border: 1px solid var(--line-2); color: var(--green-800); }
.alert-error { background: #fdecea; border: 1px solid #f5c6c0; color: #a03028; }

/* Contact info tiles */
.contact-info { display: grid; gap: 1rem; }
.ci-tile { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.ci-tile .p-icon { width: 44px; height: 44px; }
.ci-tile h3 { font-size: 1rem; margin: 0 0 .2rem; }
.ci-tile p { margin: 0; color: var(--muted); font-size: .94rem; }
.ci-tile a { color: var(--green-600); }

/* ============================================================
   VALUE / feature rows (about, support)
   ============================================================ */
.feature-row { display: flex; gap: 1rem; align-items: flex-start; }
.feature-row .p-icon { width: 50px; height: 50px; }
.feature-row h3 { font-size: 1.12rem; margin: .2rem 0 .4rem; }
.feature-row p { color: var(--muted); margin: 0; }

/* Stat tiles */
.stat-tiles { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
@media (max-width:820px){ .stat-tiles{ grid-template-columns: repeat(2,1fr);} }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; text-align: center; }
.stat-tile .n { font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--green-900); }
.stat-tile .l { color: var(--muted); font-size: .9rem; }

/* Table of contents (guides) */
.toc { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; margin-bottom: 1.8rem; }
.toc h2 { font-size: .95rem !important; margin: 0 0 .6rem !important; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; }
@media (max-width:560px){ .toc ol { columns: 1; } }

/* Sitemap page */
.sitemap-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.6rem; }
@media (max-width:820px){ .sitemap-grid{grid-template-columns:repeat(2,1fr)} }
@media (max-width:560px){ .sitemap-grid{grid-template-columns:1fr} }
.sitemap-col h3 { font-size: 1rem; padding-bottom: .5rem; border-bottom: 2px solid var(--lime); display: inline-block; }
.sitemap-col ul { list-style: none; padding: 0; margin: .8rem 0 0; }
.sitemap-col li { padding: .3rem 0; }
.sitemap-col a { color: var(--muted); }
.sitemap-col a:hover { color: var(--green-600); }

/* ============================================================
   Cookie bar + back-to-top  (fixed overlays — outside the shell)
   ============================================================ */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 150; max-width: 760px; margin-inline: auto;
  background: var(--green-900); color: #cfe0b8; border-radius: var(--r); padding: 1rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); border: 1px solid var(--green-700);
}
.cookie-bar p { margin: 0; font-size: .9rem; }
.cookie-bar a { color: var(--lime); }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-bar .btn-ghost { color: #cfe0b8; border-color: rgba(255,255,255,.3); }
.cookie-bar .btn-ghost:hover { color: #fff; border-color: #fff; }

.to-top {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-900); color: var(--lime); border: 0; display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(12px) rotate(-90deg);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0) rotate(-90deg); }
.to-top:hover { background: var(--green-700); }

/* ============================================================
   FOOTER  (dark-green block closing the shell)
   ============================================================ */
.site-footer { background: var(--green-900); color: #a9c08f; padding: clamp(2.6rem,6vw,4rem) 0 2rem; border-top: 1px solid var(--green-700); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; gap:1.6rem;} .footer-brand{ grid-column: 1 / -1; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand .brand--footer { color: #fff; margin-bottom: 1rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-name .b2 { color: var(--lime); }
.footer-blurb { font-size: .92rem; max-width: 40ch; margin-bottom: 1.2rem; }
.footer-head { color: #fff; font-size: .82rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-independent { text-align: center; max-width: 820px; margin: 2.2rem auto 0; padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.09); }
.footer-independent h3 { color: #fff; font-family: var(--font-display); font-size: 1.02rem; margin: 0 0 .45rem; }
.footer-independent p { color: #a9c08f; font-size: .87rem; line-height: 1.65; margin: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { color: #a9c08f; font-size: .93rem; }
.footer-col a:hover { color: var(--lime); }
.footer-disclaimer { display: flex; gap: .8rem; align-items: flex-start; padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-disclaimer .ic-sm { color: var(--lime); flex: none; margin-top: 2px; }
.footer-disclaimer p { margin: 0; font-size: .84rem; color: #90a876; max-width: 92ch; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-bottom-links a { color: #a9c08f; }
.footer-bottom-links a:hover { color: var(--lime); }

/* ============================================================
   Utilities
   ============================================================ */
.text-center { text-align: center; }
.mt-0{margin-top:0}.mb-0{margin-bottom:0}
.stack-lg { display: flex; flex-direction: column; gap: 2.6rem; }
.divider { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }
.lead { font-size: 1.16rem; color: var(--muted); }
.pill-note { display:inline-flex; align-items:center; gap:.5rem; background: var(--lime-tint); color: var(--green-700); font-family: var(--font-mono); font-size:.72rem; letter-spacing:.06em; text-transform:uppercase; padding:.4rem .8rem; border-radius:999px; }

/* Reveal-on-scroll (progressive; visible by default if JS/motion off) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
