/* DungeonOS design system — "Leather & Hardware"
   Dark by default: black leather, chrome hardware, safeword red.
   Red is the brand and the primary action; green/amber are kept strictly for status
   (paid / due) so a door-staff glance never confuses brand colour with payment state.
   Light theme is opt-in via the toggle. */


:root {
  --leather: #0d0c0e;     /* page */
  --hide: #161418;        /* raised panels */
  --hide-2: #1e1b20;      /* inputs, hover */
  --seam: #3a3540;        /* hairlines and stitching */
  --bone: #efe9e4;        /* text */
  --bone-2: #bdb5b7;      /* secondary text */
  --bone-3: #8c8489;      /* tertiary text */
  --chrome: #c9ced3;      /* hardware highlights */
  --chrome-2: #7d848b;
  --red: #e0263f;         /* safeword red: brand + primary actions */
  --red-ink: #ff6b7d;     /* red text/links on dark */
  --red-wash: #3b1219;
  --on-red: #ffffff;
  --paid: #4cc78f; --paid-wash: #11301f; --due: #f2b33d; --due-wash: #3a2c0e; --held: #ff7b6b; --held-wash: #3b1714;
  --shadow: 0 1px 0 rgba(0,0,0,.5), 0 18px 40px -20px rgba(0,0,0,.9);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-xs: .8rem; --t-s: .9rem; --t-m: 1.0625rem; --t-l: 1.3rem; --t-xl: 1.65rem; --t-2xl: 2.15rem; --t-3xl: clamp(2.6rem, 6vw, 4.4rem);
  --gutter: 16px; --measure: 66ch; --wrap: 1160px; --r-s: 6px; --r-m: 12px;
  color-scheme: dark;

  /* legacy aliases used by components/illustrations */
  --iron: var(--bone); --iron-2: var(--bone-2); --iron-3: var(--bone-3); --mist: var(--leather); --sheet: var(--hide); --rule: var(--seam);
  --verdigris: var(--red); --verdigris-ink: var(--red-ink); --verdigris-wash: var(--red-wash); --on-primary: var(--on-red);
  --marigold: var(--chrome); --marigold-wash: var(--hide-2); --signal: var(--held); --signal-wash: var(--held-wash);
}
:root[data-theme="light"] {
  --leather: #f5f2f0; --hide: #ffffff; --hide-2: #f0ebe8; --seam: #d9d0cc;
  --bone: #19161a; --bone-2: #4a4247; --bone-3: #6f666b; --chrome: #5b636b; --chrome-2: #9aa1a8;
  --red: #b8152e; --red-ink: #9c0f25; --red-wash: #fbe3e6; --on-red: #ffffff;
  --paid: #137a4b; --paid-wash: #dcf2e6; --due: #8a5a00; --due-wash: #fbefd2; --held: #b3261e; --held-wash: #f8dfdc;
  --shadow: 0 1px 0 rgba(25,22,26,.05), 0 12px 30px -16px rgba(25,22,26,.25);
  --grain: none;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--grain), var(--leather); color: var(--iron); font: 400 var(--t-m)/1.6 var(--font-ui); font-variant-numeric: tabular-nums; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--verdigris-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--marigold); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--sheet); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.012em; word-spacing: -.05em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: var(--t-3xl); font-weight: 560; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); line-height: 1.25; }
p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
.lede { font-size: var(--t-l); line-height: 1.5; color: var(--iron-2); max-width: 54ch; }
.muted { color: var(--iron-3); }
small, .small { font-size: var(--t-s); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
main > section { padding-block: clamp(3rem, 8vw, 6rem); }
main > section + section { border-top: 1px solid var(--rule); }

/* ---------- header ---------- */
.site-header { background: var(--mist); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--iron); text-decoration: none; font-family: var(--font-display); font-weight: 650; font-size: 1.2rem; letter-spacing: -.01em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; align-items: center; }
.nav a { color: var(--iron-2); text-decoration: none; font-size: var(--t-s); padding: .5rem 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--iron); box-shadow: inset 0 -2px 0 var(--marigold); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.theme-toggle, .menu-toggle { background: none; border: 1px solid var(--rule); color: var(--iron-2); border-radius: var(--r-s); width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer; }
.menu-toggle { display: none; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--sheet); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--gutter) 1rem; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: .85rem 0; font-size: var(--t-m); border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--verdigris-ink); }
  .header-actions { margin-left: auto; }
  .header-actions .btn-quiet { display: none; }
  .header-actions .btn-primary { min-height: 40px; padding: .5rem .85rem; }
  .actions .btn { flex: 1 1 auto; }
}

/* ---------- buttons & forms ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: .7rem 1.2rem; border-radius: var(--r-s); font: 600 var(--t-s)/1.2 var(--font-ui); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--verdigris); color: var(--on-primary); }
.btn-primary:hover { background: var(--verdigris-ink); }
:root[data-theme="dark"] .btn-primary:hover { background: var(--verdigris-ink); }
.btn-secondary { background: transparent; color: var(--iron); border-color: var(--iron-3); }
.btn-secondary:hover { border-color: var(--iron); }
.btn-quiet { color: var(--iron-2); padding-inline: .6rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.form { display: grid; gap: 1.1rem; max-width: 640px; }
.form .row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .field legend { font-weight: 600; font-size: var(--t-s); }
.field .hint { color: var(--iron-3); font-size: var(--t-s); margin: 0; }
.field input, .field select, .field textarea { font: inherit; color: var(--iron); background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-s); padding: .7rem .8rem; min-height: 46px; width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--verdigris); outline: 2px solid var(--verdigris-wash); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--signal); }
.field .error { color: var(--signal); font-size: var(--t-s); margin: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-s); }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--verdigris); }
.notice { border-radius: var(--r-s); padding: .9rem 1rem; font-size: var(--t-s); border: 1px solid var(--rule); background: var(--sheet); }
.notice.ok { border-color: var(--verdigris); background: var(--verdigris-wash); }
.notice.err { border-color: var(--signal); background: var(--signal-wash); }
.notice.wait { border-color: var(--marigold); background: var(--marigold-wash); }
.notice p:last-child { margin: 0; }

/* ---------- status pills (the "wristband") ---------- */
.pill { display: inline-flex; align-items: center; gap: .35rem; font-size: var(--t-xs); font-weight: 600; padding: .2rem .55rem; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.pill.paid { color: var(--verdigris-ink); background: var(--verdigris-wash); border-color: transparent; }
.pill.due { color: var(--iron); background: var(--marigold-wash); border-color: transparent; }
.pill.held { color: var(--signal); background: var(--signal-wash); border-color: transparent; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero .lede { margin-bottom: 0; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; filter: drop-shadow(0 18px 30px rgba(29,37,35,.14)); }
.hero-note { font-size: var(--t-xs); color: var(--iron-3); margin-top: .75rem; text-align: right; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { max-width: 18ch; } }

/* ---------- content blocks ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--iron-2); }

.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 2.25rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; align-content: start; }
.feature-list .icon { width: 28px; height: 28px; color: var(--verdigris); grid-row: span 2; margin-top: .1rem; }
.feature-list h3 { font-size: 1.12rem; margin: 0; }
.feature-list p { margin: 0; color: var(--iron-2); font-size: var(--t-s); }


.band { height: 10px; background: linear-gradient(90deg, var(--marigold) 0 22%, #49b8a3 22% 44%, #e8ece9 44% 46%, transparent 46%); border-radius: 2px; width: 220px; margin-bottom: 1.5rem; }

.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; border-top: 2px solid var(--iron); }
.flow li { counter-increment: step; padding: 1rem 1.25rem 0 0; position: relative; }
.flow li::before { content: counter(step); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; color: var(--verdigris); display: block; margin-bottom: .3rem; }
.flow li::after { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--mist); border: 2px solid var(--iron); }
.flow h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.flow p { font-size: var(--t-s); color: var(--iron-2); margin: 0; }
@media (max-width: 880px) { .flow { grid-template-columns: 1fr; border-top: 0; border-left: 2px solid var(--iron); padding-left: 1.5rem; } .flow li { padding: 0 0 1.5rem; } .flow li::after { top: .55rem; left: calc(-1.5rem - 7px); } }

.types { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-m); overflow: hidden; }
.types article { background: var(--sheet); padding: 1.75rem; }
.types svg.pict { width: 64px; height: 64px; margin-bottom: 1rem; }
.types h3 { margin-bottom: .35rem; }
.types p { color: var(--iron-2); font-size: var(--t-s); }
.types .fit { font-size: var(--t-s); margin: 0; color: var(--iron); }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; }
.plan.featured { border: 2px solid var(--verdigris); box-shadow: var(--shadow); }
.plan h3 { font-size: var(--t-xl); margin: 0; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1; margin: 0; }
.plan .price span { font: 400 var(--t-s) var(--font-ui); color: var(--iron-3); margin-left: .25rem; }
.plan .limits { margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--rule); }
.plan .limits li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; font-size: var(--t-s); }
.plan .limits li + li { border-top: 1px dashed var(--rule); }
.plan .limits b { font-weight: 600; }
.plan ul.incl { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; font-size: var(--t-s); }
.plan ul.incl li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .5rem; }
.plan ul.incl .icon { width: 1.05rem; height: 1.05rem; color: var(--verdigris); margin-top: .2rem; }
.plan .btn { margin-top: auto; }
.ribbon { align-self: flex-start; }

.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }
.service { border: 1px solid var(--rule); border-radius: var(--r-m); padding: 1.5rem; background: var(--sheet); }
.service .price { font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin: .25rem 0 .75rem; }
.service .price span { font: 400 var(--t-s) var(--font-ui); color: var(--iron-3); }

.compare { width: 100%; border-collapse: collapse; font-size: var(--t-s); }
.compare caption { text-align: left; font-weight: 600; padding-bottom: .75rem; }
.compare th, .compare td { padding: .65rem .75rem; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare thead th { position: sticky; top: 64px; background: var(--mist); font-family: var(--font-display); font-size: 1.05rem; }
.compare tbody th { font-weight: 500; color: var(--iron-2); }
.compare td { text-align: center; }
.compare .yes { color: var(--verdigris); }
.compare .no { color: var(--iron-3); }
.compare tr.group th { font-family: var(--font-display); font-size: 1.05rem; color: var(--iron); padding-top: 1.5rem; background: transparent; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- prose pages ---------- */
.prose { max-width: var(--measure); }
.prose h2 { font-size: var(--t-xl); margin-top: 2.25rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .4rem; }
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; }
.page-head + section { border-top: 0 !important; padding-top: 1.5rem !important; }
.draft { border-left: 4px solid var(--marigold); background: var(--marigold-wash); padding: .9rem 1rem; font-size: var(--t-s); margin-bottom: 2rem; }

details.faq { border-bottom: 1px solid var(--rule); padding: 1rem 0; max-width: 54rem; }
details.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font-family: var(--font-ui); color: var(--verdigris); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding-top: .75rem; color: var(--iron-2); }

.grant-status { display: flex; gap: .75rem; align-items: center; margin-bottom: 1.5rem; }
.cta-band { background: var(--verdigris-wash); }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; }
.cta-band h2 { margin: 0; max-width: 24ch; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom)); font-size: var(--t-s); color: var(--iron-2); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }
.site-footer h2 { font-family: var(--font-ui); font-size: var(--t-s); font-weight: 650; margin-bottom: .6rem; color: var(--iron); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--iron-2); text-decoration: none; }
.site-footer a:hover { color: var(--iron); text-decoration: underline; }
.site-footer .fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; color: var(--iron-3); }

/* ---------- illustration theming ---------- */
.ill-s { fill: var(--signal); } .ill-sw { fill: var(--signal-wash); } .ill-stroke { stroke: var(--iron); fill: none; }
.ill-text { font-family: var(--font-ui); fill: var(--iron); } .ill-text2 { font-family: var(--font-ui); fill: var(--iron-3); }
.ill-serif { font-family: var(--font-display); fill: var(--iron); }

@media (prefers-reduced-motion: no-preference) {
  .hero-art .scan-row { animation: arrive 900ms 500ms cubic-bezier(.2,.7,.2,1) both; }
  .hero-art .check-tick { animation: tick 400ms 1300ms ease-out both; }
}
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tick { from { opacity: 0; transform: scale(.4); transform-origin: center; } to { opacity: 1; transform: none; } }
@media print { .site-header, .site-footer, .theme-toggle { display: none; } body { background: #fff; } }

/* ================= Leather & Hardware layer ================= */
.ill-paper { fill: var(--hide); } .ill-rule { stroke: var(--seam); } .ill-ink { fill: var(--bone); } .ill-ink2 { fill: var(--bone-3); }
.ill-v { fill: var(--red); } .ill-vw { fill: var(--red-wash); } .ill-m { fill: var(--chrome); } .ill-mw { fill: var(--hide-2); }
.ill-paid { fill: var(--paid-wash); } .ill-due { fill: var(--due-wash); } .ill-ok { fill: var(--paid); } .ill-band { fill: var(--red); }
.ill-steel { fill: url(#steel); }

.site-header { background: rgba(13,12,14,.86); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px dashed var(--seam); }
:root[data-theme="light"] .site-header { background: rgba(245,242,240,.9); }
.nav a:hover, .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--red); }
:focus-visible { outline-color: var(--red-ink); }

h1, h2 { font-style: italic; font-weight: 600; }
h1 { letter-spacing: -.02em; }
main > section + section { border-top: 0; position: relative; }
main > section + section::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(var(--wrap), 100% - 2 * var(--gutter)); border-top: 1px dashed var(--seam); }

/* stitched panels: a dashed seam inset from the edge, like leather piping */
.stitched { position: relative; background: var(--hide); border: 1px solid var(--seam); border-radius: var(--r-m); }
.stitched::after { content: ""; position: absolute; inset: 6px; border: 1px dashed color-mix(in srgb, var(--chrome-2) 55%, transparent); border-radius: calc(var(--r-m) - 4px); pointer-events: none; }

.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--red) 22%, transparent), transparent 70%); pointer-events: none; }
:root[data-theme="light"] .hero::before { opacity: .45; }
.hero .wrap { position: relative; }
.hero-art svg { filter: drop-shadow(0 30px 40px rgba(0,0,0,.55)); }
:root[data-theme="light"] .hero-art svg { filter: drop-shadow(0 20px 30px rgba(25,22,26,.18)); }
.hero .kicker { color: var(--bone-2); font-size: var(--t-s); margin-bottom: 1rem; display: flex; gap: .6rem; align-items: center; }
.hero .kicker svg { width: 22px; height: 22px; }

.btn-primary { background: var(--red); color: var(--on-red); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--red) 80%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--red) 85%, #000); }
.btn-secondary { border-color: var(--chrome-2); color: var(--bone); }
.btn-secondary:hover { border-color: var(--chrome); background: var(--hide-2); }

.pill.paid { color: var(--paid); background: var(--paid-wash); }
.pill.due { color: var(--due); background: var(--due-wash); }
.pill.held { color: var(--held); background: var(--held-wash); }
.pill.brand { color: var(--red-ink); background: var(--red-wash); border-color: transparent; }

/* pledge: the one bold block — oxide-red leather panel with chrome rivets */
.pledge { background: linear-gradient(180deg, color-mix(in srgb, var(--red) 16%, var(--leather)), var(--leather) 85%); color: var(--bone); }
:root[data-theme="light"] .pledge { background: #19161a; color: #efe9e4; }
.pledge h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.pledge p { color: #cfc7c9; }
.pledge a { color: #ff8a98; }
.pledge .commitments { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1rem; }
.pledge .commitments li { position: relative; padding: 1.4rem 1.5rem 1.4rem 1.5rem; background: rgba(0,0,0,.35); border: 1px solid #3a3540; border-radius: 10px; }
.pledge .commitments li::after { content: ""; position: absolute; inset: 5px; border: 1px dashed rgba(201,206,211,.28); border-radius: 7px; pointer-events: none; }
.pledge .commitments li::before { content: ""; position: absolute; top: 12px; right: 12px; width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #9aa1a8 45%, #4b5157); box-shadow: 0 0 0 1px rgba(0,0,0,.6); }
.pledge .commitments strong { display: block; font-family: var(--font-display); font-style: italic; font-size: 1.25rem; font-weight: 600; color: #fff; margin-bottom: .35rem; }
.band { background: linear-gradient(90deg, var(--red) 0 30%, var(--chrome) 30% 34%, transparent 34%); }

.flow { border-top: 2px dashed var(--chrome-2); }
.flow li::before { color: var(--red-ink); font-style: italic; }
.flow li::after { background: radial-gradient(circle at 35% 35%, #fff, #9aa1a8 45%, #4b5157); border: 0; width: 14px; height: 14px; top: -8px; }
@media (max-width: 880px) { .flow { border-left: 2px dashed var(--chrome-2); } .flow li::after { left: calc(-1.5rem - 8px); } }
.feature-list .icon { color: var(--red-ink); }

.types { background: var(--seam); }
.types article { background: var(--hide); }
.plan { background: var(--hide); position: relative; }
.plan.featured { border: 1px solid var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.plan ul.incl .icon { color: var(--red-ink); }
.compare .yes { color: var(--red-ink); }
.compare thead th { background: var(--leather); }
.service, .notice { background: var(--hide); }
.field input, .field select, .field textarea { background: var(--hide-2); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline-color: var(--red-wash); }
.check input { accent-color: var(--red); }
.notice.ok { border-color: var(--paid); background: var(--paid-wash); }
.notice.wait { border-color: var(--due); background: var(--due-wash); }
.cta-band { background: var(--hide); border-block: 1px dashed var(--seam); }
.draft { border-left-color: var(--due); background: var(--due-wash); }
details.faq summary::after { color: var(--red-ink); }
.site-footer { border-top: 1px dashed var(--seam); }
a { color: var(--red-ink); }
.site-footer h2 { font-style: normal; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--hide-2); padding: .1rem .35rem; border-radius: 4px; overflow-wrap: anywhere; }
pre.code { display: block; padding: .9rem 1rem; background: var(--hide-2); border: 1px solid var(--seam); border-radius: 10px; white-space: pre-wrap; overflow-x: auto; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.example-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.example-card .shot { aspect-ratio: 16 / 9; background: #111013; display: grid; place-items: center; border-bottom: 1px solid var(--seam); position: relative; overflow: hidden; }
.example-card .shot svg { width: 100%; height: 100%; }
.example-card .body { padding: 1.25rem 1.5rem 1.5rem; display: grid; gap: .5rem; align-content: start; }
.example-card h3 { margin: 0; font-size: 1.5rem; font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }

/* monthly / yearly switch */
.period-switch { display: inline-flex; border: 1px solid var(--seam); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.period-switch label { position: relative; cursor: pointer; }
.period-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.period-switch span { display: inline-block; padding: .4rem .9rem; border-radius: 999px; font-size: .9rem; font-weight: 600; }
.period-switch input:checked + span { background: var(--red); color: var(--on-red); }
.period-switch input:focus-visible + span { outline: 2px solid currentColor; outline-offset: 2px; }
/* pricing page */
.period-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1.5rem; }
.period-row p { margin: 0; }
.plan .bill-note { margin: -.5rem 0 0; color: var(--iron-2); }
.counts { margin-top: 1.5rem; max-width: 60rem; }
.counts dl { margin: .5rem 0 0; }
.charges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1rem; }
.charges > div { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-m); padding: 1rem 1.25rem; }
.charges h3 { margin: 0 0 .5rem; font-size: var(--t-l); }
.charges ul { margin: 0; padding-left: 1.1rem; }
@media (max-width: 760px) { .charges { grid-template-columns: 1fr; } }
.scroll-cue { display: none; margin: 0 0 .5rem; }
@media (max-width: 760px) { .scroll-cue { display: block; } }
.compare tbody th[scope="row"] { position: sticky; left: 0; background: var(--mist); z-index: 1; min-width: 9.5rem; }
.compare thead th small { font: 400 var(--t-xs) var(--font-ui); color: var(--iron-3); }
.table-scroll:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
dl.kv { display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .5rem 1.25rem; }
dl.kv dt { font-weight: 600; }
dl.kv dd { margin: 0; color: var(--iron-2); }
@media (max-width: 600px) { dl.kv { grid-template-columns: 1fr; } dl.kv dd { margin-bottom: .5rem; } }
/* homepage additions */
.trust-strip { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; font-size: var(--t-s); color: var(--iron-2); }
.trust-strip li { display: inline-flex; align-items: center; gap: .35rem; }
.trust-strip .icon { width: 1rem; height: 1rem; color: var(--paid); }
.who-row { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.who-row a { display: grid; justify-items: center; gap: .5rem; text-align: center; padding: 1rem .75rem; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--sheet); color: var(--iron); text-decoration: none; font-weight: 600; min-height: 44px; }
.who-row a:hover, .who-row a:focus-visible { border-color: var(--red); }
.who-row svg { width: 64px; height: 64px; }
.free-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.free-list li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .6rem; align-items: start; }
.free-list .icon { width: 1.1rem; height: 1.1rem; color: var(--paid); margin-top: .2rem; }
.mini-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 760px) { .mini-plans { grid-template-columns: 1fr; } }
.mini-plan { display: block; padding: 1.25rem; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--sheet); color: var(--iron); text-decoration: none; }
.mini-plan.featured { border: 2px solid var(--red); }
.mini-plan:hover, .mini-plan:focus-visible { border-color: var(--red); }
.mini-plan h3 { margin: 0 0 .25rem; }
.mini-plan .price { font-family: var(--font-display); font-size: 2rem; font-weight: 600; margin: 0; }
.mini-plan .price span { font: 400 var(--t-s) var(--font-ui); color: var(--iron-3); }
.mini-plan p { margin: .25rem 0 0; }
.callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.5rem; border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--sheet); }
.callout h2 { margin: 0 0 .35rem; font-size: var(--t-xl); }
.callout p { margin: 0; max-width: 46rem; color: var(--iron-2); }
.effective { font-size: var(--t-s); color: var(--iron-3); margin: 0 0 1.5rem; }
.types article { scroll-margin-top: 5rem; }
.types .flow-line { font-size: var(--t-s); color: var(--iron-2); }
.plan-chooser fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.plan-chooser legend { font-weight: 600; margin-bottom: .35rem; }
.plan-chooser .check { display: flex; gap: .5rem; align-items: center; min-height: 36px; }
#chooser { scroll-margin-top: 4rem; }
/* features page */
.feat-nav { position: sticky; top: 64px; z-index: 5; background: var(--mist); border-bottom: 1px solid var(--rule); }
.feat-nav ul { list-style: none; margin: 0; padding: .5rem 0; display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: thin; }
.feat-nav a { display: inline-block; white-space: nowrap; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--rule); color: var(--iron); text-decoration: none; font-size: var(--t-s); min-height: 36px; }
.feat-nav a:hover, .feat-nav a:focus-visible { border-color: var(--red); }
.feat-group { scroll-margin-top: 8rem; }
.see-it { margin-top: .75rem; }
.grant-status { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1rem; }
.privacy-note { border-left: 3px solid var(--rule); padding-left: .75rem; }
.faq-group { scroll-margin-top: 8rem; padding-block: 1.5rem; }
.faq-group h2 { font-size: var(--t-xl); }
details.faq { scroll-margin-top: 8rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* guides */
.guide-meta { max-width: var(--measure); margin: 1rem 0 0; }
.guide-meta .before { border: 1px solid var(--rule); border-radius: var(--r-m); background: var(--sheet); padding: .9rem 1.1rem; margin-top: .5rem; }
.guide-meta .before h2 { font-size: var(--t-m); margin: 0 0 .35rem; }
.guide-meta .before ul { margin: 0; padding-left: 1.1rem; font-size: var(--t-s); }
.guide-foot { padding-top: 0; }
/* examples */
.demo-guests { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .4rem; }
.demo-guests li { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; padding: .45rem 0; border-top: 1px solid var(--rule); }
.demo-guests li strong { min-width: 3.5rem; }
.tour h3 a { color: inherit; }
/* hidden always wins over component display rules */
[hidden] { display: none !important; }
.prose pre { overflow-x: auto; max-width: 100%; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-s); padding: .75rem 1rem; font-size: var(--t-s); }
.prose pre code { white-space: pre; }
.prose table { display: block; overflow-x: auto; max-width: 100%; }
.prose code { overflow-wrap: anywhere; }

/* 4.0 public release: calmer hierarchy, restrained branding, compact responsive navigation. */
.dos-public { --gutter: clamp(16px,3vw,32px); --wrap: 1180px; }
.dos-public .site-header .wrap { gap: clamp(.65rem,1.5vw,1.25rem); }
.dos-public .nav { gap: clamp(.65rem,1.5vw,1.25rem); }
.dos-public main > section { padding-block: clamp(2.5rem,5.3vw,4.8rem); }
.dos-public .hero h1 { max-width: 18ch; font-size:clamp(2.55rem,5.3vw,4.65rem); line-height:1.05; }
.dos-public .hero .lede { max-width: 47ch; font-size:clamp(1.02rem,1.45vw,1.25rem); }
.dos-public .page-head { padding-block:clamp(2rem,5vw,4rem) 1rem; border-bottom:1px solid var(--seam); }
.dos-public .page-head .lede { max-width:68ch; }
.dos-public .section-head { max-width:74ch; }
.dos-public .pledge { background:var(--hide); color:var(--bone); }
:root[data-theme=light] .dos-public .pledge { background:var(--hide); color:var(--bone); }
.dos-public .pledge h2,.dos-public .pledge .commitments strong { color:var(--bone); font-style:normal; }
.dos-public .pledge p,.dos-public .pledge a { color:var(--bone-2); }
.dos-public .pledge .commitments { margin:1.5rem 0; grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr)); }
.dos-public .pledge .commitments li { background:var(--leather); border-color:var(--seam); padding:1.25rem; }
.dos-public .pledge .commitments li::before,.dos-public .pledge .commitments li::after { display:none; }
.dos-public .portfolio-summary { border:1px solid var(--seam); border-radius:var(--r-m); padding:1.5rem; background:var(--hide); min-width:0; }
.dos-public .portfolio-summary h3 { margin-bottom:.25rem; }
.dos-public .portfolio-summary p { color:var(--bone-2); margin-bottom:1.2rem; }
.dos-public .portfolio-summary p:last-child { margin:0; }
.dos-public .pricing-jump { border-bottom:1px solid var(--seam); }
.dos-public .pricing-jump .wrap { display:flex; flex-wrap:wrap; gap:.25rem 1.25rem; padding-block:.7rem; }
.dos-public .pricing-jump a { color:var(--bone-2); font-size:.9rem; padding:.35rem 0; text-decoration:none; }
.dos-public .pricing-jump a:hover { color:var(--bone); text-decoration:underline; }
.dos-public [id] { scroll-margin-top: calc(88px + env(safe-area-inset-top)); }
.dos-public .form,.dos-public .service,.dos-public .plan,.dos-public .split > * { min-width:0; overflow-wrap:anywhere; }
.dos-public .site-footer .fine { gap:.5rem 1rem; }
@media(max-width:480px){ .dos-public .site-header .wrap { min-height:60px; } .dos-public .header-actions .btn-primary { display:none; } .dos-public .header-actions .btn-quiet { padding:.5rem; } .dos-public .hero h1 {font-size:clamp(2.3rem,10vw,3.1rem)} .dos-public .site-footer .cols {gap:1.4rem 1rem} }
@media(max-width:900px){ .dos-public .nav.open { max-height:calc(100dvh - 72px - env(safe-area-inset-top) - env(safe-area-inset-bottom)); overflow-y:auto; overscroll-behavior:contain; padding-bottom:max(1rem,env(safe-area-inset-bottom)); } }
@media(prefers-reduced-motion:reduce){ .dos-public *, .dos-public *::before, .dos-public *::after { scroll-behavior:auto!important; animation:none!important; transition:none!important; } }
.nav .mobile-nav-action { display:none; }
@media(max-width:880px){ .nav.open .mobile-nav-action { display:block; } }
.dos-public .actions .btn { white-space:normal; text-align:center; max-width:100%; }

/* RC5 — product-first pricing and grouped service catalog */
.hub-portal-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.5rem 0;}
.hub-portal-pair article {display:flex;gap:1rem;align-items:flex-start;background:var(--sheet);border:1px solid var(--rule);border-radius:var(--r-m);padding:1.2rem;min-width:0;}
.hub-portal-pair h3,.hub-portal-pair p {margin:0 0 .4rem;}.hub-portal-pair p {font-size:var(--t-s);}
.service-icon {display:inline-grid;place-items:center;flex:none;width:2.75rem;height:2.75rem;border:1px solid var(--rule);border-radius:.85rem;color:var(--bone);background:var(--hide);}
.service-icon .icon {width:1.4rem;height:1.4rem;}
.offer-group {margin:2.5rem 0;}.offer-group-head {border-bottom:1px solid var(--rule);margin-bottom:1rem;padding-bottom:.6rem;}.offer-group-head h3,.offer-group-head p {margin:.2rem 0;}
.offer {display:flex;flex-direction:column;gap:.65rem;position:relative;min-width:0;}.offer h3,.offer p {margin:0;}.offer .price {margin:.1rem 0;}.offer-top {display:flex;align-items:center;justify-content:space-between;gap:.5rem;}.offer-tag {font-size:.75rem;font-weight:650;color:var(--iron-3);text-transform:uppercase;letter-spacing:.06em;}.offer-featured {border:2px solid var(--verdigris);}.offer-featured .offer-tag {color:var(--verdigris);}
.offer-includes {margin:.2rem 0;padding:0;list-style:none;display:grid;gap:.4rem;font-size:var(--t-s);}.offer-includes li {display:grid;grid-template-columns:1.1rem 1fr;gap:.5rem;}.offer-includes .icon {width:1rem;height:1rem;color:var(--verdigris);margin-top:.25rem;}.offer-details {border-top:1px solid var(--rule);padding:.6rem 0;font-size:var(--t-s);}.offer-details summary {cursor:pointer;font-weight:600;}.offer-details p {margin:.6rem 0 0;}.offer .btn {margin-top:auto;align-self:flex-start;}.apply-addon-group {margin:1.1rem 0;}.apply-addon-group h3 {font-size:1rem;margin:0 0 .65rem;border-bottom:1px solid var(--rule);padding-bottom:.4rem;}.apply-addon-group .check {margin:.55rem 0;}
@media(max-width:760px){.hub-portal-pair{grid-template-columns:1fr;}.offer .btn{align-self:stretch;text-align:center;}}

/* Dedicated guide cards: explicit two-column item with a single content wrapper. */
.guide-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:1rem}
.guide-list li{min-width:0;display:grid;grid-template-columns:28px minmax(0,1fr);gap:.85rem;align-items:start;border:1px solid var(--seam);border-radius:12px;padding:1rem}
.guide-list .icon{width:26px;height:26px;color:var(--red-ink);margin-top:.2rem}
.guide-copy{min-width:0;overflow-wrap:anywhere}.guide-copy h3{font-size:1.12rem;margin:0 0 .4rem}.guide-copy p{font-size:var(--t-s);margin:0;color:var(--iron-2)}.guide-copy .guide-plan{margin-top:.6rem;font-size:.8rem;line-height:1.4}
.feature-list li{grid-template-columns:28px minmax(0,1fr);min-width:0}.feature-list li>h3,.feature-list li>p{grid-column:2;min-width:0;overflow-wrap:anywhere}.feature-list li>.icon{grid-column:1;grid-row:1 / span 3}
@media(max-width:600px){.guide-list{grid-template-columns:minmax(0,1fr)}.guide-list li{padding:.9rem}}
