@font-face { font-family: Poppins; src: url(/fonts/Poppins-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/Poppins-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Lora; src: url(/fonts/Lora-Variable.ttf) format('truetype'); font-weight: 400 700; font-display: swap; }

:root {
  --p: #ff7eb6;
  --p-deep: #e2589a;
  --a: #ffd1e6;
  --bg: #fff6fa;
  --ink: #4a2338;
  --muted: #8a6378;
  --line: #f3d3e2;
  --panel: #ffffff;
  --ok: #2bb673;
  --bad: #e0435a;
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Poppins, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--p-deep); }
img { max-width: 100%; }
code { background: rgba(0,0,0,.06); padding: .1em .4em; border-radius: 6px; font-size: .92em; }
h1, h2, h3 { line-height: 1.2; }
.muted { color: var(--muted); }
.tiny { font-size: .82rem; }
.center { text-align: center; }
.mt { margin-top: 1.5rem; }
.inline { display: inline; margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--p); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; border: 0; cursor: pointer;
  background: var(--p); color: #fff; font: 700 1rem Poppins, sans-serif; padding: .7em 1.3em; border-radius: 999px;
  text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.12); transition: transform .12s, box-shadow .12s, filter .12s; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.btn.big { font-size: 1.1rem; padding: .9em 1.6em; }
.btn.small { font-size: .85rem; padding: .45em .95em; }
.btn.ghost { background: #fff; color: #3d2432; box-shadow: inset 0 0 0 2px var(--line), 0 3px 0 rgba(0,0,0,.06); }
.btn.twitch { background: #9146ff; }
.btn.discord { background: #5865f2; }
.btn.danger { background: var(--bad); }
.btn[disabled] { opacity: .6; cursor: default; }
button.link { background: none; border: 0; color: var(--ink); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
button.copy { background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-family: inherit; color: var(--ink); padding: .1em .55em; }

/* ---------- nav / footer ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem, 4vw, 3rem); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: 1.1rem; }
.nav nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 3rem 1rem 2rem; }
.foot p { margin: .2rem 0; }
.flash { max-width: 1100px; margin: 0 auto 1rem; padding: .8rem 1.1rem; border-radius: 12px; font-weight: 500; }
.flash.ok { background: #e3f8ee; color: #155b3a; }
.flash.error { background: #fde6ea; color: #8d1d2f; }

/* ---------- home ---------- */
.home { max-width: 1180px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 2rem; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 2rem 0 3rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--p-deep); margin: 0 0 .5rem; }
.eyebrow a { text-decoration: none; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin: 0 0 1rem; letter-spacing: -.01em; }
.strike { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: .12em; color: #5c6b7c; }
.pop { color: var(--p-deep); }
.lead { font-size: 1.12rem; max-width: 36rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 .8rem; }
.hero-cards { position: relative; min-height: 360px; }
.demo-card { position: absolute; width: 82%; border-radius: 22px; overflow: hidden; box-shadow: 0 24px 50px rgba(74,35,56,.22); }
.demo-card img { display: block; }
.demo-big { top: 0; left: 0; transform: rotate(-6deg); }
.demo-little { top: 26%; right: 0; transform: rotate(4deg); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { background: var(--panel); border-radius: var(--radius); padding: 1.4rem; box-shadow: 0 2px 0 var(--line); }
.feature h3 { margin: .4rem 0; }
.feature p { margin: 0; color: var(--muted); }
.f-icon { font-size: 1.7rem; }

/* ---------- panels / forms ---------- */
.narrow { max-width: 460px; margin: 3rem auto; padding: 0 1rem; }
.panel { background: var(--panel); border-radius: var(--radius); padding: 2rem; box-shadow: 0 2px 0 var(--line), 0 18px 40px rgba(74,35,56,.08); }
.panel.center { text-align: center; }
.stack { display: grid; gap: .8rem; margin: 1.4rem 0; }
.big-emoji { font-size: 3rem; }
label { display: grid; gap: .3rem; font-weight: 500; font-size: .92rem; margin-bottom: .9rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .6em .8em; width: 100%; }
textarea { resize: vertical; font-size: .9rem; line-height: 1.5; }
input[type=color] { padding: .2em; height: 2.6em; cursor: pointer; }
input:focus, select:focus, textarea:focus { border-color: var(--p); outline: none; }
label.check { display: flex; align-items: center; gap: .6rem; }
label.check input { width: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 .8rem; }
.warn { background: #fff5d6; color: #6b4d00; border-radius: 12px; padding: .7rem 1rem; font-size: .92rem; }

/* ---------- dashboard ---------- */
.dash { max-width: 1180px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 3rem) 2rem; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.dash-head h1 { margin: 0 0 .3rem; }
.dash-head p { margin: 0; }
.linked { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: .2em .7em; border-radius: 999px; background: #f1e6ec; color: var(--muted); }
.pill.on { background: #e3f8ee; color: #155b3a; }
.pill.bad { background: #fde6ea; color: #8d1d2f; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.office { position: relative; display: block; background: var(--panel); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: var(--ink); overflow: hidden; box-shadow: 0 2px 0 var(--line); }
.office:hover { box-shadow: 0 2px 0 var(--line), 0 14px 30px rgba(74,35,56,.12); }
.office-band { position: absolute; inset: 0 0 auto 0; height: 8px; background: linear-gradient(90deg, var(--p), var(--a)); }
.office h3 { margin: .3rem 0 0; }
.office p { margin: .3rem 0; }
.office-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
.office.new { border: 2px dashed var(--line); background: transparent; box-shadow: none; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; border-bottom: 2px solid var(--line); margin-bottom: 1.6rem; }
.tabs button { background: none; border: 0; font: 600 .95rem Poppins, sans-serif; color: var(--muted); padding: .7rem 1rem; cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected=true] { color: var(--ink); border-color: var(--p); }
.tab-panel h2 { font-size: 1.15rem; margin: 1.6rem 0 .7rem; }
.tab-panel h2:first-child { margin-top: 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; }
.split.three { grid-template-columns: repeat(3, 1fr); gap: 0 1rem; }
.preview-col { position: sticky; top: 1rem; align-self: start; }
.preview-flip { cursor: pointer; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.preset { display: flex; align-items: center; gap: .5rem; border: 2px solid var(--line); border-radius: 12px; padding: .45rem .6rem; margin: 0; cursor: pointer; font-size: .85rem; }
.preset input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.preset:has(input:checked) { border-color: var(--ink); }
.preset:has(input:focus-visible) { outline: 3px solid var(--p); }
.swatch { width: 22px; height: 22px; border-radius: 50%; flex: none; background: conic-gradient(var(--p) 0 50%, var(--a) 0 75%, var(--bg) 0); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.preset.custom .swatch { background: conic-gradient(#ff7eb6, #ffb627, #3fcf9a, #5ab8ff, #a67cff, #ff7eb6); }
.save-bar { position: sticky; bottom: 0; padding: .9rem 0; background: var(--bg); box-shadow: 0 -10px 14px -6px var(--bg); margin-top: 1rem; z-index: 5; }
.secret { display: flex; gap: .5rem; align-items: center; }
.secret input.blur { filter: blur(5px); }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .7rem; }
.list { list-style: none; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hidden-row { opacity: .45; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { background: var(--panel); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: 0 2px 0 var(--line); }
.stat b { display: block; font-size: 1.8rem; }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- cards (shared) ---------- */
.card-svg svg { display: block; width: 100%; height: auto; }
.card-svg.shadow svg { filter: drop-shadow(0 22px 40px rgba(0,0,0,.18)); }
.card-stage { perspective: 1600px; margin: 1.4rem 0; }
.card-flip { position: relative; transition: transform .9s cubic-bezier(.3,1.4,.5,1); transform-style: preserve-3d; }
.card-flip.flipped { transform: rotateY(180deg); }
.card-face { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-face > .card-svg svg { filter: drop-shadow(0 18px 34px rgba(0,0,0,.2)); }
.card-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.card-front { position: relative; }
.stamp { position: absolute; inset: 0; opacity: 0; transform: scale(2.6); pointer-events: none; }
.stamp svg { width: 100%; height: 100%; }
.stamp.slam { animation: slam .32s cubic-bezier(.2,1.6,.4,1) forwards; }
@keyframes slam { 0% { opacity: 0; transform: scale(2.6); } 70% { opacity: 1; transform: scale(.94); } 100% { opacity: .95; transform: scale(1); } }
.shake { animation: shake .45s; }
@keyframes shake { 0%,100% { transform: none; } 20% { transform: translate(-6px, 3px); } 40% { transform: translate(5px, -4px); } 60% { transform: translate(-3px, 2px); } 80% { transform: translate(2px, -1px); } }

/* ---------- license page ---------- */
.license-wrap { max-width: 860px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem) 2rem; }
.license-head { text-align: center; margin-bottom: 1.6rem; }
.license-head h1 { margin: .2rem 0; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.reveal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 1.8rem 0 1rem; }

/* ---------- GOV (the disguise) ---------- */
body.gov { --g-ink: #1d2b3a; --g-navy: #2d4a6b; --g-gold: #b9963f; --g-line: #c9d3de; --g-bg: #eef2f6;
  background: var(--g-bg); color: var(--g-ink); font-family: Lora, Georgia, serif; transition: background 1.2s ease, color 1.2s ease; }
.gov-top { background: var(--g-navy); color: #fff; transition: background 1s; }
.gov-top-inner { max-width: 820px; margin: 0 auto; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; }
.gov-region { font: 700 .78rem Poppins, sans-serif; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.gov-agency { font-size: 1.35rem; }
.gov-stripe { height: 5px; background: var(--g-gold); transition: background 1s; }
.gov-main { max-width: 820px; margin: 0 auto; padding: 2rem 1.2rem 4rem; position: relative; }
.step { display: none; background: #fff; border: 1px solid var(--g-line); border-radius: 6px; padding: clamp(1.4rem, 4vw, 2.6rem); }
.step.active { display: block; animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step h1, .step h2 { font-weight: 600; margin: .2rem 0 1rem; outline: none; }
.step h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.gov-kicker { font: 700 .75rem Poppins, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6b7a8b; margin: 0; }
.gov-box { background: #f5f7fa; border-left: 4px solid var(--g-navy); padding: 1rem 1.3rem; margin: 1.3rem 0; }
.gov-box ul { margin: .5rem 0 0; }
.gov-btn { font: 700 1rem Poppins, sans-serif; background: var(--g-navy); color: #fff; border: 0; border-radius: 4px; padding: .85em 1.7em; cursor: pointer; margin-top: .6rem; }
.gov-btn:hover { background: #22394f; }
.gov-fine { font-size: .82rem; color: #6b7a8b; margin-top: 1.4rem; }
.gov-field { font-family: Poppins, sans-serif; }
.gov-field span { font-weight: 700; font-size: .86rem; }
.gov-field em { color: #b3261e; font-style: normal; }
.gov-field input { border-radius: 4px; border: 1px solid #9aa8b8; font-family: Lora, serif; font-size: 1.05rem; }
.gov-field input:focus { border-color: var(--g-navy); box-shadow: 0 0 0 3px rgba(45,74,107,.2); }
.gov-check { display: flex; align-items: flex-start; gap: .7rem; font-weight: 400; font-size: .95rem; margin: 1rem 0; }
.gov-check input { width: auto; margin-top: .3rem; }
.gov-error { color: #b3261e; font-weight: 600; font-family: Poppins, sans-serif; font-size: .92rem; }
.gov-progress { height: 8px; background: #e2e8ef; border-radius: 99px; overflow: hidden; margin: 1rem 0; }
.gov-progress.big { height: 16px; }
.gov-progress-bar { height: 100%; width: 0; background: var(--g-navy); transition: width .6s ease; }
.gov-qnum { font: 600 .85rem Poppins, sans-serif; color: #6b7a8b; margin: 1.2rem 0 0; }
.gov-answers { display: grid; gap: .7rem; margin-top: 1rem; }
.gov-answer { text-align: left; font: 1.05rem Lora, serif; color: var(--g-ink); background: #f8fafc; border: 1px solid #9aa8b8; border-radius: 4px; padding: .9rem 1.1rem; cursor: pointer; }
.gov-answer:hover, .gov-answer:focus-visible { background: #eaf0f6; border-color: var(--g-navy); }
.gov-proc-msg { font-style: italic; color: #4b5a6a; min-height: 1.6em; }
.step[data-step=reveal] { text-align: center; background: transparent; border: 0; padding: 0; }
.reveal-title { font-size: clamp(1.4rem, 4vw, 2rem); min-height: 2.4em; display: flex; align-items: center; justify-content: center; }
.reveal-sub { font-size: 1.1rem; min-height: 1.6em; }

/* the reveal: page turns cute */
body.gov.little-mode { background: var(--bg); color: var(--ink); font-family: Poppins, sans-serif; }
body.gov.little-mode .gov-top { background: var(--p); }
body.gov.little-mode .gov-stripe { background: var(--a); }
body.gov.little-mode .reveal-title { color: var(--ink); }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 50; }
.confetti span { position: absolute; top: -40px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-cards { min-height: 300px; }
  .features { grid-template-columns: 1fr; }
  .split, .split.three { grid-template-columns: 1fr; }
  .preview-col { position: static; order: -1; }
  .row4 { grid-template-columns: repeat(2, 1fr); }
  .table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* v2 bits */
.gov-other { font-size: .82rem; color: #6b7a8b; margin-top: .6rem; font-family: Poppins, sans-serif; }
.gov-other a { color: #2d4a6b; }
.btn.appeal { background: #2d4a6b; }
body.gov.shiny-mode .gov-top { background: linear-gradient(90deg, #ff9ad5, #ffe08a, #9be7ff, #c8a6ff, #ff9ad5); background-size: 300% 100%; animation: holo 4s linear infinite; }
@keyframes holo { to { background-position: 300% 0; } }
.coll-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.coll-head img { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 4px #fff, 0 6px 18px rgba(0,0,0,.15); }
.coll-head h1 { margin: 0; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; }
.coll-card { display: block; background: var(--panel); border-radius: 16px; padding: .6rem .6rem .8rem; text-decoration: none; color: var(--ink); box-shadow: 0 2px 0 var(--line); transition: transform .15s; }
.coll-card:hover { transform: translateY(-3px) rotate(-.6deg); }
.coll-card img { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 630; border-radius: 12px; background: var(--line); }
.coll-card .meta { display: flex; justify-content: space-between; gap: .5rem; font-size: .82rem; margin-top: .5rem; }
.coll-card .tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .35rem; }
.pill.shiny { background: linear-gradient(90deg, #ffd6ec, #fff3c4, #d3f4ff); color: #5b3a7a; }
.pill.special { background: #fff1c7; color: #6b4a00; }
.pill.appeal { background: #e4ecf7; color: #2d4a6b; }
.pill.cite { background: #dbe7ff; color: #1d4ed8; }
.board-page { max-width: 760px; margin: 0 auto; padding: 1rem clamp(1rem, 4vw, 2rem) 2rem; }
.board-list { list-style: none; padding: 0; margin: 1rem 0; }
.board-list li { display: flex; align-items: center; gap: 1rem; background: var(--panel); border-radius: 14px; padding: .7rem 1rem; margin-bottom: .6rem; box-shadow: 0 2px 0 var(--line); }
.board-list .rank { width: 2.2rem; text-align: center; font-weight: 700; font-size: 1.2rem; }
.board-list img { width: 42px; height: 42px; border-radius: 50%; }
.board-list .who { flex: 1; font-weight: 600; }
.board-list .score { font-weight: 700; color: var(--p-deep); font-size: 1.15rem; }
.citations { max-width: 640px; margin: 1.5rem auto 0; }
.citations li { margin-bottom: .4rem; }
.forms-table td { vertical-align: middle; }
.forms-table input[type=text], .forms-table input:not([type]) { padding: .4em .6em; font-size: .9rem; }
.inline-num { width: 7rem; display: inline-block; }
