/* ==========================================================================
   iOwn30Days - site stylesheet
   Hand-written, framework-free. Spacing follows an 8px rhythm.
   ========================================================================== */

:root {
  /* Brand */
  --forest: #1F4D3A;
  --forest-700: #193F30;
  --forest-800: #143427;
  --forest-900: #0F281E;
  --forest-50: #EEF3EF;
  --forest-100: #DCE7E0;
  --coral: #E8735A;
  --coral-600: #DC654B;
  --coral-ink: #B34C35;
  --coral-light: #F4A48F;
  --coral-soft: #FCECE7;
  --paper: #F8F6F1;
  --paper-2: #F0ECE3;
  --surface: #FFFFFF;
  --ink: #18211C;
  --ink-2: #3A4640;
  --ink-3: #5A6660;
  --line: rgba(24, 33, 28, .1);
  --line-strong: rgba(24, 33, 28, .2);

  /* Type */
  --serif: "DM Serif Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --step--1: clamp(.875rem, .85rem + .12vw, .9375rem);
  --step-0: clamp(1rem, .97rem + .16vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.07rem + .28vw, 1.25rem);
  --step-2: clamp(1.375rem, 1.26rem + .55vw, 1.625rem);
  --step-3: clamp(1.625rem, 1.43rem + .95vw, 2.125rem);
  --step-4: clamp(2rem, 1.66rem + 1.7vw, 3rem);
  --step-5: clamp(2.375rem, 1.72rem + 3.2vw, 4.375rem);

  /* Space (8px rhythm) */
  --s1: 8px;  --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s7: 56px; --s8: 64px; --s10: 80px; --s12: 96px;
  --section: clamp(64px, 4.5vw + 44px, 128px);

  /* Shape and depth */
  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 40, 30, .06), 0 2px 8px rgba(15, 40, 30, .05);
  --shadow: 0 2px 6px rgba(15, 40, 30, .05), 0 16px 40px -12px rgba(15, 40, 30, .16);
  --shadow-lg: 0 4px 12px rgba(15, 40, 30, .06), 0 32px 64px -20px rgba(15, 40, 30, .28);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
main { flex: 1 0 auto; display: block; }
main:focus { outline: none; }

h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--coral-soft); color: var(--ink); }

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--forest-900); }

:focus-visible {
  outline: 3px solid var(--coral-ink);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.signup-band :focus-visible,
.site-footer :focus-visible,
.cta-strip :focus-visible { outline-color: var(--coral-light); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--forest);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: top .2s var(--ease);
}
.skip-link:focus, .skip-link:focus-visible { top: 12px; color: #fff; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Typography ---------- */
h1, h2, .serif {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--ink);
}
h1 { font-size: var(--step-5); line-height: 1.04; }
h2 { font-size: var(--step-4); line-height: 1.08; }
h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--coral-ink);
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.eyebrow--light { color: var(--coral-light); }

.lead { font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--forest);
  text-decoration: none;
}
.text-link .icon { transition: transform .25s var(--ease); }
.text-link:hover { color: var(--forest-900); }
.text-link:hover .icon { transform: translateX(4px); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }
.container--text { max-width: calc(720px + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--white { background: var(--surface); }
.section--tight-top { padding-top: var(--s4); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  margin-bottom: var(--s6);
}
.section-head h2 { margin-top: var(--s2); max-width: 20ch; }
.section-head > p { max-width: 46ch; color: var(--ink-2); }

.center-cta { display: flex; justify-content: center; margin-top: var(--s6); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--forest);
  --btn-fg: #fff;
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 1rem/1.2 var(--sans);
  letter-spacing: .005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: 0 12px 24px -12px rgba(15, 40, 30, .55); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.btn--primary:hover { --btn-bg: var(--forest-700); }
.btn--accent { --btn-bg: var(--coral); --btn-fg: var(--ink); }
.btn--accent:hover { --btn-bg: var(--coral-600); }
.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .08);
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .18); --btn-border: #fff; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--forest); --btn-border: var(--line-strong); }
.btn--outline:hover { --btn-bg: var(--forest); --btn-fg: #fff; --btn-border: var(--forest); }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: .9375rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 241, .8);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(248, 246, 241, .9);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(15, 40, 30, .45);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
}
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px -4px rgba(31, 77, 58, .5); }
.brand-name { font-family: var(--serif); font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; }
.brand-name em { font-style: normal; color: var(--coral-ink); }

.site-nav { display: flex; align-items: center; gap: var(--s3); }
.site-nav ul { display: flex; align-items: center; gap: 4px; }
.site-nav ul a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav ul a:hover { color: var(--ink); background: rgba(31, 77, 58, .07); }
.site-nav ul a[aria-current="page"],
.site-nav ul a.is-section { color: var(--forest); background: rgba(31, 77, 58, .1); font-weight: 600; }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.nav-toggle-bars { top: 50%; margin-top: -1px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); background: var(--ink); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: rotate(-45deg); background: var(--ink); }

@media (max-width: 899px) {
  .header-inner { flex-wrap: wrap; }
  .site-nav { width: 100%; flex-wrap: wrap; padding-bottom: var(--s2); }
  .site-nav ul { flex-wrap: wrap; }

  .js .header-inner { flex-wrap: nowrap; }
  .js .nav-toggle { display: inline-block; }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s2);
    padding: var(--s2) var(--gutter) var(--s3);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 40, 30, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .js .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .js .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .site-nav ul a { display: block; padding: 12px 16px; font-size: 1.0625rem; border-radius: var(--r-sm); }
  .js .site-nav .btn { width: 100%; min-height: 48px; }
}

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(600px, 90vh, 860px);
  color: #fff;
  overflow: hidden;
  background: var(--forest-900);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 34, 25, .92) 0%, rgba(12, 34, 25, .78) 34%, rgba(12, 34, 25, .34) 66%, rgba(12, 34, 25, .12) 100%),
    linear-gradient(0deg, rgba(12, 34, 25, .75) 0%, rgba(12, 34, 25, 0) 42%);
}
.hero-inner { padding-block: clamp(96px, 14vh, 168px) clamp(144px, 18vh, 200px); }
.hero-content { max-width: 680px; }
.hero h1 {
  margin: var(--s3) 0;
  color: #fff;
  font-size: clamp(2.375rem, 1.55rem + 3.7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--coral-light); }
.hero-lead { max-width: 54ch; font-size: var(--step-1); line-height: 1.6; color: rgba(255, 255, 255, .9); }
.hero-clarify {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 56ch;
  margin-top: var(--s3);
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .9375rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, .92);
}
.hero-clarify .icon { margin-top: 2px; color: var(--coral-light); }
.hero-clarify strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-media img { animation: settle 2.4s var(--ease) both; }
.hero-content > * { animation: rise .9s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4) { animation-delay: .24s; }
.hero-content > :nth-child(5) { animation-delay: .32s; }

@media (max-width: 719px) {
  .hero { min-height: 0; }
  .hero::before {
    background: linear-gradient(180deg, rgba(12, 34, 25, .62) 0%, rgba(12, 34, 25, .8) 45%, rgba(12, 34, 25, .94) 100%);
  }
  .hero-inner { padding-block: 72px 120px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ---------- Plan strip (overlaps the hero) ---------- */
.plan { position: relative; z-index: 2; margin-top: -96px; }
.plan-card {
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: var(--s3);
  margin-bottom: var(--s3);
  border-bottom: 1px solid var(--line);
}
.plan-heading { font-size: var(--step-2); line-height: 1.2; }
.plan-head p { color: var(--ink-3); font-size: .9375rem; }
.plan-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.plan-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 20px;
  border-radius: var(--r);
  color: var(--ink);
  text-decoration: none;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.plan-step:hover { background: var(--forest-50); color: var(--ink); transform: translateY(-2px); }
.plan-num { font-family: var(--serif); font-size: 2.25rem; line-height: 1; color: var(--forest); }
.plan-week { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); margin-top: 8px; }
.plan-title { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.plan-text { font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.plan-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .875rem; font-weight: 600; color: var(--forest); }
.plan-more .icon { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.plan-step:hover .plan-more .icon { transform: translateX(4px); }

@media (max-width: 999px) { .plan-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559px) {
  .plan { margin-top: -64px; }
  .plan-steps { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .plan-step { padding: 16px 12px; }
}

/* ---------- Why 30 days ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.why-copy h2 { margin: var(--s2) 0 var(--s3); max-width: 15ch; text-wrap: balance; }
.why-copy p + p { margin-top: var(--s2); }
.why-copy p:not(.lead):not(.eyebrow) { color: var(--ink-2); }
.why-copy .text-link { margin-top: var(--s3); }
.why-cards { display: grid; gap: var(--s2); }
.why-card {
  padding: var(--s4);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.why-card h3 { margin-bottom: var(--s2); font-size: 1.125rem; }
.why-card--isnt { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-strong); }

.ticks, .crosses { display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 34px; line-height: 1.5; color: var(--ink-2); }
.ticks li::before, .crosses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .05em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}
.ticks li::before {
  background-color: var(--forest-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D3A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.crosses li::before {
  background-color: var(--coral-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B34C35' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

@media (max-width: 899px) { .why-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Guide cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4) var(--s3); }
@media (max-width: 999px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .card-grid { grid-template-columns: minmax(0, 1fr); } }

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--forest-100); }
.guide-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.guide-card:hover .guide-card-media img { transform: scale(1.045); }
.guide-card-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: var(--s3); }
.guide-card-kicker { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }
.guide-card-title { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.18; letter-spacing: -.01em; }
.guide-card-title a { color: var(--ink); text-decoration: none; }
.guide-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.guide-card-title a:focus-visible { outline: none; }
.guide-card-title a:focus-visible::after { outline: 3px solid var(--coral-ink); outline-offset: -3px; }
.guide-card:hover .guide-card-title a { color: var(--forest); }
.guide-card-text { color: var(--ink-2); font-size: .975rem; line-height: 1.55; }
.guide-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .875rem;
  color: var(--ink-3);
}
.guide-card-meta .icon { width: 16px; height: 16px; }
.guide-card-go { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--forest); }
.guide-card-go .icon { transition: transform .25s var(--ease); }
.guide-card:hover .guide-card-go .icon { transform: translateX(4px); }

.card-grid--compact .guide-card-title { font-size: 1.3125rem; }
@media (min-width: 1000px) {
  .card-grid--compact { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .card-grid--compact > * { grid-column: span 2; }
  .card-grid--compact > :nth-child(4):nth-last-child(2),
  .card-grid--compact > :nth-child(5):last-child { grid-column: span 3; }
  .card-grid--compact > :nth-child(n+4) .guide-card-media { aspect-ratio: 16 / 8; }
}
@media (min-width: 640px) and (max-width: 999px) {
  .card-grid--compact > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .card-grid--compact > :last-child:nth-child(odd) .guide-card-media { aspect-ratio: 16 / 7; }
}
.card-grid--compact .guide-card-body { padding: 20px; }

/* ---------- Editorial standards ---------- */
.standards {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.standards-media { position: relative; }
.standards-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.standards-media::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -16px;
  bottom: -16px;
  width: 60%;
  height: 60%;
  border-radius: var(--r-lg);
  background: var(--coral-soft);
}
.standards-copy h2 { margin: var(--s2) 0 var(--s2); }
.standards-copy .lead { max-width: 52ch; }
.standards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4) var(--s3); margin-top: var(--s5); }
.standard h3 { margin: 16px 0 8px; font-size: 1.0625rem; }
.standard p { color: var(--ink-2); font-size: .9688rem; line-height: 1.6; }
.standard-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--forest);
  color: #fff;
}
.standard-icon .icon { width: 22px; height: 22px; }

@media (max-width: 899px) {
  .standards { grid-template-columns: minmax(0, 1fr); }
  .standards-media { max-width: 520px; }
  .standards-media img { aspect-ratio: 16 / 11; }
  .standards-media::after { right: -8px; bottom: -8px; }
}
@media (max-width: 559px) { .standards-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Sign-up band ---------- */
.signup-band {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 5vw, 64px);
  border-radius: var(--r-lg);
  background: var(--forest);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.signup-band::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(232, 115, 90, .28), rgba(232, 115, 90, 0));
  pointer-events: none;
}
.signup-band > * { position: relative; }
.signup-band h2 { margin: var(--s2) 0; color: #fff; font-size: var(--step-4); text-wrap: balance; }
.signup-band-copy > p:not(.eyebrow) { color: rgba(255, 255, 255, .86); max-width: 44ch; }
.signup-band .ticks { margin-top: var(--s3); }
.signup-band .ticks li { color: rgba(255, 255, 255, .9); }
.signup-band .ticks li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4A48F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
@media (max-width: 899px) { .signup-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2) var(--s2); }
.field { display: grid; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
@media (max-width: 559px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.field label { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.field-optional { margin-left: 6px; font-size: .8125rem; font-weight: 500; color: var(--ink-3); }
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(24, 33, 28, .35); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31, 77, 58, .16); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }

.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; }
.check input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--forest);
  cursor: pointer;
}
.check label { font-size: .875rem; line-height: 1.6; color: var(--ink-2); cursor: pointer; }
.check a { font-weight: 600; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-note { font-size: .8125rem; color: var(--ink-3); }

.form-status {
  padding: 14px 16px 14px 48px;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.5;
  background-position: 16px 50%;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}
.form-status:empty { display: none; }
.form-status.is-success {
  background-color: var(--forest-50);
  border: 1px solid rgba(31, 77, 58, .3);
  color: var(--forest-800);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F4D3A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.08V12a10 10 0 1 1-5.93-9.14'/%3E%3Cpolyline points='22 4 12 14.01 9 11.01'/%3E%3C/svg%3E");
}
.form-status.is-error {
  background-color: #FDF0EC;
  border: 1px solid rgba(179, 76, 53, .35);
  color: #8E3624;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B34C35' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
}

/* Forms on the dark sign-up band */
.form--dark .field label { color: #fff; }
.form--dark .field-optional { color: rgba(255, 255, 255, .72); }
.form--dark .field input { border-color: transparent; }
.form--dark .field input:focus { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(232, 115, 90, .35); }
.form--dark .check input { accent-color: var(--coral); }
.form--dark .check label { color: rgba(255, 255, 255, .86); }
.form--dark .check a { color: #fff; text-decoration-color: var(--coral-light); }
.form--dark .check a:hover { color: var(--coral-light); }
.form--dark .form-note { color: rgba(255, 255, 255, .72); }

/* Honeypot: present for bots, invisible and unreachable for people */
.hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-card {
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card-title { font-size: var(--step-3); line-height: 1.15; margin-bottom: 8px; }
.form-card-intro { color: var(--ink-2); margin-bottom: var(--s4); }

.notice {
  margin-bottom: var(--s3);
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: .9375rem;
  line-height: 1.55;
}
.notice--error { background: #FDF0EC; border: 1px solid rgba(179, 76, 53, .35); color: #8E3624; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(56px, 7vw, 104px) clamp(40px, 5vw, 72px);
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(232, 115, 90, .1), rgba(232, 115, 90, 0) 70%),
    radial-gradient(700px 360px at 0% 100%, rgba(31, 77, 58, .08), rgba(31, 77, 58, 0) 70%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: var(--s2); max-width: 20ch; text-wrap: balance; font-size: var(--step-5); }
.page-hero .lead { margin-top: var(--s3); max-width: 60ch; }
.page-hero--legal h1 { font-size: var(--step-4); }
.page-hero-meta { margin-top: var(--s2); font-size: .9375rem; color: var(--ink-3); }

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 899px) { .hero-split { grid-template-columns: minmax(0, 1fr); } }

.stat-row { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.stat {
  min-width: 150px;
  padding: 16px 20px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1.1; color: var(--forest); }
.stat span { font-size: .875rem; color: var(--ink-3); }

/* ---------- Two-column content layouts ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 959px) { .split { grid-template-columns: minmax(0, 1fr); } }

.aside-stack { display: grid; gap: var(--s3); }
.aside-media img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.info-card {
  padding: var(--s4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.info-card h2 { font-family: var(--sans); font-weight: 700; font-size: 1.125rem; letter-spacing: 0; line-height: 1.3; margin-bottom: var(--s2); }
.info-card p { color: var(--ink-2); font-size: .9688rem; }
.info-card p + p { margin-top: 12px; }
.info-card--muted { background: transparent; border-style: dashed; border-color: var(--line-strong); }
.info-card--forest { background: var(--forest); border-color: var(--forest); color: #fff; }
.info-card--forest h2, .info-card--forest p { color: #fff; }
.info-card--forest a { color: #fff; text-decoration-color: var(--coral-light); }
.mail-link { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
}
.about-grid + .about-grid { margin-top: var(--section); }
.about-label { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.about-label .eyebrow { margin-bottom: 8px; }
.about-body h2 { font-size: var(--step-3); line-height: 1.15; margin-bottom: var(--s3); max-width: 24ch; }
.about-body > p { color: var(--ink-2); max-width: 64ch; }
.about-body > p + p { margin-top: var(--s2); }
@media (max-width: 859px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .about-label { position: static; }
}

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); }
@media (max-width: 639px) { .mini-grid { grid-template-columns: minmax(0, 1fr); } }
.mini-card {
  padding: var(--s3);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.mini-card h3 { font-size: 1.0625rem; margin: 12px 0 6px; }
.mini-card p { font-size: .9688rem; color: var(--ink-2); line-height: 1.6; }
.mini-card .standard-icon { width: 40px; height: 40px; }

.topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--s4); }
@media (max-width: 639px) { .topic-list { grid-template-columns: minmax(0, 1fr); } }
.topic-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.topic-list a:hover { border-color: rgba(31, 77, 58, .4); transform: translateY(-2px); box-shadow: var(--shadow-sm); color: var(--forest); }
.topic-list .icon { width: 18px; height: 18px; color: var(--coral-ink); }

/* ---------- Resources index ---------- */
.stage-list { position: relative; display: grid; gap: var(--s4); }
.stage {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}
.stage-label { position: relative; padding-top: 20px; }
.stage-label strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.75rem; line-height: 1; color: var(--forest); }
.stage-label span { display: block; margin-top: 8px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral-ink); }

.row-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.row-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.row-card-media { overflow: hidden; background: var(--forest-100); }
.row-card-media img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; transition: transform .8s var(--ease); }
.row-card:hover .row-card-media img { transform: scale(1.045); }
.row-card-body { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 3vw, 32px); }
.row-card-body h2 { font-size: var(--step-3); line-height: 1.12; }
.row-card-body h2 a { color: var(--ink); text-decoration: none; }
.row-card-body h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.row-card-body h2 a:focus-visible { outline: none; }
.row-card-body h2 a:focus-visible::after { outline: 3px solid var(--coral-ink); outline-offset: -3px; border-radius: var(--r-lg); }
.row-card:hover h2 a { color: var(--forest); }
.row-card-body p { color: var(--ink-2); }
.row-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: auto; padding-top: 12px; font-size: .875rem; color: var(--ink-3); }
.row-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.row-card-meta .icon { width: 16px; height: 16px; }

@media (max-width: 859px) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stage-label { padding-top: 0; display: flex; align-items: baseline; gap: 12px; }
  .stage-label span { margin-top: 0; }
  .row-card { grid-template-columns: minmax(0, 1fr); }
  .row-card-media img { min-height: 0; aspect-ratio: 16 / 9; }
}

.official-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
@media (max-width: 959px) { .official-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .official-grid { grid-template-columns: minmax(0, 1fr); } }
.official-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: var(--s3);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.official-card:hover { border-color: rgba(31, 77, 58, .35); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.official-card h3 { font-size: 1.0625rem; line-height: 1.35; }
.official-card h3 a { color: var(--ink); text-decoration: none; }
.official-card h3 a::after { content: ""; position: absolute; inset: 0; }
.official-card h3 a:focus-visible { outline: none; }
.official-card h3 a:focus-visible::after { outline: 3px solid var(--coral-ink); outline-offset: -3px; border-radius: var(--r); }
.official-card p { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.official-domain { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: .8125rem; font-weight: 600; color: var(--forest); }
.official-domain .icon { width: 14px; height: 14px; }
.fine-print { margin-top: var(--s3); font-size: .875rem; color: var(--ink-3); }

/* ---------- Article ---------- */
.article-header { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 48px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; font-size: .875rem; color: var(--ink-3); margin-bottom: var(--s3); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--forest); text-decoration: underline; }
.article-header h1 { margin-top: var(--s2); font-size: var(--step-5); line-height: 1.05; text-wrap: balance; }
.article-dek { margin-top: var(--s3); font-size: var(--step-1); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: var(--s3); font-size: .9063rem; color: var(--ink-3); }
.article-meta li { display: inline-flex; align-items: center; gap: 8px; }
.article-meta .icon { width: 17px; height: 17px; color: var(--forest); }

.article-hero { margin-bottom: clamp(40px, 5vw, 72px); }
@media (min-width: 1080px) {
  .article-header .container--narrow {
    max-width: calc(var(--container) + var(--gutter) * 2);
    display: grid;
    grid-template-columns: 232px minmax(0, 720px);
    justify-content: center;
    column-gap: 80px;
  }
  .article-header .container--narrow > * { grid-column: 2; }
}
.article-hero-frame { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: var(--forest-100); }
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-hero figcaption { margin-top: 12px; font-size: .8125rem; color: var(--ink-3); text-align: right; }
.article-hero figcaption a { color: var(--ink-3); }
@media (max-width: 719px) { .article-hero img { aspect-ratio: 3 / 2; } }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s6);
  padding-bottom: var(--section);
}
@media (min-width: 1080px) {
  .article-layout { grid-template-columns: 232px minmax(0, 720px); justify-content: center; gap: 80px; }
}

.toc { display: none; }
@media (min-width: 1080px) {
  .toc { display: block; position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
}
.toc-title { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { display: grid; gap: 2px; border-left: 1px solid var(--line-strong); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  font-size: .875rem;
  line-height: 1.45;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--forest); border-left-color: var(--coral); font-weight: 600; }

.takeaways {
  margin-bottom: var(--s6);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--forest);
}
.takeaways-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s3);
  font-family: var(--sans);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--forest);
}
.takeaways-title .icon { width: 20px; height: 20px; }
.takeaways ul { display: grid; gap: 14px; counter-reset: take; }
.takeaways li { position: relative; padding-left: 44px; color: var(--ink); line-height: 1.6; counter-increment: take; }
.takeaways li::before {
  content: counter(take);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--forest-50);
  color: var(--forest);
  font-size: .8125rem;
  font-weight: 700;
}

.prose { font-size: 1.0625rem; line-height: 1.78; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose .lead { font-size: var(--step-1); line-height: 1.65; color: var(--ink); }
.prose h2 {
  margin-top: 2.1em;
  font-size: var(--step-3);
  line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.prose h3 { margin-top: 1.9em; font-size: 1.1875rem; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .5em; }
.prose li { padding-left: .25em; }
.prose ul li::marker { color: var(--coral); }
.prose ol li::marker { color: var(--forest); font-weight: 700; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { text-decoration-color: rgba(232, 115, 90, .7); text-decoration-thickness: 2px; }
.prose a:hover { text-decoration-color: var(--forest); }

.callout {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border-radius: var(--r);
  background: var(--forest-50);
  border: 1px solid rgba(31, 77, 58, .14);
  margin-block: 1.8em;
}
.prose > .callout { margin-top: 1.8em; }
.callout-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--forest); color: #fff; }
.callout-icon .icon { width: 20px; height: 20px; }
.callout-title { font-weight: 700; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.callout p { font-size: 1rem; line-height: 1.65; }
.callout p + p { margin-top: 8px; }
.callout--warn { background: var(--coral-soft); border-color: rgba(179, 76, 53, .2); }
.callout--warn .callout-icon { background: var(--coral-ink); }
@media (max-width: 479px) { .callout { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

.official {
  margin-top: var(--s8);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
}
.official h2 { font-size: var(--step-2); line-height: 1.2; margin-bottom: var(--s3); }
.official ul { display: grid; gap: 12px; }
.official li a {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .25s var(--ease);
}
.official li a:hover { border-color: rgba(31, 77, 58, .4); transform: translateX(3px); }
.official li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--coral-ink); }
.official-name { display: block; font-weight: 700; line-height: 1.4; }
.official-desc { display: block; margin-top: 2px; font-size: .9375rem; line-height: 1.55; color: var(--ink-2); }
.official-note { margin-top: var(--s2); font-size: .8125rem; color: var(--ink-3); }

.edu-note {
  display: flex;
  gap: 14px;
  margin-top: var(--s4);
  padding: 20px 22px;
  border-radius: var(--r);
  border: 1px dashed var(--line-strong);
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--ink-2);
}
.edu-note .icon { margin-top: 2px; color: var(--forest); }
.edu-note strong { color: var(--ink); }

/* ---------- CTA strip ---------- */
.cta-strip { padding-block: 0 var(--section); }
.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--r-lg);
  background: var(--forest);
  color: #fff;
}
.cta-strip h2 { color: #fff; font-size: var(--step-3); line-height: 1.15; max-width: 26ch; text-wrap: balance; }
.cta-strip p { margin-top: 8px; color: rgba(255, 255, 255, .84); max-width: 52ch; }

/* ---------- Legal pages ---------- */
.legal { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.legal .prose h2 { font-size: var(--step-2); margin-top: 1.9em; }
.legal .prose h3 { font-size: 1.0625rem; }
.summary-box {
  display: grid;
  gap: 10px;
  margin-bottom: var(--s5);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--coral);
  box-shadow: var(--shadow-sm);
}
.summary-box h2 { font-family: var(--sans); font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--forest); }
.summary-box ul { display: grid; gap: 6px; padding-left: 1.2em; color: var(--ink-2); font-size: .9688rem; }

/* ---------- Thank you and 404 ---------- */
.status-page { padding-block: clamp(72px, 10vw, 144px); }
.status-card {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.status-mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto var(--s3); border-radius: 50%; background: var(--forest-50); color: var(--forest); }
.status-mark .icon { width: 34px; height: 34px; }
.status-code { font-family: var(--serif); font-size: clamp(4.5rem, 3rem + 7vw, 8rem); line-height: 1; color: var(--forest); }
.status-card h1 { font-size: var(--step-4); line-height: 1.1; text-wrap: balance; }
.status-card > p { margin: var(--s2) auto 0; max-width: 52ch; color: var(--ink-2); }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s4); }
.status-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: var(--s5); text-align: left; }
@media (max-width: 559px) { .status-links { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  padding-block: clamp(56px, 7vw, 96px) var(--s4);
  background: var(--forest-900);
  color: rgba(248, 246, 241, .78);
  font-size: .9375rem;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5) var(--s4);
}
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-name em { color: var(--coral-light); }
.footer-tagline { margin-top: var(--s2); max-width: 34ch; line-height: 1.6; }
.footer-email { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s2); color: #fff; font-weight: 600; text-decoration-color: rgba(244, 164, 143, .6); overflow-wrap: anywhere; }
.footer-email:hover { color: var(--coral-light); }
.footer-email .icon { width: 18px; height: 18px; color: var(--coral-light); }
.footer-heading { margin-bottom: var(--s2); font-family: var(--sans); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(248, 246, 241, .6); }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: rgba(248, 246, 241, .86); text-decoration: none; line-height: 1.45; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--coral-light); }
.footer-disclaimer {
  margin-top: var(--s6);
  padding: var(--s3);
  border-radius: var(--r);
  border: 1px solid rgba(248, 246, 241, .14);
  background: rgba(248, 246, 241, .04);
  font-size: .875rem;
  line-height: 1.6;
  color: rgba(248, 246, 241, .8);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(248, 246, 241, .12);
  font-size: .8438rem;
  color: rgba(248, 246, 241, .66);
}
.footer-bottom a { color: rgba(248, 246, 241, .86); text-decoration-color: rgba(244, 164, 143, .6); }
.footer-bottom a:hover { color: #fff; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 959px) { .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 599px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Reveal on scroll ---------- */
.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .keep-reading, .cta-strip, .signup-band, .nav-toggle, .skip-link { display: none !important; }
  body { background: #fff; }
  .prose a::after { content: " (" attr(href) ")"; font-size: .85em; }
}
