/* ============================================================
   CASH LEAKS AI — Master Stylesheet
   Brand: Brinkerhoff Systems (BHOFF)
   Palette: Deep Navy + Electric Amber
   Fonts: Inter (body) + JetBrains Mono (data/numbers)
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --navy: #0A1628;
  --navy-light: #1E2A3A;
  --navy-mid: #151F33;
  --charcoal: #2C2C2C;
  --amber: #F5A623;
  --amber-dark: #D4941A;
  --amber-light: #FFD580;
  --amber-glow: rgba(245, 166, 35, 0.15);
  --white: #F8F9FA;
  --off-white: #E8EBF0;
  --slate: #6B7B8D;
  --slate-light: #8FA3B8;
  --red: #E74C3C;
  --red-bg: rgba(231, 76, 60, 0.1);
  --green: #27AE60;
  --green-bg: rgba(39, 174, 96, 0.1);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1120px;
  --container-narrow: 760px;
  --container-tight: 560px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white);
  background: var(--navy);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--amber-light); }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }
input, select, textarea {
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
}

/* --- LAYOUT --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: var(--container-tight); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background: var(--navy); }
.section-darker { background: var(--navy-mid); }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.headline-xl {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
}
.headline-lg {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}
.headline-md {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}
.headline-sm {
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}
.text-lg { font-size: 20px; line-height: 1.6; }
.text-md { font-size: 16px; line-height: 1.6; }
.text-sm { font-size: 14px; line-height: 1.5; }
.text-xs { font-size: 13px; line-height: 1.4; }
.text-amber { color: var(--amber); }
.text-slate { color: var(--slate-light); }
.text-red { color: var(--red); }
.text-green { color: var(--green); }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* Monospace — for numbers, data, leak amounts */
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.mono-xl {
  font-family: var(--font-mono);
  font-size: clamp(36px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--amber);
}
.mono-lg {
  font-family: var(--font-mono);
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--amber);
}
.mono-md {
  font-family: var(--font-mono);
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 500;
  color: var(--amber);
}

/* Label / badge */
.label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber);
  padding: 6px 14px;
  background: var(--amber-glow);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 100px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35);
  animation: btnThrob 2.4s ease-in-out infinite;
}
.btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 166, 35, 0.5);
  animation: none;
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--amber);
  color: var(--amber);
}
.btn-lg {
  font-size: 20px;
  padding: 18px 40px;
  border-radius: var(--radius);
}
.btn-full { width: 100%; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}
@keyframes btnThrob {
  0%, 100% { transform: scale(1); box-shadow: 0 4px 14px rgba(245, 166, 35, 0.35); }
  50% { transform: scale(1.03); box-shadow: 0 6px 24px rgba(245, 166, 35, 0.55); }
}

/* --- CARDS --- */
.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.card-glow {
  background: var(--navy-light);
  border: 1px solid rgba(245, 166, 35, 0.2);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 0 30px rgba(245, 166, 35, 0.05);
}
.card-result {
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(245, 166, 35, 0.05) 100%);
  border: 1px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}

/* --- FORMS --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-light);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--navy-mid);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.form-input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.form-input::placeholder { color: var(--slate); }
.form-input.error { border-color: var(--red); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-error {
  font-size: 13px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.form-error.visible { display: block; }

/* NMI Collect.js fields */
.collect-js-field {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-height: 48px;
  background: var(--navy-mid);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.collect-js-field:focus-within {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-glow);
}
.collect-js-field.CollectJSValid { border-color: var(--green); }
.collect-js-field.CollectJSInvalid { border-color: var(--red); }

/* Honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* --- QUIZ SPECIFIC --- */

/* Progress bar */
.quiz-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--navy-light);
  z-index: 100;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--amber);
  transition: width 0.4s var(--ease);
  border-radius: 0 2px 2px 0;
}
.quiz-step-label {
  position: fixed;
  top: 12px;
  right: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  z-index: 100;
  font-family: var(--font-mono);
}

/* Quiz container */
.quiz-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.quiz-card {
  width: 100%;
  max-width: 640px;
  position: relative;
}

/* Quiz intro */
.quiz-intro { text-align: center; }
.quiz-intro .headline-xl { margin-bottom: 16px; }
.quiz-intro .text-lg { color: var(--slate-light); margin-bottom: 8px; }
.quiz-intro .text-sm { color: var(--slate); margin-bottom: 40px; }

/* Question slides */
.quiz-question {
  display: none;
  animation: slideIn 0.35s var(--ease);
}
.quiz-question.active { display: block; }
.quiz-question-text {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 700;
  margin-bottom: 32px;
  line-height: 1.3;
}

/* Answer options */
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--navy-light);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-align: left;
  width: 100%;
}
.quiz-option:hover {
  border-color: var(--amber);
  background: rgba(245, 166, 35, 0.05);
}
.quiz-option.selected {
  border-color: var(--amber);
  background: var(--amber-glow);
}
.quiz-option-icon {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-light);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.quiz-option.selected .quiz-option-icon {
  border-color: var(--amber);
  background: var(--amber);
}
.quiz-option.selected .quiz-option-icon::after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--navy);
  border-radius: 50%;
}

/* Quiz nav */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
}
.quiz-back {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-light);
  cursor: pointer;
  transition: color 0.2s;
}
.quiz-back:hover { color: var(--white); }
.quiz-back.hidden { visibility: hidden; }

/* Contact form (pre-quiz) */
.quiz-contact { text-align: left; }
.quiz-contact .headline-md { margin-bottom: 8px; text-align: center; }
.quiz-contact .text-md { color: var(--slate-light); margin-bottom: 24px; text-align: center; }

/* Results screen */
.quiz-results {
  text-align: center;
  display: none;
  animation: fadeUp 0.6s var(--ease);
}
.quiz-results.active { display: block; }
.results-leak-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.results-leak-number {
  font-family: var(--font-mono);
  font-size: clamp(48px, 10vw, 80px);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.results-annual {
  font-family: var(--font-mono);
  font-size: clamp(18px, 4vw, 28px);
  color: var(--slate-light);
  margin-bottom: 32px;
}
.results-bots {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.results-bot-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--navy-light);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
}
.results-bot-tag .bot-icon { font-size: 18px; }
.results-email-note {
  font-size: 15px;
  color: var(--slate-light);
  margin-bottom: 24px;
}
.results-redirect {
  font-size: 13px;
  color: var(--slate);
  font-family: var(--font-mono);
}

/* --- VSL / DIAGNOSTIC PAGE --- */
.vsl-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.vsl-hero .label { margin-bottom: 16px; }
.vsl-hero .headline-lg { margin-bottom: 12px; }
.vsl-hero .text-lg { color: var(--slate-light); max-width: 600px; margin: 0 auto 32px; }

/* Video player */
.video-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-light);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
}
.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}
.video-placeholder:hover { background: var(--navy-mid); }
.play-btn {
  width: 72px;
  height: 72px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.3);
  transition: transform 0.2s var(--ease);
}
.video-placeholder:hover .play-btn { transform: scale(1.1); }
.play-btn svg { width: 28px; height: 28px; fill: var(--navy); margin-left: 4px; }
.video-label { font-size: 14px; color: var(--slate-light); }

/* Results summary card */
.results-summary {
  max-width: 640px;
  margin: 0 auto 60px;
}
.results-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.result-stat {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
}
.result-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 4px;
}
.result-stat-value.positive { color: var(--green); }
.result-stat-label {
  font-size: 13px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Offer section */
.offer-section {
  padding: 80px 0;
  background: var(--navy-mid);
}
.offer-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy-light);
  border: 2px solid rgba(245, 166, 35, 0.3);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.offer-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber), var(--amber-dark));
}
.offer-badge {
  display: inline-block;
  background: var(--amber);
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.offer-title { margin-bottom: 8px; }
.price-original {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--slate);
  text-decoration: line-through;
  margin-bottom: 4px;
}
.price-current {
  font-family: var(--font-mono);
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 8px;
}

/* Timer */
.timer-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
  color: var(--red);
  font-weight: 600;
}
.timer-icon { font-size: 18px; }
.timer-value {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
}

/* What's included */
.offer-includes {
  text-align: left;
  margin: 24px 0 32px;
  padding: 24px;
  background: rgba(245, 166, 35, 0.03);
  border-radius: var(--radius-sm);
}
.offer-includes h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--amber);
  margin-bottom: 16px;
}
.offer-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--off-white);
  line-height: 1.5;
}
.offer-item:last-child { margin-bottom: 0; }
.offer-check {
  color: var(--green);
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.offer-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* --- FAQ --- */
.faq-section { padding: 60px 0; }
.faq-list { max-width: 640px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.faq-item summary {
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
  transition: color 0.2s;
}
.faq-item summary:hover { color: var(--amber); }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--amber);
  transition: transform 0.2s var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-answer {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--slate-light);
  line-height: 1.7;
}

/* --- THANK YOU PAGE --- */
.thankyou-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}
.thankyou-icon {
  width: 80px;
  height: 80px;
  background: var(--green-bg);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 36px;
}
.thankyou-steps {
  text-align: left;
  max-width: 480px;
  margin: 32px auto 0;
}
.thankyou-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.thankyou-step-num {
  width: 32px;
  height: 32px;
  background: var(--amber-glow);
  border: 1px solid var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
  flex-shrink: 0;
}
.thankyou-step-text {
  font-size: 15px;
  color: var(--off-white);
  line-height: 1.5;
}

/* --- CHECKOUT / PAYMENT --- */
.checkout-section {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 0;
}
.checkout-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 18px;
}
.checkout-total-value {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--amber);
}
.checkout-success {
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp 0.5s var(--ease);
}
.checkout-success-icon {
  width: 64px;
  height: 64px;
  background: var(--green-bg);
  border: 2px solid var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
}

/* Processing overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 40, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  flex-direction: column;
  gap: 16px;
}
.overlay.active { display: flex; }
.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.overlay-text { font-size: 16px; color: var(--slate-light); }

/* --- FOOTER --- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-links a { font-size: 13px; color: var(--slate); }
.footer-links a:hover { color: var(--amber); }
.footer-copy { font-size: 12px; color: var(--slate); }

/* --- ANIMATIONS --- */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .form-row { grid-template-columns: 1fr; }
  .results-summary-grid { grid-template-columns: 1fr; }
  .offer-card { padding: 32px 24px; }
  .offer-ctas { gap: 10px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
  .quiz-question-text { font-size: 22px; }
  .quiz-option { padding: 14px 16px; font-size: 15px; }
  .vsl-hero { padding: 40px 0 24px; }
  .results-bot-tag { font-size: 13px; padding: 8px 12px; }
}

@media (max-width: 480px) {
  .headline-xl { font-size: 28px; }
  .headline-lg { font-size: 24px; }
  .btn-lg { font-size: 18px; padding: 16px 28px; }
  .quiz-wrapper { padding: 40px 16px; }
  .offer-card { margin: 0 -8px; border-radius: var(--radius); }
  .results-leak-number { font-size: 42px; }
}
