/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f7f4ee;
  --bg-soft: #efe9dd;
  --surface: #ffffff;
  --surface-soft: #faf7f1;
  --ink: #201c18;
  --ink-soft: #5c564c;
  --ink-faint: #8b8375;
  --line: rgba(32, 28, 24, 0.13);
  --line-strong: rgba(32, 28, 24, 0.24);
  --accent: #bd5b2c;
  --accent-hover: #a34c22;
  --accent-ink: #fff8f1;
  --accent-soft: #f2e0cf;
  --ok: #3f7d4c;
  --warn: #b8862c;
  --danger: #b23c2e;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-card: 0 1px 2px rgba(32, 28, 24, 0.06), 0 10px 30px -14px rgba(32, 28, 24, 0.18);
  --shadow-pop: 0 20px 60px -16px rgba(32, 28, 24, 0.35);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --container: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17140f;
    --bg-soft: #1e1a15;
    --surface: #211d18;
    --surface-soft: #26221c;
    --ink: #f3ede2;
    --ink-soft: #c3b9a8;
    --ink-faint: #8f8574;
    --line: rgba(243, 237, 226, 0.13);
    --line-strong: rgba(243, 237, 226, 0.24);
    --accent: #e0813f;
    --accent-hover: #ef9552;
    --accent-ink: #1c1209;
    --accent-soft: #3a2a19;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.6);
    --shadow-pop: 0 24px 70px -18px rgba(0, 0, 0, 0.7);
  }
}
:root[data-theme="dark"] {
  --bg: #17140f;
  --bg-soft: #1e1a15;
  --surface: #211d18;
  --surface-soft: #26221c;
  --ink: #f3ede2;
  --ink-soft: #c3b9a8;
  --ink-faint: #8f8574;
  --line: rgba(243, 237, 226, 0.13);
  --line-strong: rgba(243, 237, 226, 0.24);
  --accent: #e0813f;
  --accent-hover: #ef9552;
  --accent-ink: #1c1209;
  --accent-soft: #3a2a19;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 14px 34px -16px rgba(0, 0, 0, 0.6);
  --shadow-pop: 0 24px 70px -18px rgba(0, 0, 0, 0.7);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.01em; font-family: var(--serif); font-weight: 600; }
ul, ol { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--bg);
  z-index: 9999; border-radius: 8px; font-weight: 500;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.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;
}
.container { max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.section-head { max-width: 46rem; margin-bottom: 2.25rem; }
.section-head p { color: var(--ink-soft); font-size: 1.02rem; margin-top: .6rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 42rem; }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: var(--radius-s);
  font-weight: 600; font-size: .96rem; letter-spacing: -0.005em;
  transition: transform .18s var(--ease-out), background .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-card); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink-soft); padding: .5rem .7rem; }
.btn-ghost:hover { color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1.02rem; border-radius: var(--radius-m); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label, .field-label {
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  letter-spacing: .01em;
}
.field input[type="text"],
.field input[type="url"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  padding: .72rem .85rem;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: .95rem;
  transition: border-color .16s var(--ease-out), background .16s var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent); background: var(--surface); outline: none;
}
.field .hint { font-size: .76rem; color: var(--ink-faint); }
.field .count { font-size: .74rem; color: var(--ink-faint); text-align: right; }

.color-field { display: flex; align-items: center; gap: .6rem; }
.color-field input[type="color"] {
  appearance: none; -webkit-appearance: none; width: 2.5rem; height: 2.5rem;
  border-radius: 10px; border: 1.5px solid var(--line-strong); padding: 0; background: none; cursor: pointer;
  flex: none;
}
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.color-field input[type="color"]::-webkit-color-swatch { border-radius: 7px; border: none; }
.color-field .color-value { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); }

.segmented {
  display: grid; grid-auto-flow: column; gap: .35rem;
  background: var(--bg-soft); padding: .3rem; border-radius: var(--radius-m);
}
.segmented button {
  padding: .58rem .5rem; border-radius: 9px; font-size: .84rem; font-weight: 600;
  color: var(--ink-soft); transition: background .16s var(--ease-out), color .16s var(--ease-out);
  text-align: center;
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.style-opt {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  padding: .55rem .3rem .5rem; display: flex; flex-direction: column; align-items: center; gap: .35rem;
  font-size: .68rem; font-weight: 600; color: var(--ink-soft); background: var(--surface-soft);
  transition: border-color .15s var(--ease-out), color .15s var(--ease-out);
}
.style-opt svg { width: 28px; height: 28px; }
.style-opt[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .3rem; }
.emoji-grid button {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; border-radius: 8px; border: 1.5px solid transparent; background: var(--surface-soft);
}
.emoji-grid button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }

.center-tabs { display: flex; gap: .4rem; margin-bottom: .55rem; }
.center-tabs button {
  padding: .4rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--bg-soft); color: var(--ink-soft);
}
.center-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); }

.upload-drop {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-s);
  padding: .9rem; text-align: center; font-size: .82rem; color: var(--ink-soft);
  cursor: pointer; transition: border-color .16s var(--ease-out), background .16s var(--ease-out);
}
.upload-drop:hover, .upload-drop.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-drop input { display: none; }

.center-current {
  display: flex; align-items: center; gap: .6rem; margin-top: .5rem;
  font-size: .82rem; color: var(--ink-soft);
}
.center-current img { width: 32px; height: 32px; border-radius: 6px; border: 1px solid var(--line); object-fit: cover; }
.center-current .swatch-emoji { font-size: 1.3rem; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; color: var(--ink-soft); background: var(--bg-soft);
  padding: .5rem .8rem; border-radius: 999px;
}
.badge svg { width: 15px; height: 15px; flex: none; color: var(--ok); }

.warning-list { display: flex; flex-direction: column; gap: .4rem; margin-top: .7rem; }
.warning-item {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .82rem; padding: .55rem .7rem; border-radius: var(--radius-s);
  background: var(--bg-soft); color: var(--ink-soft);
}
.warning-item svg { width: 16px; height: 16px; flex: none; margin-top: .1rem; }
.warning-item.is-ok { color: var(--ok); }
.warning-item.is-ok svg { color: var(--ok); }
.warning-item.is-warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--bg-soft)); }
.warning-item.is-warn svg { color: var(--warn); }
.warning-item.is-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, var(--bg-soft)); }
.warning-item.is-bad svg { color: var(--danger); }

/* =============================================================
   6. Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header { background: var(--bg); }
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 4.25rem; }
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.05rem; }
.logo .logo-mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.logo .logo-mark svg { width: 17px; height: 17px; }
.main-nav { display: none; }
.main-nav ul { display: flex; gap: 1.7rem; align-items: center; }
.main-nav a { font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: color .15s var(--ease-out); }
.main-nav a:hover { color: var(--ink); }
.header-cta { display: none; }
@media (min-width: 720px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
}

/* =============================================================
   7. Hero + tool
   ============================================================= */
.hero { padding: 2.6rem 0 1.4rem; }
.hero-head { max-width: 44rem; }
.hero-head .eyebrow { margin-bottom: .9rem; }
.hero-head p { margin-top: .85rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }

.tool-section { padding: 1.6rem 0 3rem; }
.tool-card {
  display: grid; grid-template-columns: 1fr; gap: 0;
  overflow: hidden;
}
.tool-panel { padding: 1.6rem; border-bottom: 1px solid var(--line); }
.tool-panel:last-child { border-bottom: 0; }
.tool-controls { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.75rem; }
.tool-preview { padding: 1.75rem; background: var(--bg-soft); display: flex; flex-direction: column; gap: 1.25rem; }

@media (min-width: 960px) {
  .tool-card { grid-template-columns: 1.05fr 1fr; }
  .tool-controls { border-right: 1px solid var(--line); max-height: none; overflow: visible; }
}

.tool-tabs { display: flex; gap: .5rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.tool-tabs button {
  padding: .7rem .2rem; font-weight: 600; font-size: .92rem; color: var(--ink-faint);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  display: flex; align-items: center; gap: .4rem;
}
.tool-tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.tool-tabs button svg { width: 16px; height: 16px; }

.control-group { display: flex; flex-direction: column; gap: .9rem; }
.control-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.control-group h4 {
  font-family: var(--sans); font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-faint); margin-top: .3rem;
}
.mode-panel[hidden] { display: none; }

.qr-preview-wrap {
  background: var(--surface); border-radius: var(--radius-m); border: 1px solid var(--line);
  padding: 1.1rem; display: flex; align-items: center; justify-content: center;
  min-height: 220px; position: relative;
}
.qr-preview-wrap canvas, .qr-preview-wrap img { max-width: 100%; border-radius: 6px; }
.qr-preview-wrap .qr-empty { font-size: .85rem; color: var(--ink-faint); text-align: center; }

.download-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.download-row .btn { flex: 1 1 auto; }

.size-row { display: flex; align-items: center; gap: .6rem; font-size: .82rem; color: var(--ink-soft); }
.size-row select { padding: .4rem .5rem; border-radius: 8px; border: 1.5px solid var(--line-strong); background: var(--surface); }

hr.divider { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }

/* --- 3D panel --- */
.format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.format-opt {
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); padding: .7rem .5rem;
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  background: var(--surface-soft); font-size: .74rem; font-weight: 600; color: var(--ink-soft);
  text-align: center;
}
.format-opt svg { width: 30px; height: 30px; }
.format-opt[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.format-opt .format-sub { font-weight: 400; color: var(--ink-faint); font-size: .68rem; }

.viewer3d-wrap {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.viewer3d-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.viewer3d-status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .6rem; font-size: .8rem; color: var(--ink-faint); text-align: center; padding: 1rem;
  background: var(--surface);
}
.viewer3d-wrap.is-ready .viewer3d-status { display: none; }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--line-strong); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.viewer3d-hint {
  position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%);
  font-size: .68rem; color: var(--ink-faint); background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: .3rem .6rem; border-radius: 999px; pointer-events: none;
}

.stl-link { font-size: .82rem; color: var(--ink-soft); text-align: center; }
.stl-link button { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.state-msg { font-size: .82rem; padding: .7rem .85rem; border-radius: var(--radius-s); background: var(--bg-soft); color: var(--ink-soft); display: none; }
.state-msg.is-visible { display: block; }
.state-msg.is-error { background: color-mix(in srgb, var(--danger) 14%, var(--bg-soft)); color: var(--danger); }

/* =============================================================
   8. Ad slots
   ============================================================= */
.ad-slot {
  border-radius: var(--radius-m);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: .4rem; background: var(--bg-soft); padding: .6rem;
  overflow: hidden;
}
.ad-slot.is-placeholder { border: 1.5px dashed var(--line-strong); justify-content: center; }
.ad-slot span { display: flex; align-items: center; gap: .4rem; color: var(--ink-faint); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ad-slot .ad-tag { font-family: var(--mono); }
.ad-slot .ad-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-faint); align-self: flex-start;
}
.ad-slot .adsbygoogle { width: 100%; }
.ad-slot--leaderboard { min-height: 90px; margin-block: 2.2rem; }
.ad-slot--incontent { min-height: 250px; margin-block: 2.4rem; max-width: 728px; margin-inline: auto; }
.ad-slot--popup { min-height: 250px; width: 100%; margin-top: .9rem; }

.ad-toast {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 60;
  width: 300px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); box-shadow: var(--shadow-pop);
  padding: .7rem; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out);
}
.ad-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.ad-toast-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .4rem; }
.ad-toast-head span { font-size: .66rem; font-weight: 700; letter-spacing: .1em; color: var(--ink-faint); text-transform: uppercase; }
.ad-toast-close { font-size: 1rem; line-height: 1; color: var(--ink-faint); padding: .1rem .3rem; }
.ad-toast-body {
  min-height: 90px; border-radius: 6px; background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  font-size: .68rem; color: var(--ink-faint); font-weight: 700; letter-spacing: .08em;
}
.ad-toast-body .adsbygoogle { width: 100%; }

.download-dialog {
  border: none; border-radius: var(--radius-l); padding: 0; max-width: 380px; width: calc(100% - 2rem);
  box-shadow: var(--shadow-pop); background: var(--surface); color: var(--ink);
}
.download-dialog::backdrop { background: rgba(20, 17, 14, 0.55); backdrop-filter: blur(2px); }
.download-dialog-inner { padding: 1.5rem; }
.download-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.download-dialog-head h3 { font-size: 1.05rem; }
.download-dialog-close {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg-soft); flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--ink-soft);
}
.download-dialog p { font-size: .86rem; color: var(--ink-soft); margin-top: .3rem; }
.download-dialog .btn { margin-top: 1.1rem; }

/* =============================================================
   9. How it works / ideas / faq
   ============================================================= */
.section { padding: 3.4rem 0; }
.section-alt { background: var(--bg-soft); }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; counter-reset: step; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { position: relative; padding-top: .3rem; }
.step-num {
  display: flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--ink); color: var(--bg);
  font-family: var(--serif); font-size: 1.15rem; margin-bottom: 1rem;
}
.step-card svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: .8rem; }
.step-card h3 { margin-bottom: .4rem; }
.step-card p { color: var(--ink-soft); font-size: .92rem; }

.ideas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 720px) { .ideas-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ideas-grid { grid-template-columns: repeat(4, 1fr); } }
.idea-card { padding: 1.3rem 1.1rem; display: flex; flex-direction: column; gap: .6rem; }
.idea-card .idea-emoji { font-size: 1.5rem; }
.idea-card h3 { font-size: .98rem; }
.idea-card p { font-size: .82rem; color: var(--ink-soft); }

.seo-copy { max-width: 62rem; }
.seo-copy p { color: var(--ink-soft); margin-bottom: 1.1rem; }
.seo-copy h3 { font-size: 1.15rem; margin: 1.6rem 0 .6rem; }

.faq-list { max-width: 48rem; display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); overflow: hidden; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 1.05rem 1.2rem; font-weight: 600; font-size: .96rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 18px; height: 18px; color: var(--ink-faint); transition: transform .2s var(--ease-out); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 1.2rem 1.15rem; color: var(--ink-soft); font-size: .9rem; }

.final-cta { text-align: center; padding: 3.5rem 0; }
.final-cta h2 { margin-bottom: .8rem; }
.final-cta p { color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 34rem; margin-inline: auto; }

/* =============================================================
   10. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 2.4rem 0 2.2rem; }
.footer-grid { display: flex; flex-direction: column; gap: 1.4rem; }
@media (min-width: 720px) { .footer-grid { flex-direction: row; align-items: flex-start; justify-content: space-between; } }
.footer-brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; }
.footer-brand .logo-mark { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.footer-brand .logo-mark svg { width: 13px; height: 13px; }
.footer-note { font-size: .82rem; color: var(--ink-faint); margin-top: .6rem; max-width: 26rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem .1rem; }
.footer-links a { font-size: .84rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: .74rem; color: var(--ink-faint); margin-top: 1.6rem; }

/* =============================================================
   11. Legal skeleton pages
   ============================================================= */
.legal-page { padding: 3rem 0 4rem; max-width: 48rem; margin-inline: auto; }
.legal-page h1 { margin-bottom: .4rem; }
.legal-page .updated { font-size: .82rem; color: var(--ink-faint); margin-bottom: 2rem; }
.legal-page h2 { font-size: 1.15rem; margin: 1.8rem 0 .6rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: .94rem; margin-bottom: .6rem; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; }
.legal-page code { font-family: var(--mono); background: var(--bg-soft); padding: .1rem .3rem; border-radius: 4px; font-size: .85em; }

/* =============================================================
   12. Responsive niceties
   ============================================================= */
@media (max-width: 539px) {
  .control-row { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(4, 1fr); }
  .emoji-grid { grid-template-columns: repeat(6, 1fr); }
  .ad-toast { width: calc(100% - 2rem); }
}

/* =============================================================
   13. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .01ms; }
  .spinner { animation-duration: 1.6s; }
}
