:root {
  --ink: #19201d;
  --muted: #6e7771;
  --paper: #f6f5f0;
  --warm: #e8e4da;
  --accent: #d6f04b;
  --line: #d6d8d0;
  --white: #fff;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.site-header { display: flex; align-items: center; justify-content: space-between; max-width: 1420px; margin: auto; padding: 24px 5vw; }
.brand, .brand-footer { display: flex; align-items: center; gap: 10px; font-family: "Space Grotesk", sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -.06em; }
.brand-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 17px; letter-spacing: -.1em; }
.brand-dot { color: #e35938; }
.top-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 600; }
.top-nav a:not(.nav-cta) { color: var(--muted); }
.top-nav a:hover { color: var(--ink); }
.nav-cta { padding: 12px 17px; border: 1px solid var(--ink); border-radius: 2px; }
.nav-cta span { margin-left: 10px; color: #e35938; font-size: 17px; }

.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .76fr); align-items: end; max-width: 1420px; min-height: min(62vh, 650px); margin: auto; padding: 90px 8vw 94px; overflow: hidden; }
.hero::after { position: absolute; z-index: -1; right: -5%; bottom: -27%; width: 57vw; height: 57vw; max-width: 780px; max-height: 780px; border: 1px solid #deded5; border-radius: 50%; content: ""; }
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 23px; color: #e35938; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 27px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
h1 { margin: 0; font-size: clamp(66px, 9vw, 148px); font-weight: 600; letter-spacing: -.09em; line-height: .82; }
h1 em, h2 em { color: #7e8f31; font-style: normal; }
.hero-description { max-width: 315px; margin: 32px 0 23px 7px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.text-link { display: inline-flex; gap: 25px; align-items: center; margin-left: 7px; border-bottom: 1px solid var(--ink); padding-bottom: 7px; font-size: 12px; font-weight: 700; }
.text-link span { color: #e35938; font-size: 19px; }
.hero-note { display: flex; align-items: center; gap: 18px; align-self: center; justify-self: end; margin-right: 3vw; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; }
.hero-note span:first-child { color: #e35938; font-weight: 700; }

.designer-section { background: var(--warm); padding: 92px 8vw 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; max-width: 1240px; margin: auto auto 48px; }
.section-heading .eyebrow { margin-bottom: 17px; }
h2 { margin: 0; font-size: clamp(45px, 6vw, 88px); letter-spacing: -.08em; line-height: .85; }
.heading-side { max-width: 235px; margin: 0 6% 4px 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.designer-layout { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); max-width: 1240px; margin: auto; }
.control-panel { padding-top: 6px; }
.panel-step { display: flex; justify-content: space-between; border-top: 1px solid #b8bcb2; padding-top: 11px; color: #899087; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.panel-step span:first-child { color: #e35938; font-weight: 700; }
.control-panel h3 { margin: 30px 0 9px; font-size: 23px; letter-spacing: -.05em; }
.panel-help { margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.upload-zone { display: flex; min-height: 105px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1px dashed #9ea49a; border-radius: 2px; background: rgba(255,255,255,.28); text-align: center; transition: border-color .2s, background .2s; }
.upload-zone:hover, .upload-zone.is-over { border-color: var(--ink); background: rgba(255,255,255,.62); }
.upload-icon { color: #e35938; font-family: "Space Grotesk"; font-size: 26px; line-height: 20px; }
.upload-label { font-size: 12px; font-weight: 700; }
.upload-meta { color: #8a9289; font-size: 10px; }
.file-status { min-height: 16px; margin: 9px 0 28px; color: #768075; font-size: 10px; }
.file-status.has-file { color: #5d7226; }
.panel-divider { height: 1px; margin: 0 0 20px; background: #b8bcb2; }
.position-controls { display: grid; width: 114px; grid-template-columns: 1fr; margin: 20px auto 22px; gap: 5px; }
.position-row { display: flex; justify-content: space-between; gap: 5px; }
.icon-button, .small-button { display: grid; width: 34px; height: 30px; place-items: center; border: 1px solid #b5baaf; border-radius: 2px; background: transparent; color: var(--ink); font-size: 18px; line-height: 1; transition: background .15s, color .15s, transform .15s; }
.icon-button:hover, .small-button:hover { background: var(--ink); color: var(--accent); transform: translateY(-1px); }
.position-controls > .icon-button { justify-self: center; }
.scale-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #b8bcb2; padding-bottom: 15px; color: var(--muted); font-size: 11px; text-transform: uppercase; }
.scale-controls { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 11px; font-weight: 700; }
.small-button { width: 25px; height: 25px; font-size: 16px; }
.reset-button { width: 100%; margin-top: 20px; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
.review-button { width: 100%; margin-top: 27px; border: 0; border-radius: 2px; padding: 15px 14px; background: var(--ink); color: var(--accent); font-size: 11px; font-weight: 700; text-align: left; transition: background .2s, transform .2s; }
.review-button span, .submit-review span { float: right; color: #e35938; font-size: 17px; line-height: 11px; }
.review-button:hover, .submit-review:hover { background: #334039; transform: translateY(-2px); }

.preview-column { min-width: 0; }
.preview-topline, .preview-bottomline { display: flex; align-items: center; justify-content: space-between; color: #788078; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.preview-topline { border-top: 1px solid #b8bcb2; padding-top: 12px; }
.preview-live { display: flex; align-items: center; gap: 7px; color: #718327; }
.preview-live i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #a9c536; }
.shirt-stage { position: relative; display: grid; width: 100%; max-height: 730px; min-height: min(68vw, 700px); place-items: center; overflow: hidden; }
.shirt-svg { width: min(100%, 650px); height: auto; overflow: visible; }
.shirt-fill { fill: url(#shirtShade); }
.shirt-outline, .neckline, .neckline-inner, .seam { fill: none; stroke: #202522; stroke-linecap: round; stroke-linejoin: round; }
.shirt-outline { stroke-width: 5; }
.neckline { stroke-width: 5; }
.neckline-inner { stroke-width: 3; opacity: .75; }
.seam { stroke-width: 2; opacity: .35; }
.print-boundary { fill: none; stroke: #afb6aa; stroke-dasharray: 4 7; stroke-width: 1; opacity: .65; }
.print-frame { pointer-events: none; }
#design-image { cursor: grab; pointer-events: auto; transform-box: fill-box; transform-origin: center; }
#design-image:active { cursor: grabbing; }
.empty-design { opacity: .18; fill: none; stroke: #6b746b; stroke-width: 3; stroke-dasharray: 6 8; }
.empty-design path { stroke-linecap: round; stroke-linejoin: round; }
.empty-design circle { fill: #6b746b; stroke: none; }
.stage-label { position: absolute; top: 29px; left: 0; color: #9aa098; font-size: 10px; letter-spacing: .12em; writing-mode: vertical-rl; }
.drag-hint { position: absolute; bottom: 25px; left: 50%; padding: 8px 13px; border: 1px solid #c2c7bd; border-radius: 20px; color: #747d73; font-size: 10px; opacity: 1; transform: translateX(-50%); transition: opacity .3s; }
.drag-hint.hidden { opacity: 0; }
.preview-bottomline { border-bottom: 1px solid #b8bcb2; padding: 12px 0; }

.feature-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7vw; max-width: 1240px; margin: auto; padding: 100px 8vw; }
.feature-strip article { border-top: 1px solid #b8bcb2; padding-top: 14px; }
.feature-number { color: #e35938; font-size: 11px; font-weight: 700; }
.feature-strip h3 { margin: 43px 0 10px; font-size: 22px; letter-spacing: -.05em; }
.feature-strip p { max-width: 200px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.site-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 24px 5vw; color: var(--muted); font-size: 11px; }
.brand-footer { color: var(--ink); font-size: 16px; }
.modal-backdrop { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(25,32,29,.56); backdrop-filter: blur(5px); }
.modal-backdrop[hidden] { display: none; }
.review-modal { position: relative; width: min(100%, 510px); max-height: 92vh; overflow-y: auto; border: 1px solid #c9c9bf; background: var(--paper); padding: 42px clamp(24px, 6vw, 55px) 38px; box-shadow: 0 24px 70px rgba(25,32,29,.24); }
.modal-close { position: absolute; top: 17px; right: 19px; width: 29px; height: 29px; border: 1px solid #b8bcb2; border-radius: 50%; background: transparent; color: var(--ink); font-size: 21px; line-height: 20px; }
.modal-close:hover { background: var(--ink); color: var(--accent); }
.review-modal h2 { font-size: clamp(39px, 6vw, 59px); }
.modal-intro { max-width: 370px; margin: 22px 0 25px; color: var(--muted); font-size: 13px; line-height: 1.55; }
#review-form { display: grid; gap: 16px; }
#review-form label:not(.consent) { display: grid; gap: 7px; color: var(--ink); font-size: 11px; font-weight: 700; }
#review-form label span { color: var(--muted); font-weight: 400; }
#review-form input[type="text"], #review-form input[type="email"], #review-form input[type="tel"], #review-form textarea { width: 100%; border: 1px solid #c4c9bf; border-radius: 2px; outline: none; background: rgba(255,255,255,.55); padding: 12px; color: var(--ink); font-size: 13px; resize: vertical; }
#review-form input:focus, #review-form textarea:focus { border-color: #74862d; box-shadow: 0 0 0 2px rgba(214,240,75,.35); }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
.consent input { accent-color: var(--ink); margin-top: 2px; }
.submit-review { border: 0; border-radius: 2px; padding: 15px; background: var(--ink); color: var(--accent); font-size: 12px; font-weight: 700; text-align: left; transition: background .2s, transform .2s; }
.form-status { min-height: 16px; margin: -3px 0 0; color: #718327; font-size: 11px; line-height: 1.4; }
.form-status.error { color: #b34831; }

@media (max-width: 760px) {
  .site-header { padding: 20px 6vw; }
  .top-nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 10px 12px; font-size: 11px; }
  .hero { min-height: 550px; grid-template-columns: 1fr; padding: 73px 10vw 80px; }
  .hero::after { right: -38%; bottom: -9%; width: 115vw; height: 115vw; }
  .hero-note { position: absolute; right: 8vw; bottom: 35px; margin: 0; }
  h1 { font-size: clamp(61px, 18vw, 110px); }
  .designer-section { padding: 68px 7vw 80px; }
  .section-heading { display: block; margin-bottom: 36px; }
  .heading-side { margin: 25px 0 0; }
  .designer-layout { display: flex; flex-direction: column-reverse; gap: 28px; }
  .shirt-stage { min-height: 103vw; }
  .stage-label { top: 15px; }
  .drag-hint { bottom: 10px; white-space: nowrap; }
  .control-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
  .control-panel .panel-step:first-child, .control-panel h3, .control-panel .panel-help, .control-panel .upload-zone, .control-panel .file-status, .control-panel .panel-divider, .control-panel .panel-step:nth-of-type(2), .control-panel .reset-button, .control-panel .review-button { grid-column: 1 / -1; }
  .position-controls { margin: 20px 0 0; }
  .scale-row { align-self: end; margin-bottom: 22px; }
  .feature-strip { grid-template-columns: 1fr; gap: 35px; padding: 75px 8vw; }
  .feature-strip h3 { margin-top: 25px; }
  .site-footer { flex-wrap: wrap; gap: 12px; }
}
