/* ---------------------------------------------------------------
   Grey Business Network
   Palette, type and usage rules from GBN-Brand-Package v1.1, July 2026
   Ironsand #2E3336 · River Grey #6E7578 · Mist #DADCD9
   Quartz #F6F6F4 · Pounamu #0F6B52 (#45A886 on dark)
   Rule: keep the node green and everything else grey.
   Rule: nothing line-like above, below or around a logo. Ever.
   --------------------------------------------------------------- */

:root {
  --ground:        #F6F6F4;   /* Quartz */
  --surface:       #FFFFFF;
  --surface-sunk:  #EFEFEC;
  --ink:           #2E3336;   /* Ironsand */
  --muted:         #6E7578;   /* River Grey */
  --line:          #DADCD9;   /* Mist */
  --line-soft:     #E7E8E4;
  --accent:        #0F6B52;   /* Pounamu */
  --accent-soft:   #E3EFE9;
  --deep:          #23282A;
  --band:          #2E3336;   /* offer band, a step above the footer */
  --deep-ink:      #F4F5F3;
  --deep-muted:    #A9B0AD;
  --deep-line:     #3A423F;
  --deep-accent:   #45A886;
  --logo-ink:      var(--ink);
  --logo-node:     var(--accent);

  --font: 'Manrope', 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --step--1: 0.8125rem;
  --step-0:  1rem;
  --step-1:  1.125rem;
  --step-2:  1.375rem;
  --step-3:  clamp(1.625rem, 1.1rem + 2.2vw, 2.375rem);
  --step-4:  clamp(2.25rem, 1.3rem + 4.6vw, 4rem);

  --gutter:  clamp(1.25rem, 5vw, 3rem);
  --measure: 65ch;
  --shell:   1120px;
  --rhythm:  clamp(4.5rem, 9vw, 7.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:       #1F2426;
    --surface:      #272D2F;
    --surface-sunk: #23282A;
    --ink:          #ECEFEC;
    --muted:        #9AA19E;
    --line:         #3A423F;
    --line-soft:    #333A38;
    --accent:       #45A886;
    --accent-soft:  #2A3B35;
    --deep:         #171B1C;
    --band:         #262C2E;
    --deep-ink:     #F4F5F3;
    --deep-muted:   #9AA19E;
    --deep-line:    #333A38;
    --deep-accent:  #45A886;
    --logo-ink:     var(--ink);
    --logo-node:    var(--accent);
  }
}

:root[data-theme="dark"] {
  --ground:       #1F2426;
  --surface:      #272D2F;
  --surface-sunk: #23282A;
  --ink:          #ECEFEC;
  --muted:        #9AA19E;
  --line:         #3A423F;
  --line-soft:    #333A38;
  --accent:       #45A886;
  --accent-soft:  #2A3B35;
  --deep:         #171B1C;
  --band:         #262C2E;
  --deep-ink:     #F4F5F3;
  --deep-muted:   #9AA19E;
  --deep-line:    #333A38;
  --deep-accent:  #45A886;
  --logo-ink:     var(--ink);
  --logo-node:    var(--accent);
}

* { box-sizing: border-box; }
img, svg { max-width: 100%; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { letter-spacing: -0.018em; text-wrap: balance; margin: 0; font-weight: 700; }
h1 { font-size: var(--step-4); line-height: 1.04; }
h2 { font-size: var(--step-3); line-height: 1.12; }
h3 { font-size: var(--step-2); line-height: 1.25; }
p  { margin: 0; max-width: var(--measure); }

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

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--ground); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}

/* --- logo ------------------------------------------------------- */

.logo { display: block; height: auto; }
.logo .stroke { fill: none; stroke: var(--logo-ink); stroke-width: 7; stroke-linecap: round; }
.logo .source { fill: var(--logo-ink); }
.logo .node   { fill: var(--logo-node); }
.logo .word   { fill: var(--logo-ink); font-weight: 600; letter-spacing: .2px; }
.logo .word-2 { fill: var(--muted); font-weight: 400; letter-spacing: .2px; }

/* --- masthead --------------------------------------------------- */
/* No rule, border or bar under the masthead: the logo sits here and
   nothing line-like may run above, below or around a logo. */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: blur(12px);
}
.masthead .shell {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 1.125rem;
}
.masthead .logo { width: 196px; }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 1.75rem); }
.nav a { color: var(--muted); text-decoration: none; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.nav a:hover, .nav a:focus-visible { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }
/* The join button is also a nav item, so it must win over the
   aria-current rule above or it renders dark-on-dark. */
.nav a.btn, .nav a.btn[aria-current="page"] { color: var(--ground); }

/* --- buttons ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: inherit; font-size: .9375rem; font-weight: 600;
  padding: .8rem 1.4rem; border-radius: 4px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--ground); }
.btn-primary:hover { background: var(--muted); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-accent { background: var(--deep-accent); color: #10201B; }
.btn-accent:hover { background: #58BC99; }
.btn-outline-light { border-color: var(--deep-line); color: var(--deep-ink); background: transparent; }
.btn-outline-light:hover { border-color: var(--deep-muted); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }

/* --- sections --------------------------------------------------- */

section { padding-block: var(--rhythm); }
.section-head { display: flex; flex-direction: column; gap: .75rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { color: var(--muted); font-size: var(--step-1); }

/* --- hero ------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero .shell {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 900px) {
  .hero .shell { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 240px; }
}
.hero-copy { display: flex; flex-direction: column; gap: 1.5rem; }
.hero-copy .lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-art { width: 100%; }

.draw { stroke-dasharray: 120; stroke-dashoffset: 120; animation: draw 1.1s cubic-bezier(.65,.05,.36,1) forwards; }
.draw-2 { animation-delay: .12s; }
.draw-3 { animation-delay: .24s; }
.fade { opacity: 0; animation: fade .5s ease forwards; }
.fade-1 { animation-delay: .05s; }
.fade-2 { animation-delay: .17s; }
.fade-3 { animation-delay: .29s; }
.arrive { opacity: 0; transform: scale(.4); transform-origin: 86px 50px; animation: arrive .5s cubic-bezier(.34,1.4,.64,1) 1.05s forwards; }
@keyframes draw   { to { stroke-dashoffset: 0; } }
@keyframes fade   { to { opacity: 1; } }
@keyframes arrive { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .draw, .fade, .arrive { animation: none; stroke-dashoffset: 0; opacity: 1; transform: none; }
}

.hero-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(3rem, 6vw, 4.5rem); }
.hero-strip .shell { display: flex; flex-wrap: wrap; gap: .5rem 2.5rem; padding-block: 1.125rem; font-size: .9375rem; color: var(--muted); }
.hero-strip strong { color: var(--ink); font-weight: 600; }

/* --- the mark read as three stages ------------------------------ */
/* No cards, no rules: each stage is the mark's own drawing on plain
   ground, so nothing line-like ever sits against it. */

.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); }
@media (max-width: 820px) { .stages { grid-template-columns: 1fr; gap: 3rem; } }
.stage { display: flex; flex-direction: column; gap: .65rem; }
.stage-art { width: 100%; max-width: 190px; margin-bottom: .5rem; }
.stage-label { font-size: var(--step--1); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stage:last-child .stage-label { color: var(--accent); }
.stage h3 { font-size: var(--step-2); }
.stage p { color: var(--muted); font-size: .9688rem; }

.payoff { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--line); }
.payoff p { font-size: var(--step-2); font-weight: 600; letter-spacing: -.015em; max-width: 40ch; line-height: 1.35; }

/* --- numbered steps --------------------------------------------- */
/* Numbered because this genuinely is a sequence: the pool has to exist
   before the rate can be negotiated, and the rate before anyone switches. */

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { display: flex; flex-direction: column; gap: .55rem; padding-top: 1.25rem; border-top: 2px solid var(--line); counter-increment: step; }
.step:last-child { border-top-color: var(--accent); }
.step .num {
  font-size: var(--step--1); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.step .num::before { content: "Step " counter(step) " \00b7 "; }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--muted); font-size: .9688rem; }

.notice {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding: 1.5rem 1.75rem;
  /* Neutral, not pounamu: the payoff figure is the one green thing here. */
  background: var(--surface-sunk);
  border-radius: 6px;
  display: flex; flex-direction: column; gap: .4rem;
}
.notice strong { color: var(--ink); font-weight: 700; }
.notice p { color: var(--muted); font-size: .9375rem; }
.reversed-notice { background: var(--deep-line); }

/* --- worked example --------------------------------------------- */

.sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: clamp(2rem, 4vw, 2.75rem); }
@media (max-width: 720px) { .sum { grid-template-columns: 1fr; } }
.sum div { background: var(--ground); padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: .3rem; }
.sum .val { font-size: clamp(1.375rem, 3vw, 1.875rem); font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1; }
.sum .key { font-size: var(--step--1); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sum .note { font-size: .875rem; color: var(--muted); }
.sum div:last-child .val { color: var(--accent); }

/* --- who we are ------------------------------------------------- */

.about { background: var(--surface-sunk); border-block: 1px solid var(--line); }
.about .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .about .shell { grid-template-columns: 1fr; } }
.about-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.about-copy p { color: var(--muted); }
.facts { display: flex; flex-direction: column; gap: 0; margin: 0; }
.facts div { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: 1rem; padding-block: .9rem; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .facts div { grid-template-columns: 1fr; gap: .1rem; } }
.facts dt { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-size: .9688rem; }

/* --- benefits --------------------------------------------------- */

.gets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (max-width: 720px) { .gets { grid-template-columns: 1fr; } }
.gets li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .85rem; color: var(--muted); font-size: .9688rem; }
.gets .tick { color: var(--accent); font-weight: 700; }
.gets strong { color: var(--ink); font-weight: 600; display: block; }

/* --- the offer band --------------------------------------------- */

.offer { background: var(--band); color: var(--deep-ink); }
.offer h2 { color: var(--deep-ink); }
.offer .eyebrow { color: var(--deep-accent); }
.offer p { color: var(--deep-muted); }
.offer .shell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 820px) { .offer .shell { grid-template-columns: 1fr; } }
.offer-copy { display: flex; flex-direction: column; gap: 1rem; }
.price { display: flex; align-items: baseline; gap: .5rem; }
.price .amount { font-size: clamp(3rem, 8vw, 4.75rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--deep-ink); font-variant-numeric: tabular-nums; }
.price .unit { font-size: var(--step-1); color: var(--deep-muted); }

/* --- forms ------------------------------------------------------ */

.form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 34rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: var(--step--1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: .75rem .9rem; width: 100%;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .875rem; color: var(--muted); }
.form h2 { margin-top: .5rem; }
.form h2:first-child { margin-top: 0; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .3rem; accent-color: var(--accent); }
.check span { font-size: .9375rem; color: var(--muted); }

/* --- checkout summary ------------------------------------------- */

.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } }
.summary { background: var(--surface); border-radius: 6px; padding: clamp(1.75rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 6rem; }
@media (max-width: 900px) { .summary { position: static; } }
.summary h3 { font-size: var(--step-2); }
.summary .rows { display: flex; flex-direction: column; gap: 0; }
.summary .row { display: flex; justify-content: space-between; gap: 1rem; padding-block: .7rem; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.summary .row span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.summary .row.total { border-top: 1px solid var(--ink); font-weight: 700; color: var(--ink); font-size: var(--step-1); padding-top: .9rem; }
.summary .btn { width: 100%; }
.summary .fine { font-size: .8125rem; color: var(--muted); }

/* --- contact ---------------------------------------------------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: flex; flex-direction: column; gap: 0; }
.contact-list div { padding-block: 1.1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.contact-list div:last-child { border-bottom: 1px solid var(--line); }
.contact-list .k { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.contact-list .v { font-size: var(--step-1); }
.contact-list .sub { font-size: .875rem; color: var(--muted); }

/* --- page head (inner pages) ------------------------------------ */

.page-head { padding-block: clamp(3rem, 7vw, 5rem) 0; }
.page-head .shell { display: flex; flex-direction: column; gap: 1rem; }
.page-head p { color: var(--muted); font-size: var(--step-1); }

/* --- footer ----------------------------------------------------- */

.foot { background: var(--deep); color: var(--deep-muted); padding-block: clamp(3rem, 6vw, 4.5rem); }
.foot .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; }
@media (max-width: 780px) { .foot .shell { grid-template-columns: 1fr; } }
.foot .logo { width: 200px; margin-bottom: 1.25rem; }
.foot p { font-size: .9375rem; color: var(--deep-muted); }
.foot a { color: var(--deep-ink); }
.foot .flinks { display: flex; flex-direction: column; gap: .55rem; font-size: .9375rem; }
.foot .flinks .k { font-size: var(--step--1); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--deep-accent); margin-bottom: .3rem; }
.foot .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--deep-line); font-size: .8125rem; display: flex; flex-wrap: wrap; gap: .4rem 2rem; }
.foot .legal a { color: var(--deep-ink); }
