/* ============================================================
   SALT — Sales Motion Health Check
   Brand-matched to saltclosing.com (locked brand system).
   Antonio (headings, 700, uppercase) + Inter (body), self-hosted.
   ============================================================ */

/* ---------- Self-hosted fonts (match the main site exactly) ---------- */
@font-face {
  font-family: "Antonio";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/antonio-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Antonio";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/antonio-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

:root {
  --bg: #150404;
  --bg-raise: #1f0a0a;
  --text: #F2EADA;
  --cream: #F2EADA;
  --text-muted: #BBB1A5;
  --gold: #C7A529;
  --pink: #FD789D;
  --ink-on-fill: #150404;
  --line: rgba(242, 234, 218, 0.14);
  --line-soft: rgba(242, 234, 218, 0.08);
  --font-head: "Antonio", "Arial Narrow", "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

#app { flex: 1 0 auto; }

/* ---------- Type ---------- */
h1, h2, .headline {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 24px 0;
  color: var(--cream);
}

.headline { font-size: clamp(30px, 5.2vw, 56px); }
.headline--small { font-size: 44px; }

.headline-line { display: block; }
.headline-line--cream,
.headline-line--white /* legacy alias */ { color: var(--cream); }
.headline-line--pink { color: var(--pink); margin-top: 10px; }

@media (max-width: 640px) {
  .headline--small { font-size: 32px; }
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 14px 0;
}

.body-lede {
  font-size: 18px;
  color: var(--text);
  max-width: 640px;
  margin-bottom: 32px;
  overflow-wrap: break-word;
}

.fine-print {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 16px;
}

/* ---------- Persistent header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(21, 4, 4, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 2.1rem; width: auto; }
.site-header__back {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.site-header__back:hover { color: var(--pink); }
@media (max-width: 520px) {
  .site-header__back span { display: inline; }
  .site-header__inner { gap: 0.75rem; }
}

/* ---------- Persistent footer ---------- */
.site-footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
.site-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__tag {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  max-width: 46rem;
  line-height: 1.6;
}
.site-footer__link {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.site-footer__link:hover { color: var(--pink); }

/* ---------- Layout ---------- */
.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 80px 24px;
}
.wrap--narrow { max-width: 680px; }
.wrap--hero { max-width: 1100px; }
.wrap--hero .body-lede { max-width: 820px; }

#screen-landing .wrap--hero {
  margin: 0 auto;
  max-width: 1040px;
  text-align: left;
}
#screen-landing .headline { font-size: clamp(32px, 5.6vw, 62px); }
.hero-divider-h {
  height: 1px;
  background: var(--line);
  margin: 28px 0 24px;
}
#screen-landing .body-lede { max-width: none; margin-bottom: 48px; }

.screen { display: none; }
.screen--active { display: block; }
#screen-landing.screen--active {
  min-height: calc(100vh - 4.75rem - 90px);
  display: flex;
  align-items: center;
}

/* ---------- Buttons (global rule: pink, Antonio, all caps, glow) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.95rem 1.9rem;
  font-size: 1.18rem;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.35s var(--ease),
    background-color 0.25s, color 0.25s, border-color 0.25s;
}

.btn--primary {
  background: var(--pink);
  color: var(--ink-on-fill);
}
.btn--primary:hover {
  background: #ff8fae;
  color: var(--ink-on-fill);
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(253, 120, 157, 0.45), 0 0 60px rgba(253, 120, 157, 0.18);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn--ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(253, 120, 157, 0.2);
}

.btn--small { padding: 0.6rem 1.25rem; font-size: 1rem; }

.progress {
  height: 1px;
  background: var(--line);
  margin-bottom: 48px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.progress__bar {
  height: 1px;
  width: 0%;
  background: var(--gold);
  transition: width 0.3s ease;
}

/* Stage 1 quick-select */
.q-option-list { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 32px; }
.q-option {
  text-align: left;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 18px 22px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 18px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.q-option:hover { border-color: var(--pink); color: var(--pink); background: rgba(253, 120, 157, 0.05); }

.q-back {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  transition: color 0.2s var(--ease);
}
.q-back:hover { color: var(--pink); }

.q-followup { display: flex; gap: 10px; margin: 24px 0 32px; }
.q-followup-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
}
.q-followup-input:focus { outline: none; border-color: var(--pink); }

/* Chat */
.chat-log { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; min-height: 10vh; }
.msg { max-width: 85%; padding: 14px 18px; border-radius: var(--radius); }
.msg--ai { background: var(--bg-raise); align-self: flex-start; }
.msg--user { background: transparent; border: 1px solid var(--line); align-self: flex-end; color: var(--text); }

.chat-form { display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.chat-form[hidden] { display: none; }
#chat-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
}
#chat-input:focus { outline: none; border-color: var(--pink); }
.typing-indicator {
  color: var(--gold);
  font-size: 15px;
  font-weight: 600;
  margin-top: 14px;
  animation: pulse-gold 1.4s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.chat-continue-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.chat-continue-wrap[hidden] { display: none; }
.chat-continue-text { margin: 0; font-size: 16px; color: var(--text); }
.chat-continue-btn {
  background: var(--pink);
  color: var(--ink-on-fill);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 20px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease), box-shadow 0.35s var(--ease), background-color 0.2s;
}
.chat-continue-btn:hover {
  background: #ff8fae;
  transform: translateX(2px);
  box-shadow: 0 0 20px rgba(253, 120, 157, 0.45);
}

/* Results loading state */
.results-loading { margin-bottom: 32px; }
.results-loading[hidden] { display: none; }
.results-loading__text {
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  animation: pulse-gold 1.4s ease-in-out infinite;
}
.results-loading__bar {
  position: relative;
  height: 3px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.results-loading__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 30%;
  background: var(--gold);
  border-radius: 4px;
  animation: loading-slide 1.2s ease-in-out infinite;
}
@keyframes loading-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}

/* Gate form */
.gate-wrap { text-align: center; display: flex; flex-direction: column; align-items: center; }
.gate-wrap .body-lede { max-width: 440px; margin-left: auto; margin-right: auto; }
.gate-form { display: flex; flex-direction: column; gap: 14px; max-width: 400px; width: 100%; margin: 0 auto; }
.gate-form input {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 14px 16px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 16px;
  text-align: center;
}
.gate-form input:focus { outline: none; border-color: var(--pink); }

/* Keep all typed and browser-autofilled input text on-brand (cream on the dark
   raised surface) instead of the browser's default bright-white autofill box. */
.gate-form input::placeholder,
#chat-input::placeholder,
.q-followup-input::placeholder { color: var(--text-muted); }

.gate-form input:-webkit-autofill,
.gate-form input:-webkit-autofill:hover,
.gate-form input:-webkit-autofill:focus,
#chat-input:-webkit-autofill,
.q-followup-input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--bg-raise) inset;
  box-shadow: 0 0 0 1000px var(--bg-raise) inset;
  transition: background-color 9999s ease-in-out 0s;
}

/* Results */
.results-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin: 24px 0 32px;
}
.score-block { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.score-number { font-family: var(--font-head); font-weight: 700; font-size: 96px; line-height: 1; color: var(--gold); }
.score-meta { min-width: 0; }
.score-band { font-size: 22px; overflow-wrap: break-word; }
.score-sub { color: var(--text-muted); font-size: 14px; }
.potential { font-size: 20px; color: var(--pink); max-width: 620px; margin-bottom: 8px; overflow-wrap: break-word; }
.potential-disclaimer { font-size: 14px; color: var(--text-muted); max-width: 620px; margin-bottom: 40px; overflow-wrap: break-word; }

.chain-chart { display: flex; flex-direction: column; gap: 20px; min-width: 0; margin-bottom: 48px; }
.chain-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.chain-bar { height: 10px; background: var(--line); border-radius: 4px; overflow: hidden; }
.chain-bar__fill { height: 100%; background: var(--pink); width: 0%; transition: width 0.6s ease; }

/* Pie chart */
.pie-chart-wrap { display: flex; flex-direction: row; align-items: center; gap: 20px; min-width: 0; flex-shrink: 0; }
.pie-chart { flex-shrink: 0; width: 120px; height: 120px; }
@media (max-width: 640px) { .pie-chart-wrap { flex-direction: column; } }
.pie-slice { transition: fill 0.15s ease, opacity 0.15s ease; cursor: pointer; }
.pie-slice.is-active { fill: var(--pink) !important; opacity: 1; }
.pie-slice.is-dimmed { opacity: 0.4; }
.pie-legend { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; }
.pie-legend__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.pie-legend__row.is-active { color: var(--pink); }
.pie-legend__row.is-dimmed { opacity: 0.5; }
.pie-legend__dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pie-legend__row.is-active .pie-legend__dot { background: var(--pink) !important; }
.pie-legend__label { flex: 1; min-width: 0; }
.pie-legend__pct { color: var(--text); font-weight: 600; }

.priority-summary { font-size: 18px; color: var(--text); max-width: none; margin-bottom: 40px; overflow-wrap: break-word; }
.priority-summary strong { color: var(--pink); font-weight: 600; }

.columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 48px; }
@media (max-width: 900px) { .columns { grid-template-columns: 1fr; } }

.column {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  min-width: 0;
}
.column__icon { font-size: 28px; margin-bottom: 12px; display: block; color: var(--gold); }
.column__title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 26px; margin-bottom: 8px; line-height: 1.05; color: var(--cream); }
.column__definition { color: var(--text-muted); font-size: 13px; margin-bottom: 16px; overflow-wrap: break-word; }
.column__score-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.column__score-number { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--gold); line-height: 1; }
.column__score-sub { color: var(--text-muted); font-size: 13px; }
.column__severity { color: var(--gold); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-left: 4px; }
.column__narrative { color: var(--text); font-size: 15px; margin-bottom: 20px; overflow-wrap: break-word; }
.column__next-label { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.column__next { color: var(--pink); font-size: 15px; font-weight: 500; overflow-wrap: break-word; }

/* Hannah bio / CTA block */
.hannah-cta {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
  margin-bottom: 32px;
}
.hannah-cta__photo-col { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; text-align: center; }
.hannah-cta__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
}
.hannah-cta__content { min-width: 0; }
.hannah-cta__tagline { font-size: 16px; color: var(--text); margin-bottom: 6px; overflow-wrap: break-word; }
.hannah-cta__subline { font-size: 16px; color: var(--text); margin-bottom: 14px; overflow-wrap: break-word; }
.hannah-cta__accent { color: var(--pink); }
.hannah-cta__title { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.hannah-cta__prompt { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 26px; line-height: 1.05; color: var(--cream); margin-bottom: 14px; }
.hannah-cta[hidden] { display: none; }
@media (max-width: 640px) {
  .hannah-cta { flex-direction: column; align-items: flex-start; text-align: left; }
  .hannah-cta__photo-col { align-items: flex-start; text-align: left; }
}

.results-disclaimer {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.6;
  max-width: none;
}

.results-actions { display: flex; gap: 16px; margin-top: 24px; padding-bottom: 40px; flex-wrap: wrap; }
.results-actions[hidden] { display: none; }

/* Print / PDF */
@media print {
  @page { margin: 0; }
  html, body { background: #150404 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header, .site-footer { display: none !important; }
  .screen { display: none !important; }
  #screen-results { display: block !important; }
  .results-actions { display: none !important; }
  .results-loading { display: none !important; }
  .wrap { padding: 64px 48px; }

  /* Keep these blocks from splitting awkwardly across a page boundary */
  .score-block,
  .results-overview,
  .chain-stage,
  .pie-chart-wrap,
  .priority-summary,
  .hannah-cta,
  .results-disclaimer,
  .column {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ---------- Legal notices, consent opt-in, footer legal links ---------- */
.legal-note {
  max-width: 820px;
  margin-inline: 0;
  line-height: 1.6;
  font-size: 13px;
  opacity: 0.85;
}
.legal-note a { color: var(--cream); text-decoration: underline; }
.legal-note a:hover { color: var(--pink); }

.gate-optin {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  margin: 4px 0 4px;
  cursor: pointer;
}
.gate-optin input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--pink);
  cursor: pointer;
}

.site-footer__legal {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}
.site-footer__legal a { color: var(--cream); text-decoration: none; }
.site-footer__legal a:hover { color: var(--pink); }
