/* ── TOKENS ── */
:root {
  --bg:          #f7f5f2;
  --surface:     #ffffff;
  --surface-2:   #f0ede8;
  --border:      #e2ddd6;
  --text:        #1a1714;
  --text-2:      #4a4540;
  --text-3:      #8a8278;
  --accent:      #e8580a;
  --accent-2:    #f5920a;
  --accent-light:#fff3eb;
  --green:       #2d8c4e;
  --red:         #c0392b;
  --yellow:      #e6a817;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.07);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.09);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --radius:      12px;
  --radius-sm:   7px;
  --max-w:       780px;
  --font-body:   'Nunito Sans', sans-serif;
  --font-display:'Nunito', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── SITE HEADER ── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.logo-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
}
.logo span { color: var(--accent); }
.nav-link {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
  background: none;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--accent-light); color: var(--accent); }

/* ── VIEWS ── */
.view { display: none; }
.view.active { display: block; }

/* ══════════════════════════════════════
   INDEX PAGE
══════════════════════════════════════ */
.index-hero {
  background: linear-gradient(135deg, #1a1714 0%, #2d2420 100%);
  padding: 72px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.index-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 120%, rgba(232,88,10,0.18) 0%, transparent 70%);
}
.index-hero-content { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(10,132,255,0.10);
  border: 1px solid rgba(10,132,255,0.2);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;;
}
.index-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  color: #f5f0ea;
  line-height: 1.1;
  margin-bottom: 16px;
}
.index-hero p {
  font-size: 17px;
  color: #a09688;
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* POST GRID */
.post-grid-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.section-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* FEATURED CARD */
.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d4cfc8;
}
.post-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
}
.post-card-thumb {
  background: linear-gradient(135deg, #1a1714, #2d2420);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.post-card.featured .post-card-thumb {
  width: 360px;
  height: auto;
  min-height: 260px;
}
.post-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(232,88,10,0.2), transparent 60%);
}
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-card-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tag-chip {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--accent-light);
  color: var(--accent);
}
.tag-chip.green { background: #edf7f1; color: var(--green); }
.tag-chip.gray { background: var(--surface-2); color: var(--text-3); }
.post-card-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}
.post-card.featured .post-card-title { font-size: 26px; }
.post-card-excerpt {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.read-more {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

/* ══════════════════════════════════════
   ARTICLE PAGE
══════════════════════════════════════ */
.article-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* Back button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  cursor: pointer;
  padding: 7px 14px 7px 10px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 40px;
  transition: all 0.15s;
  box-shadow: var(--shadow-sm);
}
.back-btn:hover { background: var(--surface-2); color: var(--text); border-color: #ccc; }

/* Article header */
.article-header { margin-bottom: 40px; }
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.article-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.article-byline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
}
.byline-sep { color: var(--border); }
.article-byline .read-time {
  background: var(--surface-2);
  padding: 3px 10px;
  border-radius: 20px;
}
.article-hero-banner {
  background: linear-gradient(135deg, #1a1714, #2d2420);
  border-radius: var(--radius);
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 80%, rgba(232,88,10,0.25), transparent 55%);
}

/* ── ARTICLE BODY TYPOGRAPHY ── */
.article-body { color: var(--text-2); }
.article-body p { margin-bottom: 22px; font-size: 17px; line-height: 1.8; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body em { color: var(--text); font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(10,132,255,0.3); }
.article-body a:hover { text-decoration-color: var(--accent); }

.article-body h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--text);
  margin: 48px 0 18px;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.article-body h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  margin: 32px 0 14px;
}

/* Dividers & spacers */
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* Pull quote */
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.article-body blockquote p {
  font-size: 16px !important;
  font-style: italic;
  color: var(--text) !important;
  margin: 0 !important;
}
.article-body blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 600;
}

/* Inline note box */
.note-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.65;
}
.note-box strong { color: var(--text); }

/* ── TOOL CARDS ── */
.tool-section { margin: 36px 0 8px; }

.tool-card-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}
.tool-card-article:hover { box-shadow: var(--shadow-md); }
.tool-card-article.winner-card {
  border-color: var(--accent);
  border-width: 2px;
}
.tool-card-top {
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.tool-card-article.winner-card .tool-card-top {
  background: var(--accent-light);
  border-bottom-color: rgba(232,88,10,0.15);
}
.tool-name-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tool-card-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--text);
}
.winner-card .tool-card-name { color: var(--accent); }
.winner-badge {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 4px;
}
.tool-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tool-chip {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.tool-chip.orange { background: var(--accent-light); color: var(--accent); border-color: rgba(232,88,10,0.2); }
.tool-chip.red { background: #fdf0ef; color: var(--red); border-color: rgba(192,57,43,0.15); }

/* Stars */
.stars-row {
  display: flex;
  gap: 18px;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.star-group { display: flex; align-items: center; gap: 6px; }
.stars { font-size: 14px; letter-spacing: 1px; }
.star-filled { color: var(--yellow); }
.star-empty { color: #d4cfc8; }
.star-label { font-family: var(--font-display); font-size: 12px; font-weight: 600; color: var(--text-3); }

.tool-card-body { padding: 22px 28px; }
.tool-card-body p { font-size: 16px; color: var(--text-2); margin-bottom: 14px; line-height: 1.7; }
.tool-card-body p:last-child { margin-bottom: 0; }

/* pros / cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 28px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
}
@media (max-width: 560px) { .pros-cons-grid { grid-template-columns: 1fr; } }
.pc-col h4 {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pc-col.pros h4 { color: var(--green); }
.pc-col.cons h4 { color: var(--red); }
.pc-col ul { list-style: none; }
.pc-col ul li {
  font-size: 14px;
  color: var(--text-2);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.5;
}
.pc-col.pros li::before { content: '+'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pc-col.cons li::before { content: '−'; position: absolute; left: 0; color: var(--red); font-weight: 700; }

/* ── COMPARISON TABLE ── */
.table-outer {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 28px 0 36px;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; min-width: 560px; }
thead tr { background: var(--surface-2); }
thead th {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
thead th:first-child { color: var(--text); }
tbody tr { border-bottom: 1px solid #eee8e0; }
tbody tr:last-child { border-bottom: none; }
tbody tr.winner-row { background: rgba(10,132,255,0.06); }
tbody td {
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-3);
  vertical-align: middle;
}
tbody td:first-child { font-weight: 800; font-size: 15px; color: var(--text); }
tbody .winner-row td:first-child { color: var(--accent); }
.check { color: var(--green); font-weight: 700; }
.cross { color: var(--red); font-weight: 700; }
.partial { color: var(--yellow); font-weight: 700; }

/* ── VERDICT / CTA ── */
.verdict-box {
  background: linear-gradient(135deg, #1a1714, #2d2420);
  border-radius: var(--radius);
  padding: 40px 40px 36px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
}
.verdict-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 120%, rgba(232,88,10,0.25), transparent 55%);
}
.verdict-box * { position: relative; z-index: 1; }
.verdict-box h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 28px;
  color: #f5f0ea;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.verdict-box h2 span { color: var(--accent); }
.verdict-box p { color: #a09688; font-size: 16px; line-height: 1.7; margin-bottom: 12px; }
.verdict-box p:last-of-type { margin-bottom: 28px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 4px 14px rgba(232,88,10,0.35);
}
.cta-btn:hover { background: #d44c06; transform: translateY(-1px); }

/* ── SITE FOOTER ── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-3);
}
.site-footer a { color: var(--accent); text-decoration: none; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .post-card.featured { flex-direction: column; }
  .post-card.featured .post-card-thumb { width: 100%; min-height: 160px; }
  .article-hero-banner { height: 160px; font-size: 48px; }
  .verdict-box { padding: 28px 22px; }
  .tool-card-top, .tool-card-body, .pros-cons-grid, .stars-row { padding-left: 18px; padding-right: 18px; }
}

/* ── FADE IN ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fadein { animation: fadeUp 0.4s ease both; }
.fadein-d1 { animation-delay: 0.05s; }
.fadein-d2 { animation-delay: 0.10s; }
.fadein-d3 { animation-delay: 0.15s; }
.fadein-d4 { animation-delay: 0.20s; }