/* AI Trap Scorecard — brand system from the offers carousel:
   paper #FBFAF7 · ink #12181D · grey #3E4850 · blue #007CC6 · Anton display */

@font-face {
  font-family: "Anton";
  src: url("Anton-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #FBFAF7;
  --ink: #12181D;
  --grey: #3E4850;
  --blue: #007CC6;
  --blue-dark: #005E97;
  --line: rgba(18, 24, 29, 0.14);
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Segoe UI", -apple-system, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
}

/* Paper grain */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(18,24,29,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 64px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.brandbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  margin-bottom: 8px;
}
.brandbar .name {
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brandbar .name a { color: var(--ink); text-decoration: none; }
.brandbar .tag { font-size: 0.8rem; color: var(--grey); }

.screen { display: none; flex: 1; flex-direction: column; }
.screen.active { display: flex; animation: rise 0.45s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Landing ---------- */

.kicker {
  margin-top: 12vh;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  animation: rise 0.5s ease both;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 14px 0 20px;
  animation: rise 0.5s ease 0.08s both;
}
h1 em { font-style: normal; color: var(--blue); }

.sub {
  font-size: 1.06rem;
  color: var(--grey);
  max-width: 56ch;
  animation: rise 0.5s ease 0.16s both;
}

.gets {
  list-style: none;
  margin: 26px 0 6px;
  animation: rise 0.5s ease 0.24s both;
}
.gets li {
  padding: 9px 0 9px 26px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.gets li::before {
  content: "";
  position: absolute; left: 2px; top: 17px;
  width: 12px; height: 12px;
  background: var(--blue);
}

.timenote {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--grey);
  animation: rise 0.5s ease 0.3s both;
}

.cred {
  margin-top: 26px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  background: rgba(0, 124, 198, 0.06);
  font-size: 0.92rem;
  color: var(--grey);
  animation: rise 0.5s ease 0.36s both;
}

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: 16px 34px;
  cursor: pointer;
  margin-top: 30px;
  align-self: flex-start;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.btn:hover, .btn:focus-visible { background: var(--blue); transform: translateY(-2px); }
.btn.blue { background: var(--blue); }
.btn.blue:hover, .btn.blue:focus-visible { background: var(--blue-dark); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn.ghost:hover, .btn.ghost:focus-visible { background: var(--ink); color: var(--paper); }

/* ---------- Quiz ---------- */

.progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 26px 0 8px;
}
.progress .count {
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.progress .track {
  flex: 1;
  height: 6px;
  background: var(--line);
}
.progress .fill {
  height: 100%;
  background: var(--blue);
  width: 0%;
  transition: width 0.35s ease;
}

.catlabel {
  margin-top: 22px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.catstrap { font-size: 0.9rem; color: var(--grey); margin-top: 2px; }

.qprompt {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 16px 0 22px;
  max-width: 58ch;
}

.answers { display: flex; flex-direction: column; gap: 10px; }

.answer {
  text-align: left;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.45;
  background: #fff;
  border: 2px solid var(--line);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, transform 0.12s ease;
  color: var(--ink);
}
.answer:hover, .answer:focus-visible {
  border-color: var(--blue);
  transform: translateX(4px);
}
.answer.selected { border-color: var(--blue); background: rgba(0,124,198,0.08); }

.backrow { margin-top: 22px; }
.backlink {
  background: none; border: none;
  color: var(--grey); font-size: 0.9rem;
  cursor: pointer; text-decoration: underline;
  padding: 4px;
}
.backlink:hover { color: var(--ink); }

/* ---------- Lead form ---------- */

.formhead { margin-top: 32px; }
.formhead h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.05;
}
.formhead p { color: var(--grey); margin-top: 10px; }

form.lead { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.field input[type="text"], .field input[type="email"], .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  padding: 13px 14px;
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }

.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.95rem; cursor: pointer;
}
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.check.talk { font-weight: 700; }

.consent { font-size: 0.82rem; color: var(--grey); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px; height: 1px;
  overflow: hidden;
}

.scopenote {
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--grey);
}

.signpost {
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--grey);
  max-width: 52ch;
}
.signpost a { color: var(--blue); }

.formerror { color: #B3261E; font-size: 0.9rem; display: none; }
.formerror.show { display: block; }

/* ---------- Results ---------- */

.stamp-wrap { margin-top: 30px; overflow: hidden; }
.stamp-kicker {
  font-size: 0.85rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--grey); font-weight: 600;
}
.stamp {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4rem, 18vw, 8.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  color: var(--blue);
  animation: stamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.15s both;
}
@keyframes stamp {
  from { opacity: 0; transform: scale(1.6) rotate(-3deg); }
  to   { opacity: 1; transform: none; }
}
.stamp-line { font-size: 1.1rem; font-weight: 700; margin-top: 4px; }

.scoreline {
  margin-top: 26px;
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}
.scoreline span { color: var(--blue); }

.bars { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.bar .toprow {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; font-weight: 700; margin-bottom: 4px;
}
.bar .toprow .pts { color: var(--grey); font-weight: 600; }
.bar .track { height: 12px; background: var(--line); }
.bar .fill {
  height: 100%; background: var(--ink); width: 0%;
  transition: width 0.8s ease 0.3s;
}
.bar.best .fill { background: var(--blue); }

.tiercopy, .seesaw {
  margin-top: 22px;
  font-size: 1.02rem;
  max-width: 60ch;
}
.seesaw {
  padding: 16px 18px;
  border-left: 4px solid var(--blue);
  background: rgba(0, 124, 198, 0.06);
}

.ctablock { margin-top: 30px; border-top: 3px solid var(--ink); padding-top: 20px; }
.ctablock h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  text-transform: uppercase;
}
.ctablock p { color: var(--grey); margin-top: 8px; max-width: 52ch; }
.ctarow { display: flex; gap: 14px; flex-wrap: wrap; }

.testmode {
  margin-top: 26px;
  font-size: 0.8rem;
  color: #8a6d00;
  background: #FFF6D9;
  border: 1px solid #E8D48A;
  padding: 8px 12px;
  display: none;
}
.testmode.show { display: block; }

footer {
  margin-top: auto;
  padding-top: 40px;
  font-size: 0.8rem;
  color: var(--grey);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Print report (Save as PDF) ---------- */

.printhead, .printcta { display: none; }
.reportrow { margin-top: 24px; }

@media print {
  @page { size: A4; margin: 12mm 14mm; }

  body { background: #fff; font-size: 0.9rem; line-height: 1.4; }
  body::before { display: none; }
  .shell { max-width: none; padding: 0; }

  .brandbar { border-bottom-width: 2px; padding-bottom: 8px; }
  .reportrow, .backrow, #testmode, .ctablock, .signpost { display: none !important; }

  .printhead {
    display: block;
    margin-top: 5mm;
  }
  .ph-title {
    font-family: var(--display);
    font-size: 1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .ph-for { font-size: 0.8rem; color: var(--grey); margin-top: 2px; }

  .stamp-wrap { margin-top: 4mm; }
  .stamp { font-size: 3.2rem; animation: none; color: var(--blue); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .stamp-line { font-size: 0.95rem; margin-top: 2px; }

  .scoreline { margin-top: 5mm; padding-top: 8px; font-size: 1rem; }

  .bars { margin-top: 10px; gap: 8px; }
  .bar .track { height: 9px; }
  .bar .toprow { font-size: 0.82rem; margin-bottom: 3px; }

  .bars .fill, .bar.best .fill, .seesaw, .cred, .gets li::before {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .bar .fill { transition: none; }

  .tiercopy, .seesaw { margin-top: 12px; font-size: 0.9rem; }
  .seesaw { padding: 10px 14px; }

  .printcta {
    display: block;
    margin-top: 6mm;
    padding: 9px 14px;
    border: 2px solid var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
    page-break-inside: avoid;
  }

  .scopenote { margin-top: 8px; font-size: 0.72rem; }

  footer { padding-top: 4mm; font-size: 0.72rem; }
}
