/* =========================================================================
   DaniLink marketing site — brand skin ("trust-forward light green")
   Light, paper-green base + DaniLink green identity. Ported verbatim from
   the approved home-redesign preview's :root token block, then applied to
   every component/class used across all pages.
   Light-committed: this theme intentionally has NO dark-mode inversion —
   no `prefers-color-scheme: dark` override is added on purpose.
   No external fonts/CDNs (CSP: script-src 'self'; style-src 'self'
   'unsafe-inline') — everything below is self-hosted, system-font based.
   ========================================================================= */

:root {
  --paper: #F4F8F2;        /* soft green-white page ground */
  --paper-2: #EAF2E9;      /* deeper wash for alternating bands */
  --card: #FFFFFF;
  --ink: #12211A;          /* green-charcoal headings */
  --body: #4A5A50;         /* muted green-gray text — used for all real body copy (passes WCAG AA ~7.3:1 on paper/card) */
  --muted: #7C8C82;        /* reserved for decorative/aria-hidden micro-copy only — does not clear 4.5:1 on paper, see note below */
  --green: #2E7D32;        /* brand primary */
  --green-bright: #43A047;
  --green-deep: #1B5E20;   /* text-safe green / accents */
  --wash: #E7F3E8;         /* chips, icon tiles, section tint */
  --line: #E1EADF;
  --danger: #C62828;
  --shadow: 0 1px 2px rgba(18,33,26,.04), 0 12px 32px -12px rgba(27,94,32,.16);
  --radius: 16px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;

  color-scheme: light;
}

/* NOTE on --muted: the approved preview uses --muted for a handful of
   decorative captions inside the aria-hidden consent-card mock (illustrative
   marketing chrome, not real content). Everywhere else on the site — feature
   / principle descriptions, plan line-items, fineprint, footer links, the
   download "muted" availability note — this stylesheet uses --body instead,
   because --muted alone measures ~3.5:1 against --paper/--card and would
   fail WCAG AA (4.5:1) for meaningful text. This mirrors the outgoing dark
   theme's own documented brand-2-fill contrast fix (kept below on .btn.primary). */

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.6 var(--sans);
  background: var(--paper);
  color: var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0 0 0.6em; }
ul, ol { padding-left: 1.25em; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Visible keyboard focus everywhere (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 1.55rem + 2.2vw, 3.25rem);
  font-weight: 760;
  line-height: 1.06;
}
h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 740;
  line-height: 1.15;
}
h3 {
  font-size: 1.15rem;
  font-weight: 680;
  letter-spacing: -0.01em;
}

/* Honeypot: real form field, must never render (task requirement) */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  opacity: 0;
}

/* ---- Layout: every top-level page block is a <section class="…">,
   give them all a shared readable container + vertical rhythm. -------- */
main > section {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(48px, 8vw, 88px) clamp(20px, 4vw, 48px);
}
main > section + section { border-top: 1px solid var(--line); }
main > section.cta-band { border-top: none; }

/* Soft green-tinted wash for a couple of home-page bands, echoing the
   preview's alternating .band / .band.tint rhythm (contained within the
   page's max-width rather than full-bleed, since the shared layout doesn't
   use a separate outer full-width wrapper). */
main > section.pillars {
  background: var(--paper-2);
  border-radius: var(--radius-lg);
  max-width: calc(var(--maxw) + 48px);
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.primary {
  /* Gradient stops deliberately deeper than the preview's raw --green-bright:
     white text on the literal --green-bright edge measures ~3.3:1 (fails
     WCAG AA 4.5:1 at this weight/size). Composing the fill from --green →
     --green-deep instead keeps both stops from tokens already defined above
     (still "verbatim" as named colors) while clearing AA throughout. */
  background: linear-gradient(180deg, var(--green), var(--green-deep));
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(27,94,32,.55);
}
.btn.primary:hover { box-shadow: 0 12px 22px -8px rgba(27,94,32,.65); }
.btn.ghost {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost:hover { border-color: #c9d8c6; }
.btn.white { background: #fff; color: var(--green-deep); }
.btn.line { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn.lg { padding: 15px 26px; font-size: 1.05rem; }
button.btn { font: inherit; font-weight: 650; }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 4vw, 48px);
  background: rgba(244, 248, 242, .86);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .mark { width: 28px; height: 28px; flex: 0 0 auto; }
.brand .lk { color: var(--green); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  flex: 1;
  justify-content: center;
}
.main-nav a {
  color: var(--body);
  font-size: .95rem;
  font-weight: 550;
}
.main-nav a:hover { color: var(--ink); text-decoration: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.header-actions .btn { padding: 9px 16px; font-size: .9rem; }

.lang {
  display: flex;
  gap: 2px;
  font-family: var(--mono);
  font-size: .8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.lang a { color: var(--body); padding: 6px 10px; }
.lang a:hover { color: var(--ink); text-decoration: none; }
.lang a.active { color: #fff; background: var(--green); font-weight: 700; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 84px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 70%;
  background:
    radial-gradient(60% 70% at 72% 20%, rgba(67,160,71,.14), transparent 60%),
    radial-gradient(50% 60% at 15% 0%, rgba(46,125,50,.09), transparent 60%);
  pointer-events: none;
}
.hero-copy { position: relative; }
.hero-copy p { color: var(--body); font-size: 1.15rem; max-width: 46ch; }
.hero-copy h1 { margin-top: 20px; margin-bottom: .35em; }

/* eyebrow pill above the hero h1 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green-deep);
  background: var(--wash);
  border: 1px solid #d3e7d4;
  padding: 6px 12px;
  border-radius: 999px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46,125,50,.18);
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 1.7em; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--body); }
.chk {
  width: 18px; height: 18px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wash);
  display: inline-grid;
  place-items: center;
  color: var(--green-deep);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
}
.chk svg { width: 11px; height: 11px; }

/* ---- signature visual: the consent moment ---- */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.stage { position: relative; display: flex; justify-content: center; width: 100%; }
.consent {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
  position: relative;
  z-index: 2;
}
.consent .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px;
  flex: 0 0 auto;
}
.consent .who b { color: var(--ink); font-size: 1rem; }
.consent .who small { display: block; color: var(--muted); font-size: .81rem; margin-top: 1px; }
.consent .ask { margin: 16px 0 4px; color: var(--ink); font-size: .97rem; line-height: 1.45; }
.consent .ask b { font-weight: 680; }
.consent .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent .acts .btn { width: 100%; padding: 11px 16px; font-size: .95rem; }
.consent .note {
  margin-top: 12px; font-size: .78rem; color: var(--muted);
  display: flex; align-items: center; gap: 7px; justify-content: center;
}
.consent .note .chk { width: 16px; height: 16px; }
.approved {
  position: absolute; z-index: 3; right: -12px; top: -14px;
  background: var(--card);
  border: 1px solid #cfe6d0;
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 8px;
  font-weight: 650; color: var(--green-deep); font-size: .87rem;
}
.approved .badge {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: grid; place-items: center;
  color: #fff; font-size: 11px; font-style: normal;
}
.approved .badge svg { width: 12px; height: 12px; }
.stage .device {
  position: absolute; left: -4%; bottom: -6%; z-index: 1;
  width: 140px; height: 92px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: .9;
}
.stage .device .b2 {
  position: absolute; left: 14px; right: 14px; top: 16px; height: 8px;
  border-radius: 4px; background: var(--wash);
  display: block;
}
.stage .device .b2::after {
  content: ""; position: absolute; left: 0; right: 30px; top: 16px; height: 8px;
  border-radius: 4px; background: var(--line);
}

/* ---- Section kickers + titles (ported from the approved preview's
   .kicker / .h2 / .sub, used above the pillars grid and the how-it-works
   steps) ------------------------------------------------------------- */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-deep);
}
.h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 740;
  margin-top: 10px;
  line-height: 1.1;
}
.sub {
  margin-top: 12px;
  max-width: 56ch;
  color: var(--body);
}

/* =========================================================================
   Pillars — four benefits, unordered by design (no numbering: order carries
   no meaning here, unlike the literal 3-step "how it works" sequence below).
   ========================================================================= */
.pillars {
  padding: clamp(40px, 6vw, 64px) clamp(20px, 4vw, 48px);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 38px;
}
.pillars article {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18,33,26,.03);
}
.pillars h3 { color: var(--ink); }
.pillars p { color: var(--body); margin: 0; font-size: .95rem; }

/* =========================================================================
   How it works — a real, ordered sequence: numbered deliberately.
   ========================================================================= */
.how { text-align: center; }
.how h2 { margin-bottom: .8em; }
/* .support-session reuses the numbered step cards without inheriting .how's centred text. */
.how ol,
.support-session ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* auto-fit: 3 step-cards on Home, 4 on /referral — no orphan card on a second row */
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  text-align: left;
  counter-reset: step;
}
/* Scoped to the ol: the /referral page also has a plain ul (.rules) inside .how */
.how ol > li,
.support-session ol > li {
  counter-increment: step;
  position: relative;
  padding: 26px 20px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.how ol > li::before,
.support-session ol > li::before {
  content: counter(step);
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: .95rem;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

/* =========================================================================
   Who we are — experience stats + story
   ========================================================================= */
.about { text-align: center; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 38px;
  text-align: left;
}
.about-stats .stat {
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.about-stats .value {
  display: block;
  font-family: var(--display);
  font-weight: 740;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  color: var(--green-deep);
}
.about-stats .label { color: var(--body); font-size: .95rem; }
.about-body { margin: 26px auto 0; max-width: 62ch; color: var(--body); }

/* =========================================================================
   CTA band
   ========================================================================= */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--green-deep), var(--green));
  color: #fff;
  border-radius: 24px;
  margin-block: clamp(48px, 8vw, 88px);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% -10%;
  height: 70%;
  background: radial-gradient(50% 100% at 50% 0, rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 0; position: relative; }
.cta-band p {
  color: rgba(255,255,255,.86);
  margin: 10px auto 0;
  max-width: 46ch;
  position: relative;
}
.cta-band .row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
  position: relative;
}

/* =========================================================================
   Features
   ========================================================================= */
.lead { color: var(--body); font-size: 1.1rem; max-width: 60ch; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2em;
}
.feature {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18,33,26,.03);
  transition: box-shadow .2s ease, transform .2s ease;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature h3 { margin-bottom: .4em; }
.feature p { color: var(--body); margin: 0; font-size: .95rem; }

/* =========================================================================
   Security
   ========================================================================= */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2em;
}
.principle {
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18,33,26,.03);
  transition: box-shadow .2s ease, transform .2s ease;
}
.principle:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.principle h3 { margin-bottom: .4em; }
.principle p { color: var(--body); margin: 0; font-size: .95rem; font-variant-numeric: tabular-nums; }

/* =========================================================================
   Pricing
   ========================================================================= */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2em;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(18,33,26,.03);
  position: relative;
}
.plan h3 {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--body);
}
.plan.featured {
  background: var(--card);
  border-color: var(--green-bright);
  box-shadow: 0 0 0 1px rgba(67,160,71,.25), var(--shadow);
}
.plan.featured h3 { color: var(--green-deep); }
.plan .price {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 760;
  color: var(--ink);
  margin: .2em 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}
.plan .suffix {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  color: var(--body);
  flex-basis: 100%;
}
.plan ul { list-style: none; padding: 0; margin: 0 0 1.4em; flex: 1; }
.plan li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: .92rem;
}
.plan li:first-child { border-top: none; }
.plan .btn { text-align: center; }
.fineprint { color: var(--body); font-size: .85rem; margin-top: 1.6em; }

/* Pricing: trial badge + checkmark bullets (launch refresh) */
.plan .trial-badge {
  position: absolute; top: -11px; right: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 8px 18px -8px rgba(27,94,32,.55);
}
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li svg { width: 15px; height: 15px; flex: 0 0 auto; margin-top: 4px; color: var(--green); }

/* =========================================================================
   Download
   ========================================================================= */
.muted { color: var(--body); font-size: .9rem; }
.ok, .err {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .95rem;
}
.ok { color: var(--green-deep); background: var(--wash); border: 1px solid #cfe6d0; }
.err { color: var(--danger); background: rgba(198,40,40,.08); border: 1px solid rgba(198,40,40,.3); }

/* =========================================================================
   Forms (contact)
   ========================================================================= */
input, textarea, select {
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, textarea:focus, select:focus { border-color: var(--green); }
textarea { resize: vertical; min-height: 120px; }

.stack { display: flex; flex-direction: column; gap: 14px; max-width: 520px; margin-top: 1.4em; }
.stack .btn { align-self: flex-start; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact h1 { margin-bottom: .5em; }
.contact .about-note { color: var(--body); max-width: 62ch; margin: 0 0 1.6em; }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq details {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--green);
  font-size: 1.2rem;
  margin-left: 12px;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--body); margin-top: 12px; margin-bottom: 0; }

/* =========================================================================
   Remote support landing
   ========================================================================= */
.support-hero h1 { max-width: 18ch; }
.support-hero .lead { margin-top: .7em; }

/* Same card treatment as the home-page pillars, three across instead of four. */
.shift-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 38px;
}
.shift-grid article {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(18,33,26,.03);
}
.shift-grid h3 { color: var(--ink); }
.shift-grid p { color: var(--body); margin: 0; font-size: .95rem; }

.support-session .lead { margin-bottom: 2em; }
.support-note { color: var(--body); max-width: 64ch; margin-top: 2.2em; }
.support-more { color: var(--green-deep); font-weight: 600; }
.support-plans .shift-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .shift-grid,
  .support-plans .shift-grid { grid-template-columns: 1fr; }
}

/* =========================================================================
   Blog (index + post)
   ========================================================================= */
.blog-index .lead,
.post header .lead { color: var(--body); max-width: 62ch; }

.post-list { list-style: none; padding: 0; margin: 2.2em 0 0; }
.post-list > li + li { margin-top: 14px; }
.post-list article {
  padding: 20px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.post-list h2 { font-size: 1.25rem; margin: .3em 0 .4em; }
.post-list h2 a { color: var(--ink); text-decoration: none; }
.post-list h2 a:hover { color: var(--green-deep); text-decoration: underline; }
.post-list p { color: var(--body); margin: 0; }

/* Dates are secondary to the headline everywhere they appear. */
.post-list time,
.post header time {
  font-size: .82rem;
  font-family: var(--mono);
  color: var(--body);
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* A centred reading measure. The h1 steps down from the global hero scale — an article headline
   sitting in a 72ch column does not need the size a landing-page hero does. */
.post { max-width: 72ch; margin-inline: auto; }
.post header { margin-bottom: 2em; }
.post h1 {
  margin: .25em 0 .4em;
  font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.6rem);
}
.post header .lead { font-size: 1.08rem; }
.post h2 { margin-top: 1.8em; }
.post h3 { margin-top: 1.4em; }
.post p, .post li { color: var(--body); }
.post ul, .post ol { padding-left: 1.3em; }
.post li + li { margin-top: .4em; }
.post a { color: var(--green-deep); }
.post strong { color: var(--ink); }
.post code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--wash);
  padding: .1em .35em;
  border-radius: 6px;
}
.post-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.6em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}

/* =========================================================================
   Legal (Privacy / Terms) & Error
   ========================================================================= */
.legal { max-width: 76ch; }
.legal p, .legal li { color: var(--body); }
.error { text-align: center; padding-block: clamp(80px, 14vw, 140px); }

/* =========================================================================
   Footer
   ========================================================================= */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px clamp(20px, 4vw, 48px) 48px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: .9rem;
}
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--body); }
.site-footer a:hover { color: var(--green-deep); }
.build-stamp { flex-basis: 100%; font-size: .75rem; opacity: .5; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 960px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .principles { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .how ol { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav, .header-actions {
    display: none;
    width: 100%;
  }
  .site-header {
    flex-wrap: wrap;
  }
  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    display: flex;
  }
  .site-header.nav-open .main-nav {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-top: 12px;
  }
  .site-header.nav-open .header-actions {
    order: 4;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
  }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .approved { right: 4%; }
}

@media (max-width: 640px) {
  .plans, .feature-grid, .principles, .pillars-grid, .about-stats { grid-template-columns: 1fr; }
  .cta-row .btn, .stack .btn { width: 100%; text-align: center; }
  .inline { flex-direction: column; }
  .consent .acts { grid-template-columns: 1fr 1fr; }
  .stage .device { display: none; }
}

/* ---- Motion off switch (WCAG 2.3.3 / user preference) ----------------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Home referral band (launch refresh) */
.hero-hook { color: var(--body); font-size: .92rem; margin-top: 1.1em; }
.referral-band-wrap { }
.refband {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 44px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: center;
}
.refband h2 { margin: .35em 0 .3em; }
.refband p { color: var(--body); max-width: 44ch; }
.refband .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.2em; }
.exchange { display: flex; align-items: center; justify-content: center; gap: 14px; }
.exchange .who { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.exchange .ava {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; box-shadow: var(--shadow);
}
.exchange .who small { font-size: .78rem; color: var(--body); font-weight: 600; }
.exchange .gift { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.exchange .gift .pill {
  background: var(--card); border: 1px solid #cfe6d0; border-radius: 999px;
  padding: 6px 12px; font-weight: 700; font-size: .8rem; white-space: nowrap; box-shadow: var(--shadow); color: var(--green-deep);
}
.exchange .arrows { font-size: 1.1rem; line-height: 1; color: var(--green-bright); }
@media (max-width: 900px) { .refband { grid-template-columns: 1fr; } }

/* /referral page (launch refresh) */
.ref-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 56px); align-items: center;
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(44px, 7vw, 80px) clamp(20px, 4vw, 48px); position: relative; overflow: hidden;
}
.ref-hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 75%;
  background: radial-gradient(60% 70% at 72% 15%, rgba(67,160,71,.15), transparent 60%),
              radial-gradient(50% 60% at 15% 0%, rgba(46,125,50,.09), transparent 60%);
  pointer-events: none;
}
.ref-hero .copy { position: relative; }
.ref-hero h1 { margin: 18px 0 .35em; }
.ref-hero p.sub { color: var(--body); font-size: 1.15rem; max-width: 48ch; }
.ref-hero .row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }
.months-card {
  position: relative; z-index: 2; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px;
}
.months-card .cap { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.months-card .cap b { color: var(--ink); font-family: var(--display); font-size: 1.05rem; }
.months-card .cap span { font-size: .8rem; color: var(--body); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.month {
  aspect-ratio: 1/1; border-radius: 10px; color: #fff; display: grid; place-items: center;
  font-family: var(--mono); font-size: .72rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  box-shadow: 0 6px 14px -8px rgba(27,94,32,.5);
}
.month.pending { background: var(--wash); color: var(--green-deep); box-shadow: none; border: 1px dashed #cfe6d0; }
.months-card .total { margin-top: 16px; text-align: center; font-size: .9rem; color: var(--body); }
.months-card .total b { color: var(--green-deep); }
.getlink {
  margin-top: 2.4em; padding: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(18,33,26,.03); text-align: center;
}
.getlink h3 { margin-bottom: .5em; }
.getlink p { color: var(--body); margin: 0 auto 1.3em; max-width: 46ch; }
.rules {
  list-style: none; max-width: 56ch; margin: 2em auto 0; padding: 0;
  color: var(--body); font-size: .9rem; text-align: left;
  display: flex; flex-direction: column; gap: 10px;
}
.rules li { position: relative; padding-left: 18px; margin: 0; }
.rules li::before {
  content: ""; position: absolute; left: 0; top: .5em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
}
@media (max-width: 900px) { .ref-hero { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .months { grid-template-columns: repeat(4, 1fr); } }
