/* Honu landing page
   Design tokens and styles derived from the approved design-canvas prototype.
   Colours, type scale and spacing match the prototype; inline style-hover /
   style-focus attributes from the prototype are expressed here as real
   :hover / :focus-visible rules. */

/* Fonts are self-hosted (latin and latin-ext subsets, SIL OFL 1.1 — licences
   in assets/fonts/) so no visitor request goes to a third-party font CDN. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-italic-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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400-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: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-700-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: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/jetbrains-mono-400-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;
}

:root {
  --bg: #fbfaf7;
  --ink: #13262b;
  --teal: #003b49;        /* primary */
  --green: #2e6b45;       /* accent */
  --green-dark: #1f4a30;
  --gold: #ffc845;
  --muted: #3e4d52;
  --muted-2: #2a3b40;
  --line: #d9dedc;
  --line-2: #c9d2d0;
  --line-3: #b9c3c1;
  --line-input: #5b6b70;
  --line-dark: #3d6b77;
  --error: #9b1c1c;
  --white: #ffffff;
  --grey-bg: #f1efe9;
  --success-bg: #eef4ef;
  --signup-bg: #e8efe9;
  --on-dark: #e6eeef;
  --on-dark-2: #c9d8dc;

  --maxw: 1120px;
  --maxw-narrow: 760px;

  --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }

/* Ensure the `hidden` attribute wins over any element's display rule. */
[hidden] { display: none !important; }

/* Hidden from sight, available to assistive tech (e.g. "opens in a new tab"). */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

img, svg { max-width: 100%; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---- Layout ---- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.container--narrow { max-width: var(--maxw-narrow); }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  transform: translateY(-200%);
  background: var(--teal);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 4px;
  font-weight: 700;
  z-index: 10;
  text-decoration: none;
}
.skip-link:focus {
  transform: none;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ---- Header ---- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand__lockup {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark { flex: none; }
.brand__text { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.brand__name { font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--teal); }
.brand__by { font-size: 16px; color: var(--muted); white-space: nowrap; }
.brand__tagline {
  font-size: 16px;
  color: var(--muted);
  padding-left: 14px;
  border-left: 1px solid var(--line-3);
  white-space: nowrap;
}

.site-nav {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 22px;
  font-size: 17px;
}
.site-nav__link {
  color: var(--ink);
  padding: 10px 2px;
  white-space: nowrap;
}
.site-nav__cta { padding: 10px 18px; }

/* ---- Buttons & links ---- */
.btn {
  font: inherit;
  font-weight: 700;
  border-radius: 4px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  padding: 10px 18px;
}
.btn--primary:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--primary:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.btn--lg { min-height: 56px; padding: 0 34px; font-size: 20px; }
.btn[aria-disabled="true"] { cursor: default; opacity: 0.85; }

.btn--gold {
  background: var(--gold);
  color: var(--teal);
  padding: 14px 26px;
  min-height: 52px;
}
.btn--gold:hover { background: var(--white); color: var(--teal); }
.btn--gold:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

/* ---- Eyebrow / mono labels ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 22px;
}
.eyebrow--gold { color: var(--gold); margin-bottom: 0; }

/* ---- Hero ---- */
.hero__inner { padding: 72px 24px 56px; }
.hero__copy { max-width: 780px; }
.hero__title {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--teal);
  text-wrap: balance;
}
.hero__lede {
  font-size: 21px;
  line-height: 1.55;
  color: var(--muted-2);
  margin-top: 26px;
  max-width: 680px;
  text-wrap: pretty;
}
.hero__form-wrap { margin-top: 36px; max-width: 640px; }
.hero__services-link { margin-top: 22px; font-size: 18px; }

/* ---- Forms ---- */
.signup-form { display: grid; gap: 14px; }
.signup-form--stacked { gap: 22px; }
.field { display: grid; gap: 6px; }
.field__label { font-weight: 700; font-size: 17px; }
.field__optional { font-weight: 400; color: var(--muted); }
.field__row { display: flex; flex-wrap: wrap; gap: 10px; }

.field__input {
  flex: 1 1 280px;
  min-height: 52px;
  font: inherit;
  font-size: 19px;
  padding: 10px 14px;
  border: 2px solid var(--line-input);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
.field__input:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.field__input[aria-invalid="true"] { border-color: var(--error); }

.signup-form--stacked .field__input { width: 100%; }

.field__select {
  min-height: 48px;
  font: inherit;
  font-size: 18px;
  padding: 8px 12px;
  border: 2px solid var(--line-input);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  /* A <select> is as wide as its longest option unless told otherwise, so on a
     phone the hero form pushed the page to 540px and it scrolled sideways
     (WCAG 1.4.10). */
  width: 100%;
  max-width: 100%;
}
.field__select:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.field__hint { font-size: 16px; color: var(--muted); }
.field__error {
  font-size: 17px;
  color: var(--error);
  font-weight: 700;
  display: flex;
  gap: 8px;
}

/* Submit button in the inline hero row */
.hero__form-wrap .field__row .btn { flex: 0 0 auto; min-height: 52px; padding: 0 26px; font-size: 19px; }

/* Honeypot (bot trap) kept out of view and off the a11y tree */
.hp {
  position: absolute;
  left: -5000px;
  overflow: hidden;
}

/* Live region: visually present but empty until updated */
.live-region { font-size: 17px; min-height: 1px; }

/* Confirmation (success) panel */
.confirmation {
  border: 2px solid var(--green);
  background: var(--success-bg);
  padding: 18px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
}
.confirmation--light { background: var(--white); }
.confirmation:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.confirmation__title { font-weight: 700; color: var(--green-dark); }
.confirmation__body { font-size: 17px; margin-top: 4px; }

/* ---- Decay diagram ---- */
.decay {
  margin: 72px 0 0;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.decay__svg { display: block; font-family: var(--sans); }
.decay__caption {
  margin-top: 20px;
  font-size: 17px;
  color: var(--muted-2);
  max-width: 720px;
}

/* ---- Generic sections ---- */
.section { }
.section--bordered { border-top: 1px solid var(--line); }
.section .container,
.section .container--narrow { padding-top: 88px; padding-bottom: 88px; }
.section--grey { background: var(--grey-bg); scroll-margin-top: 16px; }
#principles.section .container { padding-top: 96px; padding-bottom: 96px; }

.section__title {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  color: var(--teal);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.section__title--wide { max-width: 720px; }
.section__title--sm { font-size: clamp(26px, 3.2vw, 32px); }
.section__intro { margin-top: 14px; max-width: 640px; color: var(--muted-2); }

.prose { display: grid; gap: 20px; margin-top: 28px; text-wrap: pretty; }
.footnote {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}

/* ---- How it works (steps) ---- */
.steps {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 2px;
  background: var(--line-2);
  border: 2px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
}
.step {
  background: var(--bg);
  padding: 24px 22px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.step__num { font-family: var(--mono); font-size: 14px; color: var(--green); }
.step__title { font-size: 22px; color: var(--teal); }
.step__body { font-size: 17px; line-height: 1.55; }

/* ---- Principles ---- */
.principles {
  list-style: none;
  padding: 0;
  margin: 44px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 0 56px;
}
.principle {
  border-top: 3px solid var(--teal);
  padding: 26px 0 40px;
  display: grid;
  gap: 10px;
}
.principle__title { font-size: 28px; line-height: 1.2; color: var(--teal); }
.principle__body { color: var(--muted-2); text-wrap: pretty; }

/* ---- What Honu isn't ---- */
.isnt {
  margin: 24px 0 0;
  padding: 0 0 0 24px;
  display: grid;
  gap: 16px;
  text-wrap: pretty;
}

/* ---- Services (dark) ---- */
.services { background: var(--teal); color: var(--white); scroll-margin-top: 16px; }
.services__inner {
  padding: 96px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
}
.services__copy { display: grid; gap: 22px; align-content: start; }
.services__title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.services__body { color: var(--on-dark); text-wrap: pretty; }
.services__aside { display: grid; gap: 24px; align-content: start; }
.services__card {
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 30px;
  display: grid;
  gap: 18px;
}
.services__card-lede { font-size: 26px; line-height: 1.3; font-weight: 700; }
.services__card-note { color: var(--on-dark); }
.services__card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.link-on-dark { color: var(--white); padding: 10px 0; }
.link-on-dark:hover { color: var(--gold); }
.link-on-dark:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.services__quote { margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line-dark); }
.services__quote blockquote { margin: 0; font-family: var(--mono); font-size: 15px; color: var(--on-dark-2); }
.services__quote figcaption { margin-top: 10px; font-size: 16px; color: var(--on-dark); }

/* ---- Signup (bottom) ---- */
.signup { background: var(--signup-bg); scroll-margin-top: 16px; }
.signup .container--narrow { padding-top: 104px; padding-bottom: 104px; }
.signup__title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  color: var(--teal);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.signup__lede { margin-top: 18px; color: var(--muted-2); text-wrap: pretty; }
.signup__form-wrap { margin-top: 36px; }

.reasons { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.reasons__legend { font-weight: 700; font-size: 17px; padding: 0; margin-bottom: 10px; }
.reason {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 18px;
  cursor: pointer;
  min-height: 32px;
}
.reason input {
  width: 22px;
  height: 22px;
  margin: 3px 0 0;
  accent-color: var(--teal);
  flex: none;
}

/* ---- Legal pages (privacy notice) ---- */
.legal__date { margin-top: 12px; font-size: 16px; color: var(--muted); }
.legal h2 {
  margin-top: 48px;
  font-size: clamp(22px, 2.6vw, 26px);
  line-height: 1.3;
  color: var(--teal);
}
.legal h2 + .prose { margin-top: 16px; }
.legal ul { margin: 0; padding-left: 1.25em; display: grid; gap: 8px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line-2); }
.site-footer__inner {
  padding: 40px 24px 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 40px;
  font-size: 16px;
  color: var(--muted);
}
.site-footer__brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-footer__name { font-weight: 700; color: var(--teal); font-size: 20px; }
.site-footer__brand a { padding: 10px 0; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.site-footer__nav a { padding: 10px 0; }
.site-footer__copy { margin: 0; }
