/* =====================================================================
   Clause · the style
   Plain-English law: Libre Caslon for headlines and the documents, IBM
   Plex Sans for reading, on foolscap white with ink, one bench green and
   a track-changes red. Signature pieces: the redline (.redline: a clause
   whose legalese strikes through in red while plain English goes in, in
   green; Ours, Marked up or Original), the matter timeline (.steps: what
   you do, what we do, and where you are), terms you tap to explain
   (.term + .def) and the fixed-fee quote (.quote: our fee, other people's
   fees, GST and the total, in writing).
   Motion: html.calm stills everything (footer switch, remembered as
   "site-motion"; default from prefers-reduced-motion).
   ===================================================================== */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }
html.calm:focus-within { scroll-behavior: auto; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--fs-body)/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--margin); color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: var(--r-s); background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; transition: top var(--d) var(--ease); }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h1, .h2, .h3 { font-family: var(--display); font-weight: 400; color: var(--ink); text-wrap: balance; }
.h1 { font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-h2); line-height: 1.06; letter-spacing: -0.015em; }
.h3 { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.25; font-weight: 700; }
/* the signature move: a legalese word struck out in red, the plain one inserted in green */
.h1 del, .h2 del { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 0.06em; font-size: 0.62em; vertical-align: 0.2em; margin-right: 0.12em; white-space: nowrap; }
.h1 em, .h2 em { font-style: italic; font-family: var(--serif); font-size: 0.9em; letter-spacing: -0.02em; color: var(--green); text-decoration: underline; text-decoration-thickness: 0.05em; text-underline-offset: 0.14em; text-decoration-color: color-mix(in srgb, var(--green) 55%, transparent); }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.tag { display: inline-flex; align-items: center; gap: 10px; font: 600 var(--fs-label)/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tag::before { content: "§"; font: 400 18px/1 var(--serif); color: var(--green); letter-spacing: 0; text-transform: none; }
.tag b { font-weight: 700; color: var(--green); }
.num { font-variant-numeric: tabular-nums; }
.prose p + p { margin-top: 1em; }
.prose a, .link { color: var(--green); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.prose a:hover, .link:hover { color: var(--green-2); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: var(--r-s); border: 1.5px solid transparent; font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform var(--d-fast) var(--ease), background var(--d-fast), border-color var(--d-fast), color var(--d-fast), box-shadow var(--d-fast); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform var(--d) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: var(--on-green); }
.btn-green:hover { background: var(--green-2); }
.btn-line { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); background: transparent; color: var(--ink); }
.btn-line:hover { border-color: var(--green); color: var(--green); }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- top line ---------- */
.topline { background: var(--green); color: var(--on-green); }
.topline .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding-block: 8px; text-align: center; font: 500 14px/1.4 var(--body); }
.topline b { padding: 2px 8px; border: 1px solid color-mix(in srgb, var(--on-green) 50%, transparent); border-radius: var(--r-s); font: 600 11px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.topline a { font-weight: 600; color: inherit; text-underline-offset: 3px; }
@media (max-width: 560px) { .topline b { display: none; } }

/* ---------- header and phone menu ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { position: relative; display: flex; align-items: center; gap: 22px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
/* the mark: a section sign on a green tile, like a stamp */
.brand-mark { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r-s); background: var(--green); }
.brand-mark::after { content: "§"; font: 400 26px/1 var(--serif); color: var(--on-green); margin-top: 2px; }
.brand-word { font: 400 25px/1 var(--display); letter-spacing: -0.01em; }
.brand-sub { display: block; font: 600 11px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { position: relative; padding: 10px 13px; text-decoration: none; font: 500 15.5px/1 var(--body); color: var(--ink-2); transition: color var(--d-fast); }
.nav-links a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 1.5px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform var(--d) var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: none; }
.nav-links a[aria-current="page"] { color: var(--green); }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: var(--r-s); border: 1px solid var(--line); background: var(--card); cursor: pointer; place-items: center; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform var(--d) var(--ease), background var(--d-fast); }
.menu-btn i::before, .menu-btn i::after { content: ""; position: absolute; left: 0; }
.menu-btn i::before { top: -6px; } .menu-btn i::after { top: 6px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
.site-menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; padding: 14px var(--gutter) 24px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); animation: cl-open var(--d) var(--ease) both; }
.site-menu a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 28px/1.1 var(--display); color: var(--ink); }
.site-menu a::after { content: "§ " attr(data-no); font: 400 13px/1 var(--serif); color: var(--muted); }
.site-menu a[aria-current="page"] { color: var(--green); }
.site-menu .btn { display: flex; justify-content: center; margin-top: 18px; border-bottom: 0; font: 600 16px/1 var(--body); color: var(--on-green); }
.site-menu .btn::after { display: none; }
@keyframes cl-open { from { opacity: 0; transform: translateY(-8px); } }
html.calm .site-menu { animation: none; }
@media (max-width: 1100px) { .nav-links { display: none; } .menu-btn { display: grid; } }
@media (max-width: 640px) { .nav .nav-cta { display: none; } }
@media (min-width: 1101px) { .site-menu { display: none !important; } }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 116px); }
.section.alt { background: var(--well); }
.section + .section:not(.alt) { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; justify-items: start; max-width: 780px; margin-bottom: clamp(30px, 4.5vw, 56px); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.grid-2.lean { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .grid-2.lean { grid-template-columns: 1fr; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(30px, 5vw, 72px) clamp(56px, 8vw, 104px); overflow: clip; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.hero-facts { display: grid; gap: 8px; font: 500 15px/1.4 var(--body); color: var(--ink-2); }
.hero-facts li { display: flex; gap: 10px; align-items: baseline; }
.hero-facts li::before { content: "§"; flex: none; font: 400 16px/1 var(--serif); color: var(--green); }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- the redline (signature) ---------- */
.redline { position: relative; display: grid; gap: 0; min-width: 0; }
/* the page, with two sheets behind it */
.redline .sheet { position: relative; padding: clamp(22px, 3.2vw, 40px) clamp(20px, 3vw, 40px) clamp(22px, 3vw, 34px) clamp(46px, 5.2vw, 76px); background: var(--card); box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); }
.redline .sheet::before, .redline .sheet::after { content: ""; position: absolute; z-index: -1; inset: 0; background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.redline .sheet::before { transform: rotate(-2.2deg) translate(-8px, 6px); }
.redline .sheet::after { transform: rotate(1.4deg) translate(8px, 10px); background: var(--well); }
.redline-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.redline-head b { font: 700 12px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.redline .seg { padding: 3px; }
.redline .seg button { padding: 7px 12px; font-size: 13.5px; }
.redline .doc { display: grid; gap: 14px; font: 400 clamp(16px, 1.2vw, 18px)/1.68 var(--serif); color: var(--ink); counter-reset: cl; }
.redline .doc p { position: relative; counter-increment: cl; }
.redline .doc p::before { content: attr(data-no); position: absolute; right: calc(100% + 14px); top: 0.1em; font: 600 12px/1.6 var(--body); color: var(--muted); white-space: nowrap; }
/* the margin rule */
.redline .sheet > .rule { position: absolute; left: clamp(34px, 3.8vw, 58px); top: 0; bottom: 0; width: 1px; background: color-mix(in srgb, var(--red) 40%, transparent); }
/* marked up: legalese struck in red, plain English inserted in green */
.redline del, .redline ins { text-decoration: none; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.redline del { color: color-mix(in srgb, var(--red) 80%, var(--ink)); background: linear-gradient(var(--red), var(--red)) no-repeat 0 58% / var(--strike, 100%) 1.5px; }
.redline ins { color: var(--green); background: linear-gradient(var(--green), var(--green)) no-repeat 0 100% / 100% 1.5px; padding-bottom: 1px; }
.redline ins::before { content: "‸"; display: inline-block; width: 0; margin-left: -0.08em; transform: translate(-0.1em, 0.45em); color: var(--green); font-family: var(--body); font-size: 0.8em; }
.redline[data-view="ours"] del { display: none; }
.redline[data-view="ours"] ins { color: var(--ink); background: none; }
.redline[data-view="ours"] ins::before { display: none; }
.redline[data-view="original"] ins { display: none; }
.redline[data-view="original"] del { color: var(--ink); background: none; }
/* the first pass: strikes draw across, then the plain words write in */
html:not(.calm) .redline.drafting del { --strike: 0%; transition: --strike 0s; }
html:not(.calm) .redline.drafting ins { clip-path: inset(0 100% 0 0); }
html:not(.calm) .redline.drafting del.cut { animation: cl-strike 520ms var(--ease) forwards; }
html:not(.calm) .redline.drafting ins.put { animation: cl-write 700ms var(--ease) forwards; }
@keyframes cl-strike { from { background-size: 0% 1.5px; } to { background-size: 100% 1.5px; } }
@keyframes cl-write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.redline-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font: 500 13.5px/1.4 var(--body); color: var(--muted); }
.redline-foot b { color: var(--green); font-variant-numeric: tabular-nums; }
.redline-foot s { text-decoration-color: var(--red); font-variant-numeric: tabular-nums; }
/* a note in the margin */
.redline .note { position: absolute; z-index: 2; right: -10px; bottom: -26px; max-width: 220px; padding: 10px 14px; background: var(--margin); color: var(--ink); font: italic 400 15px/1.4 var(--serif); transform: rotate(-2deg); box-shadow: 0 10px 20px -12px rgba(0, 0, 0, 0.35); }
@media (max-width: 560px) { .redline .note { position: relative; right: auto; bottom: auto; margin: 16px 0 0 auto; } }

/* ---------- the matter timeline ---------- */
.steps { display: grid; gap: 16px; min-width: 0; }
.steps-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; }
.steps-head .field { min-width: min(100%, 300px); }
.steps-list { position: relative; display: grid; gap: 0; border-top: 1px solid var(--line); }
.steps-list > li { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps-list .n { grid-row: 1 / span 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--card); font: 400 20px/1 var(--display); color: var(--muted); transition: background var(--d), border-color var(--d), color var(--d); }
.steps-list h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font: 700 19px/1.3 var(--serif); }
.steps-list h3 small { font: 500 13px/1.3 var(--body); color: var(--muted); }
.steps-list .lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin-top: 10px; }
.steps-list .lanes div { display: grid; gap: 2px; align-content: start; font-size: 15.5px; color: var(--ink-2); }
.steps-list .lanes span { font: 700 11px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.steps-list .lanes div + div span { color: var(--green); }
@media (max-width: 560px) { .steps-list > li { grid-template-columns: 42px minmax(0, 1fr); gap: 0 12px; } .steps-list .n { width: 34px; height: 34px; font-size: 17px; } .steps-list .lanes { grid-template-columns: 1fr; } }
.steps-list > li[data-state="done"] .n { background: var(--well); color: var(--muted); }
.steps-list > li[data-state="done"] .n::after { content: ""; position: absolute; }
.steps-list > li[data-state="done"] h3 { color: var(--muted); }
.steps-list > li[data-state="now"] .n { background: var(--green); border-color: var(--green); color: var(--on-green); box-shadow: 0 0 0 5px var(--green-soft); }
.steps-list > li[data-state="now"]::before { content: attr(data-here); position: absolute; right: 0; top: 18px; padding: 3px 9px; background: var(--margin); color: var(--ink); font: italic 400 14px/1.3 var(--serif); transform: rotate(-1.5deg); }
html:not(.calm) .steps-list > li[data-state="now"] .n { animation: cl-here 2.4s ease-in-out infinite; }
@keyframes cl-here { 50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--green-soft) 50%, transparent); } }
@media (max-width: 560px) { .steps-list > li[data-state="now"]::before { position: static; grid-column: 2; justify-self: start; margin-bottom: 6px; } }
.steps-out { padding: 14px 18px; border-left: 3px solid var(--green); background: var(--green-soft); font: 500 15.5px/1.5 var(--body); color: var(--ink); }
.steps-out b { color: var(--green); }

/* ---------- terms you tap ---------- */
.term-wrap { position: relative; display: inline; }
.term { display: inline; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.term:hover, .term[aria-expanded="true"] { color: var(--green); background: color-mix(in srgb, var(--margin) 70%, transparent); }
.def { position: absolute; z-index: 20; left: var(--shift, 0px); top: calc(100% + 10px); width: min(320px, 86vw); padding: 14px 16px 14px 18px; border-left: 3px solid var(--green); background: var(--card); box-shadow: var(--shadow-lift), 0 0 0 1px var(--line); font: 400 15px/1.55 var(--body); color: var(--ink-2); text-align: left; white-space: normal; animation: cl-open var(--d) var(--ease) both; }
.def b { display: block; margin-bottom: 4px; font: 700 16px/1.3 var(--serif); color: var(--ink); }
.def .x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; background: none; cursor: pointer; font: 400 20px/1 var(--body); color: var(--muted); }
html.calm .def { animation: none; }
.words { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; border-top: 1px solid var(--line); }
.words div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.words dt { font: 700 17px/1.3 var(--serif); }
.words dd { margin-top: 4px; font-size: 15.5px; color: var(--ink-2); }
@media (max-width: 700px) { .words { grid-template-columns: 1fr; } }

/* ---------- the fixed-fee quote ---------- */
.quote { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.quote-pick { display: grid; gap: 8px; }
.quote .choices { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.quote .choice > span { border-radius: var(--r-s); }
.quote .choice > span small { font-variant-numeric: tabular-nums; }
.quote .extras { display: grid; gap: 8px; }
.quote .extras .check { justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); }
.quote .extras .check span { flex: 1; }
.quote .extras .check small { font: 600 14px/1.4 var(--body); color: var(--muted); font-variant-numeric: tabular-nums; }
.quote .qty { display: flex; align-items: center; gap: 12px; }
.quote .qty input { width: 90px; min-height: 44px; padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); border-radius: var(--r-s); background: var(--paper); font-variant-numeric: tabular-nums; }
.fee-note { display: grid; gap: 0; font: 400 16px/1.4 var(--body); font-variant-numeric: tabular-nums; }
.fee-note .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.fee-note .row small { display: block; font-size: 13.5px; color: var(--muted); }
.fee-note .row.sub { color: var(--muted); font-size: 14.5px; }
.fee-note .row.total { padding: 14px 0 12px; border-bottom: 3px double var(--ink); font: 400 clamp(26px, 3vw, 34px)/1 var(--display); }
.fee-note .row.total span:last-child { color: var(--green); }
.fee-note .row.total.bump span:last-child { animation: cl-bump 380ms var(--snap); }
@keyframes cl-bump { 40% { transform: translateY(-3px); } }
html.calm .fee-note .row.total.bump span:last-child { animation: none; }
.quote-foot { font: 400 14px/1.55 var(--body); color: var(--muted); }

/* ---------- team, cards, facts, notices ---------- */
.person { display: grid; gap: 8px; align-content: start; padding: 22px 0 0; border-top: 2px solid var(--ink); min-width: 0; }
.person .face { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--well); box-shadow: inset 0 0 0 1px var(--line); font: 400 26px/1 var(--display); color: var(--green); }
.person h3 { font: 400 26px/1.15 var(--display); }
.person .role { font: 700 11.5px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.person .role.acc { color: var(--green); }
.person p { font-size: 15.5px; color: var(--ink-2); }
.person .reg { font: 400 13.5px/1.45 var(--body); color: var(--muted); padding-top: 8px; border-top: 1px dashed var(--line); }
.card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); min-width: 0; }
.card .k { font: 700 11.5px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.card h3 { font: 400 26px/1.15 var(--display); }
.card p { color: var(--ink-2); font-size: 16px; }
.card .price { font: 400 30px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.card .price small { font: 500 13px/1 var(--body); color: var(--muted); margin-left: 6px; }
.card ul { display: grid; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.card li { display: flex; gap: 8px; }
.card li::before { content: "§"; flex: none; font: 400 15px/1.5 var(--serif); color: var(--green); }
.facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 0; border-block: 1px solid var(--line); }
.facts > div { display: grid; gap: 6px; align-content: start; padding: 22px 18px 22px 0; min-width: 0; }
.facts > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.facts .k { font: 700 11.5px/1.2 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.facts b { font: 400 24px/1.15 var(--display); font-weight: 400; }
.facts p { font-size: 15.5px; color: var(--ink-2); }
.facts.stack { grid-template-columns: 1fr; }
.facts.stack > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .facts:not(.stack) { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.notice { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; padding: 18px 20px; border-left: 3px solid var(--green); background: var(--green-soft); font-size: 16px; color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.notice b { color: var(--ink); }
.notice.warn { border-left-color: var(--red); background: var(--red-soft); }
.notice.warn svg { color: var(--red); }
/* a highlighted note, as if in the margin */
.margin-note { display: inline-block; padding: 8px 14px; background: var(--margin); color: var(--ink); font: italic 400 16px/1.45 var(--serif); transform: rotate(-1deg); }

/* ---------- closing ---------- */
.close { padding-block: clamp(56px, 8vw, 100px); }
.close-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 30px; align-items: end; padding: clamp(30px, 5vw, 64px); background: #16181f; color: #eef2ef; overflow: hidden; isolation: isolate; }
.close-card::before { content: "§"; position: absolute; z-index: -1; right: 4%; top: -0.32em; font: 400 clamp(220px, 26vw, 360px)/1 var(--serif); color: #8fd3b0; opacity: 0.1; }
html:not(.calm) .close-card::before { animation: cl-drift 9s ease-in-out infinite alternate; }
@keyframes cl-drift { to { transform: translateY(14px) rotate(4deg); } }
.close-card .h2 { color: #fff; }
.close-card .h2 del { color: #9aa7a1; text-decoration-color: #ff8a80; }
.close-card .h2 em { color: var(--close-em, #8fd3b0); text-decoration-color: color-mix(in srgb, var(--close-em, #8fd3b0) 55%, transparent); }
.close-card p { color: #cdd6d1; max-width: 52ch; margin-top: 14px; }
.close-card .tag { color: #9aa7a1; }
.close-card .tag b, .close-card .tag::before { color: var(--close-em, #8fd3b0); }
.close-card .btn-green { background: #fbfaf6; color: #16181f; }
.close-card .btn-green:hover { background: #fff; }
.close-card :focus-visible { outline-color: #fff; }
@media (max-width: 860px) { .close-card { grid-template-columns: 1fr; } }
/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 18px 22px; font: 600 18px/1.35 var(--display); border-radius: var(--r-m); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); background: linear-gradient(var(--green), var(--green)) center / 10px 1.6px no-repeat, linear-gradient(var(--green), var(--green)) center / 1.6px 10px no-repeat; transition: transform var(--d) var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--ink-2); max-width: 72ch; }

/* ---------- footer ---------- */
.foot { padding-block: 56px 30px; border-top: 1px solid var(--line); background: var(--well); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot h4 { font: 500 var(--fs-label)/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.foot ul { display: grid; gap: 9px; }
.foot a { text-decoration: none; color: var(--ink-2); }
.foot a:hover { color: var(--green); }
.licence { margin-top: 28px; padding: 14px 16px; border-radius: var(--r-s); background: var(--card); box-shadow: 0 0 0 1px var(--line); font: 400 12px/1.7 var(--mono); color: var(--muted); }
.licence b { color: var(--ink); font-weight: 500; }
.foot-base { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.foot-switches { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- switch ---------- */
.switch { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.switch .sw { position: relative; flex: none; width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--well); box-shadow: inset 0 0 0 1px var(--line); transition: background var(--d-fast); }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--card); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); transition: transform var(--d) var(--ease); }
.switch[aria-checked="true"] .sw { background: var(--green); box-shadow: none; }
.switch[aria-checked="true"] .sw::after { transform: translateX(16px); background: #fff; }

/* =====================================================================
   Multi-page kit
   ===================================================================== */
.page-head { position: relative; padding-block: clamp(30px, 4.5vw, 64px) clamp(34px, 4.5vw, 60px); border-bottom: 1px solid var(--line); overflow: clip; }

.page-head .wrap { position: relative; }
.page-head .h1 { font-size: clamp(38px, 5vw, 68px); margin-top: 16px; }
.page-head .lead { margin-top: 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); }
.crumbs span[aria-hidden] { opacity: 0.6; }

.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field > span, .field-set > legend { font: 600 15.5px/1.25 var(--body); color: var(--ink); }
.field small, .field-set > legend small { color: var(--muted); font: 400 14px/1.35 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: var(--r-s); border: 1px solid color-mix(in srgb, var(--ink) 25%, var(--line)); background: var(--card); color: var(--ink); transition: box-shadow var(--d-fast), border-color var(--d-fast); }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
.field [aria-invalid="true"] { border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 20%, transparent); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(-45deg, transparent 50%, var(--ink) 50%); background-size: 6px 6px; background-position: right 22px center, right 16px center; background-repeat: no-repeat; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
fieldset.field-set { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
fieldset.field-set > legend { padding: 0; margin-bottom: 10px; }
fieldset.field-set > .seg { justify-self: start; }
.form-card { display: grid; gap: 22px; padding: clamp(22px, 3.5vw, 38px); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.form-done { padding: 16px 18px; border-radius: var(--r-m); background: var(--green-soft); color: var(--ink); font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--green); }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; min-width: 0; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: grid; gap: 3px; height: 100%; padding: 15px 17px; border-radius: var(--r-m); border: 1px solid var(--line); background: var(--card); transition: border-color var(--d-fast), background var(--d-fast), box-shadow var(--d-fast); }
.choice > span b { font: 600 17px/1.2 var(--display); }
.choice > span small { color: var(--muted); font-size: 14.5px; }
.choice:hover > span { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.choice input:checked + span { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: color-mix(in srgb, var(--green-soft) 45%, var(--card)); }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--card); }
.seg button, .seg label { position: relative; padding: 9px 15px; border: 0; border-radius: var(--r-pill); background: transparent; cursor: pointer; font: 500 14.5px/1 var(--body); color: var(--ink-2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg button:hover, .seg label:hover { background: var(--well); }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--ink); color: var(--paper); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

input.range { --p: 50%; appearance: none; -webkit-appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--green) 0 var(--p), var(--line) var(--p) 100%); cursor: pointer; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--card); border: 2px solid var(--green); box-shadow: var(--shadow-card); }
input.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 2px solid var(--green); }

.table { overflow-x: auto; border-radius: var(--r-m); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table caption { caption-side: bottom; text-align: left; padding: 12px 18px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child > * { border-bottom: 0; }
.table thead th { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--well); border-bottom: 1px solid var(--line); }
.table tbody th { font: 600 16.5px/1.35 var(--display); }
.table td { color: var(--ink-2); }
.table .r { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 680px) {
  .table.stack table, .table.stack tbody, .table.stack tr, .table.stack td, .table.stack th { display: block; }
  .table.stack table { display: flex; flex-direction: column; }
  .table.stack caption { display: block; order: 1; }
  .table.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack td, .table.stack th { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; border: 0; padding: 4px 0; text-align: left !important; }
  .table.stack th[scope="row"] { display: block; }
  .table.stack td::before { content: attr(data-label); font: 500 10.5px/1.5 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
}

.field input.range { min-height: 0; height: 6px; padding: 0; border: 0; margin: 14px 0 8px; box-shadow: none; background: linear-gradient(90deg, var(--green) 0 var(--p), var(--line) var(--p) 100%); }



/* ---------- Clause keeps corners square ---------- */
.seg, .seg button, .seg label, .choice > span, .faq details, .faq summary, .form-card, .form-done, .switch, .table, .licence { border-radius: var(--r-s); }
.faq details { box-shadow: none; border-top: 1px solid var(--line); background: transparent; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding-inline: 0; font: 700 18px/1.35 var(--serif); }
.faq details > div { padding-inline: 0; }
.seg button[aria-pressed="true"], .seg label:has(input:checked) { background: var(--green); color: var(--on-green); }

/* ---------- reveal on scroll ---------- */
.js [data-enter] { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
.js [data-enter].entered { opacity: 1; transform: none; }
html.calm [data-enter] { opacity: 1 !important; transform: none !important; transition: none !important; }

@media print { .nav, .foot-switches, .menu-btn, .site-menu { display: none !important; } body { background: #fff; } .redline del { color: #000; } }
