:root {
  --bg: #f8f7f3;
  --surface: #fff;
  --ink: #252421;
  --muted: #665f52;
  --accent: #ffcd70;
  --accent-soft: #fff0cf;
  --link: #8a4a00;
  --line: #d9d2c5;
  --green: #19965e;
  --dark: #252421;
  --wrap: 82.5rem;
  --text: 47rem;
  --radius: .75rem;
  --shadow: 0 16px 50px rgba(37,36,33,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8rem; }
body { margin: 0; min-width: 20rem; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 1.0625rem; line-height: 1.65; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-thickness: .09em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: .2rem solid var(--green); outline-offset: .2rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(2.2rem, 5.4vw, 4.3rem); font-weight: 720; }
h2 { margin-bottom: 1.25rem; font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 700; }
h3 { margin-bottom: .65rem; font-size: 1.3rem; }
p { margin-bottom: 1.15rem; }
code { overflow-wrap: anywhere; font: 650 1rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.wrap { width: min(calc(100% - 5rem), var(--wrap)); margin-inline: auto; }
.narrow, .article-narrow { max-width: var(--text); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 1rem; left: 1rem; transform: translateY(-150%); padding: .75rem 1rem; border-radius: .5rem; background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }
.eyebrow { margin-bottom: 1rem; color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow.light { color: var(--accent); }
.lead { max-width: 50rem; color: #4f4a40; font-size: clamp(1.13rem, 2vw, 1.35rem); line-height: 1.58; }
.button { display: inline-flex; min-height: 3.25rem; align-items: center; justify-content: center; gap: .45rem; padding: .82rem 1.3rem; border: .1rem solid var(--accent); border-radius: .55rem; background: var(--accent); color: var(--ink); font-weight: 780; text-decoration: none; transition: transform .15s ease, background-color .15s ease; }
.button:hover { transform: translateY(-2px); background: #ffd98e; text-decoration: none; }
.button-light { border-color: var(--accent); background: var(--accent); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .35rem; padding: .75rem 0; color: var(--ink); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.rule-top { border-top: 1px solid var(--line); }
.big-index { color: var(--accent); font-size: clamp(3rem, 8vw, 7rem); font-weight: 740; font-variant-numeric: tabular-nums; letter-spacing: -.08em; line-height: .85; }

.independent-notice { background: var(--accent); color: var(--ink); font-size: .9rem; }
.independent-notice .wrap { display: flex; min-height: 3rem; align-items: center; justify-content: space-between; gap: 1rem; }
.independent-notice p { margin: .5rem 0; font-weight: 650; }
.independent-notice button { display: none; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border: 0; background: transparent; color: var(--ink); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.js .independent-notice button { display: grid; place-items: center; }
.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid rgba(217,210,197,.9); background: rgba(248,247,243,.94); backdrop-filter: blur(14px); }
.header-inner { display: flex; min-height: 5rem; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--ink); text-decoration: none; }
.brand img { flex: 0 0 auto; }
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.05rem; letter-spacing: -.02em; }
.brand small { margin-top: .26rem; color: var(--muted); font-size: .7rem; letter-spacing: .02em; }
.main-nav { display: flex; align-items: center; gap: 1.5rem; }
.main-nav > a, .help-menu > summary { color: var(--ink); font-size: .92rem; font-weight: 680; text-decoration: none; cursor: pointer; }
.main-nav > a[aria-current="page"] { text-decoration: underline .14rem var(--accent); text-underline-offset: .45rem; }
.help-menu { position: relative; }
.help-menu summary { list-style: none; }
.help-menu summary::-webkit-details-marker { display: none; }
.help-menu summary::after { content: " +"; color: var(--link); }
.help-menu[open] summary::after { content: " −"; }
.help-menu div { position: absolute; top: calc(100% + 1rem); right: 0; display: grid; min-width: 13rem; padding: .65rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.help-menu div a { padding: .7rem .8rem; border-radius: .4rem; color: var(--ink); text-decoration: none; }
.help-menu div a:hover { background: var(--accent-soft); }
.menu-button { display: none; width: 3rem; height: 3rem; padding: .75rem; border: 1px solid var(--line); border-radius: .5rem; background: transparent; cursor: pointer; }
.menu-button span:not(.sr-only) { display: block; width: 100%; height: 2px; margin: 4px 0; background: var(--ink); }

.breadcrumbs { padding-top: 1.25rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .84rem; }
.breadcrumbs li { display: flex; gap: .45rem; }
.breadcrumbs a { color: var(--muted); }

.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(28rem, .95fr); gap: clamp(3rem, 7vw, 7rem); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.hero h1 { max-width: 13ch; font-size: clamp(2.65rem, 5.7vw, 4.8rem); }
.official-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 2rem; color: var(--muted); font-size: .92rem; }
.status-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); }
.scenario-index { border-top: 1px solid var(--ink); }
.scenario-row { display: grid; grid-template-columns: 6rem 1fr auto; gap: 1rem; align-items: center; min-height: 9.3rem; padding: 1rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.scenario-row:hover { text-decoration: none; }
.scenario-row:hover .arrow { transform: translate(3px,-3px); }
.scenario-no { color: #c67914; font-size: clamp(2.7rem, 5vw, 4.8rem); font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.08em; line-height: 1; }
.scenario-row strong, .scenario-row small { display: block; }
.scenario-row strong { margin-bottom: .4rem; font-size: 1.2rem; }
.scenario-row small { max-width: 26rem; color: var(--muted); font-size: .91rem; line-height: 1.45; }
.scenario-row .arrow { font-size: 1.2rem; transition: transform .15s ease; }

.section { padding-top: clamp(4.5rem, 8vw, 7rem); padding-bottom: clamp(4.5rem, 8vw, 7rem); }
.section-heading { max-width: 48rem; margin-bottom: 2.75rem; }
.section-heading p:not(.eyebrow) { color: var(--muted); }
.split-heading { display: grid; max-width: none; grid-template-columns: .6fr 1.4fr; gap: 2rem; }
.split-heading > div { max-width: 48rem; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.notes-grid article { padding: 2rem clamp(1rem, 2vw, 2rem) 2rem 0; }
.notes-grid article + article { padding-left: clamp(1rem, 2vw, 2rem); border-left: 1px solid var(--line); }
.notes-grid span, .diagnostic-grid span, .three-columns-text span { color: var(--link); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.notes-grid p, .diagnostic-grid p { color: var(--muted); }
.inline-cta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 750; text-decoration: none; }
.dark-section { background: var(--dark); color: #f8f7f3; }
.dark-section a { color: var(--accent); }
.connect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.connect-grid > div p:not(.eyebrow) { max-width: 42rem; color: #ded9cf; }
.steps-compact { margin: 0; padding: 0; list-style: none; border-top: 1px solid #625f57; }
.steps-compact li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid #625f57; }
.steps-compact li > span { color: var(--accent); font-size: 1.4rem; font-weight: 750; }
.steps-compact p { margin: .3rem 0 0; color: #c9c4bb; font-size: .95rem; }
.symptom-list { border-top: 1px solid var(--ink); }
.symptom-list a { display: grid; grid-template-columns: minmax(13rem,.8fr) 1.6fr auto; gap: 2rem; align-items: center; min-height: 6.3rem; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.symptom-list a:hover { background: var(--accent-soft); }
.symptom-list span { color: var(--muted); }
.finish-layout, .two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.link-pair { display: flex; flex-wrap: wrap; gap: 1rem 1.8rem; margin-top: 1.5rem; }
.faq-section { background: var(--surface); }
.faq-section details { border-top: 1px solid var(--line); }
.faq-section details:last-child { border-bottom: 1px solid var(--line); }
.faq-section summary { position: relative; padding: 1.35rem 3rem 1.35rem 0; cursor: pointer; font-weight: 720; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; position: absolute; right: .3rem; color: var(--link); font-size: 1.5rem; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { padding-right: 3rem; color: var(--muted); }

.article-head { padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: clamp(3rem, 6vw, 5.5rem); }
.article-head h1 { max-width: 20ch; }
.article-head .button { margin-top: .8rem; }
.article-layout { display: grid; grid-template-columns: 14rem minmax(0, var(--text)); gap: clamp(3rem, 8vw, 7rem); justify-content: center; border-top: 1px solid var(--line); }
.toc { position: sticky; top: 7rem; display: grid; align-self: start; gap: .65rem; padding: 1.25rem 0; border-top: 1px solid var(--ink); font-size: .9rem; }
.toc a { color: var(--muted); }
.prose section + section, .prose > h2:not(:first-child) { margin-top: 3.4rem; }
.prose h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.prose p, .prose li { color: #4f4a40; }
.address-check { margin: 2rem 0; padding: 1.6rem; border: 1px solid var(--line); border-left: .45rem solid var(--green); border-radius: .35rem; background: var(--surface); }
.address-check span, .next-box span { display: block; margin-bottom: .6rem; color: var(--muted); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.address-check code { display: block; margin-bottom: .8rem; color: var(--ink); }
.address-check p { margin-bottom: 0; }
.numbered { margin: 2rem 0 0; padding: 0; counter-reset: step; list-style: none; }
.numbered li { position: relative; min-height: 5rem; padding: .2rem 0 1.5rem 4rem; border-left: 1px solid var(--line); }
.numbered li::before { content: counter(step, decimal-leading-zero); counter-increment: step; position: absolute; left: -.05rem; top: 0; transform: translateX(-50%); padding: .2rem .5rem; background: var(--bg); color: var(--link); font-weight: 800; }
.numbered li p { margin: .3rem 0 0; }
.platform-block { padding: 2rem; border-top: .35rem solid var(--accent); background: var(--surface); box-shadow: var(--shadow); }
.platform-label, .path-label { display: inline-block; margin-bottom: 1rem; padding: .3rem .6rem; border-radius: 99rem; background: var(--accent-soft); color: var(--link); font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.next-box { margin-top: 3rem; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--accent-soft); }
.next-box p { margin: 0; color: var(--ink); }

.scenario-filter { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.scenario-filter[hidden], .reset-comparison[hidden] { display: none !important; }
.js .scenario-filter { display: flex; }
.scenario-filter button, .reset-comparison { min-height: 2.9rem; padding: .65rem 1rem; border: 1px solid var(--ink); border-radius: 99rem; background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; }
.scenario-filter button[aria-pressed="true"] { background: var(--accent); }
.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.comparison-table { width: 100%; min-width: 58rem; border-collapse: collapse; table-layout: fixed; }
.comparison-table th, .comparison-table td { padding: 1.25rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.comparison-table tr:last-child > * { border-bottom: 0; }
.comparison-table tr > *:last-child { border-right: 0; }
.comparison-table thead th { background: #fbfaf7; font-size: 1.02rem; }
.comparison-table thead th:first-child { width: 19%; color: var(--muted); font-size: .85rem; }
.comparison-table thead span { display: block; margin-bottom: .7rem; color: #c67914; font-size: 2.4rem; font-variant-numeric: tabular-nums; line-height: 1; }
.comparison-table tbody th { color: var(--muted); font-size: .88rem; }
.comparison-table td { color: #4f4a40; font-size: .95rem; line-height: 1.55; }
.comparison-table [data-col].selected { background: #fff7e6; }
.comparison-table [data-col][hidden] { display: none; }
.table-note { margin: 1rem 0 0; color: var(--muted); font-size: .88rem; }
.action-plans { display: grid; gap: 0; }
.action-plans article { display: grid; grid-template-columns: 8rem 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 8rem; }
.action-plans article:last-of-type { border-bottom: 1px solid var(--line); }
.action-plans article > div { max-width: var(--text); }
.action-plans article[hidden] { display: none; }
.reset-comparison { justify-self: start; margin-top: 1.5rem; }
.tint-section { background: var(--accent-soft); }

.qr-intro { display: grid; grid-template-columns: minmax(16rem,.75fr) minmax(0,1.25fr); gap: clamp(3rem, 8vw, 8rem); align-items: center; border-top: 1px solid var(--line); }
.qr-figure { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qr-figure p { margin: .8rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.callout { margin-top: 2rem; padding: 1.25rem; border-left: .35rem solid var(--accent); background: var(--surface); }
.callout p { margin: .4rem 0 0; color: var(--muted); }
.diagnostic-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--ink); }
.diagnostic-grid article { padding: 2rem 2rem 0 0; }
.diagnostic-grid article + article { padding-left: 2rem; border-left: 1px solid var(--line); }
.checklist { margin: 2rem 0 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid #dcc99f; }
.checklist li:last-child { border-bottom: 1px solid #dcc99f; }
.checklist li > span { font-weight: 800; }
.checklist p { margin: .25rem 0 0; color: var(--muted); }

.browser-board { display: grid; grid-template-columns: 1.3fr .7fr; gap: 1px; padding: 1px; border: 1px solid var(--line); background: var(--line); }
.browser-main, .browser-aside { padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface); }
.browser-aside { background: var(--dark); color: #f8f7f3; }
.browser-aside p { color: #c9c4bb; }
.plain-list { margin: 2rem 0 0; padding: 0; list-style: none; }
.plain-list li { padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); }
.three-steps { display: grid; grid-template-columns: 1.2fr repeat(3,1fr); gap: 0; }
.three-steps > div, .three-steps article { padding-right: 2rem; }
.three-steps article { padding-left: 2rem; border-left: 1px solid #625f57; }
.three-steps article span { color: var(--accent); font-weight: 800; }
.three-steps article p { color: #c9c4bb; font-size: .95rem; }

.symptom-index { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; padding: 1px; background: var(--line); }
.symptom-index a { display: grid; padding: 1.5rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.symptom-index a:hover { background: var(--accent-soft); }
.symptom-index span { color: var(--link); font-weight: 800; }
.symptom-index small { margin-top: .4rem; color: var(--muted); }
.diagnostic-flow { padding-top: 0; }
.diagnostic-flow article { display: grid; grid-template-columns: 7rem minmax(0,var(--text)); gap: 2rem; padding: 3rem 0; border-top: 1px solid var(--line); }
.flow-mark { color: #c67914; font-size: 3.5rem; font-weight: 730; line-height: 1; }
.related-panel { border-top: 1px solid var(--ink); }
.related-panel > div { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.related-panel a { display: grid; padding: 1.5rem; background: var(--surface); color: var(--ink); text-decoration: none; }
.related-panel a:hover { background: var(--accent-soft); }
.related-panel span { margin-top: .5rem; color: var(--muted); font-size: .9rem; }

.shared-timeline { position: relative; max-width: 66rem; }
.timeline-head { display: grid; grid-template-columns: repeat(3,1fr); margin-left: 9rem; padding-bottom: 1rem; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.shared-timeline article { display: grid; grid-template-columns: 7rem 1fr; gap: 2rem; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.timeline-no { color: #c67914; font-size: 3.5rem; font-weight: 730; line-height: 1; }
.shared-timeline ul { padding-left: 1.2rem; color: var(--muted); }
.exit-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; }
.exit-card ol { margin: 0; padding: 0; list-style: none; }
.exit-card li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid #625f57; }
.exit-card li:last-child { border-bottom: 1px solid #625f57; }
.exit-card li span { color: var(--accent); font-weight: 800; }

.device-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 1px; background: var(--line); }
.device-split article { padding: clamp(1.5rem, 4vw, 3rem); background: var(--surface); }
.device-split ol { padding-left: 1.3rem; }
.device-split li { margin-bottom: .6rem; color: var(--muted); }
.session-check { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; border-top: 1px solid var(--ink); }
.check-lines p { padding: 1rem 0; border-bottom: 1px solid var(--line); }

.manifesto { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; border-top: 1px solid var(--ink); }
.manifesto > div { padding: 2rem 2rem 0 0; }
.manifesto > div + div { padding-left: 2rem; border-left: 1px solid var(--line); }
.manifesto span { color: #c67914; font-size: 2rem; font-weight: 750; }
.manifesto p { color: var(--muted); }
.owner-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 8vw, 7rem); }
.owner-grid dl { margin: 0; }
.owner-grid dl div { display: grid; grid-template-columns: 8rem 1fr; padding: 1rem 0; border-top: 1px solid #625f57; }
.owner-grid dl div:last-child { border-bottom: 1px solid #625f57; }
.owner-grid dt { color: #aaa59c; }
.owner-grid dd { margin: 0; }

.contact-sheet { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem,8vw,8rem); border-top: 1px solid var(--ink); }
.contact-name h2 { font-size: clamp(2rem,5vw,4rem); }
.contact-name > span { color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-sheet dl { margin: 0; }
.contact-sheet dl > div { display: grid; grid-template-columns: 7rem 1fr; gap: .5rem 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.contact-sheet dt { color: var(--muted); }
.contact-sheet dd { margin: 0; font-size: 1.2rem; font-weight: 680; }
.contact-sheet small { grid-column: 2; color: var(--muted); }

.legal-layout { display: grid; grid-template-columns: 15rem minmax(0,var(--text)); gap: clamp(3rem,8vw,7rem); justify-content: center; border-top: 1px solid var(--line); }
.legal-layout aside { align-self: start; padding: 1.25rem; border-top: .3rem solid var(--accent); background: var(--surface); }
.legal-layout aside p { margin: .5rem 0 0; color: var(--muted); font-size: .9rem; }
.statement { display: grid; grid-template-columns: 9rem 1fr; gap: 3rem; align-items: start; border-top: 1px solid var(--ink); }
.statement-mark { color: #c67914; font-size: 7rem; font-weight: 700; line-height: .8; }
.statement > div:last-child { max-width: var(--text); }
.three-columns-text { display: grid; grid-template-columns: repeat(3,1fr); padding-top: 0; }
.three-columns-text article { padding: 2rem 2rem 0 0; border-top: 1px solid var(--line); }
.three-columns-text article + article { padding-left: 2rem; border-left: 1px solid var(--line); }
.three-columns-text p { color: var(--muted); }

.site-footer { padding-top: 4rem; background: var(--dark); color: #ded9cf; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .75fr .85fr 1fr; gap: 3rem; }
.brand.inverse { color: #f8f7f3; }
.brand.inverse small { color: #aaa59c; }
.footer-brand p { max-width: 24rem; margin-top: 1.3rem; color: #aaa59c; font-size: .9rem; }
.site-footer nav, .footer-contact { display: grid; align-content: start; gap: .55rem; }
.site-footer nav strong, .footer-contact strong { margin-bottom: .55rem; color: var(--accent); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #f8f7f3; }
.footer-contact span { margin-top: .6rem; color: #aaa59c; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; padding-bottom: 1.25rem; border-top: 1px solid #514f49; color: #aaa59c; font-size: .8rem; }
.not-found { display: grid; min-height: 100vh; place-items: center; padding: 2rem; }
.not-found > div { width: min(100%, 44rem); }
.not-found .big-index { margin: 5rem 0 1rem; }

@media (max-width: 68rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { max-width: 54rem; }
  .scenario-index { display: grid; grid-template-columns: repeat(3,1fr); }
  .scenario-row { grid-template-columns: 1fr auto; align-content: start; min-height: 13rem; padding: 1.25rem; border-right: 1px solid var(--line); }
  .scenario-row .scenario-no { grid-column: 1 / -1; font-size: 3.2rem; }
  .three-steps { grid-template-columns: 1fr 1fr; row-gap: 3rem; }
  .three-steps > div { grid-column: 1/-1; }
  .footer-grid { grid-template-columns: 1.2fr repeat(2,1fr); }
  .footer-contact { grid-column: 2 / -1; }
}

@media (max-width: 52rem) {
  .wrap { width: min(calc(100% - 2.5rem), var(--wrap)); }
  .js .menu-button { display: block; }
  .main-nav { flex-wrap: wrap; width: 100%; padding: .4rem 0 1rem; }
  .js .header-inner { flex-wrap: wrap; }
  .js .main-nav { display: none; }
  .js .main-nav.is-open { display: flex; }
  .main-nav > a, .help-menu { width: 100%; }
  .main-nav > a, .help-menu > summary { display: block; padding: .75rem 0; }
  .help-menu div { position: static; margin-top: .3rem; box-shadow: none; }
  .brand small { max-width: 14rem; }
  .split-heading, .connect-grid, .finish-layout, .two-col, .qr-intro, .browser-board, .exit-card, .session-check, .owner-grid, .contact-sheet, .legal-layout, .statement { grid-template-columns: 1fr; }
  .notes-grid, .diagnostic-grid, .symptom-index, .related-panel > div, .manifesto, .three-columns-text, .device-split { grid-template-columns: 1fr; }
  .notes-grid article, .notes-grid article + article, .diagnostic-grid article, .diagnostic-grid article + article, .manifesto > div, .manifesto > div + div, .three-columns-text article, .three-columns-text article + article { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .three-steps { grid-template-columns: 1fr; }
  .three-steps > div { grid-column: auto; }
  .three-steps article { padding: 1.5rem 0; border-top: 1px solid #625f57; border-left: 0; }
  .related-panel a { min-height: 8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .wrap { width: min(calc(100% - 2rem), var(--wrap)); }
  .independent-notice .wrap { width: calc(100% - 1rem); }
  .independent-notice p { font-size: .78rem; line-height: 1.4; }
  .header-inner { min-height: 4.5rem; }
  .brand small { display: none; }
  .hero { gap: 2.5rem; padding-top: 3.5rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .scenario-index { display: block; }
  .scenario-row { grid-template-columns: 4.2rem 1fr auto; min-height: 0; padding: 1.2rem 0; border-right: 0; }
  .scenario-row .scenario-no { grid-column: auto; font-size: 2.25rem; }
  .scenario-row small { font-size: .82rem; }
  .actions { align-items: stretch; }
  .actions .button { width: 100%; }
  .symptom-list a { grid-template-columns: 1fr auto; gap: .3rem 1rem; padding: 1.2rem 0; }
  .symptom-list span { grid-column: 1/-1; font-size: .9rem; }
  .action-plans article { grid-template-columns: 4.5rem 1fr; gap: 1rem; }
  .action-plans .scenario-no { font-size: 2.3rem; }
  .comparison-wrap { overflow: visible; border: 0; background: transparent; }
  .comparison-table { min-width: 0; table-layout: auto; }
  .comparison-table thead { display: none; }
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table th, .comparison-table td { display: block; width: 100%; }
  .comparison-table tr { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: .6rem; overflow: hidden; background: var(--surface); }
  .comparison-table tbody th { padding: .9rem 1rem; border: 0; background: var(--ink); color: #fff; }
  .comparison-table td { position: relative; padding: 2.5rem 1rem 1rem; border-right: 0; }
  .comparison-table td::before { position: absolute; top: .65rem; left: 1rem; color: var(--link); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
  .comparison-table td[data-col="personal"]::before { content: "01 · Личный"; }
  .comparison-table td[data-col="work"]::before { content: "02 · Рабочий"; }
  .comparison-table td[data-col="shared"]::before { content: "03 · Общий"; }
  .diagnostic-flow article, .shared-timeline article { grid-template-columns: 3.5rem 1fr; gap: 1rem; }
  .flow-mark, .timeline-no { font-size: 2.2rem; }
  .timeline-head { display: none; }
  .owner-grid dl div, .contact-sheet dl > div { grid-template-columns: 1fr; }
  .contact-sheet small { grid-column: auto; }
  .statement { grid-template-columns: 4.5rem 1fr; gap: 1rem; }
  .statement-mark { font-size: 4.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .independent-notice, .site-header, .site-footer, .scenario-filter, .button { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 2rem; }
}
