/* Blueprint Global, BrandOS v0.4.1 (commit bdad82d), Quiet Voltage Realignment.
   Ink and cream planes; bronze only on cream, champagne only on ink; 2 px controls;
   no glass, glow or gradients (decision 0005). Phase 3 candidate values, see README. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=IBM+Plex+Mono:wght@400;500&family=Prata&display=swap');

:root {
  --ink: #131313; --cream: #F6F2EA; --bronze: #876638; --champagne: #CDAF78;
  --muted: #5F584E; --rule: #D4CCBE; --control: #746B5E; --negative: #9C362F; --positive: #336346;
  --muted-on-ink: #B8AF9F; --rule-on-ink: #3B3731;
  --display: "Prata", "Times New Roman", serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
  --radius: 2px; --fast: 160ms; --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body { min-height: 100vh; min-height: 100dvh; background: var(--cream); color: var(--ink); font-family: var(--sans);
  font-size: 16px; line-height: 1.6; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--champagne); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- ink band ---------- */
.band { background: var(--ink); color: var(--cream); }
.band-inner { max-width: 640px; margin: 0 auto; padding: 20px 20px 22px; }
.identity { display: flex; align-items: center; gap: 8px; color: var(--cream); text-decoration: none; }
.identity svg { width: 22px; height: 22px; flex: none; color: var(--cream); }
.identity span { font-family: var(--sans); font-weight: 600; font-size: 18px; letter-spacing: -0.025em; transform: translateY(0.04em); }
.route { margin-top: 22px; display: flex; align-items: center; gap: 0; height: 9px; }
.route i { flex: 1; height: 1px; background: var(--rule-on-ink); }
.route i.done { background: var(--champagne); }
.route b { width: 7px; height: 7px; border: 1px solid var(--rule-on-ink); border-radius: 50%; background: var(--ink); flex: none; }
.route b.done { background: var(--champagne); border-color: var(--champagne); }
.route b.now { border-color: var(--champagne); }
.position { margin-top: 10px; font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--champagne); min-height: 17px; }

/* ---------- cream plane ---------- */
.plane { max-width: 640px; margin: 0 auto; padding: 36px 20px 64px; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(32px, 7vw, 44px); line-height: 1.08; margin-bottom: 14px; }
h2 { font-size: clamp(27px, 5.6vw, 34px); line-height: 1.12; margin-bottom: 10px; }
.lead { color: var(--muted); font-size: 17px; max-width: 58ch; margin-bottom: 28px; }
.lead b { color: var(--ink); font-weight: 500; }
a { color: var(--bronze); text-underline-offset: 3px; }

.field { padding: 22px 0; border-top: 1px solid var(--rule); }
.field:first-of-type { border-top: 0; padding-top: 4px; }
.field > label.q, .q { display: block; font-weight: 500; font-size: 16px; line-height: 1.4; margin-bottom: 6px; }
.hint { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; margin-bottom: 12px; }
.sub { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin: 14px 0 8px; }

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #FFFDF8; border: 1px solid var(--control);
  border-radius: var(--radius); padding: 12px 14px; min-height: 48px; transition: border-color var(--fast) var(--ease); }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8A8174; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--bronze); outline-offset: 1px; border-color: var(--ink); }

/* choices: real radios/checkboxes, styled labels */
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.choices.seg { grid-template-columns: repeat(3, 1fr); }
.choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choices label { cursor: pointer; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px;
  padding: 10px 12px; font-size: 15px; line-height: 1.3; border: 1px solid var(--control); border-radius: var(--radius);
  background: transparent; transition: background var(--fast) var(--ease), color var(--fast) var(--ease); }
.choices label:hover { border-color: var(--ink); }
.choices input:checked + label { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.choices input:focus-visible + label { outline: 2px solid var(--bronze); outline-offset: 2px; }

.confirm { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--control); border-radius: var(--radius);
  margin-bottom: 12px; cursor: pointer; background: #FFFDF8; }
.confirm input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.confirm span { font-size: 15px; line-height: 1.5; }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--rule); }
.btn { font: inherit; font-weight: 500; font-size: 16px; cursor: pointer; color: var(--cream); background: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--radius); padding: 13px 28px; min-height: 48px; transition: background var(--fast) var(--ease); }
.btn:hover { background: #2A2825; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.quiet { color: var(--ink); background: transparent; border-color: var(--control); }
.btn.quiet:hover { border-color: var(--ink); background: transparent; }
.back, .link { background: none; border: 0; font: inherit; font-size: 15px; color: var(--bronze); cursor: pointer; padding: 10px 2px;
  text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.foot { margin-top: 28px; color: var(--muted); font-size: 13px; }
.notice { color: var(--negative); font-size: 14px; margin-top: 12px; min-height: 1px; }
.step { display: none; } .step.on { display: block; }

.legal { max-width: 640px; margin: 0 auto; padding: 0 20px 40px; color: var(--muted); font-size: 12px; }

@media (max-width: 560px) {
  .plane { padding-top: 28px; }
  .choices { grid-template-columns: 1fr 1fr; }
  .nav { flex-direction: column-reverse; align-items: stretch; }
  .nav .btn { width: 100%; }
  .nav .back { text-align: center; }
}

/* ---------- onboarding: confirm rows, repeat rows, next steps ---------- */
h3 { font-family: var(--sans); font-weight: 600; font-size: 18px; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 6px; }
.section { padding: 28px 0 8px; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; padding-top: 4px; }
.group { margin: 22px 0 2px; font-size: 14px; font-weight: 600; color: var(--bronze); }
.crow { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.crow .lbl { font-size: 14px; color: var(--muted); }
.crow .val { grid-column: 1; font-weight: 500; white-space: pre-line; overflow-wrap: anywhere; }
.crow .act { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.crow .ok { font-size: 13px; color: var(--positive); }
.crow .editor { grid-column: 1 / -1; margin-top: 10px; }
.crow .editor .hint { margin: -2px 0 10px; }
.rcard { border: 1px solid var(--rule); border-radius: var(--radius); background: #FFFDF8; padding: 12px 14px 16px; margin-bottom: 10px; }
.rhead { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 500; color: var(--muted); }
.rhead .link { min-height: 36px; font-size: 14px; }
.rgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.rgrid > * { min-width: 0; }
.rgrid .full { grid-column: 1 / -1; }
.mini { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.choices.sm label { min-height: 42px; font-size: 14px; padding: 8px 10px; }
.choices.one { grid-template-columns: 1fr; }
.adder { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.fixed { color: var(--muted); font-size: 15px; padding: 16px 0 0; }
.steps { list-style: none; counter-reset: s; margin-top: 8px; }
.steps > li { counter-increment: s; position: relative; padding: 24px 0 24px 44px; border-top: 1px solid var(--rule); }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 22px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--champagne); font-family: var(--mono); font-size: 13px; display: grid; place-items: center; }
.steps p { color: var(--muted); margin: 4px 0 12px; }
.checklist { list-style: none; margin: 6px 0 18px; }
.checklist li { position: relative; padding: 9px 0 9px 26px; border-bottom: 1px solid var(--rule); font-size: 15px; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 13px; width: 14px; height: 14px; border: 1px solid var(--control); border-radius: var(--radius); }
.checklist + h3 { margin-top: 18px; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
@media (max-width: 560px) {
  .rgrid { grid-template-columns: 1fr; }
  .rgrid .half { grid-column: auto; }
  .rgrid.days { grid-template-columns: 1fr 1fr; align-items: end; }
  .rgrid.days .full { grid-column: 1 / -1; }
  .steps > li { padding-left: 40px; }
}
.fixed + .field { border-top: 1px solid var(--rule); padding-top: 22px; }
.guide h3 { margin-top: 0; }
.guide .section p, .guide .section li { color: var(--muted); }
.guide .section ul { margin: 6px 0 0 18px; }
