:root {
  --bg: #0d0d0f;
  --surface: #17171b;
  --surface-2: #202026;
  --line: #2e2e36;
  --text: #f4f2ee;
  --muted: #a9a6a0;
  --red: #d42a35;
  --red-dark: #a91d27;
  --blue: #2b4fb3;
  --gold: #f2c94c;
  --radius: 14px;
  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 18px; }
.brand img { width: 44px; height: 44px; }
.site-nav { display: flex; gap: clamp(16px, 2.5vw, 32px); margin-left: auto; margin-right: clamp(16px, 2.5vw, 32px); }
.site-nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--red); color: #fff;
  font: 800 15px var(--font); letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.button:hover { background: var(--red-dark); }
.button:active { transform: translateY(1px); }
.button:focus-visible, .text-link:focus-visible, input:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.button[disabled] { opacity: 0.5; cursor: not-allowed; }
.button-small { min-height: 38px; padding: 0 16px; font-size: 14px; }
.button-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.button-ghost:hover { background: var(--surface-2); }
.button-ghost.danger { color: #ff8a8f; }
.button-wide { width: 100%; }
.text-link { background: none; border: 0; padding: 0; color: var(--text); font: 700 15px var(--font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(40px, 7vw, 96px) clamp(16px, 4vw, 48px);
  max-width: 1240px; margin: 0 auto;
}
.eyebrow { color: var(--gold); font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 900; letter-spacing: -0.02em; }
.lede { color: var(--muted); font-size: clamp(17px, 1.6vw, 19px); max-width: 34em; margin: 20px 0 28px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-posters { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hero-posters img { border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.hero-posters img:first-child { transform: rotate(-3deg) translateY(10px); }
.hero-posters img:last-child { transform: rotate(3deg) translateY(-10px); }

.how { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.steps {
  list-style: none; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px);
  max-width: 1240px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.steps span, .panel h2 span {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 900; font-size: 15px;
}
.steps h3 { font-size: 18px; margin: 12px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

.builder {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 460px); gap: clamp(20px, 3vw, 40px);
  max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 48px);
  align-items: start;
}
.preview-col { position: sticky; top: 84px; }
.preview-frame {
  position: relative; margin: 0 auto; max-width: 620px;
  background: #050506; border-radius: 8px; padding: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
#preview { width: 100%; height: auto; display: block; cursor: pointer; touch-action: manipulation; border-radius: 3px; }
.preview-frame.dragging #preview { cursor: grabbing; }
.drop-hint {
  position: absolute; inset: 10px; display: none; place-items: center;
  background: rgba(212, 42, 53, 0.82); color: #fff; font-weight: 900; font-size: 22px; border-radius: 3px;
}
.preview-frame.drop-active .drop-hint { display: grid; }
.preview-note { color: var(--muted); font-size: 14px; text-align: center; max-width: 560px; margin: 14px auto 0; }

.controls-col { display: grid; gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; margin-bottom: 16px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; }
fieldset:last-child { margin-bottom: 0; }
legend { font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice, .choice-list label {
  position: relative; display: block; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer;
}
.choice input, .choice-list input, .segmented input, .swatches input { position: absolute; opacity: 0; pointer-events: none; }
.choice:has(input:checked), .choice-list label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--red); background: #2a1719; }
.choice:has(input:focus-visible), .choice-list label:has(input:focus-visible), .segmented label:has(input:focus-visible), .swatches label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice strong, .choice-list strong { display: block; font-size: 16px; }
.choice small, .choice-list small { color: var(--muted); font-size: 13px; }
.choice small { display: block; }
.choice-price { display: block; margin-top: 6px; font-weight: 800; font-size: 14px; }
.choice-list { display: grid; gap: 10px; margin-bottom: 14px; }
.choice-list .price { float: right; font-weight: 800; }

.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.segmented label { position: relative; padding: 8px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; font-size: 15px; }
.segmented label:has(input:checked) { background: var(--red); }

.swatches { display: flex; gap: 12px; flex-wrap: wrap; }
.swatches label { position: relative; display: grid; justify-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.swatches i { width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25); }
.swatches label:has(input:checked) i { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }
.swatches label:has(input:checked) { color: var(--text); }

.photo-actions, .logo-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.status { font-weight: 700; margin: 12px 0 4px; }
.hint, .fine { color: var(--muted); font-size: 13.5px; margin: 6px 0 0; }
.fine { margin-top: 12px; }

.info-form { display: grid; gap: 12px; margin-bottom: 14px; }
.info-form label { display: grid; gap: 5px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
input[type="text"], .info-form input {
  width: 100%; min-height: 44px; padding: 0 12px;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  font: 600 16px var(--font);
}
.info-form input::placeholder { color: #5f5d59; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; color: var(--muted); margin: 0 0 12px; }
.qty-row[hidden] { display: none; }
select { min-height: 40px; padding: 0 10px; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; font: 700 15px var(--font); }
.panel h2 small { font-size: 15px; color: var(--muted); font-weight: 700; }
.cart-items { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.cart-items li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 12px; align-items: start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.cart-items img { width: 56px; border-radius: 3px; grid-row: span 2; }
.cart-items strong { display: block; font-size: 15px; }
.cart-items small { color: var(--muted); font-size: 13px; }
.cart-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cart-controls select { min-height: 34px; font-size: 14px; }
.cart-price { font-weight: 800; margin-left: auto; }
.cart-totals { display: grid; gap: 4px; margin-bottom: 14px; font-size: 15px; }
.cart-totals div { display: flex; justify-content: space-between; color: var(--muted); }
.cart-totals div:last-child { color: var(--text); font-weight: 800; font-size: 17px; }
#newPoster { margin-top: 4px; }
.order-items { list-style: none; padding: 0; margin: 0 0 8px; font-weight: 700; }
.order-items li { margin: 4px 0; }
.downloads { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); flex: none; }
.missing { list-style: none; padding: 0; margin: 0 0 12px; color: var(--gold); font-size: 14px; font-weight: 600; }
.missing li::before { content: "• "; }

.faq { max-width: 820px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 48px) 64px; }
.faq h2 { font-size: 28px; margin-bottom: 16px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 40px clamp(16px, 4vw, 48px) 28px; color: var(--muted); font-size: 14px; }
.footer-grid { max-width: 1240px; margin: 0 auto 28px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.footer-grid h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: var(--text); text-decoration: none; margin: 0 0 8px; font-weight: 600; }
.footer-grid a:not(.brand):hover { text-decoration: underline; }
.footer-grid p { margin: 12px 0 0; }
.footer-fine { max-width: 1240px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 18px; }
.footer-fine p { margin: 4px 0; font-size: 13px; }

/* ---------- Marketing pages ---------- */
.section { max-width: 1240px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(16px, 4vw, 48px); }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; }
.page-title { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -0.02em; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); aspect-ratio: 11 / 16; object-fit: cover; width: 100%; }
.gallery figcaption { color: var(--muted); font-size: 14px; font-weight: 700; margin-top: 10px; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.section-alt .card { background: var(--bg); }
.cards-2 { grid-template-columns: repeat(2, 1fr); max-width: 820px; }
.card h3 { font-size: 22px; font-weight: 900; }
.card p { margin: 0; color: var(--muted); }
.card .button { margin-top: auto; align-self: flex-start; }
.card-badge { width: 120px; height: 120px; margin: -6px 0 4px -8px; }
.kicker { color: var(--gold); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; }

.price-card.featured { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.card .price { font-size: 44px; font-weight: 900; line-height: 1; margin: 6px 0 2px; color: var(--text); }
.price small { font-size: 15px; font-weight: 700; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 6px 0 14px; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; color: var(--text); font-size: 15px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 900; }
.note { color: var(--muted); font-size: 15px; margin: 22px 0 0; text-align: center; }

.price-strip { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 24px 0 0; padding: 0; list-style: none; font-weight: 700; }
.price-strip span { color: var(--gold); }

.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 900; margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }

.page-head { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px) 0; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -0.02em; }
.page-head p { color: var(--muted); font-size: 17px; margin: 12px 0 0; max-width: 40em; }
.page-head + .builder { padding-top: 28px; }

.hero-badge { justify-self: center; width: min(420px, 80%); height: auto; aspect-ratio: 1; filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.5)); }

.prose { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px) 72px; }
.prose h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 900; margin-bottom: 8px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 34px 0 10px; }
.prose p, .prose li { color: #d4d1cb; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--gold); }
.updated { color: var(--muted); font-size: 14px; margin: 0 0 24px; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; font: 600 16px var(--font);
}
.contact-form textarea { min-height: 160px; resize: vertical; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.hidden-field { position: absolute; left: -9999px; }
.contact-card a { color: var(--text); font-weight: 800; font-size: 18px; }

.crop-dialog {
  width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
}
.crop-dialog::backdrop { background: rgba(0, 0, 0, 0.75); }
.crop-inner { display: grid; gap: 14px; padding: 20px; }
.crop-inner h2 { font-size: 18px; }
.crop-stage { background: #000; border-radius: 8px; overflow: hidden; }
#cropCanvas { width: 100%; height: auto; display: block; cursor: grab; touch-action: none; }
#cropCanvas:active { cursor: grabbing; }
.zoom-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; font-weight: 700; font-size: 14px; }
.zoom-row input { accent-color: var(--red); }
.crop-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crop-buttons .button { min-height: 40px; font-size: 14px; }

.busy { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, 0.78); }
.busy[hidden] { display: none; }
.busy-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; text-align: center; max-width: 320px; }
.busy-card p { margin: 14px 0 0; font-weight: 700; }
.spinner { width: 42px; height: 42px; margin: 0 auto; border: 4px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.result { max-width: 640px; margin: 0 auto; padding: clamp(40px, 8vw, 96px) clamp(16px, 4vw, 48px); text-align: center; }
.result h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; margin-bottom: 14px; }
.result p { color: var(--muted); }
.result .button { margin-top: 18px; }
.result img.thumb { width: min(320px, 70%); margin: 24px auto 0; border-radius: 6px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-posters { max-width: 520px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .builder { grid-template-columns: 1fr; }
  .preview-col { position: static; }
  .site-nav { display: none; }
  .site-header .button-small { margin-left: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr; max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .two-up { grid-template-columns: 1fr; }
  .brand span { font-size: 16px; }
  .brand img { width: 38px; height: 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .segmented label { padding: 8px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation-duration: 3s; }
}
