:root {
  --carbon: #11120f;
  --olive: #1a1b16;
  --olive-soft: #24251e;
  --bone: #f1ede3;
  --bone-deep: #e7e0d2;
  --paper: #faf8f2;
  --ink: #1b1c18;
  --muted: #6e6c63;
  --brass: #c6a15b;
  --brass-deep: #9d7838;
  --line: rgba(27, 28, 24, 0.15);
  --danger: #9e3f32;
  --success: #557058;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --shadow: 0 28px 80px rgba(26, 23, 16, 0.15);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #0d0e0b;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.prototype-notice {
  min-height: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  color: rgba(255,255,255,.72);
  background: #080906;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.prototype-notice [data-save-state] { color: var(--brass); }
.prototype-notice [data-save-state]::before { content: "·"; margin-right: 8px; color: rgba(255,255,255,.38); }
.prototype-notice [data-save-state][data-state="error"] { color: #e1b969; }

.network-banner {
  position: fixed;
  inset: 34px 0 auto;
  z-index: 60;
  min-height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 13px;
  padding: 11px 20px;
  color: #fff8e8;
  background: #5f3823;
  border-bottom: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 10px 28px rgba(17,18,15,.2);
}
.network-banner[hidden] { display: none; }
.network-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: #e1b969; box-shadow: 0 0 0 5px rgba(225,185,105,.15); }
.network-banner div { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 8px; text-align: center; font-size: 12px; }
.network-banner strong { font-weight: 700; }
.network-banner span:last-child { color: rgba(255,255,255,.72); }

.intake-shell {
  min-height: calc(100vh - 34px);
  display: grid;
  grid-template-columns: minmax(300px, 26vw) minmax(0, 1fr);
  background: var(--bone);
}

.intake-rail {
  position: sticky;
  top: 0;
  min-height: calc(100vh - 34px);
  height: calc(100vh - 34px);
  overflow: hidden auto;
  display: flex;
  flex-direction: column;
  padding: 34px clamp(24px, 3vw, 50px) 28px;
  color: var(--bone);
  background:
    radial-gradient(circle at 75% 18%, rgba(198,161,91,.18), transparent 22%),
    radial-gradient(circle at 18% 72%, rgba(198,161,91,.08), transparent 31%),
    linear-gradient(160deg, #202119 0%, #11120f 64%, #0b0c09 100%);
  isolation: isolate;
  scrollbar-width: none;
}
.intake-rail::-webkit-scrollbar { width: 0; height: 0; }

.intake-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.34) .5px, transparent .7px);
  background-size: 6px 6px;
  mask-image: linear-gradient(135deg, #000, transparent 74%);
}

.brand-lockup { display: flex; align-items: center; gap: 13px; }

.rail-intro { margin: clamp(44px, 7vh, 78px) 0 28px; max-width: 330px; }
.eyebrow { margin: 0 0 13px; color: var(--brass-deep); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.intake-rail .eyebrow { color: var(--brass); }
.rail-intro h1 { margin: 0; max-width: 290px; font-family: var(--serif); font-size: clamp(37px, 3.5vw, 57px); font-weight: 400; line-height: .96; letter-spacing: -.025em; }
.rail-intro > p:last-child { margin: 21px 0 0; max-width: 310px; color: rgba(255,255,255,.57); font-size: 13px; line-height: 1.65; }

.step-list { display: grid; gap: 1px; margin: 2px -14px 28px; }
.step-list button {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 1px 12px;
  align-items: center;
  padding: 11px 14px;
  color: rgba(255,255,255,.44);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  transition: color .2s ease, background .2s ease;
}
.step-list button:not(:disabled):hover { color: #fff; background: rgba(255,255,255,.045); }
.step-list button[aria-current="step"] { color: #fff; background: rgba(198,161,91,.11); }
.step-list button[aria-current="step"]::after { content: ""; position: absolute; right: 0; top: 10px; bottom: 10px; width: 2px; background: var(--brass); }
.step-list button.is-complete { color: rgba(255,255,255,.72); }
.step-list button span { grid-row: 1 / span 2; color: var(--brass); font-size: 10px; font-weight: 700; letter-spacing: .12em; }
.step-list button b { font-size: 13px; font-weight: 600; letter-spacing: .025em; }
.step-list button small { color: inherit; opacity: .64; font-size: 10px; }

.privacy-note { margin-top: auto; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.privacy-note svg { width: 24px; fill: none; stroke: var(--brass); stroke-width: 1.4; }
.privacy-note p { margin: 0; color: rgba(255,255,255,.48); font-size: 10px; line-height: 1.55; }
.privacy-note strong { color: rgba(255,255,255,.8); font-size: 11px; }

.intake-workspace {
  position: relative;
  min-width: 0;
  min-height: calc(100vh - 34px);
  background:
    radial-gradient(circle at 90% 0%, rgba(198,161,91,.14), transparent 25%),
    linear-gradient(120deg, rgba(255,255,255,.5), transparent 40%),
    var(--bone);
}

.mobile-brand { display: none; }
.progress-track { position: sticky; top: 0; z-index: 20; height: 3px; overflow: hidden; background: rgba(17,18,15,.08); }
.progress-track i { display: block; width: 14.285%; height: 100%; background: linear-gradient(90deg, var(--brass-deep), #dfc17e); transition: width .35s ease; }

.intake-form { min-height: calc(100vh - 37px); display: flex; flex-direction: column; }
.form-step {
  display: none;
  width: min(900px, calc(100% - 80px));
  margin: auto;
  padding: clamp(55px, 7vh, 90px) 0 42px;
  animation: step-in .35s both;
}
.form-step.is-active { display: block; }
.form-step h2:focus { outline: none; }
@keyframes step-in { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: none; } }

.section-heading { max-width: 700px; margin-bottom: 38px; }
.section-heading h2, .welcome-copy h2, .success-step h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 72px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .96;
}
.section-heading > p:last-child { max-width: 610px; margin: 19px 0 0; color: var(--muted); font-size: 16px; }

.welcome-step { width: min(720px, calc(100% - 80px)); }
.welcome-step.is-active { display: block; }
.welcome-copy h2 { max-width: 690px; }
.welcome-copy .lede { max-width: 640px; margin: 23px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.expectation-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 24px; border-block: 1px solid var(--line); }
.expectation-grid > div { display: grid; grid-template-columns: auto 1fr; gap: 11px; align-items: center; padding: 17px 14px 17px 0; }
.expectation-grid > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.expectation-grid span { color: var(--brass-deep); font-family: var(--serif); font-size: 29px; }
.expectation-grid p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.35; }
.expectation-grid strong { display: block; color: var(--ink); font-size: 11px; }
.before-you-begin { display: grid; grid-template-columns: 25px 1fr; gap: 12px; padding: 15px 16px; background: rgba(198,161,91,.12); border: 1px solid rgba(157,120,56,.18); border-radius: 11px; }
.before-you-begin > span { width: 21px; height: 21px; display: grid; place-items: center; color: var(--brass-deep); border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); }
.before-you-begin p { margin: 0; color: var(--muted); font-size: 12px; }
.before-you-begin strong { display: block; margin-bottom: 2px; color: var(--ink); }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field--wide { grid-column: 1 / -1; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 8px; }
.field > span, fieldset legend, .signature-label > span { color: #35362f; font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.field b, fieldset legend b, .choice-row b, .signature-label b { color: var(--brass-deep); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 15px;
  color: var(--ink);
  background: rgba(255,255,255,.52);
  border: 1px solid rgba(27,28,24,.18);
  border-radius: 9px;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease, background .2s ease;
}
.field textarea { resize: vertical; min-height: 94px; }
.field input:focus, .field select:focus, .field textarea:focus { background: rgba(255,255,255,.76); border-color: var(--brass-deep); box-shadow: 0 0 0 3px rgba(198,161,91,.13); }
.field input::placeholder, .field textarea::placeholder { color: #99958b; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--danger); background: #fff7f5; }
.question-block.is-invalid > legend, .choice-row.is-invalid { color: var(--danger); }

.question-block { min-width: 0; margin: 0 0 30px; padding: 0; border: 0; }
.question-block legend { margin-bottom: 13px; }
.visual-options { display: grid; gap: 12px; }
.visual-options--three { grid-template-columns: repeat(3, 1fr); }
.visual-options label { position: relative; }
.visual-options input { position: absolute; opacity: 0; }
.visual-options label > span { min-height: 164px; display: flex; flex-direction: column; padding: 21px; background: rgba(255,255,255,.46); border: 1px solid var(--line); border-radius: 12px; transition: .2s ease; }
.visual-options svg { width: 45px; margin-bottom: auto; fill: none; stroke: var(--brass-deep); stroke-width: 1.4; }
.visual-options strong { margin: 19px 0 4px; font-family: var(--serif); font-size: 23px; font-weight: 400; line-height: 1; }
.visual-options small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.visual-options input:checked + span { color: var(--bone); background: var(--olive); border-color: var(--olive); box-shadow: 0 16px 35px rgba(17,18,15,.15); }
.visual-options input:checked + span svg { stroke: var(--brass); }
.visual-options input:checked + span small { color: rgba(255,255,255,.6); }
.visual-options input:focus-visible + span { outline: 3px solid rgba(198,161,91,.4); outline-offset: 2px; }

.compact-question { margin-top: 28px; padding: 22px; background: rgba(255,255,255,.34); border: 1px solid var(--line); border-radius: 12px; }
.segmented { display: inline-grid; grid-template-columns: repeat(2, minmax(86px, 1fr)); gap: 4px; padding: 4px; background: rgba(17,18,15,.07); border-radius: 9px; }
.segmented--three { grid-template-columns: repeat(3, minmax(104px, auto)); }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { min-height: 38px; display: grid; place-items: center; padding: 8px 16px; color: var(--muted); border-radius: 6px; font-size: 12px; font-weight: 600; text-align: center; }
.segmented input:checked + span { color: var(--bone); background: var(--olive); box-shadow: 0 4px 12px rgba(17,18,15,.15); }
.segmented input:focus-visible + span { outline: 2px solid var(--brass-deep); }
.field-help { margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.photo-notice { padding: 16px; background: rgba(198,161,91,.09); border: 1px solid rgba(157,120,56,.18); border-radius: 9px; }

.conditional { display: none; margin-top: 17px; }
.conditional.is-visible { display: grid; animation: step-in .25s both; }

.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.check-grid label { min-height: 49px; display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: #4c4c45; background: rgba(255,255,255,.52); font-size: 12px; cursor: pointer; }
.check-grid input, .choice-row input { position: absolute; opacity: 0; }
.choice-box { flex: 0 0 19px; width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid #96938a; border-radius: 4px; transition: .16s ease; }
.check-grid input:checked + .choice-box, .choice-row input:checked + .choice-box { background: var(--olive); border-color: var(--olive); }
.check-grid input:checked + .choice-box::after, .choice-row input:checked + .choice-box::after { content: ""; width: 8px; height: 4px; border: solid var(--bone); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.check-grid input:focus-visible + .choice-box, .choice-row input:focus-visible + .choice-box { outline: 3px solid rgba(198,161,91,.35); outline-offset: 2px; }
.check-grid .none-choice { grid-column: 1 / -1; color: var(--ink); background: rgba(198,161,91,.15); }
.field-error { display: none; margin: 9px 0 0; color: var(--danger); font-size: 11px; font-weight: 600; }
.field-error.is-visible { display: block; }
.yes-no-stack { display: grid; grid-template-columns: 1fr; }

.choice-row { position: relative; display: flex; align-items: flex-start; gap: 12px; color: #4d4c45; cursor: pointer; font-size: 12px; line-height: 1.5; }
.choice-row .choice-box { margin-top: 1px; }
.welcome-confirm { margin-top: 18px; }

.review-list { display: grid; gap: 10px; }
.review-list button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; color: var(--ink); background: rgba(255,255,255,.46); border: 1px solid var(--line); border-radius: 12px; text-align: left; transition: .2s ease; }
.review-list button:hover { transform: translateY(-2px); background: rgba(255,255,255,.7); box-shadow: 0 12px 24px rgba(17,18,15,.08); }
.review-list span { display: grid; gap: 4px; }
.review-list b { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.review-list small { color: var(--muted); }
.review-list i { color: var(--brass-deep); font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.review-assurance { display: grid; grid-template-columns: 48px 1fr; gap: 18px; margin-top: 28px; padding: 23px; color: var(--bone); background: var(--olive); border-radius: 12px; }
.review-assurance svg { width: 44px; fill: none; stroke: var(--brass); stroke-width: 1.5; }
.review-assurance strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.review-assurance p { margin: 4px 0 0; color: rgba(255,255,255,.58); font-size: 12px; }

.agreement-card { margin-bottom: 22px; padding: clamp(22px, 4vw, 38px); background: rgba(255,255,255,.56); border: 1px solid var(--line); border-top: 3px solid var(--brass-deep); border-radius: 3px 3px 12px 12px; box-shadow: 0 14px 34px rgba(17,18,15,.06); }
.agreement-meta { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.agreement-meta span { color: var(--brass-deep); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.agreement-meta small { color: var(--muted); font-size: 10px; }
.agreement-card p { color: #45463f; font-size: 13px; line-height: 1.7; }
.agreement-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 19px; }
.agreement-links a { color: var(--ink); font-size: 11px; font-weight: 700; text-underline-offset: 4px; }
.consent-confirm { margin: 19px 0 25px; }
.signature-meta { margin-bottom: 20px; }
.signature-block { padding: 18px; background: rgba(255,255,255,.42); border: 1px solid var(--line); border-radius: 12px; }
.signature-label { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin-bottom: 10px; }
.signature-label button { padding: 4px 0; color: var(--brass-deep); background: transparent; border: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.signature-block canvas { width: 100%; height: 176px; display: block; touch-action: none; background: #fffdfa; border: 1px dashed rgba(27,28,24,.3); border-radius: 8px; cursor: crosshair; }
.signature-block.is-invalid canvas { border-color: var(--danger); background: #fff8f6; }
.signature-block > p { margin: 9px 0 0; color: var(--muted); font-size: 10px; }

.payment-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 18px; }
.payment-panel, .order-summary { padding: clamp(21px, 3.4vw, 32px); background: rgba(255,255,255,.56); border: 1px solid var(--line); border-radius: 13px; }
.square-heading { display: grid; grid-template-columns: 38px 1fr 24px; gap: 12px; align-items: center; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.square-heading > svg { width: 22px; fill: none; stroke: var(--brass-deep); stroke-width: 1.4; }
.square-heading strong { display: block; font-size: 13px; }
.square-heading small { display: block; color: var(--muted); font-size: 10px; }
.square-symbol { width: 34px; height: 34px; display: grid; place-items: center; background: #050505; border-radius: 8px; }
.square-symbol i { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 4px; }
.payment-methods { margin: 0; padding: 0; }
.wallet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wallet-grid > [hidden] { display: none !important; }
.wallet-preview { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; border-radius: 8px; opacity: 1 !important; font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; font-size: 17px; font-weight: 600; cursor: default; }
.wallet-preview:disabled { opacity: .38 !important; cursor: not-allowed; }
.apple-pay-preview { display: inline-block; width: 100%; min-width: 140px; height: 50px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; -webkit-appearance: -apple-pay-button; -apple-pay-button-type: buy; -apple-pay-button-style: black; }
.apple-pay-preview:disabled { opacity: .38; cursor: not-allowed; }
.google-pay-preview { width: 100%; min-width: 0; min-height: 50px; }
.google-pay-preview.is-disabled { opacity: .38; pointer-events: none; }
.google-pay-preview > div, .google-pay-preview button { width: 100% !important; min-height: 48px !important; }
.card-fallback { margin: 8px 0 0; border: 0; }
.card-fallback summary { min-height: 48px; padding: 14px 0; color: var(--ink); font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; list-style: none; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--brass-deep); }
.card-fallback summary::-webkit-details-marker { display: none; }
.card-fallback summary::after { content: "+"; display: inline-block; margin-left: 9px; color: var(--brass-deep); font-size: 15px; line-height: 1; }
.card-fallback[open] summary::after { content: "–"; }
.card-fields { padding: 2px 0 15px; }
.card-fields > div:first-child { min-height: 90px; display: block; }
.square-pay-button { width: 100%; min-height: 46px; margin-top: 13px; padding: 11px 18px; color: var(--bone); background: var(--olive); border: 1px solid var(--olive); border-radius: 999px; font-size: 12px; font-weight: 700; }
.square-pay-button:disabled { opacity: .38; cursor: not-allowed; }
.payment-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.payment-split span { padding: 10px 11px; background: rgba(255,255,255,.64); border: 1px solid rgba(27,28,24,.1); border-radius: 6px; }
.payment-method-message { margin: 12px 0 0; color: #55564e; font-size: 14px; line-height: 1.55; }
.payment-step .payment-panel { padding: 0; border: 0; background: none; border-radius: 0; }
.payment-step .payment-layout { gap: clamp(24px, 4vw, 48px); align-items: start; }
.payment-step .square-heading strong { font-size: 16px; }
.payment-step .square-heading small { font-size: 14px; }
.payment-instruction { margin: 26px 0 16px; font-family: var(--sans); font-size: 19px; font-weight: 650; line-height: 1.4; }
.payment-step .deposit-confirm { align-items: start; font-size: 16px; line-height: 1.65; color: var(--ink); }
.payment-step .deposit-confirm .choice-box { width: 24px; height: 24px; margin-top: 3px; }
.payment-guidance { margin: 14px 0 26px; padding-left: 12px; border-left: 3px solid var(--brass-deep); font-size: 16px; line-height: 1.6; color: var(--ink); }
.payment-step .wallet-grid { grid-template-columns: 1fr; max-width: 390px; }
.payment-step .square-pay-button { min-height: 50px; font-size: 16px; }
.payment-step .card-fields > p { font-size: 14px; line-height: 1.6; color: #55564e; }
.payment-step .order-summary > div { font-size: 16px; }
.payment-step .order-summary ul { font-size: 14px; color: #dedbd2; line-height: 1.65; }
.payment-step .order-summary .order-total span { font-size: 16px; }
.payment-step .payment-state strong { font-size: 16px; }
.payment-step .payment-state p { font-size: 14px; color: #55564e; line-height: 1.6; }
.payment-step .delivery-preview p { font-size: 16px; line-height: 1.6; }
.payment-step .section-heading > p:last-child { font-size: 16px; }
.payment-step .card-fallback summary:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 4px; }
.payment-state { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-top: 19px; padding: 14px; color: #44453f; background: rgba(85,112,88,.09); border: 1px solid rgba(85,112,88,.23); border-radius: 9px; }
.payment-state__mark { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--success); border-radius: 50%; }
.payment-state__mark::after { content: "✓"; color: var(--success); font-size: 12px; font-weight: 700; }
.payment-state strong { display: block; color: var(--ink); font-size: 12px; }
.payment-state p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.payment-state[data-state="processing"], .payment-state[data-state="unknown"] { background: rgba(198,161,91,.11); border-color: rgba(157,120,56,.28); }
.payment-state[data-state="processing"] .payment-state__mark, .payment-state[data-state="unknown"] .payment-state__mark { border-color: var(--brass-deep); animation: state-pulse 1.2s ease-in-out infinite; }
.payment-state[data-state="processing"] .payment-state__mark::after, .payment-state[data-state="unknown"] .payment-state__mark::after { content: "…"; color: var(--brass-deep); }
.payment-state[data-state="failed"], .payment-state[data-state="review"], .payment-state[data-state="locked"] { background: rgba(158,63,50,.08); border-color: rgba(158,63,50,.22); }
.payment-state[data-state="failed"] .payment-state__mark, .payment-state[data-state="review"] .payment-state__mark, .payment-state[data-state="locked"] .payment-state__mark { border-color: var(--danger); }
.payment-state[data-state="failed"] .payment-state__mark::after, .payment-state[data-state="review"] .payment-state__mark::after, .payment-state[data-state="locked"] .payment-state__mark::after { content: "!"; color: var(--danger); }
@keyframes state-pulse { 50% { box-shadow: 0 0 0 7px rgba(198,161,91,.14); } }
.order-summary { color: var(--bone); background: var(--olive); border-color: var(--olive); }
.order-summary > div { display: flex; justify-content: space-between; gap: 18px; align-items: start; color: rgba(255,255,255,.65); font-size: 12px; }
.order-summary > div strong { color: #fff; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.order-summary hr { margin: 23px 0; border: 0; border-top: 1px solid rgba(255,255,255,.12); }
.order-summary .order-total span { color: #fff; font-size: 14px; font-weight: 600; }
.order-summary .order-total strong { color: var(--brass); font-size: 31px; }
.order-summary ul { display: grid; gap: 9px; margin: 25px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.54); font-size: 10px; }
.order-summary li::before { content: "✓"; margin-right: 8px; color: var(--brass); }
.delivery-preview { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; margin-top: 18px; padding: 18px; border: 1px solid rgba(157,120,56,.25); border-radius: 12px; background: rgba(198,161,91,.11); }
.document-icon { width: 42px; height: 50px; display: grid; place-items: end center; padding-bottom: 8px; background: var(--paper); border: 1px solid rgba(27,28,24,.18); border-radius: 4px; box-shadow: 4px 5px 0 rgba(157,120,56,.18); }
.document-icon i { color: var(--brass-deep); font-size: 9px; font-style: normal; font-weight: 700; }
.delivery-preview strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.delivery-preview p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }

.success-step { max-width: 650px; text-align: center; padding-top: clamp(100px, 15vh, 170px); }
.success-mark { width: 82px; height: 82px; display: grid; place-items: center; margin: 0 auto 27px; border-radius: 50%; background: rgba(198,161,91,.15); }
.success-mark svg { width: 61px; fill: none; stroke: var(--brass-deep); stroke-width: 1.5; }
.success-step > p:not(.eyebrow) { max-width: 580px; margin: 22px auto; color: var(--muted); }
.success-step .precare-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass-deep); text-underline-offset: .2em; }
.success-step .precare-link:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 4px; border-radius: 2px; }
.confirmation-card { display: grid; gap: 5px; max-width: 430px; margin: 30px auto 20px; padding: 22px; color: var(--bone); background: var(--olive); border-radius: 12px; }
.confirmation-card span { color: var(--brass); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.confirmation-card strong { font-family: var(--serif); font-size: 27px; font-weight: 400; }
.confirmation-card small { color: rgba(255,255,255,.5); font-size: 10px; }
.text-button { color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--brass-deep); font-size: 12px; font-weight: 700; }

.validation-banner { display: none; width: min(900px, calc(100% - 80px)); margin: 0 auto 12px; padding: 12px 16px; color: #6f2d26; background: #f8dfda; border: 1px solid rgba(158,63,50,.26); border-radius: 8px; font-size: 12px; font-weight: 600; }
.validation-banner.is-visible { display: block; }

.form-actions {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: 170px 1fr 230px;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(28px, 5vw, 72px);
  background: rgba(241,237,227,.9);
  border-top: 1px solid rgba(27,28,24,.12);
  backdrop-filter: blur(16px);
}
.button { min-height: 49px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .025em; }
.button--back { color: var(--ink); background: transparent; border: 1px solid rgba(27,28,24,.2); }
.button--next { color: var(--bone); background: linear-gradient(135deg, #24251e, #0f100d); border: 1px solid var(--olive); box-shadow: 0 8px 18px rgba(17,18,15,.15); }
.button--next:hover { box-shadow: 0 10px 24px rgba(17,18,15,.23); transform: translateY(-1px); }
.button[disabled] { opacity: .35; cursor: not-allowed; }
.action-context { text-align: center; }
.action-context span { display: block; font-family: var(--serif); font-size: 19px; line-height: 1; }
.action-context small { color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 1050px) {
  .intake-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .intake-rail { padding-inline: 25px; }
  .rail-intro h1 { font-size: 43px; }
  .rail-intro > p:last-child { font-size: 12px; }
  .expectation-grid > div { display: block; }
  .expectation-grid span { display: block; }
}

@media (max-width: 820px) {
  .prototype-notice { min-height: 31px; padding-inline: 12px; font-size: 9px; }
  .network-banner { inset-block-start: 31px; min-height: 62px; padding-inline: 16px; }
  .intake-shell { min-height: calc(100vh - 31px); display: block; }
  .intake-rail { display: none; }
  .intake-workspace { min-height: calc(100vh - 31px); }
  .mobile-brand { position: sticky; top: 0; z-index: 21; display: flex; justify-content: space-between; align-items: center; min-height: 67px; padding: 11px 22px; color: var(--bone); background: rgba(17,18,15,.97); }
  .progress-track { top: 84px; }
  .intake-form { min-height: calc(100vh - 118px); }
  .form-step, .welcome-step { width: calc(100% - 44px); padding: 49px 0 33px; }
  .welcome-step.is-active { display: block; }
  .section-heading h2, .welcome-copy h2, .success-step h2 { font-size: clamp(40px, 10.5vw, 58px); }
  .welcome-copy .lede, .section-heading > p:last-child { font-size: 14px; }
  .form-actions { grid-template-columns: 55px 1fr minmax(150px, 210px); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .button { min-height: 46px; padding: 11px 14px; }
  .button--back { width: 48px; overflow: hidden; gap: 0; color: var(--ink); font-size: 0; }
  .button--back span { color: var(--ink); font-size: 18px; }
  .action-context { display: none; }
  .validation-banner { width: calc(100% - 36px); }
  .payment-layout { grid-template-columns: 1fr; }
}

@media (max-width: 580px) {
  .prototype-notice { gap: 5px 8px; letter-spacing: .08em; }
  .prototype-notice [data-mode-detail] { display: none; }
  .expectation-grid { grid-template-columns: 1fr; border: 0; gap: 7px; }
  .expectation-grid > div { display: grid; grid-template-columns: 62px 1fr; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .expectation-grid > div + div { padding-left: 0; border-left: 0; }
  .expectation-grid span { font-size: 25px; }
  .field-grid { grid-template-columns: 1fr; gap: 17px; }
  .field--wide { grid-column: auto; }
  .visual-options--three { grid-template-columns: 1fr; }
  .visual-options label > span { min-height: 112px; display: grid; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-content: center; }
  .visual-options svg { grid-row: 1 / span 2; margin: 0; }
  .visual-options strong { margin: 0 0 3px; }
  .check-grid { grid-template-columns: 1fr; }
  .check-grid .none-choice { grid-column: auto; }
  .segmented, .segmented--three { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .segmented--three { grid-template-columns: 1fr; }
  .agreement-meta { display: grid; gap: 5px; }
  .payment-split { grid-template-columns: 1fr; }
  .wallet-grid { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 48px 1fr; }
  .button--next { grid-column: 2; width: 100%; }
  .button--back { grid-column: 1; }
  .action-context { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.payment-step .section-heading h2 { font-size: clamp(36px, 4.2vw, 58px); }
.payment-guidance[hidden] { display: none; }
.consent-confirm { font-size: 16px; line-height: 1.65; }

/* Short screens and intrinsic-width protection, including native iOS dates. */
.intake-workspace, .intake-chunk, .field, .field-grid > *, .welcome-copy, .review-list span { min-width: 0; }
.intake-chunk[hidden] { display: none !important; }
.intake-chunk .compact-question { margin-top: 0; padding: 0; border: 0; background: none; }
.intake-chunk .question-block:last-child { margin-bottom: 0; }
.field input, .field select, .field textarea { min-width: 0; width: 100%; max-width: 100%; font-size: 16px; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; min-inline-size: 0; max-inline-size: 100%; inline-size: 100%; min-height: 54px; margin: 0; }
.field input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.field input[type="date"]::-webkit-datetime-edit { min-width: 0; padding: 0; }
.date-field { width: 100%; max-width: 100%; }
.date-field .field-error { color: var(--danger); font-size: 14px; font-weight: 400; }
.welcome-acknowledgment { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.welcome-acknowledgment strong { color: var(--ink); font-weight: 600; }
.field > span, .question-block legend, .choice-row, .check-grid label { font-size: 16px; }
.field-help, .field-error, .visual-options small, .signature-block > p { font-size: 14px; }
.segmented span { min-height: 48px; font-size: 16px; }
.button { font-size: 16px; }
.expectation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.expectation-grid > div { display: block; min-width: 0; }
.expectation-grid span { display: block; overflow-wrap: anywhere; }
.expectation-grid p { font-size: 14px; }
.section-heading h2 { overflow-wrap: anywhere; }
.review-list small, .confirmation-card strong { overflow-wrap: anywhere; }
@media (max-width: 1050px) and (min-width: 821px) {
  .welcome-step.is-active { display: block; }
}
@media (max-width: 820px) {
  .form-step, .welcome-step { padding-top: 28px; }
  .section-heading { margin-bottom: 24px; }
  .section-heading h2, .welcome-copy h2, .success-step h2 { font-size: clamp(30px, 8vw, 42px); line-height: 1.12; }
  .welcome-copy .lede, .section-heading > p:last-child { font-size: 16px; }
  .intake-chunk .visual-options label > span { min-height: 96px; }
  .before-you-begin p { font-size: 14px; }
  .prototype-notice { flex-wrap: wrap; }
  .form-actions { grid-template-columns: minmax(64px, auto) minmax(0, 1fr); gap: 12px; }
  .button--back { width: auto; font-size: 16px; gap: 6px; }
  .button--next { width: 100%; grid-column: 2; }
  .form-step[data-step="6"] .agreement-card { padding: 20px; }
  .agreement-card p { font-size: 16px; }
  .agreement-links a { font-size: 14px; }
  .signature-label button { min-height: 44px; font-size: 14px; }
}
@media (max-width: 580px) {
  .expectation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .expectation-grid > div { display: block; padding: 10px 0; }
  .expectation-grid span { font-size: 28px; }
  .field-grid { gap: 16px; }
}


/* Studio identity; native logo, no animation or external font loader. */
.studio-logo { display: block; width: 220px; max-width: 100%; height: auto; }
.intake-rail .brand-lockup { padding-bottom: 24px; border-bottom: 1px solid rgba(198,161,91,.26); }
.welcome-copy .eyebrow { margin-bottom: 20px; }
.welcome-copy h2 { font-size: clamp(52px, 6.4vw, 86px); line-height: 1.04; letter-spacing: -.025em; }
.welcome-copy h2 > span:first-child { display: block; margin-bottom: 8px; font-size: .63em; font-style: italic; font-weight: 400; color: #806031; }
.welcome-copy h2 .welcome-registered { display: inline; font-family: var(--sans); font-size: .18em; vertical-align: top; margin-left: 5px; line-height: 2; }
.welcome-copy .lede { margin: 25px 0 28px; max-width: 510px; }
@media (max-width: 820px) {
  .mobile-brand { min-height: 84px; padding: 10px 22px; gap: 18px; background: linear-gradient(115deg, #24241d, #11120f 75%); border-bottom: 1px solid rgba(198,161,91,.3); }
  .mobile-brand .studio-logo { width: 148px; }
  .mobile-progress { text-align: right; flex: 0 0 auto; }
  .mobile-progress > span { display: block; color: #c4b796; font-size: 11px; letter-spacing: .06em; }
  .mobile-progress b { display: block; margin-top: 4px; font-size: 13px; font-weight: 500; color: var(--bone); font-variant-numeric: tabular-nums; }
  .welcome-step { width: calc(100% - 44px); }
  .welcome-copy h2 { font-size: clamp(48px, 14vw, 62px); }
  .welcome-copy .eyebrow { margin-bottom: 20px; }
  .welcome-copy .lede { margin: 23px 0; }
}
