:root {
  --ink: #17171a;
  --ink-2: #45454d;
  --muted: #5d5d66;
  --paper: #fbfaf8;
  --paper-2: #efece7;
  --rule: #dcd7cf;
  --accent: #1d1d22;
  --accent-ink: #ffffff;
  --accent-dark: #000000;
  --skin: #e9c9ae;
  --radius: 14px;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
a { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible + span, select:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; }
h1, h2, h3, p, ul, ol { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 32px; padding-right: 32px; } }
.narrow { max-width: 640px; }

/* Header */
.top { border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.wordmark { white-space: nowrap; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; font-size: 18px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; }
.wordmark svg { width: 22px; height: 22px; }
.nav { display: flex; gap: 18px; font-size: 15px; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--ink-2); display: inline-block; padding: 12px 2px; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { padding-top: 28px; padding-bottom: 28px; display: grid; gap: 24px; }
@media (min-width: 860px) { .hero { grid-template-columns: 1.05fr 0.95fr; align-items: center; padding-top: 64px; padding-bottom: 48px; gap: 48px; } }
.kicker { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 12px; }
h1 { font-size: 36px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; }
@media (min-width: 860px) { h1 { font-size: 52px; } }
.lede { margin-top: 16px; font-size: 19px; color: var(--ink-2); max-width: 34em; }
.cta-row { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { font-size: 14px; color: var(--muted); }
.cta-row + .fine { margin-top: 10px; }

.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; padding: 14px 24px; border-radius: 999px; border: 2px solid var(--accent); cursor: pointer; text-align: center; line-height: 1.25; }
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.wide { display: block; width: 100%; }

/* Hero art: the sketch, then the same sketch on skin */
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.hero-art figure { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; display: flex; flex-direction: column; }
.hero-art img { border-radius: 8px; width: 100%; }
.hero-art figcaption { font-size: 13px; color: var(--muted); padding: 8px 4px 2px; line-height: 1.35; }
.hero-art .onskin .skin { position: relative; border-radius: 8px; overflow: hidden; background: var(--skin); aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hero-art .onskin .skin img { width: 62%; mix-blend-mode: multiply; border-radius: 0; transform: rotate(-6deg); filter: brightness(1.1) contrast(1.35); }

/* Sections */
section { padding-top: 36px; padding-bottom: 36px; }
@media (min-width: 860px) { section { padding-top: 56px; padding-bottom: 56px; } }
section.alt { background: var(--paper-2); }
h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
@media (min-width: 860px) { h2 { font-size: 32px; } }
.section-head { margin-bottom: 18px; display: grid; gap: 6px; }

.embed-box { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--paper); min-height: 200px; }
.embed-box iframe { display: block; }
.embed-fallback { margin-top: 10px; }

/* Offer */
.offer { margin-top: 20px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; padding: 20px; display: grid; gap: 16px; }
@media (min-width: 720px) { .offer { grid-template-columns: 1.3fr 0.7fr; align-items: center; padding: 28px; gap: 28px; } }
.offer h2, .offer h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.offer ul { margin-top: 12px; padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; }
.offer .buy { display: grid; gap: 10px; }
.price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.offer.done-note { border-color: var(--ink); }
.after { margin-bottom: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--paper-2); font-weight: 600; }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.steps h3 { font-size: 18px; margin-bottom: 4px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* Examples */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 860px) { .grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.card { margin: 0; background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px; }
.card img { border-radius: 8px; width: 100%; }
.card figcaption { padding: 10px 4px 4px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.card figcaption b { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 2px; }

/* FAQ, limits */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq details { border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin-top: 8px; color: var(--ink-2); }
.limits { padding-left: 20px; color: var(--ink-2); display: grid; gap: 6px; max-width: 760px; }

/* Order page */
.order { padding-top: 28px; padding-bottom: 56px; }
.order h1 { font-size: 32px; }
.order .lede { font-size: 17px; }
fieldset { border: 0; padding: 0; margin: 24px 0 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; }
.choices { display: grid; gap: 10px; }
@media (min-width: 560px) { .choices { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: block; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; padding: 14px 16px; }
.choice span b { display: block; }
.choice span small { color: var(--muted); font-size: 14px; }
.choice input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
label.field { display: block; margin-top: 24px; font-weight: 700; }
select { display: block; width: 100%; margin-top: 10px; font: inherit; padding: 13px 14px; border: 2px solid var(--rule); border-radius: var(--radius); background: #fff; color: var(--ink); }
.summary { margin-top: 24px; border-top: 1px solid var(--rule); padding-top: 16px; display: grid; gap: 6px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.summary .total { font-weight: 800; font-size: 19px; }
.order .btn { margin-top: 20px; }
.notyet { margin-top: 8px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; padding: 22px; display: grid; gap: 12px; }
.notyet h2 { font-size: 24px; }
.notyet p { color: var(--ink-2); }

/* Footer */
footer { border-top: 1px solid var(--rule); padding-top: 24px; padding-bottom: 96px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: var(--ink-2); display: inline-block; padding: 6px 0; }

/* Sticky start button on phones */
.sticky-cta { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: none; text-align: center; padding: 15px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25); }
@media (max-width: 859px) { .sticky-cta.on { display: block; } }
body.has-design .sticky-cta { display: none !important; }

.prose { padding-top: 28px; padding-bottom: 56px; display: grid; gap: 14px; }
.prose h1 { font-size: 32px; }
.prose p, .prose li { color: var(--ink-2); }

/* Studio */
.studio { display: grid; gap: 20px; }
@media (min-width: 900px) { .studio { grid-template-columns: 0.95fr 1.05fr; gap: 32px; align-items: start; } }
.composer, .result { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; }
@media (min-width: 720px) { .composer, .result { padding: 24px; } }
.composer h2 { margin-bottom: 14px; }
.lbl { display: block; font-weight: 700; margin-bottom: 8px; }
textarea, input[type=text] { display: block; width: 100%; font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--rule); border-radius: 12px; padding: 12px 14px; }
textarea { resize: vertical; min-height: 92px; }
textarea:focus, input[type=text]:focus, select:focus { outline: 0; border-color: var(--ink); }
.starters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.starter { font: inherit; font-size: 14px; color: var(--ink-2); background: var(--paper-2); border: 1px dashed #b9b2a6; border-radius: 999px; padding: 9px 14px; cursor: pointer; }
.starter:hover { color: var(--ink); border-color: var(--ink); }
fieldset.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
fieldset.chips legend { margin-bottom: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span { display: block; font-size: 15px; border: 2px solid var(--rule); border-radius: 999px; padding: 8px 14px; background: #fff; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.composer .btn { margin-top: 20px; }
.composer .fine { margin-top: 10px; text-align: center; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.err { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fdeeee; color: #8a1f1f; font-weight: 600; }

.sketch-box { position: relative; border-radius: 10px; overflow: hidden; background: var(--paper-2); aspect-ratio: 1 / 1; }
.sketch-box img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sketch-box img[src=""], .sketch-box img:not([src]) { visibility: hidden; }
.busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: rgba(251, 250, 248, 0.92); font-weight: 600; text-align: center; padding: 24px; }
.busy i { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--rule); border-top-color: var(--ink); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy i { animation-duration: 3s; } }
.versions { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; padding-bottom: 2px; }
.versions:empty { display: none; }
.ver { flex: 0 0 auto; padding: 0; border: 2px solid var(--rule); border-radius: 10px; background: #fff; cursor: pointer; overflow: hidden; width: 64px; height: 64px; }
.ver.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ver img { width: 100%; height: 100%; object-fit: cover; }
.change { margin-top: 16px; }
.change .row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.change .btn { padding: 12px 20px; }
.tools { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tools .btn { padding: 13px 12px; }
.tools .btn:first-child { grid-column: 1 / -1; }
.paywall { margin-top: 16px; border: 2px solid var(--ink); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.paywall h3 { font-size: 20px; }
.paywall p { color: var(--ink-2); }
.soon { padding: 12px 14px; border-radius: 12px; background: var(--paper-2); }

/* Try-on and stencil panels */
.panel-grid { display: grid; gap: 20px; }
@media (min-width: 860px) { .panel-grid { grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; } }
.panel canvas { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--rule); background: #fff; touch-action: none; display: block; }
#tryon-canvas { cursor: grab; }
#tryon-canvas:focus-visible { outline: 3px solid #2f6fed; outline-offset: 3px; }
.controls { display: grid; gap: 14px; }
.file { position: relative; overflow: hidden; cursor: pointer; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tones { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.tones legend { margin-bottom: 8px; }
.tone { position: relative; }
.tone input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tone span { display: block; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--rule); }
.tone input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.slider { display: grid; gap: 6px; font-weight: 700; }
.slider input { width: 100%; accent-color: var(--ink); height: 28px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }
.upsell { margin-top: 6px; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; padding: 16px; display: grid; gap: 12px; }
.upsell p { color: var(--ink-2); }

/* Pricing */
.plans { display: grid; gap: 14px; }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; } }
.plan { background: #fff; border: 1px solid var(--rule); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.plan.best { border: 2px solid var(--ink); }
.plan h3 { font-size: 18px; }
.plan ul { padding-left: 20px; color: var(--ink-2); display: grid; gap: 4px; flex: 1; }
.steps.four { }
@media (min-width: 860px) { .steps.four { grid-template-columns: repeat(4, 1fr); } }
.order-design { margin-top: 16px; width: 160px; height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--rule); border-radius: 12px; }

/* Printing a stencil: only the sheet, at its real size */
#print-sheet { display: none; }
@media print {
  body > *:not(main), main > *:not(#print-sheet) { display: none !important; }
  #print-sheet { display: block; padding: 0.5in; }
  #print-sheet img { height: auto; max-width: none; }
}

.hero-art.one { grid-template-columns: 1fr; max-width: 420px; }
