/* Comparewise — Base Styles */
/* Design system: Magazine Style (UI/UX Pro Max) */
/* Typography: Libre Bodoni (headings) + Public Sans (body/UI) */
/* Colour: Editorial black + trust blue CTAs */

@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:wght@400;500;600;700&family=Public+Sans:wght@300;400;500;600;700&display=swap');

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: #1a1a1a;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-decoration: none;
  z-index: 100;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* Typography & Base */
body {
  font-family: Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  line-height: 1.75;
  font-size: 18px;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* Headings use sans-serif for contrast */
h1, h2, h3, h4, h5, h6,
nav, .badge, .comparison-table th,
.card-specs dt, .affiliate-notice,
.updated-date, .review-meta, .cta-button,
footer {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

/* Focus states (accessibility) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #1a6db5;
  outline-offset: 2px;
}

/* Layout */
header, main, footer {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid #1a1a1a;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #1a1a1a;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
}

.hero h1 {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
}

/* Content */
.content {
  padding: 48px 0;
}

.content h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.content h2:first-child {
  margin-top: 0;
}

.content p {
  color: #333;
  margin-bottom: 18px;
}

.content ul {
  margin: 0 0 18px 20px;
  color: #333;
}

.content li {
  margin-bottom: 10px;
}

.content a {
  color: #1a6db5;
  text-decoration: underline;
  text-decoration-color: #b3d4f0;
  text-underline-offset: 2px;
}

.content a:hover {
  text-decoration-color: #1a6db5;
}

.content strong {
  font-weight: 600;
}

.content em {
  font-style: italic;
}

/* Footer */
footer {
  margin-top: 48px;
  padding-top: 32px;
  padding-bottom: 48px;
  border-top: 2px solid #1a1a1a;
}

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

.footer-links a {
  color: #555;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-links a:hover {
  color: #1a1a1a;
}

.affiliate-disclosure {
  font-size: 0.82rem;
  color: #595959;
  line-height: 1.6;
  margin-bottom: 12px;
}

.affiliate-disclosure a {
  color: #595959;
  text-decoration: underline;
}

.copyright {
  font-size: 0.82rem;
  color: #6b6b6b;
}

/* Ordered lists in content */
.content ol {
  margin: 0 0 18px 20px;
  color: #333;
}

.content ol li {
  margin-bottom: 10px;
}

/* Comparison Page */
.comparison-page {
  max-width: 100%;
}

.affiliate-notice {
  background: #fafafa;
  border-left: 3px solid #ccc;
  border-radius: 0;
  padding: 10px 16px;
  font-size: 0.82rem;
  color: #595959;
  margin-bottom: 32px;
  line-height: 1.5;
}

.affiliate-notice a {
  color: #595959;
}

.updated-date {
  font-size: 0.85rem;
  color: #6b6b6b;
  margin-top: -2px;
  margin-bottom: 28px;
  font-weight: 500;
}

/* TLDR box */
.tldr {
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 0;
  padding: 24px 28px;
  margin: 36px 0;
  position: relative;
}

.tldr h2 {
  margin-top: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.tldr p {
  margin-bottom: 0;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Comparison Table (Desktop) */
.comparison-table-section h2 {
  margin-bottom: 20px;
}

.table-wrapper {
  overflow-x: auto;
  margin: 0 -24px 8px;
  padding: 0 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.comparison-table th {
  text-align: left;
  padding: 10px 14px;
  background: #1a1a1a;
  color: #fff;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th:first-child {
  border-radius: 4px 0 0 0;
}

.comparison-table th:last-child {
  border-radius: 0 4px 0 0;
}

.comparison-table td {
  padding: 14px 14px;
  border-bottom: 1px solid #e5e5e5;
  vertical-align: top;
  color: #333;
  line-height: 1.5;
}

.comparison-table tbody tr:hover {
  background: #f8f8f8;
}

.top-pick-row {
  background: #f0f7ee;
  border-left: 3px solid #2e7d32;
}

.top-pick-row:hover {
  background: #e8f2e5 !important;
}

.badge {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  vertical-align: middle;
  margin-left: 6px;
}

/* Mobile Cards (hidden on desktop) */
.mobile-cards {
  display: none;
}

.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.top-pick-card {
  border-color: #2e7d32;
  border-width: 2px;
  border-left-width: 4px;
  background: #f7fbf5;
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-price {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 14px;
}

.card-specs {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px 12px;
  font-size: 0.88rem;
}

.card-specs dt {
  font-weight: 600;
  color: #777;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-specs dd {
  color: #333;
}

/* Individual Reviews */
.reviews {
  counter-reset: review-counter;
}

.review {
  padding: 36px 0;
  border-bottom: 1px solid #e0e0e0;
  counter-increment: review-counter;
}

.review:last-child {
  border-bottom: none;
}

.review h2 {
  margin-top: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  margin-bottom: 4px;
}

.review-price {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 20px;
  padding-bottom: 16px;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
  font-weight: 500;
}

.review-price a {
  font-weight: 600;
  color: #fff;
  background: #1a6db5;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 3px;
  font-size: 0.85rem;
  display: inline-block;
  margin-left: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.review-price a:hover {
  background: #15578e;
  text-decoration: none;
  color: #fff;
}

.review-price a:active {
  transform: scale(0.97);
  background: #0f4a73;
}

/* Get this if / Skip this if callout boxes */
.review p:last-of-type,
.review p:nth-last-of-type(2) {
  /* Default styling, overridden by specific selectors below */
}

.review > p > strong:first-child {
  display: inline;
}

/* Pros/cons callout styling */
.callout-get,
.callout-skip {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
}

.callout-get {
  background: #f0f7ee;
  border-left: 3px solid #2e7d32;
}

.callout-skip {
  background: #fef3f0;
  border-left: 3px solid #c0392b;
}

.callout-get strong,
.callout-skip strong {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Verdict section */
.verdict {
  background: #1a1a1a;
  color: #fff;
  border-radius: 4px;
  padding: 28px 32px;
  margin: 40px 0;
}

.verdict h2 {
  margin-top: 0;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.verdict p {
  color: #ddd;
  line-height: 1.75;
}

.verdict strong {
  color: #fff;
}

/* Methodology note */
.methodology-note {
  border-top: 1px solid #e0e0e0;
  padding-top: 32px;
  margin-top: 16px;
}

.methodology-note h2 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #595959;
  margin-bottom: 12px;
}

.methodology-note p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  body { font-size: 17px; }
  header, main, footer { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.6rem; }
  .content { padding: 32px 0; }
  .content h1 { font-size: 1.6rem; }
  .content h2 { font-size: 1.2rem; }
  nav { padding: 16px 0; }

  /* Hide table, show cards on mobile */
  .table-wrapper { display: none; }
  .mobile-cards { display: block; }

  .tldr { padding: 18px 20px; }
  .verdict { padding: 20px 24px; }
  .review { padding: 28px 0; }
  .review-price a {
    display: block;
    text-align: center;
    margin-left: 0;
    margin-top: 10px;
  }
  .table-wrapper { margin: 0 -16px 8px; padding: 0 16px; }
}
