/* Color My House — Scorpion Paint. Interior designer meets premium painting contractor:
   whitespace, big visual choices, soft shadows, rounded cards, restrained UI color
   (the color comes from the paint). Mobile-first. */

:root {
  --ink: #1F1D1A;
  --ink-2: #3D3934;
  --muted: #6F6A63;
  --line: #E8E3DA;
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --brand: #B5573A;          /* Scorpion Paint accent — used sparingly */
  --ok: #3F6B4F;
  --shadow: 0 12px 32px rgba(31, 29, 26, .08);
  --shadow-lg: 0 24px 60px rgba(31, 29, 26, .14);
  --radius: 20px;
  --radius-sm: 14px;
  --gutter: 16px;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--ui);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
button { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.wrap { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); }
.wrap.wide { max-width: 1040px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── top bar ─────────────────────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter);
  max-width: 1040px; margin: 0 auto; width: 100%;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 26px; height: 26px; fill: var(--brand); }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; }
.powered { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: right; }
@media (max-width: 480px) { .powered { font-size: .62rem; max-width: 140px; } }

.progress { height: 3px; background: var(--line); max-width: 1040px; margin: 0 auto; width: calc(100% - 2 * var(--gutter)); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .5s var(--ease); }

/* ── screens + the paint-drop transition ─────────────────────────────────── */
.screen { padding-block: 28px 56px; animation: drop .6s var(--ease) both; }
@keyframes drop {
  from { clip-path: circle(0% at 50% 12%); opacity: .6; }
  to   { clip-path: circle(160% at 50% 12%); opacity: 1; }
}
.step-label { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.display { font-size: clamp(1.7rem, 4.5vw, 2.6rem); line-height: 1.12; margin-bottom: 10px; }
.lede { font-size: 1.05rem; color: var(--ink-2); max-width: 560px; margin-bottom: 22px; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; font-size: .82rem;
  background: var(--ink); color: #fff;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  box-shadow: 0 8px 20px rgba(31, 29, 26, .16);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(31, 29, 26, .22); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost { background: transparent; color: var(--muted); box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: 500; padding: 10px 14px; }
.btn.ghost:hover { color: var(--ink); transform: none; }
.btn.big { padding: 18px 34px; font-size: .9rem; }
.btn.block { width: 100%; }
.btn:focus-visible, .choice:focus-visible, .chip:focus-visible { outline: 3px solid rgba(181, 87, 58, .45); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }
.actions.stack { flex-direction: column; align-items: stretch; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }

/* ── landing ─────────────────────────────────────────────────────────────── */
.landing { text-align: center; padding-block: 12px 40px; }
.landing .display { font-size: clamp(2rem, 6vw, 3.4rem); margin-top: 26px; animation: fadeup .9s .5s var(--ease) both; }
.landing .lede { margin-inline: auto; animation: fadeup .9s .8s var(--ease) both; }
.landing .actions { justify-content: center; animation: fadeup .9s 1.05s var(--ease) both; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.hero-room {
  position: relative; margin: 0 auto; max-width: 720px; aspect-ratio: 16 / 9;
  border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
  background: linear-gradient(#FFFFFF, #F1EDE6 68%, #DCD3C5 68.5%, #CFC3B1);
}
.hero-room .wall {
  position: absolute; inset: 0 0 32% 0;
  background: #F4EFE6;
  animation: wallcycle 14s linear 1.2s infinite;
}
.hero-room .wall::after { /* the freshly painted band that follows the roller */
  content: ""; position: absolute; inset: 0; width: 0;
  background: inherit; filter: brightness(.97);
}
.hero-room .baseboard { position: absolute; left: 0; right: 0; bottom: 30%; height: 2.4%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.hero-room .floor { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: repeating-linear-gradient(90deg, #D9CDBB 0 9%, #CFC2AE 9% 9.4%); }
.hero-room .window { position: absolute; left: 62%; top: 14%; width: 20%; height: 46%; background: linear-gradient(#FFF9EA, #FBEFD6); border: 8px solid #fff; border-radius: 6px; box-shadow: 0 0 0 1px rgba(0,0,0,.05), 0 10px 40px rgba(255, 220, 160, .35); }
.hero-room .window::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: #fff; }
.hero-room .window::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 6px; margin-top: -3px; background: #fff; }
.hero-room .sofa { position: absolute; left: 10%; bottom: 22%; width: 34%; height: 22%; background: #E9E2D6; border-radius: 14px 14px 8px 8px; box-shadow: inset 0 -12px 0 #D8CFC0, 0 14px 24px rgba(0,0,0,.08); }
.hero-room .sofa::before { content: ""; position: absolute; left: 6%; right: 6%; top: -30%; height: 40%; background: #E9E2D6; border-radius: 12px 12px 0 0; }
.hero-room .plant { position: absolute; right: 8%; bottom: 30%; width: 6%; height: 20%; border-radius: 50% 50% 8px 8px; background: #8C9A87; box-shadow: -10px -8px 0 -2px #A7B39F, 10px -6px 0 -3px #7E8B79; }
.hero-room .roller {
  position: absolute; top: 8%; left: -20%; width: 16%; height: 20%;
  animation: roll 14s linear 1.2s infinite;
}
.hero-room .roller .head { position: absolute; left: 0; top: 0; width: 100%; height: 44%; border-radius: 10px; background: linear-gradient(#EFEAE1, #D9D1C3); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.hero-room .roller .arm { position: absolute; left: 48%; top: 40%; width: 6%; height: 60%; background: #9A9187; border-radius: 3px; }
.hero-room .roller .grip { position: absolute; left: 40%; top: 84%; width: 22%; height: 30%; background: #2E2E2E; border-radius: 6px; }
.hero-room .swipe {
  position: absolute; top: 0; bottom: 32%; left: 0; width: 0;
  animation: swipe 14s linear 1.2s infinite;
  background: var(--swipe, #DED8CC);
}
@keyframes roll {
  0% { left: -20%; }
  22% { left: 104%; }
  25% { left: -20%; }
  47% { left: 104%; }
  50% { left: -20%; }
  72% { left: 104%; }
  75% { left: -20%; }
  97% { left: 104%; }
  100% { left: -20%; }
}
@keyframes swipe {
  0%   { width: 0;    background: #DED8CC; }
  22%  { width: 100%; background: #DED8CC; }
  25%  { width: 0;    background: #B7BFA9; }
  47%  { width: 100%; background: #B7BFA9; }
  50%  { width: 0;    background: #9FB3BD; }
  72%  { width: 100%; background: #9FB3BD; }
  75%  { width: 0;    background: #F4EFE6; }
  97%  { width: 100%; background: #F4EFE6; }
  100% { width: 0;    background: #F4EFE6; }
}
@keyframes wallcycle {
  0%, 22% { background: #F4EFE6; }
  25%, 47% { background: #DED8CC; }
  50%, 72% { background: #B7BFA9; }
  75%, 97% { background: #9FB3BD; }
  100% { background: #F4EFE6; }
}

/* ── choice grids ─────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.choice {
  appearance: none; border: 1.5px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 16px 14px; text-align: left; cursor: pointer; min-height: 96px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  box-shadow: var(--shadow); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
  position: relative;
}
.choice:hover { transform: translateY(-2px); }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink), var(--shadow-lg); transform: translateY(-2px) scale(1.02); }
.choice[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .75rem; display: grid; place-items: center; animation: pop .3s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.choice .label { font-weight: 600; font-size: .98rem; }
.choice .sub { font-size: .8rem; color: var(--muted); }
.choice .icon { width: 44px; height: 44px; color: var(--ink-2); }
.choice .icon svg { width: 100%; height: 100%; }
.choice.room { min-height: 124px; }
.choice.style { min-height: 118px; }
.choice.fam { min-height: 110px; }
.choice .fam-chip { width: 100%; height: 42px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.choice.help { border-style: dashed; background: transparent; box-shadow: none; justify-content: center; align-items: center; text-align: center; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  appearance: none; border: 1.5px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 12px 18px; cursor: pointer; font-weight: 500; font-size: .95rem;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.chip.mood { padding: 16px 22px; font-family: var(--display); font-size: 1.15rem; font-weight: 400; }
.counter { font-size: .8rem; color: var(--muted); margin: 8px 0 14px; }

.qgroup { margin-top: 26px; }
.qgroup h2 { font-size: 1.3rem; margin-bottom: 6px; }
.qgroup .why { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.substep-dots { display: flex; gap: 6px; margin: 4px 0 18px; }
.substep-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.substep-dots i.on { background: var(--ink); }

/* ── Cerise Says ─────────────────────────────────────────────────────────── */
.cerise {
  display: flex; gap: 14px; align-items: flex-start;
  background: #FFFDF9; border: 1px solid #F0E6D6; border-radius: var(--radius);
  padding: 16px 18px; margin: 18px 0; animation: fadeup .6s var(--ease) both;
}
.cerise .avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #E8CFC0, #B5573A); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.cerise .who { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 4px; }
.cerise .text { font-family: var(--display); font-size: 1.05rem; line-height: 1.45; color: var(--ink-2); }

/* ── photos ──────────────────────────────────────────────────────────────── */
.photo-actions { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
.photo-actions label.btn { cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.thumbs .thumb { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); box-shadow: var(--shadow); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumbs .state { position: absolute; left: 8px; bottom: 8px; font-size: .68rem; background: rgba(31,29,26,.75); color: #fff; padding: 3px 8px; border-radius: 999px; }
.thumbs .remove { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: .85rem; }
.tips { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-top: 18px; font-size: .92rem; }
.tips strong { display: block; margin-bottom: 4px; }

/* ── results ─────────────────────────────────────────────────────────────── */
.direction { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 26px 22px; box-shadow: var(--shadow); margin-bottom: 22px; position: relative; overflow: hidden; }
.direction::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--dir, #DED8CC); }
.direction .kicker { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.direction h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.direction p { color: var(--ink-2); }

.options { display: grid; gap: 14px; }
@media (min-width: 720px) { .options { grid-template-columns: 1fr 1fr; } }
.option {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); animation: slidein .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms);
  display: flex; flex-direction: column;
}
@keyframes slidein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.option .swatch { height: 132px; position: relative; transition: height .3s var(--ease); }
.option.main .swatch { height: 160px; }
.option .swatch .rank { position: absolute; left: 14px; top: 12px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; background: rgba(255,255,255,.85); padding: 4px 9px; border-radius: 999px; }
.option .swatch .fav { position: absolute; right: 12px; top: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; font-size: 1.05rem; display: grid; place-items: center; transition: transform .2s var(--ease); }
.option .swatch .fav[aria-pressed="true"] { background: var(--ink); color: #fff; transform: scale(1.08); }
.option .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.option .name { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.option .src { font-size: .74rem; color: var(--muted); letter-spacing: .04em; }
.option .why { font-size: .92rem; color: var(--ink-2); }
.option .why strong { color: var(--ink); }
.option .because { font-size: .85rem; color: var(--muted); margin: 0; padding-left: 18px; }
.option .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.option .row .btn { padding: 10px 14px; font-size: .72rem; box-shadow: none; }
.option.main .body::before { content: "Your main wall"; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ok); }

.section { margin-top: 34px; }
.section h2 { font-size: 1.45rem; margin-bottom: 6px; }
.section .sub { color: var(--muted); margin-bottom: 14px; }

/* compare */
.compare-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.compare-pick .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; }
.compare-pick .dot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.compare-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-card .vig { aspect-ratio: 4 / 3; display: block; width: 100%; }
.compare-card .cap { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.compare-card .cap b { font-family: var(--display); font-size: 1.05rem; }
.compare-card .fav { border: 0; background: transparent; cursor: pointer; font-size: 1.1rem; }
.compare-card .fav[aria-pressed="true"] { color: var(--brand); }
.tod { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; font-size: .85rem; color: var(--muted); }
.tod input[type="range"] { flex: 1; accent-color: var(--ink); }

/* palette */
.palette { background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.palette .strip { display: flex; height: 92px; }
.palette .strip span { flex: 1; transition: flex .4s var(--ease); }
.palette .strip span:first-child { flex: 2.4; }
.palette .roles { padding: 6px 18px 18px; }
.prole { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); animation: slidein .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
.prole:first-child { border-top: 0; }
.prole .chipbox { width: 52px; height: 52px; border-radius: 14px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.prole .role { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prole .name { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.prole .note { font-size: .8rem; color: var(--muted); }
.prole .change { margin-left: auto; }
.palette .pfoot { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 18px 18px; }
.palette .pfoot .btn { padding: 11px 16px; font-size: .74rem; box-shadow: none; }
.main-picker { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 16px; }
.main-picker .chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; font-size: .85rem; }
.main-picker .dot { width: 24px; height: 24px; border-radius: 8px; }

/* confidence */
.confidence { display: grid; gap: 18px; grid-template-columns: 120px 1fr; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
@media (max-width: 480px) { .confidence { grid-template-columns: 1fr; text-align: center; } }
.ring { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto;
  background: conic-gradient(var(--ink) calc(var(--pct) * 1%), var(--line) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; background: var(--card); border-radius: 50%; }
.ring b { position: relative; font-family: var(--display); font-size: 1.7rem; }
.ring b small { font-size: .9rem; }
.confidence h3 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.confidence ul { margin: 0 0 8px; padding-left: 18px; }
.confidence li { margin: 2px 0; }
.confidence .note { font-size: .78rem; color: var(--muted); }

/* handoff */
.handoff { background: linear-gradient(135deg, #FFF8F2, #FBEFE6); border: 1px solid #F0DCCB; border-radius: 28px; padding: 26px 22px; text-align: center; }
.handoff h2 { font-size: 1.5rem; margin-bottom: 8px; }
.handoff p { color: var(--ink-2); max-width: 480px; margin-inline: auto; }

/* final */
.final { text-align: center; }
.final .display { margin-top: 10px; }
.final .palette { text-align: left; margin: 22px auto; max-width: 620px; }
.final .actions { justify-content: center; }
.share-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.share-box input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink-2); }

/* ── modal ───────────────────────────────────────────────────────────────── */
.modal-back { position: fixed; inset: 0; background: rgba(31, 29, 26, .55); display: flex; align-items: flex-end; justify-content: center; padding: 0; z-index: 50; animation: fade .25s var(--ease); }
@media (min-width: 640px) { .modal-back { align-items: center; padding: 20px; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--card); border-radius: 28px 28px 0 0; width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; padding: 22px 20px 28px; box-shadow: var(--shadow-lg); animation: rise .4s var(--ease); }
@media (min-width: 640px) { .modal { border-radius: 28px; } }
.modal.wide { max-width: 980px; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal h2 { font-size: 1.5rem; margin-bottom: 6px; }
.modal .close { float: right; border: 0; background: var(--bg); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.field label { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font: inherit; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--ink); }
.field textarea { min-height: 88px; resize: vertical; }
.two { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.form-error { color: #9B3A2A; font-size: .9rem; margin-top: 10px; }
.consent { font-size: .78rem; color: var(--muted); margin-top: 12px; }
.success { text-align: center; padding: 10px 0; }
.success .check { width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.5rem; animation: pop .4s var(--ease); }

/* ── visualizer ──────────────────────────────────────────────────────────── */
.viz { display: grid; gap: 16px; }
@media (min-width: 900px) { .viz { grid-template-columns: 1fr 280px; } }
.viz-stage { position: relative; background: #111; border-radius: var(--radius); overflow: hidden; touch-action: none; }
.viz-stage canvas { display: block; width: 100%; height: auto; }
.viz-stage .before-layer { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease); pointer-events: none; }
.viz-stage.after .before-layer { clip-path: inset(0 0 0 100%); }
.viz-stage .badge { position: absolute; left: 12px; top: 12px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.9); padding: 5px 10px; border-radius: 999px; }
.viz-tools { display: flex; flex-direction: column; gap: 12px; }
.viz-tools .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.viz-tools .swatches button { width: 44px; height: 44px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.viz-tools .swatches button[aria-pressed="true"] { border-color: var(--ink); transform: scale(1.08); }
.viz-tools .brush { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.viz-tools .brush input { flex: 1; accent-color: var(--ink); }
.viz-tools .seg { display: flex; gap: 6px; }
.viz-tools .seg .btn { flex: 1; padding: 10px 8px; font-size: .7rem; box-shadow: none; }
.viz-help { font-size: .85rem; color: var(--muted); }
.viz-empty { text-align: center; padding: 30px 16px; color: var(--muted); }

/* ── footer ──────────────────────────────────────────────────────────────── */
.foot { text-align: center; padding: 26px var(--gutter) 40px; color: var(--muted); font-size: .8rem; }
.foot .brandline { letter-spacing: .12em; text-transform: uppercase; font-size: .68rem; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow-lg); z-index: 60; animation: rise .3s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
