/* Good Dog Foundry — bold colour blocks, product front and centre */
:root {
  --ink: #1d1b1a;
  --paper: #ffffff;
  --accent: #c4402f;
  --accent2: #f0c987;
  --gold: #e4b457;
  --bg: #f4f0e8;
  --fg: var(--ink);
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Bricolage Grotesque', var(--sans);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; transition: background-color .5s ease; }
img { max-width: 100%; display: block; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
h1 { font-size: clamp(46px, 10vw, 120px); }
h2 { font-size: clamp(32px, 5.5vw, 62px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2; }
a { color: inherit; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }
.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; }

.block { padding: clamp(56px, 9vw, 116px) var(--pad); }
.block-inner { max-width: var(--max); margin: 0 auto; }
.paper { background: var(--paper); color: var(--ink); }
.green { background: var(--green); color: var(--paper); }
.red { background: var(--red); color: var(--paper); }
.ink { background: var(--ink); color: var(--paper); }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); background: inherit; font-size: 14px; }
.brand { font-weight: 600; letter-spacing: .01em; text-decoration: none; font-size: 15px; }
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); }
.nav a { text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; }
@media (max-width: 640px) { .nav a:not(.btn) { display: none; } }

.btn { font-family: var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 32px; border: 0; border-radius: 999px; cursor: pointer; font: 600 16px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; background: var(--ink); color: var(--paper); transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-gold { background: var(--accent); color: #fff; }
.btn-gold { background: var(--gold); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-lg { padding: 21px 44px; font-size: 19px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }

.hero { min-height: 86svh; display: grid; grid-template-rows: 1fr auto; padding: 0 var(--pad) clamp(28px, 5vw, 52px); }
.hero-stage { display: grid; place-items: center; position: relative; padding: clamp(10px, 3vw, 34px) 0; }
.hero-title { position: absolute; left: 0; right: 0; top: 4%; text-align: center; pointer-events: none; opacity: .22; letter-spacing: -0.045em; }
.hero-stage .viewer { width: min(460px, 72vw); }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; max-width: var(--max); width: 100%; margin: 0 auto; }
.hero-foot p { max-width: 40ch; font-size: clamp(17px, 1.8vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.swatches { display: flex; gap: 10px; align-items: center; }
.swatch-btn { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.swatch-btn[aria-pressed="true"] { border-color: currentColor; }
.sw-red { background: #c4402f; } .sw-green { background: #17493c; } .sw-ink { background: #14100e; } .sw-gold { background: #e4b457; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(26px, 4vw, 46px); grid-template-columns: repeat(3, 1fr); }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps .num { font: 600 15px/1 var(--sans); opacity: .5; }
.steps p { opacity: .8; font-size: 16px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 76px); align-items: center; }
.split .stack { display: grid; gap: 20px; align-content: start; }
.split p { opacity: .85; max-width: 46ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.facts { list-style: none; margin: 0; padding: 0; }
.facts li { display: flex; justify-content: space-between; gap: 18px; padding: 13px 0; border-top: 1px solid currentColor; font-size: 15px; }
.facts li:last-child { border-bottom: 1px solid currentColor; }
.facts span:last-child { opacity: .7; text-align: right; }

.viewer { position: relative; width: min(420px, 80vw); perspective: 1200px; touch-action: pan-y; cursor: grab; user-select: none; margin: 0 auto; }
.viewer:active { cursor: grabbing; }
.viewer-tilt { position: relative; transform-style: preserve-3d; transition: transform .18s ease-out; }
.viewer canvas, .viewer .viewer-fallback { display: block; width: 100%; height: auto; filter: drop-shadow(0 34px 44px rgba(0,0,0,.35)); }
.viewer-hint { margin-top: 16px; text-align: center; font-size: 13px; opacity: .6; }
.viewer-lg { width: min(480px, 86vw); }

.flow { max-width: var(--max); margin: 0 auto; padding: clamp(24px, 4vw, 44px) var(--pad) clamp(64px, 8vw, 104px); }
.flow-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 28px; margin-bottom: clamp(26px, 4vw, 42px); }
.flow-head h1 { font-size: clamp(32px, 5vw, 56px); }
.progress { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; font-size: 14px; opacity: .65; }
.progress li { display: flex; align-items: center; gap: 8px; }
.progress li + li::before { content: ''; width: 20px; height: 1.5px; background: currentColor; opacity: .4; }
.progress .dot { width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.progress [aria-current="step"] { opacity: 1; }
.progress [aria-current="step"] .dot { background: currentColor; box-shadow: none; color: var(--bg); }
@media (max-width: 560px) { .progress .label { display: none; } }

.panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 60px); align-items: start; }
@media (max-width: 860px) { .panel { grid-template-columns: 1fr; } }

.drop { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 26px; background: rgba(0,0,0,.05); box-shadow: inset 0 0 0 2px currentColor; text-align: center; padding: 34px; overflow: hidden; max-width: 440px; width: 100%; margin: 0 auto; }
.drop.is-over { background: rgba(0,0,0,.2); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop .drop-copy { position: relative; display: grid; gap: 6px; }
.drop.has-photo .drop-copy { display: none; }
.change-photo { display: block; margin: 14px auto 0; background: none; border: 0; color: inherit; font: 400 15px var(--sans); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.form { display: grid; gap: 26px; }
.field label, .field legend, .finishes legend { display: block; font-size: 15px; opacity: .8; margin-bottom: 10px; }
.field input[type=text] { width: 100%; padding: 15px 18px; border-radius: 14px; border: 0; box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; color: inherit; font: 500 22px/1.2 var(--sans); }
.field .count { float: right; font-size: 13px; opacity: .55; margin-top: 8px; }
.field .help { display: block; font-size: 14px; opacity: .65; margin-bottom: 10px; }
.tips { margin: 0; padding-left: 18px; font-size: 15px; opacity: .8; }
.tips li + li { margin-top: 4px; }

.finishes { display: flex; flex-wrap: wrap; gap: 10px; border: 0; margin: 0; padding: 0; }
.chip { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 20px; border-radius: 999px; font: 500 15px/1 var(--sans); cursor: pointer; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .65; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip:has(input:checked) { opacity: 1; box-shadow: inset 0 0 0 3px currentColor; }
.chip .swatch { width: 18px; height: 18px; border-radius: 50%; }
.swatch.gold { background: #e4b457; } .swatch.silver { background: #d9dadb; } .swatch.bronze { background: #b87b4b; }
.showing { font-size: 15px; opacity: .75; }

.notice { padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.5; box-shadow: inset 0 0 0 1.5px currentColor; }
.notice.error { background: rgba(196,64,47,.10); }
.notice.info { background: rgba(0,0,0,.08); }

.sculpting { display: grid; justify-items: center; gap: 20px; padding: 46px 0; text-align: center; }
.sculpting .coin-spin { width: 128px; height: 128px; border-radius: 50%; background: currentColor; opacity: .85; animation: flip 2.4s ease-in-out infinite; }
@keyframes flip { 0%, 100% { transform: rotateY(0) } 50% { transform: rotateY(180deg) } }
.sculpting p { max-width: 38ch; opacity: .8; }

.proof-side { display: grid; gap: 22px; align-content: start; }
.proof-side .price { font-size: clamp(30px, 4vw, 40px); font-weight: 600; letter-spacing: -0.03em; }
.smallprint { font-size: 13.5px; opacity: .65; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
[hidden] { display: none !important; }

.status-list { list-style: none; margin: 8px 0 0; padding: 0; }
.status-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid currentColor; opacity: .45; font-size: 16px; }
.status-list li .tick { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.status-list li.done, .status-list li.current { opacity: 1; }
.status-list li.done .tick { background: currentColor; box-shadow: none; }

.prose { max-width: 680px; margin: 0 auto; padding: clamp(32px, 5vw, 60px) var(--pad) clamp(64px, 8vw, 96px); }
.prose h1 { font-size: clamp(36px, 6vw, 60px); margin-bottom: 22px; }
.prose h2 { font-size: clamp(22px, 3vw, 27px); margin: 38px 0 10px; }
.prose p, .prose li { opacity: .85; font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 14px; }

.site-footer { background: var(--ink); color: #fff; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding: 26px var(--pad); font-size: 14px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { text-decoration: none; opacity: .75; }
.site-footer a:hover { opacity: 1; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
