/* The customer portal. Same quiet look as maisonblock.com: white, near-black type, hairlines. */
:root { --bg: #fff; --surface: #f7f7f7; --ink: #111; --ink-2: #2a2a2a; --muted: #616161; --line: #e8e8e8; --line-2: #d4d4d4; --red: #a63a1e; --r: 10px; --r-lg: 16px; --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }
.staging { margin: 0; padding: 7px 16px; background: var(--ink); color: #fff; font-size: 13px; text-align: center; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px clamp(16px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.brand { font-weight: 500; font-size: 20px; letter-spacing: -.03em; text-decoration: none; }
.brand em { font-style: normal; color: var(--muted); }
.top-ref { font-size: 13px; color: var(--muted); text-align: right; }
.top-ref b { font: 500 13px var(--mono); color: var(--ink); white-space: nowrap; }
.wrap { max-width: 1120px; margin: 0 auto; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 40px) 64px; }
.narrow { max-width: 640px; }
.foot { border-top: 1px solid var(--line); padding: 18px clamp(16px, 4vw, 40px); font-size: 13.5px; color: var(--muted); }
.plate { font: 500 11.5px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.display { font-weight: 500; font-size: clamp(36px, 7vw, 76px); line-height: 1; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
.h1 { font-weight: 500; font-size: clamp(30px, 5vw, 52px); line-height: 1.05; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h2 { font-weight: 500; font-size: clamp(27px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -.03em; margin: 0; }
.h2:focus { outline: 0; }
.h3 { font-weight: 500; font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px; }
.h4 { font-weight: 500; font-size: 17px; margin: 0 0 4px; }
.lede { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--ink-2); margin: 14px 0 0; max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; background: var(--ink); color: #fff; border: 1px solid var(--ink); border-radius: 999px; font-weight: 500; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.btn:hover { background: var(--ink-2); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; }
.link { text-underline-offset: 3px; }
.linkbtn { background: none; border: 0; padding: 6px 0; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; color: var(--ink); }
.actions { margin: 24px 0 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-card { padding: clamp(22px, 4vw, 40px) 0; }
.panel { border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 2.4vw, 26px); margin-top: 18px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.split .panel { display: grid; gap: 12px; margin-top: 18px; }
.split .btn { justify-self: start; }
.note { background: var(--surface); border-radius: var(--r); padding: 12px 14px; font-size: 15px; margin: 14px 0; }
.ticks { margin: 12px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { padding-left: 22px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: .55em; width: 9px; height: 4px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.more { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 4px; }
.more summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 500; }
.journey { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.journey li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); border-top: 2px solid var(--line); padding-top: 10px; min-width: 0; }
.journey li span { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 500 11.5px var(--mono); }
.journey li.done { color: var(--ink); border-color: var(--ink); }
.journey li.done span { background: var(--ink); color: #fff; border-color: var(--ink); }
.journey li.now { color: var(--ink); font-weight: 500; border-color: var(--ink); }
.journey li.now span { border-color: var(--ink); }
.owned { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.owned li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; background: var(--surface); border-radius: var(--r); }
.owned small { color: var(--muted); font-size: 12.5px; text-align: right; }

/* Wizard */
.wizard { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.wizard-side { position: sticky; top: 20px; }
.stepnav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.stepnav button { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 8px; background: none; border: 0; border-radius: var(--r); text-align: left; cursor: pointer; font-size: 15px; color: var(--muted); }
.stepnav button:hover { background: var(--surface); color: var(--ink); }
.stepnav button span { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 50%; font: 500 12px var(--mono); }
.stepnav button[aria-current="step"] { color: var(--ink); font-weight: 500; background: var(--surface); }
.stepnav button[aria-current="step"] span { border-color: var(--ink); }
.stepnav button.is-done span { background: var(--ink); color: #fff; border-color: var(--ink); }
.savestate { font-size: 13px; color: var(--muted); margin: 12px 8px 0; min-height: 20px; }
.meter { height: 2px; background: var(--line); margin-bottom: 22px; display: none; }
.meter span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }
.step { display: grid; gap: 20px; max-width: 720px; }
.step > .lede { margin-top: -10px; }
.f { display: grid; gap: 6px; min-width: 0; }
.f label, .lbl { font-weight: 500; font-size: 15.5px; }
.f fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.f legend { padding: 0; font-weight: 500; font-size: 15.5px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13.5px; margin-left: 4px; }
.hint { margin: 0; font-size: 14px; color: var(--muted); }
.err { margin: 0; font-size: 14px; color: var(--red); }
.f input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), .f textarea, .f select, .field input, .field textarea { width: 100%; min-height: 48px; padding: 11px 13px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); }
.f textarea, .field textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus, .field input:focus, .field textarea:focus { border-color: var(--ink); outline: 0; }
.f.has-err input, .f.has-err textarea, .f.has-err select { border-color: var(--red); }
.choices { display: grid; gap: 8px; }
.choice, .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.4; cursor: pointer; }
.choice { min-height: 46px; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.choice:hover { border-color: var(--ink); }
.choice:has(input:checked) { border-color: var(--ink); background: var(--surface); }
.choice input, .check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.cardopt { display: block; cursor: pointer; position: relative; }
.cardopt input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cardopt-in { display: grid; gap: 3px; height: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r); }
.cardopt-in svg { width: 100%; height: auto; color: var(--ink); margin-bottom: 6px; }
.cardopt-in b { font-weight: 500; font-size: 15px; }
.cardopt-in small { font-size: 13.5px; color: var(--muted); line-height: 1.35; font-weight: 400; }
.cardopt:hover .cardopt-in { border-color: var(--ink); }
.cardopt input:checked + .cardopt-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--surface); }
.cardopt input:focus-visible + .cardopt-in { outline: 2px solid var(--ink); outline-offset: 2px; }
.colorrow { display: flex; align-items: center; gap: 12px; }
.colorrow input[type=color] { width: 56px; height: 44px; padding: 2px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; cursor: pointer; }
.group-head { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.stepbtns { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 10px; }
.product { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; }
.product-head { display: flex; justify-content: space-between; align-items: center; }
.product-head b { font-weight: 500; }

/* Uploads */
.dropzone { display: grid; justify-items: center; gap: 2px; padding: 18px; border: 1px dashed var(--line-2); border-radius: var(--r); text-align: center; cursor: pointer; font-weight: 400 !important; position: relative; }
.dropzone:hover, .dropzone.is-over { border-color: var(--ink); background: var(--surface); }
.dropzone input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.dropzone span { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.dropzone small { color: var(--muted); font-size: 13.5px; }
.filelist { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.fileitem { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; background: var(--surface); border-radius: var(--r); }
.fileitem img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 6px; }
.fileicon { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border-radius: 6px; font: 500 10px var(--mono); color: var(--muted); }
.filename { min-width: 0; overflow-wrap: anywhere; font-size: 14.5px; line-height: 1.3; }
.filename small { display: block; color: var(--muted); font-size: 12.5px; }
.fileitem progress { width: 100%; height: 4px; display: block; margin-top: 4px; accent-color: var(--ink); }
.fileitem.is-error { background: #fbf0ed; }
.fileitem.is-error small { color: var(--red); }

/* Designs */
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.design { display: block; position: relative; cursor: pointer; font-weight: 400 !important; }
.design > input { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; z-index: 2; accent-color: var(--ink); }
.design-in { display: grid; gap: 2px; height: 100%; padding: 8px 8px 12px; border: 1px solid var(--line-2); border-radius: var(--r); }
.design-in img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; background: var(--surface); margin-bottom: 6px; }
.design-in b { font-weight: 500; padding-inline: 4px; }
.design-in small { font-size: 13px; color: var(--muted); padding-inline: 4px; }
.design-in a { font-size: 13px; padding: 6px 4px 0; text-underline-offset: 3px; position: relative; z-index: 2; width: max-content; }
.design:has(input:checked) .design-in { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* Review step */
.summary { display: grid; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px; }
.sumrow { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sumrow:last-child { border-bottom: 0; }
.sumrow dt { color: var(--muted); font-size: 14.5px; }
.sumrow dd { margin: 0; overflow-wrap: anywhere; }
.miss { background: var(--surface); border-radius: var(--r); padding: 12px 14px; }
.miss h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.miss ul { margin: 0; padding-left: 18px; font-size: 14.5px; }
.form { display: grid; gap: 12px; margin-top: 20px; }
.field { display: grid; gap: 6px; font-weight: 400; }
.field > span { font-weight: 500; }

@media (max-width: 860px) {
  .wizard { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wizard-side { position: static; }
  .stepnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .stepnav::-webkit-scrollbar { display: none; }
  .stepnav button { width: auto; white-space: nowrap; font-size: 14px; }
  .stepnav button:not([aria-current="step"]) { font-size: 0; gap: 0; padding: 6px; }
  .wizard-side .plate { display: none; }
  .meter { display: block; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .journey { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .journey li { border-top: 0; border-left: 2px solid var(--line); padding: 5px 0 5px 10px; }
  .journey li.done, .journey li.now { border-left-color: var(--ink); }
}
@media (max-width: 480px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .sumrow { grid-template-columns: minmax(0, 1fr) auto; }
  .sumrow dd { grid-column: 1 / -1; }
  .top-ref { max-width: 170px; }
  .stepbtns .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Staging hub */
.hub { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hub-item { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hub-item p { margin: 2px 0 0; }
.hub-item b { font-weight: 500; }
.hub-n { font: 500 13px var(--mono); color: var(--muted); }
