:root {
  color-scheme: light dark;
  --bg: light-dark(#faf7f2, #12181a);
  --surface: light-dark(#ffffff, #1b2326);
  --sunk: light-dark(#f1ece3, #161d20);
  --ink: light-dark(#1d2a2f, #e9eeee);
  --muted: light-dark(#55656b, #a3b1b5);
  --line: light-dark(#ddd5c8, #2e3a3e);
  --field-line: light-dark(#76848a, #7f8f94);
  --accent: light-dark(#0d6464, #5cc9c0);
  --accent-ink: light-dark(#ffffff, #06201f);
  --warm: light-dark(#a8540f, #f0a868);
  --danger: light-dark(#a3271f, #ff9a8f);
  --ok: light-dark(#1c6b3a, #7fd69c);
  --radius: 14px;
  --wrap: 68rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }
img, svg, iframe { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 0.2em; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.visually-hidden { position: absolute; clip-path: inset(50%); overflow: hidden; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--surface); padding: 0.6rem 1rem; border-radius: 8px; z-index: 10; }
.skip:focus { top: 0.5rem; }

.preview-bar { background: var(--ink); color: var(--bg); font-size: 0.85rem; text-align: center; padding: 0.4rem 1rem; padding-top: max(0.4rem, env(safe-area-inset-top)); }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 0.7rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 750; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; min-height: 44px; }
.brand svg { width: 1.7rem; height: 1.7rem; color: var(--accent); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.15rem 0.3rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; color: var(--ink); text-decoration: none; border-radius: 999px; font-size: 0.97rem; }
.site-nav a:hover { background: var(--sunk); }
.site-nav a[aria-current="page"] { font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.small { min-height: 44px; padding: 0 1rem; font-size: 0.95rem; }
.site-nav a.btn { color: var(--accent-ink); padding: 0 1.1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.hero { padding-block: clamp(2rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 56rem) { .hero .wrap { grid-template-columns: 1fr 1.1fr; } }
.eyebrow { color: var(--warm); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8rem; }
.lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 38rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }

.stage { position: relative; aspect-ratio: 4 / 3; background: var(--sunk); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -24px rgb(0 0 0 / 0.45); }
.stage.tall { aspect-ratio: auto; height: min(78dvh, 46rem); min-height: 26rem; }
.stage iframe { width: 100%; height: 100%; border: 0; }
.stage .plan { width: 100%; height: 100%; padding: 1.2rem; }
.stage .start { position: absolute; inset: 0; display: grid; place-items: end center; padding: 1.2rem; background: transparent; border: 0; cursor: pointer; font: inherit; width: 100%; }
.stage .start span { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.3rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 650; }
.plan-room { fill: var(--surface); stroke: var(--ink); stroke-width: 0.09; stroke-linejoin: round; }
.plan-label { fill: var(--muted); font-size: 0.34px; text-anchor: middle; dominant-baseline: middle; font-weight: 600; }
.caption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

section.band { padding-block: clamp(2.2rem, 6vw, 4.5rem); }
section.band.alt { background: var(--sunk); border-block: 1px solid var(--line); }
.section-head { max-width: 42rem; margin-bottom: 1.8rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
.card p { color: var(--muted); margin: 0; }
.card .more { margin-top: auto; padding-top: 0.8rem; }
.card .more a { font-weight: 650; display: inline-flex; min-height: 44px; align-items: center; }
.tag { align-self: flex-start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warm); border: 1px solid currentColor; border-radius: 999px; padding: 0.1rem 0.6rem; }
.sample .stage { aspect-ratio: 16 / 10; box-shadow: none; margin-bottom: 0.6rem; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 0.5rem; }
.checklist { padding-left: 1.2rem; margin: 0; }
.checklist li { margin-bottom: 0.45rem; }
.note { border-left: 4px solid var(--warm); background: var(--surface); padding: 0.9rem 1.1rem; border-radius: 0 10px 10px 0; color: var(--muted); }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2rem; }
.variant-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.variant-bar button { min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1.5px solid var(--field-line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.variant-bar button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }

form.stack { display: grid; gap: 1.4rem; max-width: 40rem; }
.field { display: grid; gap: 0.3rem; }
.field label, fieldset legend { font-weight: 650; }
.hint { font-size: 0.88rem; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], select, textarea {
  font: inherit; font-size: max(1rem, 1em); color: var(--ink); background: var(--surface); border: 1.5px solid var(--field-line); border-radius: 10px; padding: 0.7rem 0.8rem; min-height: 48px; width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
input:user-invalid, select:user-invalid, textarea:user-invalid, [aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: 0.9rem; font-weight: 600; }
.error:empty { display: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; margin: 0; display: grid; gap: 0.2rem; }
fieldset legend { padding: 0 0.4rem; }
.choice { display: flex; align-items: flex-start; gap: 0.7rem; min-height: 44px; padding: 0.55rem 0; }
.choice input { width: 1.25rem; height: 1.25rem; margin-top: 0.15rem; accent-color: var(--accent); flex: none; }
.choice small { display: block; color: var(--muted); }
.hp { position: absolute; left: -100vw; }
.status-msg { padding: 0.9rem 1.1rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.status-msg[data-kind="error"] { border-color: var(--danger); color: var(--danger); }
.status-msg[data-kind="ok"] { border-color: var(--ok); }
.status-msg:empty { display: none; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 1.1rem 1.1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -0.45rem; top: 0.35rem; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--accent); }
.timeline time { display: block; font-size: 0.85rem; color: var(--muted); }
.progress { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.progress li { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.progress li[data-state="done"] { border-color: var(--ok); color: var(--ok); }
.progress li[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 650; }

.site-footer { border-top: 1px solid var(--line); padding-block: 1.6rem; padding-bottom: max(1.6rem, env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between; }
.site-footer p { margin: 0; max-width: 46rem; }

@media print {
  .preview-bar, .site-header, .site-footer, .no-print { display: none; }
  body { background: #fff; color: #000; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.h3 { font-size: 1.15rem; }
[data-gap] { margin-top: 1.5rem; }
section.band[data-tight] { padding-block: 1.2rem; }

/* Studio */
.studio-layout { display: grid; gap: 1.2rem; }
@media (min-width: 60rem) { .studio-layout { grid-template-columns: minmax(18rem, 24rem) 1fr; align-items: start; } }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.order-list button { width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 0.75rem 0.9rem; cursor: pointer; display: grid; gap: 0.15rem; min-height: 48px; }
.order-list button[aria-current="true"] { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.order-list small { color: var(--muted); }
.pill { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 0.05rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.pill[data-stage="requested"] { color: var(--warm); border-color: currentColor; }
.pill[data-stage="delivered"], .pill[data-stage="approved"] { color: var(--ok); border-color: currentColor; }
.pill[data-blocked] { color: var(--danger); border-color: currentColor; }
.counts { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.counts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem 0.9rem; }
.counts strong { font-size: 1.3rem; display: block; line-height: 1.1; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; gap: 1.2rem; }
.panel h2 { font-size: 1.3rem; margin: 0; }
.panel h3 { margin: 0 0 0.5rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1rem; margin: 0; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
.row { display: grid; gap: 0.8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: end; }
.minutes { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0 0 0.8rem; padding: 0; }
.minutes li { border: 1px solid var(--line); border-radius: 10px; padding: 0.35rem 0.7rem; }
.event-private { color: var(--muted); }
.file-list { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.file-list span { overflow-wrap: anywhere; min-width: 0; }
.file-list small { color: var(--muted); }
input[type="file"] { font: inherit; padding: 0.6rem; border: 1.5px dashed var(--field-line); border-radius: 10px; background: var(--surface); width: 100%; min-height: 48px; }
