/* Material Design 3 inspired roles, shapes and restrained elevation. */
:root, html[data-variant] {
 --bg:#f7f9fc; --surface:#ffffff; --surface-2:#edf1f7; --text:#19242d; --muted:#4c5d69;
 --border:#dce3eb; --control-border:#71818c; --accent:#006a67; --accent-hover:#00504e;
 --accent-soft:#d8efeb; --on-accent:#ffffff; --ok:#14633f; --warn:#9a3b24;
 --radius:24px; --max:76rem; --font-sans:Roboto,"Segoe UI",system-ui,sans-serif;
 --step-3:clamp(2.4rem,1.5rem + 3.5vw,4.7rem); --step-2:clamp(1.65rem,1.3rem + 1.3vw,2.5rem);
 --step-0:1rem; --step--1:.9rem; --space-5:clamp(3rem,6vw,6rem); color-scheme:light;
}
html[data-variant="B"] { --accent:#375caa; --accent-hover:#254786; --accent-soft:#e1e9ff; }
html[data-variant="C"] { --accent:#64548c; --accent-hover:#4e3e75; --accent-soft:#ede4ff; }
body { font-family:var(--font-sans); background:var(--bg); color:var(--text); line-height:1.65; }
h1,h2,h3,html[data-variant="C"] h1,html[data-variant="C"] h2 { font-family:var(--font-sans); letter-spacing:-.035em; font-weight:550; }
h1 { line-height:1.08; } h2 { line-height:1.18; } h3 { line-height:1.3; }
.wrap { width:min(100% - 3rem,var(--max)); }
.banner { background:var(--surface-2); color:var(--muted); padding:.55rem 1.5rem; font-size:.875rem; }
.site-header { border:0; background:var(--bg); }
.site-header .wrap { padding-block:1.2rem; }
.brand { letter-spacing:-.025em; font-weight:650; }
.nav { gap:.35rem; } .nav a { padding:.6rem .8rem; border-radius:999px; font-size:.9rem; }
.nav a:hover,.nav a[aria-current="page"] { background:var(--accent-soft); color:var(--accent); text-decoration:none; }
.nav .btn { margin-left:.5rem; }
.btn,html[data-variant="C"] .btn { border-radius:999px; min-height:48px; padding:.8rem 1.4rem; box-shadow:none; font-weight:600; }
.btn--primary { background:var(--accent); color:var(--on-accent); border-color:var(--accent); }
.btn--primary:hover { background:var(--accent-hover); color:var(--on-accent); }
.btn--ghost { background:transparent; border-color:var(--control-border); color:var(--accent); }
.btn--ghost:hover { background:var(--accent-soft); }
.hero { padding-block:clamp(3rem,6vw,6rem); }
.home-hero { gap:clamp(2rem,5vw,5rem); }
.hero .lead { font-size:clamp(1.1rem,1rem + .4vw,1.3rem); line-height:1.65; max-width:43rem; }
.hero h1 { max-width:21ch; }
.section--alt { border:0; background:var(--surface-2); }
.card,.figure,.hero-study { border:0; border-radius:var(--radius); box-shadow:none; background:var(--surface); }
.card { padding:clamp(1.4rem,2.5vw,2rem); }
.card:hover { box-shadow:0 4px 16px #19242d09; }
.hero-study { background:var(--accent-soft); padding:2rem; }
.study-caption,.study-step { border-color:color-mix(in srgb,var(--accent) 20%,transparent); }
.tag { background:var(--accent-soft); color:var(--accent-hover); border:0; border-radius:8px; padding:.3rem .65rem; font-size:.875rem; }
.strip { border:0; background:var(--bg); padding-block:.5rem; }
.strip li { color:var(--muted); }
.form { border:0; border-radius:var(--radius); background:var(--surface); padding:clamp(1.2rem,3vw,2.5rem); }
.form input,.form select,.form textarea { background:var(--surface-2); border:1px solid var(--control-border); border-radius:12px; padding:.85rem; min-height:48px; }
.form select { padding-right:2.7rem; }
.form label { font-size:1rem; font-weight:500; }
.form input:focus,.form select:focus,.form textarea:focus { outline:2px solid var(--accent); outline-offset:2px; }
details { border:0; background:var(--surface); border-radius:16px; padding:1.3rem 1.5rem; }
summary { min-height:36px; }
.table-wrap { border:0; border-radius:20px; } th,td { border:0; border-bottom:1px solid var(--border); }
.site-footer { background:var(--surface-2); border:0; padding-block:3rem; }
#ig-panel { border:0; border-radius:24px; box-shadow:0 8px 32px #19242d20; }
#intake-guide .ig-launch,#intake-guide .ig-form button { border-radius:999px; }
#ig-panel .ig-choices button { border-radius:16px; padding:.6rem .8rem; }
:focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
@media(max-width:650px) { .wrap { width:calc(100% - 2rem); } .nav { gap:.15rem; } .nav a { padding:.6rem .45rem; } .nav .btn { margin-left:0; } .grid--2,.grid--3 { grid-template-columns:1fr; } .hero-study { padding:1.4rem; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; animation:none!important; } }
@media print { body { background:white; } .section--alt,.site-footer { background:white; } }
/* Static demo hub and Shiny/Bootstrap controls share the same visual roles. */
.demo-shell { max-width:76rem; width:calc(100% - 2rem); margin:auto; padding:3rem 0; }
.demo-shell .grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:1rem; }
.demo-shell a.card { color:var(--text); text-decoration:none; display:block; }
.demo-shell a.card strong { color:var(--accent); font-size:1.25rem; }
.container-fluid { padding:clamp(1rem,3vw,3rem); max-width:90rem; margin:auto; }
.container-fluid .btn { border-radius:999px; } .container-fluid .btn-primary { background:var(--accent); border-color:var(--accent); }
.container-fluid .alert { border:0; border-radius:20px; background:var(--accent-soft); color:var(--text); }
.container-fluid textarea,.container-fluid select { border-radius:12px; }
.container-fluid h2 { font-size:2rem; }
