/* ==========================================
   Legitness — Design System v2
   Mobile-first. Single column. Converts.
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:        #0a1628;
  --green:       #00a86b;
  --green-bg:    #f0fdf4;
  --green-text:  #14532d;
  --amber:       #f59e0b;
  --amber-bg:    #fffbeb;
  --amber-text:  #78350f;
  --red:         #e63946;
  --red-bg:      #fff1f2;
  --red-text:    #7f1d1d;
  --grey:        #6b7280;
  --border:      #e5e7eb;
  --white:       #ffffff;
  --bg:          #f9fafb;

  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:   12px;
  --radius-sm: 8px;
  --max-w:    600px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Utility ─────────────────────────── */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header ──────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--green);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  flex-shrink: 0;
}

.logo-mark svg { display: block; }
.logo span { color: var(--green); }

.header-search {
  flex: 1;
  position: relative;
}

.header-search input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 36px 9px 12px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  outline: none;
  transition: border-color 0.15s;
}

.header-search input:focus {
  border-color: var(--green);
  background: var(--white);
}

.header-search input::placeholder { color: #9ca3af; }

.header-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #9ca3af;
  display: flex;
  padding: 0;
}

/* Search dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 50;
  display: none;
  overflow: hidden;
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg); }
.search-result-name { font-weight: 600; font-size: 0.875rem; }
.search-result-domain { font-size: 0.75rem; color: var(--grey); margin-top: 1px; }

.search-result-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-legit   { background: var(--green-bg); color: var(--green-text); }
.badge-caution { background: var(--amber-bg); color: var(--amber-text); }
.badge-avoid   { background: var(--red-bg);   color: var(--red-text); }

.search-no-results { padding: 14px; font-size: 0.875rem; color: var(--grey); }

/* ── Breadcrumb ──────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--grey);
  padding: 12px 0;
}

.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb-sep { color: #d1d5db; font-size: 0.7rem; }

/* ── Verdict Block ───────────────────── */
.verdict-section {
  border-bottom: 3px solid;
  padding: 28px 0 24px;
}

.v-legit   { background: var(--green-bg); border-color: var(--green); }
.v-caution { background: var(--amber-bg); border-color: var(--amber); }
.v-avoid   { background: var(--red-bg);   border-color: var(--red); }

.verdict-section .wrap { text-align: center; }

.verdict-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.v-legit   .verdict-label { background: #dcfce7; color: var(--green-text); }
.v-caution .verdict-label { background: #fef3c7; color: var(--amber-text); }
.v-avoid   .verdict-label { background: #fee2e2; color: var(--red-text); }

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 16px;
}

.score-display {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 14vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -3px;
}

.v-legit   .score-display { color: #16a34a; }
.v-caution .score-display { color: #d97706; }
.v-avoid   .score-display { color: #dc2626; }

.score-denom {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.4;
  letter-spacing: 0;
}

.score-label {
  font-size: 0.75rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 6px 0 16px;
}

.verdict-summary {
  font-size: 1rem;
  line-height: 1.65;
  color: #374151;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Affiliate CTA ───────────────────── */
.cta-section {
  background: var(--white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-text { font-size: 1rem; color: var(--grey); flex: 1; min-width: 160px; }
.cta-text strong { display: block; color: var(--navy); font-weight: 600; font-size: 1rem; margin-bottom: 2px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.15s;
  flex-shrink: 0;
}

.cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.cta-btn-amazon  { background: #f90; color: #000; }
.cta-btn-legit   { background: var(--green); color: var(--white); }
.cta-btn-referral{ background: var(--navy); color: var(--white); }

.cta-disclosure {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 8px;
  width: 100%;
}

/* ── Checks ──────────────────────────── */
.checks-section { padding: 24px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 14px;
}

.check-list { display: flex; flex-direction: column; gap: 1px; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.5;
}

.check-item:last-child { border-bottom: none; }

.check-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  margin-top: 1px;
}

.check-icon.pass { background: #dcfce7; color: #16a34a; }
.check-icon.warn { background: #fef3c7; color: #d97706; }
.check-icon.fail { background: #fee2e2; color: #dc2626; }

/* ── Ad slot ─────────────────────────── */
.ad-slot {
  background: var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--grey);
  margin: 4px 0;
}

/* ── Analysis ────────────────────────── */
.analysis-section { padding: 24px 0; }

.analysis-text {
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

/* ── Related brands ──────────────────── */
.related-section {
  padding: 24px 0 32px;
  border-top: 1px solid var(--border);
}

.related-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.related-scroll::-webkit-scrollbar { display: none; }

.related-card {
  flex-shrink: 0;
  width: 130px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color 0.15s;
}

.related-card:hover { border-color: var(--navy); }

.related-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--navy);
  margin-bottom: 6px;
}

.related-card-verdict {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.verdict-legit   { color: #16a34a; }
.verdict-caution { color: #d97706; }
.verdict-avoid   { color: #dc2626; }

/* ── Footer ──────────────────────────── */
.site-footer {
  background: var(--navy);
  padding: 32px 0;
  margin-top: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

.footer-report {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}

.footer-report a { color: rgba(255,255,255,0.45); text-decoration: underline; }

.footer-bottom {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* ── Divider ─────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ── Sticky bottom CTA ───────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  /* safe area for notched phones */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}

.sticky-cta.visible { transform: translateY(0); }

.sticky-cta.v-caution { background: #92400e; }
.sticky-cta.v-legit   { background: #14532d; }
.sticky-cta.v-avoid   { background: #7f1d1d; }

.sticky-cta-text {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  flex: 1;
  min-width: 0;
}

.sticky-cta-text strong {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.15s;
}

.sticky-cta-btn:hover { opacity: 0.9; }
.sticky-cta.v-caution .sticky-cta-btn { background: var(--amber); color: #000; }
.sticky-cta.v-legit   .sticky-cta-btn { background: var(--green); color: #fff; }
.sticky-cta.v-avoid   .sticky-cta-btn { background: var(--red);   color: #fff; }

/* Push footer above sticky bar */
body { padding-bottom: 80px; }

/* ── Check detail ────────────────────── */
.check-detail {
  font-size: 0.82rem;
  color: var(--grey);
  margin-top: 3px;
  line-height: 1.4;
}

/* ── TL;DR box ───────────────────────── */
.tldr-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 0;
  text-align: left;
}
.tldr-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--grey);
  margin-bottom: 8px;
}
.tldr-text {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--navy);
  font-weight: 500;
}

/* ── Tip / Warn boxes ────────────────── */
.tip-box {
  background: var(--green-bg);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin: 20px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--green-text);
}
.tip-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.warn-box {
  background: var(--amber-bg);
  border-left: 3px solid var(--amber);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin: 20px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--amber-text);
}
.warn-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Analysis paragraphs ─────────────── */
.analysis-text p + p { margin-top: 16px; }

/* ── Responsive ──────────────────────── */
@media (max-width: 480px) {
  .cta-card { flex-direction: column; align-items: flex-start; }
  .cta-btn  { width: 100%; justify-content: center; }
}
