/* ==========================================================================
   SEO Expert NZ — site styles
   One stylesheet, no framework. Edit tokens at the top.

   Design notes: white paper, deep-green ink, one motif (the kōwhai dot from
   the logo) used for bullets and headings, rules instead of boxes, and one
   dark moment per page (the closing call to action).
   ========================================================================== */

/* Self-hosted Bricolage Grotesque (SIL Open Font Licence). No third-party font request. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0C3B32;          /* deep pounamu: all text is set in green, not grey */
  --ink-2: #114D42;
  --pounamu: #1B7F6A;      /* links, rules, the recommended column */
  --pounamu-soft: #DCEFE9;
  --kowhai: #F5C04A;       /* the dot */
  --kowhai-deep: #D9A426;
  --paper: #FFFFFF;
  --paper-2: #EEF2EF;      /* river stone: quiet panels and table heads */
  --slate: #0C3B32;
  --muted: #5B6F69;
  --mist: #D5DDD9;
  --rule: #C9D4CF;
  --white: #FFFFFF;
  --danger: #B3372B;

  --font: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;

  --t-1: clamp(2.6rem, 1.5rem + 4vw, 4.6rem);
  --t-2: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem);
  --t-3: clamp(1.3rem, 1.15rem + 0.5vw, 1.55rem);
  --t-4: 1.15rem;
  --t-body: 1.0625rem;
  --t-small: 0.9rem;

  --measure: 62ch;
  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: clamp(4rem, 8vw, 6.5rem);

  --r-sm: 4px;
  --r-md: 4px;
  --r-lg: 14px;
  --dot: 0.55rem;

  color-scheme: light;
}

/* Reset-lite ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-optical-sizing: auto;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--pounamu); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.1; margin: 0 0 var(--space-2); letter-spacing: -0.015em; font-weight: 700; text-wrap: balance; }
h1 { font-size: var(--t-1); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--t-2); font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: var(--t-3); }
h4 { font-size: var(--t-4); }
p, ul, ol, dl { margin: 0 0 var(--space-2); max-width: var(--measure); }
li { margin-bottom: 0.35em; }
strong { color: var(--ink); font-weight: 700; }
small { font-size: var(--t-small); }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--space-4) 0; }
table { border-collapse: collapse; width: 100%; margin: var(--space-3) 0; font-size: 0.98rem; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table thead, table tbody { display: table; width: 100%; }
th, td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { color: var(--ink); background: var(--paper-2); font-weight: 700; }
thead th { border-bottom: 2px solid var(--ink); background: transparent; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; background: var(--paper-2); padding: 0.1em 0.35em; border-radius: 3px; }
blockquote { margin: var(--space-3) 0; padding-left: var(--space-3); border-left: 3px solid var(--kowhai); color: var(--ink); font-size: 1.15rem; }

:focus-visible { outline: 3px solid var(--kowhai-deep); outline-offset: 3px; border-radius: 3px; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-sm); z-index: 100; }
.skip-link:focus { left: 0.5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The dot: section headings carry the logo's mark ------------------------ */
.section > .wrap > h2:first-child,
.section > .wrap > div > h2:first-child,
.section-tight > .wrap > h2:first-child,
.section-tight > .wrap > div > h2:first-child,
.section > .wrap > .grid-2 > div > h2:first-child,
.section-tight > .wrap > .grid-2 > div > h2:first-child {
  position: relative; padding-left: 0.95em;
}
.section > .wrap > h2:first-child::before,
.section > .wrap > div > h2:first-child::before,
.section-tight > .wrap > h2:first-child::before,
.section-tight > .wrap > div > h2:first-child::before,
.section > .wrap > .grid-2 > div > h2:first-child::before,
.section-tight > .wrap > .grid-2 > div > h2:first-child::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--kowhai);
}

/* Layout ----------------------------------------------------------------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 780px); margin-inline: auto; }
.section { padding-block: var(--space-6); }
.section-tight { padding-block: var(--space-5); }
.section + .section, .section-tight + .section, .section + .section-tight, .section-tight + .section-tight { padding-top: 0; }
/* Former colour bands are now plain paper; the closing CTA is the only dark section. */
.band, .band-soft, .band-paper { background: transparent; color: var(--ink); }
.band h2, .band h3 { color: var(--ink); }
.band p { color: var(--ink); }
.band a { color: var(--pounamu); }
.band a:hover { color: var(--ink); }
.lede { font-size: 1.25rem; line-height: 1.45; color: var(--ink-2); max-width: 56ch; font-weight: 400; }
.intro { max-width: 70ch; }
.grid-2 { display: grid; gap: var(--space-4) var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.grid-3 { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.stack > * + * { margin-top: var(--space-2); }
.center { text-align: center; }
.center p, .center .lede { margin-inline: auto; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-block; font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.3rem; border-radius: var(--r-sm); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--kowhai); color: var(--ink); border-color: var(--kowhai); }
.btn-primary:hover { background: var(--kowhai-deep); border-color: var(--kowhai-deep); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.band .btn-primary, .band .btn-primary:hover, .cta-band .btn-primary, .cta-band .btn-primary:hover { color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* Header ----------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 72px; }
.logo { display: inline-flex; align-items: baseline; gap: 0.1rem; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); }
.logo img { height: 40px; width: auto; }
.logo-mark { height: 30px; width: auto; display: block; }
.footer-brand .logo-mark { height: 28px; margin-bottom: 0.75rem; }
@media (max-width: 480px) { .logo-mark { height: 26px; } }
.nav { display: flex; align-items: center; gap: clamp(0.5rem, 2vw, 1.5rem); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.4rem 0.2rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--kowhai); }
.nav .btn { padding: 0.7rem 1.1rem; border-bottom: 1.5px solid var(--kowhai); }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 0.5rem 0.7rem; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 1px solid var(--rule); padding: var(--space-2) var(--gutter) var(--space-3); gap: 0.25rem; }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: 0.75rem 0.25rem; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: var(--space-2); text-align: center; }
}

/* Hero ------------------------------------------------------------------- */
.hero { padding-block: var(--space-5) var(--space-6); }
.hero-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .serp { font-size: 0.82rem; padding: 0.85rem; }
  .serp-row { grid-template-columns: auto minmax(0, 1fr); }
  .serp-stars { grid-column: 2; }
  .serp-title { font-size: 0.95rem; }
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: var(--space-3); }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--t-small); }
.hero-proof span { display: inline-flex; align-items: center; gap: 0.5rem; }
.hero-proof span::before { content: ""; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--kowhai); flex: none; }
.hero-proof svg { display: none; }

/* The SERP illustration — the one memorable element on the home page */
.serp { background: #fff; border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 1.75rem); border: 1.5px solid var(--ink); font-size: 0.9rem; }
.serp-bar { display: flex; align-items: center; gap: 0.6rem; background: var(--paper-2); border-radius: 999px; padding: 0.55rem 1rem; color: var(--ink); margin-bottom: 1rem; }
.serp-bar svg { width: 16px; height: 16px; color: var(--muted); }
.serp-map { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.serp-map-head { background: linear-gradient(135deg, #e6efe9 0%, #d8e9df 50%, #e9e4d3 100%); height: 68px; position: relative; }
.serp-map-head::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 14px; background: var(--danger); border-radius: 50% 50% 50% 0; transform: translate(-50%,-70%) rotate(-45deg); box-shadow: 0 0 0 4px rgba(179,55,43,.18); }
.serp-row { display: grid; grid-template-columns: auto 1fr auto; gap: 0.6rem; align-items: center; padding: 0.55rem 0.8rem; border-top: 1px solid var(--rule); }
.serp-row:first-of-type { border-top: 0; }
.serp-row.you { background: #FFF7E0; }
.serp-rank { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.78rem; background: var(--paper-2); color: var(--ink); }
.serp-row.you .serp-rank { background: var(--kowhai); }
.serp-name { font-weight: 700; color: var(--ink); }
.serp-sub { color: var(--muted); font-size: 0.8rem; }
.serp-stars { color: var(--kowhai-deep); font-size: 0.8rem; letter-spacing: 0.05em; white-space: nowrap; }
.serp-result { padding: 0.55rem 0.2rem; }
.serp-result + .serp-result { border-top: 1px solid var(--rule); }
.serp-url { color: var(--muted); font-size: 0.78rem; }
.serp-title { color: #1a4fa0; font-size: 1.02rem; font-weight: 500; margin: 0.1rem 0; }
.serp-result.you .serp-title { color: var(--pounamu); font-weight: 700; }
.serp-snippet { color: var(--ink); font-size: 0.82rem; max-width: none; margin: 0; }
.serp-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; background: var(--kowhai); color: var(--ink); padding: 0.15rem 0.5rem; border-radius: 3px; margin-left: 0.4rem; vertical-align: middle; }

/* Services: a ruled menu, not cards --------------------------------------- */
.service-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 0 var(--space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.service-list li { margin: 0; padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
.service-list h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }
.service-list h3 a { color: var(--ink); text-decoration: none; }
.service-list h3 a:hover { color: var(--pounamu); text-decoration: underline; }
.service-list p { margin-bottom: 0.6rem; }
.service-list .more { font-weight: 600; }

/* Process (a genuine sequence, so numbered) ------------------------------ */
.process { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: var(--space-4) var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); border-top: 1px solid var(--rule); padding-top: var(--space-3); }
.process li { counter-increment: step; margin: 0; }
.process li::before { content: counter(step); display: block; font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--pounamu); margin-bottom: var(--space-2); }
.process h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

/* Lists: the dot, not a tick -------------------------------------------- */
.checklist { list-style: none; padding: 0; margin: var(--space-2) 0; }
.checklist li { position: relative; padding-left: 1.3rem; margin-bottom: 0.5rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--kowhai); }
.checklist.never li::before { background: none; border-radius: 0; height: 2px; width: 0.6rem; top: 0.78em; background: var(--muted); }

/* Pricing: a rate card ---------------------------------------------------- */
.plans { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; border-top: 2px solid var(--ink); }
.plan { background: transparent; border: 0; border-right: 1px solid var(--rule); border-radius: 0; padding: var(--space-3) var(--space-3) var(--space-3) 0; margin-right: var(--space-3); display: flex; flex-direction: column; position: relative; }
.plan:last-child { border-right: 0; margin-right: 0; }
.plan.featured { box-shadow: none; }
.plan.featured::before { content: ""; position: absolute; left: 0; right: var(--space-3); top: -2px; height: 6px; background: var(--kowhai); }
.plan:last-child.featured::before { right: 0; }
.plan h3 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.plan .who { color: var(--muted); font-size: var(--t-small); min-height: 2.6em; }
.plan .price { font-size: 2.4rem; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin: var(--space-2) 0 0.2rem; line-height: 1; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .term { color: var(--muted); font-size: var(--t-small); margin-bottom: var(--space-2); }
.plan .checklist { flex: 1; }
.plan .btn { align-self: flex-start; margin-top: var(--space-2); }
.plans { row-gap: var(--space-3); }
.plan { border-bottom: 1px solid var(--rule); }
@media (min-width: 761px) and (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(2n) { border-right: 0; margin-right: 0; padding-right: 0; }
  .plan:nth-child(2n).featured::before { right: 0; }
}
@media (max-width: 760px) {
  .plan { border-right: 0; margin-right: 0; padding-right: 0; }
  .plan.featured::before { right: 0; }
}
.audit-row { display: block; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: var(--space-3) 0; margin-top: var(--space-4); }
.audit-row .grid-2 { align-items: center; }
.audit-row .checklist { margin: 0; }
.plan-tag { display: inline-block; background: none; color: var(--pounamu); font-size: 0.85rem; font-weight: 700; padding: 0; margin-bottom: 0.5rem; }

/* FAQ (native details, no JS) ------------------------------------------- */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--rule); padding: 0.2rem 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); font-size: 1.1rem; padding: 0.9rem 2.2rem 0.9rem 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 0.7rem; font-size: 1.5rem; font-weight: 400; color: var(--pounamu); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1rem; }
.faq details p:last-child { margin-bottom: 0; }

/* Results / case studies -------------------------------------------------- */
.results { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.result { padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
.result .metric { font-size: 2.4rem; font-weight: 800; color: var(--pounamu); letter-spacing: -0.03em; line-height: 1; }
.result .what { color: var(--ink); font-weight: 700; margin: 0.3rem 0 0.8rem; }
.result .who { color: var(--muted); font-size: var(--t-small); }
.placeholder { outline: 2px dashed var(--kowhai-deep); outline-offset: 2px; background: #FFF9E8; padding: 0.05em 0.3em; border-radius: 3px; color: #6b4e00; }

/* Testimonials ----------------------------------------------------------- */
.quotes { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.quote { margin: 0; padding: 0 0 0 var(--space-3); border-left: 3px solid var(--kowhai); }
.quote p { font-size: 1.08rem; color: var(--ink); }
.quote footer { color: var(--muted); font-size: var(--t-small); }

/* Locations: a ruled list of links --------------------------------------- */
.locations { display: grid; gap: 0 var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); list-style: none; padding: 0; margin: var(--space-3) 0 0; max-width: none; }
.locations li { margin: 0; border-top: 1px solid var(--rule); }
.locations a, .locations span { display: block; padding: 0.7rem 0; text-decoration: none; font-weight: 600; color: var(--ink); }
.locations a::before, .locations span::before { content: ""; display: inline-block; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--kowhai); margin-right: 0.6rem; vertical-align: 0.1em; }
.locations span::before { background: var(--rule); }
.locations a:hover { color: var(--pounamu); text-decoration: underline; }
.locations span { color: var(--muted); font-weight: 500; }

/* Breadcrumbs ------------------------------------------------------------ */
.crumbs { font-size: var(--t-small); color: var(--muted); padding-top: var(--space-3); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; max-width: none; }
.crumbs li + li::before { content: "/"; margin-right: 0.3rem; color: var(--rule); }
.crumbs a { color: var(--muted); }

/* Page header: headline left, the facts in the margin ------------------- */
.page-head { padding-block: var(--space-4) var(--space-5); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { margin-top: var(--space-2); }
.page-head.has-aside { display: grid; gap: var(--space-4) var(--space-5); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; }
@media (max-width: 900px) { .page-head.has-aside { grid-template-columns: minmax(0, 1fr); } }
.facts-aside { border-top: 2px solid var(--ink); padding-top: var(--space-2); }
.facts-aside h2 { font-size: 1rem; margin: 0 0 var(--space-1); font-weight: 700; letter-spacing: 0; }
.facts-aside dl { margin: 0; max-width: none; }
.facts-aside dl > div { display: grid; grid-template-columns: minmax(6.5rem, 8.5rem) minmax(0, 1fr); gap: 0.25rem var(--space-2); padding: 0.55rem 0; border-top: 1px solid var(--rule); font-size: 0.95rem; }
.facts-aside dt { font-weight: 700; color: var(--ink); }
.facts-aside dd { margin: 0; color: var(--ink); }
@media (max-width: 480px) { .facts-aside dl > div { grid-template-columns: minmax(0, 1fr); } }

/* Prose (blog) ----------------------------------------------------------- */
.prose h2 { font-size: 1.75rem; margin-top: var(--space-4); }
.prose h3 { font-size: 1.3rem; margin-top: var(--space-3); }
.prose img { border-radius: var(--r-sm); margin: var(--space-3) 0; }
.prose table { font-size: 0.95rem; }
.post-meta { color: var(--muted); font-size: var(--t-small); display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-bottom: var(--space-3); }
.post-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; gap: 0; }
.post-list li { margin: 0; padding: var(--space-3) 0; border-top: 1px solid var(--rule); }
.post-list h2, .post-list h3 { font-size: 1.45rem; margin-bottom: 0.4rem; }
.post-list h2 a, .post-list h3 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover, .post-list h3 a:hover { color: var(--pounamu); text-decoration: underline; }
.key-points { background: var(--paper-2); border-left: 4px solid var(--kowhai); border-radius: 0; padding: var(--space-3); margin: var(--space-3) 0; }
.key-points h2, .key-points h3 { margin-top: 0; font-size: 1.15rem; }
.key-points ul { margin-bottom: 0; }
.glance { margin: 0 0 var(--space-4); }
.glance h2 { font-size: 1.15rem; margin: 0 0 var(--space-2); }
.glance dl { display: grid; gap: 0; margin: 0; max-width: none; }
.glance dl > div { display: grid; grid-template-columns: minmax(8rem, 12rem) minmax(0, 1fr); gap: 0.25rem var(--space-3); padding: 0.6rem 0; border-top: 1px solid rgba(12,59,50,.12); }
.glance dl > div:first-child { border-top: 0; padding-top: 0; }
.glance dt { font-weight: 700; color: var(--ink); }
.glance dd { margin: 0; }
@media (max-width: 560px) { .glance dl > div { grid-template-columns: minmax(0, 1fr); } }
.searches { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: var(--space-2) 0 0; max-width: none; }
.searches li { margin: 0; padding: 0.45rem 0.8rem; background: var(--paper-2); border-radius: 999px; font-size: 0.95rem; }
.searches li::before { content: "⌕ "; color: var(--muted); }
.author-box { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-top: var(--space-4); }
.author-box .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--pounamu); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.author-box p { margin: 0; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: var(--space-2); max-width: 640px; }
.form label { font-weight: 700; color: var(--ink); display: block; margin-bottom: 0.3rem; }
.form input, .form select, .form textarea { width: 100%; font: inherit; padding: 0.8rem 0.9rem; border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--pounamu); outline: none; box-shadow: 0 0 0 3px var(--pounamu-soft); }
.form .row { display: grid; gap: var(--space-2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.form .help { color: var(--muted); font-size: var(--t-small); margin: 0.3rem 0 0; }
.form .hp { position: absolute; left: -9999px; }
.contact-card { background: var(--paper-2); border: 0; border-left: 4px solid var(--kowhai); border-radius: 0; padding: var(--space-3); }
.contact-card dl { margin: 0; }
.contact-card dt { font-weight: 700; color: var(--ink); margin-top: var(--space-2); }
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 0.2rem 0 0; }

/* Founding offer: a panel in the flow, not a yellow band ---------------- */
.founding { padding-block: 0; }
.founding .wrap { border-top: 2px solid var(--ink); padding-top: var(--space-3); padding-bottom: var(--space-5); }
.founding .btn { margin-top: var(--space-2); }

/* Stat strip (unused on the home page now; kept for other pages) --------- */
.facts { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.fact .n { font-size: 2.4rem; font-weight: 800; color: var(--pounamu); line-height: 1; letter-spacing: -0.03em; }
.fact .l { margin-top: 0.4rem; }
.fact .s { color: var(--muted); font-size: 0.8rem; }

/* CTA band: the one dark moment on each page ----------------------------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D9E6E1; }
.cta-band .btn-secondary { color: #fff; border-color: #fff; }
.cta-band .btn-secondary:hover { background: #fff; color: var(--ink); }
.section.cta-band { padding-block: var(--space-6); }

/* Footer: quiet, on paper ------------------------------------------------ */
.site-footer { background: var(--paper); color: var(--ink); padding-block: var(--space-5) var(--space-3); font-size: var(--t-small); border-top: 1px solid var(--rule); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--pounamu); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-4); grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--ink); font-size: 1rem; margin-bottom: 0.6rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.footer-brand p { color: var(--muted); max-width: 36ch; }
.footer-legal { border-top: 1px solid var(--rule); margin-top: var(--space-4); padding-top: var(--space-2); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; color: var(--muted); }
.footer-legal a + a { margin-left: 1.25rem; }
address { font-style: normal; }

/* 404 */
.notfound { min-height: 50vh; display: grid; place-content: center; text-align: center; }

/* Figures and charts ---------------------------------------------------- */
.figure { margin: var(--space-3) 0; max-width: 100%; }
.figure svg { width: 100%; max-width: 560px; height: auto; display: block; }
.figure .chart { max-width: 520px; }
.figure figcaption { font-size: var(--t-small); color: var(--muted); margin-top: 0.5rem; }
.figure.card { background: transparent; border: 0; border-radius: 0; padding: 0; }
.chart { font-family: var(--font); }
.chart .c-title { font-size: 13px; font-weight: 700; fill: var(--ink); }
.chart .c-inbar { fill: #fff; }
.chart .c-label { font-size: 11px; fill: var(--ink); }
.chart .c-value { font-size: 11px; font-weight: 700; fill: var(--ink); }
.chart .c-source { font-size: 9px; fill: var(--muted); }
.chart .c-grid { stroke: var(--mist); stroke-width: 1; }
