/* ravunomedia.com - editorial stylesheet */
:root {
  --navy: #2b4675;
  --navy-900: #1c355b;
  --navy-950: #142847;
  --navy-100: #e2e8f2;
  --navy-50: #f0f3f8;
  --brown: #582c0b;
  --brown-400: #9a6a43;
  --brown-100: #f2e7da;
  --sage: #8ea263;
  --sage-700: #5d7139;
  --sage-300: #c3cfa6;
  --sage-200: #dbe3c9;
  --sage-100: #e9eedc;
  --sage-50: #f4f6ee;
  --paper: #fbf8f1;
  --paper-2: #f5f0e4;
  --paper-3: #ebe4d3;
  --card: #fffdf8;
  --ink: #1d2638;
  --ink-soft: #444d60;
  --ink-mute: #5c6373;
  --rule: #e0d8c6;
  --on-dark: #fffdf8;
  --on-dark-soft: #d5dceb;
  --sage-on-dark: #c5d3a0;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Karla", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1180px;
  --measure: 66ch;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow: 0 22px 44px -26px rgba(28, 53, 91, .38);
  --shadow-soft: 0 12px 30px -20px rgba(28, 53, 91, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-color: var(--sage); }
a:hover { color: var(--brown); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.16; margin: 0 0 .6em; color: var(--navy-900); letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; border-radius: var(--pill);
  padding: .78em 1.5em; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s; }
.btn:hover { transform: translateY(-1px); }
.btn:hover svg { transform: translateX(3px); }
.btn:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.btn-ink { background: var(--navy); color: var(--on-dark); box-shadow: 0 10px 22px -14px rgba(28, 53, 91, .7); }
.btn-ink:hover { background: var(--navy-900); color: var(--on-dark); }
.btn-paper { background: var(--card); color: var(--navy-900); border-color: var(--card); }
.btn-paper:hover { background: var(--sage-100); border-color: var(--sage-100); color: var(--navy-900); }
.btn-brown { background: var(--brown); color: var(--on-dark); }
.btn-brown:hover { background: var(--navy-900); color: var(--on-dark); }
.btn-lg { font-size: 1.02rem; padding: .95em 1.8em; }

/* ---------- Topbar + header ---------- */
.topbar {
  background: var(--navy-950); color: var(--on-dark-soft);
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  text-align: center; padding: 7px 16px;
}
.topbar span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); background: var(--sage); margin-right: 12px; vertical-align: middle; }
.site-header { position: static; background: var(--card); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; }

/* ---------- Hero: framed image + overlapping paper card ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--navy-50) 0%, var(--paper) 100%); padding: 28px 0 8px; isolation: isolate; }
.hero-media { position: relative; max-width: calc(var(--wrap) + 120px); margin: 0 auto; padding: 0 24px; }
.hero-media img { width: 100%; height: clamp(300px, 46vw, 560px); object-fit: cover; object-position: center; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-media::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 24px; right: 24px; border-radius: var(--radius-lg); pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 40, 71, 0) 45%, rgba(20, 40, 71, .45) 100%);
}
.hero-inner { position: relative; margin-top: clamp(-190px, -13vw, -90px); }
.hero-copy {
  position: relative; max-width: 860px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 46px 56px 40px; box-shadow: 0 30px 60px -36px rgba(28, 53, 91, .45);
}
.hero-copy::before {
  content: ""; position: absolute; top: -1px; left: 56px; width: 132px; height: 6px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--navy) 0 50%, var(--brown) 50% 75%, var(--sage) 75% 100%);
}
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); margin-bottom: 20px; }
.hero-kicker .rule { width: 34px; height: 2px; border-radius: 2px; background: var(--sage); }
.hero-kicker time { color: var(--ink-mute); }
.hero h1 { color: var(--navy-900); font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 700; line-height: 1.08; margin-bottom: .45em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--brown); }
.hero-dek { font-size: 1.15rem; line-height: 1.65; color: var(--ink-soft); max-width: 60ch; margin-bottom: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.hero-meta small { color: var(--ink-mute); font-size: .85rem; display: inline-flex; align-items: center; gap: 8px; }
.hero-meta small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* ---------- Article ---------- */
.article { padding: 80px 0 24px; }
.intro { max-width: 820px; margin: 0 auto 64px; }
.intro .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 18px; }
.intro .eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--brown); }
.intro .lead { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.5; color: var(--navy-900); font-weight: 500; }
.intro p { color: var(--ink-soft); }
.term-note { background: var(--sage-50); border: 1px solid var(--sage-200); border-radius: var(--radius); padding: 18px 22px 18px 58px; font-size: .98rem; color: var(--ink-soft); position: relative; }
.term-note::before {
  content: ""; position: absolute; left: 20px; top: 20px; width: 24px; height: 24px; border-radius: 50%; background-color: var(--sage-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d7139' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 11v6M12 7.5v.01'/%3E%3C/svg%3E");
  background-size: 18px; background-repeat: no-repeat; background-position: center;
}

.chapter-block { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 60px; align-items: center; padding: 60px 0; }
.chapter-block.flip { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
.chapter-block.flip .chapter-text { order: 2; }
.chapter-block.flip .chapter-side { order: 1; }
.chapter-block.panel { background: var(--paper-2); border-radius: var(--radius-lg); padding: 56px 52px; margin: 24px 0; border: 1px solid var(--rule); }
.chapter-block.stack { grid-template-columns: minmax(0, 1fr); gap: 36px; }
.chapter-block.stack .chapter-text { max-width: 760px; }
.chapter-block.stack .figure img { aspect-ratio: 21 / 9; }
.chapter-block.stack .figure-wide::before { display: none; }
.chapter-block.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.chapter-text { max-width: var(--measure); }
.chapter-text p { color: var(--ink-soft); }
.chapter-text h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); }
.chapter { display: inline-flex; align-items: center; gap: 10px; background: var(--sage-100); border-radius: var(--pill); padding: 5px 16px 5px 5px; margin-bottom: 18px; }
.chapter-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--on-dark); font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.chapter-label { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); }

.figure { margin: 0; position: relative; }
.figure img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--paper-3); position: relative; z-index: 1; }
.figure figcaption { display: flex; gap: 10px; font-size: .86rem; line-height: 1.5; color: var(--ink-mute); margin-top: 14px; }
.figure figcaption::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--sage); }
.figure-tall { max-width: 370px; margin-right: auto; }
.figure-tall::before { content: ""; position: absolute; top: -16px; left: -16px; width: 62%; height: 58%; border-radius: var(--radius); background: var(--sage-200); z-index: 0; }
.figure-tall img { aspect-ratio: 2 / 3; object-fit: cover; }
.figure-wide img { aspect-ratio: 3 / 2; object-fit: cover; }
.figure-wide::before { content: ""; position: absolute; right: -14px; bottom: 42px; width: 46%; height: 56%; border-radius: var(--radius); border: 2px solid var(--brown-400); z-index: 0; opacity: .5; }
.chapter-block:not(.flip) .figure-tall { margin-left: auto; margin-right: 0; }

.side-note { background: var(--card); border: 1px solid var(--sage-200); border-radius: var(--radius); padding: 30px 28px 22px; box-shadow: var(--shadow-soft); }
.side-note h3 { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin-bottom: 12px; }
.side-note h3 svg { width: 22px; height: 22px; flex: none; color: var(--sage-700); }
.side-note ul { list-style: none; margin: 0; padding: 0; }
.side-note li { padding: 11px 0 11px 32px; border-top: 1px dashed var(--sage-300); position: relative; color: var(--ink-soft); font-size: .96rem; line-height: 1.5; }
.side-note li:first-child { border-top: 0; }
.side-note li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%; background-color: var(--sage-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d7139' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.side-note li strong { color: var(--navy-900); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare > div { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); }
.compare > div + div { background: var(--navy); border-color: var(--navy); }
.compare h3 { font-size: 1.08rem; margin-bottom: 12px; }
.compare > div + div h3 { color: var(--on-dark); }
.compare ul { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.compare li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.compare li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 10px; height: 2px; border-radius: 2px; background: var(--brown-400); }
.compare > div + div ul { color: var(--on-dark-soft); }
.compare > div + div li::before {
  left: 0; top: 4px; width: 15px; height: 15px; background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5d3a0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 10px; }
.inline-cta small { color: var(--ink-mute); font-size: .86rem; }

/* Offer chapter: navy surface */
.chapter-block.offer { background: var(--navy); border-radius: var(--radius-lg); padding: 60px 56px; margin: 40px 0 16px; position: relative; overflow: hidden; }
.chapter-block.offer::after { content: ""; position: absolute; right: -90px; top: -90px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(142, 162, 99, .16); pointer-events: none; }
.chapter-block.offer .chapter { background: rgba(255, 253, 248, .1); }
.chapter-block.offer .chapter-no { background: var(--sage); color: var(--navy-950); }
.chapter-block.offer .chapter-label { color: var(--sage-on-dark); }
.chapter-block.offer h2 { color: var(--on-dark); }
.chapter-block.offer .chapter-text p { color: var(--on-dark-soft); }
.chapter-block.offer .inline-cta small { color: var(--on-dark-soft); }
.chapter-block.offer .side-note { position: relative; z-index: 1; border-color: var(--card); }

/* Pull-quote band */
.quote-band { background: var(--sage-100); color: var(--navy-900); padding: 80px 0; position: relative; overflow: hidden; margin: 32px 0; border-top: 1px solid var(--sage-200); border-bottom: 1px solid var(--sage-200); }
.quote-band::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(93, 113, 57, .16) 1.5px, transparent 2px); background-size: 22px 22px; pointer-events: none; }
.quote-band blockquote { position: relative; margin: 0 auto; max-width: 880px; text-align: center; font-family: var(--serif); font-size: clamp(1.45rem, 3.2vw, 2.3rem); font-weight: 500; line-height: 1.34; font-style: italic; }
.quote-band blockquote::before { content: "\201C"; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; background: var(--brown); color: var(--on-dark); font-family: var(--serif); font-style: normal; font-size: 3rem; line-height: 1; padding-top: 18px; }
.quote-band blockquote p { margin: 0; }
.quote-band cite { display: block; margin-top: 24px; font-family: var(--sans); font-style: normal; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-700); }

/* ---------- Section headings ---------- */
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); margin-bottom: 14px; }
.section-head .eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--sage); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); margin-bottom: .35em; }
.section-head p { color: var(--ink-soft); margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Film-strip divider ---------- */
.film-strip { height: 26px; background-color: var(--navy-900); background-image: radial-gradient(circle, var(--paper) 0 4px, transparent 4.5px); background-size: 26px 26px; background-position: center; }

/* ---------- Features (bento) ---------- */
.features { padding: 92px 0 96px; background: var(--sage-50); }
.feature-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--sage-200); border-radius: var(--radius-lg); padding: 30px 28px 28px; position: relative; overflow: hidden; }
.feature:first-child { grid-column: span 2; background: var(--navy); border-color: var(--navy); display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-content: center; }
.feature:first-child .feat-icon { grid-row: span 3; background: var(--sage); color: var(--navy-950); box-shadow: 0 0 0 6px rgba(142, 162, 99, .25); }
.feature:first-child h3 { color: var(--on-dark); font-size: 1.55rem; }
.feature:first-child p { color: var(--on-dark-soft); }
.feature:first-child .feat-tag { color: var(--sage-on-dark); }
.feature:first-child .feat-mark { color: rgba(255, 253, 248, .06); }
.feature:nth-child(4) { background: var(--brown-100); border-color: var(--brown-100); }
.feat-mark { position: absolute; right: -24px; bottom: -28px; width: 140px; height: 140px; color: var(--sage-100); pointer-events: none; }
.feat-icon { position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--sage-100); color: var(--navy); margin-bottom: 20px; }
.feat-icon svg { width: 25px; height: 25px; }
.feature h3 { position: relative; font-size: 1.28rem; margin-bottom: .45em; }
.feature p { position: relative; color: var(--ink-soft); margin: 0; font-size: .98rem; line-height: 1.6; }
.feature .feat-tag { position: relative; display: block; font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-700); margin-bottom: 6px; }
.feature:nth-child(4) .feat-tag { color: var(--brown); }
.feature:nth-child(4) .feat-icon { background: var(--card); color: var(--brown); }

/* ---------- Steps (pipeline rail) ---------- */
.steps { padding: 100px 0 96px; }
.step-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; position: relative; }
.step-grid::before { content: ""; position: absolute; top: 29px; left: 30px; right: calc((100% - 66px) / 4 - 30px); height: 2px; background: repeating-linear-gradient(90deg, var(--sage) 0 10px, transparent 10px 18px); }
.step { position: relative; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--navy); color: var(--on-dark); font-family: var(--serif); font-size: 1.45rem; font-weight: 700; line-height: 1; border: 5px solid var(--paper); box-shadow: 0 0 0 2px var(--sage); margin-bottom: 22px; }
.step-card { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow-soft); height: calc(100% - 82px); }
.step-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--brown-100); color: var(--brown); margin-bottom: 14px; }
.step-icon svg { width: 21px; height: 21px; }
.step h3 { font-size: 1.16rem; margin-bottom: .4em; }
.step p { color: var(--ink-soft); font-size: .96rem; line-height: 1.6; margin: 0; }

/* ---------- FAQ (stacked cards) ---------- */
.faq { padding: 96px 0; background: var(--paper-2); border-top: 1px solid var(--rule); }
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-width: 880px; }
.faq-layout .section-head { margin-left: auto; margin-right: auto; text-align: center; margin-bottom: 36px; }
.faq-list details { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); margin-bottom: 12px; padding: 0 24px; transition: border-color .25s, box-shadow .25s; }
.faq-list details[open] { border-color: var(--sage-300); box-shadow: var(--shadow-soft); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-family: var(--serif); font-size: 1.16rem; font-weight: 600; color: var(--navy-900); line-height: 1.35; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid var(--sage-700); outline-offset: 4px; border-radius: 6px; }
.faq-q { display: flex; align-items: baseline; gap: 14px; }
.faq-q small { font-family: var(--sans); font-size: .76rem; font-weight: 700; color: var(--sage-700); letter-spacing: .08em; }
.faq-toggle { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--sage-100); display: grid; place-items: center; color: var(--navy); transition: background .25s, color .25s; }
.faq-toggle svg { width: 14px; height: 14px; transition: transform .25s; }
.faq-list details[open] .faq-toggle { background: var(--navy); color: var(--on-dark); }
.faq-list details[open] .faq-toggle svg { transform: rotate(45deg); }
.faq-answer { padding: 0 50px 22px 34px; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ---------- Bottom CTA ---------- */
.cta-final { padding: 96px 0 72px; }
.cta-panel { max-width: 960px; margin: 0 auto; border-radius: 32px; padding: 64px 52px 56px; text-align: center; position: relative; overflow: hidden; background: var(--navy-900); color: var(--on-dark); isolation: isolate; }
.cta-panel::before { content: ""; position: absolute; left: -70px; bottom: -110px; width: 280px; height: 280px; border-radius: 50%; background: rgba(142, 162, 99, .22); z-index: -1; }
.cta-panel::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid rgba(197, 211, 160, .35); z-index: -1; }
.cta-panel .eyebrow { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--sage-on-dark); margin-bottom: 14px; }
.cta-panel h2 { color: var(--on-dark); font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 20ch; margin: 0 auto .4em; }
.cta-panel p { color: var(--on-dark-soft); max-width: 54ch; margin: 0 auto 28px; }
.cta-panel .btn { position: relative; z-index: 1; }
.disclaimer { max-width: 880px; margin: 28px auto 0; font-size: .82rem; line-height: 1.65; color: var(--ink-mute); text-align: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper-2); border-top: 4px solid var(--navy); border-image: linear-gradient(90deg, var(--navy) 0 55%, var(--brown) 55% 78%, var(--sage) 78% 100%) 1; padding: 56px 0 32px; color: var(--ink-soft); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.footer-logo { height: 44px; width: auto; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 10px 36px; }
.footer-links a { color: var(--navy); text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: var(--brown); text-decoration: underline; }
.footer-identity p { margin: 0 0 6px; line-height: 1.5; }
.footer-identity strong { color: var(--navy-900); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 22px; margin: 8px 0 0; font-size: .84rem; color: var(--ink-mute); }

/* ---------- Doc pages ---------- */
.doc-hero { background: var(--sage-50); color: var(--navy-900); padding: 68px 0 56px; position: relative; overflow: hidden; border-bottom: 1px solid var(--sage-200); }
.doc-hero::before { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: var(--sage-100); }
.doc-hero::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 140px; height: 5px; border-radius: 0 5px 0 0; background: linear-gradient(90deg, var(--navy) 0 50%, var(--brown) 50% 75%, var(--sage) 75% 100%); }
.doc-hero .wrap { position: relative; }
.doc-hero .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--brown); display: block; margin-bottom: 12px; }
.doc-hero h1 { color: var(--navy-900); font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 .3em; }
.doc-hero p { color: var(--ink-soft); margin: 0; max-width: 60ch; }
.doc { padding: 64px 0 88px; }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: 1.5rem; margin-top: 1.8em; padding-top: 1em; border-top: 1px solid var(--rule); }
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body ul { padding-left: 20px; margin: 0 0 1.1em; }
.doc-body li { margin-bottom: 6px; }
.doc-body li::marker { color: var(--sage-700); }
.contact-card { background: var(--card); border: 1px solid var(--sage-200); border-radius: var(--radius); padding: 28px; margin: 8px 0 28px; position: relative; box-shadow: var(--shadow-soft); }
.contact-card::before { content: ""; position: absolute; top: -1px; left: 28px; width: 72px; height: 5px; border-radius: 0 0 5px 5px; background: var(--brown); }
.contact-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 24px; }
.contact-card dt { font-weight: 700; color: var(--navy-900); }
.contact-card dd { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn svg, .faq-toggle, .faq-toggle svg, .faq-list details { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .step-grid::before { display: none; }
  .step-card { height: auto; }
  .chapter-block, .chapter-block.flip { gap: 40px; }
  .chapter-block.panel { padding: 48px 36px; }
  .chapter-block.offer { padding: 52px 40px; }
  .feature-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .chapter-block, .chapter-block.flip, .chapter-block.even { grid-template-columns: 1fr; padding: 44px 0; }
  .chapter-block.flip .chapter-text { order: 1; }
  .chapter-block.flip .chapter-side { order: 2; }
  .chapter-block.panel { padding: 40px 28px; }
  .chapter-block.offer { padding: 44px 28px; }
  .chapter-block.stack .figure img { aspect-ratio: 3 / 2; }
  .figure-tall, .chapter-block:not(.flip) .figure-tall { max-width: 330px; margin: 16px auto 0; }
  .figure-wide::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding: 38px 36px 34px; }
  .hero-copy::before { left: 36px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .brand img { height: 42px; }
  .header-inner .btn { padding: .62em 1.05em; font-size: .85rem; }
  .hero { padding-top: 16px; }
  .hero-media { padding: 0 16px; }
  .hero-media::after { left: 16px; right: 16px; }
  .hero-media img { height: 260px; border-radius: var(--radius); }
  .hero-inner { margin-top: -56px; }
  .hero-copy { padding: 32px 20px 26px; border-radius: var(--radius); }
  .hero-copy::before { left: 20px; width: 96px; }
  .hero-dek { font-size: 1.02rem; }
  .hero-kicker { gap: 6px 12px; }
  .hero-kicker .rule { display: none; }
  .inline-cta .btn { padding: .78em 1.15em; font-size: .9rem; }
  .article { padding-top: 52px; }
  .intro { margin-bottom: 36px; }
  .term-note { padding: 16px 16px 16px 52px; }
  .term-note::before { left: 16px; top: 18px; }
  .chapter-block.panel, .chapter-block.offer { padding: 36px 20px; border-radius: var(--radius); }
  .chapter-block.offer::after { display: none; }
  .figure-tall::before { top: -10px; left: -10px; }
  .compare { grid-template-columns: 1fr; }
  .quote-band { padding: 56px 0; }
  .quote-band blockquote::before { width: 52px; height: 52px; font-size: 2.5rem; padding-top: 14px; }
  .features, .steps, .faq { padding: 64px 0; }
  .feature-bento { grid-template-columns: 1fr; }
  .feature:first-child { grid-template-columns: 1fr; }
  .feature:first-child .feat-icon { grid-row: auto; }
  .feature:first-child h3 { font-size: 1.35rem; }
  .step-grid { grid-template-columns: 1fr; row-gap: 18px; }
  .step-grid::before { display: block; top: 30px; bottom: 30px; left: 29px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sage) 0 10px, transparent 10px 18px); }
  .step { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 16px; align-items: start; }
  .step-num { margin-bottom: 0; }
  .faq-list details { padding: 0 16px; }
  .faq-list summary { font-size: 1.04rem; gap: 14px; }
  .faq-answer { padding: 0 0 20px 0; }
  .cta-final { padding: 64px 0 56px; }
  .cta-panel { padding: 44px 22px 40px; border-radius: var(--radius-lg); }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
  .contact-card dl { grid-template-columns: 1fr; gap: 4px; }
  .contact-card dd { margin-bottom: 10px; }
}
@media (max-width: 380px) {
  .brand img { height: 38px; }
  .header-inner .btn { padding: .58em .85em; font-size: .8rem; }
  .hero h1 { font-size: 1.85rem; }
  .faq-q { gap: 10px; }
}
