/* Second Spring Clinic: demo by Kirosconsult. Tokens first, then base, layout, components, pages, print. */
@view-transition { navigation: auto; }

:root {
  --bg: #F2F4EA;
  --bg2: #E7ECD6;
  --card: #FBFCF5;
  --ink: #14301F;
  --ink2: #34503C;
  --mute: #4B6353;
  --line: rgba(20, 48, 31, .18);
  --line2: rgba(20, 48, 31, .34);
  --link: #3F6B3A;
  --link-h: #2A4D27;
  --spring: #B9D65A;
  --apricot: #F2A65A;
  --clay: #8A4A14;
  --moss: #3F6B3A;
  --btn: #B9D65A;
  --btn-h: #A9C84A;
  --btn-ink: #14301F;
  --on-fill: #14301F;
  --focus: #3F6B3A;
  --lv0-bg: #14301F; --lv0-ink: #F2F4EA;
  --lv1: #B9D65A; --lv2: #F2A65A; --lv3: #BE4620; --lv3-ink: #FFFFFF;
  --g1: #F2A65A; --g2: #B9D65A; --g3: #5E8F55; --g4: #6FA8A0;
  --petal-line: #14301F;
  --petal-fill-a: rgba(185, 214, 90, .5);
  --petal-fill-b: rgba(242, 166, 90, .42);
  --foot-bg: #14301F; --foot-ink: #EAF0E2; --foot-mute: #B4C4AE; --foot-link: #C7E06E; --foot-line: rgba(234, 240, 226, .2);
  --shadow: 0 1px 2px rgba(20, 48, 31, .08), 0 14px 40px -18px rgba(20, 48, 31, .28);
  --err: #A12E18;
  --header-h: 72px;
  --gut: clamp(16px, 4.4vw, 56px);
  --r: 20px;
  --e: cubic-bezier(.2, .8, .2, 1);
  --display: "Young Serif", "Iowan Old Style", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
  --bg: #0E1A12; --bg2: #122017; --card: #15241A; --ink: #EAF0E2; --ink2: #C9D6C1; --mute: #A6B8A2;
  --line: rgba(234, 240, 226, .16); --line2: rgba(234, 240, 226, .32);
  --link: #9CCB7E; --link-h: #B8DD9F; --spring: #C7E06E; --apricot: #F2A65A; --clay: #F2B476; --moss: #9CCB7E;
  --btn: #C7E06E; --btn-h: #D6EA86; --btn-ink: #0E1A12; --focus: #C7E06E;
  --lv0-bg: #EAF0E2; --lv0-ink: #0E1A12; --lv1: #C7E06E; --lv2: #F2A65A; --lv3: #C94A21; --lv3-ink: #FFFFFF;
  --g1: #F2A65A; --g2: #C7E06E; --g3: #7FB372; --g4: #8CC4BB;
  --petal-line: rgba(234, 240, 226, .78); --petal-fill-a: rgba(199, 224, 110, .24); --petal-fill-b: rgba(242, 166, 90, .22);
  --foot-bg: #09120C; --foot-ink: #EAF0E2; --foot-mute: #A6B8A2; --foot-link: #C7E06E; --foot-line: rgba(234, 240, 226, .2);
  --err: #FF9E8A; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1A12; --bg2: #122017; --card: #15241A; --ink: #EAF0E2; --ink2: #C9D6C1; --mute: #A6B8A2;
  --line: rgba(234, 240, 226, .16); --line2: rgba(234, 240, 226, .32);
  --link: #9CCB7E; --link-h: #B8DD9F; --spring: #C7E06E; --apricot: #F2A65A; --clay: #F2B476; --moss: #9CCB7E;
  --btn: #C7E06E; --btn-h: #D6EA86; --btn-ink: #0E1A12; --focus: #C7E06E;
  --lv0-bg: #EAF0E2; --lv0-ink: #0E1A12; --lv1: #C7E06E; --lv2: #F2A65A; --lv3: #C94A21; --lv3-ink: #FFFFFF;
  --g1: #F2A65A; --g2: #C7E06E; --g3: #7FB372; --g4: #8CC4BB;
  --petal-line: rgba(234, 240, 226, .78); --petal-fill-a: rgba(199, 224, 110, .24); --petal-fill-b: rgba(242, 166, 90, .22);
  --foot-bg: #09120C; --foot-ink: #EAF0E2; --foot-mute: #A6B8A2; --foot-link: #C7E06E; --foot-line: rgba(234, 240, 226, .2);
  --err: #FF9E8A; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 40px -18px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 400 1.125rem/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; color: var(--ink); margin: 0; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-h); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--spring); color: #14301F; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--bg); padding: .8rem 1.1rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.eyebrow { font: 600 .8125rem/1.3 var(--body); letter-spacing: .15em; text-transform: uppercase; color: var(--mute); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--spring); border-radius: 2px; flex: none; }
.h-xl { font-size: clamp(2.7rem, 1.2rem + 5.6vw, 5.8rem); }
.h-lg { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.7rem); }
.h-md { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.2rem); }
.h-sm { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.2; }
.lead { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); line-height: 1.55; color: var(--ink2); max-width: 36em; }
.measure { max-width: 62ch; }
.small { font-size: .9375rem; color: var(--mute); }
.mark-hl { background: linear-gradient(transparent 58%, var(--spring) 58% 94%, transparent 94%); padding: 0 .08em; margin: 0 -.08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: var(--ink); }

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }
.wrap-n { width: min(100% - 2 * var(--gut), 880px); margin-inline: auto; }
.sec { padding-block: clamp(4rem, 8vw, 8rem); position: relative; }
.sec-tint { background: var(--bg2); }
.sec-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); max-width: 46rem; }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.75rem); }
.grid > * { min-width: 0; }
.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 52px; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid transparent; background: var(--btn); color: var(--btn-ink); font: 600 1.0625rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .25s, transform .35s var(--e), box-shadow .25s; }
.btn:hover { background: var(--btn-h); color: var(--btn-ink); transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(20, 48, 31, .5); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--e); }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn-ghost:hover { background: var(--bg2); color: var(--ink); box-shadow: none; }
.btn-sm { min-height: 44px; padding: .5rem 1.15rem; font-size: .9375rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem 1rem; align-items: center; }
.btn-note { display: block; font-size: .8125rem; font-weight: 500; opacity: .85; margin-top: 2px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid transparent; transition: border-color .3s; view-transition-name: site-header; }
.site-header.is-stuck { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-mark .p { fill: var(--petal-fill-a); stroke: var(--petal-line); stroke-width: 1.4; }
.brand-mark .c { fill: var(--apricot); }
.brand-t { font: 400 1.4rem/1 var(--display); color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.brand-t small { font: 600 .6875rem/1 var(--body); letter-spacing: .24em; text-transform: uppercase; color: var(--mute); }
.nav ul { list-style: none; display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .85rem; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 1rem; text-decoration: none; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 7px; height: 2px; background: var(--moss); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--e); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:not(.btn):hover { color: var(--ink); }
.bar-tools { display: flex; align-items: center; gap: .35rem; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line2); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .25s, transform .4s var(--e); }
.icon-btn:hover { background: var(--bg2); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.burger { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform: scaleX(var(--prog, 0)); transform-origin: left; background: linear-gradient(90deg, var(--spring), var(--apricot)); pointer-events: none; }
@media (max-width: 899px) {
  .bar { flex-wrap: nowrap; }
  .nav { order: 3; width: 100%; }
  .site-header .bar { flex-wrap: wrap; }
  .js .site-header .bar { flex-wrap: nowrap; }
  .js .burger { display: inline-grid; }
  .js .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: .5rem var(--gut) 1.5rem; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--e), visibility 0s .4s; box-shadow: 0 24px 40px -24px rgba(20, 48, 31, .35); }
  .js .nav[data-open="true"] { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .js .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .js .nav li { border-bottom: 1px solid var(--line); }
  .js .nav li:last-child { border: 0; padding-top: 1rem; }
  .js .nav a:not(.btn) { font: 400 1.6rem/1 var(--display); min-height: 60px; padding: 0; }
  .js .nav a:not(.btn)::after { display: none; }
  .js .nav .btn { width: 100%; }
  .nav ul { gap: 0; }
  .nav:not([data-open]) { width: 100%; }
  html:not(.js) .bar { padding-block: .5rem; }
  html:not(.js) .nav { order: 3; width: 100%; padding-bottom: .75rem; }
}

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--e), transform 1s var(--e); transition-delay: calc(var(--d, 0) * 1ms); }
.js .rv.in { opacity: 1; transform: none; }
.js .ln { display: block; overflow: hidden; padding-bottom: .09em; margin-bottom: -.09em; }
.js .ln > span { display: block; transform: translateY(108%); animation: rise 1.25s var(--e) forwards; animation-delay: calc(var(--l, 0) * 130ms + 120ms); }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .hero .fu { opacity: 0; animation: fadeup 1s var(--e) forwards; animation-delay: calc(var(--l, 0) * 130ms + 250ms); }

/* ---------- bloom (hero generative flower) ---------- */
.bloom { width: 100%; height: auto; overflow: visible; }
.bloom path, .bloom line { fill: none; stroke: var(--petal-line); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.bloom .pf-a { fill: var(--petal-fill-a); }
.bloom .pf-b { fill: var(--petal-fill-b); }
.bloom .vein { stroke-width: .9; opacity: .6; }
.bloom .fil { stroke-width: .9; opacity: .55; }
.bloom .seed { fill: var(--apricot); stroke: none; }
.bloom .dot { stroke: none; }
.bloom .dot.d0 { fill: var(--spring); }
.bloom .dot.d1 { fill: var(--apricot); }
.bloom .dot.d2 { fill: var(--petal-line); }
.bloom .spin { transform-origin: 0 0; }
.bloom .rA .spin { transform: rotate(calc(var(--sp, 0) * 34deg)) scale(calc(.9 + var(--sp, 0) * .12)); }
.bloom .rB .spin { transform: rotate(calc(var(--sp, 0) * -48deg)) scale(calc(.88 + var(--sp, 0) * .14)); }
.bloom .rC .spin { transform: rotate(calc(var(--sp, 0) * 62deg)) scale(calc(.86 + var(--sp, 0) * .16)); }
.bloom .rD .spin { transform: rotate(calc(var(--sp, 0) * -80deg)) scale(calc(.84 + var(--sp, 0) * .2)); }
.bloom .rF .spin { transform: rotate(calc(var(--sp, 0) * 12deg)) scale(calc(.96 + var(--sp, 0) * .06)); }
.bloom .rDots .spin { transform: rotate(calc(var(--sp, 0) * 140deg)); }
.js .bloom .ring { transform-origin: 0 0; animation: open 6.5s var(--e) both; }
.js .bloom .rA { animation-delay: .5s; } .js .bloom .rB { animation-delay: .4s; } .js .bloom .rC { animation-delay: .3s; } .js .bloom .rD { animation-delay: .2s; }
@keyframes open { from { transform: scale(.55) rotate(-14deg); } to { transform: none; } }
.js .bloom .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawln 2.2s var(--e) forwards; animation-delay: calc(var(--b, 0) * 1ms + var(--i, 0) * 55ms); }
.js .bloom .pf-a, .js .bloom .pf-b { fill-opacity: 0; animation: fillin 2s ease forwards; animation-delay: calc(var(--b, 0) * 1ms + var(--i, 0) * 55ms + 1100ms); }
.js .bloom .dot, .js .bloom .seed { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .7s var(--e) forwards; animation-delay: calc(var(--b, 0) * 1ms + var(--i, 0) * 10ms + 150ms); }
@keyframes drawln { to { stroke-dashoffset: 0; } }
@keyframes fillin { to { fill-opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3rem, 6vw, 6rem); min-height: calc(100dvh - var(--header-h)); display: flex; align-items: center; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 1rem; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(3.5rem, 1.2rem + 7.1vw, 9.2rem); line-height: .95; letter-spacing: -.025em; margin-bottom: clamp(1.5rem, 3vw, 2.4rem); }
.hero h1 .ln:nth-child(3) { color: var(--link); }
.hero .lead { margin-bottom: 2rem; }
.hero-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.2rem; font-size: .9375rem; font-weight: 500; color: var(--ink2); }
.hero-meta li { display: flex; align-items: center; gap: .55rem; }
.hero-meta li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--apricot); flex: none; }
.hero-bloom { position: relative; z-index: 1; margin-right: calc(var(--gut) * -1.3); will-change: transform; transform: translate3d(0, calc(var(--sp, 0) * 60px), 0); }
@media (max-width: 899px) {
  .hero { align-items: flex-start; padding-top: 1.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-bloom { position: absolute; z-index: 0; width: 118vw; right: -46vw; top: -6vw; opacity: .36; margin: 0; }
  .hero-copy { padding-top: 5vw; }
}

/* ---------- statement ---------- */
.statement { font: 400 clamp(1.7rem, 1rem + 3.2vw, 3.3rem)/1.18 var(--display); letter-spacing: -.01em; max-width: 24em; text-wrap: pretty; }
.statement em { font-style: normal; color: var(--link); }
.facts { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0; border-top: 1px solid var(--line2); }
.fact { padding: 1.5rem 1.5rem 0 0; }
.fact + .fact { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.fact b { display: block; font: 400 clamp(3rem, 2rem + 3vw, 4.6rem)/1 var(--display); color: var(--link); margin-bottom: .6rem; }
.fact p { margin: 0; color: var(--ink2); max-width: 22em; }
@media (max-width: 700px) { .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 1.5rem; } .fact { padding-right: 0; } }

/* ---------- seasons chapters ---------- */
.seasons { position: relative; }
.season { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 5vw, 5rem); padding: clamp(3rem, 7vw, 6rem) var(--gut); min-height: min(80vh, 640px); align-items: start; background: var(--tint); }
.season > * { min-width: 0; }
.season[data-s="autumn"] { --tint: color-mix(in srgb, var(--apricot) 24%, var(--bg)); }
.season[data-s="winter"] { --tint: color-mix(in srgb, var(--g4) 20%, var(--bg)); }
.season[data-s="spring"] { --tint: color-mix(in srgb, var(--spring) 34%, var(--bg)); }
.season[data-s="summer"] { --tint: color-mix(in srgb, var(--apricot) 10%, color-mix(in srgb, var(--spring) 16%, var(--bg))); }
.season-glyph { position: sticky; top: calc(var(--header-h) + 2rem); width: min(100%, 340px); justify-self: end; }
.season-glyph svg { width: 100%; height: auto; overflow: visible; }
.glyph path, .glyph circle, .glyph line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.glyph .fl { fill: var(--petal-fill-b); stroke: none; }
.glyph .fl-g { fill: var(--petal-fill-a); stroke: none; }
.glyph .dt { fill: var(--ink); stroke: none; }
.js .glyph .draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--e); transition-delay: calc(var(--i, 0) * 110ms); }
.js .glyph.in .draw { stroke-dashoffset: 0; }
.js .glyph .fl, .js .glyph .fl-g, .js .glyph .dt { opacity: 0; transition: opacity 1.2s ease 1s; }
.js .glyph.in .fl, .js .glyph.in .fl-g, .js .glyph.in .dt { opacity: 1; }
.season-body { max-width: 34rem; }
.season-when { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.season-when .nm { font: 400 clamp(2.4rem, 1.4rem + 4vw, 4.4rem)/1 var(--display); color: var(--ink); }
.season-when .wk { font: 600 .8125rem/1 var(--body); letter-spacing: .15em; text-transform: uppercase; color: var(--clay); }
.season h3 { margin-bottom: .9rem; }
.season p { color: var(--ink2); }
.season .price { display: inline-flex; align-items: baseline; gap: .5rem; margin-top: .5rem; font-weight: 600; color: var(--ink); border-top: 1px solid var(--line2); padding-top: .8rem; }
@media (max-width: 799px) { .season { grid-template-columns: minmax(0, 1fr); min-height: 0; } .season-glyph { position: static; width: 150px; justify-self: start; } }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.4rem, 2.4vw, 2.1rem); }
.card h3 { margin-bottom: .6rem; }
.card p:last-child { margin-bottom: 0; }

/* ---------- arch photo ---------- */
.arch { margin: 0; overflow: hidden; border-radius: 999px 999px 18px 18px; background: var(--bg2); position: relative; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.arch.r34 { aspect-ratio: 3 / 4; }
.arch.r45 { aspect-ratio: 4 / 5; }
figcaption { font-size: .8125rem; color: var(--mute); margin-top: .6rem; }
.band-img { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); aspect-ratio: 21 / 8; }
.band-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .band-img { aspect-ratio: 4 / 3; } }

/* ---------- split / why ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split > * { min-width: 0; }
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
@media (max-width: 899px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split .arch { max-width: 420px; } }
.num-list { list-style: none; counter-reset: n; display: grid; gap: 0; margin-top: 2rem; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .5rem; padding: 1.25rem 0; border-top: 1px solid var(--line2); }
.num-list li:last-child { border-bottom: 1px solid var(--line2); }
.num-list li::before { content: counter(n, decimal-leading-zero); font: 400 1.5rem/1.2 var(--display); color: var(--link); }
.num-list h3 { font-size: 1.3rem; margin-bottom: .3rem; }
.num-list p { margin: 0; color: var(--ink2); }

/* ---------- quotes ---------- */
.quote { margin: 0; }
.quote blockquote { margin: 0; font: 400 clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem)/1.25 var(--display); color: var(--ink); text-wrap: pretty; position: relative; padding-top: 2.6rem; }
.quote blockquote::before { content: ""; position: absolute; top: 0; left: 0; width: 38px; height: 30px; background: var(--spring); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 30'%3E%3Cpath d='M0 30V16C0 6 5 1 15 0v6c-5 1-7 4-7 8h7v16zM21 30V16c0-10 5-15 15-16v6c-5 1-7 4-7 8h7v16z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 38 30'%3E%3Cpath d='M0 30V16C0 6 5 1 15 0v6c-5 1-7 4-7 8h7v16zM21 30V16c0-10 5-15 15-16v6c-5 1-7 4-7 8h7v16z'/%3E%3C/svg%3E") no-repeat center / contain; }
.quote figcaption { margin-top: 1rem; font-size: .9375rem; font-weight: 600; color: var(--ink2); }
.quote figcaption span { font-weight: 400; color: var(--mute); }
.quote-stack { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.quote-stack .quote + .quote { padding-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--line2); }

/* ---------- fees mini + table ---------- */
.fee-card { display: flex; flex-direction: column; gap: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; }
.fee-card .t { font: 600 .8125rem/1.3 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.fee-card .p { font: 400 clamp(2.4rem, 2rem + 1.4vw, 3.2rem)/1 var(--display); color: var(--ink); }
.fee-card .d { font-size: .9375rem; color: var(--ink2); margin: 0; }
.fee-card.hl { background: var(--spring); border-color: transparent; }
.fee-card.hl .t, .fee-card.hl .p, .fee-card.hl .d { color: var(--on-fill); }
.fees-table { width: 100%; border-collapse: collapse; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.fees-table caption { text-align: left; padding: 0 0 1rem; font-size: .9375rem; color: var(--mute); caption-side: bottom; padding-top: 1rem; }
.fees-table th, .fees-table td { padding: 1.35rem 1.5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.fees-table thead th { font: 600 .8125rem/1.2 var(--body); letter-spacing: .13em; text-transform: uppercase; color: var(--mute); background: var(--bg2); }
.fees-table tbody tr:last-child td, .fees-table tbody tr:last-child th { border-bottom: 0; }
.fees-table tbody th { font: 400 1.35rem/1.2 var(--display); color: var(--ink); width: 30%; }
.fees-table tbody th small { display: block; font: 500 .9375rem/1.4 var(--body); color: var(--mute); margin-top: .25rem; }
.fees-table td { color: var(--ink2); }
.fees-table td.price { font: 400 2rem/1 var(--display); color: var(--ink); text-align: right; white-space: nowrap; width: 15%; }
.fees-table td.price small { display: block; font: 500 .8125rem/1.3 var(--body); color: var(--mute); margin-top: .35rem; }
@media (max-width: 760px) {
  .fees-table, .fees-table tbody, .fees-table tr, .fees-table th, .fees-table td { display: block; width: 100% !important; }
  .fees-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fees-table tbody tr { padding: 1.25rem 1.25rem 1.1rem; border-bottom: 1px solid var(--line); }
  .fees-table tbody tr:last-child { border: 0; }
  .fees-table th, .fees-table td { padding: 0 !important; border: 0 !important; }
  .fees-table td.price { text-align: left; margin-top: .6rem; }
}

/* ---------- estimator ---------- */
.est { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.est > * { min-width: 0; }
@media (max-width: 899px) { .est { grid-template-columns: minmax(0, 1fr); } }
.est-out { background: var(--ink); color: var(--bg); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.4rem); position: sticky; top: calc(var(--header-h) + 1.5rem); }
.est-out .t { font: 600 .8125rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--spring); margin-bottom: .6rem; }
.est-out .big { font: 400 clamp(3.4rem, 2.4rem + 4vw, 5.4rem)/1 var(--display); color: var(--bg); display: block; margin-bottom: 1rem; }
.est-out ul { list-style: none; border-top: 1px solid rgba(242, 244, 234, .25); }
.est-out li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(242, 244, 234, .18); font-size: .9375rem; }
.est-out p { font-size: .875rem; color: rgba(242, 244, 234, .8); margin: 1rem 0 0; }
:root[data-theme="dark"] .est-out { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
:root[data-theme="dark"] .est-out .big { color: var(--ink); }
:root[data-theme="dark"] .est-out ul, :root[data-theme="dark"] .est-out li { border-color: var(--line); }
:root[data-theme="dark"] .est-out p { color: var(--mute); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .est-out { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
  :root:not([data-theme="light"]) .est-out .big { color: var(--ink); }
  :root:not([data-theme="light"]) .est-out ul, :root:not([data-theme="light"]) .est-out li { border-color: var(--line); }
  :root:not([data-theme="light"]) .est-out p { color: var(--mute); }
}

/* ---------- forms ---------- */
.field { display: grid; gap: .4rem; margin-bottom: 1.35rem; min-width: 0; }
label, .lbl { font-weight: 600; font-size: 1rem; color: var(--ink); }
.opt { font-weight: 400; color: var(--mute); }
.input, select, textarea { width: 100%; min-height: 52px; padding: .8rem 1rem; border: 1.5px solid var(--line2); border-radius: 12px; background: var(--card); color: var(--ink); font: 400 1.0625rem/1.4 var(--body); transition: border-color .2s, box-shadow .2s; }
textarea { min-height: 130px; resize: vertical; }
.input:hover, select:hover, textarea:hover { border-color: var(--ink2); }
.input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field .err { display: none; color: var(--err); font-size: .9375rem; font-weight: 500; }
.field.bad .err { display: block; }
.field.bad .input, .field.bad textarea, .field.bad select { border-color: var(--err); }
.hint { font-size: .9375rem; color: var(--mute); margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: .6rem; color: var(--ink); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: .7rem; }
.choice { position: relative; min-width: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span.box { display: flex; flex-direction: column; justify-content: center; gap: .15rem; min-height: 64px; padding: .8rem 1rem; border: 1.5px solid var(--line2); border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 600; transition: background-color .2s, border-color .2s, box-shadow .2s; }
.choice span.box small { font-weight: 400; font-size: .875rem; color: var(--mute); }
.choice input:hover + .box { border-color: var(--ink2); }
.choice input:checked + .box { background: var(--spring); border-color: var(--spring); color: var(--on-fill); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }
.choice input:checked + .box small { color: var(--on-fill); }
.choice input:focus-visible + .box { outline: 3px solid var(--focus); outline-offset: 3px; }
.check { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .8rem; align-items: start; min-height: 44px; padding: .4rem 0; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--moss); }
.success { display: none; }
.success.on { display: block; }
.success .card { border-color: var(--moss); }
.form-note { font-size: .9375rem; color: var(--mute); }
.demo-flag { display: inline-flex; align-items: center; gap: .5rem; font: 600 .75rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; padding: .45rem .8rem; border-radius: 999px; background: var(--bg2); color: var(--ink); border: 1px solid var(--line2); }

/* ---------- page head (inner) ---------- */
.page-head { position: relative; padding-block: clamp(3rem, 7vw, 6.5rem) clamp(2.5rem, 5vw, 4.5rem); overflow: clip; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.8rem, 1.4rem + 5.4vw, 6rem); max-width: 12em; margin-bottom: 1.3rem; position: relative; z-index: 1; }
.page-head .lead { position: relative; z-index: 1; margin: 0; }
.page-head .eyebrow { position: relative; z-index: 1; }
.head-bloom { position: absolute; right: calc(var(--gut) * -3); top: 50%; width: min(520px, 62vw); transform: translateY(-50%); opacity: .8; z-index: 0; pointer-events: none; }
@media (max-width: 899px) { .head-bloom { opacity: .3; right: -22vw; } }

/* ---------- diary ---------- */
.diary { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.diary > * { min-width: 0; }
@media (max-width: 999px) { .diary { grid-template-columns: minmax(0, 1fr); } }
.diary-intro { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem 1.4rem; display: grid; gap: .35rem; margin-bottom: 2rem; }
.diary-intro p { margin: 0; font-size: 1rem; color: var(--ink2); }
.diary-intro strong { color: var(--ink); }
.dgroup { margin-bottom: 2.6rem; }
.dgroup > h3 { display: flex; align-items: center; gap: .8rem; font-size: 1.5rem; margin-bottom: .3rem; }
.dgroup > h3 .sw { width: 14px; height: 14px; border-radius: 50%; background: var(--gc); flex: none; }
.dgroup > p { color: var(--mute); font-size: .9375rem; margin-bottom: .6rem; }
.g1 { --gc: var(--g1); } .g2 { --gc: var(--g2); } .g3 { --gc: var(--g3); } .g4 { --gc: var(--g4); }
.srow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: .9rem 1.75rem; padding: 1.3rem 0; border-top: 1px solid var(--line); align-items: start; }
.srow:last-of-type { border-bottom: 1px solid var(--line); }
.srow-head { min-width: 0; }
.sname { display: block; font: 400 1.35rem/1.2 var(--display); color: var(--ink); margin-bottom: .3rem; }
.sdesc { margin: 0; font-size: .9375rem; color: var(--ink2); max-width: 36em; }
.sdesc a { font-weight: 600; white-space: nowrap; }
.seg-col { min-width: 0; display: grid; gap: .45rem; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; background: var(--bg2); border-radius: 14px; }
.seg label { position: relative; display: grid; place-items: center; min-height: 44px; border-radius: 10px; font-size: .875rem; font-weight: 600; color: var(--ink2); cursor: pointer; transition: background-color .2s, color .2s; text-align: center; }
.seg label:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label:has(input:checked) { color: var(--on-fill); }
.seg label:has(input[value="0"]:checked) { background: var(--lv0-bg); color: var(--lv0-ink); }
.seg label:has(input[value="1"]:checked) { background: var(--lv1); }
.seg label:has(input[value="2"]:checked) { background: var(--lv2); }
.seg label:has(input[value="3"]:checked) { background: var(--lv3); color: var(--lv3-ink); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.seg-hint { min-height: 1.4em; font-size: .875rem; color: var(--mute); margin: 0; }
@media (max-width: 699px) { .srow { grid-template-columns: minmax(0, 1fr); } }
.diary-sum { position: sticky; top: calc(var(--header-h) + 1.25rem); background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: clamp(1.25rem, 2.4vw, 2rem); box-shadow: var(--shadow); }
@media (max-width: 999px) { .diary-sum { position: static; } }
.diary-sum h2 { font-size: 1.7rem; margin-bottom: .3rem; }
.sum-flower { width: min(100%, 340px); margin: 1rem auto 1.2rem; }
.sflower { width: 100%; height: auto; overflow: visible; }
.sflower .guide { fill: none; stroke: var(--line2); stroke-width: 1; stroke-dasharray: 3 5; }
.sflower .ax { stroke: var(--line); stroke-width: 1; }
.sflower .pt { transform-origin: 0 0; transform: rotate(var(--a)) scale(var(--s)); transition: transform .9s cubic-bezier(.3, 1.35, .5, 1); }
.sflower .pt path { fill: var(--gc); fill-opacity: .88; stroke: var(--petal-line); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.sflower .core { fill: var(--apricot); stroke: var(--petal-line); stroke-width: 1.2; }
.sflower text { font: 400 34px var(--display); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.sflower text.sm { font: 600 9px var(--body); letter-spacing: .12em; text-transform: uppercase; fill: var(--mute); }
.sum-count { display: flex; justify-content: center; gap: 1.5rem; text-align: center; margin-bottom: 1.4rem; flex-wrap: wrap; }
.sum-count b { display: block; font: 400 2rem/1 var(--display); color: var(--ink); }
.sum-count span { font-size: .8125rem; color: var(--mute); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bars { display: grid; gap: .9rem; margin: 0 0 1.6rem; padding: 0; list-style: none; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .8rem; align-items: baseline; font-size: .9375rem; }
.bar-row .nm { font-weight: 600; color: var(--ink); }
.bar-row .nm small { font-weight: 400; color: var(--mute); }
.bar-row .v { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-row .track { grid-column: 1 / -1; height: 12px; border-radius: 99px; background: var(--bg2); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; width: 100%; background: var(--gc); border-radius: 99px; transform-origin: left; transform: scaleX(var(--w, 0)); transition: transform .9s var(--e); }
.sum-h { font: 600 .8125rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 1.6rem 0 .7rem; }
.sum-scores { width: 100%; border-collapse: collapse; font-size: .9375rem; margin-bottom: .5rem; }
.sum-scores th, .sum-scores td { text-align: left; padding: .45rem 0; border-bottom: 1px solid var(--line); font-weight: 400; color: var(--ink); }
.sum-scores td { text-align: right; font-weight: 600; }
.q-list { margin: 0 0 1rem 1.2rem; padding: 0; display: grid; gap: .7rem; font-size: .9375rem; color: var(--ink); }
.q-list li::marker { color: var(--link); font-weight: 700; }
.sum-empty { color: var(--mute); font-size: 1rem; }
.sum-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.sum-priv { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--mute); }
.sum-priv strong { color: var(--ink); }
.print-only { display: none; }
.explain { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; gap: .2rem; scroll-margin-top: 100px; }
.explain h3 { font-size: 1.45rem; margin-bottom: .4rem; display: flex; align-items: center; gap: .7rem; }
.explain h3 .sw { width: 12px; height: 12px; border-radius: 50%; background: var(--gc); flex: none; }
.explain h4 { font: 600 .75rem/1.3 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: .9rem 0 .25rem; }
.explain p { margin: 0; font-size: 1rem; color: var(--ink2); }
.notice { border-left: 4px solid var(--apricot); background: var(--card); padding: 1.3rem 1.5rem; border-radius: 4px var(--r) var(--r) 4px; }
.notice h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.notice ul { margin: .4rem 0 0 1.1rem; display: grid; gap: .35rem; color: var(--ink2); }
.notice p:last-child { margin-bottom: 0; }

/* teaser */
.teaser { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; background: var(--ink); color: var(--bg); border-radius: calc(var(--r) + 14px); padding: clamp(1.5rem, 5vw, 4.5rem); overflow: hidden; }
.teaser > * { min-width: 0; }
.teaser h2, .teaser .eyebrow, .teaser .sname { color: var(--bg); }
.teaser .eyebrow { opacity: .85; }
.teaser p { color: rgba(242, 244, 234, .86); }
.teaser .seg { background: rgba(242, 244, 234, .12); }
.teaser .seg label { color: rgba(242, 244, 234, .9); }
.teaser .seg label:hover { background: rgba(242, 244, 234, .14); }
.teaser .seg label:has(input[value="0"]:checked) { background: var(--bg); color: var(--ink); }
.teaser .srow { border-color: rgba(242, 244, 234, .22); grid-template-columns: minmax(0, 1fr); padding: .9rem 0; gap: .5rem; }
.teaser .srow:last-of-type { border-bottom: 1px solid rgba(242, 244, 234, .22); }
.teaser .sname { font-size: 1.15rem; margin: 0; }
.teaser .seg-hint { color: rgba(242, 244, 234, .75); }
.teaser .sflower text { fill: var(--bg); }
.teaser .sflower .pt path { stroke: var(--bg); }
.teaser .sflower .guide { stroke: rgba(242, 244, 234, .35); }
.teaser .btn-ghost { color: var(--bg); border-color: rgba(242, 244, 234, .5); }
.teaser .btn-ghost:hover { background: rgba(242, 244, 234, .12); color: var(--bg); }
.teaser :focus-visible { outline-color: var(--spring); }
:root[data-theme="dark"] .teaser { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
:root[data-theme="dark"] .teaser h2, :root[data-theme="dark"] .teaser .eyebrow, :root[data-theme="dark"] .teaser .sname { color: var(--ink); }
:root[data-theme="dark"] .teaser p { color: var(--ink2); }
:root[data-theme="dark"] .teaser .seg { background: var(--bg2); }
:root[data-theme="dark"] .teaser .seg label { color: var(--ink2); }
:root[data-theme="dark"] .teaser .srow, :root[data-theme="dark"] .teaser .srow:last-of-type { border-color: var(--line); }
:root[data-theme="dark"] .teaser .seg label:has(input[value="0"]:checked) { background: var(--lv0-bg); color: var(--lv0-ink); }
:root[data-theme="dark"] .teaser .sflower text { fill: var(--ink); }
:root[data-theme="dark"] .teaser .sflower .pt path { stroke: var(--petal-line); }
:root[data-theme="dark"] .teaser .sflower .guide { stroke: var(--line2); }
:root[data-theme="dark"] .teaser .btn-ghost { color: var(--ink); border-color: var(--line2); }
:root[data-theme="dark"] .teaser .btn-ghost:hover { background: var(--bg2); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .teaser { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
  :root:not([data-theme="light"]) .teaser h2, :root:not([data-theme="light"]) .teaser .eyebrow, :root:not([data-theme="light"]) .teaser .sname { color: var(--ink); }
  :root:not([data-theme="light"]) .teaser p { color: var(--ink2); }
  :root:not([data-theme="light"]) .teaser .seg { background: var(--bg2); }
  :root:not([data-theme="light"]) .teaser .seg label { color: var(--ink2); }
  :root:not([data-theme="light"]) .teaser .srow, :root:not([data-theme="light"]) .teaser .srow:last-of-type { border-color: var(--line); }
  :root:not([data-theme="light"]) .teaser .seg label:has(input[value="0"]:checked) { background: var(--lv0-bg); color: var(--lv0-ink); }
  :root:not([data-theme="light"]) .teaser .sflower text { fill: var(--ink); }
  :root:not([data-theme="light"]) .teaser .sflower .pt path { stroke: var(--petal-line); }
  :root:not([data-theme="light"]) .teaser .sflower .guide { stroke: var(--line2); }
  :root:not([data-theme="light"]) .teaser .btn-ghost { color: var(--ink); border-color: var(--line2); }
  :root:not([data-theme="light"]) .teaser .btn-ghost:hover { background: var(--bg2); color: var(--ink); }
}
@media (max-width: 899px) { .teaser { grid-template-columns: minmax(0, 1fr); } }
.teaser-flower { display: grid; place-items: center; gap: 1.2rem; text-align: center; }
.teaser-flower .sum-flower { margin: 0; width: min(100%, 300px); }

/* ---------- clinicians ---------- */
.clin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 4vw, 4rem); padding: clamp(2rem, 4vw, 3.5rem) 0; border-top: 1px solid var(--line2); align-items: start; }
.clin > * { min-width: 0; }
.clin:last-of-type { border-bottom: 1px solid var(--line2); }
.mono { width: min(100%, 280px); }
.mono svg { width: 100%; height: auto; }
.mono .shape { fill: var(--mono-bg); }
.mono text { font: 400 92px var(--display); fill: var(--ink); text-anchor: middle; }
.mono .md { stroke: none; }
.clin h3 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); margin-bottom: .25rem; }
.clin .role { font-weight: 600; color: var(--clay); margin-bottom: 1rem; }
.clin dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1.4rem; margin: 1.2rem 0 0; font-size: .9375rem; }
.clin dt { color: var(--mute); font-weight: 600; }
.clin dd { margin: 0; color: var(--ink); }
.m1 { --mono-bg: color-mix(in srgb, var(--spring) 55%, var(--bg)); }
.m2 { --mono-bg: color-mix(in srgb, var(--apricot) 45%, var(--bg)); }
.m3 { --mono-bg: color-mix(in srgb, var(--g4) 40%, var(--bg)); }
.m4 { --mono-bg: color-mix(in srgb, var(--g3) 38%, var(--bg)); }
@media (max-width: 799px) { .clin { grid-template-columns: minmax(0, 1fr); } .mono { width: 160px; } }
.cqc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.4rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.cqc .rate { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--spring); color: var(--on-fill); font: 400 1.35rem/1 var(--display); text-align: center; flex: none; }
.cqc .rate small { display: block; font: 600 .625rem/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; margin-top: 2px; }
.cqc p { margin: 0 0 .3rem; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .95rem; border-radius: 999px; border: 1.5px solid var(--line2); font: 600 .8125rem/1.2 var(--body); letter-spacing: .04em; color: var(--ink); background: transparent; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--moss); }

/* ---------- FAQ ---------- */
.faq details { border-top: 1px solid var(--line2); }
.faq details:last-child { border-bottom: 1px solid var(--line2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 64px; padding: 1.1rem 0; font: 400 clamp(1.2rem, 1.05rem + .6vw, 1.5rem)/1.25 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line2); background: linear-gradient(var(--ink), var(--ink)) center / 12px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 12px no-repeat; transition: transform .4s var(--e); }
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--spring); }
.faq .ans { padding: 0 0 1.5rem; max-width: 52em; color: var(--ink2); }
.faq .ans p:last-child { margin-bottom: 0; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: clip; border-radius: calc(var(--r) + 14px); background: var(--ink); color: var(--bg); padding: clamp(2.5rem, 7vw, 6rem); }
.cta h2 { color: var(--bg); max-width: 14em; margin-bottom: 1.2rem; position: relative; z-index: 1; }
.cta p { color: rgba(242, 244, 234, .86); position: relative; z-index: 1; max-width: 34em; }
.cta .btn-row { position: relative; z-index: 1; margin-top: 1.6rem; }
.cta .btn-ghost { color: var(--bg); border-color: rgba(242, 244, 234, .5); }
.cta .btn-ghost:hover { background: rgba(242, 244, 234, .12); color: var(--bg); }
.cta .bloom-bg { position: absolute; right: -16%; top: 50%; width: min(560px, 62%); transform: translateY(-50%); opacity: .38; z-index: 0; pointer-events: none; }
.cta .bloom-bg path, .cta .bloom-bg line { stroke: var(--bg); }
.cta :focus-visible { outline-color: var(--spring); }
:root[data-theme="dark"] .cta { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
:root[data-theme="dark"] .cta h2 { color: var(--ink); }
:root[data-theme="dark"] .cta p { color: var(--ink2); }
:root[data-theme="dark"] .cta .btn-ghost { color: var(--ink); border-color: var(--line2); }
:root[data-theme="dark"] .cta .bloom-bg path, :root[data-theme="dark"] .cta .bloom-bg line { stroke: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
  :root:not([data-theme="light"]) .cta h2 { color: var(--ink); }
  :root:not([data-theme="light"]) .cta p { color: var(--ink2); }
  :root:not([data-theme="light"]) .cta .btn-ghost { color: var(--ink); border-color: var(--line2); }
  :root:not([data-theme="light"]) .cta .bloom-bg path, :root:not([data-theme="light"]) .cta .bloom-bg line { stroke: var(--ink); }
}

/* ---------- book page ---------- */
.book { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.book > * { min-width: 0; }
@media (max-width: 999px) { .book { grid-template-columns: minmax(0, 1fr); } }
.book aside { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--header-h) + 1.25rem); }
@media (max-width: 999px) { .book aside { position: static; } }
.hours { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours th, .hours td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border: 0; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 1rem; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .75rem; font-size: .9375rem; color: var(--ink2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--spring); color: var(--on-fill); font: 400 1rem/1 var(--display); }
.steps b { color: var(--ink); display: block; font-weight: 600; }

/* ---------- prose ---------- */
.prose { max-width: 62ch; }
.prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); margin: 2.6rem 0 .8rem; }
.prose h3 { font-size: 1.35rem; margin: 1.8rem 0 .5rem; }
.prose ul { margin: 0 0 1em 1.2rem; display: grid; gap: .4rem; }
.prose li::marker { color: var(--link); }

/* ---------- footer ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; margin-top: 0; }
.site-footer a { color: var(--foot-link); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--foot-link); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-bottom: 3rem; }
@media (max-width: 899px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }
.site-footer h2 { font: 600 .8125rem/1.3 var(--body); letter-spacing: .15em; text-transform: uppercase; color: var(--foot-mute); margin-bottom: 1rem; }
.site-footer ul:not(.badges) { list-style: none; display: grid; gap: .2rem; }
.site-footer .badges { display: flex; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer address { font-style: normal; color: var(--foot-ink); line-height: 1.6; }
.foot-brand .brand-t, .foot-brand .brand-t small { color: var(--foot-ink); }
.foot-brand .brand-t small { color: var(--foot-mute); }
.foot-brand .brand-mark .p { stroke: var(--foot-ink); fill: rgba(199, 224, 110, .22); }
.foot-brand p { color: var(--foot-mute); max-width: 24em; margin-top: 1.2rem; font-size: 1rem; }
.foot-badges .badge { color: var(--foot-ink); border-color: var(--foot-line); }
.foot-badges .badge::before { background: var(--foot-link); }
.foot-hours { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; font-size: .9375rem; }
.foot-hours dt { color: var(--foot-mute); }
.foot-hours dd { margin: 0; }
.foot-legal { border-top: 1px solid var(--foot-line); padding-top: 1.6rem; display: grid; gap: .9rem; font-size: .875rem; color: var(--foot-mute); }
.foot-legal p { margin: 0; max-width: 70em; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.foot-bottom a { min-height: 0; }

/* ---------- fixed bits ---------- */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink); background: var(--spring); color: var(--on-fill); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .3s, transform .4s var(--e), visibility 0s .4s; }
.to-top.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.to-top svg { width: 20px; height: 20px; }
.to-top:focus-visible { outline-color: var(--focus); }
.demo-pill { position: fixed; left: 12px; bottom: 12px; z-index: 40; display: inline-flex; align-items: center; min-height: 30px; padding: .3rem .8rem; border-radius: 999px; background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--line2); color: var(--ink); font: 600 .75rem/1 var(--body); letter-spacing: .02em; text-decoration: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.demo-pill:hover { color: var(--ink); background: var(--bg2); }
@media (max-width: 520px) { .demo-pill { left: 8px; bottom: 8px; font-size: .6875rem; padding: .25rem .65rem; } .to-top { right: 10px; bottom: 10px; } }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .js .rv, .js .ln > span, .js .hero .fu { opacity: 1; transform: none; }
  .js .bloom .draw { stroke-dashoffset: 0; }
  .js .glyph .draw { stroke-dashoffset: 0; }
  .js .glyph .fl, .js .glyph .fl-g, .js .glyph .dt { opacity: 1; }
  .hero-bloom { transform: none; }
  .bloom .spin, .bloom .rA .spin, .bloom .rB .spin, .bloom .rC .spin, .bloom .rD .spin, .bloom .rF .spin, .bloom .rDots .spin { transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- print ---------- */
@media print {
  @page { margin: 16mm; }
  html { font-size: 11pt; }
  body { background: #fff !important; color: #000 !important; font-size: 11pt; }
  .site-header, .site-footer, .demo-pill, .to-top, .skip, .diary-form, .page-head, .print-keep .sec-head, .sec:not(.print-keep), .sum-actions, .head-bloom, .sum-priv .no-print, .no-print { display: none !important; }
  .print-keep { padding: 0 !important; background: #fff !important; display: block !important; }
  .diary { display: block; }
  .diary-sum { position: static; box-shadow: none; border: 0; padding: 0; background: #fff; }
  .print-only { display: block; margin-bottom: 1rem; }
  .print-only h1 { font-size: 20pt; color: #000; }
  .sflower .pt path { fill-opacity: .7; }
  .sum-flower { width: 220px; margin: 0 0 1rem; }
  .bar-row .track { border: 1px solid #555; background: #fff; }
  .bar-row .fill { background: #555 !important; transform: scaleX(var(--w, 0)); }
  .sum-h, .bar-row .nm, .bar-row .v, .sum-scores th, .sum-scores td, .q-list, h2, h3 { color: #000 !important; }
  .diary-sum h2 { font-size: 14pt; }
  a { color: #000; text-decoration: none; }
}

.bloom.static *, .bloom.static { animation: none !important; }
.bloom.static .dot, .bloom.static .seed { opacity: 1 !important; transform: none !important; }
.bloom.static .draw { stroke-dashoffset: 0 !important; }
.bloom.static .pf-a, .bloom.static .pf-b { fill-opacity: 1 !important; }

/* demo pill tucks away while reading */
.demo-pill{transition:opacity .3s ease,transform .3s ease,visibility .3s}
.demo-pill.is-away{opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none}

.sec-head .lead { margin: 1.1rem 0 0; }

/* mobile: live tally while scoring */
.diary-mini { display: none; }
@media (max-width: 999px) {
  .diary-mini { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; position: sticky; top: calc(var(--header-h) + 6px); z-index: 20; margin: 0 0 1rem; padding: .55rem 1rem; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: .875rem; box-shadow: var(--shadow); }
  .diary-mini b { font-weight: 700; }
  .diary-mini a { margin-left: auto; color: var(--bg); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 32px; }
}
@media print { .diary-mini { display: none !important; } }

[data-consent-err] { color: var(--err); font-weight: 500; font-size: .9375rem; }
[data-consent-err]:not([hidden]) { display: block; }
[data-consent-err][hidden] { display: none; }

/* accessibility statement: align the reading column with the page heading */
.wrap-n { margin-left: max(var(--gut), calc((100% - 1240px) / 2)); margin-right: auto; }
.site-footer { padding-bottom: 4.5rem; }
