/* ============================================================
   VeraxonAI — AI tools review site
   Shared stylesheet (self-contained, no external dependencies)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --surface: #F8FAFC;
  --surface-2: #F1F5F9;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --primary: #4F46E5;
  --primary-600: #4338CA;
  --primary-700: #3730A3;
  --primary-soft: #EEF2FF;
  --accent: #7C3AED;
  --green: #059669;
  --green-soft: #ECFDF5;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --maxw: 1120px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  background: url("../assets/img/logo-mark.svg") no-repeat center / contain;
  font-size: 0;
  overflow: hidden;
}
.brand em { font-style: normal; color: var(--primary); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { color: var(--primary); background: var(--primary-soft); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 11px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--text-2);
}

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(1200px 500px at 80% -10%, var(--primary-soft), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 16px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead { font-size: 1.12rem; color: var(--text-2); max-width: 34em; margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.97rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: var(--bg); color: var(--text-2); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat b { display: block; font-size: 1.35rem; font-weight: 800; color: var(--text); }
.hero-stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------- Section scaffolding ---------- */
.section { padding: 56px 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); max-width: 46em; }
.section-head .more { font-weight: 600; font-size: 0.92rem; white-space: nowrap; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); text-decoration: none; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 18px 20px 20px; }
.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.card h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; color: var(--text); }
.card:hover h3 { color: var(--primary); }
.card p { font-size: 0.92rem; color: var(--muted); margin-bottom: 14px; }
.card-meta { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-strong); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.cat-tile:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.cat-tile .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.cat-tile h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cat-tile:hover h3 { color: var(--primary); }
.cat-tile p { font-size: 0.83rem; color: var(--muted); }

/* ---------- Article layout ---------- */
.article-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--border); background: var(--surface); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.article-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.18; letter-spacing: -0.02em; font-weight: 800; margin-bottom: 14px; }
.article-hero .dek { font-size: 1.12rem; color: var(--text-2); max-width: 48em; margin-bottom: 18px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 0.87rem; color: var(--muted); flex-wrap: wrap; }
.byline .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; display: grid; place-items: center; font-weight: 700;
}
.byline b { color: var(--text-2); }

.article-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  padding: 40px 0 64px;
}
.prose { max-width: 720px; }
.prose h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; margin: 36px 0 14px; }
.prose h3 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--text-2); }
.prose ul, .prose ol { margin: 0 0 18px 22px; color: var(--text-2); }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); }
.prose a { font-weight: 500; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.prose blockquote {
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  color: var(--text-2);
}
.prose .callout {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 0.95rem;
}
.prose .callout--warn { background: var(--amber-soft); border-color: #FDE68A; }
.prose .callout--tip { background: var(--green-soft); border-color: #A7F3D0; }
.prose .callout b.label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 5px;
}

/* ---------- Sidebar (TOC) ---------- */
.toc {
  position: sticky;
  top: 88px;
  align-self: start;
  font-size: 0.87rem;
}
.toc .toc-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.toc ol { list-style: none; }
.toc li { margin-bottom: 7px; }
.toc a { color: var(--muted); display: block; padding: 3px 0; }
.toc a:hover { color: var(--primary); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  text-align: left;
  background: var(--surface);
  color: var(--text-2);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
tbody td, tbody th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:last-child td, tbody tr:last-child th { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--surface); }
tbody th[scope="row"] { font-weight: 600; color: var(--text); white-space: nowrap; }
.tool-name { font-weight: 700; color: var(--text); }
.price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.verdict-good { color: var(--green); font-weight: 600; }
.verdict-bad { color: var(--red); font-weight: 600; }

/* ---------- Rating badge ---------- */
.rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--text);
}
.rating .score {
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 0.9rem;
}

/* ---------- Sources ---------- */
.sources { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.sources h2 { font-size: 1.15rem; margin-bottom: 12px; }
.sources ol { padding-left: 20px; font-size: 0.84rem; color: var(--muted); }
.sources li { margin-bottom: 7px; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.site-footer { background: var(--text); color: #CBD5E1; padding: 52px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand em { color: #A5B4FC; }
.site-footer p { font-size: 0.88rem; color: #94A3B8; max-width: 34em; }
.site-footer h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #94A3B8; font-size: 0.9rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: #64748B;
}

/* ---------- Article list / roadmap ---------- */
.roadmap-list { display: flex; flex-direction: column; gap: 12px; }
.roadmap-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  background: var(--bg);
}
.roadmap-item:hover { border-color: var(--primary); }
.roadmap-item .idx { font-weight: 800; color: var(--primary); font-size: 0.95rem; width: 26px; }
.roadmap-item .title { flex: 1; font-weight: 600; color: var(--text); }
.roadmap-item .title a { color: var(--text); }
.roadmap-item .title a:hover { color: var(--primary); }
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.status-published { background: var(--green-soft); color: var(--green); }
.status-draft { background: var(--amber-soft); color: var(--amber); }
.status-planned { background: var(--surface-2); color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .article-body { grid-template-columns: 1fr; }
  .toc { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 24px 18px;
    align-items: stretch;
  }
  .nav.open a { padding: 12px 8px; }
  .nav-toggle { display: block; }
  .card-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 44px 0 36px; }
  .section { padding: 40px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Homepage — review-site layout
   ============================================================ */
.accent-word { color: var(--primary); }
.eyebrow--plain { color: var(--green); background: var(--green-soft); }

/* ---------- Scoreboard ---------- */
.scoreboard {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.score-card {
  position: relative;
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  color: var(--text);
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.score-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  border-color: var(--primary);
}
.score-card .rank {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--surface-2);
}
.score-card .pick-flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.pick-flag--alt { color: var(--primary); background: var(--primary-soft); }
.pick-flag--value { color: #92400E; background: var(--amber-soft); }
.score-card h3 { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 2px; color: var(--text); }
.score-card .model { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }
.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.score-badge {
  background: var(--green);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.score-badge--neutral { background: var(--primary); }
.score-card .price { font-size: 1.25rem; font-weight: 800; }
.score-card .best-for {
  font-size: 0.88rem;
  color: var(--text-2);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ---------- Table note ---------- */
.table-note { font-size: 0.84rem; color: var(--muted); margin-top: 12px; }

/* ---------- Category chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.chip:hover {
  text-decoration: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  color: var(--primary);
}
.chip .chip-ico { font-size: 1.1rem; }
.chip .chip-count { font-weight: 400; font-size: 0.82rem; color: var(--muted); }

/* ---------- Methodology ---------- */
.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.method {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  background: var(--bg);
}
.method-ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  font-size: 1.2rem;
  margin-bottom: 14px;
}
.method h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.method p { font-size: 0.88rem; color: var(--muted); }

/* ---------- Homepage responsive ---------- */
@media (max-width: 980px) {
  .scoreboard { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .method-grid { grid-template-columns: 1fr; }
  .chip { width: 100%; }
}

/* ---------- Footer contact ---------- */
.footer-contact { margin-top: 16px; font-size: 0.88rem; line-height: 1.6; }
.footer-contact a { color: #A5B4FC; }
.footer-contact a:hover { color: #fff; }
.footer-contact span { display: block; }
.footer-contact address { font-style: normal; color: #94A3B8; }

/* ---------- Map / Street View embed ---------- */
.map-embed { margin: 20px 0 4px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { display: block; width: 100%; height: 420px; border: 0; }
