/* Paw Legion - custom pet portraits. Mobile first (375 px floor), fluid everywhere. Brand kit fonts (SIL OFL 1.1, assets/fonts,
   Latin subsets as WOFF2): Gloock = display/wordmark, Crimson Pro Bold = section headings, Instrument Sans = body + UI. */
@font-face { font-family: "Gloock"; src: url("fonts/Gloock-Regular.woff2") format("woff2"), url("fonts/Gloock-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Crimson"; src: url("fonts/CrimsonPro-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/InstrumentSans-Regular.woff2") format("woff2"), url("fonts/InstrumentSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/InstrumentSans-Bold.woff2") format("woff2"), url("fonts/InstrumentSans-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0e0c18; --bg2: #1a1530; --card: #221b3a; --line: #3a3060;
  --gold: #e2b848; --pumpkin: #ff8a3d; --mint: #7fe0c2; --text: #f8f4ff; --muted: #c4bcd6; --bad: #ff8f8f;
  --r: 18px; --pad: clamp(16px, 4vw, 40px);
  --display: "Gloock", Georgia, serif; --head: "Crimson", Georgia, serif;
  --ui: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Instrument", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html, body { max-width: 100vw; overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 clamp(15px, 1.1vw + 11px, 18px)/1.55 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.1; }
h1 { font: 400 clamp(34px, 6vw + 12px, 72px)/1.02 var(--display); letter-spacing: -.01em; }
h2 { font: 700 clamp(26px, 2.6vw + 14px, 42px)/1.1 var(--head); letter-spacing: -.005em; }
h3 { font: 700 clamp(19px, 1vw + 14px, 24px)/1.2 var(--head); }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 var(--pad); }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 12, 24, .88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 700 20px var(--ui); flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .paw { width: 28px; height: 28px; flex-shrink: 0; }
.top nav { margin-left: auto; display: flex; gap: clamp(8px, 2vw, 22px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; font-size: .92em; }
.top nav a.btn { color: #1b1300; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #f2cf6a, var(--gold)); color: #1b1300; font: 700 1em var(--ui); text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 24px rgba(226, 184, 72, .25); min-height: 48px; text-align: center; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); box-shadow: none; }
.btn.small { padding: 9px 16px; min-height: 40px; font-size: .9em; }
.btn.block { width: 100%; }

/* hero */
.hero { padding: clamp(28px, 6vw, 80px) 0 clamp(20px, 4vw, 48px); background:
  radial-gradient(ellipse at 80% 0%, rgba(255, 138, 61, .22), transparent 55%),
  radial-gradient(ellipse at 0% 100%, rgba(127, 224, 194, .12), transparent 50%); }
.hero .grid { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .hero .grid { grid-template-columns: 1.05fr 1fr; } }
.hero .lede { font-size: 1.12em; color: var(--muted); max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
.pill { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: rgba(255, 138, 61, .14);
  color: var(--pumpkin); font: 700 .82em var(--ui); letter-spacing: .02em; }
.ai-label { display: inline-block; padding: 3px 9px; border-radius: 6px; background: #2c2450; color: var(--mint); font: 700 .78em var(--body); letter-spacing: .03em; }

/* before / after */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ba figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--card); aspect-ratio: 4 / 5; }
.ba img { width: 100%; height: 100%; object-fit: cover; }
.ba figcaption { position: absolute; left: 8px; bottom: 8px; right: 8px; font: 700 .78em var(--body); background: rgba(14, 12, 24, .75);
  padding: 4px 8px; border-radius: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample-note { margin-top: 8px; font-size: .8em; color: var(--muted); }

/* sections */
section { padding: clamp(36px, 6vw, 80px) 0; }
section.alt { background: var(--bg2); }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: #1b1300; font: 700 1em var(--ui); margin-bottom: 10px; }

/* style grid (used on home, gallery and create) */
.styles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 170px), 1fr)); }
.style { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer;
  transition: border-color .15s, transform .15s; display: flex; flex-direction: column; }
.style img, .style .ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; background: linear-gradient(160deg, #2b2250, #3b2a1a); }
.style .meta { padding: 8px 10px 10px; }
.style .name { font: 700 1.05em var(--head); }
.style .blurb { font-size: .8em; color: var(--muted); line-height: 1.35; }
.style input { position: absolute; opacity: 0; pointer-events: none; }
.style .tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(14, 12, 24, .7);
  border: 2px solid var(--muted); display: grid; place-items: center; color: transparent; font-weight: 700; }
.style:has(input:checked) { border-color: var(--gold); transform: translateY(-2px); }
.style:has(input:checked) .tick { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.style:has(input:focus-visible) { outline: 3px solid var(--mint); outline-offset: 2px; }
.style.locked { opacity: .55; cursor: not-allowed; }
.pack-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 26px 0 10px; }
.pack-head .soon { font-size: .85em; color: var(--muted); }

/* products */
.products { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.product { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; position: relative; }
.product input { position: absolute; opacity: 0; }
.product .price { font: 700 1.3em var(--head); color: var(--gold); }
.product:has(input:checked) { border-color: var(--gold); }
.deadline { background: linear-gradient(120deg, rgba(255, 138, 61, .18), rgba(226, 184, 72, .1)); border: 1px solid rgba(255, 138, 61, .5);
  border-radius: var(--r); padding: 14px 16px; }

/* create flow */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 3vw, 28px); margin: 16px 0; }
.drop { border: 2px dashed var(--line); border-radius: var(--r); padding: 22px; text-align: center; cursor: pointer; display: block; }
.drop:hover, .drop.over { border-color: var(--gold); }
.drop img { max-height: 260px; margin: 0 auto 10px; border-radius: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .92em; }
.check input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--gold); margin-top: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.field input[type=text] { background: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; width: 100%; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--pumpkin); flex-shrink: 0; }
.error { color: var(--bad); font-weight: 700; min-height: 1.4em; }
.status { display: flex; gap: 14px; align-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--gold); animation: spin 1s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } .style { transition: none; } }
.previews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); }
.preview { border: 3px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--bg); position: relative; }
.preview input { position: absolute; opacity: 0; }
.preview:has(input:checked) { border-color: var(--gold); }
.sticky-cta { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 35%); }
.counter { font: 700 .9em var(--ui); color: var(--gold); }

/* faq + footer */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 8px 0; }
summary { cursor: pointer; font: 700 1.08em var(--head); min-height: 28px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .88em; }

.legal { max-width: 760px; }
.legal h2 { margin-top: 1.4em; font-size: 1.3em; }

@media (max-width: 460px) {
  .top nav a:not(.btn) { display: none; }
  .hero .ctas .btn { flex: 1 1 100%; }
}
@media (max-width: 360px) { .brand span { display: none; } }

/* ---------- Wizard (big, simple, one thing per screen) ---------- */
body.big { font-size: clamp(18px, 0.6vw + 15px, 21px); }
.big .btn { min-height: 56px; font-size: 1.05em; padding: 16px 26px; }
.screen { display: none; padding: 18px 0 40px; }
.screen.on { display: block; }
.stepno { font: 700 .95em var(--ui); color: var(--gold); letter-spacing: .04em; text-transform: uppercase; }
.screen h1 { font-size: clamp(30px, 4vw + 14px, 52px); margin: 6px 0 14px; }
.lead { font-size: 1.1em; color: var(--muted); }
.navrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.navrow .btn { flex: 1 1 200px; }
.photos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); margin: 12px 0; }
.photos figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--card); aspect-ratio: 1; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos .rm { position: absolute; top: 8px; right: 8px; min-height: 40px; padding: 6px 12px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.tab { flex: 0 0 auto; padding: 12px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: 700 1em var(--ui); cursor: pointer; min-height: 48px; }
.tab.on { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.chip { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--text); font: 700 .95em var(--body); cursor: pointer; min-height: 46px; }
.chip.on { border-color: var(--gold); background: rgba(226, 184, 72, .16); }
.optblock { margin: 18px 0; }
.optblock h3 { margin-bottom: 4px; }
.more { display: none; margin-top: 8px; }
.more.on { display: block; }
.more input[type=search], .more input[type=text], .field input[type=email] { width: 100%; background: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; }
.more .list { max-height: 240px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect img { pointer-events: auto; -webkit-user-drag: none; }
.helpbar { position: fixed; right: 12px; bottom: 12px; z-index: 20; }
.helpbar a { display: inline-block; background: var(--card); border: 1.5px solid var(--gold); color: var(--text); text-decoration: none; padding: 12px 16px; border-radius: 999px; font: 700 .95em var(--ui); }
.cart { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 14px 0; }
.cart li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.cart ul { list-style: none; padding: 0; margin: 0; }
.mock { display: grid; place-items: center; background: #f4efe6; border-radius: var(--r); padding: 18px; min-height: 220px; }
.mock .frame { box-shadow: 0 10px 30px rgba(0,0,0,.35); border: 14px solid #222; max-width: 70%; }
.mock .frame.white { border-color: #f6f6f6; } .mock .frame.oak, .mock .frame.brown { border-color: #9a6a3d; } .mock .frame.none { border-width: 0; }
.mock .shirt { background: #222; border-radius: 30px 30px 16px 16px; padding: 40px 50px; }
.mock .shirt.white { background: #fff; } .mock .shirt.navy { background: #1f2a44; } .mock .shirt.heather, .mock .shirt.grey { background: #9aa0a6; }
.partner-banner { background: rgba(127, 224, 194, .14); border: 1px solid rgba(127, 224, 194, .5); border-radius: 14px; padding: 10px 14px; margin: 10px 0; }
.admin table { width: 100%; border-collapse: collapse; font-size: .9em; }
.admin td, .admin th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; vertical-align: top; }
.big .top .btn { min-height: 40px; font-size: .85em; padding: 8px 14px; white-space: nowrap; }
.mockups { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); margin: 12px 0; }
.mockups img { border-radius: var(--r); aspect-ratio: 1; object-fit: cover; width: 100%; }


/* ---------- Brand header/footer, landing pages, prices (scripts/build_seo.py markup) ---------- */
picture { display: block; }
.brand .mark { width: 30px; height: 36px; flex-shrink: 0; }
.brand .word { font: 400 24px/1 var(--display); letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; }
.brand .word b { font-weight: 400; color: var(--gold); }
.top nav a:not(.btn):hover, .top nav a:not(.btn):focus-visible { color: var(--text); }
.kicker { font: 700 .82em var(--ui); color: var(--gold); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 .7em; }
.hero h1 { max-width: 13em; }
.crumbs { font-size: .85em; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-hero { padding: clamp(28px, 5vw, 64px) 0 clamp(16px, 3vw, 32px); background:
  radial-gradient(ellipse at 85% 0%, rgba(226, 184, 72, .16), transparent 55%); }
.page-hero h1 { font-size: clamp(34px, 4.5vw + 14px, 60px); max-width: 16em; }
.page-hero .lede { font-size: 1.1em; color: var(--muted); max-width: 40em; }
.page-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 10px; }
section.tight { padding-top: 8px; }
.prose { max-width: 820px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
ol.plain { padding-left: 1.2em; margin: 0 0 1em; }
ol.plain li { margin: 0 0 .6em; }
.cta-band { background: linear-gradient(160deg, #2a1f10, var(--bg2) 60%); border-top: 1px solid var(--line); }
.cta-band .muted { max-width: 34em; margin-left: auto; margin-right: auto; }
.topics { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.topic { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 10px; color: var(--text); text-decoration: none; min-height: 44px; transition: border-color .15s; }
.topic:hover, .topic:focus-visible { border-color: var(--gold); }
.topic picture { flex: 0 0 96px; }
.topic img { width: 96px; height: 120px; object-fit: cover; border-radius: 12px; }
.topic > span { display: flex; flex-direction: column; gap: 4px; }
.topic strong { font: 700 1.12em/1.2 var(--head); color: var(--gold); }
.price-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 10px 0 30px; }
.price-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.price-card h3 { margin-bottom: 2px; }
.price-card table { width: 100%; border-collapse: collapse; margin-top: 6px; font-size: .95em; }
.price-card th { text-align: left; font: 700 .78em var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 4px 0; }
.price-card td { padding: 6px 0; border-top: 1px dashed var(--line); }
.price-card td:last-child, .price-card th:last-child { text-align: right; color: var(--gold); font-weight: 700; }
.notfound { padding: clamp(48px, 10vw, 110px) var(--pad); }
.notfound h1 { font-size: clamp(32px, 4vw + 14px, 56px); }
.center-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
footer .foot { display: grid; gap: 22px 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
footer nav { display: flex; flex-direction: column; gap: 10px; }
footer nav a, footer #foot-help a { color: var(--muted); text-decoration: none; }
footer nav a:hover, footer nav a:focus-visible { color: var(--gold); text-decoration: underline; }
.foot-h { font: 700 .78em var(--ui); color: var(--text); letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.foot-brand p { margin-top: 10px; max-width: 26em; }
.foot-note { grid-column: 1 / -1; margin: 0; font-size: .9em; }
a:focus-visible, .btn:focus-visible, summary:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; }
#home-products { grid-template-columns: repeat(auto-fill, minmax(min(46%, 210px), 1fr)); }
#home-products .product { padding: 12px 14px; }
.waitlist { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.waitlist h3 { margin: 0 0 6px; }
.waitlist label { display: block; font-weight: 700; margin: 10px 0 6px; }
.waitlist input[type=email] { width: 100%; max-width: 100%; background: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; font: inherit; margin-bottom: 10px; }
