/* JDM Apps shared styles */
:root {
  --ground:#F7F8FA; --surface:#FFFFFF; --surface-alt:#EFF2F6;
  --ink:#12161C; --ink-soft:#38414F; --muted:#5A6472;
  --rule:#DFE3E9; --rule-strong:#C3CAD4;
  --accent:#1B4DFF; --accent-ink:#FFFFFF; --accent-wash:#ECF0FF;
  --critical:#B42D1B; --critical-wash:#FCEDEA;
  --warn:#875000; --warn-wash:#FFF4E0;
  --clear:#0B6B44; --clear-wash:#E8F5EE;
  --shadow:0 1px 2px rgba(18,22,28,.06), 0 8px 24px -12px rgba(18,22,28,.14);
  --display:"Instrument Serif","Iowan Old Style",Georgia,"Times New Roman",serif;
  --ui:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --gutter:clamp(16px,5vw,64px); --maxw:1140px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground:#0D1117; --surface:#151A21; --surface-alt:#1C222B;
    --ink:#E9EDF3; --ink-soft:#C3CBD6; --muted:#8E99A8;
    --rule:#262D36; --rule-strong:#38414D;
    --accent:#6E90FF; --accent-ink:#0B0F15; --accent-wash:#161E33;
    --critical:#FF8168; --critical-wash:#2A1713;
    --warn:#F2B54A; --warn-wash:#2A2112;
    --clear:#4FC48D; --clear-wash:#11241B;
    --shadow:0 1px 2px rgba(0,0,0,.5), 0 10px 30px -14px rgba(0,0,0,.7);
  }
}
*,*::before,*::after { box-sizing:border-box; }
[hidden] { display:none !important; }
html { scroll-behavior:smooth; }
body { margin:0; background:var(--ground); color:var(--ink); font-family:var(--ui); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; }
.wrap { max-width:var(--maxw); margin-inline:auto; padding-inline:var(--gutter); }
a { color:var(--accent); }

/* Header, site nav and in-page tabs */
header.site { position:sticky; top:0; z-index:40; background:color-mix(in srgb, var(--ground) 90%, transparent); backdrop-filter:saturate(160%) blur(10px); border-bottom:1px solid var(--rule); }
.bar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-block:12px 6px; }
.mark { font-family:var(--display); font-size:23px; letter-spacing:-.015em; color:var(--ink); text-decoration:none; white-space:nowrap; }
.mark em { font-style:italic; color:var(--accent); }
.mark span { color:var(--muted); }
.nav { display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; margin-bottom:-1px; }
.nav::-webkit-scrollbar { display:none; }
.nav a, .tab { appearance:none; background:none; border:none; cursor:pointer; font-family:var(--ui); font-size:14px; font-weight:500; color:var(--muted); padding:10px 12px; border-bottom:2px solid transparent; white-space:nowrap; text-decoration:none; }
.nav a:hover, .tab:hover { color:var(--ink); }
.nav a[aria-current="page"], .tab[aria-selected="true"] { color:var(--ink); border-bottom-color:var(--accent); font-weight:600; }
.nav a:focus-visible, .tab:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }
.tabs { display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; border-bottom:1px solid var(--rule); }
.tabs::-webkit-scrollbar { display:none; }
.tab small { font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--clear); border:1px solid currentColor; background:var(--clear-wash); border-radius:2px; padding:1px 4px; margin-left:6px; }
.tabbar { background:var(--surface); border-bottom:1px solid var(--rule); }

.chip { display:inline-block; font-family:var(--mono); font-size:12px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; border:1px solid currentColor; border-radius:2px; padding:2px 7px; white-space:nowrap; }
.chip.jdm { color:var(--accent); background:var(--accent-wash); }
.chip.you { color:var(--muted); background:var(--surface); border-color:var(--rule-strong); }
.chip.crit { color:var(--critical); background:var(--critical-wash); }
.chip.warn { color:var(--warn); background:var(--warn-wash); }
.chip.ok { color:var(--clear); background:var(--clear-wash); }
.chip.info { color:var(--muted); background:var(--surface-alt); border-color:var(--rule-strong); }
.chip.new { color:var(--warn); background:var(--warn-wash); margin-left:8px; vertical-align:2px; }
button.chip { cursor:pointer; font-family:var(--mono); }
button.chip.up { color:var(--accent); background:var(--surface); border-style:dashed; }
button.chip:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }

/* Layout */
section { padding-block:clamp(36px,6vw,64px); border-top:1px solid var(--rule); }
main > section:first-child, .panel > section:first-child { border-top:none; }
.spine { display:grid; grid-template-columns:150px minmax(0,1fr); gap:clamp(20px,4vw,52px); align-items:start; }
.rail { font-family:var(--mono); font-size:12px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); padding-top:.55em; border-top:2px solid var(--ink); }
.rail span { display:block; letter-spacing:.02em; text-transform:none; margin-top:.5em; font-weight:400; }
@media (max-width:780px) { .spine { grid-template-columns:minmax(0,1fr); gap:14px; } }
.stack { display:flex; flex-direction:column; gap:20px; align-items:flex-start; }
.stack > * { max-width:100%; }
.full { width:100%; }

h1,h2,h3 { margin:0; text-wrap:balance; font-weight:400; }
h1 { font-family:var(--display); font-size:clamp(34px,5.6vw,60px); line-height:1.04; letter-spacing:-.02em; }
h1 .quiet { color:var(--muted); }
h2 { font-family:var(--display); font-size:clamp(25px,3.4vw,36px); line-height:1.1; letter-spacing:-.015em; }
h3 { font-family:var(--ui); font-size:16.5px; font-weight:600; letter-spacing:-.01em; }
p { margin:0; max-width:66ch; color:var(--ink-soft); }
.lede { font-size:clamp(17px,2vw,19px); line-height:1.55; }
.eyebrow { font-family:var(--mono); font-size:12px; font-weight:500; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
.note { font-size:13.5px; color:var(--muted); }
.candour { padding:14px 16px; border:1px solid var(--rule-strong); border-radius:2px; background:var(--surface); font-size:14px; color:var(--ink-soft); width:100%; }
.candour strong { color:var(--ink); }
.offer { width:100%; display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; justify-content:space-between; padding:16px 18px; background:var(--accent-wash); border:1px solid var(--accent); border-left-width:3px; border-radius:2px; }
.offer p { color:var(--ink); font-size:15px; }
.offer p small { display:block; color:var(--muted); font-size:13px; margin-top:2px; }

/* Buttons */
button.go, a.buy { display:inline-block; font-family:var(--ui); font-size:14px; font-weight:600; color:var(--accent-ink); background:var(--accent); border:1px solid var(--accent); border-radius:2px; padding:10px 18px; cursor:pointer; white-space:nowrap; text-decoration:none; line-height:1.4; }
button.go:hover, a.buy:hover { filter:brightness(1.08); }
button.go:focus-visible, a.buy:focus-visible { outline:2px solid var(--ink); outline-offset:2px; }
button.go.quiet, a.buy.quiet { background:transparent; color:var(--accent); border-color:var(--rule-strong); }
button.go:disabled { opacity:.6; cursor:progress; }
a.buy.sm, button.go.sm { font-size:13px; padding:7px 13px; }
.row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

/* Packages */
.pkgs { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; width:100%; }
.pkg { position:relative; text-align:left; cursor:pointer; font:inherit; color:inherit; background:var(--surface); border:1px solid var(--rule-strong); border-radius:3px; padding:18px; display:flex; flex-direction:column; gap:10px; }
.pkg:hover { border-color:var(--accent); }
.pkg:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.pkg[aria-checked="true"] { border-color:var(--accent); box-shadow:inset 3px 0 0 var(--accent), var(--shadow); background:var(--accent-wash); }
.pkg .price { font-family:var(--mono); font-size:24px; font-weight:500; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.pkg .price small { font-size:12px; color:var(--muted); font-weight:400; letter-spacing:0; margin-left:6px; }
.pkg ul { margin:0; padding-left:18px; font-size:14px; color:var(--ink-soft); display:flex; flex-direction:column; gap:4px; }
.pkg .sel { font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-top:auto; padding-top:6px; }
.pkg[aria-checked="true"] .sel { color:var(--accent); font-weight:600; }

/* Forms */
.form { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px 16px; width:100%; background:var(--surface); border:1px solid var(--rule-strong); border-radius:3px; padding:18px; box-shadow:var(--shadow); }
.form .wide { grid-column:1 / -1; }
label.f { display:flex; flex-direction:column; gap:6px; font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
label.f .req { color:var(--critical); margin-left:3px; }
label.f small { font-family:var(--ui); font-size:12.5px; letter-spacing:0; text-transform:none; color:var(--muted); }
label.f input, label.f select, label.f textarea { font-family:var(--ui); font-size:15px; letter-spacing:0; text-transform:none; color:var(--ink); background:var(--ground); border:1px solid var(--rule-strong); border-radius:2px; padding:10px 11px; width:100%; }
label.f textarea { min-height:76px; resize:vertical; }
label.f input:focus-visible, label.f select:focus-visible, label.f textarea:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
label.check { display:flex; gap:10px; align-items:flex-start; font-size:14.5px; color:var(--ink); cursor:pointer; }
label.check input { width:18px; height:18px; margin-top:3px; accent-color:var(--accent); flex:none; }
/* Option rows: boxed checkboxes for multiple-choice lists. Single confirmations stay plain label.check rows. */
label.check.option { width:100%; padding:10px 12px; border:1px solid var(--rule-strong); border-radius:3px; background:var(--surface); }
label.check.option:hover { border-color:var(--accent); }
label.check.option:has(input:checked) { border-color:var(--accent); background:var(--accent-wash); }
pre.summary { margin:0; width:100%; padding:13px 15px; background:var(--surface); border:1px solid var(--rule); border-radius:2px; font-family:var(--mono); font-size:13px; line-height:1.7; color:var(--ink); white-space:pre-wrap; word-break:break-word; max-height:420px; overflow:auto; }

/* Domain check */
.domain-check { width:100%; max-width:620px; border:1px solid var(--rule-strong); background:var(--surface); border-radius:3px; padding:18px; box-shadow:var(--shadow); }
.domain-check > label { display:block; font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:9px; }
.field { display:flex; gap:9px; flex-wrap:wrap; }
.field input { flex:1 1 220px; min-width:0; font-family:var(--mono); font-size:15px; color:var(--ink); background:var(--ground); border:1px solid var(--rule-strong); border-radius:2px; padding:11px 12px; }
.field input:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.err { color:var(--critical); font-size:14px; }
.tally { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tally .dom { font-family:var(--mono); font-size:15px; font-weight:500; color:var(--ink); margin-right:6px; }
.findings { width:100%; display:flex; flex-direction:column; gap:10px; }
.finding { border:1px solid var(--rule-strong); border-left:3px solid var(--rule-strong); background:var(--surface); border-radius:2px; padding:14px 16px; display:flex; flex-direction:column; gap:8px; }
.finding.crit { border-left-color:var(--critical); }
.finding.warn { border-left-color:var(--warn); }
.finding.ok { border-left-color:var(--clear); }
.finding .head { display:flex; gap:10px; align-items:flex-start; flex-wrap:wrap; }
.finding .head h3 { font-size:15.5px; flex:1; min-width:200px; }
.finding pre { margin:0; padding:10px 12px; background:var(--ground); border:1px solid var(--rule); border-radius:2px; font-family:var(--mono); font-size:12.5px; line-height:1.65; color:var(--ink); white-space:pre-wrap; word-break:break-all; }
.finding p { font-size:14.5px; }
.finding p strong { color:var(--ink); }

/* Services catalog / price lists */
.svc { width:100%; display:grid; grid-template-columns:minmax(0,1fr); gap:14px; padding-block:22px; border-top:1px solid var(--rule); }
.svc:first-child { border-top:none; padding-top:0; }
.svc-head { display:flex; justify-content:space-between; gap:12px; align-items:baseline; flex-wrap:wrap; }
.svc-n { font-family:var(--mono); font-size:12px; letter-spacing:.1em; color:var(--muted); text-transform:uppercase; }
.plist { width:100%; display:flex; flex-direction:column; }
.plist .line { display:flex; justify-content:space-between; align-items:center; gap:8px 20px; flex-wrap:wrap; padding:12px 0; border-top:1px solid var(--rule); }
.plist .line:first-child { border-top:none; }
.plist .line.lift { background:var(--accent-wash); border:1px solid var(--accent); border-left-width:3px; border-radius:2px; padding:12px 14px; margin-block:4px; }
.plist .nm { font-size:14.5px; font-weight:600; color:var(--ink); flex:1 1 260px; min-width:0; }
.plist .nm small { display:block; font-weight:400; color:var(--muted); font-size:13px; margin-top:2px; line-height:1.5; }
.plist .amt { font-family:var(--mono); font-size:15px; color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; text-align:right; }
.plist .amt small { display:block; font-size:12px; color:var(--muted); }
.plist .act { display:flex; gap:8px; }
@media (max-width:560px) { .plist .amt { text-align:left; } }

/* Progress and checklists */
.progress { width:100%; display:flex; flex-direction:column; gap:8px; }
.progress .top { display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-family:var(--mono); font-size:12.5px; color:var(--muted); }
.progress .top b { color:var(--ink); font-weight:600; font-size:15px; }
.meter { height:8px; background:var(--surface-alt); border:1px solid var(--rule); border-radius:999px; overflow:hidden; }
.meter i { display:block; height:100%; width:0; background:var(--accent); transition:width .25s ease; }
.meter.done i { background:var(--clear); }
.group { width:100%; }
.group > h3 { font-family:var(--mono); font-size:12px; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); padding-bottom:8px; border-bottom:1px solid var(--rule-strong); }
.items { list-style:none; margin:0; padding:0; }
.item { display:flex; gap:12px; align-items:flex-start; padding:13px 2px; border-bottom:1px solid var(--rule); }
.item input[type=checkbox] { width:19px; height:19px; margin:3px 0 0; accent-color:var(--accent); flex:none; cursor:pointer; }
.item label { flex:1; min-width:0; cursor:pointer; }
.item .t { display:block; font-weight:600; font-size:15px; color:var(--ink); }
.item .d { display:block; font-size:13.5px; color:var(--muted); margin-top:2px; }
.item.done .t { color:var(--muted); text-decoration:line-through; text-decoration-color:var(--rule-strong); }
.item .chip { margin-top:3px; flex:none; }
@media (max-width:560px) { .item { flex-wrap:wrap; } .item .chip { margin-left:31px; } }

/* Numbered process (onboarding) */
ol.process { list-style:none; margin:0; padding:0; width:100%; counter-reset:step; display:flex; flex-direction:column; }
ol.process > li { position:relative; padding:0 0 26px 52px; counter-increment:step; }
ol.process > li::before { content:counter(step); position:absolute; left:0; top:0; width:32px; height:32px; border-radius:50%; border:1px solid var(--accent); color:var(--accent); background:var(--surface); font-family:var(--mono); font-size:13px; font-weight:600; display:grid; place-items:center; }
ol.process > li::after { content:""; position:absolute; left:15.5px; top:34px; bottom:4px; width:1px; background:var(--rule-strong); }
ol.process > li:last-child::after { display:none; }
ol.process h3 { margin:4px 0 4px; }
ol.process p { font-size:15px; }
ol.process .when { font-family:var(--mono); font-size:12px; color:var(--muted); letter-spacing:.04em; margin-top:6px; display:block; }

/* Portal stepper */
.steps { display:flex; flex-wrap:wrap; gap:6px; width:100%; list-style:none; margin:0; padding:0; }
.steps li { font-family:var(--mono); font-size:12px; color:var(--muted); border:1px solid var(--rule-strong); background:var(--surface); border-radius:999px; padding:4px 11px; }
.steps li.done { color:var(--clear); border-color:var(--clear); background:var(--clear-wash); }
.steps li.now { color:var(--accent-ink); background:var(--accent); border-color:var(--accent); }
.card { width:100%; background:var(--surface); border:1px solid var(--rule-strong); border-radius:3px; padding:18px; display:flex; flex-direction:column; gap:12px; }
.card h3 .chip { margin-left:8px; vertical-align:2px; }
.card ul { margin:0; padding-left:20px; color:var(--ink-soft); font-size:14.5px; display:flex; flex-direction:column; gap:4px; }
.track { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1px; background:var(--rule); border:1px solid var(--rule); border-radius:3px; overflow:hidden; width:100%; }
.track div { background:var(--surface); padding:12px 14px; font-size:13.5px; color:var(--muted); }
.track div b { display:block; font-size:14px; color:var(--ink); }
.track div.on { background:var(--accent-wash); }
.track div.on b { color:var(--accent); }

/* FAQ */
.faq { width:100%; display:flex; flex-direction:column; }
.faq details { border-top:1px solid var(--rule); padding:15px 0; }
.faq details:first-of-type { border-top:none; }
.faq summary { cursor:pointer; font-weight:600; font-size:15.5px; color:var(--ink); list-style:none; display:flex; justify-content:space-between; gap:16px; align-items:center; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; font-family:var(--mono); color:var(--accent); font-size:17px; flex:none; }
.faq details[open] summary::after { content:"\2212"; }
.faq summary:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.faq details p { margin-top:10px; font-size:15px; }

/* Resources */
.links { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:12px; width:100%; }
.links a.res { display:flex; flex-direction:column; gap:4px; padding:14px 16px; background:var(--surface); border:1px solid var(--rule-strong); border-radius:3px; text-decoration:none; color:var(--ink); }
.links a.res:hover { border-color:var(--accent); }
.links a.res:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.links a.res b { font-size:15px; }
.links a.res span { font-size:13.5px; color:var(--muted); }
.links a.res i { font-style:normal; font-family:var(--mono); font-size:12px; color:var(--accent); }
dl.gloss { margin:0; width:100%; display:grid; grid-template-columns:minmax(110px,160px) minmax(0,1fr); gap:0; border:1px solid var(--rule); border-radius:3px; overflow:hidden; background:var(--surface); }
dl.gloss dt, dl.gloss dd { margin:0; padding:12px 14px; border-top:1px solid var(--rule); }
dl.gloss dt:first-of-type, dl.gloss dt:first-of-type + dd { border-top:none; }
dl.gloss dt { font-family:var(--mono); font-size:13px; font-weight:600; color:var(--ink); background:var(--surface-alt); }
dl.gloss dd { font-size:14.5px; color:var(--ink-soft); }
@media (max-width:560px) { dl.gloss { grid-template-columns:1fr; } dl.gloss dd { border-top:none; padding-top:0; background:var(--surface-alt); } }

/* Policy text */
.policy { width:100%; max-width:760px; display:flex; flex-direction:column; gap:14px; }
.policy h2 { margin-top:18px; font-size:clamp(22px,2.6vw,28px); }
.policy ul { margin:0; padding-left:22px; color:var(--ink-soft); display:flex; flex-direction:column; gap:6px; }
.policy li strong { color:var(--ink); }
.pv-wrap { width:100%; overflow-x:auto; border:1px solid var(--rule); border-radius:3px; background:var(--surface); }
table.pv { width:100%; min-width:640px; border-collapse:collapse; font-size:14px; }
table.pv th { text-align:left; font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:500; padding:11px 13px; background:var(--surface-alt); border-bottom:1px solid var(--rule); }
table.pv td { padding:12px 13px; border-bottom:1px solid var(--rule); vertical-align:top; color:var(--ink-soft); }
table.pv tr:last-child td { border-bottom:none; }
table.pv td:first-child { color:var(--ink); font-weight:600; }

/* Footer */
footer.site { border-top:1px solid var(--rule); padding-block:28px 96px; font-size:13px; color:var(--muted); }
footer.site p { color:var(--muted); max-width:none; }
footer.site a { color:var(--muted); }
.foot { display:flex; flex-direction:column; gap:8px; }
.foot-links { display:flex; flex-wrap:wrap; gap:6px 18px; }

/* Chat */
.chat-fab { position:fixed; right:18px; bottom:18px; z-index:50; font-family:var(--ui); font-size:14.5px; font-weight:600; color:var(--accent-ink); background:var(--accent); border:none; border-radius:999px; padding:12px 18px; box-shadow:var(--shadow); cursor:pointer; }
.chat-fab:hover { filter:brightness(1.08); }
.chat-fab:focus-visible { outline:2px solid var(--ink); outline-offset:3px; }
.chat { position:fixed; right:18px; bottom:18px; z-index:55; width:min(390px, calc(100vw - 24px)); height:min(600px, calc(100dvh - 36px)); display:flex; flex-direction:column; background:var(--surface); border:1px solid var(--rule-strong); border-radius:6px; box-shadow:0 20px 50px -18px rgba(0,0,0,.45); overflow:hidden; }
@media (max-width:560px) { .chat { right:12px; bottom:12px; height:calc(100dvh - 24px); } }
.chat-head { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:12px 14px; border-bottom:1px solid var(--rule); background:var(--surface-alt); }
.chat-head b { display:block; font-size:15px; }
.chat-head small { display:block; font-size:12px; color:var(--muted); }
.chat-x { appearance:none; background:none; border:1px solid var(--rule-strong); border-radius:2px; width:32px; height:32px; font-size:18px; line-height:1; color:var(--ink); cursor:pointer; }
.chat-x:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.chat-log { flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; }
.msg { max-width:88%; padding:9px 12px; border-radius:10px; font-size:14.5px; line-height:1.5; white-space:pre-wrap; word-wrap:break-word; }
.msg.user { align-self:flex-end; background:var(--accent); color:var(--accent-ink); border-bottom-right-radius:3px; }
.msg.bot { align-self:flex-start; background:var(--surface-alt); color:var(--ink); border-bottom-left-radius:3px; }
.msg.typing { color:var(--muted); font-style:italic; }
.msg-acts { align-self:flex-start; display:flex; flex-wrap:wrap; gap:6px; margin-top:-4px; }
.chat-quick { display:flex; flex-wrap:wrap; gap:6px; padding:0 14px 10px; }
.chat-quick button { font-family:var(--ui); font-size:12.5px; color:var(--accent); background:var(--surface); border:1px solid var(--rule-strong); border-radius:999px; padding:5px 11px; cursor:pointer; }
.chat-quick button:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.chat-form { display:flex; gap:8px; padding:10px 14px; border-top:1px solid var(--rule); }
.chat-form input { flex:1; min-width:0; font-family:var(--ui); font-size:15px; color:var(--ink); background:var(--ground); border:1px solid var(--rule-strong); border-radius:2px; padding:9px 10px; }
.chat-form input:focus-visible { outline:2px solid var(--accent); outline-offset:1px; }
.chat-fine { font-size:12px; color:var(--muted); padding:0 14px 10px; max-width:none; line-height:1.45; }
.chat-fine a { color:var(--accent); }

.toast { position:fixed; left:50%; bottom:22px; transform:translateX(-50%); background:var(--ink); color:var(--ground); font-size:13.5px; padding:9px 16px; border-radius:3px; box-shadow:var(--shadow); z-index:60; }
@media (prefers-reduced-motion:reduce) { * { transition-duration:.001ms !important; scroll-behavior:auto !important; } }

/* Home page path cards */
.paths { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; width:100%; }
.path { display:flex; flex-direction:column; gap:6px; padding:18px; background:var(--surface); border:1px solid var(--rule-strong); border-radius:3px; text-decoration:none; color:var(--ink); }
.path:hover { border-color:var(--accent); box-shadow:var(--shadow); }
.path:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.path i { font-style:normal; font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--accent); }
.path b { font-size:18px; line-height:1.3; }
.path span { font-size:14.5px; color:var(--ink-soft); }
.path em { font-style:normal; margin-top:auto; padding-top:6px; font-weight:600; font-size:14.5px; color:var(--accent); }
[id] { scroll-margin-top:110px; }

/* Phones: header scrolls away, menu wraps, no duplicate side labels, 44px buttons */
@media (max-width:780px) {
  header.site { position:static; }
  .nav { flex-wrap:wrap; overflow:visible; margin-bottom:0; }
  .nav a { padding:10px 9px; }
  .tabs { flex-wrap:wrap; overflow:visible; }
  .tab, .nav a { padding:10px 9px; min-height:44px; display:inline-flex; align-items:center; }
  .rail:not(.keep) { display:none; }
  button.go, a.buy { min-height:44px; display:inline-flex; align-items:center; justify-content:center; text-align:center; }
  [id] { scroll-margin-top:12px; }
}

/* Skip link: hidden until a keyboard user tabs to it */
.skip { position:absolute; left:12px; top:-64px; z-index:100; background:var(--accent); color:var(--accent-ink); padding:10px 16px; border-radius:2px; font-weight:600; text-decoration:none; }
.skip:focus { top:12px; outline:2px solid var(--ink); outline-offset:2px; }
main:focus { outline:none; }

/* Chat button: slides away while scrolling down, comes back on scroll up */
.chat-fab { transition:transform .2s ease, opacity .2s ease; }
.chat-fab.away { transform:translateY(160%); opacity:0; pointer-events:none; }
@media (max-width:560px) { .chat-fab { right:12px; bottom:12px; padding:10px 16px; font-size:14px; min-height:44px; } }

/* Accessibility fixes (audit 2026-11-24) */
:root { --field-line:#848E9C; }
@media (prefers-color-scheme: dark) { :root { --field-line:#6B7685; } }
label.f input, label.f select, label.f textarea, .field input, .chat-form input { border-color:var(--field-line); }
[aria-invalid="true"] { border-color:var(--critical) !important; box-shadow:0 0 0 1px var(--critical); }
.sr-only { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.pv-wrap:focus-visible, pre.summary:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.chat { width:min(390px, calc(100% - 24px)); }
@media (max-width:560px) { .chat { right:12px; bottom:12px; } }
h2.as-h3 { font-family:var(--ui); font-size:16.5px; font-weight:600; letter-spacing:-.01em; line-height:1.3; }

/* Product pages: plan cards, placeholders and notices (shared by Fix & Check and founder pages) */
.plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; width:100%; }
.plan-card { background:var(--surface); border:1px solid var(--rule-strong); border-radius:3px; padding:18px; display:flex; flex-direction:column; gap:10px; }
.plan-card.lift { border-color:var(--accent); box-shadow:inset 0 3px 0 var(--accent), var(--shadow); }
.plan-card .kind { font-family:var(--mono); font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.plan-card .p { font-family:var(--mono); font-size:28px; font-weight:500; letter-spacing:-.03em; color:var(--ink); }
.plan-card .p small { font-size:13px; color:var(--muted); letter-spacing:0; }
.plan-card .p.pending { font-size:17px; letter-spacing:0; font-family:var(--ui); font-weight:600; }
.plan-card ul { margin:0; padding-left:18px; font-size:14px; color:var(--ink-soft); display:flex; flex-direction:column; gap:4px; flex:1; }
.plan-card a.buy, .plan-card button.go { text-align:center; white-space:normal; justify-content:center; }
.chip.tbc { color:var(--warn); background:var(--warn-wash); }
.notice { width:100%; padding:14px 16px; background:var(--warn-wash); border:1px solid var(--warn); border-left-width:3px; border-radius:2px; font-size:14px; color:var(--ink); }
.notice strong { color:var(--ink); }
dl.terms { display:grid; grid-template-columns:minmax(140px,max-content) 1fr; gap:8px 16px; margin:0; font-size:14px; width:100%; }
dl.terms dt { color:var(--muted); }
dl.terms dd { margin:0; color:var(--ink); }
@media (max-width:560px) { dl.terms { grid-template-columns:1fr; gap:2px; } dl.terms dd { margin-bottom:8px; } }
.status-list { list-style:none; margin:0; padding:0; width:100%; border:1px solid var(--rule-strong); border-radius:3px; background:var(--surface); }
.status-list li { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px 14px; padding:12px 16px; border-top:1px solid var(--rule); font-size:14.5px; color:var(--ink-soft); }
.status-list li:first-child { border-top:none; }
.status-list li b { color:var(--ink); font-weight:600; display:block; }
.status-list li .chip { align-self:flex-start; }
@media (max-width:780px) { .faq summary { min-height:44px; } }
.status-list li { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; }
@media (max-width:560px) { .status-list li { grid-template-columns:1fr; } }
