/* Recolour My House — shared styles. Paint-chart look: paper, ink, one hi-vis accent. */
:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --ink: #17171a;
  --ink-2: #3a3a40;
  --muted: #66666e;
  --line: #e2e0d8;
  --line-2: #cfccc2;
  --hi: #ffd400;
  --hi-press: #f0c400;
  --ok: #1e7a46;
  --warn: #b3261e;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(23, 23, 26, 0.04), 0 8px 24px rgba(23, 23, 26, 0.07);
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; max-width: 1120px; margin: 0 auto;
}
.wordmark {
  font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
}
.wordmark .chips { display: inline-grid; grid-template-columns: 9px 9px; gap: 2px; }
.wordmark .chips i { width: 9px; height: 9px; display: block; }
.wordmark .chips i:nth-child(1) { background: #323233; }
.wordmark .chips i:nth-child(2) { background: #a6563b; }
.wordmark .chips i:nth-child(3) { background: #2b3a4e; }
.wordmark .chips i:nth-child(4) { background: var(--hi); }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; }
@media (max-width: 640px) { .top nav .hide-s { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  border: 2px solid var(--ink); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform 0.06s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-hi { background: var(--hi); }
.btn-hi:hover { background: var(--hi-press); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; border-width: 1.5px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 18px; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 500; }

/* ---------- landing ---------- */
.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); }
.hero .lede { font-size: 19px; color: var(--ink-2); margin-top: 18px; max-width: 34em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.hero .fine { font-size: 14px; color: var(--muted); margin-top: 12px; }
@media (max-width: 900px) {
  .hero { padding-top: 8px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
}

.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }

/* demo card */
.demo { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.demo-bar { display: flex; gap: 8px; padding: 12px; overflow-x: auto; border-top: 1px solid var(--line); scrollbar-width: none; }
.demo-bar::-webkit-scrollbar { display: none; }
.demo-chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 600;
}
.demo-chip[aria-pressed='true'] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.demo-chip .dots { display: inline-flex; }
.demo-chip .dots i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px rgba(0,0,0,0.18); }
.demo-chip .dots i:first-child { margin-left: 0; }
.demo-cap { padding: 0 14px 12px; font-size: 13px; color: var(--muted); }

/* before/after compare */
.cmp { position: relative; width: 100%; background: #e9e7df; user-select: none; -webkit-user-select: none; touch-action: pan-y; overflow: hidden; }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp .cmp-before { clip-path: inset(0 50% 0 0); }
.cmp .cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; margin-left: -22px; cursor: ew-resize; touch-action: none; }
.cmp .cmp-handle::before { content: ''; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,0.25); }
.cmp .cmp-handle::after {
  content: '\2194'; position: absolute; top: 50%; left: 2px; width: 40px; height: 40px; margin-top: -20px;
  border-radius: 50%; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 18px; font-weight: 700; line-height: 36px; text-align: center;
}
.cmp .tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: 4px; background: rgba(23,23,26,0.78); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.cmp .tag-l { left: 10px; }
.cmp .tag-r { right: 10px; }
.cmp.single .cmp-handle, .cmp.single .cmp-before, .cmp.single .tag-l { display: none; }

/* sections */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(28px, 3.6vw, 40px); max-width: 18em; }
.section .sub { color: var(--ink-2); font-size: 18px; margin-top: 14px; max-width: 38em; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; background: var(--ink); color: #fff; font-weight: 800; border-radius: 4px; margin-bottom: 14px; }
.step h3 { font-size: 20px; }
.step p { color: var(--ink-2); margin-top: 8px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.use { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.use .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line-2); }
.use .pair figure { margin: 0; position: relative; }
.use .pair img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.use .pair figcaption { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px; background: rgba(23,23,26,0.78); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.use .body { padding: 18px 20px 20px; }
.use h3 { font-size: 19px; }
.use p { color: var(--ink-2); margin-top: 6px; font-size: 15px; }
.spec { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.spec span { display: inline-flex; align-items: center; gap: 6px; }
.spec i { width: 12px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); display: inline-block; }
@media (max-width: 800px) { .uses { grid-template-columns: 1fr; } }

.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; align-items: stretch; }
.price { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; }
.price.feature { border: 2px solid var(--ink); }
.price h3 { font-size: 18px; }
.price .amt { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; margin-top: 10px; line-height: 1; }
.price .amt small { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 9px; color: var(--ink-2); font-size: 15px; flex: 1; }
.price li { padding-left: 22px; position: relative; }
.price li::before { content: ''; position: absolute; left: 0; top: 7px; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line-2); padding: 16px 0; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 500; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--ink-2); margin-top: 10px; }

.band { background: var(--ink); color: #fff; }
.band .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 16em; }
.band p { color: #cfcfd4; margin-top: 10px; max-width: 34em; }
.band .btn { border-color: var(--hi); }

.foot { padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { margin-right: 16px; }

.prose { max-width: 720px; margin: 0 auto; padding: 24px 20px 72px; }
.prose h1 { font-size: 36px; margin-bottom: 8px; }
.prose h2 { font-size: 21px; margin: 30px 0 8px; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); margin-top: 10px; }
.prose ul { padding-left: 20px; }

/* ---------- app ---------- */
body.app { background: #f3f1ea; min-height: 100vh; }
.appbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line-2); }
.appbar .in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; max-width: 1240px; margin: 0 auto; }
.appbar-r { display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 480px) {
  .appbar .in { padding: 8px 12px; gap: 8px; }
  .appbar .wm-rest { display: none; }
  .appbar .quota { font-size: 12px; padding: 4px 8px; }
  .appbar .btn-sm { padding: 0 10px; font-size: 13px; min-height: 34px; }
}
.quota { font-size: 13px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line-2); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.quota.paid { background: #e8f4ec; border-color: #b9dcc6; color: #14552f; }

.intake { max-width: 720px; margin: 0 auto; padding: 28px 16px 60px; }
.intake h1 { font-size: clamp(28px, 5vw, 40px); }
.intake .lede { color: var(--ink-2); margin-top: 10px; font-size: 17px; }
.drop {
  margin-top: 22px; background: var(--card); border: 2px dashed var(--line-2); border-radius: 12px; padding: 30px 20px; text-align: center;
}
.drop.over { border-color: var(--ink); background: #fffbe0; }
.drop .btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.drop .or { font-size: 14px; color: var(--muted); margin-top: 14px; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; font-size: 14px; color: var(--ink-2); }
.tips div { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.tips b { display: block; color: var(--ink); }
@media (max-width: 620px) { .tips { grid-template-columns: 1fr; } }
.privacy-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

.studio { max-width: 1240px; margin: 0 auto; padding: 14px 16px 120px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 920px) { .studio { grid-template-columns: minmax(0, 1fr); padding: 0 0 120px; gap: 0; } }
.stage-col, .panel-col { min-width: 0; }

.stage-col { position: sticky; top: 62px; }
@media (max-width: 920px) { .stage-col { position: static; } }
.stage { position: relative; background: #1b1b1e; border-radius: 10px; overflow: hidden; }
@media (max-width: 920px) { .stage { border-radius: 0; } }
.stage .cmp { margin: 0 auto; }
.busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(23,23,26,0.55); color: #fff; text-align: center; padding: 20px; }
.busy .box { background: rgba(23,23,26,0.86); padding: 16px 20px; border-radius: 10px; min-width: 230px; }
.busy .bar { height: 6px; background: rgba(255,255,255,0.18); border-radius: 3px; overflow: hidden; margin-top: 12px; }
.busy .bar i { display: block; height: 100%; width: 4%; background: var(--hi); transition: width 0.6s linear; }
.busy .msg { font-weight: 700; }
.busy .sub { font-size: 13px; color: #cfcfd4; margin-top: 4px; }

.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: thin; }
@media (max-width: 920px) { .thumbs { padding: 10px 12px 4px; } }
.thumb { flex: 0 0 auto; width: 92px; border: 2px solid transparent; border-radius: 8px; background: #fff; padding: 0; cursor: pointer; overflow: hidden; text-align: left; }
.thumb[aria-current='true'] { border-color: var(--ink); }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb .cap { display: flex; align-items: center; gap: 3px; padding: 4px 6px; font-size: 11px; font-weight: 700; min-height: 22px; }
.thumb .cap i { width: 10px; height: 10px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.thumb .cap .hd { margin-left: auto; font-size: 9px; background: var(--ink); color: #fff; padding: 1px 4px; border-radius: 3px; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0; }
@media (max-width: 920px) { .actions { padding: 8px 12px; } }

.panel { background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; padding: 16px; }
@media (max-width: 920px) { .panel { border-radius: 0; border-left: 0; border-right: 0; } }
.panel h2 { font-size: 15px; letter-spacing: 0; font-weight: 700; margin-bottom: 10px; }
.surfaces { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.surfaces::-webkit-scrollbar { display: none; }
.surf {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  border: 1.5px solid var(--line-2); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.surf i { width: 16px; height: 16px; border-radius: 3px; background: repeating-linear-gradient(45deg, #ddd 0 3px, #fff 3px 6px); box-shadow: 0 0 0 1px rgba(0,0,0,0.18); }
.surf[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: #fff; }
.surf[aria-pressed='true'] i { box-shadow: 0 0 0 1.5px #fff; }

.palette { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 14px; }
.sw { position: relative; aspect-ratio: 1; border-radius: 6px; border: 0; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.16); }
.sw[aria-pressed='true'] { outline: 3px solid var(--ink); outline-offset: 2px; }
.sw[aria-pressed='true']::after { content: ''; position: absolute; left: 50%; top: 50%; width: 14px; height: 8px; margin: -7px 0 0 -7px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg); filter: drop-shadow(0 0 1px rgba(0,0,0,0.9)); }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; min-height: 30px; font-size: 14px; }
.picked b { font-weight: 700; }
.picked .hex { color: var(--muted); font-variant-numeric: tabular-nums; margin-left: 6px; }
.row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.row label { font-size: 14px; font-weight: 600; }
.custom { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.custom input[type='color'] { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; }
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 8px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--ink); color: #fff; }
.field { width: 100%; min-height: 44px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 8px; font: inherit; background: #fff; margin-top: 12px; }
.field:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.scheme { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.scheme .ln { display: flex; align-items: center; gap: 8px; }
.scheme .ln i { width: 14px; height: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); }
.scheme .ln span { color: var(--muted); }
.scheme .empty { color: var(--muted); }

.gobar { margin-top: 14px; }
@media (max-width: 920px) {
  .gobar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; margin: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line-2); }
}
.note-s { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.err { background: #fdecea; border: 1px solid #f3b9b3; color: #7a1a14; padding: 10px 12px; border-radius: 8px; font-size: 14px; margin-top: 12px; }

/* dialogs */
dialog { border: 0; border-radius: 12px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 24px 80px rgba(0,0,0,0.35); color: var(--ink); }
dialog::backdrop { background: rgba(23,23,26,0.55); }
.dlg { padding: 22px; }
.dlg h2 { font-size: 24px; }
.dlg .sub { color: var(--ink-2); margin-top: 8px; }
.dlg .x { position: absolute; right: 10px; top: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 26px; cursor: pointer; }
.opt { border: 1.5px solid var(--line-2); border-radius: 10px; padding: 16px; margin-top: 14px; }
.opt.feature { border: 2px solid var(--ink); }
.opt .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.opt .hd b { font-size: 18px; }
.opt .hd .amt { font-size: 22px; font-weight: 800; white-space: nowrap; }
.opt .hd .amt small { font-size: 13px; color: var(--muted); font-weight: 600; }
.opt p { color: var(--ink-2); font-size: 14.5px; margin: 6px 0 12px; }
.dlg .fine { font-size: 13px; color: var(--muted); margin-top: 14px; }
.board-prev { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; margin-top: 12px; }
.form-grid { display: grid; gap: 10px; margin-top: 12px; }
.form-grid label { font-size: 13px; font-weight: 700; display: grid; gap: 4px; }
.form-grid .field { margin-top: 0; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 22px; letter-spacing: 0.12em; background: #fff; border: 1.5px dashed var(--line-2); padding: 10px 14px; border-radius: 8px; display: inline-block; margin-top: 10px; }
