@font-face {
  font-family: Anton;
  src: url("/fonts/anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe4;
  --cream: #fffdf8;
  --ink: #1c1915;
  --muted: #5e584e;
  --red: #e10600;
  --gold: #ffc400;
  --line: #1c1915;
  --shadow: 0 10px 30px rgba(28, 25, 21, 0.08);
  --display: Anton, Impact, "Arial Black", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { flex: 1; width: 100%; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--gold); padding: 8px 12px; z-index: 30;
}
.skip:focus { top: 12px; }

h1, h2, h3, h4, .brand, .btn, .kicker, .stepper li, .price, .look b, .bg b, .product b {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

:root { --header-h: 68px; }
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 25, 21, 0.08);
}
.brand { text-decoration: none; font-size: 22px; line-height: 1; }
.brand b { color: var(--red); }
.ribbon {
  margin: 0; padding: 8px 16px; text-align: center; background: var(--ink); color: var(--gold); font-size: 14px;
}
.ribbon.paid { background: #146c36; color: #fff; }

.intro, .gallery, .how, .samples, .faq, .privacy, .studio { padding: 28px 16px; }
#how, #faq, #privacy, #dictators, #studio, .step { scroll-margin-top: calc(var(--header-h) + 64px); }
.intro { padding-top: 36px; max-width: 760px; }
.kicker {
  display: inline-block; margin: 0 0 10px; padding: 4px 10px;
  background: var(--gold); color: var(--ink); transform: rotate(-2deg); font-size: 14px;
}
h1 { font-size: clamp(46px, 12vw, 84px); line-height: 0.9; margin: 0 0 14px; }
h1 span { color: var(--red); }
.lede { font-size: 18px; max-width: 38rem; margin: 0 0 18px; color: var(--muted); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; }
.trust li { border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 650; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 16px; border: 2px solid var(--ink);
  background: var(--cream); text-decoration: none; cursor: pointer; font-size: 18px;
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-red { background: var(--red); color: #fff; }
.btn-gold { background: var(--gold); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn.big { font-size: 22px; padding: 14px 18px; }
.btn.small { min-height: 42px; font-size: 15px; box-shadow: none; }
.btn.wide { width: 100%; margin-top: 14px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn-small { min-height: 40px; font-size: 16px; padding: 6px 12px; }

h2 { font-size: clamp(32px, 8vw, 48px); line-height: 0.95; margin: 0 0 14px; }
h2 small, .hint, .fine { font-family: system-ui, sans-serif; text-transform: none; letter-spacing: 0; font-weight: 500; }
h2 small { display: block; margin-top: 6px; font-size: 16px; color: var(--muted); }
.hint { margin: 0 0 14px; color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; }
.center { text-align: center; }
.cap { text-align: center; font-weight: 700; margin: 8px 0; }
.err { color: var(--red); font-weight: 700; }
.ok { color: #146c36; font-weight: 700; }

.gallery, .how, .faq, .privacy, .samples { max-width: 1100px; margin: 0 auto; }
.looks, .bgs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.look, .bg {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--cream); border: 2px solid var(--ink); box-shadow: var(--shadow); overflow: hidden;
}
.look-pic { position: relative; display: block; }
.look img, .bg img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; object-position: center 20%; background: #ddd; }
.badge {
  position: absolute; left: 8px; top: 8px; background: var(--gold); color: var(--ink);
  font: 12px/1 system-ui, sans-serif; font-style: normal; font-weight: 700;
  padding: 4px 6px; text-transform: uppercase;
}
.look b, .bg b { padding: 8px 8px 0; font-size: 18px; line-height: 1.05; color: var(--red); }
.look i { padding: 2px 8px 0; font-size: 13px; }
.look small, .bg small { padding: 2px 8px 10px; color: var(--muted); font-size: 13px; }
.look.on, .bg.on, .product.on { outline: 3px solid var(--red); outline-offset: -5px; box-shadow: 0 8px 0 var(--gold); }
.bg img { aspect-ratio: 3/4; }
.bg.match:not(.on) { outline: 3px solid var(--gold); outline-offset: -5px; }
.bg-head { grid-column: 1 / -1; margin: 14px 0 0; font-size: 22px; }
.bgs { grid-template-columns: 1fr 1fr; }

.how ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.how li {
  display: flex; align-items: center; gap: 12px; background: var(--cream);
  border: 2px solid var(--ink); padding: 10px 12px; font-weight: 700;
}
.how b {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ink); color: var(--gold); font-family: var(--display); font-size: 18px;
}
.sample-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.sample-row img { width: 140px; height: 175px; object-fit: cover; border: 2px solid var(--ink); flex: none; }

details { background: var(--cream); border: 2px solid var(--ink); padding: 12px 14px; margin: 0 0 8px; }
summary { font-weight: 750; cursor: pointer; }
.privacy { max-width: 720px; }
.foot {
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  text-align: center; color: var(--muted); background: #ebe4d4;
}
.foot p { margin: 6px 0; }
.foot a { font-weight: 700; }

.studio { max-width: 980px; margin: 0 auto; padding-top: 12px; }
.stepper { position: sticky; top: var(--header-h); z-index: 30; background: var(--paper); margin: 0 -16px 14px; padding: 8px 16px; overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; }
.stepper ol { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; min-width: max-content; }
.stepper li { color: #8a847a; border: 1.5px solid #d9d0c0; padding: 4px 8px; font-size: 14px; }
.stepper li.done { color: var(--ink); border-color: var(--ink); }
.stepper li.now { background: var(--gold); color: var(--ink); border-color: var(--ink); }
.step { background: var(--cream); border: 2px solid var(--ink); padding: 16px; box-shadow: var(--shadow); }
.step h3 { font-size: clamp(28px, 7vw, 40px); margin: 0 0 8px; line-height: 1; }
.chip { display: inline-block; background: var(--gold); color: var(--ink); padding: 2px 8px; margin-right: 6px; font-weight: 750; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.actions .btn { flex: 1 1 140px; }

.switch {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 64px; padding: 10px 12px; border: 2px solid var(--ink);
  background: var(--cream); cursor: pointer; font-family: var(--display); font-size: 22px; text-transform: uppercase;
}
.switch-ui { width: 64px; height: 36px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; position: relative; flex: none; }
.switch-ui::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink);
  transition: transform 0.15s ease;
}
.switch[aria-pressed="true"] { background: var(--gold); }
.switch[aria-pressed="true"] .switch-ui::after { transform: translateX(28px); background: var(--red); }

.drop {
  display: grid; place-items: center; min-height: 220px; text-align: center;
  border: 2px dashed var(--ink); background: repeating-linear-gradient(45deg, #fffdf8 0 12px, #f6f0e2 12px 24px);
}
.drop img { max-height: 320px; width: auto; margin: 12px auto; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photo-actions .btn { flex: 1; min-width: 140px; }
#photo, #photo-camera {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.drop-empty { display: grid; gap: 4px; padding: 20px; }
.drop-empty b { font-family: var(--display); text-transform: uppercase; font-size: 22px; }
.status { margin: 10px 0 0; padding: 8px 10px; border: 2px solid var(--ink); background: #fff; font-weight: 700; }
.status[data-kind="ok"] { background: #e7f6ea; }
.status[data-kind="busy"]::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px;
  border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; font-weight: 700; padding: 8px 0; cursor: pointer; }
.check input { width: 28px; height: 28px; margin-top: 0; flex: none; accent-color: var(--red); }
.field-err { color: var(--red); font-weight: 700; font-size: 13px; }
.look.skel { min-height: 280px; background: linear-gradient(90deg, #efe8dc, #f7f3ea, #efe8dc); background-size: 200% 100%; }
#stache-look { width: min(240px, 70%); margin: 0 auto 12px; border: 2px solid var(--ink); background: #ddd; }
.demo-note { background: var(--gold); color: var(--ink); font-weight: 750; padding: 8px 10px; margin: 8px 0; }
.privacy-line { font-size: 14px; color: var(--muted); }

.painting, .paint-err, .titlebox, .summary, .receipt, .waitlist {
  border: 2px solid var(--ink); background: #fff; padding: 14px; margin-top: 8px;
}
.painting { text-align: center; box-shadow: 6px 6px 0 var(--gold); }
.paint-pics { display: flex; justify-content: center; align-items: center; gap: 10px; }
.paint-pics img { width: 84px; height: 108px; object-fit: cover; border: 2px solid var(--ink); background: #eee; }
.paint-pics span, .paint-title { font-family: var(--display); text-transform: uppercase; }
.paint-title { font-size: 22px; margin: 8px 0; }
.track { height: 14px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; max-width: 360px; margin: 0 auto 8px; background: #fff; }
.track span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(45deg, var(--red) 0 10px, var(--gold) 10px 20px); }
.paint-err { background: #fff4f2; }
.result-tools { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.sample-wrap { max-width: min(420px, 100%); margin: 0 auto; }
#sample, #mockup { width: 100%; height: auto; max-width: 100%; background: #eee; }
#mockup { max-height: none; margin: 0 auto; display: block; }
.mock-col { text-align: center; }
.titlebox { display: grid; gap: 10px; }
.titlebox h4 { margin: 0; font-size: 20px; }
.titlebox label, .form label { display: grid; gap: 4px; font-weight: 700; }
.titles { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.titles legend { font-weight: 700; margin-bottom: 4px; }
.titles label { display: block; }
.titles input { position: absolute; opacity: 0; }
.titles span { display: flex; min-height: 44px; align-items: center; padding: 8px 10px; border: 2px solid var(--ink); background: #fff; cursor: pointer; }
.titles input:checked + span { background: var(--ink); color: var(--gold); }
.titles em { font-style: normal; margin-left: 0.3em; }

input[type="text"], input[type="email"], input:not([type]), select, textarea {
  width: 100%; padding: 12px; border: 2px solid var(--ink); background: #fff; border-radius: 0;
}
.form { display: grid; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 88px 110px; gap: 8px; }
.count { font-weight: 500; color: var(--muted); font-size: 13px; justify-self: end; }

.product-layout { display: grid; gap: 14px; }
.products { display: grid; gap: 8px; }
.product {
  display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left;
  width: 100%; padding: 12px; border: 2px solid var(--ink); background: #fff; cursor: pointer;
}
.product b { font-size: 20px; display: block; }
.product small { color: var(--muted); }
.price { font-size: 22px; color: var(--red); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip {
  border: 2px solid var(--ink); background: #fff; padding: 6px 10px; cursor: pointer; font-weight: 750;
}
.chip.on { background: var(--gold); }
.summary .thumb { width: min(220px, 70%); margin: 0 auto 12px; border: 2px solid var(--ink); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; }
.summary dt { font-weight: 750; }
.summary dd { margin: 0; }
.total { display: flex; justify-content: space-between; border-top: 2px dashed var(--ink); margin: 12px 0 0; padding-top: 8px; font-family: var(--display); font-size: 22px; text-transform: uppercase; }
.waitlist { background: var(--ink); color: #fff; }
.waitlist h4 { margin: 0 0 4px; color: var(--gold); font-size: 22px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.receipt { background: #e7f6ea; }

@media (min-width: 1000px) {
  #home { display: block; max-width: 1180px; margin: 0 auto; }
  .home-top {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    align-items: start;
    column-gap: 16px;
  }
  .intro { position: sticky; top: var(--header-h); padding-top: 28px; align-self: start; max-width: none; }
  .gallery { max-width: none; padding-top: 24px; }
  .how, .samples, .faq, .privacy { max-width: 1180px; }
  h1 { font-size: 64px; }
}
@media (min-width: 720px) {
  .looks { grid-template-columns: repeat(3, 1fr); }
  .bgs { grid-template-columns: repeat(4, 1fr); }
  .how ol { grid-template-columns: repeat(3, 1fr); }
  .poster-layout, .product-layout { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
  .mock-col, .titlebox { position: sticky; top: calc(var(--header-h) + 52px); z-index: 1; }
  .products { position: relative; z-index: 2; }
  .intro { padding-left: 28px; }
}
@media (min-width: 1020px) {
  .looks { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .switch-ui::after, .status[data-kind="busy"]::before { transition: none; animation: none; }
}
