:root {
  --bg: #0A0A0A;
  --surface: #141414;
  --elev: #1C1C1C;
  --phosphor: #FF0099;            /* electric magenta */
  --phosphor-dim: #B3006B;        /* dimmed magenta for secondary */
  --phosphor-faint: rgba(255, 0, 153, 0.20);
  --phosphor-soft: rgba(255, 0, 153, 0.08);
  --ink: #F2F2EA;
  --ink-soft: #9A9A92;
  --ink-faint: #5A5A52;
  --warn: #FFB84D;                /* amber — secondary alert (re-tuned for magenta primary) */
  --bad: #FF3D3D;                 /* red — fail */
  --rule: rgba(255, 0, 153, 0.14);
  --rule-strong: rgba(255, 0, 153, 0.30);
  --shadow: 0 0 0 1px var(--rule), 0 24px 48px rgba(0, 0, 0, 0.6);

  --good: var(--phosphor);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
html, body {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
  font-feature-settings: "ss02" 1, "calt" 1;
}

body {
  position: relative;
  background:
    radial-gradient(1100px 550px at 75% -10%, rgba(255, 0, 153, 0.06), transparent 60%),
    radial-gradient(800px 500px at 0% 70%, rgba(255, 138, 31, 0.04), transparent 60%),
    var(--bg);
}

.grid-bg {
  position: fixed; inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--phosphor-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--phosphor-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 80%);
  opacity: 0.6;
  z-index: 0;
}

.status-bar {
  position: relative; z-index: 2;
  display: flex; flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
}
.status-bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--phosphor) 0 12px,
    #0A0A0A 12px 24px
  );
  opacity: 0.7;
}
.status-cell { display: inline-flex; align-items: center; gap: 8px; }
.status-clock { margin-left: auto; color: var(--phosphor); font-variant-numeric: tabular-nums; }
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
}
.status-dot-on {
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  padding: 28px 24px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
}

/* ---------- panels ---------- */
.glass {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 0, 153, 0.04) 0%, transparent 30%);
  opacity: 0.6;
}

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.brand-mark {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 700;
  color: var(--phosphor);
  letter-spacing: 0.05em;
}
.brand-mark-glyph {
  display: inline-block;
  animation: blink 1.2s steps(2) infinite;
}
@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.brand-name { letter-spacing: 0.06em; }
.brand-name-dim { color: var(--ink-soft); font-weight: 500; }

.nav-links {
  display: flex; gap: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 12px;
  border-radius: 3px;
  transition: 0.18s ease;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--phosphor);
  background: var(--phosphor-soft);
}
.nav-cta {
  background: transparent;
  color: var(--phosphor);
  border: 1px solid var(--phosphor);
  padding: 9px 16px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  font-family: inherit;
  transition: 0.18s ease;
}
.nav-cta:hover {
  background: var(--phosphor);
  color: var(--bg);
  box-shadow: 0 0 24px rgba(255, 0, 153, 0.4);
}
@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 56px 12px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  background: var(--phosphor-soft);
  max-width: 100%;
  text-align: center;
  line-height: 1.5;
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
  flex-shrink: 0;
}

h1 {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 900px;
  color: var(--ink);
}
h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--phosphor);
  text-shadow: 0 0 24px rgba(255, 0, 153, 0.35);
}
.caret {
  display: inline-block;
  color: var(--phosphor);
  margin-left: 6px;
  animation: blink 1s steps(2) infinite;
}
.sub {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 600px;
  line-height: 1.65;
}

/* ---------- mode toggle ---------- */
.mode-toggle {
  width: 100%; max-width: 720px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--surface);
  margin-top: 4px;
}
.mode-toggle-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) { .mode-toggle-3 { grid-template-columns: 1fr; } }

.mode-btn {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  font-family: inherit;
  color: var(--ink-soft);
  transition: 0.18s ease;
  position: relative;
}
.mode-btn:hover {
  background: var(--phosphor-soft);
  color: var(--ink);
}
.mode-btn.is-active {
  background: var(--elev);
  border-color: var(--phosphor);
  color: var(--phosphor);
  box-shadow: inset 0 0 0 1px var(--phosphor);
}
.mode-btn.is-active::before {
  content: "▶";
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  font-size: 8px;
  color: var(--phosphor);
}
.mode-btn.is-active { padding-left: 22px; }
.mode-title {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 8px;
}
.mode-meta {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.mode-btn.is-active .mode-meta { color: var(--phosphor-dim); }
.mode-badge {
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.12em;
  padding: 2px 6px; border-radius: 2px;
  background: var(--phosphor);
  color: var(--bg);
}

/* ---------- ad type selector ---------- */
.ad-type-row {
  width: 100%; max-width: 720px;
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
}
.ad-type-label {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  text-transform: uppercase;
}
.ad-type-select-wrap { position: relative; flex: 1; }
.ad-type-select-wrap::after {
  content: "▾";
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--phosphor);
  pointer-events: none;
}
.ad-type-select {
  width: 100%;
  appearance: none; -webkit-appearance: none;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 10px 36px 10px 14px;
  font-size: 12px;
  font-family: inherit;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: 0.18s ease;
}
.ad-type-select:hover { border-color: var(--phosphor-dim); }
.ad-type-select:focus {
  outline: none;
  border-color: var(--phosphor);
  box-shadow: 0 0 0 1px var(--phosphor);
}
.ad-type-select option { background: var(--bg); color: var(--ink); }

/* ---------- usage counter ---------- */
.usage-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
}
.usage-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.02);
}
.usage-pill .usage-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phosphor);
  box-shadow: 0 0 6px var(--phosphor);
}
.usage-pill[data-tone="warn"] { color: var(--ink); border-color: rgba(255, 0, 153, 0.45); }
.usage-pill[data-tone="bad"]  { color: var(--ink); border-color: var(--phosphor); background: rgba(255, 0, 153, 0.08); }
.usage-pill[data-tone="bad"] .usage-dot { animation: usage-pulse 1.4s ease-in-out infinite; }
@keyframes usage-pulse {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}
.usage-meta { color: var(--ink-faint); text-transform: none; letter-spacing: 0.06em; }

/* ---------- dropzone ---------- */
.drop {
  width: 100%; max-width: 720px;
  margin-top: 8px;
  padding: 56px 32px;
  border: 1px dashed var(--rule-strong);
  border-radius: 4px;
  background: var(--surface);
  text-align: center;
  cursor: pointer;
  transition: 0.25s ease;
  position: relative;
  display: block;
}
.drop:hover, .drop.dragover {
  border-color: var(--phosphor);
  background: linear-gradient(180deg, rgba(255, 0, 153, 0.04), transparent);
  transform: translateY(-1px);
}
.drop.dragover { box-shadow: 0 0 0 1px var(--phosphor), 0 0 32px rgba(255, 0, 153, 0.15); }
.drop.loading { cursor: wait; opacity: 0.85; }
.drop-corner {
  position: absolute;
  width: 14px; height: 14px;
  border: 1.5px solid var(--phosphor);
  pointer-events: none;
}
.drop-corner-tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.drop-corner-tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.drop-corner-bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.drop-corner-br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.drop-icon {
  width: 56px; height: 56px; margin: 0 auto 18px;
  border: 1px solid var(--phosphor-dim);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  background: var(--elev);
}
.drop-icon svg { width: 22px; height: 22px; stroke: var(--phosphor); }
.drop.loading .drop-icon svg { animation: pulse-icon 1.4s ease-in-out infinite; }
@keyframes pulse-icon {
  0%, 100% { opacity: 0.4; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.06); }
}
.drop-title {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--ink);
  margin-bottom: 8px;
}
.drop-sub {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.drop-formats {
  display: flex; gap: 6px; justify-content: center; margin-top: 18px;
}
.format-chip {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  padding: 3px 9px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--phosphor-dim);
  font-weight: 600;
}

/* ---------- result panels ---------- */
.result-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 880px) { .result-wrap { grid-template-columns: 1fr; } }

.preview {
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 420px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.preview-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.preview-head::before {
  content: "ASSET ▸";
  color: var(--phosphor);
  font-weight: 600;
  margin-right: 8px;
}
.preview-img {
  flex: 1;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #000;
  position: relative;
  overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  min-height: 360px;
}
.preview-img img { width: 100%; height: 100%; object-fit: contain; display: block; }

.scorecard {
  padding: 24px;
  display: flex; flex-direction: column; gap: 24px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.score-head {
  display: flex; align-items: center; gap: 24px;
}
.score-ring {
  --val: 0;
  --ring-color: var(--phosphor);
  width: 130px; height: 130px;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) calc(var(--val) * 1%), rgba(255,255,255,0.04) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  transition: --val 0.6s ease;
  box-shadow: 0 0 32px rgba(255, 0, 153, 0.15);
}
.score-ring.warn { --ring-color: var(--warn); box-shadow: 0 0 32px rgba(255, 184, 77, 0.15); }
.score-ring.bad  { --ring-color: var(--bad);  box-shadow: 0 0 32px rgba(255, 110, 110, 0.15); }
.score-ring::after {
  content: "";
  position: absolute; inset: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--rule);
}
.score-ring span {
  position: relative; z-index: 1;
  font-size: 38px; font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ring-color);
  text-shadow: 0 0 16px var(--ring-color);
}
.score-ring small {
  position: relative; z-index: 1;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  margin-left: 3px;
}
.score-meta h2 {
  font-size: 18px; font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink);
}
.score-meta p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 320px;
}

.categories { display: flex; flex-direction: column; gap: 6px; }
.cat {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--elev);
  transition: 0.2s ease;
}
.cat:hover { border-color: var(--phosphor-dim); }
.cat-ico {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--surface);
}
.cat-ico svg { width: 14px; height: 14px; stroke: var(--phosphor-dim); }
.cat-body { display: flex; flex-direction: column; gap: 6px; }
.cat-name {
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.cat-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 2px;
  overflow: hidden;
}
.cat-bar i {
  display: block; height: 100%; border-radius: 2px;
  background: var(--phosphor);
  box-shadow: 0 0 8px rgba(255, 0, 153, 0.4);
  transition: width 0.6s ease;
}
.cat-score {
  font-size: 14px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--phosphor);
}
.cat[data-tone="good"] .cat-bar i { background: var(--phosphor); box-shadow: 0 0 8px rgba(255, 0, 153, 0.4); }
.cat[data-tone="warn"] .cat-bar i { background: var(--warn); box-shadow: 0 0 8px rgba(255, 184, 77, 0.4); }
.cat[data-tone="bad"]  .cat-bar i { background: var(--bad);  box-shadow: 0 0 8px rgba(255, 110, 110, 0.4); }
.cat[data-tone="good"] .cat-score { color: var(--phosphor); }
.cat[data-tone="warn"] .cat-score { color: var(--warn); }
.cat[data-tone="bad"]  .cat-score { color: var(--bad); }

.feedback {
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--elev);
}
.feedback h4 {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--phosphor);
  margin-bottom: 12px;
}
.feedback ul { padding-left: 18px; }
.feedback li {
  font-size: 12.5px; line-height: 1.6;
  color: var(--ink);
  margin: 6px 0;
}
.feedback li::marker { color: var(--phosphor-dim); }

/* ---------- deep-dive panels ---------- */
.deep-wrap {
  display: flex; flex-direction: column; gap: 12px;
  margin-top: 4px;
}
.deep-head {
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--phosphor);
  border-radius: 4px;
  background: var(--surface);
}
.deep-eyebrow,
.info-eyebrow,
.deep-card h4,
.modal-eyebrow,
.request-eyebrow {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--phosphor);
  padding: 3px 10px;
  border: 1px solid var(--phosphor-faint);
  background: var(--phosphor-soft);
  border-radius: 2px;
}
.deep-meta { display: flex; flex-direction: column; gap: 8px; }
.deep-meta > div {
  display: flex; gap: 14px; align-items: baseline;
  font-size: 13px; color: var(--ink);
  line-height: 1.5;
  border-bottom: 1px dotted var(--rule);
  padding-bottom: 8px;
}
.deep-meta > div:last-child { border-bottom: none; }
.deep-meta-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--phosphor-dim);
  text-transform: uppercase;
  min-width: 100px; flex-shrink: 0;
  padding-top: 3px;
}
.deep-grid {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 880px) { .deep-grid { grid-template-columns: 1fr; } }
.deep-card {
  padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.deep-card h4 {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.deep-row {
  display: flex; flex-direction: column; gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px dotted var(--rule);
}
.deep-row:last-child { border-bottom: none; padding-bottom: 0; }
.deep-row-label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}
.deep-row p, .deep-card > p {
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.6;
}
.deep-rewrites { padding-left: 18px; display: flex; flex-direction: column; gap: 10px; }
.deep-rewrites li { font-size: 12.5px; line-height: 1.55; color: var(--ink); }
.deep-rewrites li::marker { color: var(--phosphor); }
.deep-card ul, .deep-card ol { padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.deep-card ul li, .deep-card ol li { font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.deep-card ul li::marker, .deep-card ol li::marker { color: var(--phosphor-dim); }
.deep-card-fix { border-left: 2px solid var(--warn); }

/* ---------- modal (email gate) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: modalFade 0.25s ease;
}
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 460px;
  padding: 32px;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  animation: modalRise 0.3s ease;
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
}
@keyframes modalRise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  width: 30px; height: 30px;
  border-radius: 3px;
  font-size: 18px; line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}
.modal-close:hover { border-color: var(--phosphor); color: var(--phosphor); }
.modal h3 {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.2;
  color: var(--ink);
  margin-top: 4px;
}
.modal-sub {
  font-size: 13px; color: var(--ink-soft); line-height: 1.6;
}
.modal-form {
  display: flex; gap: 6px; margin-top: 6px;
}
.modal-form input {
  flex: 1;
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 11px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  transition: 0.18s ease;
}
.modal-form input::placeholder { color: var(--ink-faint); }
.modal-form input:focus {
  outline: none;
  border-color: var(--phosphor);
  box-shadow: 0 0 0 1px var(--phosphor);
}
.modal-form button {
  appearance: none;
  background: var(--phosphor);
  color: var(--bg); border: none;
  padding: 11px 20px;
  border-radius: 3px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}
.modal-form button:hover { box-shadow: 0 0 24px rgba(255, 0, 153, 0.5); }
.modal-form button:disabled { opacity: 0.5; cursor: wait; box-shadow: none; }
.modal-fineprint {
  font-size: 11px;
  color: var(--bad);
  margin-top: 4px;
}

/* ---------- request panels ---------- */
.request-wrap, .request-success { margin-top: 4px; }
.request-card {
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--phosphor);
  border-radius: 4px;
}
.request-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.18;
  color: var(--ink);
}
.request-sub {
  font-size: 13px; color: var(--ink-soft); line-height: 1.6;
  max-width: 640px;
}
.request-grid {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  margin-top: 8px;
}
@media (max-width: 720px) { .request-grid { grid-template-columns: 1fr; } }
.request-preview { display: flex; flex-direction: column; gap: 10px; }
.request-preview-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: #000;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.request-preview-img img { width: 100%; height: 100%; object-fit: contain; }
.request-preview-meta {
  display: flex; justify-content: space-between;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.request-form { display: flex; flex-direction: column; gap: 12px; }
.request-row { display: flex; flex-direction: column; gap: 6px; }
.request-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-row-2 > div { display: flex; flex-direction: column; gap: 6px; }
.request-form label {
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}
.request-form .required { color: var(--warn); }
.request-form input,
.request-form textarea {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 11px 14px;
  font-size: 13px;
  font-family: inherit;
  color: var(--ink);
  transition: 0.18s ease;
  resize: vertical;
}
.request-form input::placeholder,
.request-form textarea::placeholder { color: var(--ink-faint); }
.request-form input:focus,
.request-form textarea:focus {
  outline: none;
  border-color: var(--phosphor);
  box-shadow: 0 0 0 1px var(--phosphor);
}
.request-actions {
  display: flex; gap: 8px; justify-content: flex-end;
  margin-top: 6px;
}
.request-cancel,
.request-submit {
  appearance: none;
  border-radius: 3px;
  padding: 11px 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: 0.18s ease;
  font-family: inherit;
}
.request-cancel {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.request-cancel:hover { border-color: var(--ink-soft); color: var(--ink); }
.request-submit {
  background: var(--phosphor);
  color: var(--bg); border: none;
}
.request-submit:hover { box-shadow: 0 0 24px rgba(255, 0, 153, 0.5); }
.request-submit:disabled { opacity: 0.5; cursor: wait; box-shadow: none; }
.request-fineprint {
  font-size: 11px;
  color: var(--bad);
  text-align: right;
}
.request-card-success {
  border-left-color: var(--phosphor);
  align-items: center;
  text-align: center;
}
.request-success-mark {
  width: 60px; height: 60px;
  border: 1px solid var(--phosphor);
  border-radius: 4px;
  background: var(--phosphor-soft);
  color: var(--phosphor);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700;
  margin-bottom: 4px;
  text-shadow: 0 0 16px var(--phosphor);
}
.request-card-success h2 {
  font-size: 24px; font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
.request-card-success p {
  font-size: 13px; color: var(--ink-soft); line-height: 1.6;
  max-width: 480px;
}

/* ---------- info sections ---------- */
.info-section {
  padding: 60px 0 20px;
  display: flex; flex-direction: column; gap: 36px;
  scroll-margin-top: 100px;
}
.info-head { text-align: center; max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.info-eyebrow {
  margin-bottom: 0;
}
.info-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}
.info-head p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 600px;
}
.info-grid {
  display: grid;
  gap: 12px;
}
.info-grid-3 { grid-template-columns: repeat(3, 1fr); }
.info-grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .info-grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) {
  .info-grid-3 { grid-template-columns: 1fr; }
  .info-grid-5 { grid-template-columns: 1fr; }
}
.info-card {
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  transition: 0.25s ease;
  position: relative;
}
.info-card:hover {
  border-color: var(--phosphor-dim);
  transform: translateY(-2px);
}
.info-card:hover::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--phosphor);
  border-radius: 4px;
  pointer-events: none;
  opacity: 0.5;
}
.info-num {
  font-size: 11px; font-weight: 700;
  color: var(--phosphor);
  letter-spacing: 0.14em;
}
.info-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--phosphor);
  padding: 3px 10px;
  border: 1px solid var(--phosphor-faint);
  border-radius: 2px;
  background: var(--phosphor-soft);
  font-variant-numeric: tabular-nums;
}
.info-card-accent .info-tag {
  color: var(--bg);
  background: var(--phosphor);
  border-color: var(--phosphor);
}
.info-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--ink);
}
.info-card p {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.info-card-contact {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dotted var(--rule);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.info-card-contact a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.info-card-contact a:hover { color: var(--phosphor); }

/* ---------- sponsor slot ---------- */
.sponsor-slot {
  display: flex; flex-direction: column; gap: 8px;
  padding: 18px 20px;
  border: 1px dashed var(--rule-strong);
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 8px,
      rgba(255, 0, 153, 0.015) 8px 16px
    ),
    var(--surface);
  margin-top: 4px;
}
.sponsor-eyebrow {
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--ink-faint);
}
.sponsor-mount {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: stretch;
}
.sponsor-mount > * { flex: 1; }
.sponsor-fallback {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px 4px;
  transition: 0.2s ease;
  cursor: pointer;
}
.sponsor-fallback:hover {
  color: var(--phosphor);
}
.sponsor-fallback-mark {
  flex-shrink: 0;
  font-size: 26px; font-weight: 700;
  color: var(--phosphor);
  line-height: 1;
}
.sponsor-fallback-body {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
}
.sponsor-fallback-title {
  font-size: 13px; font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.sponsor-fallback-sub {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}
.sponsor-fallback:hover .sponsor-fallback-sub { color: var(--phosphor-dim); }
.sponsor-fallback-arrow {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--phosphor);
  transition: transform 0.2s ease;
}
.sponsor-fallback:hover .sponsor-fallback-arrow { transform: translateX(4px); }

/* When Carbon Ads / EthicalAds injects, give their content a clean mount */
.sponsor-mount [id^="carbonads"],
.sponsor-mount [data-ea-type] {
  width: 100%;
}

/* ---------- error ---------- */
.error {
  padding: 16px 20px;
  display: flex; gap: 12px; align-items: baseline;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid rgba(255, 110, 110, 0.3);
  border-left: 2px solid var(--bad);
  border-radius: 3px;
}
.error strong { font-weight: 700; color: var(--bad); letter-spacing: 0.05em; text-transform: uppercase; font-size: 11px; }
.error span { color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer {
  margin-top: 24px;
  padding-top: 28px;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 4px;
  background: repeating-linear-gradient(
    -45deg,
    var(--phosphor) 0 12px,
    #0A0A0A 12px 24px
  );
  opacity: 0.7;
}
.footer-row {
  display: flex; flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.footer-cell { display: inline-flex; align-items: center; gap: 8px; }
.footer-cell a { color: inherit; text-decoration: none; }
.footer-cell a:hover { color: var(--phosphor); }
.footer-link {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 8px;
}
.footer-link:hover { color: var(--phosphor); }

/* ---------- consent banner ---------- */
.consent-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 560px;
  width: calc(100% - 32px);
  padding: 18px 20px;
  border-radius: 6px;
  border: 1px solid var(--rule-strong);
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--rule);
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink-soft);
  animation: consent-rise 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes consent-rise {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.consent-eyebrow {
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--phosphor);
  margin-bottom: 8px;
}
.consent-body {
  margin: 0 0 14px;
  color: var(--ink);
}
.consent-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.consent-btn {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 140ms, color 140ms, border-color 140ms;
}
.consent-btn-reject {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule-strong);
}
.consent-btn-reject:hover {
  color: var(--ink);
  border-color: var(--phosphor);
}
.consent-btn-accept {
  background: var(--phosphor);
  color: #0A0A0C;
  border: 1px solid var(--phosphor);
  font-weight: 600;
}
.consent-btn-accept:hover {
  background: var(--phosphor-dim);
  border-color: var(--phosphor-dim);
}
@media (max-width: 480px) {
  .consent-banner { padding: 16px; bottom: 12px; }
  .consent-actions { justify-content: stretch; }
  .consent-btn { flex: 1; }
}
.footer-disclaimer {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dotted var(--rule);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: var(--ink-faint);
  max-width: 720px;
}

/* ---------- selection ---------- */
::selection { background: var(--phosphor); color: var(--bg); }
