:root {
  --ink: #161616;
  --paper: #f5f1e8;
  --card: #fffdf8;
  --accent: #ff5c35;
  --lime: #d7ff64;
  --muted: #6d6b66;
  --line: #d8d2c7;
  --shirt: #171717;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, textarea, select, input { font: inherit; }
button { cursor: pointer; }

.site-header { max-width: 1240px; margin: auto; padding: 24px 28px; display: flex; justify-content: space-between; align-items: center; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk"; font-weight: 700; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: var(--lime); font-size: 13px; transform: rotate(-4deg); }
.header-note { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px #2bb67322; }

main { max-width: 1240px; margin: 0 auto; padding: 34px 28px 72px; }
.hero-copy { max-width: 830px; margin-bottom: 40px; }
.eyebrow { margin: 0 0 12px; font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--accent); }
h1 { margin: 0; font-family: "Space Grotesk"; font-size: clamp(48px, 7vw, 88px); line-height: .95; letter-spacing: -.055em; }
h1 span { color: var(--accent); }
.hero-copy > p:last-child { max-width: 610px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.maker-shell { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); background: var(--card); border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 70px #3f382817; }
.controls-panel, .preview-panel { padding: clamp(28px, 4vw, 48px); }
.controls-panel { border-right: 1px solid var(--line); }
.step-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 30px; }
.step-heading > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font-weight: 700; font-size: 13px; }
.step-heading p, .step-heading h2 { margin: 0; }
.step-heading p { color: var(--muted); font-size: 13px; }
.step-heading h2 { font-family: "Space Grotesk"; margin-top: 2px; font-size: 23px; }
label, legend { font-weight: 700; font-size: 13px; }
textarea { width: 100%; min-height: 142px; margin-top: 9px; padding: 16px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; background: white; outline: none; line-height: 1.45; }
input[type="email"] { width: 100%; margin: 9px 0 20px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; outline: none; }
textarea:focus, select:focus, input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #ff5c3518; }
.prompt-meta { display: flex; justify-content: space-between; gap: 20px; margin: 8px 0 24px; color: var(--muted); font-size: 11px; }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.style-grid { margin-top: 9px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.style-option { border: 1px solid var(--line); border-radius: 10px; background: white; padding: 10px 7px; font-size: 12px; }
.style-option.selected { border-color: var(--ink); background: var(--ink); color: white; }
.product-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.product-options label { display: grid; gap: 8px; }
select { width: 100%; appearance: none; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 12px 36px 12px 12px; }
.rights-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--muted); line-height: 1.35; }
.rights-check input { margin-top: 3px; accent-color: var(--accent); }
.primary-button, .continue-button { width: 100%; border: 0; border-radius: 12px; font-weight: 700; }
.primary-button { margin-top: 22px; padding: 15px 18px; background: var(--accent); color: white; display: flex; justify-content: space-between; }
.primary-button:hover { background: #e84b27; }
.primary-button:disabled { cursor: wait; opacity: .65; }
.form-status { margin: 10px 0 0; min-height: 18px; color: var(--muted); font-size: 12px; }

.preview-panel { background: #eee8dc; display: flex; flex-direction: column; }
.preview-topline { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.price { font-size: 18px; letter-spacing: 0; font-family: "Space Grotesk"; }
.shirt-stage { position: relative; min-height: 410px; display: grid; place-items: center; }
.shirt { width: min(100%, 440px); filter: drop-shadow(0 22px 18px #3c342a2c); }
#shirt-body { fill: var(--shirt); }
.shirt-seam { fill: none; stroke: #ffffff1f; stroke-width: 5; }
.empty-preview { position: absolute; top: 38%; text-align: center; color: white; opacity: .75; }
.empty-preview p { margin: 6px 0 1px; font-weight: 700; }
.empty-preview span { font-size: 11px; opacity: .65; }
.spark { color: var(--lime); font-size: 30px; }
.selected-art { position: absolute; top: 34%; left: 50%; transform: translate(-50%, -50%); width: 30%; height: 30%; object-fit: contain; filter: drop-shadow(0 2px 1px #0003); }
.design-results { border-top: 1px solid #cfc6b8; padding-top: 18px; }
.results-heading { display: flex; align-items: baseline; justify-content: space-between; }
.results-heading h3 { margin: 0; font-family: "Space Grotesk"; }
.results-heading span { color: var(--muted); font-size: 11px; }
.design-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 13px 0; }
.design-card { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 12px; background: white; padding: 5px; overflow: hidden; }
.design-card img { width: 100%; height: 100%; object-fit: contain; }
.design-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px #ff5c3522; }
.design-card.selected::after { content: "✓"; position: absolute; top: 7px; right: 7px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: white; font-size: 12px; }
.continue-button { padding: 13px; background: var(--ink); color: white; }
.continue-button:disabled { opacity: .35; cursor: not-allowed; }
.trust-row { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
footer { max-width: 1240px; margin: auto; padding: 0 28px 35px; display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.completion-card { max-width: 680px; margin: 12vh auto; padding: 48px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 24px 70px #3f382817; text-align: center; }
.completion-card h1 { font-size: clamp(38px, 7vw, 64px); }
.completion-card p { color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .maker-shell { grid-template-columns: 1fr; }
  .controls-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .shirt-stage { min-height: 360px; }
}

@media (max-width: 560px) {
  .site-header { padding: 18px; }
  .header-note { display: none; }
  main { padding: 24px 14px 50px; }
  .hero-copy { margin-bottom: 26px; }
  h1 { font-size: 49px; }
  .controls-panel, .preview-panel { padding: 24px 18px; }
  .style-grid { grid-template-columns: 1fr 1fr; }
  .shirt-stage { min-height: 300px; }
  .trust-row { gap: 8px; flex-wrap: wrap; }
  footer { padding: 0 18px 24px; gap: 16px; }
}
