/* TopTechReviews.org — editorial comparison theme */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

:root {
  --bg: #f8f7f4;
  --bg-subtle: #f0eeea;
  --text: #1a1816;
  --muted: #5c5650;
  --border: #ddd8d0;
  --amber: #d97706;
  --amber-light: #fef3c7;
  --amber-dark: #92400e;
  --white: #fff;
  --green: #047857;
  --red: #b91c1c;
  --shadow-sm: 0 1px 2px rgba(26, 24, 22, 0.05);
  --shadow-md: 0 8px 24px rgba(26, 24, 22, 0.08);
  --radius: 10px;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: #0c4a6e; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container { max-width: 960px; margin: 0 auto; padding: 2rem 1rem 4rem; }
.container-wide { max-width: 1180px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.site-header-home { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px); background: rgba(255,255,255,0.95); }
.masthead-bar {
  background: var(--bg-subtle);
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.header-cta { flex-shrink: 0; }
.nav-inquiry { color: var(--amber-dark) !important; font-weight: 600; }
.brand-block { min-width: 0; }
.logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.tagline { margin: 0.2rem 0 0; font-size: 0.875rem; color: var(--muted); }
nav, .header-nav { display: flex; gap: 1.25rem; font-size: 0.875rem; font-weight: 500; }
nav a, .header-nav a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
nav a:hover, .header-nav a:hover { color: var(--text); }

/* Hero */
.hero .eyebrow, .eyebrow {
  color: var(--amber-dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}
.hero h1, .hero-home h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero-home h1 { max-width: 22ch; }
.lead { font-size: 1.125rem; color: #44403c; max-width: 44rem; margin: 0; }
.byline { font-size: 0.85rem; color: var(--muted); }
.partner-review { margin-top: 1rem; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.15rem; }
.stat strong { font-size: 1.75rem; font-family: var(--serif); color: var(--text); line-height: 1; }
.stat span { font-size: 0.8rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }

.search-wrap { margin-top: 1.5rem; }
.guide-search {
  width: 100%;
  max-width: 520px;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.guide-search:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.15);
}

/* Category navigation */
.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  position: sticky;
  top: 72px;
  z-index: 40;
  background: linear-gradient(var(--bg) 80%, transparent);
  padding-top: 0.5rem;
}
.cat-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.cat-nav-pill:hover, .cat-nav-pill.active {
  border-color: var(--amber);
  color: var(--amber-dark);
  background: var(--amber-light);
}
.pill-count {
  background: var(--bg-subtle);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}
.cat-nav-pill.active .pill-count { background: rgba(217, 119, 6, 0.15); }

/* Featured guide */
.featured-guide {
  margin: 2rem 0 3rem;
  border: 1px solid #fcd34d;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: linear-gradient(135deg, #fffbeb 0%, #fff 60%);
  box-shadow: var(--shadow-md);
}
.featured-label {
  background: var(--amber);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.25rem;
}
.featured-body {
  padding: 1.5rem 1.25rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .featured-body { grid-template-columns: 1fr auto; align-items: end; padding: 1.75rem 2rem; }
}
.featured-body h2 { font-family: var(--serif); font-size: 1.65rem; margin: 0.25rem 0 0.75rem; }
.featured-winner { margin: 1rem 0 0; font-size: 0.95rem; color: var(--muted); }
.featured-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Category sections */
.cat-section { margin-top: 3rem; scroll-margin-top: 6rem; }
.cat-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.cat-section-head h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.01em;
}
.cat-section-count { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

.cat-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }

.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  height: 100%;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d6d3d1;
}
.cat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.cat-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber-dark);
}
.cat-updated { font-size: 0.7rem; color: var(--muted); white-space: nowrap; }
.cat-card h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
.cat-card p { font-size: 0.875rem; color: var(--muted); margin: 0; flex: 1; line-height: 1.5; }
.cat-winner {
  margin: 0.75rem 0 0 !important;
  font-size: 0.8rem !important;
  color: var(--text) !important;
}
.cat-winner-label {
  display: inline-block;
  background: var(--amber-light);
  color: var(--amber-dark);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-right: 0.25rem;
}
.cat-link {
  color: #0c4a6e;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 1rem;
}

/* Comparison page components */
.winner-box {
  margin-top: 2rem;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.winner-banner {
  background: var(--amber);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  padding: 0.5rem;
}
.winner-body { padding: 1.5rem; }
.badge {
  background: var(--amber);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
}
.rank { background: #e7e5e4; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.75rem; font-weight: 600; }
.price { font-size: 1.25rem; font-weight: 700; }
.btn {
  display: inline-block;
  padding: 0.7rem 1.35rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); color: #fff; }
.btn-secondary { background: #44403c; color: #fff; }
.btn-secondary:hover { background: #292524; color: #fff; }
.btn-inquiry {
  background: var(--text);
  color: #fff;
  white-space: nowrap;
}
.btn-inquiry:hover { background: #292524; color: #fff; }

.inquiry-section {
  margin-top: 3rem;
  scroll-margin-top: 6rem;
}
.inquiry-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .inquiry-inner { grid-template-columns: 1fr auto; }
}
.inquiry-inner h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0.25rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.inquiry-inner p { margin: 0; color: var(--muted); max-width: 42rem; }
.inquiry-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.inquiry-link {
  font-weight: 600;
  color: var(--amber-dark);
  text-decoration: none;
}
.inquiry-link:hover { text-decoration: underline; }

.provider-list { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
@media (min-width: 640px) { .provider-list { grid-template-columns: 1fr 1fr; } }
.provider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}
.winner-row { border-color: #fcd34d; box-shadow: 0 0 0 1px #fde68a; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.75rem 1rem; text-align: left; border-bottom: 1px solid #f5f5f4; }
th { background: #fafaf9; color: var(--muted); font-weight: 600; }
.row-winner { background: #fffbeb; }
.score-grid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .score-grid { grid-template-columns: 1fr 1fr; } }
.score-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.score-card-winner { border-color: #fcd34d; }
.score-bar { display: flex; align-items: center; gap: 0.5rem; }
.score-track { flex: 1; height: 8px; background: #e7e5e4; border-radius: 999px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 999px; }
.bg-amber-500 { background: var(--amber); }
.bg-stone-400 { background: #a8a29e; }
.score-num { width: 2rem; text-align: right; font-size: 0.85rem; }
.font-bold { font-weight: 700; }
.text-amber-700 { color: var(--amber-dark); }
.text-stone-500 { color: var(--muted); }
.score-card dl { margin: 0.75rem 0 0; }
.score-card dt { font-size: 0.75rem; color: var(--muted); margin-top: 0.5rem; }
.score-card dd { margin: 0.15rem 0 0; }

.methodology, .faq, .review-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-top: 1rem;
}
.methodology-home {
  margin-top: 4rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
}
.methodology-home h2 { font-family: var(--serif); margin-top: 0; }
.methodology-grid {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
@media (min-width: 768px) { .methodology-grid { grid-template-columns: repeat(3, 1fr); } }
.methodology-grid h3 { font-size: 0.95rem; margin: 0 0 0.5rem; }
.methodology-grid p { font-size: 0.9rem; color: var(--muted); margin: 0; }

.review-winner { border-color: #fcd34d; }
.pros-cons { display: grid; gap: 1rem; margin: 1rem 0; }
@media (min-width: 640px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons h4 { font-size: 0.75rem; text-transform: uppercase; margin: 0 0 0.5rem; }
.pros-cons ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.pros-cons h4:first-child { color: var(--green); }
.pros-cons h4:last-of-type { color: var(--red); }
.disclosure { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }
.verdict {
  text-align: center;
  background: #fffbeb;
  border: 2px solid var(--amber);
  border-radius: var(--radius);
  padding: 2rem;
  margin-top: 2rem;
}
.muted { color: var(--muted); font-size: 0.85rem; }
section { margin-top: 2.5rem; }
section h2 { font-family: var(--serif); font-size: 1.5rem; }

/* Footer */
.site-footer {
  padding: 2.5rem 1.25rem 2rem;
  background: var(--text);
  color: #a8a29e;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.site-footer .logo { color: #fafaf9; font-family: var(--serif); font-size: 1.25rem; margin: 0 0 0.35rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: start; }
.footer-links a { color: #d6d3d1; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-note {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid #44403c;
  text-align: center;
  font-size: 0.75rem;
}
