/* ============================================================
   bookdancelesson audit tool — styles.css
   Palette: deep navy #0c1428, mid navy #1a2d5a, gold #e8c560,
            copper #c4581c, cream #f8f5ee.
   Typography: Inter; ultra-bold uppercase for hero H1s.
   Mirrors the CustomerFlood reference but in the BDD palette.
   ============================================================ */
:root {
  --navy-950: #0a0f1e;
  --navy-900: #0c1428;
  --navy-800: #131a30;
  --navy-700: #1a2d5a;
  --navy-500: #35506e;
  --navy-100: #e6eaf3;
  --gold-500: #e8c560;
  --gold-400: #f0d27a;
  --gold-600: #c9a73e;
  --gold-700: #a78628;
  --copper-500: #c4581c;
  --copper-600: #a64514;
  --cream:    #f8f5ee;
  --stone-50: #f7f6f3;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --emerald-500: #10b981;

  --hero-gradient: linear-gradient(135deg, #0c1428 0%, #1a2d5a 60%, #2d1f0e 100%);
  --btn-gold-gradient: linear-gradient(135deg, #e8c560 0%, #c9a73e 100%);
  --btn-gold-gradient-hover: linear-gradient(135deg, #f0d27a 0%, #d4b145 100%);
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: var(--cream); color: var(--navy-900); line-height: 1.5;
}
a { color: var(--gold-700); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 1.5rem; max-width: 1100px; margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; color: var(--navy-900);
}
.brand:hover { text-decoration: none; }
.brand .logo { height: 28px; width: 28px; object-fit: contain; }
.brand-name { font-weight: 900; font-size: 1.15rem; letter-spacing: -0.01em; }

/* ===== HERO ===== */
.hero {
  position: relative; background: var(--hero-gradient);
  color: #fff; overflow: hidden;
  padding: 4rem 0 5rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.hero-content { position: relative; max-width: 760px; margin: 0 auto; text-align: center; }
.kicker {
  display: inline-block;
  background: rgba(26,45,90,0.6); border: 1px solid var(--navy-700);
  color: var(--gold-500); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.4rem 1rem; border-radius: 9999px;
}
.kicker-on-dark {
  background: rgba(232,197,96,0.15);
  color: var(--gold-500);
  border-color: rgba(232,197,96,0.4);
}
.hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(1.9rem, 4.5vw, 3.2rem);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -0.02em; text-transform: uppercase;
  color: #fff;
}
.hero h1 strong { color: var(--gold-500); font-weight: 900; }
.hero-sub {
  margin: 1.25rem auto 0; max-width: 600px;
  font-size: 1.05rem; line-height: 1.6;
  color: rgba(230,234,243,0.8);
}

/* ===== FORM CARD ===== */
.audit-form {
  margin: 2.5rem auto 0;
  background: #fff; color: var(--navy-900);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  text-align: left;
  display: grid; gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.85rem; font-weight: 700; color: var(--navy-900); }
.field input, .field select {
  width: 100%; padding: 0.8rem 0.9rem;
  border: 1px solid var(--gray-300); border-radius: 10px;
  font-size: 1rem; font-family: inherit;
  color: var(--navy-900); background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(232,197,96,0.25);
}
.field input::placeholder { color: var(--gray-400); }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1.1rem; }
.field-full { grid-column: 1 / -1; }
.field-small { max-width: 160px; }
@media (max-width: 540px) { .field-row { grid-template-columns: 1fr; } }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  transition: box-shadow 0.15s, transform 0.05s, background 0.15s;
  font-size: 0.85rem; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background-image: var(--btn-gold-gradient);
  color: var(--navy-900);
  box-shadow: 0 10px 20px -8px rgba(232,197,96,0.5);
}
.btn-primary:hover {
  background-image: var(--btn-gold-gradient-hover);
  box-shadow: 0 14px 26px -8px rgba(232,197,96,0.6);
}
.btn-primary:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 1.75rem; font-size: 0.95rem; width: 100%; }
.btn-ghost {
  background: transparent; color: var(--navy-500);
  border: 1px solid var(--gray-300);
  padding: 0.55rem 1.1rem; font-size: 0.78rem;
}
.btn-ghost:hover {
  background: var(--stone-50); border-color: var(--navy-500); color: var(--navy-900);
}
.form-foot { margin: 0; text-align: center; font-size: 0.78rem; color: var(--navy-500); }

/* ===== SCAN STATUS PANEL (mid-flight) ===== */
.scan-status {
  margin: 2.5rem auto 0;
  max-width: 560px;
  background: #fff; color: var(--navy-900);
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
  border: 1px solid var(--gray-200);
  padding: 2rem 2.5rem;
  text-align: left;
}
.scan-status[hidden] { display: none; }
.status-headline {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: var(--navy-900);
}
.status-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.95rem;
}
.status-list li {
  position: relative;
  padding-left: 2.2rem;
  font-size: 0.95rem;
  color: var(--navy-500);
  transition: color 0.25s;
}
.status-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.05rem;
  width: 1.3rem; height: 1.3rem;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  transition: border-color 0.25s, background 0.25s;
}
.status-list li.done {
  color: var(--navy-900); font-weight: 500;
}
.status-list li.done::before {
  background: var(--emerald-500);
  border-color: var(--emerald-500);
}
.status-list li.done::after {
  content: "✓";
  position: absolute; left: 0.3rem; top: -0.05rem;
  color: #fff; font-weight: 900; font-size: 0.9rem;
}
.status-list li.active::before {
  border-color: var(--gold-500);
  animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(232,197,96,0.4); }
  50%     { box-shadow: 0 0 0 6px rgba(232,197,96,0); }
}

/* ===== PROOF / TRUST STRIP ===== */
.proof { padding: 3rem 0 4rem; background: var(--cream); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 720px; margin: 0 auto;
}
.proof-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.5rem 1rem; text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.proof-num {
  font-size: 2.25rem; font-weight: 900; color: var(--navy-900);
  line-height: 1.1; letter-spacing: -0.02em;
}
.proof-label {
  margin-top: 0.4rem; font-size: 0.8rem; color: var(--navy-500);
  text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600;
}
@media (max-width: 560px) { .proof-grid { grid-template-columns: 1fr; } }

/* ===== RESULTS HERO (dark header on the results page) ===== */
.page-results { background: var(--cream); }
.results-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 3rem 0 3.5rem;
  border-bottom: 4px solid var(--gold-500);
}
.results-head .kicker {
  background: rgba(232,197,96,0.15);
  color: var(--gold-500);
  border-color: rgba(232,197,96,0.4);
}
.results-head h1 {
  margin: 1rem 0 0.6rem;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.audit-url { font-size: 0.95rem; color: rgba(230,234,243,0.7); margin: 0; }
.audit-url a { color: var(--gold-500); }
.audit-url a:hover { color: var(--gold-400); }

/* ===== RESULTS BODY ===== */
.results-body { padding: 2.5rem 0 4rem; background: var(--cream); }
.adsense-slot {
  border: 2px dashed var(--gray-300);
  border-radius: 12px; padding: 2rem;
  text-align: center; margin: 0 0 2rem;
  color: var(--gray-500); font-size: 0.8rem;
  text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
}
.adsense-slot span { display: inline-block; }

/* ===== SCORE GRID ===== */
.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 900px) { .score-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .score-grid { grid-template-columns: 1fr; } }

.score-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.score-card header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.6rem;
}
.score-card .metric {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; font-weight: 700; color: var(--navy-500);
}
.score-card .grade {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.score-card .flag {
  margin: 0;
  font-size: 0.88rem; line-height: 1.45;
  color: var(--navy-500);
}
/* grade colors — A/B green, C amber, D/F red */
.score-card.grade-A .grade, .score-card.grade-B .grade { color: var(--emerald-500); }
.score-card.grade-C .grade { color: var(--gold-600); }
.score-card.grade-D .grade, .score-card.grade-F .grade { color: var(--copper-500); }

/* ===== EMAIL GATE ===== */
.email-gate {
  background: var(--navy-900);
  color: #fff;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2rem;
  align-items: center;
}
.email-gate .kicker.kicker-on-dark {
  background: rgba(232,197,96,0.15);
  color: var(--gold-500);
  border-color: rgba(232,197,96,0.4);
}
.email-gate h2 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.75rem; font-weight: 900;
  letter-spacing: -0.01em;
  color: #fff;
}
.email-gate p {
  margin: 0; font-size: 0.95rem; line-height: 1.55;
  color: rgba(230,234,243,0.75);
}
.email-gate-form {
  display: flex; flex-direction: column; gap: 0.85rem;
}
.email-gate-form input[type="email"] {
  background: var(--navy-800);
  border: 1px solid var(--navy-700);
  color: #fff;
  font-size: 1rem; font-family: inherit;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.email-gate-form input[type="email"]::placeholder { color: rgba(230,234,243,0.4); }
.email-gate-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(232,197,96,0.25);
}
.email-gate-form .privacy-line {
  margin: 0; font-size: 0.75rem;
  color: rgba(230,234,243,0.5);
  text-align: center;
}
@media (max-width: 720px) { .email-gate { grid-template-columns: 1fr; } }

/* ===== CTA CLUSTER ===== */
.cta-cluster {
  text-align: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  margin: 2rem 0;
}
.cta-cluster h2 {
  margin: 0 0 1.2rem;
  font-size: 1.4rem; font-weight: 800;
  color: var(--navy-900); letter-spacing: -0.01em;
}
.cta-cluster .btn-lg { display: inline-block; width: auto; min-width: 320px; }

/* ===== SITE FOOTER ===== */
.site-footer {
  background: var(--navy-900); color: rgba(230,234,243,0.6);
  padding: 1.5rem 0;
  font-size: 0.82rem;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
}
.footer-links { display: flex; gap: 1rem; }
.footer-links a { color: var(--gold-500); }
.footer-links a:hover { color: var(--gold-400); }
@media (max-width: 540px) {
  .footer-row { flex-direction: column; text-align: center; }
}
