@charset "utf-8";
/* =========================================================================
   PawParley — pawparley.com
   Implements docs/DESIGN-SYSTEM.md §2 colour, §3 type, §4 geometry,
   §5 paw-press, §6 motion, §10 composition.
   ========================================================================= */

/* ---------- 1. Fonts (self-hosted, subset) ------------------------------ */
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-ExtraBold.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Baloo 2";
  src: url("../fonts/Baloo2-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-SemiBold.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/Figtree-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/DMMono-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Mono";
  src: url("../fonts/DMMono-Medium.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- 2. Tokens --------------------------------------------------- */
:root {
  /* core */
  --paper:      #FBF4E6;
  --paper-deep: #F3E8D2;
  --surface:    #FFFDF6;
  --ink:        #1F2E2C;
  --ink-soft:   #5A6B67;
  --sunbeam:    #FFC24A;
  --sunbeam-deep:#E5A32E;

  /* species accents */
  --jade:       #3E8E7E;
  --jade-ink:   #2C6A5D;   /* AA-safe jade for small text on paper */
  --jade-pale:  #CFE5DF;
  --clay:       #C4633F;
  --clay-ink:   #9C4426;   /* AA-safe clay for small text on paper and on clay-pale */
  --clay-pale:  #F2D9CE;

  --hairline:   rgba(31,46,44,.14);
  --shadow-key: rgba(31,46,44,.14);
  --contact:    rgba(31,46,44,.26);
  --card-shadow: 0 1px 2px rgba(31,46,44,.05), 0 14px 30px -18px rgba(31,46,44,.34);
  --grain-opacity: .055;
  --grain-blend: multiply;

  --footer-bg:  #1F2E2C;
  --footer-fg:  #F3E8D2;
  --footer-dim: rgba(243,232,210,.66);

  /* type scale, ×1.25 from 13 */
  --t-13: .8125rem;  --t-15: .9375rem;  --t-17: 1.0625rem;
  --t-22: 1.375rem;  --t-27: 1.6875rem; --t-34: 2.125rem;
  --t-44: 2.75rem;   --t-55: 3.4375rem;

  /* 4px space scale */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 40px; --s8: 56px; --s9: 72px; --s10: 104px;

  /* radius system: outer = inner + padding */
  --r-chip: 12px; --r-btn: 18px; --r-card: 28px; --r-sheet: 36px;

  --ease-settle: cubic-bezier(.32,.72,0,1);
  --ease-paw:    cubic-bezier(.34,1.3,.64,1);

  color-scheme: light dark;
}

/* “lamp off” — DESIGN-SYSTEM §2 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #1A2422;
    --paper-deep: #22302D;
    --surface:    #223330;
    --ink:        #F3E8D2;
    --ink-soft:   #A9B8B3;
    --sunbeam:    #F7CD7B;
    --sunbeam-deep:#D9AC5C;
    --jade:       #50A594;
    --jade-ink:   #6DBCAB;
    --jade-pale:  #26403B;
    --clay:       #C77F65;
    --clay-ink:   #DB967E;
    --clay-pale:  #403831;
    --hairline:   rgba(243,232,210,.16);
    --shadow-key: rgba(0,0,0,.5);
    --contact:    rgba(0,0,0,.5);
    --card-shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 30px -18px rgba(0,0,0,.7);
    --grain-opacity: .07;
    --grain-blend: soft-light;
    --footer-bg:  #121A19;
    --footer-fg:  #F3E8D2;
    --footer-dim: rgba(243,232,210,.62);
  }
}
:root[data-theme="dark"] {
  --paper:      #1A2422;
  --paper-deep: #22302D;
  --surface:    #223330;
  --ink:        #F3E8D2;
  --ink-soft:   #A9B8B3;
  --sunbeam:    #F7CD7B;
  --sunbeam-deep:#D9AC5C;
  --jade:       #50A594;
  --jade-ink:   #6DBCAB;
  --jade-pale:  #26403B;
  --clay:       #C77F65;
  --clay-ink:   #DB967E;
  --clay-pale:  #403831;
  --hairline:   rgba(243,232,210,.16);
  --shadow-key: rgba(0,0,0,.5);
  --contact:    rgba(0,0,0,.5);
  --card-shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 30px -18px rgba(0,0,0,.7);
  --grain-opacity: .07;
  --grain-blend: soft-light;
  --footer-bg:  #121A19;
  --footer-fg:  #F3E8D2;
  --footer-dim: rgba(243,232,210,.62);
}

/* ---------- 3. Base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, sans-serif;
  font-size: var(--t-17);
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* the paper grain — §10, the thing that unifies art with UI */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: "Baloo 2", ui-rounded, "Trebuchet MS", sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 var(--s4);
  text-wrap: balance;
}
h1 { font-size: clamp(2.35rem, 1.55rem + 3.4vw, 4.05rem); }
h2 { font-size: clamp(1.85rem, 1.4rem + 1.9vw, var(--t-44)); }
h3 { font-size: clamp(1.35rem, 1.2rem + .7vw, var(--t-27)); }
h4 { font-size: var(--t-22); font-weight: 700; }
p  { margin: 0 0 var(--s4); }
strong { font-weight: 700; }

a { color: inherit; text-decoration-color: var(--jade); text-underline-offset: .18em; text-decoration-thickness: .09em; }
a:hover { text-decoration-color: currentColor; }

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

img { max-width: 100%; height: auto; display: block; }
figure, blockquote, figcaption { margin: 0; }
hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--s7) 0; }

::selection { background: var(--sunbeam); color: #1F2E2C; }

code, kbd {
  font-family: "DM Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: .92em;
  background: var(--paper-deep);
  padding: 2px 6px; border-radius: 7px;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute; left: var(--s4); top: -100px; z-index: 100;
  background: var(--sunbeam); color: #1F2E2C; font-weight: 700;
  padding: var(--s3) var(--s4); border-radius: var(--r-btn);
  transition: top .16s var(--ease-settle);
}
.skip-link:focus { top: var(--s3); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 4. Layout --------------------------------------------------- */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--s5); }
@media (min-width: 800px) { .wrap { padding-inline: var(--s7); } }

.section { padding-block: clamp(var(--s8), 7vw, var(--s10)); position: relative; }
.section--deep { background: var(--paper-deep); }
.section + .section--deep, .section--deep + .section { border-top: 1px solid var(--hairline); }

.measure { max-width: 62ch; }
.measure-wide { max-width: 74ch; }

/* section heading with a species marker — never an ALL-CAPS label (§3) */
.eyebrow {
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--t-15); font-weight: 700; color: var(--jade-ink);
  margin: 0 0 var(--s3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 4px; border-radius: 2px;
  background: var(--jade); flex: none;
}
.eyebrow--clay { color: var(--clay-ink); }
.eyebrow--clay::before { background: var(--clay); }
.eyebrow--sun { color: var(--ink); }
.eyebrow--sun::before { background: var(--sunbeam-deep); }

.lede { font-size: clamp(var(--t-17), 1rem + .55vw, var(--t-22)); color: var(--ink-soft); }

/* ---------- 5. Paw-press: the signature affordance (§5) ----------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: "Figtree", sans-serif;
  font-size: var(--t-17); font-weight: 700; line-height: 1.2;
  padding: 14px var(--s5);
  min-height: 48px;
  border: 0; border-radius: var(--r-btn);
  background: var(--btn-bg); color: var(--btn-fg);
  text-decoration: none; cursor: pointer;
  /* die-cut sticker: 3px paper keyline + tight offset (not blurred) shadow */
  box-shadow: 0 0 0 3px var(--paper), 0 3px 0 var(--shadow-key);
  transition: transform 90ms var(--ease-paw), box-shadow 90ms var(--ease-paw);
  transform-origin: center bottom;
}
.btn:hover { text-decoration: none; }
.btn:active {
  /* squashes like a paw pad — nothing else on the site squashes */
  transform: scaleX(1.03) scaleY(.94);
  box-shadow: 0 0 0 3px var(--paper), 0 1px 0 var(--shadow-key);
}
.btn--primary { --btn-bg: var(--sunbeam); --btn-fg: #1F2E2C; }
.btn--primary:active { box-shadow: 0 0 0 3px var(--paper), 0 1px 0 var(--sunbeam-deep); }
.btn--ghost { --btn-bg: transparent; box-shadow: 0 0 0 2px var(--hairline); }
.btn--ghost:active { transform: scaleX(1.03) scaleY(.94); box-shadow: 0 0 0 2px var(--hairline); }
.btn--sm { font-size: var(--t-15); padding: 10px var(--s4); min-height: 40px; }
.btn .btn-sub { font-weight: 400; opacity: .72; }

@media (prefers-reduced-motion: reduce) {
  .btn, .btn:active { transition: none; transform: none; }
}

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.cta-note { font-size: var(--t-13); color: var(--ink-soft); margin: var(--s3) 0 0; }

/* ---------- 6. Header --------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s linear;
}
.site-header[data-stuck="true"] { border-bottom-color: var(--hairline); }
.site-header .wrap {
  display: flex; align-items: center; gap: var(--s4);
  min-height: 68px; padding-block: var(--s3);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img {
  width: 38px; height: 38px; border-radius: 11px;
  box-shadow: 0 1px 0 var(--shadow-key), 0 0 0 1px var(--hairline);
}
.brand-name {
  font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: var(--t-22); letter-spacing: -.02em; line-height: 1;
}
.header-spacer { flex: 1 1 auto; }

.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: var(--s5); }
.nav a {
  font-size: var(--t-15); font-weight: 600; text-decoration: none;
  color: var(--ink-soft); padding: 6px 0; position: relative;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; border-radius: 2px; background: var(--jade);
}
.header-actions { display: flex; align-items: center; gap: var(--s3); }

.lamp {
  width: 40px; height: 40px; flex: none; display: grid; place-items: center;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink-soft);
  cursor: pointer;
}
.lamp:hover { color: var(--ink); background: var(--paper-deep); }
.lamp svg { width: 20px; height: 20px; }
.lamp .lamp-off { display: none; }
:root[data-theme="dark"] .lamp .lamp-on { display: none; }
:root[data-theme="dark"] .lamp .lamp-off { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lamp .lamp-on { display: none; }
  :root:not([data-theme="light"]) .lamp .lamp-off { display: block; }
}

@media (max-width: 899px) {
  .js .nav-toggle {
    display: inline-flex; align-items: center; gap: var(--s2);
    font: inherit; font-size: var(--t-15); font-weight: 700;
    background: transparent; border: 0; color: var(--ink);
    padding: 10px 12px; border-radius: 12px; cursor: pointer;
  }
  .js .nav-toggle:hover { background: var(--paper-deep); }
  .js .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--hairline);
    padding: var(--s2) var(--s5) var(--s5);
    box-shadow: var(--card-shadow);
  }
  .js .nav[hidden] { display: none; }
  .js .nav a { padding: 14px 0; font-size: var(--t-17); border-bottom: 1px solid var(--hairline); }
  .js .nav a[aria-current="page"]::after { display: none; }
  .js .nav a[aria-current="page"] { color: var(--jade-ink); }
  .header-cta { display: none; }
}
@media (min-width: 900px) { .nav[hidden] { display: flex; } }

/* ---------- 7. Hero (breaks the centre — §10) --------------------------- */
.hero { position: relative; padding-block: clamp(var(--s7), 5vw, var(--s9)) 0; overflow: hidden; }
.hero-grid { display: grid; gap: var(--s6); align-items: end; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0,1.06fr) minmax(0,.94fr); gap: var(--s7); }
}
.hero-copy { position: relative; z-index: 2; padding-bottom: var(--s7); }
@media (min-width: 900px) { .hero-copy { padding-bottom: var(--s10); } }
.hero h1 { margin-bottom: var(--s5); }
.hero h1 .accent { color: var(--jade-ink); }
.hero .lede { max-width: 46ch; margin-bottom: var(--s6); }

.hero-art {
  position: relative; align-self: end; justify-self: center;
  width: 100%; display: flex; align-items: flex-end; justify-content: center;
}
.hero-art::before {
  /* the warm panel the character stands on — a shape, not a blurred orb */
  content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: min(100%, 440px); height: min(42vw, 300px);
  background: var(--paper-deep);
  border-radius: var(--r-sheet) var(--r-sheet) var(--r-card) var(--r-card);
  z-index: 0;
}
.hero-art img {
  position: relative; z-index: 1;
  max-height: min(78vw, 320px); width: auto;
}
.hero-art .contact-shadow {
  position: absolute; left: 50%; bottom: 14px; translate: -50% 0;
  width: 62%; max-width: 260px; height: 26px; border-radius: 50%;
  background: var(--contact); filter: blur(12px); z-index: 0;
}
@media (min-width: 900px) {
  .hero-art::before { height: 300px; }
  .hero-art img { max-height: 470px; }
}

/* the readout floats over the seam between copy and art */
.hero-readout { position: relative; z-index: 3; margin-top: var(--s5); }
@media (min-width: 900px) {
  .hero-readout { margin-top: calc(var(--s9) * -1); max-width: 720px; }
}

/* ---------- 8. The measurement readout (the proof) ---------------------- */
.readout {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: var(--s5);
  box-shadow: var(--card-shadow);
  position: relative;
  rotate: -.6deg;
}
@media (min-width: 640px) { .readout { padding: var(--s5) var(--s6) var(--s6); } }
.readout--flat { rotate: 0deg; }
.readout-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  margin-bottom: var(--s4);
}
.readout-kind {
  font-family: "Baloo 2", sans-serif; font-weight: 800;
  font-size: var(--t-27); letter-spacing: -.02em; line-height: 1.1; margin: 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: var(--t-15); font-weight: 700; line-height: 1;
  padding: 8px 13px; border-radius: var(--r-chip);
  background: var(--clay-pale); color: var(--clay-ink);
}
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }
.chip--jade { background: var(--jade-pale); color: var(--jade-ink); }
.chip--jade::before { background: var(--jade); }
.chip--quiet { background: var(--paper-deep); color: var(--ink-soft); }
.chip--quiet::before { background: var(--ink-soft); }

.measurement {
  font-family: "DM Mono", ui-monospace, "SFMono-Regular", monospace;
  font-size: clamp(var(--t-13), .78rem + .32vw, var(--t-17));
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper-deep);
  border-radius: var(--r-btn);
  padding: var(--s3) var(--s4);
  margin: 0 0 var(--s4);
  overflow-x: auto;
  overflow-wrap: anywhere;
}
.measurement b { font-weight: 500; }

.wave {
  display: block; width: 100%; height: 58px; margin-bottom: var(--s4);
  background-color: var(--clay);
  -webkit-mask: url("../img/brand/wave-bark.svg") left center / 100% 100% no-repeat;
  mask: url("../img/brand/wave-bark.svg") left center / 100% 100% no-repeat;
}
.wave--jade { background-color: var(--jade); }
.wave--roomtone {
  background-color: var(--ink-soft); opacity: .55; height: 44px;
  -webkit-mask-image: url("../img/brand/wave-roomtone.svg");
  mask-image: url("../img/brand/wave-roomtone.svg");
}

.confidence { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.confidence-label { font-size: var(--t-15); font-weight: 600; color: var(--ink-soft); }
.dots { display: flex; gap: 6px; }
.dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); opacity: .18;
}
.dots i.on { opacity: 1; background: var(--clay); }
.dots--jade i.on { background: var(--jade); }
.confidence-word { font-size: var(--t-15); font-weight: 700; color: var(--clay-ink); }
.confidence-word--jade { color: var(--jade-ink); }

.readout-read {
  font-size: var(--t-22); font-weight: 400; line-height: 1.35;
  margin: 0 0 var(--s4); color: var(--ink);
}
.readout-foot {
  font-size: var(--t-13); color: var(--ink-soft); margin: 0;
  padding-top: var(--s3); border-top: 1px solid var(--hairline);
}

/* result-card reveal — §6.1 “falls onto the page” */
.fall.armed { opacity: 0; }
.fall.armed.in { animation: fall 420ms var(--ease-settle) both; }
@keyframes fall {
  0%   { opacity: 0; transform: translateY(-24px) scale(.94) rotate(-2deg); }
  62%  { opacity: 1; transform: translateY(6px) scale(1.03) rotate(.4deg); }
  100% { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fall.armed { opacity: 1; }
  .fall.armed.in { animation: none; }
}

/* page-load stagger */
.js .rise { animation: rise 620ms var(--ease-settle) both; }
.js .rise:nth-child(1) { animation-delay: 40ms; }
.js .rise:nth-child(2) { animation-delay: 130ms; }
.js .rise:nth-child(3) { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .rise { animation: none; }
}

/* ---------- 9. Annotated readout ---------------------------------------- */
.annotate { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 940px) {
  .annotate { grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: var(--s8); }
  .annotate .readout { position: sticky; top: 96px; }
}
.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); }
.note-key {
  display: inline-block; margin-bottom: var(--s2);
  font-family: "DM Mono", monospace; font-size: var(--t-13); font-weight: 500;
  background: var(--paper-deep); color: var(--ink);
  padding: 6px 10px; border-radius: 10px; white-space: nowrap;
}
.note-body h3 { font-size: var(--t-22); margin-bottom: 4px; }
.note-body p { font-size: var(--t-15); color: var(--ink-soft); margin: 0; }

/* ---------- 10. Split rows (tools) -------------------------------------- */
.split { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s8); }
  .split--flip .split-art { order: -1; }
}
.split + .split { margin-top: clamp(var(--s8), 6vw, var(--s10)); }
.split-art { position: relative; display: flex; justify-content: center; }
.split-art img { max-height: min(72vw, 300px); width: auto; }
@media (min-width: 900px) { .split-art img { max-height: 420px; } }
.split-art::after {
  content: ""; position: absolute; left: 50%; bottom: 6px; translate: -50% 0;
  width: 46%; height: 18px; border-radius: 50%;
  background: var(--contact); filter: blur(11px); opacity: .8;
}

/* facts strip inside a split */
.facts { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); }
.facts li { display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: baseline; font-size: var(--t-15); }
.facts .k {
  font-family: "DM Mono", monospace; font-size: var(--t-13); color: var(--ink-soft);
  min-width: 84px;
}

/* ---------- 11. Honesty gate panel -------------------------------------- */
.gate { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 900px) { .gate { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: var(--s8); } }
.gate-card {
  background: var(--surface); border-radius: var(--r-card);
  padding: var(--s6); box-shadow: var(--card-shadow); rotate: .5deg;
}
.gate-card p:last-child { margin-bottom: 0; }
.gate-quote {
  font-family: "Baloo 2", sans-serif; font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(var(--t-22), 1.1rem + 1vw, var(--t-34)); line-height: 1.2;
  margin: 0 0 var(--s4);
}

blockquote.verbatim {
  margin: 0 0 var(--s5); padding: var(--s4) var(--s5);
  background: var(--paper-deep); border-radius: var(--r-btn);
  font-size: var(--t-17); line-height: 1.5;
}
blockquote.verbatim p { margin: 0 0 var(--s2); }
blockquote.verbatim cite { font-style: normal; font-size: var(--t-13); color: var(--ink-soft); }

/* ---------- 12. Inside list (no three-card row) ------------------------- */
.inside { list-style: none; margin: 0; padding: 0; }
.inside > li {
  display: grid; gap: var(--s2) var(--s5); align-items: baseline;
  padding: var(--s5) 0; border-top: 1px solid var(--hairline);
}
.inside > li:last-child { border-bottom: 1px solid var(--hairline); }
@media (min-width: 760px) {
  .inside > li { grid-template-columns: 15ch minmax(0,1fr) auto; }
}
.inside h3 { font-size: var(--t-22); margin: 0; }
.inside p { margin: 0; color: var(--ink-soft); font-size: var(--t-15); }
.inside .stat {
  font-family: "DM Mono", monospace; font-size: var(--t-13);
  color: var(--ink-soft); white-space: nowrap;
}

/* ---------- 13. Closing band -------------------------------------------- */
.closer { position: relative; overflow: hidden; }
.closer .wrap { position: relative; z-index: 1; }
.closer-grid { display: grid; gap: var(--s6); align-items: center; }
@media (min-width: 860px) { .closer-grid { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); } }
.closer-art img { max-height: min(64vw, 300px); width: auto; margin-inline: auto; }

/* ---------- 14. Document pages ------------------------------------------ */
.doc-head { padding-block: clamp(var(--s7), 5vw, var(--s9)) var(--s6); position: relative; }
.doc-head .wrap { display: grid; gap: var(--s6); align-items: end; }
@media (min-width: 900px) { .doc-head .wrap { grid-template-columns: minmax(0,1fr) 300px; } }
.doc-head-art img { max-height: min(52vw, 252px); width: auto; margin-left: auto; }
.doc-meta { font-size: var(--t-15); color: var(--ink-soft); margin: 0; }

.doc-body { display: grid; gap: var(--s7); align-items: start; padding-bottom: var(--s10); }
@media (min-width: 940px) {
  .doc-body { grid-template-columns: 232px minmax(0,1fr); gap: var(--s8); }
  .toc { position: sticky; top: 96px; }
}
.toc { font-size: var(--t-15); }
.toc h2 { font-family: "Figtree", sans-serif; font-size: var(--t-13); font-weight: 700; color: var(--ink-soft); letter-spacing: 0; margin-bottom: var(--s3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block; padding: 7px 10px; border-radius: 10px;
  text-decoration: none; color: var(--ink-soft); font-weight: 600;
}
.toc a:hover { background: var(--paper-deep); color: var(--ink); }
@media (max-width: 939px) {
  .toc {
    background: var(--paper-deep); border-radius: var(--r-card);
    padding: var(--s4) var(--s3) var(--s4) var(--s4);
  }
  .toc h2 { padding-left: 10px; }
  .toc ol { grid-template-columns: 1fr 1fr; column-gap: var(--s3); }
  .toc a { padding: 6px 8px; }
}

.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(var(--t-27), 1.3rem + .9vw, var(--t-34));
  margin-top: var(--s8); scroll-margin-top: 90px;
}
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--t-22); margin-top: var(--s6); }
.prose p, .prose li { font-size: var(--t-17); }
.prose ul, .prose ol { padding-left: 1.15em; margin: 0 0 var(--s4); }
.prose li { margin-bottom: var(--s2); }
.prose li::marker { color: var(--jade); }
.prose dl { margin: 0 0 var(--s4); }
.prose dt { font-weight: 700; margin-top: var(--s4); }
.prose dd { margin: 4px 0 0; color: var(--ink-soft); }

.callout {
  background: var(--surface); border-radius: var(--r-card);
  padding: var(--s5); margin: 0 0 var(--s6);
  box-shadow: var(--card-shadow);
}
.callout h2, .callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout--todo {
  background: var(--paper-deep); box-shadow: none;
  outline: 2px dashed var(--clay); outline-offset: -2px;
  font-size: var(--t-15);
}
.callout--todo strong { color: var(--clay-ink); }

.kv { margin: 0 0 var(--s5); border-top: 1px solid var(--hairline); }
.kv > div {
  display: grid; gap: 2px var(--s5); padding: var(--s4) 0;
  border-bottom: 1px solid var(--hairline);
}
@media (min-width: 640px) { .kv > div { grid-template-columns: 16ch minmax(0,1fr); } }
.kv dt { font-weight: 700; margin: 0; }
.kv dd { margin: 0; color: var(--ink-soft); }

.price-table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s5); font-size: var(--t-15); }
.price-table caption { text-align: left; font-size: var(--t-13); color: var(--ink-soft); padding-bottom: var(--s3); }
.price-table th, .price-table td { text-align: left; padding: var(--s3) var(--s4) var(--s3) 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.price-table thead th { font-size: var(--t-13); color: var(--ink-soft); font-weight: 700; }
.price-table td.num { font-family: "DM Mono", monospace; white-space: nowrap; }

/* FAQ */
.faq { display: grid; gap: var(--s3); margin: 0; }
.faq details {
  background: var(--surface); border-radius: var(--r-card);
  box-shadow: var(--card-shadow); overflow: hidden;
}
.faq summary {
  cursor: pointer; list-style: none; padding: var(--s5);
  font-family: "Baloo 2", sans-serif; font-weight: 800; letter-spacing: -.02em;
  font-size: var(--t-22); line-height: 1.2;
  display: flex; gap: var(--s4); align-items: flex-start; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px;
  background: currentColor; opacity: .5;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: rotate .2s var(--ease-settle);
}
.faq details[open] summary::after { rotate: 180deg; }
.faq .faq-body { padding: 0 var(--s5) var(--s5); max-width: 62ch; }
.faq .faq-body > :last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* contact card */
.contact-card {
  background: var(--surface); border-radius: var(--r-card);
  padding: var(--s6); box-shadow: var(--card-shadow);
}
.mail {
  font-family: "DM Mono", monospace; font-size: clamp(var(--t-17), 1rem + .5vw, var(--t-27));
  font-weight: 500; word-break: break-all;
}


/* ---------- 14b. Long-form with a field-note rail ----------------------- */
.longform { display: grid; gap: var(--s7); align-items: start; }
@media (min-width: 1020px) {
  .longform { grid-template-columns: minmax(0,1fr) 300px; gap: var(--s9); }
  .longform .prose { max-width: 60ch; }
  .longform .rail { position: sticky; top: 96px; }
}
.field-note {
  background: var(--surface); border-radius: var(--r-card);
  padding: var(--s5); box-shadow: var(--card-shadow); rotate: .7deg;
}
.field-note h2 {
  font-family: "Figtree", sans-serif; font-size: var(--t-13); font-weight: 700;
  letter-spacing: 0; color: var(--ink-soft); margin: 0 0 var(--s4);
}
.field-note dl { margin: 0; display: grid; gap: var(--s3); }
.field-note dt { font-size: var(--t-13); color: var(--ink-soft); margin: 0; }
.field-note dd { margin: 2px 0 0; font-family: "DM Mono", monospace; font-size: var(--t-15); }
.field-note > p { font-size: var(--t-13); color: var(--ink-soft); margin: var(--s4) 0 0;
  padding-top: var(--s3); border-top: 1px solid var(--hairline); }

/* ---------- 15. Footer -------------------------------------------------- */
.site-footer {
  background: var(--footer-bg); color: var(--footer-fg);
  padding-block: var(--s8) var(--s7);
}
.site-footer a { color: var(--footer-fg); }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 780px) { .footer-grid { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr); gap: var(--s8); } }
.site-footer .brand-name { color: var(--footer-fg); }
.site-footer h2 {
  font-family: "Figtree", sans-serif; font-size: var(--t-13); font-weight: 700;
  letter-spacing: 0; color: var(--footer-dim); margin-bottom: var(--s3);
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); font-size: var(--t-15); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { font-size: var(--t-13); color: var(--footer-dim); margin: var(--s7) 0 0; max-width: 66ch; }
.footer-tagline { font-size: var(--t-15); color: var(--footer-dim); margin: var(--s3) 0 0; max-width: 34ch; }
.site-footer .brand img { box-shadow: 0 0 0 1px rgba(251,244,230,.18); }
.site-footer :focus-visible { outline-color: var(--sunbeam); }
