/* Drag Queen Name Generator - shared styles
   Concept: a marquee and velvet-curtain theatre. One signature element: the bulb-lit sign. */

:root {
  color-scheme: light dark;
  --bg: #FFF5F7;
  --surface: #FFFFFF;
  --surface-2: #FCE9EE;
  --text: #2B0F1C;
  --muted: #6A4355;
  --border: #EBCBD5;
  --border-strong: #A5627B;
  --primary: #A00F3C;
  --primary-hover: #820B31;
  --on-primary: #FFFFFF;
  --gold: #F4B73D;
  --gold-hover: #FFC95E;
  --on-gold: #2B0F1C;
  --velvet: #5E0A26;
  --velvet-deep: #470719;
  --velvet-pleat: #6C0E2D;
  --on-velvet: #FFF4F6;
  --on-velvet-muted: #F6CBD8;
  --sign-text: #FFE6A6;
  --footer-bg: #2B0A16;
  --footer-text: #F6D9E3;
  --success: #0F6B3E;
  --success-bg: #E5F5EC;
  --error: #B3261E;
  --error-bg: #FDECEA;
  --info-bg: #FCE9EE;
  --focus: #0A6A6E;
  --shadow: 0 1px 2px rgba(43, 15, 28, .08), 0 6px 18px rgba(43, 15, 28, .06);

  --font-display: "Abril Fatface", "Bodoni 72", Didot, "Bodoni MT", "Playfair Display", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(.875rem, .86rem + .08vw, .9375rem);
  --step-0: clamp(1.0625rem, 1.04rem + .12vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.18rem + .35vw, 1.45rem);
  --step-2: clamp(1.6rem, 1.4rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.3vw, 3.1rem);
  --step-4: clamp(2.6rem, 1.7rem + 4.4vw, 4.9rem);

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 6rem;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px;
  --container: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #19090F;
    --surface: #261019;
    --surface-2: #35182A;
    --text: #FDEFF3;
    --muted: #D6AFBD;
    --border: #4F2A3C;
    --border-strong: #A97089;
    --primary: #FF86AB;
    --primary-hover: #FFA6C1;
    --on-primary: #2B0F1C;
    --velvet: #4A081D;
    --velvet-deep: #380615;
    --velvet-pleat: #560B24;
    --footer-bg: #11050A;
    --success: #6EDDA5;
    --success-bg: #12301F;
    --error: #FF9F97;
    --error-bg: #3A1514;
    --info-bg: #35182A;
    --focus: #5FD6D0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1 0 auto; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 var(--s3); line-height: 1.12; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .005em; }
h1 { font-size: var(--step-4); line-height: 1.02; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 700; font-family: var(--font-body); line-height: 1.25; }
p { margin: 0 0 var(--s4); }
ul, ol { margin: 0 0 var(--s4); padding-left: 1.25rem; }
li { margin-bottom: var(--s2); }
a { color: var(--primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--primary-hover); }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s6) 0; }
.num, .tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--r-sm); }
::selection { background: var(--gold); color: var(--on-gold); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(1.75rem, 4vw, 3rem); }
.section-head { max-width: 46rem; margin-bottom: var(--s6); }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; left: var(--s4); top: -5rem; z-index: 100;
  background: var(--text); color: var(--bg); padding: .75rem 1rem; border-radius: var(--r-md); font-weight: 700;
}
.skip-link:focus { top: var(--s3); color: var(--bg); }

/* ---------- Header (not sticky) ---------- */
.site-header { position: relative; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--text); border-radius: var(--r-md); }
.brand:hover { color: var(--text); }
.brand-mark { width: 46px; height: 46px; flex: none; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: .005em; }
.brand-sub { font-size: .8rem; font-weight: 700; letter-spacing: .09em; color: var(--muted); margin-top: .2rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: var(--s1); }
.site-nav li { margin: 0; }
.site-nav a {
  white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .95rem;
  color: var(--text); font-weight: 600; text-decoration: none; border-radius: var(--r-md);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.site-nav a:hover { background: var(--surface-2); color: var(--text); }
.site-nav a[aria-current="page"]:not(.nav-cta) { text-decoration: underline 3px var(--gold); text-underline-offset: 8px; }
.site-nav .nav-cta { background: var(--primary); color: var(--on-primary); margin-left: var(--s2); padding-inline: 1.3rem; }
.site-nav .nav-cta:hover { background: var(--primary-hover); color: var(--on-primary); }
.site-nav .nav-cta[aria-current="page"] { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center;
  background: var(--surface); color: var(--text); border: 2px solid var(--border-strong); border-radius: var(--r-md); cursor: pointer;
}
.nav-toggle-bars { position: relative; width: 22px; height: 16px; display: block; }
.nav-toggle-bars span { position: absolute; left: 0; width: 100%; height: 2.5px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle-bars span:nth-of-type(1) { top: 0; }
.nav-toggle-bars span:nth-of-type(2) { top: 6.75px; }
.nav-toggle-bars span:nth-of-type(3) { top: 13.5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-of-type(1) { transform: translateY(6.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-of-type(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-of-type(3) { transform: translateY(-6.75px) rotate(-45deg); }

@media (max-width: 899px) {
  .header-inner { min-height: 68px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: .72rem; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { width: 100%; order: 3; flex-basis: 100%; }
  .js .site-nav {
    position: absolute; left: 0; right: 0; top: 100%; width: auto; order: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    padding: var(--s3) clamp(1rem, 4vw, 2rem) var(--s5);
    opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s linear .22s;
  }
  .js .site-nav.is-open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: var(--s1); }
  .site-nav a { min-height: 52px; font-size: 1.1rem; padding-inline: 1rem; }
  .site-nav .nav-cta { margin: var(--s2) 0 0; justify-content: center; display: flex; }
  .header-inner { flex-wrap: wrap; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; flex-direction: row; padding-bottom: var(--s3); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.4rem; font: 700 1rem/1.2 var(--font-body);
  border: 2px solid rgba(0, 0, 0, 0); border-radius: var(--r-md); cursor: pointer; text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .12s var(--ease), color .2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-hover); color: var(--on-gold); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-quiet { background: rgba(0, 0, 0, 0); color: var(--primary); padding-inline: .9rem; }
.btn-quiet:hover { background: var(--surface-2); color: var(--primary-hover); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* ---------- Signature: the bulb-lit marquee sign ---------- */
.marquee {
  --bulb-dim: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='%23A9791F'%3E%3Ccircle cx='22' cy='5.5' r='3.2'/%3E%3Ccircle cx='22' cy='38.5' r='3.2'/%3E%3Ccircle cx='5.5' cy='22' r='3.2'/%3E%3Ccircle cx='38.5' cy='22' r='3.2'/%3E%3Ccircle cx='5.5' cy='5.5' r='3.2'/%3E%3Ccircle cx='38.5' cy='5.5' r='3.2'/%3E%3Ccircle cx='5.5' cy='38.5' r='3.2'/%3E%3Ccircle cx='38.5' cy='38.5' r='3.2'/%3E%3C/g%3E%3C/svg%3E");
  --bulb-lit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cg fill='%23FFD36E'%3E%3Ccircle cx='22' cy='5.5' r='3.2'/%3E%3Ccircle cx='22' cy='38.5' r='3.2'/%3E%3Ccircle cx='5.5' cy='22' r='3.2'/%3E%3Ccircle cx='38.5' cy='22' r='3.2'/%3E%3Ccircle cx='5.5' cy='5.5' r='3.2'/%3E%3Ccircle cx='38.5' cy='5.5' r='3.2'/%3E%3Ccircle cx='5.5' cy='38.5' r='3.2'/%3E%3Ccircle cx='38.5' cy='38.5' r='3.2'/%3E%3C/g%3E%3C/svg%3E");
  position: relative; color: var(--on-velvet); text-align: center;
  background: repeating-linear-gradient(90deg, var(--velvet) 0 34px, var(--velvet-pleat) 34px 52px, var(--velvet-deep) 52px 78px);
  border: 11px solid var(--gold); border-image: var(--bulb-dim) 11 / 11px round;
  padding: clamp(1.4rem, 3vw, 2.2rem) clamp(1rem, 3vw, 2rem);
}
.marquee::after {
  content: ""; position: absolute; inset: -11px; pointer-events: none;
  border: 11px solid var(--gold); border-image: var(--bulb-lit) 11 / 11px round;
  animation: bulbs 2.6s ease-in-out infinite alternate;
}
@keyframes bulbs { from { opacity: .25; } to { opacity: 1; } }
.marquee-kicker { margin: 0 0 var(--s2); color: var(--on-velvet-muted); font-weight: 600; font-size: var(--step--1); }
.marquee-name {
  margin: 0; min-height: 2.1em; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 400; color: var(--sign-text);
  font-size: clamp(2.1rem, 1.3rem + 4vw, 3.9rem); line-height: 1.04; text-wrap: balance; overflow-wrap: anywhere;
  text-shadow: 0 0 22px rgba(244, 183, 61, .35);
}
.marquee-meaning { margin: var(--s3) auto 0; max-width: 34rem; color: var(--on-velvet); font-size: var(--step--1); min-height: 3em; }

/* ---------- Forms ---------- */
.field { margin-bottom: var(--s4); }
.field label, .legend { display: block; font-weight: 700; margin-bottom: var(--s1); }
.hint { display: block; margin: 0 0 var(--s2); font-size: var(--step--1); color: var(--muted); }
.input, .select {
  width: 100%; min-height: 48px; padding: .6rem .85rem; font: 500 1rem/1.3 var(--font-body);
  color: var(--text); background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--r-md);
}
.select { appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A5627B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; }
.input:focus-visible, .select:focus-visible { outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--error); }
.field-error { display: none; align-items: flex-start; gap: .4rem; margin-top: var(--s2); color: var(--error); font-weight: 600; font-size: var(--step--1); }
.field-error.is-shown { display: flex; }
.field-error .icon { margin-top: .1rem; }
fieldset { border: 0; padding: 0; margin: 0 0 var(--s4); min-width: 0; }
.check { display: flex; align-items: flex-start; gap: .7rem; min-height: 44px; padding: .4rem 0; cursor: pointer; }
.check input { width: 24px; height: 24px; margin: .1rem 0 0; accent-color: var(--primary); flex: none; cursor: pointer; }
.check span small { display: block; color: var(--muted); font-size: var(--step--1); }

.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: var(--s2); }
.chip { position: relative; display: block; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.chip > span {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 48px; padding: .55rem .85rem;
  font-weight: 600; font-size: .98rem; line-height: 1.2; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-md);
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.chip:hover > span { border-color: var(--border-strong); }
.chip svg { display: none; color: var(--primary); }
.chip input:checked + span { border-color: var(--primary); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--primary); }
.chip input:checked + span svg { display: block; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--r-md); border: 2px solid var(--border); background: var(--info-bg); font-size: var(--step--1); }
.alert--error { background: var(--error-bg); border-color: var(--error); }
.alert--success { background: var(--success-bg); border-color: var(--success); }
.alert--error .icon { color: var(--error); }
.alert--success .icon { color: var(--success); }
.alert p:last-of-type { margin-bottom: 0; }
.alert[hidden] { display: none; }

/* ---------- Breadcrumbs ---------- */
.crumbs { padding-top: var(--s5); font-size: var(--step--1); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .6rem; }
.crumbs li { margin: 0; display: inline-flex; gap: .6rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; content: "/" / ""; color: var(--border-strong); }
.crumbs a { color: var(--muted); }

.page-head { padding-block: var(--s5) var(--s6); }
.page-head h1 { font-size: var(--step-3); }
.page-head .lede { margin-bottom: 0; }

/* ---------- Home ---------- */
.hero { padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
.hero h1 { margin-bottom: var(--s4); }
.hero .lede { margin-bottom: var(--s5); }
.hero-note { margin: var(--s4) 0 0; font-size: var(--step--1); color: var(--muted); }
.stage {
  background: var(--velvet-deep); border-radius: var(--r-lg); padding: clamp(1rem, 3vw, 1.75rem);
  background-image: repeating-linear-gradient(90deg, var(--velvet-deep) 0 30px, #3F0617 30px 44px, var(--velvet-deep) 44px 70px);
}
.stage .marquee { margin: var(--s2) var(--s2) var(--s5); }
.mini-controls { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.mini-controls .chip { flex: 1 1 8.5rem; }
.mini-controls .chip > span { background: var(--surface); color: var(--text); justify-content: center; text-align: center; }
.mini-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; align-items: center; margin-top: var(--s4); }
.stage .mini-link { color: var(--on-velvet); font-weight: 600; }
.stage .mini-link:hover { color: var(--sign-text); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.02fr .98fr; gap: var(--s8); }
  .stage .marquee { transform: rotate(-1.4deg); }
}

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 var(--s7); }
.benefit { margin: 0; padding: var(--s5) 0; border-top: 2px solid var(--border); display: grid; grid-template-columns: auto 1fr; gap: var(--s4); }
.benefit .icon { width: 2rem; height: 2rem; color: var(--primary); margin-top: .15rem; }
.benefit h3 { margin-bottom: var(--s1); }
.benefit p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .benefits { grid-template-columns: 1fr 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s6); counter-reset: step; }
.step { margin: 0; padding-top: var(--s4); border-top: 4px solid var(--primary); }
.step-num { display: block; font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--primary); margin-bottom: var(--s2); font-variant-numeric: tabular-nums; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }

.bill-list { list-style: none; margin: 0; padding: 0; }
.bill-list li { margin: 0; }
.bill-row {
  display: grid; grid-template-columns: 1fr auto; gap: .15rem var(--s5); align-items: baseline; padding: var(--s4) var(--s3);
  color: var(--text); text-decoration: none; border-bottom: 1px dotted var(--border-strong);
  transition: background-color .2s var(--ease), padding .2s var(--ease);
}
.bill-row:hover { background: var(--surface-2); color: var(--text); padding-left: var(--s4); }
.bill-style { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; }
.bill-blurb { grid-column: 1; color: var(--muted); font-size: var(--step--1); }
.bill-example { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; color: var(--primary); text-align: right; display: inline-flex; align-items: center; gap: .4rem; }
.bill-list li:first-of-type .bill-row { border-top: 1px dotted var(--border-strong); }
@media (max-width: 559px) {
  .bill-row { grid-template-columns: 1fr; }
  .bill-example { grid-column: 1; grid-row: auto; justify-content: flex-start; text-align: left; margin-top: .25rem; }
}
.use-list { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s3) var(--s6); }
.use-list li { margin: 0; display: flex; gap: .7rem; align-items: flex-start; }
.use-list .icon { color: var(--primary); margin-top: .2rem; }
@media (min-width: 760px) { .use-list { grid-template-columns: 1fr 1fr; } }

.band { background: var(--velvet); color: var(--on-velvet);
  background-image: repeating-linear-gradient(90deg, var(--velvet) 0 34px, var(--velvet-pleat) 34px 52px, var(--velvet-deep) 52px 78px); }
.band h2 { color: var(--sign-text); }
.band a { color: var(--sign-text); }
.band a:hover { color: #fff; }
.band .section-head p { color: var(--on-velvet-muted); }
.band-points { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s5); }
.band-points li { margin: 0; padding: var(--s4) var(--s5); background: rgba(43, 10, 22, .72); border-left: 4px solid var(--gold); }
.band-points h3 { color: #fff; margin-bottom: var(--s1); }
.band-points p { margin: 0; color: var(--on-velvet-muted); }
@media (min-width: 860px) { .band-points { grid-template-columns: repeat(3, 1fr); } }

.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--border-strong); }
.faq details:first-of-type { border-top: 1px solid var(--border-strong); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: 56px; padding: var(--s3) 0; font-weight: 700; font-size: var(--step-0); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--primary); border-bottom: 3px solid var(--primary); transform: rotate(45deg); transition: transform .25s var(--ease); margin-right: .3rem; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 0 var(--s4); color: var(--text); max-width: 46rem; }
.faq .answer p:last-of-type { margin-bottom: 0; }

.cta-wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cta-sign { max-width: 52rem; margin-inline: auto; }
.cta-sign h2 { color: var(--sign-text); margin-bottom: var(--s3); }
.cta-sign p { color: var(--on-velvet); max-width: 34rem; margin: 0 auto var(--s5); }

/* ---------- Tool page ---------- */
.tool-grid { display: grid; gap: var(--s6); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(1.1rem, 3vw, 1.75rem); box-shadow: var(--shadow); }
.panel h2 { font-size: var(--step-2); margin-bottom: var(--s4); }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.form-actions .btn-primary { flex: 1 1 100%; }
.form-actions .btn-ghost { flex: 1 1 8rem; }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); gap: var(--s7); } }

.results { min-height: 34rem; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.results-head h2 { margin: 0; }
.status { min-height: 1.6em; margin: 0 0 var(--s3); font-size: var(--step--1); color: var(--muted); }
.empty { padding: var(--s7) var(--s4); text-align: center; border: 2px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--muted); }
.empty .icon { width: 2.5rem; height: 2.5rem; color: var(--primary); margin-bottom: var(--s3); }
.empty h3 { color: var(--text); }
.empty p { max-width: 24rem; margin-inline: auto; }
.results[aria-busy="true"] .results-body { opacity: .45; transition: opacity .15s; }
.results-body { transition: opacity .2s; }

.bills { list-style: none; margin: var(--s5) 0 0; padding: 0; }
.bill { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem var(--s3); align-items: center; padding: var(--s4) 0; border-bottom: 1px dotted var(--border-strong); }
.bill:first-of-type { border-top: 1px dotted var(--border-strong); }
.bill-name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; overflow-wrap: anywhere; }
.bill-meaning { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: var(--step--1); }
.bill-actions { display: flex; gap: var(--s1); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0); color: var(--text); border: 2px solid rgba(0, 0, 0, 0); border-radius: var(--r-md); cursor: pointer; transition: background-color .15s var(--ease); }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn[aria-pressed="true"] { color: var(--primary); background: var(--surface-2); border-color: var(--primary); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }
.results-tools { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.explain { margin-top: var(--s5); padding: var(--s4) var(--s5); background: var(--surface-2); border-radius: var(--r-md); font-size: var(--step--1); }
.explain h3 { font-size: 1.05rem; margin-bottom: var(--s2); }
.explain p { margin-bottom: var(--s2); }
.explain p:last-of-type { margin-bottom: 0; }
.big-figure { font-family: var(--font-display); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--primary); }
.notice-list { margin: 0 0 var(--s3); padding-left: 1.1rem; }

.shortlist { margin-top: var(--s6); }
.shortlist h2 { font-size: var(--step-2); }
.shortlist-list { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.shortlist-list li { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--border); }
.shortlist-list .nm { font-family: var(--font-display); font-size: 1.35rem; overflow-wrap: anywhere; }

.loading-row { height: 1.1rem; margin: var(--s3) 0; border-radius: 4px; background: var(--border); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { from { opacity: .4; } to { opacity: 1; } }

/* ---------- Content blocks ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s7); }
.prose h3 { margin-top: var(--s5); }
.prose > h2:first-of-type { margin-top: 0; }
.prose-wide { max-width: 60rem; }
.meta-line { color: var(--muted); font-size: var(--step--1); margin-bottom: var(--s5); }
.formula { margin: var(--s4) 0; padding: var(--s4) var(--s5); background: var(--surface-2); border-left: 4px solid var(--primary); border-radius: 0 var(--r-md) var(--r-md) 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.example { margin: var(--s4) 0; padding: var(--s4) var(--s5); border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); }
.example h3 { margin-top: 0; font-size: 1.1rem; }
.example p:last-of-type { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: var(--s4) 0; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); font-variant-numeric: tabular-nums; min-width: 34rem; }
.data-table th, .data-table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--surface-2); font-weight: 700; }
.data-table td.r, .data-table th.r { text-align: right; }
.data-table tbody tr:last-of-type td, .data-table tbody tr:last-of-type th { border-bottom: 0; }
.data-table tbody th { font-weight: 600; background: rgba(0, 0, 0, 0); }
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: var(--s7); } }
.mistakes { padding-left: 0; list-style: none; }
.mistakes li { display: flex; gap: .7rem; align-items: flex-start; }
.mistakes .icon { color: var(--primary); margin-top: .25rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: var(--s6); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--s7); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.counter { text-align: right; font-size: var(--step--1); color: var(--muted); margin-top: var(--s1); }
textarea.input { min-height: 9rem; resize: vertical; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding-block: clamp(3rem, 8vw, 6rem); }
.lost .marquee { max-width: 36rem; margin: 0 auto var(--s6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: auto; }
.footer-grid { display: grid; gap: var(--s6); padding-block: var(--s7) var(--s6); }
.footer-brand .brand { color: #fff; margin-bottom: var(--s3); }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand-sub { color: var(--footer-text); }
.footer-brand p { max-width: 24rem; margin: 0; font-size: var(--step--1); }
.site-footer h2 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: var(--s3); letter-spacing: .02em; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin: 0; }
.footer-links a { display: inline-block; padding: .4rem 0; min-height: 40px; color: var(--footer-text); text-decoration: none; }
.footer-links a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { border-top: 1px solid rgba(246, 217, 227, .22); padding-block: var(--s4); font-size: var(--step--1); }
.footer-bottom p { margin: 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s7); } }
.site-footer :focus-visible { outline-color: var(--gold); }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee::after { opacity: 1; }
  .stage .marquee { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #333; }
  .site-header, .site-footer, .skip-link, .crumbs, .tool-form, .results-tools, .bill-actions, .below-tool, .page-head .lede, .no-print, .shortlist .btn { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .tool-grid { display: block; }
  .panel { border: 0; box-shadow: none; padding: 0; }
  .marquee { background: #fff; color: #000; border: 3px double #000; border-image: none; }
  .marquee::after { display: none; }
  .marquee-name, .marquee-meaning, .marquee-kicker { color: #000; text-shadow: none; }
  .bill, .shortlist-list li { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

main:focus { outline: none; }

.container.prose, .container.prose-wide { max-width: var(--container); }
.container.prose > * { max-width: 46rem; }
.container.prose-wide > * { max-width: 60rem; }
.container.prose > .table-wrap, .container.prose-wide > .table-wrap { max-width: 60rem; }

/* ---------- Byline and author block ---------- */
.byline { margin: 0 0 var(--s4); font-size: var(--step--1); color: var(--muted); }
.author-box { display: grid; grid-template-columns: auto 1fr; gap: var(--s5); align-items: start; margin: var(--s5) 0; padding: var(--s5); background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-lg); }
.author-mark { width: 72px; height: 72px; border-radius: var(--r-md); background: var(--velvet); color: var(--sign-text); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 2.2rem; }
.author-box h3 { margin: 0 0 var(--s1); }
.author-box p { margin-bottom: var(--s3); }
.author-box p:last-of-type { margin-bottom: 0; }
@media (max-width: 559px) { .author-box { grid-template-columns: 1fr; } }
.container.prose .author-box, .container.prose-wide .author-box { max-width: 100%; }
.pair { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .pair { grid-template-columns: 1fr 1fr; } }
.pair h3 { margin-top: 0; }
