/* =========================================================
   TopPicks Compare — Shared Stylesheet
   Vanilla CSS, custom properties, mobile-first.
   ========================================================= */

/* ---- Design tokens ---- */
:root {
  --accent: #c0392b;
  --accent-light: #e0574a;
  --accent-dark: #8e2a1f;
  --violet: #6d28d9;
  --green: #2ecc71;

  --ink: #111111;
  --muted: #6b7280;
  --bg: #ffffff;
  --surface: #fafafa;
  --line: #e5e7eb;

  --radius: 12px;
  --radius-card: 16px;
  --radius-pill: 999px;

  --header-h: 72px;
  --font: "Outfit", "Poppins", "Space Grotesk", system-ui, -apple-system, sans-serif;

  --max: 1200px;
  --maxc: 900px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 1000;
  transition: top .15s ease;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- Eyebrow / meta label style ---- */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  font-variant: small-caps;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .15s ease;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--accent);
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .15s ease;
}
.nav-toggle-label span::before { position: absolute; top: -7px; }
.nav-toggle-label span::after { position: absolute; top: 7px; }
#nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle-label { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height .2s ease;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 24px 20px;
    gap: 4px;
  }
  .main-nav a {
    display: block;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--line);
  }
  #nav-toggle:checked ~ .main-nav {
    max-height: 420px;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background:
    radial-gradient(circle at 50% 0%, var(--accent-dark) 0%, transparent 60%),
    linear-gradient(180deg, #2a0d0d 0%, #150808 100%);
  color: #f5efe9;
  padding: clamp(32px, 5vw, 64px) 24px clamp(64px, 8vw, 96px);
  text-align: center;
}
.hero-inner {
  max-width: var(--maxc);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero .eyebrow { color: var(--accent-light); margin-bottom: 4px; }
.hero h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  max-width: 18ch;
}
.hero-byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: #3a2424 linear-gradient(135deg, #5a3030, #2a1515);
  object-fit: cover;
}
.author-name { color: #c9bfb9; font-weight: 600; font-size: 0.95rem; }

.updated-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: #efe8e3;
}
.updated-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(46,204,113,0.25);
  flex-shrink: 0;
}

.hero .intro {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #e7ded8;
  max-width: 65ch;
  font-weight: 400;
}

.trust-chips {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.chip {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 10px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  color: #f1ece7;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip::before {
  content: "✓";
  color: var(--accent-light);
  font-weight: 800;
}
.chip--1 { width: 78%; justify-content: center; }
.chip--2 { width: 92%; justify-content: center; }
.chip--3 { width: 64%; justify-content: center; }

/* =========================================================
   PAGE HERO (secondary pages — About / Contact / RG)
   ========================================================= */
.page-hero {
  background:
    radial-gradient(circle at 50% 0%, var(--accent-dark) 0%, transparent 60%),
    linear-gradient(180deg, #2a0d0d 0%, #150808 100%);
  color: #f5efe9;
  padding: clamp(20px, 2.5vw, 28px) 24px clamp(56px, 8vw, 88px);
  text-align: center;
}
.page-hero .eyebrow { color: var(--accent-light); margin-bottom: 10px; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  max-width: 24ch;
  margin: 0 auto;
}
.page-hero p {
  max-width: 60ch;
  margin: 16px auto 0;
  color: #e7ded8;
  font-size: 1.1rem;
  line-height: 1.6;
}

/* =========================================================
   RANKED LIST SECTION
   ========================================================= */
.ranked-section {
  background: var(--surface);
  padding: clamp(56px, 8vw, 96px) 24px;
}
.section-head {
  max-width: var(--maxc);
  margin: 0 auto 36px;
  text-align: center;
}
.section-head .eyebrow { display: block; margin-bottom: 10px; }
.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}
.section-head p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 1.05rem;
}

.rank-list {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
  counter-reset: rank;
}

.rank-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}

.ribbon {
  position: absolute;
  top: -14px;
  left: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 6px 6px 6px 0;
  box-shadow: 0 6px 14px rgba(192,57,43,0.35);
}

.rank-num {
  flex: 0 0 56px;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  text-align: center;
}

.logo-tile {
  flex: 0 0 200px;
  width: 200px;
  height: 100px;
  max-width: 100%;
  background: #17171b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 8px;
}

.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brand-info {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 160px;
}
.brand-name { font-size: 1.1rem; font-weight: 700; }
.score-row { display: flex; align-items: center; gap: 8px; }
.score-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.score-suffix { color: var(--muted); font-size: 0.85rem; }
.score-caption {
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.offer-text {
  flex: 1 1 220px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cta-btn {
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(192,57,43,0.3);
  background: var(--accent-light);
}
.cta-btn .arrow { transition: transform .15s ease; }
.cta-btn:hover .arrow { transform: translateX(3px); }

.fine-print {
  max-width: 1040px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .rank-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px 24px;
  }
  .brand-info { align-items: center; }
  .offer-text { -webkit-line-clamp: 3; }
  .cta-btn { width: 100%; justify-content: center; }
  .ribbon { left: 50%; transform: translateX(-50%); }
}

/* =========================================================
   GENERIC CONTENT SECTIONS (About / Contact / RG pages)
   ========================================================= */
.content-section {
  padding: clamp(48px, 7vw, 80px) 24px;
  max-width: 820px;
  margin: 0 auto;
}
.content-section + .content-section {
  border-top: 1px solid var(--line);
}
.content-section h2 {
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  margin-bottom: 14px;
}
.content-section h3 {
  font-size: 1.15rem;
  margin: 24px 0 10px;
}
.content-section p {
  color: #374151;
  line-height: 1.7;
  margin: 0 0 14px;
}
.content-section ul,
.content-section ol {
  color: #374151;
  line-height: 1.7;
  padding-left: 1.3em;
  margin: 0 0 14px;
}
.content-section li { margin-bottom: 6px; }
.content-section a.inline-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.surface-block {
  background: var(--surface);
}
.surface-block .content-section { border-top: none; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}
.team-card h3 { margin: 0 0 4px; font-size: 1rem; }
.team-card .role {
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin: 20px 0;
}
.help-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 20px;
}
.help-card h3 { margin: 0 0 6px; font-size: 1rem; }
.help-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.help-card a:hover { text-decoration: underline; }

.cta-wrap { margin: 22px 0 4px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.95rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}
.data-table td { color: #374151; }
.data-table tbody tr:last-child td { border-bottom: none; }

.callout {
  background: #fff5f4;
  border: 1px solid #f3c9c4;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
  color: #7a221a;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- Contact form ---- */
.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-weight: 700;
  font-size: 0.85rem;
}
.form-row input,
.form-row textarea,
.form-row select {
  font-family: inherit;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.submit-btn {
  justify-self: start;
  background: var(--accent);
  color: #fff;
  border: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(192,57,43,0.3);
  background: var(--accent-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 700px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
address { font-style: normal; line-height: 1.8; color: #374151; }
address .label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  margin-top: 16px;
}
address .label:first-child { margin-top: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #111;
  color: #c7c7c7;
  padding: 48px 24px 28px;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand {
  max-width: 340px;
}
.footer-brand .logo { color: #fff; margin-bottom: 10px; }
.footer-brand p { color: #9aa0a6; font-size: 0.9rem; line-height: 1.6; }
.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}
.footer-col h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: #9aa0a6;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid #262626;
  font-size: 0.8rem;
  color: #7d8287;
  line-height: 1.7;
}
.footer-bottom strong { color: #b4b9be; }
