/* ==========================================================================
   Next Step Home Buyers — site styles
   Design tokens and values are taken verbatim from the approved scaffold.
   ========================================================================== */

:root {
  --green-deep: #1B3A2F;
  --green-darker: #12291F;
  --green-link: #2C5645;
  --gold: #B98A2E;
  --gold-soft: #F1E4C7;
  --gold-ink: #6B4E12;
  --gold-ink-strong: #3B2C08;
  --gold-ink-mid: #5A4715;
  --gold-ink-soft: #4A3A16;
  --gold-bright: #D9B658;

  --sand: #FAF7F0;
  --white: #FFFFFF;
  --cream: #EFEADC;

  --ink: #23211E;
  --ink-2: #3E3A34;
  --ink-3: #4A453D;
  --ink-4: #5C5850;
  --ink-5: #7A7367;
  --ink-6: #8A8375;
  --rule: #A9A296;

  --line: rgba(27, 58, 47, .14);
  --line-soft: rgba(27, 58, 47, .10);
  --line-mid: rgba(27, 58, 47, .16);
  --line-strong: rgba(27, 58, 47, .28);
  --field-border: rgba(27, 58, 47, .24);

  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Public Sans', Helvetica, Arial, sans-serif;
  --mono: ui-monospace, Menlo, monospace;

  --shell: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(48px, 7vw, 86px);
}

/* --------------------------------------------------------------- base --- */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-link); text-decoration: none; }
a:hover { color: var(--green-deep); }

img { max-width: 100%; display: block; }

summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }

input, select, textarea, button { font-family: inherit; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(185, 138, 46, .45);
  outline-offset: 1px;
}
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(185, 138, 46, .65);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green-deep);
  color: var(--sand);
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
  color: var(--sand);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ------------------------------------------------------------ layout --- */

.page { min-height: 100vh; padding-bottom: 0; }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.shell--narrow { max-width: 860px; }

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.eyebrow {
  font-size: 12.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 12px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  color: var(--green-deep);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.1;
}

/* The gold diamond used as the brand's bullet / accent mark. */
.diamond {
  display: block;
  width: 9px;
  height: 9px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color .16s ease, color .16s ease;
}

.btn--primary {
  background: var(--green-deep);
  color: var(--sand);
}
.btn--primary:hover { background: var(--green-darker); color: #fff; }

.btn--outline {
  background: var(--white);
  color: var(--green-deep);
  border: 1.5px solid var(--line-strong);
}
.btn--outline:hover { background: var(--gold-soft); color: var(--green-deep); }

.btn--ghost {
  background: transparent;
  color: var(--gold-ink-strong);
  border: 1.5px solid rgba(59, 44, 8, .35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .5); color: var(--gold-ink-strong); }

.btn--sm {
  font-size: 15px;
  padding: 13px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(27, 58, 47, .22);
}

.btn--lg {
  font-size: 19px;
  padding: 19px 30px;
  border-radius: 14px;
  min-height: 56px;
}
.btn--lg.btn--primary { box-shadow: 0 6px 20px rgba(27, 58, 47, .24); }

.btn--wide { padding-left: 32px; padding-right: 32px; }
.btn--wide.btn--primary { box-shadow: 0 6px 20px rgba(27, 58, 47, .22); }

/* ------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 240, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand__mark .diamond { width: 13px; height: 13px; }

.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--green-deep);
  letter-spacing: -.01em;
  line-height: 1.15;
}

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
  flex: none;
  white-space: nowrap;
  justify-content: flex-end;
}
.site-nav a { color: var(--ink-2); }
.site-nav a:hover { color: var(--green-deep); }

.header-email {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
  padding-left: clamp(6px, 2vw, 18px);
  border-left: 1px solid var(--line);
}
.header-email__label {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-5);
  font-weight: 600;
}
/* The header row is a fixed 1096px at every desktop width, so this size is
   only safe while the address stays short. info@nextstephb.com fits at the
   scaffold's original 17px; a longer address would push the nav onto a
   second line and needs this reduced again. */
.header-email__value {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--green-deep);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-header .btn { flex: none; }

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

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  padding-top: clamp(34px, 6vw, 72px);
  padding-bottom: clamp(20px, 4vw, 44px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.pill .diamond { width: 8px; height: 8px; }

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--green-deep);
  margin: 20px 0 0;
  text-wrap: pretty;
}

.hero__lede {
  font-size: clamp(18px, 2.1vw, 21px);
  line-height: 1.55;
  color: var(--ink-3);
  margin: 20px 0 0;
  max-width: 33em;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__note {
  font-size: 15px;
  color: var(--ink-5);
  margin: 16px 0 0;
}

/* Swap this block for a real <img> once photography is available. */
.hero__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-mid);
  background: repeating-linear-gradient(135deg, #E6E1D4 0 12px, #DCD6C6 12px 24px);
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: flex-end;
  padding: 16px;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-note {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  background: rgba(250, 247, 240, .92);
  padding: 7px 11px;
  border-radius: 8px;
}

/* -------------------------------------------------------- trust strip --- */

.trust {
  background: var(--green-deep);
  color: var(--cream);
}
.trust__inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 30px;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  font-weight: 500;
}
.trust__dot { color: var(--gold); }

/* -------------------------------------------------------------- steps --- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(18px, 2.5vw, 28px);
  margin-top: clamp(28px, 4vw, 42px);
}

.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 8px 24px rgba(27, 58, 47, .06);
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.step__title {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 18px 0 8px;
}

.step__body {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ------------------------------------------------------------ compare --- */

.band {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.compare__lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 clamp(24px, 3vw, 34px);
  max-width: 38em;
}

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(18px, 2.5vw, 26px);
  align-items: start;
}

.compare__card {
  border-radius: 22px;
  padding: clamp(24px, 3vw, 32px);
}

.compare__card--ours {
  background: var(--green-deep);
  box-shadow: 0 14px 36px rgba(27, 58, 47, .16);
}
.compare__card--theirs {
  background: var(--sand);
  border: 1px solid var(--line-mid);
}

.compare__kicker {
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 8px;
}
.compare__card--ours .compare__kicker { color: var(--gold-bright); }
.compare__card--theirs .compare__kicker { color: var(--ink-6); }

.compare__title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 20px;
}
.compare__card--ours .compare__title { color: var(--white); }
.compare__card--theirs .compare__title { color: var(--ink-2); }

.compare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.compare__list li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.compare__list span:last-child {
  font-size: 17.5px;
  line-height: 1.45;
}

.compare__card--ours .compare__list li .diamond { margin-top: 8px; }
.compare__card--ours .compare__list span:last-child { color: var(--cream); }
.compare__card--ours .compare__list strong { color: var(--white); font-weight: 700; }

.compare__dash {
  display: block;
  width: 9px;
  height: 2px;
  background: var(--rule);
  flex: none;
  margin-top: 12px;
}
.compare__card--theirs .compare__list span:last-child { color: var(--ink-4); }

/* --------------------------------------------------------- situations --- */

.situations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.situation {
  background: var(--white);
  border: 1px solid rgba(27, 58, 47, .13);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.situation__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.situation__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.situation__title {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 5px;
}
.situation__body {
  font-size: 16.5px;
  line-height: 1.5;
  color: var(--ink-4);
  margin: 0;
}

/* -------------------------------------------------------------- about --- */

.about__title {
  margin-bottom: clamp(22px, 3vw, 30px);
  max-width: 22em;
}

.about__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.about__body > p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

.callout {
  background: var(--gold-soft);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.callout .diamond { width: 10px; height: 10px; margin-top: 8px; }
.callout p {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.5;
  color: var(--gold-ink-soft);
}

/* ------------------------------------------------------------ reviews --- */

.reviews {
  padding-bottom: clamp(48px, 7vw, 80px);
}

.reviews__card {
  border: 1px solid var(--line-mid);
  border-radius: 20px;
  padding: clamp(26px, 4vw, 40px);
  background: var(--white);
  text-align: center;
}
.reviews__body {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-4);
  margin: 0 auto;
  max-width: 44em;
}
.reviews__kicker {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink-4);
  margin: 18px auto 0;
  padding-top: 18px;
  max-width: 44em;
  border-top: 1px solid var(--line-soft);
}

/* --------------------------------------------------------------- form --- */

.offer {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
}

.offer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

.offer__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: var(--green-deep);
  margin: 0 0 16px;
  letter-spacing: -.02em;
  line-height: 1.08;
}
.offer__lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 22px;
  max-width: 32em;
}

.offer__points {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.offer__points li {
  display: flex;
  gap: 12px;
  font-size: 17.5px;
  color: var(--ink-2);
  align-items: flex-start;
}
.offer__points .diamond { margin-top: 7px; }

.email-card {
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}
.email-card__label {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--ink-5);
  font-weight: 600;
  letter-spacing: .02em;
}
.email-card__link {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--green-deep);
  display: block;
  line-height: 1.25;
  word-break: break-word;
}

.offer-form {
  background: var(--sand);
  border: 1px solid var(--line-mid);
  border-radius: 22px;
  padding: clamp(22px, 3.5vw, 34px);
  box-shadow: 0 14px 40px rgba(27, 58, 47, .1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field > label {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.field__optional { font-weight: 400; color: var(--ink-5); }

.field input,
.field select,
.field textarea {
  font-size: 18px;
  padding: 15px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--field-border);
  background: var(--white);
  color: var(--ink);
}
.field input,
.field select { min-height: 56px; }
.field textarea { resize: vertical; }

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-submit {
  background: var(--green-deep);
  color: var(--sand);
  font-size: 20px;
  font-weight: 700;
  padding: 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(27, 58, 47, .26);
  min-height: 60px;
  transition: background-color .16s ease;
}
.form-submit:hover { background: var(--green-darker); }
.form-submit[disabled] { opacity: .65; cursor: progress; }

.form-fine {
  font-size: 16px;
  color: var(--ink-4);
  margin: 0;
  text-align: center;
}
.form-fine a { font-weight: 600; color: var(--green-deep); }

.form-consent {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-5);
  margin: 0;
  border-top: 1px solid rgba(27, 58, 47, .12);
  padding-top: 14px;
}

.form-error {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #7A2318;
  background: #F8E4E0;
  border: 1px solid rgba(122, 35, 24, .25);
  border-radius: 12px;
  padding: 14px 16px;
}

/* Netlify honeypot — hidden from people, visible to bots. */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.form-success {
  padding: 22px 4px;
  text-align: center;
}
/* Focus moves here after submit so screen readers land on the confirmation;
   the ring itself would just look like a stray box around the panel. */
.form-success:focus { outline: none; }
.form-success__mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.form-success__mark .diamond { width: 18px; height: 18px; }
.form-success h3 {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--green-deep);
  margin: 0 0 10px;
}
.form-success p {
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 16px;
}
.form-success a { font-weight: 600; }

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- faq --- */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 22px;
}

.faq > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  font-size: 19.5px;
  font-weight: 600;
  color: var(--green-deep);
  font-family: var(--serif);
}
.faq > summary > span:first-child { flex: 1; }

.faq-plus {
  flex: none;
  font-size: 24px;
  color: var(--gold);
  transition: transform .18s ease;
  line-height: 1;
}
.faq[open] .faq-plus { transform: rotate(45deg); }

.faq p {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 18px;
}

/* ----------------------------------------------------------- final cta --- */

.final-cta { background: var(--gold-soft); }
.final-cta__inner {
  padding-top: clamp(40px, 6vw, 64px);
  padding-bottom: clamp(40px, 6vw, 64px);
  text-align: center;
}
.final-cta h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  color: var(--gold-ink-strong);
  margin: 0 0 12px;
  letter-spacing: -.02em;
}
.final-cta p {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--gold-ink-mid);
  margin: 0 auto 26px;
  max-width: 34em;
}
.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

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

.site-footer {
  background: var(--green-darker);
  color: #C6C0B1;
}

.site-footer__inner {
  padding-top: clamp(36px, 5vw, 56px);
  padding-bottom: clamp(28px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 28px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 12px;
}
.site-footer__brand .brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.site-footer__brand .diamond { width: 12px; height: 12px; }
.site-footer__brand span:last-child {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
}

.site-footer p {
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  max-width: 30em;
}

.site-footer__label {
  font-size: 12.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #8E8878;
  font-weight: 700;
  margin: 0 0 12px !important;
}

.site-footer__email {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
  word-break: break-word;
}
.site-footer__email:hover { color: var(--gold-bright); }

.site-footer__bar { border-top: 1px solid rgba(198, 192, 177, .18); }
.site-footer__bar-inner {
  padding-top: 18px;
  padding-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 14.5px;
}
.site-footer__links { display: flex; gap: 22px; }
.site-footer__links a { color: #C6C0B1; }
.site-footer__links a:hover { color: var(--white); }

/* --------------------------------------------------------- mobile bar --- */

.mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(250, 247, 240, .97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(27, 58, 47, .18);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
  box-shadow: 0 -4px 18px rgba(27, 58, 47, .12);
}

.mobile-bar a {
  min-height: 54px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 17px;
}
.mobile-bar__secondary {
  flex: 1;
  background: var(--white);
  border: 1.5px solid var(--line-strong);
  color: var(--green-deep);
}
.mobile-bar__primary {
  flex: 1.2;
  background: var(--green-deep);
  color: var(--sand);
}
.mobile-bar__primary:hover { color: var(--sand); }

.mobile-bar-spacer { height: 78px; }

/* The header holds four things on one row — brand, nav, email, CTA — and
   they stop fitting well before the mobile breakpoint. Each step below drops
   whichever item is least missed, since every one of them is repeated
   elsewhere on the page. */

/* 1. Tighten before anything wraps. */
@media (max-width: 1220px) {
  .site-nav { gap: 16px; font-size: 14.5px; }
  .header-email__value { font-size: 14.5px; }
  .site-header .btn--sm { font-size: 14.5px; padding: 12px 16px; }
}

/* 2. Drop the email — the hero, form, and footer all repeat it. Scoped to
      headers that carry a nav so the standalone pages keep theirs. */
@media (max-width: 999px) {
  .site-header__inner:has(.site-nav) .header-email { display: none; }
}

/* The scaffold showed the sticky bar below an 820px viewport. */
.mobile-bar,
.mobile-bar-spacer { display: none; }

/* 3. Drop the header CTA — the sticky bar now carries it. */
@media (max-width: 819px) {
  .mobile-bar { display: flex; }
  .mobile-bar-spacer { display: block; }
  .site-header .btn { display: none; }
}

/* 4. Phones: brand only, with the sticky bar handling both actions. */
@media (max-width: 620px) {
  .site-nav { display: none; }
  .header-email { display: none; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand__name {
    font-size: 17px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* --------------------------------------------------------- legal pages --- */

.legal {
  max-width: 780px;
}
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 46px);
  font-weight: 700;
  color: var(--green-deep);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin: 0 0 10px;
}
.legal__updated {
  font-size: 15px;
  color: var(--ink-5);
  margin: 0 0 28px;
}
.legal h2 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 700;
  color: var(--green-deep);
  margin: 34px 0 10px;
}
.legal p,
.legal li {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-3);
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* ------------------------------------------------------------ 404 page --- */

.notfound {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
}
.notfound h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 700;
  color: var(--green-deep);
  margin: 8px 0 0;
  letter-spacing: -.02em;
}
.notfound p {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 18px;
  max-width: 34em;
}
