/* Veritriage - editorial house style. Warm paper, Fraunces display, General Sans body. */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face { font-family: "General Sans"; src: url("/assets/fonts/generalsans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/generalsans-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/generalsans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/generalsans-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f6f1ea;
  --paper-2: #fffdfa;
  --band: #efe8dd;
  --band-2: #e7dfd2;
  --ink: #1b1614;
  --ink-2: #4a4038;
  --ink-soft: rgba(27, 22, 20, 0.62);
  --ink-faint: rgba(27, 22, 20, 0.42);
  --line: rgba(27, 22, 20, 0.13);
  --line-2: rgba(27, 22, 20, 0.22);
  --seal: #2f6f5e;         /* trust / verify accent, used sparingly */
  --seal-tint: #e3ede8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 760px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --arch-analyst: #35506b;
  --arch-visionary: #7a5a72;
  --arch-guardian: #3c6b57;
  --arch-rebel: #a6532e;
  --arch-connector: #b0607a;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  line-height: 1.55;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
a { color: var(--ink); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.screen { display: none; }
.screen.active { display: block; animation: rise 0.5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hidden { display: none !important; }

/* ---------- header ---------- */
.masthead { border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead .inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; display: block; }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }
.masthead .tag { font-size: 12.5px; color: var(--ink-soft); letter-spacing: 0.02em; }
.verify-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--seal); background: var(--seal-tint); border-radius: 999px; padding: 5px 11px; }
.verify-chip .d { width: 6px; height: 6px; border-radius: 50%; background: var(--seal); }

/* ---------- hero ---------- */
.hero { padding: 60px 0 22px; }
.kicker { font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; margin-bottom: 22px; display: flex; align-items: center; gap: 12px; }
.kicker::after { content: ""; height: 1px; flex: 1; background: var(--line); }
h1.display { font-size: clamp(40px, 8vw, 68px); line-height: 1.02; margin: 0 0 22px; font-weight: 500; }
h1.display em { font-style: italic; font-weight: 500; }
.lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--ink-2); max-width: 33ch; margin: 0 0 30px; line-height: 1.5; }
.actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink);
  padding: 15px 28px; border-radius: 4px; text-decoration: none; transition: transform 0.14s var(--ease), background 0.14s;
}
.btn:hover { transform: translateY(-1px); background: #000; }
.btn.block { width: 100%; }
.btn.lg { font-size: 17px; padding: 17px 32px; }
.btn-quiet { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }
.btn-quiet:hover { background: var(--band); }
.meta-inline { font-size: 13.5px; color: var(--ink-soft); }
.meta-inline b { color: var(--ink); font-weight: 600; }

.hero-foot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.hero-foot .stat { font-size: 13.5px; color: var(--ink-soft); }
.hero-foot .stat b { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--ink); margin-right: 6px; }
#socialProof { font-size: 14px; color: var(--ink-soft); }
#socialProof b { color: var(--ink); font-weight: 600; }

/* archetype index (replaces 3-card cliche) */
.arch-list { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.arch-list li { display: flex; align-items: baseline; gap: 16px; padding: 15px 2px; border-bottom: 1px solid var(--line); }
.arch-list .idx { font-family: var(--serif); font-size: 15px; color: var(--ink-faint); width: 26px; flex: none; }
.arch-list .nm { font-family: var(--serif); font-size: 19px; font-weight: 600; width: 118px; flex: none; }
.arch-list .ds { font-size: 14.5px; color: var(--ink-soft); }

/* how it works - editorial numbered steps, not boxed cards */
.section { padding: 46px 0; border-top: 1px solid var(--line); }
.section-eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin: 0 0 26px; }
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step .num { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--ink); line-height: 1; }
.step h3 { margin: 0 0 5px; font-size: 19px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.credibility { background: var(--band); border-radius: 8px; padding: 22px 24px; margin-top: 8px; }
.credibility p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.credibility b { font-weight: 600; }

/* ---------- quiz ---------- */
.quiz-top { position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 18px 0 14px; border-bottom: 1px solid var(--line); }
.quiz-top .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.quiz-top .count { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.02em; }
.quiz-top .count b { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 15px; }
.quiz-top .pct { font-family: var(--serif); font-size: 15px; color: var(--ink-faint); }
.track-line { height: 3px; background: var(--line); border-radius: 0; overflow: hidden; }
.track-line > span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.5s var(--ease); }

.qwrap { padding: 40px 0 30px; }
.q-index { font-family: var(--serif); font-size: 15px; color: var(--ink-faint); margin-bottom: 14px; }
.q-text { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 6vw, 36px); line-height: 1.15; margin: 0 0 30px; letter-spacing: -0.015em; }
.likert { display: grid; gap: 0; border-top: 1px solid var(--line); }
.likert button {
  display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  padding: 17px 6px; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 17px; font-weight: 500; transition: padding 0.14s var(--ease), color 0.14s;
}
.likert button .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: all 0.14s; }
.likert button:hover { padding-left: 14px; }
.likert button:hover .dot { border-color: var(--ink); }
.likert button.sel { color: var(--ink); font-weight: 600; }
.likert button.sel .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3.5px var(--paper); }
.q-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.link-btn { background: none; border: 0; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; padding: 8px 2px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { opacity: 0.3; cursor: default; text-decoration: none; }
.link-btn:hover:not(:disabled) { color: var(--ink); }
.q-hint { font-size: 13px; color: var(--ink-faint); }

/* ---------- loading ---------- */
.loading { text-align: center; padding: 90px 0; }
.loading .mark { width: 46px; height: 46px; margin: 0 auto 24px; }
.loading .mark svg { width: 100%; height: 100%; animation: spin 1.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-family: var(--serif); font-size: 20px; color: var(--ink-2); font-style: italic; }

/* ---------- result ---------- */
.result-head { text-align: center; padding: 44px 0 8px; }
.result-head .say { font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.result-head .mark-lg { width: 54px; height: 54px; margin: 0 auto 18px; color: var(--arch, var(--ink)); }
.result-name { font-family: var(--serif); font-size: clamp(46px, 12vw, 82px); font-weight: 500; line-height: 0.98; margin: 10px 0 6px; letter-spacing: -0.03em; color: var(--arch, var(--ink)); }
.result-sub { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-2); }
.result-conf { margin-top: 16px; font-size: 13px; color: var(--ink-soft); }
.result-conf b { color: var(--ink); font-weight: 600; }
.result-blurb { font-size: 18px; line-height: 1.6; color: var(--ink); max-width: 46ch; margin: 26px auto 0; text-align: center; }

.rule { height: 1px; background: var(--line); margin: 40px 0; border: 0; }
.eyebrow { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin: 0 0 20px; }

.profile-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 10px; padding: 26px 22px; }
.radar-wrap { display: grid; place-items: center; }
.radar-wrap svg { width: 100%; max-width: 330px; height: auto; }
.dims { display: grid; gap: 16px; margin-top: 22px; }
.dim-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.dim-top .name { font-weight: 600; font-size: 15px; }
.dim-top .name span { color: var(--ink-faint); font-weight: 400; font-size: 13px; margin-left: 7px; }
.dim-top .val { font-size: 13px; color: var(--ink-soft); }
.dim-top .val b { color: var(--ink); font-family: var(--serif); font-size: 16px; font-weight: 600; }
.bar { height: 8px; border-radius: 999px; background: rgba(27,22,20,0.08); overflow: hidden; }

.insight { border-left: 2px solid var(--arch, var(--ink)); padding: 4px 0 4px 18px; margin: 16px 0; }
.insight p { margin: 0; font-family: var(--serif); font-size: 18px; font-style: italic; line-height: 1.45; color: var(--ink); }

.two-col { display: grid; grid-template-columns: 1fr; gap: 18px; }
.mini h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.mini ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.mini li { font-size: 15.5px; display: flex; gap: 11px; align-items: baseline; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.mini li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--arch, var(--ink)); flex: none; transform: translateY(-3px); }

/* ---------- paywall ---------- */
.paywall { position: relative; border: 1px solid var(--line-2); border-radius: 12px; background: var(--paper-2); overflow: hidden; margin-top: 8px; }
.paywall .locked-peek { padding: 24px; filter: blur(5px); opacity: 0.5; pointer-events: none; user-select: none; }
.paywall .locked-peek h3 { margin: 0 0 8px; }
.paywall .locked-peek p { margin: 0 0 10px; color: var(--ink-2); }
.paywall .veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px 24px; gap: 6px;
  background: linear-gradient(180deg, rgba(246,241,234,0.72), rgba(246,241,234,0.96) 55%);
}
.paywall .seal-badge { width: 40px; height: 40px; color: var(--seal); margin-bottom: 4px; }
.paywall h3.offer { font-family: var(--serif); font-size: 26px; font-weight: 500; margin: 0; }
.paywall .offer-sub { font-size: 15px; color: var(--ink-soft); max-width: 40ch; margin: 4px 0 8px; }
.unlock-list { list-style: none; padding: 0; margin: 6px 0 16px; display: grid; gap: 7px; text-align: left; }
.unlock-list li { font-size: 14.5px; color: var(--ink-2); display: flex; gap: 9px; align-items: baseline; }
.unlock-list li::before { content: ""; width: 15px; height: 11px; flex: none; margin-top: 4px; background: var(--seal); clip-path: polygon(41% 100%, 0 62%, 14% 48%, 41% 72%, 86% 8%, 100% 22%); }
.price-row { display: flex; align-items: baseline; gap: 10px; justify-content: center; margin-bottom: 4px; }
.price-row .now { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.price-row .was { font-size: 16px; color: var(--ink-faint); text-decoration: line-through; }
.price-row .once { font-size: 13px; color: var(--ink-soft); }
.pay-note { font-size: 12px; color: var(--ink-faint); margin-top: 10px; max-width: 34ch; }
.unlocked-full { display: none; }
.unlocked .unlocked-full { display: block; }
.unlocked .paywall { display: none; }
.report-block { padding: 4px 0; }
.report-block h4 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.report-block p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

/* ---------- share + email ---------- */
.share-row { display: flex; gap: 12px; flex-wrap: wrap; }
.share-row .btn { flex: 1; min-width: 140px; }
.email-block { border: 1px solid var(--line); border-radius: 10px; padding: 22px; background: var(--band); }
.email-block h3 { margin: 0 0 5px; font-size: 21px; }
.email-block p { margin: 0 0 15px; color: var(--ink-soft); font-size: 14.5px; }
.email-form { display: flex; gap: 10px; }
.email-form input { flex: 1; min-width: 0; padding: 14px 15px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--paper-2); color: var(--ink); font-size: 15.5px; font-family: var(--sans); }
.email-form input::placeholder { color: var(--ink-faint); }
.email-note { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.email-ok { color: var(--seal); font-weight: 600; }
.retake { display: block; text-align: center; margin: 30px auto 6px; color: var(--ink-soft); font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; width: 100%; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 20px; }
footer .inner { max-width: var(--maxw); margin: 0 auto; padding: 34px 22px 60px; }
footer .disclaimer { font-size: 12.5px; color: var(--ink-soft); max-width: 52ch; line-height: 1.55; margin: 0 0 14px; }
footer .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-faint); }
footer a { color: var(--ink-soft); }

/* consent strip */
.consent { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 40; max-width: 600px; margin: 0 auto; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 15px 17px; display: flex; gap: 15px; align-items: center; box-shadow: 0 14px 40px -18px rgba(27,22,20,0.4); }
.consent p { margin: 0; font-size: 13px; color: var(--ink-soft); flex: 1; }
.consent a { color: var(--ink); }
.consent button { flex: none; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 12px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: all 0.3s var(--ease); z-index: 60; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

@media (min-width: 620px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.001s !important; transition-duration: 0.001s !important; } }
