/* Maarjv Safaris | Become an Affiliate */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/dm-sans-latin-wght-normal.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: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("assets/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/dm-sans-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-serif-display-latin-400-normal.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: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/dm-serif-display-latin-ext-400-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --green: #283F12;
  --green-deep: #1C2E0B;
  --green-soft: #3A5520;
  --beige: #D8C5A3;
  --beige-soft: #EFE6D6;
  --olive: #5B5B37;
  --orange: #D38125;
  --orange-deep: #B86C17;
  --terracotta: #913A14;
  --white: #FFFFFF;

  --ink: #1D2414;
  --text: #3E4436;
  --muted: #646a5a;
  --line: #E7E3DA;
  --line-strong: #D6D0C2;
  --surface: #F7F6F2;
  --error: #A3260F;
  --error-bg: #FBEFEB;
  --focus: #913A14;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(29, 36, 20, .06), 0 2px 8px rgba(29, 36, 20, .04);
  --shadow: 0 2px 6px rgba(29, 36, 20, .05), 0 14px 34px rgba(29, 36, 20, .08);
  --shadow-lg: 0 6px 16px rgba(29, 36, 20, .08), 0 28px 60px rgba(29, 36, 20, .14);

  --gutter: clamp(16px, 4.2vw, 40px);
  --section-y: clamp(56px, 7.5vw, 104px);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 400; overflow-wrap: break-word; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.375rem); line-height: 1.03; }
h2 { font-size: clamp(2rem, 1.45rem + 2.2vw, 3.15rem); line-height: 1.08; }
h3 { font-family: var(--sans); font-weight: 650; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--beige); color: var(--ink); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  background: var(--green); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); outline-color: var(--orange); }
main:focus { outline: none; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-tint { background: var(--surface); }
.section:focus { outline: none; }

.eyebrow {
  font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--terracotta); margin: 0 0 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--orange); border-radius: 2px; }
.eyebrow-light { color: var(--beige); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head h2 + p { margin-top: 16px; }
.section-head-split { max-width: none; display: grid; gap: 16px 48px; align-items: end; }
.section-head-split > p { color: var(--muted); max-width: 440px; }
@media (min-width: 900px) { .section-head-split { grid-template-columns: 1.2fr 1fr; } .section-head-split > p { justify-self: end; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: var(--white); --btn-border: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 24px;
  border: 1.5px solid var(--btn-border); border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { color: var(--btn-fg); box-shadow: var(--shadow); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .btn-arrow { transition: transform .25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary:hover { --btn-bg: var(--green-deep); }
.btn-sm { min-height: 44px; padding: 9px 18px; font-size: .9375rem; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--green); --btn-border: var(--line-strong); }
.btn-ghost:hover { --btn-bg: var(--white); --btn-border: var(--green); --btn-fg: var(--green); }
.btn-light { --btn-bg: var(--white); --btn-fg: var(--green); --btn-border: var(--white); }
.btn-light:hover { --btn-bg: var(--beige-soft); --btn-border: var(--beige-soft); }
.btn-light:focus-visible, .btn-orange:focus-visible { outline-color: var(--beige); }
.btn-orange { --btn-bg: var(--orange); --btn-fg: #1F1408; --btn-border: var(--orange); }
.btn-orange:hover { --btn-bg: #E39136; --btn-border: #E39136; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479.98px) {
  .btn { padding-inline: 18px; font-size: .96875rem; }
  .btn-row .btn { width: 100%; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
@supports (backdrop-filter: blur(10px)) { .site-header { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); } }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(29, 36, 20, .05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 6px; }
.brand img { height: 46px; width: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  color: var(--text); font-size: .9375rem; font-weight: 550; text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-list a:hover { color: var(--green); background: var(--surface); }
.site-nav { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; min-width: 44px; padding: 8px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--green);
  font-weight: 650; font-size: .9375rem; cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 18px; height: 12px; display: inline-block; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 5px; }
.nav-toggle-bars span:nth-child(3) { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1023.98px) {
  :root { --header-h: 68px; }
  .brand img { height: 40px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 12px;
    padding: 12px var(--gutter) 24px; background: var(--white);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(29, 36, 20, .08);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav:not(.is-open) { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: flex; border-radius: var(--radius-sm); padding: 12px 8px; font-size: 1.0625rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { width: 100%; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(28px, 4.5vw, 64px) clamp(16px, 2.5vw, 32px); }
.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); } }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy h1 .accent { color: var(--green); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; max-width: 34em; margin-bottom: 30px; }
.hero-points { display: grid; gap: 10px; margin-top: 30px; padding: 26px 0 0; list-style: none; border-top: 1px solid var(--line); font-size: .96875rem; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points svg { width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--orange); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hero-media { position: relative; }
.hero-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; background: var(--beige-soft); }
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-tag {
  position: absolute; left: clamp(14px, 3vw, 24px); bottom: clamp(14px, 3vw, 24px);
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .94); color: var(--green); font-weight: 650; font-size: .875rem; box-shadow: var(--shadow-sm);
}
.hero-tag .sep { color: var(--orange); margin-inline: 2px; }
.hero-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(211, 129, 37, .2); }
@media (max-width: 959.98px) { .hero-figure { aspect-ratio: 16 / 11; } }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: clamp(14px, 1.6vw, 20px); }
@media (min-width: 600px) { .card-grid-2, .card-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  position: relative; padding: clamp(22px, 2.4vw, 30px); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 1rem; }
.card-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--beige-soft); color: var(--green);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card-benefit .card-icon { background: var(--green); color: var(--beige); }

/* Who it is for */
.who-grid { display: grid; gap: clamp(32px, 4vw, 56px); }
@media (min-width: 1000px) { .who-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); align-items: start; } .who-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.who-intro h2 { margin-bottom: 18px; }
.who-intro .note { font-size: .96875rem; color: var(--muted); padding-left: 14px; border-left: 2px solid var(--orange); }
.who-figure { margin: 28px 0 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--beige-soft); }
.who-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
@media (min-width: 1000px) { .who-figure { aspect-ratio: 5 / 4; } }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.step {
  position: relative; padding: 28px 26px 30px; border-radius: var(--radius); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.step-num {
  display: block; font-family: var(--serif); font-size: 3rem; line-height: 1; color: var(--orange); margin-bottom: 20px;
}
.step h3 { margin-bottom: 8px; font-size: 1.1875rem; }
.step p { color: var(--muted); font-size: 1rem; }
@media (min-width: 1040px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 52px; right: -21px; width: 22px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--beige) 0 6px, transparent 6px 10px); z-index: 1;
  }
}

/* ---------- Feature panel (Curate Your Tour) ---------- */
.feature-panel {
  position: relative; display: grid; gap: clamp(32px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg);
  background: var(--green); color: rgba(255, 255, 255, .86); overflow: hidden; isolation: isolate;
}
.feature-panel::before {
  content: ""; position: absolute; inset: auto -12% -40% auto; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(211, 129, 37, .22), transparent); z-index: -1;
}
@media (min-width: 1000px) { .feature-panel { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); } }
.feature-panel h2 { color: var(--white); margin-bottom: 18px; }
.feature-panel a:not(.btn) { color: var(--white); }
.feature-panel :focus-visible { outline-color: var(--beige); }
.feature-sub { font-weight: 650; color: var(--white); margin-bottom: 12px; }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px !important; }
.chip-list li {
  padding: 7px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 550;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(216, 197, 163, .38); color: var(--beige-soft);
}
.feature-copy .btn { margin-top: 10px; }
.browser {
  margin: 0; border-radius: 16px; overflow: hidden; background: var(--white);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .28), 0 0 0 1px rgba(255, 255, 255, .08);
}
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 11px 14px; background: #F1EFEA; border-bottom: 1px solid #E2DED5; }
.browser-dots { display: inline-flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: #D3CEC3; }
.browser-url {
  flex: 1; min-width: 0; padding: 5px 12px; border-radius: 999px; background: var(--white); color: var(--muted);
  font-size: .8125rem; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser img { width: 100%; height: auto; }

/* ---------- Stories ---------- */
.stories-grid { display: grid; gap: 18px; }
.stories-feature { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; width: 100%; background: var(--beige-soft); }
@media (min-width: 600px) { .stories-feature { aspect-ratio: 16 / 9; } }
@media (min-width: 900px) { .stories-feature { aspect-ratio: 12 / 5; } }
.stories-feature img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 70%; transition: transform .9s var(--ease); }
.stories-feature:hover img { transform: scale(1.035); }
.stories-feature figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 3vw, 32px);
  font-family: var(--serif); font-size: clamp(1.25rem, 1rem + 1.1vw, 2rem); line-height: 1.15; color: var(--white);
  background: linear-gradient(transparent, rgba(20, 14, 8, .62));
}
.story-list { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story-featured { grid-column: span 2; } }
@media (min-width: 820px) { .story-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .story-featured { grid-column: span 3; } }
@media (min-width: 1080px) { .story-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .story-featured { grid-column: span 2; grid-row: span 2; } }
.story {
  position: relative; padding: 20px 20px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.story::before { content: ""; display: block; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); margin-bottom: 14px; transition: width .3s var(--ease); }
.story:nth-child(3n+2)::before { background: var(--green); }
.story:nth-child(3n)::before { background: var(--terracotta); }
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.story:hover::before { width: 44px; }
.story h3 { font-family: var(--serif); font-weight: 400; font-size: 1.375rem; line-height: 1.15; margin-bottom: 6px; }
.story p { color: var(--muted); font-size: .9375rem; line-height: 1.5; }
.story-featured { display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(24px, 3vw, 36px); background: var(--green); border-color: var(--green); color: rgba(255, 255, 255, .84); min-height: 200px; }
.story-featured::before { background: var(--orange) !important; }
.story-featured h3 { color: var(--white); font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); margin-bottom: 10px; }
.story-featured p { color: rgba(255, 255, 255, .84); font-size: 1.0625rem; max-width: 30em; }
.story-featured:hover { border-color: var(--green); }
.fine-print { margin-top: 22px; font-size: .875rem; color: var(--muted); }

/* ---------- Standards ---------- */
.standards-grid { display: grid; gap: clamp(32px, 4vw, 64px); align-items: start; }
@media (min-width: 1000px) { .standards-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } .standards-figure { position: sticky; top: calc(var(--header-h) + 24px); } }
.standards-figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--beige-soft); }
.standards-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.standards-figure:hover img { transform: scale(1.03); }
@media (max-width: 999.98px) { .standards-figure { aspect-ratio: 16 / 9; } }
.standards-copy h2 { margin-bottom: 18px; }
.standards-lists { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 720px) { .standards-lists { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.standards-block { padding: clamp(22px, 2.4vw, 30px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.standards-block h3 { margin-bottom: 16px; }
.standards-block-avoid { background: #FBF7F1; }
.tick-list { display: grid; gap: 12px; font-size: 1rem; line-height: 1.5; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick-list svg {
  width: 22px; height: 22px; padding: 4px; border-radius: 50%; margin-top: 1px;
  fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: var(--green);
}
.tick-list-avoid svg { background: var(--terracotta); }
.tick-list strong { color: var(--ink); font-weight: 650; }

/* ---------- Terms ---------- */
.terms-box {
  display: grid; gap: 18px 24px; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong); background: var(--white); box-shadow: var(--shadow-sm);
}
@media (min-width: 720px) { .terms-box { grid-template-columns: auto minmax(0, 1fr); } }
.terms-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--green); color: var(--beige); }
.terms-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.terms-body h2 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: 12px; }
.terms-body p { max-width: 62em; }
.terms-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-size: .96875rem; color: var(--muted); }
.terms-pill { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: var(--beige-soft); color: var(--green); font-weight: 650; font-size: .875rem; }

/* ---------- Application ---------- */
.apply-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 1000px) { .apply-grid { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); } .apply-intro { position: sticky; top: calc(var(--header-h) + 24px); } }
.apply-intro h2 { margin-bottom: 16px; }
.apply-intro > p:not(.eyebrow):not(.apply-email) { font-size: 1.125rem; }
.apply-aside { margin-top: 26px; padding: 22px 22px 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.apply-aside h3 { margin-bottom: 12px; font-size: 1rem; }
.apply-aside-plain { background: transparent; }
.apply-aside-plain p { font-size: .96875rem; color: var(--muted); }
.mini-steps { display: grid; gap: 10px; font-size: .96875rem; }
.mini-steps li { display: flex; gap: 12px; align-items: flex-start; }
.mini-steps span {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--beige-soft); color: var(--green); font-weight: 700; font-size: .8125rem; margin-top: 1px;
}
.apply-email { margin-top: 22px; font-size: .96875rem; }
.apply-email a { font-weight: 650; }

.form-card {
  padding: clamp(20px, 3.6vw, 44px); border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.form-noscript { padding: 16px; border-radius: var(--radius-sm); background: var(--beige-soft); margin-bottom: 20px; }
.form-group { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.form-group legend {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; margin-bottom: 20px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green);
}
.form-group legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.field-row { display: grid; gap: 0 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .96875rem; color: var(--ink); line-height: 1.4; }
.req { color: var(--terracotta); }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
.field input[type="text"], .field input[type="url"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  display: block; width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white); color: var(--ink);
  font-size: 1rem; line-height: 1.4; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 132px; resize: vertical; }
.field input::placeholder { color: #9a9d90; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #BDB6A6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(40, 63, 18, .14); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); pointer-events: none;
}
.field select { padding-right: 42px; cursor: pointer; text-overflow: ellipsis; }
.field-hint { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0 0; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.counter { flex: none; font-variant-numeric: tabular-nums; }
.counter.is-near { color: var(--terracotta); }
.field-error { display: flex; gap: 8px; align-items: flex-start; margin: 7px 0 0; font-size: .875rem; font-weight: 600; color: var(--error); line-height: 1.45; }
.field-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: var(--white); font-size: .75rem; font-weight: 800; margin-top: 1px; }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFFDFC; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(163, 38, 15, .14); border-color: var(--error); }

.field-check { margin-bottom: 4px; }
/* The whole label is the touch target (at least 44px tall). */
.field .check-label {
  display: flex; gap: 12px; align-items: flex-start; min-height: 44px; margin: 0; padding: 10px 12px 10px 10px;
  border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 500; cursor: pointer; transition: border-color .2s var(--ease);
}
.field .check-label:hover { border-color: var(--line-strong); }
.check-label input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--green); cursor: pointer; }
.check-label:has(input[aria-invalid="true"]) { border-color: var(--error); background: var(--error-bg); }
.field-error-check { margin: 6px 0 0; }
.privacy-link { margin: 10px 0 0; font-size: .9375rem; }

.field-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-summary { margin-bottom: 26px; padding: 18px 20px; border-radius: 12px; background: var(--error-bg); border: 1px solid #EBC3B8; color: var(--error); }
.form-summary:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.form-summary-title { font-weight: 700; margin-bottom: 8px; }
.form-summary ul { margin: 0; padding-left: 20px; }
.form-summary li + li { margin-top: 4px; }
.form-summary a { color: var(--error); font-weight: 600; }
.form-error { margin: 0 0 18px; padding: 14px 16px; border-radius: 12px; background: var(--error-bg); border: 1px solid #EBC3B8; color: var(--error); font-weight: 600; font-size: .96875rem; }
.form-error a { color: var(--error); }
.turnstile-slot { margin-bottom: 20px; min-height: 65px; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-required-note { margin: 0; font-size: .875rem; color: var(--muted); }
.form-required-note span { color: var(--terracotta); }
.btn-submit { position: relative; min-width: 260px; }
.btn-submit .spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: var(--white); animation: spin .8s linear infinite;
}
.btn-submit.is-loading { cursor: progress; opacity: .92; }
.btn-submit.is-loading .btn-arrow { display: none; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit[disabled] { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 479.98px) { .btn-submit, .form-actions .btn { width: 100%; min-width: 0; } }

.form-success { padding: clamp(8px, 2vw, 16px) 0; }
.form-success h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); line-height: 1.1; margin-bottom: 16px; }
.form-success h3:focus { outline: none; }
.form-success h3:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.app-id {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; padding: 20px 22px;
  border-radius: var(--radius); background: var(--green); color: var(--white);
}
.app-id-label { width: 100%; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--beige); }
.app-id-value { font-family: var(--serif); font-size: clamp(1.875rem, 1.5rem + 1.4vw, 2.5rem); line-height: 1; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; margin-left: auto;
  border-radius: 999px; border: 1.5px solid rgba(216, 197, 163, .5); background: transparent; color: var(--white);
  font-weight: 600; font-size: .9375rem; cursor: pointer; transition: background-color .2s var(--ease);
}
.btn-copy:hover { background: rgba(255, 255, 255, .1); }
.btn-copy:focus-visible { outline-color: var(--beige); }
.btn-copy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app-id-note { margin-top: 14px; font-size: .9375rem; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px clamp(32px, 5vw, 72px); }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: start; } .faq-head { position: sticky; top: calc(var(--header-h) + 24px); } }
.faq-head p { color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; min-height: 64px;
  padding: 18px 4px; border: 0; background: none; text-align: left; cursor: pointer;
  font-family: var(--sans); font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem); font-weight: 600; color: var(--ink); line-height: 1.4;
}
.faq-q:hover { color: var(--green); }
.faq-icon {
  flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); color: var(--green); transition: transform .3s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease);
}
.faq-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--green); border-color: var(--green); color: var(--white); }
.faq-a { padding: 0 56px 22px 4px; color: var(--text); }
.faq-a p { max-width: 62ch; }
@media (max-width: 599.98px) { .faq-a { padding-right: 4px; } }

/* ---------- CTA ---------- */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(80px, 11vw, 150px); background: var(--green-deep); color: rgba(255, 255, 255, .88); text-align: center; }
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 32, 8, .55), rgba(20, 32, 8, .72)); }
.cta-inner { max-width: 820px; }
.cta h2 { color: var(--white); font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); margin-bottom: 18px; }
.cta p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); margin: 0 auto 32px; max-width: 36em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green); color: rgba(255, 255, 255, .78); padding-top: clamp(48px, 6vw, 72px); font-size: .96875rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--beige); text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--beige); }
.footer-grid { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 26em; }
.footer-email { font-weight: 600; }
.footer-col h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--beige); margin-bottom: 14px; }
.footer-col li a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 4px; }
.footer-col a[aria-current="page"] { color: var(--beige); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px; border-top: 1px solid rgba(216, 197, 163, .22); font-size: .875rem; color: rgba(255, 255, 255, .62); }
.footer-base p { margin: 0; }

/* ---------- Reveal (one time, JS adds .reveal-ready) ---------- */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .card:hover, .story:hover, .btn:hover { transform: none; }
  .btn:hover .btn-arrow { transform: none; }
  .stories-feature:hover img, .standards-figure:hover img { transform: none; }
  .btn-submit .spinner { animation: none; border-top-color: rgba(255, 255, 255, .35); border-right-color: var(--white); }
}

/* ---------- Forced colours ---------- */
@media (forced-colors: active) {
  .btn, .card, .story, .terms-box, .form-card, .field input, .field select, .field textarea { border: 1px solid CanvasText; }
  .eyebrow::before, .story::before { background: CanvasText; }
}
