/* ============================================================
   GO-4it site stylesheet — g4i.css
   THE template: every page loads this one file. Change a value
   here, every page updates. Never duplicate styles per page.

   Font: Atkinson Hyperlegible NEXT (Braille Institute, 2024) —
   ONE VARIABLE file, weights 200-800 (static instances retired,
   Dave 2026-11-16). 400 body · 800 page title + H1/H2/H3 · 600 H4 + buttons.

   Spacing system: 8px grid — 8 / 16 / 24 / 32 / 40 / 56
   Breakpoints: mobile-first; ≥700px = tablet/desktop upgrades
   ============================================================ */

/* ---- Fonts (self-hosted, no external requests) ---- */
@font-face { font-family:'AtkinsonNext'; font-weight:200 800; font-display:swap;
  src:url('../fonts/atkinsonnext-var.woff2') format('woff2'); }   /* variable — all weights, one file (Dave 2026-11-16) */

/* ---- Design tokens: change these, the whole site follows ---- */
:root {
  /* Colour — from Dave's GO-4it Colors set (brand-colours.md) */
  --blue-light: #44aaff;   /* light brand blue — highlights, menu CTA    */
  --blue:       #4488FF;   /* main brand blue (Dave 2026-11-16) — buttons, links, accents */
  --navy:       #040440;   /* dark bands, footer, button hover           */
  --black:      #070707;   /* the kit's "black" — darkest brand black; promo band */
  --ink:        #2d2d2d;   /* headings + main text — charcoal (Dave test
                              2026-11-16, from his Canva kit); was #070707, one-line swap-back */
  --muted:      #444444;   /* secondary text, H4                         */
  --bg:         #fafafa;   /* page background — Dave's call 2026-11-16:
                              softer than pure white (was #ffffff — missed
                              in the homepage fidelity pass, caught by Dave) */
  --panel:      #f1f1f1;   /* content panels — F1F1F1 (Dave 2026-11-17, was f4f4f4) */
  --panel-alt:  #f1f1f1;   /* spare panel tone                           */
  --border:     #dddddd;   /* card edges, dividers                       */
  --green:      #44d444;   /* positives/ticks (dark text on it)          */
  --red:        #c40404;   /* urgency, sparingly                         */
  --text-on-blue: #ffffff;/* white text on buttons + navy bands         */

  /* Type */
  --font: 'AtkinsonNext', sans-serif;
  --title: 34px;  --h1: 28px;  --h2: 24px;  --h3: 20px;  --h4: 18px;
  --body: 20px; --body-sm: 18px; --small: 16px;
  --w-strong: 600;         /* H4, buttons, markers, emphasis               */
  --w-heading: 800;        /* H1 + H2 — heavy (Dave 2026-11-16)            */
  --w-title: 800;          /* page title — MAXIMUM (font caps at 800, no 900 — Dave 2026-11-16) */
  --leading: 1.5;   /* 30px lines at 20px body (Dave 2026-11-16) */
  --measure: 880px;        /* max paragraph width — matches the original's column */
  --measure-read: 680px;   /* article reading column — ~70 characters at 20px */
  --radius-panel: 4px;     /* panels inside articles — very small (Dave 2026-11-16) */
  --radius-card: 8px;      /* index cards + raised cards */
  /* images: square (0) site-wide — sharper, editorial (Dave 2026-11-16) */
}

/* ---- Base ---- */
* { box-sizing:border-box; margin:0; padding:0; }
html { -webkit-text-size-adjust:100%; background:var(--bg); overflow-x:clip; }
body { background:var(--bg); color:var(--ink); padding:0; overflow-x:clip;
  font-family:var(--font); font-size:var(--body); line-height:var(--leading);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility; }
.wrap { max-width:calc(var(--measure) + 48px); margin:0 auto; padding:0 24px; }

/* ---- Vertical rhythm: the 8px grid ---- */
p  { margin:0 0 32px; }
ul, ol { margin:0 0 32px; }
ul { padding-left:26px; }
ol { padding-left:0; list-style-position:inside; }   /* numbers start in line with the heading (Dave 2026-11-16) — inside keeps two-digit numbers from hanging outside the column */
li { margin:0 0 14px; }   /* original's airy list rhythm */
li::marker { color:var(--ink); font-weight:var(--w-strong); } /* dark numbers like the original */
h1 { font-size:var(--h1); font-weight:var(--w-heading); line-height:1.2;
  color:var(--ink); margin:0 0 16px; }
h2 { font-size:var(--h2); font-weight:var(--w-heading); line-height:1.25;
  color:var(--ink); margin:40px 0 14px; }
h3 { font-size:var(--h3); font-weight:var(--w-heading); line-height:1.3;
  color:var(--ink); margin:24px 0 10px; }
h4 { font-size:var(--h4); font-weight:var(--w-strong); line-height:1.3;
  color:var(--muted); margin:18px 0 8px; }
h2:first-child, h1:first-child { margin-top:0; }

/* Page title — bigger than H1, full bold (Dave 2026-11-16) */
.page-title { font-size:var(--title); font-weight:var(--w-title); line-height:1.15; }

/* ---- Text helpers ---- */
.caption { font-size:var(--small); color:var(--muted); }
a { color:var(--blue); font-weight:var(--w-strong); text-decoration:underline; }
.hl { color:var(--blue-light); font-weight:var(--w-strong); }
.good { color:var(--green); font-weight:var(--w-strong); }
.urgent { color:var(--red); font-weight:var(--w-strong); }

/* ---- STICKY TOP STACK (Dave, 2026-11-16): nav + scorecard banner stay in
     view on every page. ONE sticky wrapper so no offset maths can break. ---- */
.sticky-top { position:sticky; top:0; z-index:100;
  box-shadow:0 2px 10px rgba(4,4,64,.10); margin-bottom:24px; }
html { scroll-padding-top:150px; }      /* anchor jumps clear the sticky bars */
@media (min-width:700px) { html { scroll-padding-top:120px; } }

/* ---- Top menu band: page background, full-width ---- */
.site-head { background:var(--bg); }

/* ---- Scorecard promo band (blog pages) — brand black #070707 (Dave
     2026-11-16, "our darkest black, not full black"), one line desktop,
     compact text swap on mobile so the sticky stack stays slim ---- */
.promo { background:var(--black); }
.promo-in { max-width:960px; margin:0 auto; padding:10px 24px;
  display:flex; align-items:center; justify-content:center;
  gap:6px 20px; flex-wrap:wrap; }
.promo-text { margin:0; color:var(--text-on-blue); font-size:17px; line-height:1.35; }
.promo-text strong { font-weight:var(--w-strong); }
.promo-text .pt-short { display:none; }
/* a.btn-promo (not .btn-promo): must out-rank the .btn base rule, which
   sits LATER in this file and would win the display:inline-flex otherwise
   (that's how the arrow ended up on its own line, 2026-11-16) */
a.btn-promo { padding:9px 18px; font-size:16px;
  display:inline-flex; align-items:center; gap:9px; }  /* arrow rides inside, right — pulls the eye to the click */
a.btn-promo svg { display:block; flex:0 0 auto; }
@media (max-width:699px) {
  .promo-in { padding:10px 16px 12px; }
  .promo-text { font-size:15px; text-align:center; }
  .promo-text .pt-full { display:none; }
  .promo-text .pt-short { display:inline; }
  a.btn-promo { padding:8px 22px; }
}
.nav-wrap { max-width:960px; margin:0 auto; padding:14px 24px;
  display:flex; align-items:center; justify-content:space-between;
  gap:8px 24px; flex-wrap:wrap; }
/* Text wordmark instead of an image logo — real text reads better
   for Google/AI agents, crisp at any size. PNG logo stays for favicon/OG. */
.brand { font-size:32px; font-weight:var(--w-strong); line-height:1;
  color:var(--blue-light); text-decoration:none; white-space:nowrap; }
.brand .tld { color:var(--ink); }
.site-head nav { display:flex; gap:5px 28px; flex-wrap:wrap; align-items:center; }   /* 28px so the links read as separate targets (Dave, 2026-11-16) */
.site-head .sep { font-weight:var(--w-strong); color:var(--muted); }
.site-head nav a { font-size:17px; font-weight:400;
  color:var(--ink); text-decoration:none; }
.site-head nav a:hover { color:var(--blue); }
.site-head nav a.menu-cta { color:var(--blue-light);
  border:2px solid var(--blue-light); border-radius:999px; padding:4px 14px; }
@media (min-width:700px) {
  .site-head nav a.menu-cta { margin-left:12px; }   /* the button is not one of the links — give it air on desktop */
}
.site-head nav a.menu-cta:hover { color:var(--blue); border-color:var(--blue); }

/* ---- Buttons: ALL buttons = light brand blue #44aaff, white text
   (Dave 2026-11-16: "all the buttons should be the lighter blue").
   Filled, ONE device — no ring on light backgrounds; the ring exists
   only on dark bands where the button would otherwise dissolve. ---- */
.btn { display:inline-block; font-weight:var(--w-strong); font-size:var(--h4);
  padding:14px 28px; border-radius:10px; text-decoration:none; border:none;
  letter-spacing:.04em; box-shadow:0 2px 6px rgba(4,4,64,.18); }
.btn-light { background:var(--blue-light); color:var(--text-on-blue); } /* THE primary button */
.btn-light:hover { background:var(--blue); }  /* slightly darker blue on hover */
.btn-dark  { background:var(--blue);       color:var(--text-on-blue); } /* spare — generator emits none */
.btn-dark:hover  { background:var(--navy); }

/* ---- Hero band: FULL-BLEED grey (escapes the text column via the
     50%-50vw trick), image left / text right, 1140px inner row.
     Mobile: image FIRST, text centred below — like the original. ---- */
.hero-band { background:var(--panel); width:100vw;
  margin-left:calc(50% - 50vw); }
.hero { max-width:1140px; margin:0 auto; padding:48px 24px;
  display:flex; gap:40px; align-items:center; }
.hero-media { flex:0 0 42%; }
.hero-shot { display:block; width:100%; max-width:480px; height:auto;
  margin:0 auto; }   /* flat like the original — no card chrome */
.hero-text h1 { margin-bottom:4px; }

/* Hero CTA stack — tight rhythm (Dave: "squeeze them all up", 2026-11-17).
     Scoped to .hero-text so the bottom cta-block keeps its own spacing.
     Paragraph margins collapse 32px -> 6px; the button paragraph also beats
     the generator's inline margin-top:16px ( !important is the only way to
     beat an inline style without editing the generator). */
.hero-text p { margin-bottom:6px; }
.hero-text .cta-arrow { margin:4px 0; }
.hero-text p:has(a.btn) { margin-top:0 !important; margin-bottom:8px; }
.hero-text p:last-child { font-size:12px; margin-top:0; }   /* "(Get YOUR Instant Overall Score...)" — half body size +2 (Dave 2026-11-17) */
@media (max-width:699px) {
  .hero { flex-direction:column; padding:32px 24px 36px; text-align:center; }
  .hero-media { order:-1; width:100%; margin-bottom:12px; } /* image FIRST, like the original */
}

/* ---- Mobile type ladder: long titles wrapped 2-3 words per line at the old
     sizes (Dave 2026-11-16). Headings step down further on phones; body stays 20px. ---- */
@media (max-width:699px) {
  :root { --title: 28px; --h1: 24px; --h2: 20px; --h3: 18px; --h4: 16px; }
}

/* ---- Mobile menu: hamburger (no JS — checkbox toggle), like the original.
     Desktop hides the toggle; mobile shows the icon, nav collapses under it. ---- */
.menu-toggle { display:none; }
.menu-btn { display:none; }
@media (max-width:699px) {
  .nav-wrap { flex-direction:row; align-items:center; justify-content:space-between;
    gap:10px; padding:14px 24px; }
  .brand { font-size:26px; }
  .menu-btn { display:block; cursor:pointer; padding:6px 4px; }
  .menu-btn svg { display:block; }
  .site-head nav { display:none; flex-basis:100%; flex-direction:column;
    align-items:flex-start; gap:14px; padding:12px 0 8px; }
  .menu-toggle:checked ~ nav { display:flex; }
  .site-head nav a { font-size:17px; }
  .site-head nav a.menu-cta { padding:4px 14px; }
}

/* ---- Panels & bands ---- */
.panel { background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-panel); padding:24px; margin:24px 0; }
.band-navy { background:var(--navy); color:var(--text-on-blue);
  border-radius:var(--radius-panel); padding:24px; margin:24px 0; }
.band-navy .caption { color:var(--border); }
.band-navy .btn { border:1px solid var(--text-on-blue);      /* ring only here */
  box-shadow:0 4px 14px rgba(0,0,0,.5); }

/* ---- CTA block (from the [CTA-BLOCK] marker) — centred arrow + bright
     button + caption on white, like the original. No panel. ---- */
.cta-block { margin:44px 0; text-align:center; }
.cta-block .btn { margin-top:6px; }
.cta-block .caption { margin-top:12px; font-style:italic; }
.cta-arrow { text-align:center; margin:14px 0 16px; }
.cta-arrow svg { display:inline-block; }

/* ---- Opt-in form (UI only until stage 2.5 / Kit) — white card on the
     grey band, full-width bright button, like the original. ---- */
.optin { max-width:520px; margin:24px auto 8px; background:#ffffff;
  border-radius:var(--radius-card); box-shadow:0 8px 30px rgba(0,0,0,.10); padding:28px 28px 26px; }
.optin .btn { display:block; width:100%; text-align:center; }
.optin-input { width:100%; padding:12px 16px; font:inherit; font-size:18px;
  border:1px solid var(--border); border-radius:10px; background:#ffffff;
  margin:0 0 12px; }
.optin-input:focus { outline:2px solid var(--blue-light); border-color:var(--blue-light); }
.optin-consent { display:block; position:relative; padding-left:30px; font-size:var(--small);
  color:var(--muted); line-height:1.45; margin:0 0 16px; }
.optin-consent input { position:absolute; left:0; top:3px; width:20px; height:20px;
  margin:0; accent-color:var(--blue); }
.optin .btn { cursor:pointer; }

/* ---- Contact form ([CONTACT-FORM]) — same white card as the opt-in,
        label above each field ---- */
.optin-label { display:block; margin:0 0 14px; font-size:var(--body-sm); }
.optin-label .optin-input { margin:6px 0 0; }
.optin textarea.optin-input { min-height:140px; resize:vertical;
  font-family:var(--font); }

/* ---- Footer — full-width dark bar, centred light text, like the original ---- */
footer { margin-top:72px; background:#434343; color:#cbcbcb;
  text-align:center; padding:20px 24px; }
footer p { font-size:15px; margin:0; }
footer a { color:inherit; font-weight:400; text-decoration:none; }
footer a:hover { text-decoration:underline; }

/* ---- Grey full-bleed band (opt-in section on the homepage) ---- */
.band-grey { background:var(--panel); width:100vw;
  margin-left:calc(50% - 50vw); padding:52px 0; margin-top:56px; margin-bottom:56px; }
.band-in { max-width:928px; margin:0 auto; padding:0 24px; }

/* ---- Author block (photo + name, like the original) ---- */
.author { display:flex; align-items:center; gap:20px; margin:32px 0 18px; }
.author-photo { width:92px; height:92px; border-radius:50%; object-fit:cover; }
.author-name { margin:0; }

/* Author bio ([BIO]) — two points under body size (Dave 2026-11-16) */
.bio { font-size: var(--body-sm); }

/* ---- Utilities ---- */
.center { text-align:center; }
hr { border:none; border-top:1px solid var(--border); margin:44px 0; }

/* ---- Dropdown — bordered box, dark text, down arrow, like the original ---- */
details { margin:0 0 18px; border:1px solid #e2e2e2; border-radius:var(--radius-panel);
  background:#ffffff; padding:16px 20px; }
summary { cursor:pointer; font-weight:var(--w-strong); color:var(--ink);
  display:flex; align-items:center; gap:12px; list-style:none; }
summary::-webkit-details-marker { display:none; }
/* chevron (thin, not solid) — points down closed, flips up open (Dave
   2026-11-16, like the old blog) */
summary::before { content:""; flex:0 0 20px; width:20px; height:20px;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 9l7 7 7-7" fill="none" stroke="%23111111" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat;
  transition:transform .2s ease; }
details[open] summary::before { transform:rotate(180deg); }
details[open] summary { margin-bottom:14px; }
.article details { margin:0 0 8px; }   /* FAQ boxes tighter, like the old blog (even px) */

/* What Next CTA panel — heading + button + caption centred, body text
   LEFT (Dave 2026-11-16). Heading centred in CSS so the markdown never
   has to remember. */
.panel-cta h2 { text-align:center; }
.panel-cta .caption { text-align:center; }

/* Tick list — Key Takeaways (Dave 2026-11-16, like the old blog's ✓) */
ul.ticks { list-style:none; padding-left:0; }
ul.ticks li { position:relative; padding-left:32px; }
ul.ticks li::before { content:""; position:absolute; left:0; top:3px;
  width:20px; height:20px;
  background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 12.5l5.5 5.5L20 7" fill="none" stroke="%232d2d2d" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg>') center/contain no-repeat; }   /* charcoal — same as text (Dave 2026-11-16; green felt like too much colour on an article; green stays for benefit lists on landing pages) */
details > *:last-child { margin-bottom:0; }

/* ---- BLOG — article template (single column, NO sidebar — Dave 2026-11-16):
     header → hero image → auto TOC → body → What Next CTA (in the markdown)
     → Read next → author card. The scorecard sells from the top promo bar +
     the in-article CTA — a sidebar would only compete with reading. ---- */
.article { max-width:var(--measure-read); margin:0 auto; }
.article li { margin:0 0 8px; }   /* article list rhythm — tight (Dave 2026-11-16); overrides the 14px homepage rhythm */
.article li p { margin-bottom:0; }   /* loose lists (blank lines between items) wrap items in <p> — kill the 32px paragraph gap INSIDE each item, or "closer together" never lands */

/* Article header */
.a-head { margin:40px 0 10px; }
.a-head h1 { font-size:var(--title); font-weight:var(--w-title); line-height:1.18; }
.a-meta { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px;
  font-size:var(--small); color:var(--muted); margin:0 0 24px; }
.a-meta .dot::before { content:"·"; color:var(--border); }
.a-author { display:flex; align-items:center; gap:8px; color:var(--ink);
  font-weight:var(--w-strong); }
.a-author img { width:28px; height:28px; border-radius:50%; object-fit:cover; }
.a-hero { margin:0 0 36px; }
.a-hero img { display:block; width:100%; height:auto; border-radius:0;
  box-shadow:0 10px 30px rgba(4,68,170,.15); }

/* Auto table of contents (long posts only — generator decides) */
.toc-box { background:var(--panel); border:1px solid var(--border);
  border-radius:var(--radius-panel); padding:18px 22px; margin:0 0 40px; }
.toc-box summary { font-size:var(--body-sm); }
.toc-box ol { margin:14px 0 2px; padding-left:22px; }
.toc-box li { margin:0 0 12px; font-size:var(--body-sm); }   /* was 8 — +50% air, even px (Dave 2026-11-16) */
.toc-box li:last-child { margin-bottom:0; }
.toc-box a { text-decoration:none; }
.toc-box a:hover { text-decoration:underline; }

/* Podcast audio embed (raw <audio> in the markdown) */
.audio-embed audio { width:100%; margin:8px 0 32px; }

/* Read next — fills itself in from the other posts (no Recent-Posts sidebar) */
.readnext { border-top:2px solid var(--border); margin:56px 0 40px; padding-top:24px; }
.readnext .label { font-size:var(--small); color:var(--muted); letter-spacing:.06em;
  font-weight:var(--w-strong); margin:0 0 10px; }
.readnext a.rn-title { display:inline-block; font-size:24px; font-weight:var(--w-heading);
  color:var(--blue); text-decoration:none; line-height:1.3; margin:0 0 8px; }
.readnext a.rn-title:hover { text-decoration:underline; }
.readnext .rn-excerpt { font-size:var(--body-sm); color:var(--muted); margin:0; }

/* Author end-card — who wrote this (E-E-A-T: name + face on every article) */
.a-end { display:flex; gap:16px; align-items:flex-start; background:var(--panel);
  border:1px solid var(--border); border-radius:var(--radius-panel); padding:20px 22px; margin:0 0 48px; }
.a-end img { width:56px; height:56px; border-radius:50%; object-fit:cover; flex:0 0 56px; }
.a-end .name { font-weight:var(--w-heading); margin:0 0 4px; }
.a-end p { font-size:var(--body-sm); color:var(--muted); margin:0; line-height:1.5; }

/* ---- BLOG — index: clean card grid, newest first. Image-led cards;
     posts without an image get the branded 4·4·4 placeholder block. ---- */
.blog-head { margin:48px 0 6px; }
.blog-head .caption { font-size:var(--body-sm); }
.card-grid { display:grid; grid-template-columns:1fr; gap:48px; margin:36px 0 8px; }
@media (min-width:900px) { .card-grid { grid-template-columns:1fr 1fr; gap:44px; } }
.card { display:block; text-decoration:none; color:inherit; font-weight:400; }
.card-media { display:block; width:100%; aspect-ratio:16/9; border-radius:var(--radius-card);
  overflow:hidden; margin:0 0 14px; background:var(--panel);
  box-shadow:0 10px 30px rgba(4,68,170,.12); }
.card-media img { display:block; width:100%; height:100%; object-fit:cover; }
.card-media.ph { display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:4px; background:linear-gradient(150deg,#f2f7ff 0%, #e9f1ff 60%, #f4f4f4 100%); }
.card-media.ph .ph-mark { font-size:44px; font-weight:var(--w-title); color:var(--blue-light);
  letter-spacing:.04em; }
.card-media.ph .ph-sub { font-size:var(--small); color:var(--muted); }
.card .c-title { font-size:25px; font-weight:var(--w-heading); line-height:1.25;
  color:var(--ink); margin:0 0 8px; }
.card:hover .c-title { color:var(--blue); }
.card .c-excerpt { font-size:var(--body-sm); color:var(--muted); line-height:1.5;
  margin:0 0 10px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.card .c-meta { font-size:var(--small); color:var(--muted); margin:0; }
/* category chips — used on cards and in the article meta row */
.chip { display:inline-block; background:var(--panel); border:1px solid var(--border);
  border-radius:999px; padding:1px 10px; margin-right:6px; color:var(--muted); }

/* ---- Tablet & desktop upgrades (≥700px) ---- */
@media (min-width:700px) {
  h1 { font-size:44px; } h2 { font-size:32px; } h3 { font-size:23px; }
  .page-title { font-size:52px; }
  .wrap { padding:0 24px; }
  .hero-text h1 { font-size:38px; }   /* keeps the original's one-line H1 */
}
