/* ═══════════════════════════════════════════════════════════
   KweliAI — style.css
   Aesthetic: luxury minimal, ocean-white, cinematic trust
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --ink:        #06111f;
  --ink-mid:    #2c3e52;
  --ink-light:  #6b7f93;
  --ocean:      #f0f6ff;
  --ocean-card: #ffffff;
  --cyan:       #38bdf8;
  --cyan-dark:  #0369a1;
  --cyan-soft:  rgba(56,189,248,0.10);
  --gold:       #c9a84c;
  --gold-light: #e8c97a;
  --green:      #10b981;
  --red:        #ef4444;
  --amber:      #f59e0b;
  --border:     rgba(6,17,31,0.08);
  --shadow-sm:  0 1px 3px rgba(6,17,31,0.06), 0 1px 2px rgba(6,17,31,0.04);
  --shadow-md:  0 4px 16px rgba(6,17,31,0.08), 0 2px 6px rgba(6,17,31,0.05);
  --shadow-lg:  0 20px 60px rgba(6,17,31,0.10), 0 8px 20px rgba(6,17,31,0.06);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;
  --max-w:   960px;
  --radius:  12px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ocean);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── NAV ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(240,246,255,0.90);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-mid);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--ink); }

/* ── NAV BUTTONS ──────────────────────────────────────── */

/* Upgrade button (free users) */
.btn-premium {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-card);
  background: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-premium:hover {
  background: var(--cyan-dark);
  transform: translateY(-1px);
}

/* PRO badge (pro users) — gold accent, no interaction */
.nav-pro-badge {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold) !important;
  background: rgba(201,168,76,0.08) !important;
  border: 1px solid rgba(201,168,76,0.35) !important;
  border-radius: 4px;
  padding: 0.45rem 1.1rem;
  cursor: default !important;
  pointer-events: none;
  white-space: nowrap;
}

/* Sign out (logged-in users) — red, always visible */
.btn-nav-signout {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #dc2626;
  background: none;
  border: 1px solid rgba(220,38,38,0.22);
  border-radius: 4px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-nav-signout:hover {
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.45);
}

/* Google sign-in CTA */
.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean-card);
  background: var(--ink);
  border: none;
  border-radius: 4px;
  padding: 0.45rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.nav-cta-btn:hover { background: var(--cyan-dark); transform: translateY(-1px); }

/* Avatar in nav-left */
.nav-avatar-left {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.user-avatar-initials {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 1.5rem 60px;
}

.hero-inner {
  width: 100%;
  max-width: var(--max-w);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-dark);
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.eyebrow-dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s ease 0.1s both;
}

.hero-title em {
  font-style: italic;
  color: var(--cyan-dark);
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 2.8rem;
  animation: fadeUp 0.6s ease 0.2s both;
}

/* ── SCAN BOX ─────────────────────────────────────────── */
.scan-box {
  width: 100%;
  max-width: 660px;
  animation: fadeUp 0.6s ease 0.3s both;
}

.scan-input-row {
  display: flex;
  align-items: center;
  background: var(--ocean-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.scan-input-row:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.12), var(--shadow-md);
}

.scan-icon {
  color: var(--ink-light);
  flex-shrink: 0;
  margin-right: 0.6rem;
  display: flex;
  align-items: center;
}

.scan-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.scan-input::placeholder { color: var(--ink-light); }

.scan-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.72rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.scan-btn:hover  { background: var(--cyan-dark); transform: translateY(-1px); }
.scan-btn:active { transform: translateY(0); }
.scan-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.scan-btn-icon { transition: transform 0.2s; }
.scan-btn:hover .scan-btn-icon { transform: translateX(3px); }

/* Platform badges */
.platform-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  margin-top: 1rem;
}

.badge {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.7rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  background: var(--ocean-card);
  transition: opacity 0.2s;
}

.badge-pro { opacity: 0.5; }

.pro-tag {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 0.25rem;
}

/* Scan counter */
.scan-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--ink-light);
  letter-spacing: 0.02em;
}

#scanCountText {
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.upgrade-inline-btn {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--cyan-dark);
  background: var(--cyan-soft);
  border: 1px solid rgba(56,189,248,0.3);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.upgrade-inline-btn:hover {
  background: rgba(56,189,248,0.18);
  border-color: rgba(56,189,248,0.5);
}

/* ── RESULT PANEL ─────────────────────────────────────── */
.result-panel {
  width: 100%;
  max-width: 660px;
  margin-top: 1.5rem;
  background: var(--ocean-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.4s ease both;
}

.result-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 2rem;
}

.loading-spinner {
  width: 36px; height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-steps { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.loading-step { font-size: 0.82rem; color: var(--ink-light); transition: color 0.3s; }
.loading-step.active { color: var(--ink); font-weight: 400; }

.result-content { padding: 2rem; }

.verdict-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.verdict-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.verdict-icon.ai   { background: rgba(239,68,68,0.10);  color: var(--red);   }
.verdict-icon.human{ background: rgba(16,185,129,0.10); color: var(--green); }
.verdict-icon.mixed{ background: rgba(245,158,11,0.10); color: var(--amber); }
.verdict-icon.deep { background: rgba(239,68,68,0.15);  color: var(--red);   }

.verdict-label {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.verdict-platform {
  font-size: 0.78rem;
  color: var(--ink-light);
  margin-top: 0.2rem;
  letter-spacing: 0.04em;
}

.score-section { margin-bottom: 1.5rem; }

.score-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 0.5rem;
}

.score-track {
  position: relative;
  height: 6px;
  background: linear-gradient(to right, var(--green), #a3e635 40%, var(--amber) 60%, var(--red));
  border-radius: 100px;
  overflow: visible;
}

.score-fill {
  position: absolute;
  inset: 0;
  background: var(--ocean-card);
  border-radius: 100px;
  transform-origin: right;
  transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--ocean-card);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: left 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.score-number-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.score-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

.score-confidence {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.conf-high   { background: rgba(16,185,129,0.10); color: #059669; }
.conf-medium { background: rgba(245,158,11,0.10); color: #d97706; }
.conf-low    { background: rgba(107,127,147,0.10); color: var(--ink-light); }

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.detail-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 400;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  background: var(--ocean);
}

.pill-label {
  font-weight: 500;
  color: var(--ink-light);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-summary {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.7;
  padding: 1rem 1.2rem;
  background: var(--ocean);
  border-radius: 8px;
  border-left: 3px solid var(--cyan);
  margin-bottom: 1.4rem;
}

.scan-again-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-mid);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.scan-again-btn:hover { border-color: var(--ink); color: var(--ink); }

.result-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 2rem;
  text-align: center;
}
.error-icon { color: var(--amber); }
.error-msg  { font-size: 0.88rem; color: var(--ink-mid); max-width: 380px; line-height: 1.6; }

/* ── METRICS ──────────────────────────────────────────── */
.metrics {
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ocean-card);
}

.metrics-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 140px;
}

.metric-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.03em;
}
.metric-unit { font-size: 0.55em; letter-spacing: 0; }

.metric-label {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--ink-light);
  line-height: 1.5;
}

.metric-divider {
  width: 1px;
  height: 60px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── HOW IT WORKS ─────────────────────────────────────── */
.how { padding: 6rem 1.5rem; }

.how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.how-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 300;
  text-align: center;
  margin-bottom: 3.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.how-steps {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.how-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.02em;
}

.step-title { font-size: 0.88rem; font-weight: 500; color: var(--ink); letter-spacing: 0.02em; }
.step-desc  { font-size: 0.78rem; font-weight: 300; color: var(--ink-light); line-height: 1.65; }

.how-arrow {
  font-size: 1.2rem;
  color: var(--border);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 0.8rem;
}

/* ── FAQ ─────────────────────────────────────────── */
.faq { padding: 5rem 1.5rem; background: var(--ocean-card); border-top: 1px solid var(--border); }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 2.5rem;
  letter-spacing: -0.01em;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--cyan-dark); }
.faq-chevron {
  font-size: 0.85rem;
  color: var(--ink-light);
  flex-shrink: 0;
  transition: transform 0.3s ease;
  display: inline-block;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--cyan-dark); }
.faq-a {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.75;
  padding-bottom: 1.25rem;
  display: none;
  font-weight: 300;
}
.faq-item.open .faq-a { display: block; }

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(240,246,255,0.55);
  padding: 0 0 1.5rem;
  position: relative;
}

/* Gold brand line — top of footer */
.footer-gold-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent 0%,
    var(--gold) 20%,
    var(--gold-light) 50%,
    var(--gold) 80%,
    transparent 100%
  );
  margin-bottom: 3rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 0 2rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 1.5rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: rgba(240,246,255,0.92);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.footer-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.85;
  height: 26px;
  width: auto;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-style: italic;
  line-height: 1.65;
  color: rgba(240,246,255,0.38);
}

/* Brand credit line — gold, premium feel */
.footer-brand-credit {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.75;
  margin-top: 0.4rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding-top: 0.25rem;
}

.footer-link {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: rgba(240,246,255,0.42);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: rgba(240,246,255,0.9); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  font-size: 0.68rem;
  color: rgba(240,246,255,0.22);
  letter-spacing: 0.04em;
}

/* ── MODAL ────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(6,17,31,0.55);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-overlay.visible { display: flex; }

.modal-box {
  background: var(--ocean-card);
  border-radius: 16px;
  padding: 2rem;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 32px 80px rgba(6,17,31,0.18), 0 8px 24px rgba(6,17,31,0.1);
  max-height: 90vh;
  overflow-y: auto;
  /* Gold top accent on modal — premium signal */
  border-top: 2px solid var(--gold);
}

.modal-close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink-light);
  transition: color 0.2s;
}
.modal-close:hover { color: var(--ink); }

/* Modal badge — gold for Pro */
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(201,168,76,0.10);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.28);
  padding: 0.25rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.modal-body {
  color: var(--ink-light);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* Feature comparison table */
.plan-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 1rem 0 0.5rem;
}

.plan-compare-table th,
.plan-compare-table td {
  padding: 0.55rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--ink-mid);
}

.plan-compare-table thead th {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-light);
  padding-bottom: 0.5rem;
}

.plan-compare-table tbody tr:last-child td { border-bottom: none; }
.plan-compare-table tbody tr:hover td { background: var(--ocean); }
.plan-compare-table .col-pro { color: var(--gold); font-weight: 500; }
.plan-compare-table thead .col-pro { color: var(--gold); }

/* Plan buttons */
.modal-plans {
  display: flex;
  gap: 0.75rem;
  margin: 1.2rem 0 0.8rem;
}

.plan-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--ocean);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}
.plan-btn:hover {
  border-color: var(--gold);
  background: var(--ocean-card);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.plan-period {
  font-size: 0.72rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
  letter-spacing: 0.04em;
}

.plan-save {
  display: inline-block;
  background: rgba(16,185,129,0.12);
  color: #059669;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
  margin-left: 0.3rem;
}

.modal-note {
  font-size: 0.7rem;
  color: var(--ink-light);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

/* ── SITE BANNER ──────────────────────────────────────── */
.site-banner {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  font-family: var(--font-body);
  animation: fadeUp 0.3s ease both;
}
.site-banner--success { background: #059669; color: #fff; }
.site-banner--error   { background: #dc2626; color: #fff; }

/* ── UTILITIES ────────────────────────────────────────── */
.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 0 1rem; height: 56px; }
  .nav-link { display: none; }

  .hero { padding: 90px 1rem 50px; }
  .scan-input-row { flex-wrap: wrap; gap: 0.5rem; }
  .scan-btn { width: 100%; justify-content: center; }

  .metrics-inner { flex-direction: column; }
  .metric-divider { width: 60px; height: 1px; }

  .how-steps { flex-direction: column; align-items: flex-start; }
  .how-arrow { transform: rotate(90deg); }

  .footer-inner { flex-direction: column; padding: 0 1.5rem 2rem; }
  .footer-bottom { padding: 0 1.5rem; }

  .verdict-header { flex-direction: column; text-align: center; }
  .modal-plans { flex-direction: column; }
}
/* ═══════════════════════════════════════════════════════
   KweliAI — CSS PATCHES
   Add these at the very bottom of style.css,
   replacing any conflicting rules above them.
   ═══════════════════════════════════════════════════════ */

/* ── FIX 1: Footer logo — remove filter so SVG renders naturally ── */
.footer-logo img {
  filter: none;          /* remove brightness(0) invert(1) — was hiding the SVG */
  opacity: 0.9;
  height: 26px;
  width: auto;
}

/* ── FIX 2: Button loading state ─────────────────────────────────── */
/* Applied via JS: btn.classList.add('btn--loading') while awaiting  */

.btn--loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  opacity: 0.75;
}

.btn--loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spin 0.65s linear infinite;
}

/* For dark-border buttons (sign out, pro badge, inline upgrade) */
.btn--loading-dark::after {
  border-color: rgba(6,17,31,0.2);
  border-top-color: var(--ink);
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

/* Plan buttons get a slightly larger spinner */
.plan-btn.btn--loading::after {
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-color: rgba(6,17,31,0.15);
  border-top-color: var(--ink);
}

/* Scan button loading — keep same width, just show spinner */
.scan-btn.btn--loading {
  min-width: 100px; /* prevent width collapse */
}

/* ═══════════════════════════════════════════════════════
   MOBILE NAV FIX — paste at very bottom of style.css
   ═══════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* Nav: logo left, auth right — no three-column layout */
  .nav {
    padding: 0 1rem;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Hide "Our story" on mobile — not enough room */
  .nav-left {
    display: none !important;
  }

  /* Logo takes natural width, sits on the left */
  .nav-center {
    flex: 0 0 auto;
    justify-content: flex-start;
  }

  /* Auth sits on the far right */
  .nav-right {
    flex: 0 0 auto;
    gap: 0.5rem;
  }

  /* Shrink the upgrade / PRO badge on mobile */
  .btn-premium,
  .btn-nav-signout,
  .nav-pro-badge {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
    letter-spacing: 0.04em;
  }

  /* Google sign-in button — icon only on mobile */
  .nav-cta-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.65rem;
    gap: 0.4rem;
    border-radius: 6px;
  }

  /* Hide the "Sign in with Google" text on very small screens,
     show just the Google logo */
  .nav-cta-btn .nav-cta-text {
    display: none;
  }

  /* Avatar stays the same size */
  .nav-avatar-left,
  .user-avatar-img {
    width: 28px;
    height: 28px;
  }

  .user-avatar-initials {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  /* Logo text slightly smaller */
  .nav-logo-text {
    font-size: 1.05rem;
  }

  .nav-logo-img {
    height: 26px;
  }
}

/* Even smaller screens (iPhone SE etc) */
@media (max-width: 380px) {
  .nav-logo-text {
    display: none; /* show icon only */
  }
}

/* ═══════════════════════════════════════════════════════
   AUTH MODAL — v0.6 additions
   Google + Email/Password, sign-in / sign-up toggle
   ═══════════════════════════════════════════════════════ */

.auth-modal-box {
  /* slightly taller to fit the email form */
  max-height: 92vh;
}

/* Google button */
.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1.2rem;
  background: var(--ocean-card);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: 0.01em;
}
.auth-google-btn:hover {
  border-color: rgba(6,17,31,0.22);
  box-shadow: var(--shadow-sm);
  background: var(--ocean);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0;
  color: var(--ink-light);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Email form */
.auth-email-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.auth-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  background: var(--ocean);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.auth-input::placeholder { color: var(--ink-light); }
.auth-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.10);
  background: var(--ocean-card);
}

.auth-error {
  font-size: 0.78rem;
  color: var(--red);
  line-height: 1.4;
  margin: 0;
  padding: 0;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.75rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.15rem;
}
.auth-submit-btn:hover { background: var(--cyan-dark); transform: translateY(-1px); }
.auth-submit-btn:active { transform: translateY(0); }

/* Toggle row */
.auth-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--ink-light);
}

.auth-toggle-btn {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cyan-dark);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.auth-toggle-btn:hover { color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   REPORT GATE — blurred detail + unlock overlay
   ═══════════════════════════════════════════════════════ */

/* Content that gets blurred when gate is active */
.blurred-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  opacity: 0.55;
  transition: filter 0.4s ease, opacity 0.4s ease;
}

/* Gate overlay — sits between score bar and scan-again button */
.report-gate {
  margin: 0.25rem 0 1.2rem;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-card) 100%);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: relative;
  /* subtle gold top accent — feels like a value gate, not a block */
  border-top: 2px solid var(--gold);
}

.report-gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.report-gate-lock {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
  line-height: 1;
}

.report-gate-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.report-gate-body {
  font-size: 0.82rem;
  color: var(--ink-light);
  line-height: 1.55;
  max-width: 300px;
  margin: 0;
}

.report-gate-btn {
  margin-top: 0.6rem;
  padding: 0.7rem 1.6rem;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.report-gate-btn:hover { background: var(--cyan-dark); transform: translateY(-1px); }
.report-gate-btn:active { transform: translateY(0); }

.report-gate-note {
  font-size: 0.7rem;
  color: var(--ink-light);
  margin-top: 0.2rem;
  letter-spacing: 0.01em;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .report-gate { padding: 1.2rem 1rem; }
  .report-gate-title { font-size: 1.1rem; }
}

/* ── PASSWORD FIELD — eye toggle + bigger dots ─────────── */

.auth-password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

/* Password input inside wrapper — full width, right padding for eye button */
.auth-password-input {
  width: 100%;
  padding-right: 2.8rem !important;
  /* Bigger password mask dots */
  font-size: 1.35rem;
  letter-spacing: 0.18em;
}

/* Restore normal font size when showing plain text */
.auth-password-input[type="text"] {
  font-size: 0.88rem;
  letter-spacing: normal;
}

/* Eye button */
.auth-eye-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border-radius: 4px;
  transition: color 0.2s;
  line-height: 1;
}
.auth-eye-btn:hover { color: var(--ink); }

/* ── Yearly plan featured highlight ─────────────────── */
.plan-yearly--featured {
  border-color: var(--gold) !important;
  background: rgba(201,168,76,0.06) !important;
  position: relative;
  box-shadow: 0 0 0 2px rgba(201,168,76,0.2);
}
.plan-yearly--featured:hover {
  box-shadow: 0 0 0 3px rgba(201,168,76,0.35) !important;
}
.plan-badge-top {
  display: inline-block;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.4rem;
}
.plan-per-month {
  font-size: 0.68rem;
  color: var(--ink-light);
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

/* ── Feedback widget ─────────────────────────────────── */
#feedbackFloatBtn:hover { transform: scale(1.1); background: var(--cyan-dark) !important; }
.feedback-type-btn {
  font-family: var(--font-body);
  font-size: 0.75rem;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--ocean);
  color: var(--ink-mid);
  cursor: pointer;
  transition: all 0.15s;
}
.feedback-type-btn:hover { border-color: var(--ink); color: var(--ink); }
.feedback-type-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }