/* ═══════════════════════════════════════════════════════════════════
   huntingexam.se  ·  Editorial Field Guide
   ───────────────────────────────────────────────────────────────────
   A Swedish jägarexamen prep site. Editorial, cartographic, calm.
   Palette: deep hunting green · sage · taupe · vivid orange · cream.
   Type: Fraunces (display, italic accents) · DM Sans (body) · DM Mono (labels).
   ═══════════════════════════════════════════════════════════════════ */

/* ── tokens ──────────────────────────────────────────────────────── */
:root {
  /* brand */
  --brand:        #0B5D1E;
  --brand-deep:   #073d13;
  --brand-soft:   rgba(11, 93, 30, 0.08);
  --brand-glass:  rgba(7, 61, 19, 0.72);

  /* sage band */
  --sage:         #ACBFA4;
  --sage-soft:    #c3d2bc;
  --sage-deep:    #8ba582;

  /* taupe — cards, borders, leather */
  --taupe:        #766153;
  --taupe-soft:   rgba(118, 97, 83, 0.18);
  --taupe-faint:  rgba(118, 97, 83, 0.10);
  --taupe-line:   rgba(118, 97, 83, 0.28);

  /* signature orange */
  --orange:       #FF7F11;
  --orange-hot:   #ff9534;
  --orange-deep:  #d96606;
  --orange-soft:  rgba(255, 127, 17, 0.14);
  --orange-glow:  rgba(255, 127, 17, 0.32);

  /* paper */
  --cream:        #F2EBDC;
  --cream-warm:   #f7f1e2;
  --cream-deep:   #e8ddc4;
  --cream-edge:   #ddd2b7;

  /* ink (text on cream) */
  --ink:          #1c1c18;
  --ink-mute:     #4a473e;
  --ink-faint:    #807c70;

  /* ink (text on deep green) */
  --on-green:        #f0e9d4;
  --on-green-mute:   rgba(240, 233, 212, 0.62);
  --on-green-faint:  rgba(240, 233, 212, 0.32);

  /* signals */
  --ok:           #2f7a3a;
  --no:           #b8421e;

  /* type */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* layout */
  --maxw:         1320px;
  --maxw-narrow:  760px;
  --gutter:       clamp(20px, 4.5vw, 56px);

  /* motion */
  --ease:         cubic-bezier(.22, .61, .36, 1);
  --ease-soft:    cubic-bezier(.4, .14, .2, 1);
}

/* ── reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 2px; }

/* ── base ────────────────────────────────────────────────────────── */
html, body { background: var(--cream); color: var(--ink); }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint paper grain over everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 0 0.05  0 0 0 1 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ── layout primitives ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

/* sections set their own background via .band-* */
.band-cream   { background: var(--cream);     color: var(--ink); }
.band-sage    { background: var(--sage);      color: var(--ink); }
.band-deep    { background: var(--brand);     color: var(--on-green); position: relative; isolation: isolate; }
.band-deep::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 100% 30%, rgba(240, 233, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 100% at 0% 100%, rgba(7, 61, 19, 0.55), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* ── typography primitives ───────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
}

/* cartographic micro-label — "N° 01 · METOD" */
.field-marker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field-marker::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.band-deep .field-marker { color: var(--on-green-mute); }
.field-marker--orange { color: var(--orange); }
.field-marker--orange::before { background: var(--orange); opacity: 0.7; }

/* orange pill eyebrow */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 127, 17, 0.04);
}
.pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 127, 17, 0.18);
}

.rule {
  border: 0;
  height: 1px;
  background: var(--taupe-line);
  margin: 0;
}
.band-deep .rule { background: rgba(240, 233, 212, 0.18); }

/* ── buttons ─────────────────────────────────────────────────────── */
.btn {
  --pad-x: 26px;
  --pad-y: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  border-radius: 4px;
  transition:
    transform .22s var(--ease),
    background .22s var(--ease),
    color .22s var(--ease),
    border-color .22s var(--ease),
    box-shadow .25s var(--ease);
  position: relative;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--orange);
  color: #1a0e02;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 8px 0 -6px rgba(217, 102, 6, 0.55),
    0 12px 28px -10px rgba(255, 127, 17, 0.55);
}
.btn--primary:hover {
  background: var(--orange-hot);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.22) inset,
    0 10px 0 -6px rgba(217, 102, 6, 0.65),
    0 18px 36px -10px rgba(255, 127, 17, 0.6);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: inherit;
  border-color: var(--taupe-line);
}
.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--taupe-faint);
}
.band-deep .btn--ghost,
.hero .btn--ghost,
.cta .btn--ghost { border-color: var(--on-green-faint); color: var(--on-green); }
.band-deep .btn--ghost:hover,
.hero .btn--ghost:hover,
.cta .btn--ghost:hover { border-color: var(--on-green); background: rgba(240, 233, 212, 0.08); }

.btn--sm  { --pad-x: 16px; --pad-y: 10px; font-size: 13px; }
.btn--lg  { --pad-x: 34px; --pad-y: 20px; font-size: 16px; }
.btn--block { width: 100%; }

/* arrow inside buttons */
.btn__arrow {
  display: inline-block;
  width: 16px; height: 16px;
  transition: transform .22s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── skip link ───────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--orange); color: #1a0e02;
  padding: 10px 14px; border-radius: 4px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; z-index: 200; }

/* ── site header ─────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  background: var(--brand);
  color: var(--on-green);
  transition: background .3s var(--ease), backdrop-filter .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: var(--brand-glass);
  backdrop-filter: blur(16px) saturate(1.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.05);
  border-bottom: 1px solid rgba(240, 233, 212, 0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* brand mark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 500;
  letter-spacing: -0.01em;
  color: inherit;
  line-height: 1;
}
.brand__mark {
  width: 30px; height: 30px;
  color: inherit;
  display: grid; place-items: center;
}
.brand__mark svg { width: 100%; height: 100%; }
.brand__mark img { width: 100%; height: 100%; display: block; border-radius: 50%; }
.brand__word { display: inline-flex; align-items: baseline; gap: 1px; }
.brand__tld {
  color: var(--orange);
  font-style: italic;
  font-variation-settings: "opsz" 24, "SOFT" 50, "wght" 400;
}

/* primary nav */
.site-nav {
  display: flex;
  gap: 32px;
}
.site-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--on-green-mute);
  transition: color .2s var(--ease);
  padding: 4px 0;
}
.site-nav a:hover { color: var(--on-green); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid rgba(240, 233, 212, 0.22);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--on-green-mute);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--on-green); }
.lang-toggle__opt {
  transition: color .2s var(--ease);
}
.lang-toggle__opt[data-active="true"] { color: var(--orange); }
.lang-toggle__sep { color: var(--on-green-faint); }

/* ── hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--brand);
  color: var(--on-green);
  padding: clamp(80px, 11vw, 160px) 0 clamp(80px, 11vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 100% 30%, rgba(240, 233, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 100% at 0% 100%, rgba(7, 61, 19, 0.65), transparent 60%);
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, var(--brand-deep) 100%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(40px, 6vw, 96px);
  align-items: end;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero__left { max-width: 920px; }
.hero__pill { margin-bottom: 32px; }

.hero__title {
  font-size: clamp(56px, 10vw, 160px);
  font-weight: 420;
  letter-spacing: -0.035em;
  line-height: 0.94;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
  color: var(--on-green);
}
.hero__title em {
  display: block;
  color: var(--orange);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 380;
}

.hero__sub {
  margin-top: clamp(28px, 3.5vw, 44px);
  max-width: 540px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
  color: var(--on-green-mute);
}

.hero__ctas {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* hero stat column — cartographic markers */
.hero__stats {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--on-green-faint);
  min-width: 220px;
}
@media (max-width: 980px) {
  .hero__stats {
    flex-direction: row;
    border-top: 1px solid var(--on-green-faint);
    border-bottom: 1px solid var(--on-green-faint);
    margin-top: 56px;
  }
  .hero__stat {
    flex: 1;
    border-bottom: 0 !important;
    border-right: 1px solid var(--on-green-faint);
    padding: 20px 16px !important;
  }
  .hero__stat:last-child { border-right: 0; }
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 22px 0;
  border-bottom: 1px solid var(--on-green-faint);
}
.hero__stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--on-green);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
}
.hero__stat-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-green-mute);
}

/* ── trust strip ─────────────────────────────────────────────────── */
.trust {
  background: var(--sage);
  padding: 22px 0;
  border-bottom: 1px solid rgba(28, 28, 24, 0.08);
}
.trust__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px clamp(28px, 5vw, 64px);
}
.trust__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.trust__item svg {
  width: 14px; height: 14px;
  color: var(--brand);
}

/* ── section heads ───────────────────────────────────────────────── */
.section-head {
  max-width: 880px;
  margin-bottom: clamp(48px, 6vw, 88px);
}
.section-head .field-marker { margin-bottom: 24px; }
.section-head h2 {
  font-size: clamp(40px, 6vw, 96px);
  font-weight: 420;
  letter-spacing: -0.03em;
  line-height: 0.96;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
}
.section-head h2 em {
  font-style: italic;
  color: var(--orange);
}
.section-head__sub {
  margin-top: clamp(20px, 2vw, 28px);
  max-width: 580px;
  color: var(--ink-mute);
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.55;
}
.band-deep .section-head__sub { color: var(--on-green-mute); }

/* ── question section ────────────────────────────────────────────── */
.question {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--cream);
  position: relative;
  border-top: 1px solid var(--taupe-line);
}
.question__grid-outer {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: start;
}
@media (max-width: 900px) {
  .question__grid-outer { grid-template-columns: 1fr; gap: 40px; }
}
.question__head .field-marker { margin-bottom: 28px; }
.question__title {
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 420;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
}
.question__hint {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.question__hint::before {
  content: "";
  width: 8px; height: 8px;
  border: 1px solid var(--ink-faint);
  border-radius: 50%;
  display: inline-block;
}

.question__card {
  background: var(--cream-warm);
  border: 1px solid var(--taupe-line);
  border-radius: 6px;
  padding: clamp(20px, 2vw, 28px);
  box-shadow: 0 1px 0 var(--cream-deep), 0 30px 60px -40px rgba(28, 28, 24, 0.18);
}

.question__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opt {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  background: transparent;
  border: 1px solid var(--taupe-line);
  border-radius: 4px;
  text-align: left;
  color: var(--ink);
  transition:
    background .18s var(--ease),
    border-color .18s var(--ease),
    transform .18s var(--ease);
}
.opt:hover:not([disabled]) {
  border-color: var(--ink);
  background: rgba(255, 127, 17, 0.04);
}
.opt__letter {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border: 1px solid var(--taupe-line);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
}
.opt__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.opt__ico {
  width: 18px; height: 18px;
  color: var(--ink-faint);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.opt:hover:not([disabled]) .opt__ico { opacity: 1; }

.opt[data-state="correct"] {
  border-color: var(--brand);
  background: rgba(11, 93, 30, 0.06);
}
.opt[data-state="correct"] .opt__letter {
  background: var(--brand);
  color: var(--cream);
  border-color: var(--brand);
}
.opt[data-state="correct"] .opt__ico { opacity: 1; color: var(--brand); }

.opt[data-state="wrong"] {
  border-color: var(--no);
  background: rgba(184, 66, 30, 0.05);
}
.opt[data-state="wrong"] .opt__letter {
  background: var(--no);
  color: var(--cream);
  border-color: var(--no);
}
.opt[data-state="wrong"] .opt__ico { opacity: 1; color: var(--no); }
.opt[disabled] { cursor: default; }

/* feedback — hidden until JS reveals it */
.question__feedback[hidden] { display: none !important; }
.question__feedback {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--brand);
  color: var(--on-green);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  animation: fade-up .5s var(--ease) both;
}
@media (max-width: 700px) {
  .question__feedback { grid-template-columns: 1fr; }
}
.question__feedback-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--on-green-mute);
}
.question__feedback-text strong {
  color: var(--on-green);
  font-weight: 600;
}
.question__feedback-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 9px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  vertical-align: 2px;
}
.question__feedback-tag[data-tag="correct"] {
  background: var(--orange);
  color: #1a0e02;
}
.question__feedback-tag[data-tag="wrong"] {
  background: var(--cream);
  color: var(--no);
}
.question__feedback-cta { white-space: nowrap; }

/* ── how it works ────────────────────────────────────────────────── */
.how {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--cream);
  border-top: 1px solid var(--taupe-line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--taupe-line);
  border: 1px solid var(--taupe-line);
  border-radius: 6px;
  overflow: hidden;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--cream-warm);
  padding: clamp(36px, 4vw, 56px) clamp(32px, 3.5vw, 48px) clamp(40px, 4vw, 64px);
  position: relative;
  overflow: hidden;
  transition: background .3s var(--ease);
}
.step:hover { background: var(--cream); }
.step__num {
  position: absolute;
  top: 22px; right: 28px;
  font-family: var(--font-display);
  font-size: clamp(96px, 11vw, 168px);
  font-weight: 360;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 360;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--taupe-line);
  text-stroke: 1px var(--taupe-line);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
.step__marker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: clamp(80px, 10vw, 120px);
  position: relative;
}
.step h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 460;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
  position: relative;
}
.step p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-mute);
  max-width: 32ch;
  position: relative;
}

/* ── features ────────────────────────────────────────────────────── */
.features {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--sage);
  color: var(--ink);
  position: relative;
  overflow: hidden;
}
.features::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(118, 97, 83, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(118, 97, 83, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--taupe-line);
  background: var(--taupe-line);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
@media (max-width: 980px) { .features__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features__grid { grid-template-columns: 1fr; } }

.feat {
  background: var(--sage);
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background .25s var(--ease);
}
.feat:hover { background: var(--sage-soft); }
.feat__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.feat__num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--taupe);
}
.feat__icon {
  width: 32px; height: 32px;
  color: var(--brand);
  flex: none;
}
.feat__icon svg { width: 100%; height: 100%; }
.feat h3 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 460;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
  line-height: 1.15;
  color: var(--ink);
}
.feat p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mute);
}

/* ── pricing ─────────────────────────────────────────────────────── */
.pricing {
  padding: clamp(80px, 12vw, 160px) 0;
  background: var(--cream);
  border-top: 1px solid var(--taupe-line);
}
.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 940px;
  margin-inline: auto;
}
@media (max-width: 800px) { .pricing__grid { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  background: var(--cream-warm);
  border: 1px solid var(--taupe-line);
  border-radius: 6px;
  padding: clamp(32px, 3vw, 44px) clamp(28px, 3vw, 40px) clamp(36px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.plan:hover { transform: translateY(-2px); }
.plan--featured {
  background: var(--brand);
  color: var(--on-green);
  border-color: var(--brand);
  box-shadow: 0 30px 60px -30px rgba(11, 93, 30, 0.50);
}

.plan__badge {
  position: absolute;
  top: -12px;
  right: 24px;
  padding: 5px 14px;
  background: var(--orange);
  color: #1a0e02;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 2px;
}

.plan__head { display: flex; flex-direction: column; gap: 16px; }
.plan__name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.plan--featured .plan__name { color: var(--on-green-mute); }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.plan__amount {
  font-family: var(--font-display);
  font-size: clamp(64px, 7vw, 88px);
  font-weight: 460;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
}
.plan__currency {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.plan--featured .plan__currency { color: var(--on-green-mute); }

.plan__sub {
  font-size: 14px;
  color: var(--ink-mute);
  line-height: 1.55;
}
.plan--featured .plan__sub { color: var(--on-green-mute); }
.plan__sub strong { color: var(--ink); font-weight: 600; }
.plan--featured .plan__sub strong { color: var(--on-green); }

.plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--taupe-line);
}
.plan--featured .plan__list { border-top-color: rgba(240, 233, 212, 0.18); }
.plan__list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-mute);
}
.plan--featured .plan__list li { color: var(--on-green-mute); }
.plan__list li::before {
  content: "";
  flex: none;
  margin-top: 10px;
  width: 12px; height: 1px;
  background: var(--orange);
}

/* ── final cta ───────────────────────────────────────────────────── */
.cta {
  background: var(--brand);
  color: var(--on-green);
  padding: clamp(96px, 14vw, 180px) 0;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.cta__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 50% 100%, rgba(240, 233, 212, 0.10), transparent 60%),
    radial-gradient(ellipse 80% 90% at 50% 0%, rgba(7, 61, 19, 0.6), transparent 60%);
  z-index: -1;
  pointer-events: none;
}
.cta__topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.4;
  z-index: -1;
}
.cta__inner {
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
  position: relative;
}
.cta__marker { margin-bottom: 36px; justify-content: center; }
.cta h2 {
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 420;
  letter-spacing: -0.035em;
  line-height: 0.96;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
}
.cta h2 em {
  display: block;
  color: var(--orange);
}
.cta__sub {
  margin-top: clamp(24px, 2.5vw, 36px);
  font-size: clamp(15.5px, 1.2vw, 18px);
  max-width: 540px;
  margin-inline: auto;
  color: var(--on-green-mute);
}
.cta__btn { margin-top: clamp(40px, 4vw, 60px); }
.cta__fine {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-green-faint);
}

/* ── footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--cream-deep);
  color: var(--ink);
  padding: clamp(56px, 7vw, 88px) 0 clamp(28px, 3vw, 40px);
  border-top: 1px solid var(--taupe-line);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
.site-footer .brand { color: var(--ink); }
.site-footer .brand__mark { color: var(--brand); }
.site-footer .brand__tld { color: var(--orange); }

.site-footer__tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 420;
  font-style: italic;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: var(--ink);
  max-width: 24ch;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
  margin-top: 18px;
}

.site-footer__col-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__nav a {
  font-size: 14px;
  color: var(--ink-mute);
  transition: color .2s var(--ease);
}
.site-footer__nav a:hover { color: var(--orange); }

.site-footer__base {
  padding-top: 28px;
  border-top: 1px solid var(--taupe-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.site-footer__base-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── blog ────────────────────────────────────────────────────────── */
.blog-hero {
  background: var(--brand);
  color: var(--on-green);
  padding: clamp(80px, 12vw, 140px) 0 clamp(60px, 9vw, 100px);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 100% at 100% 0%, rgba(240, 233, 212, 0.12), transparent 60%);
  z-index: -1;
}
.blog-hero h1 {
  margin-top: 26px;
  font-size: clamp(48px, 8vw, 120px);
  font-weight: 420;
  letter-spacing: -0.035em;
  line-height: 0.95;
  max-width: 18ch;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
}
.blog-hero h1 em {
  color: var(--orange);
  font-style: italic;
}
.blog-hero__sub {
  margin-top: 32px;
  max-width: 580px;
  color: var(--on-green-mute);
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.55;
}
.blog-empty {
  padding: clamp(80px, 12vw, 140px) 0;
  background: var(--cream);
}
.blog-empty__card {
  max-width: 720px;
  margin-inline: auto;
  background: var(--cream-warm);
  border: 1px dashed var(--taupe-line);
  border-radius: 6px;
  padding: clamp(40px, 5vw, 72px);
  text-align: center;
}
.blog-empty__marker { justify-content: center; margin-bottom: 28px; }
.blog-empty__card h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 420;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
}
.blog-empty__card h2 em { color: var(--orange); font-style: italic; }
.blog-empty__card p {
  color: var(--ink-mute);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: 32px;
  font-size: 15.5px;
  line-height: 1.6;
}

/* ── reveal animation ────────────────────────────────────────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── responsive nav ──────────────────────────────────────────────── */
@media (max-width: 820px) {
  .site-nav { display: none; }
}

/* ── auth (login / signup) ───────────────────────────────────────── */
.site-header__login {
  font-size: 14px;
  font-weight: 500;
  color: var(--on-green-mute);
  transition: color .2s var(--ease);
  white-space: nowrap;
}
.site-header__login:hover { color: var(--on-green); }

.auth {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: clamp(48px, 8vw, 96px) 0;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(11, 93, 30, 0.06), transparent 60%),
    var(--cream);
}
.auth__card {
  width: 100%;
  max-width: 430px;
  background: var(--cream-warm);
  border: 1px solid var(--taupe-line);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 1px 0 var(--cream-deep), 0 40px 80px -50px rgba(28, 28, 24, 0.25);
}
.auth__marker { margin-bottom: 22px; }
.auth__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 420;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
  margin-bottom: 8px;
}
.auth__title em { font-style: italic; color: var(--orange); }
.auth__sub {
  font-size: 14.5px;
  color: var(--ink-mute);
  line-height: 1.55;
  margin-bottom: 26px;
}
.auth__form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.field input {
  font-family: var(--font-body);
  font-size: 15.5px;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--taupe-line);
  border-radius: 4px;
  padding: 13px 15px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(11, 93, 30, 0.12);
}
.field input::placeholder { color: var(--ink-faint); }
.auth__submit { margin-top: 6px; }
.auth__alt {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--taupe-line);
  font-size: 14px;
  color: var(--ink-mute);
  text-align: center;
}
.auth__alt a { color: var(--orange); font-weight: 600; }
.auth__alt a:hover { text-decoration: underline; }
.auth__msg {
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.auth__msg--error {
  background: rgba(184, 66, 30, 0.08);
  border: 1px solid rgba(184, 66, 30, 0.30);
  color: var(--no);
}
.auth__msg--ok {
  background: rgba(11, 93, 30, 0.07);
  border: 1px solid rgba(11, 93, 30, 0.28);
  color: var(--brand);
}

/* ── dashboard (gated, coming soon) ──────────────────────────────── */
.dash {
  min-height: calc(100vh - 220px);
  display: grid;
  place-items: center;
  padding: clamp(60px, 10vw, 120px) 0;
  background:
    radial-gradient(900px 450px at 50% -5%, rgba(11, 93, 30, 0.07), transparent 60%),
    var(--cream);
}
.dash__inner { text-align: center; max-width: 620px; }
.dash__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 28px;
}
.dash__badge::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 127, 17, 0.2);
}
.dash__title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 420;
  letter-spacing: -0.03em;
  line-height: 0.98;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
}
.dash__title em { font-style: italic; color: var(--orange); display: block; }
.dash__sub {
  margin-top: 22px;
  font-size: clamp(15.5px, 1.4vw, 18px);
  color: var(--ink-mute);
  line-height: 1.6;
  max-width: 46ch;
  margin-inline: auto;
}
.dash__meta {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.dash__email { color: var(--ink); }
.dash__signout {
  background: none;
  border: 0;
  font: inherit;
  color: var(--orange);
  cursor: pointer;
  letter-spacing: 0.06em;
}
.dash__signout:hover { text-decoration: underline; }

/* ── blog listing ────────────────────────────────────────────────── */
.blog-list { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 12vw, 140px); background: var(--cream); }
.blog-grid {
  display: grid;
  /* auto-fit: tracks collapse to the article count — no empty taupe cells
     while the blog is young; settles into 3 columns once it fills up. */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--taupe-line);
  border: 1px solid var(--taupe-line);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--cream-warm); transition: background .25s var(--ease); }
.blog-card:hover { background: var(--cream); }
.blog-card__link {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  padding: clamp(26px, 3vw, 36px);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.blog-card__cat { color: var(--orange); }
.blog-card__title {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.18;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
  color: var(--ink);
}
.blog-card__excerpt {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  flex: 1;
}
.blog-card__more {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--brand);
  transition: gap .2s var(--ease);
}
.blog-card:hover .blog-card__more { color: var(--orange); }

/* ── article ─────────────────────────────────────────────────────── */
.article { padding: clamp(48px, 8vw, 100px) 0 clamp(80px, 12vw, 140px); background: var(--cream); }
.article__back {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-bottom: 36px;
}
.article__back a { color: var(--ink-mute); }
.article__back a:hover { color: var(--orange); }
.article__head { margin-bottom: 36px; }
.article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 18px;
}
.article__cat { color: var(--orange); }
.article__title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 420;
  letter-spacing: -0.03em;
  line-height: 1.04;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 420;
  color: var(--ink);
}
.article__tldr {
  margin: 0 0 40px;
  padding: 22px 24px;
  background: rgba(11, 93, 30, 0.05);
  border-left: 3px solid var(--brand);
  border-radius: 0 6px 6px 0;
}
.article__tldr-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.article__tldr-text { font-size: 16px; line-height: 1.6; color: var(--ink); }

/* rich text from set:html */
.prose { color: var(--ink); font-size: 17px; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 460;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-top: 1.8em;
  padding-top: 1.1em;
  border-top: 1px solid var(--taupe-line);
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.2vw, 26px);
  font-weight: 460;
  letter-spacing: -0.015em;
  margin-top: 1.5em;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
}
.prose p { color: var(--ink-mute); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.prose a:hover { color: var(--orange); }
.prose ul, .prose ol { padding-left: 1.4em; color: var(--ink-mute); }
.prose li { margin-top: 0.5em; }
.prose ul li { list-style: none; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute; left: -1.2em; top: 0.72em;
  width: 12px; height: 1px; background: var(--orange);
}
.prose ol { list-style: decimal; }
.prose blockquote {
  border-left: 3px solid var(--taupe-line);
  padding-left: 20px;
  font-style: italic;
  color: var(--ink-mute);
}
.prose img { border-radius: 6px; border: 1px solid var(--taupe-line); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--cream-deep);
  padding: 2px 6px;
  border-radius: 3px;
}
.prose hr { border: 0; height: 1px; background: var(--taupe-line); margin: 2em 0; }

/* article FAQ */
.article__faq { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--taupe-line); }
.article__faq-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 460;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 460;
}
.faq { display: flex; flex-direction: column; gap: 2px; }
.faq__item {
  border: 1px solid var(--taupe-line);
  border-radius: 6px;
  background: var(--cream-warm);
  overflow: hidden;
}
.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; color: var(--orange); font-size: 20px; line-height: 1; }
.faq__item[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 22px 20px; color: var(--ink-mute); font-size: 15px; line-height: 1.6; }

.article__cta {
  margin-top: 56px;
  padding: 36px;
  background: var(--brand);
  border-radius: 8px;
  text-align: center;
}
.article__cta-text {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  color: var(--on-green);
  margin-bottom: 20px;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 440;
}

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