:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #f59e0b;
  --accent-light: #fef3c7;
  --text: #1e293b;
  --text-secondary: #64748b;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --gold: #d4a843;
  --copper: #b87333;
  --silver: #94a3b8;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--primary); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text);
  padding: 4px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d4a3e 100%);
  color: white;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  max-width: 700px;
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.hero-cta:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,148,136,0.3); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

/* Cards */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.25s;
}

.card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.card-badge.pick { background: var(--primary-light); color: var(--primary-dark); }
.card-badge.guide { background: var(--accent-light); color: #92400e; }
.card-badge.tool { background: #ede9fe; color: #6d28d9; }

.card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary); }

.card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

/* Article */
.article-header {
  padding: 60px 0 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.article-header .breadcrumb {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.article-header .breadcrumb a { color: var(--primary); }

.article-header h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 800px;
}

.article-header .subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.5;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
}

.article-content {
  padding: 48px 0 60px;
}

.article-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
  color: #334155;
  font-size: 16.5px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 24px 24px;
  color: #334155;
}

.article-content li { margin-bottom: 8px; }

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--bg-alt);
  border-radius: 0 8px 8px 0;
  color: var(--text-secondary);
  font-style: italic;
}

/* Affiliate Box */
.affiliate-box {
  background: linear-gradient(135deg, #f0fdf9, #ecfdf5);
  border: 2px solid var(--primary);
  border-radius: 12px;
  padding: 28px;
  margin: 32px 0;
  position: relative;
}

.affiliate-box::before {
  content: 'OUR TOP PICK';
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 4px;
}

.affiliate-box h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.affiliate-box p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.affiliate-box .features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.affiliate-box .features span::before {
  content: '\2713';
  color: var(--primary);
  font-weight: 700;
  margin-right: 6px;
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
}
.affiliate-btn:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }

.affiliate-disclosure {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 12px;
  font-style: italic;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.comparison-table th {
  background: var(--bg-dark);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tr:hover { background: var(--bg-alt); }

.comparison-table .highlight { color: var(--primary); font-weight: 600; }

/* Email CTA */
.email-cta {
  background: var(--bg-dark);
  color: white;
  padding: 48px;
  border-radius: 16px;
  text-align: center;
  margin: 48px 0;
}

.email-cta h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.email-cta p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
  font-size: 15px;
}

.email-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 8px;
}

.email-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: white;
  font-size: 14px;
  outline: none;
}

.email-form input::placeholder { color: rgba(255,255,255,0.4); }
.email-form input:focus { border-color: var(--primary); }

.email-form button {
  background: var(--primary);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.email-form button:hover { background: var(--primary-dark); }

/* Section */
.section { padding: 60px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 36px;
}

/* Sidebar */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.sidebar { position: sticky; top: 80px; }

.sidebar-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-box h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  font-size: 12px;
}

.sidebar-box a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.sidebar-box a:last-child { border-bottom: none; }
.sidebar-box a:hover { color: var(--primary); }

/* TOC */
.toc {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 32px;
}

.toc h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.toc ol { padding-left: 20px; }
.toc li {
  padding: 4px 0;
  font-size: 14px;
}
.toc a { color: var(--text-secondary); }
.toc a:hover { color: var(--primary); }

/* Footer */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.footer-desc { font-size: 14px; line-height: 1.6; max-width: 300px; }

.footer-col h5 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom .disclosure {
  max-width: 600px;
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
}

/* Utility */
.tag {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.rating { color: var(--accent); font-weight: 700; }

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.pros h5, .cons h5 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pros h5 { color: var(--success); }
.cons h5 { color: var(--danger); }

.pros li::marker { content: '\2713 '; color: var(--success); }
.cons li::marker { content: '\2717 '; color: var(--danger); }

.pros ul, .cons ul {
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.pros li, .cons li {
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.pros li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.cons li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  color: var(--danger);
  font-weight: 700;
}

/* Responsive */
@media (max-width: 968px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  .mobile-toggle { display: block; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 28px; }
  .cards-grid { grid-template-columns: 1fr; }
  .email-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .affiliate-box .features { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .email-cta { padding: 32px 20px; }
  .comparison-table { font-size: 13px; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
  .container, .container-narrow { padding: 0 16px; }
  .card { padding: 20px; }
  .hero-stats { gap: 20px; }
  .hero-stat-value { font-size: 22px; }
}

/* Schema / SEO structured data helper - hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeUp 0.5s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
