/* Shared styles for Veroi comparison articles
   Mirrors the tokens + base layout of the main site. */

/* ---------- tokens ---------- */
:root {
  --bg: #f6f4ef;
  --bg-2: #efece5;
  --ink: #17160f;
  --ink-2: #3a372e;
  --muted: #8a877c;
  --line: rgba(23, 22, 15, 0.12);
  --line-2: rgba(23, 22, 15, 0.06);
  --card: #ffffff;
  --accent: oklch(0.66 0.14 42);
  --accent-soft: oklch(0.66 0.14 42 / 0.12);
  --good: oklch(0.62 0.14 150);
  --nav-cta-text: #ffffff;
  --grain: 0.025;
}
html[data-theme="dark"] {
  --bg: #0e0d0a;
  --bg-2: #141310;
  --ink: #f2efe6;
  --ink-2: #b8b4a7;
  --muted: #706d64;
  --line: rgba(242, 239, 230, 0.12);
  --line-2: rgba(242, 239, 230, 0.06);
  --card: #181713;
  --accent: oklch(0.78 0.14 62);
  --accent-soft: oklch(0.78 0.14 62 / 0.14);
  --good: oklch(0.74 0.14 150);
  --nav-cta-text: #000000;
  --grain: 0.04;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--ink); }
body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background .5s ease, color .5s ease;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }

body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: var(--grain);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.02em; }
.serif { font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.01em; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) {
  .wrap, .narrow { padding: 0 20px; }
}

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

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line-2);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em;
  font-size: 17px; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative; overflow: hidden;
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 2px; background: var(--bg);
  border-radius: 2px;
}
.brand-mark::before { height: 8px; transform: translate(-4px,-50%); animation: pulseA 1.8s ease-in-out infinite; }
.brand-mark::after { height: 12px; transform: translate(2px,-50%); animation: pulseA 1.8s ease-in-out infinite .4s; }
@keyframes pulseA { 0%,100% { height: 4px; } 50% { height: 14px; } }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 720px) { .nav-links a:not(.cta):not(.theme-btn) { display: none; } }

.theme-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s;
}
.theme-btn:hover { background: var(--bg-2); border-color: var(--ink); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .sun { display: none; }
.theme-btn .moon { display: block; }
html[data-theme="dark"] .theme-btn .sun { display: block; }
html[data-theme="dark"] .theme-btn .moon { display: none; }

.nav-links .cta {
  background: var(--ink);
  color: var(--nav-cta-text) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: transform .2s, background .3s;
}
.nav-links .cta:hover {
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--nav-cta-text) !important;
}

/* ---------- breadcrumb ---------- */
.crumbs {
  padding: 120px 0 0;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: none; }
.crumbs .sep { margin: 0 10px; opacity: 0.4; }

/* ---------- article hero ---------- */
.art-hero {
  padding: 40px 0 60px;
  border-bottom: 1px solid var(--line);
}
.art-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 24px 0 28px;
}
.art-hero h1 em { font-style: italic; color: var(--accent); }
.art-hero .dek {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 760px;
  text-wrap: pretty;
}
.art-hero .meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  margin-top: 32px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.art-hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.art-hero .meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- verdict card ---------- */
.verdict {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}
.verdict-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 32px;
}
@media (max-width: 720px) { .verdict-grid { grid-template-columns: 1fr; } }
.verdict-col {
  background: var(--bg);
  padding: 36px 32px;
}
.verdict-col.us { background: color-mix(in oklab, var(--accent) 6%, var(--bg)); }
.verdict-col h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.verdict-col .tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.verdict-col .tag.good { color: var(--accent); }
.verdict-col ul {
  list-style: none;
  display: flex; flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}
.verdict-col li {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.verdict-col li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  position: absolute; left: 0; top: 9px;
  opacity: 0.5;
}
.verdict-col.us li::before { background: var(--accent); opacity: 1; }

/* ---------- sections ---------- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--line);
}
.section h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: 24px;
}
.section h2 em { font-style: italic; color: var(--accent); }
.section .lede {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 40px;
  max-width: 780px;
  text-wrap: pretty;
}
.section .eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: block;
}
.section p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 20px;
  max-width: 760px;
  text-wrap: pretty;
}
.section p strong { color: var(--ink); font-weight: 500; }
.section h3 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  text-wrap: balance;
}
.section ul.plain {
  list-style: none;
  margin: 24px 0;
  max-width: 760px;
}
.section ul.plain li {
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--line-2);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  position: relative;
}
.section ul.plain li:last-child { border-bottom: 1px solid var(--line-2); }
.section ul.plain li::before {
  content: "";
  position: absolute; left: 0; top: 22px;
  width: 14px; height: 1px;
  background: var(--accent);
}

/* pullquote */
.pull {
  padding: 40px 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  margin: 48px 0;
}
.pull p {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: none;
  text-wrap: balance;
}
.pull p em { font-style: italic; color: var(--accent); }

/* ---------- compare table (reused) ---------- */
.compare-wrap { position: relative; margin-top: 40px; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
}
.compare-table th, .compare-table td {
  padding: 18px;
  text-align: left;
  border-bottom: 1px solid var(--line-2);
  border-right: 1px solid var(--line-2);
  font-size: 14px;
  vertical-align: middle;
}
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table thead th {
  background: var(--bg-2);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.compare-table thead th.veroi-col {
  color: var(--accent);
  background: var(--accent-soft);
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  text-transform: none;
  letter-spacing: -0.01em;
  font-weight: 400;
  padding: 22px 18px;
}
.compare-table td.row-label {
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-2);
  width: 220px;
}
.compare-table td.veroi-col {
  background: color-mix(in oklab, var(--accent) 6%, transparent);
  color: var(--ink); font-weight: 500;
}
.compare-table .mark { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.compare-table .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.compare-table .dot.y { background: var(--accent); }
.compare-table .dot.n { background: var(--muted); opacity: 0.5; }
.compare-table .dot.p { background: var(--muted); }
.compare-table td.bad { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 32px; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.2;
  text-wrap: balance;
}
.faq-a {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 760px;
}

/* ---------- other comparisons ---------- */
.other-compares {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}
.other-compares h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 900px) { .other-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .other-grid { grid-template-columns: 1fr; } }
.other-card {
  background: var(--bg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .3s;
}
.other-card:hover { background: var(--bg-2); text-decoration: none; color: inherit; }
.other-card .v { color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.other-card h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.other-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.other-card .go { color: var(--accent); font-size: 13px; margin-top: 6px; }

/* ---------- final CTA ---------- */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.final-cta h2 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin-bottom: 20px;
}
.final-cta h2 em { font-style: italic; color: var(--accent); }
.final-cta p {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 36px;
}
.final-cta .cta-row { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity .2s;
}
.btn-primary:hover { opacity: 0.88; text-decoration: none; color: var(--bg); }
.btn-ghost {
  color: var(--ink);
  padding: 14px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s;
}
.btn-ghost:hover { background: var(--bg); text-decoration: none; color: var(--ink); }

/* ---------- footer (kept in sync with main site) ---------- */
footer {
  background: var(--bg);
  padding: 80px 0 40px;
}
.foot { display: grid; grid-template-columns: 1.2fr 3fr; gap: 60px; margin-bottom: 60px; }
@media (max-width: 780px) { .foot { grid-template-columns: 1fr; gap: 40px; } }
.foot-meta { color: var(--muted); font-size: 14px; max-width: 280px; line-height: 1.5; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
@media (max-width: 780px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
.foot-col h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 400;
}
.foot-col a {
  display: block;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}
.foot-col a:hover { color: var(--ink); text-decoration: none; }
.foot-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--muted);
  flex-wrap: wrap; gap: 16px;
}
