:root {
  --ink: #15171c; --navy: #1b2433; --deep: #0f1520; --gold: #c9a45c; --gold-soft: #f3e7cc; --ivory: #faf8f3;
  --line: #e3ddd0; --muted: #5c6070; --ok: #2f6b4f; --warn: #8a6a2c; --bad: #a3322a;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; background: linear-gradient(180deg, var(--ivory), #fff 60%); -webkit-text-size-adjust: 100%; }
h1, h2, .brand strong { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; padding: 8px; z-index: 10; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--deep); color: #fff; flex-wrap: wrap; border-bottom: 1px solid rgba(201,164,92,.45); }
.brand { display: flex; gap: 10px; align-items: center; color: inherit; text-decoration: none; min-width: 0; }
.brand strong { font-size: 19px; }
.brand small { display: block; opacity: .78; font-size: 12px; }
.logo-mark { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font: 600 13px/1 Georgia, serif; }
.pill { background: rgba(201,164,92,.16); color: var(--gold-soft); padding: 6px 12px; border-radius: 999px; font-size: 13px; }
main { max-width: 1100px; margin: 0 auto; padding: 18px; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
.hero h1 { font-size: clamp(28px, 5.6vw, 46px); margin: 8px 0; line-height: 1.12; font-weight: 600; }
.hero em { color: var(--warn); }
.hero p { max-width: 760px; line-height: 1.6; color: #33363f; }
.eyebrow { font-size: 12px; letter-spacing: .12em; color: var(--warn); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 16px 0; }
.panel h2 { margin: 0 0 10px; font-size: 22px; font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.grid .wide { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
input, textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; }
textarea { resize: vertical; line-height: 1.5; }

input[type="color"] { padding: 4px; height: 46px; }
.button { font: inherit; font-size: 15px; padding: 10px 14px; min-height: 44px; border: 1px solid var(--gold); background: #fff; color: var(--ink); border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.button.primary { background: var(--deep); color: var(--gold-soft); }
.file-btn { margin: 0; flex-direction: row; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.score-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.score-row h2 { margin: 0; }
.score { font: 600 22px/1 Georgia, serif; padding: 8px 12px; border-radius: 10px; background: var(--gold-soft); }
.score[data-level="ok"] { color: var(--ok); }
.score[data-level="warn"] { color: var(--warn); }
.score[data-level="bad"] { color: var(--bad); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { padding: 10px 12px; border-radius: 10px; border-left: 4px solid var(--ok); background: #f6f8f6; display: flex; flex-direction: column; gap: 4px; }
.checks li.warn { border-color: var(--warn); background: #fbf7ee; }
.checks li.bad { border-color: var(--bad); background: #fbf1f0; }
.checks span { font-size: 14px; color: var(--muted); }
#preview { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 10px; background: #f4f1ea; }
.saved { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.saved li { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.saved small { display: block; color: var(--muted); }
.muted { color: var(--muted); font-size: 14px; }
code { background: var(--gold-soft); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.button-gold { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.buy { margin: 28px 0 8px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--deep); color: #f4efe6; text-align: center; }
.buy-kicker { letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-size: .75rem; font-weight: 700; margin: 0; }
.buy-price { font-size: 1.75rem; font-weight: 600; margin: .35rem 0; color: var(--gold-soft); font-family: "Iowan Old Style", Palatino, Georgia, serif; }
.buy-copy { color: #d8d9e3; margin: .35rem auto 0; max-width: 640px; }
.buy-note { color: #b9bbcb; font-size: .88rem; margin-top: .9rem; }
.buy-note a { color: var(--gold-soft); }
.buy-row { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; margin: .9rem 0; }
.buy-row .button { text-decoration: none; }
.buy-shopify { background: transparent; color: var(--gold-soft); border: 1px solid var(--gold); }
.footer { text-align: center; padding: 24px 18px 36px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-logo { width: 120px; height: 40px; object-fit: contain; display: block; margin: 0 auto 10px; }
@media (max-width: 480px) { main { padding: 12px; } .panel { padding: 13px; } #preview { height: 560px; } }
.check { flex-direction: row; align-items: center; gap: 8px; }
.check input { width: auto; }
#notes { margin: 8px 0 6px; font-family: ui-monospace, Menlo, monospace; font-size: 15px; }
.recorder { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.recorder label { margin: 0; }
.rec-list { list-style: decimal; padding-left: 22px; margin: 10px 0; color: var(--ink); }
.rec-list li { padding: 4px 0; }
.rec-list small { color: var(--muted); margin-left: 6px; }
.timer { font: 600 18px/1 ui-monospace, Menlo, monospace; color: var(--warn); }
select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
@media (max-width: 480px) { .recorder { grid-template-columns: 1fr; } }
