/* EITAReviews — bold modern startup aesthetic.
   All theme/font tokens live in CSS variables so they can be swapped via Tweaks.
*/

:root,
:root[data-theme="coral"] {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1d1d1d;
  --surface: #ffffff;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.62);
  --ink-3: rgba(255, 255, 255, 0.38);
  --ink-inv: #0a0a0a;
  --ink-inv-2: rgba(10, 10, 10, 0.62);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #d4ff3f;
  --accent-ink: #0a0a0a;
  --warn: #ff5b3a;
  --star: #d4ff3f;
}

:root[data-theme="violet"] {
  --bg: #0d0a1f;
  --bg-2: #181134;
  --bg-3: #221949;
  --surface: #ffffff;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, 0.68);
  --ink-3: rgba(255, 255, 255, 0.42);
  --ink-inv: #0d0a1f;
  --ink-inv-2: rgba(13, 10, 31, 0.62);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --accent: #b58cff;
  --accent-ink: #0d0a1f;
  --warn: #ff8a5b;
  --star: #b58cff;
}

:root[data-theme="coral"] {
  --bg: #faf6f1;
  --bg-2: #f3ece2;
  --bg-3: #ebe2d3;
  --surface: #ffffff;
  --ink: #181410;
  --ink-2: rgba(24, 20, 16, 0.65);
  --ink-3: rgba(24, 20, 16, 0.40);
  --ink-inv: #faf6f1;
  --ink-inv-2: rgba(250, 246, 241, 0.68);
  --line: rgba(24, 20, 16, 0.10);
  --line-strong: rgba(24, 20, 16, 0.22);
  --accent: #ff5d3c;
  --accent-ink: #ffffff;
  --warn: #ff5d3c;
  --star: #ff5d3c;
}

:root[data-theme="mint"] {
  --bg: #f6f8f4;
  --bg-2: #eef1ea;
  --bg-3: #e3e8db;
  --surface: #ffffff;
  --ink: #0c1612;
  --ink-2: rgba(12, 22, 18, 0.65);
  --ink-3: rgba(12, 22, 18, 0.40);
  --ink-inv: #f6f8f4;
  --ink-inv-2: rgba(246, 248, 244, 0.68);
  --line: rgba(12, 22, 18, 0.10);
  --line-strong: rgba(12, 22, 18, 0.22);
  --accent: #0d6b4f;
  --accent-ink: #ffffff;
  --warn: #c8553d;
  --star: #0d6b4f;
}

/* Font pairings */
:root[data-font="modern"] {
  --display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body:    "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:    "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 700;
  --display-letter: -0.04em;
}

:root[data-font="editorial"] {
  --display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --body:    "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-letter: -0.02em;
}

:root[data-font="techno"] {
  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --body:    "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --display-weight: 700;
  --display-letter: -0.035em;
}

:root[data-font="industrial"] {
  --display: "Archivo", "Arial Narrow", sans-serif;
  --body:    "Archivo", ui-sans-serif, system-ui, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 800;
  --display-letter: -0.03em;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-feature-settings: "ss01", "cv11";
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

button { font-family: inherit; }

/* ── Layout shell ──────────────────────────────────────────────────────── */
.shell { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .shell { padding: 0 20px; } }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 20px; letter-spacing: var(--display-letter);
  color: var(--ink);
}
.nav-brand .dot {
  width: 10px; height: 10px; border-radius: 2px; background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 20%, transparent);
}
.nav-meta {
  display: flex; gap: 24px; align-items: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em;
}
.nav-meta a { color: var(--ink-2); text-decoration: none; }
.nav-meta a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: var(--accent-ink);
  border: 0; padding: 10px 16px; border-radius: 999px;
  font-weight: 600; font-family: var(--body); font-size: 13px;
  cursor: pointer; letter-spacing: -0.01em;
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 720px) { .nav-meta { display: none; } }

/* ── Section header ─────────────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.10em;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .bar { width: 24px; height: 1px; background: var(--ink-3); }

/* ── Filter bar ─────────────────────────────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 28px 0 20px;
  position: sticky; top: 0; background: var(--bg); z-index: 5;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.filter-label {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-right: 12px;
}
.fchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all 120ms ease;
  font-family: var(--body);
}
.fchip:hover { color: var(--ink); border-color: var(--ink-3); }
.fchip[data-on="1"] {
  background: var(--ink); color: var(--ink-inv);
  border-color: var(--ink);
}
.fchip .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.fchip .count {
  font-family: var(--mono); font-size: 10px; opacity: 0.6;
}

.filter-spacer { flex: 1; }
.sort-select {
  appearance: none;
  background: transparent; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 32px 7px 12px;
  font-family: var(--body); font-size: 13px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='gray' d='M0 0h10L5 6z'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center;
  cursor: pointer;
}

/* ── Source badge variants ──────────────────────────────────────────────── */
.sb { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; }
.sb[data-style="pill"] {
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  color: #fff;
}
.sb[data-style="pill"] .sb-name { text-transform: uppercase; font-weight: 600; }

.sb[data-style="outline"] {
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid currentColor;
}
.sb[data-style="outline"] .sb-name { text-transform: uppercase; font-weight: 600; }

.sb[data-style="minimal"] {
  text-transform: uppercase; font-weight: 600;
  color: var(--ink-3);
}
.sb[data-style="minimal"]::before {
  content: ""; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: currentColor; margin-right: 6px;
}
.sb[data-style="minimal"] .sb-name { color: var(--ink-2); }

.sb[data-style="dot"] {
  text-transform: uppercase; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink-2);
}
.sb[data-style="dot"] .sb-icon {
  width: 14px; height: 14px; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--body);
}

/* ── Stars ──────────────────────────────────────────────────────────────── */
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { display: block; }
.stars .empty { color: var(--ink-3); }

/* ── Card primitives ────────────────────────────────────────────────────── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  transition: border-color 120ms ease, transform 120ms ease;
}
.card:hover { border-color: var(--line-strong); }

.card-feed { background: transparent; border-left: 1px solid var(--line); border-radius: 0; padding: 24px 0 24px 28px; border-right: 0; border-top: 0; border-bottom: 0; }

.review-head {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.review-head .review-who { min-width: 140px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-3); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 13px;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.review-who { flex: 1; min-width: 0; }
.review-name {
  font-weight: 600; font-size: 14px; color: var(--ink);
  display: flex; align-items: center; gap: 6px;
}
.review-meta {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  margin-top: 4px;
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; white-space: nowrap;
  letter-spacing: 0.02em;
}
.review-meta .sep { color: var(--ink-3); opacity: 0.4; }
.verified-tick {
  width: 12px; height: 12px; color: var(--accent);
}

.review-title {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 17px; letter-spacing: var(--display-letter);
  margin: 6px 0 8px; color: var(--ink);
  line-height: 1.2;
}
.review-body {
  font-size: 14px; line-height: 1.55; color: var(--ink-2);
  text-wrap: pretty;
}
.review-body.clamped {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.expand-btn {
  background: transparent; border: 0; padding: 0; margin-top: 10px;
  color: var(--ink); font-weight: 500; font-size: 12.5px;
  cursor: pointer; font-family: var(--body);
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.expand-btn:hover { color: var(--accent); }
.expand-btn .chev { transition: transform 120ms ease; display: inline-block; }
.expand-btn[data-on="1"] .chev { transform: rotate(180deg); }

.review-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap; gap: 8px;
}

/* ── Masonry layout ─────────────────────────────────────────────────────── */
.layout-masonry {
  column-count: 3; column-gap: 20px;
}
.layout-masonry > * {
  break-inside: avoid;
  margin-bottom: 20px;
  display: inline-block; width: 100%;
}
@media (max-width: 980px) { .layout-masonry { column-count: 2; } }
@media (max-width: 640px) { .layout-masonry { column-count: 1; } }

/* ── Grid layout ────────────────────────────────────────────────────────── */
.layout-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* ── Feed layout ────────────────────────────────────────────────────────── */
.layout-feed {
  max-width: 720px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 0;
}

/* ── Filtered list layout ──────────────────────────────────────────────── */
.layout-list { display: flex; flex-direction: column; gap: 12px; }
.layout-list .card {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px; align-items: start;
  padding: 20px 24px;
}
.layout-list .review-head { margin: 0; }
.layout-list .review-right { text-align: right; font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 720px) {
  .layout-list .card { grid-template-columns: 1fr; gap: 14px; }
  .layout-list .review-right { text-align: left; }
}

/* ── Hero A: aggregate score ───────────────────────────────────────────── */
.hero-score {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  padding: 64px 0 80px;
  align-items: center;
}
.hero-score-left .h1 {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(48px, 7vw, 96px);
  line-height: 0.92; letter-spacing: var(--display-letter);
  margin: 0;
}
.hero-score-left .h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-score-left .sub {
  margin-top: 24px; font-size: 17px; color: var(--ink-2);
  max-width: 520px; line-height: 1.5;
}
.hero-score-left .sources-row {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px;
}

.score-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.score-card .big {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 120px; line-height: 1; letter-spacing: var(--display-letter);
  display: flex; align-items: baseline; gap: 8px;
  white-space: nowrap;
}
.score-card .big .of {
  font-size: 28px; color: var(--ink-3); font-weight: 400;
}
.score-card .stars-big { margin-top: 8px; }
.score-card .stars-big svg { width: 22px; height: 22px; }
.score-card .total {
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-top: 12px;
}
.score-card .bar-row {
  display: grid; grid-template-columns: 14px 1fr 32px;
  gap: 10px; align-items: center; margin-top: 10px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
}
.score-card .bar {
  height: 6px; background: var(--bg-3); border-radius: 999px; overflow: hidden;
}
.score-card .bar > span {
  display: block; height: 100%; background: var(--accent);
}
.score-card .bar-row .pct { text-align: right; color: var(--ink-2); }

@media (max-width: 900px) { .hero-score { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 48px; } }

/* ── Hero B: quote-led carousel ────────────────────────────────────────── */
.hero-quote {
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: stretch;
}
.hero-quote .qbox {
  display: flex; flex-direction: column; justify-content: space-between;
}
.hero-quote .eyebrow { margin-bottom: 28px; }
.hero-quote .h1 {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02; letter-spacing: var(--display-letter);
  margin: 0;
}
.hero-quote .h1 .blink {
  display: inline-block; width: 0.4em; height: 0.9em;
  background: var(--accent); margin-left: 6px;
  transform: translateY(8px);
  animation: blink 1.1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-quote .badges {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
}

.fcard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 40px 28px;
  display: flex; flex-direction: column; gap: 24px;
  align-items: flex-start;
  position: relative;
  min-height: 380px;
}
.fcard .fwho, .fcard .fcard-nav { align-self: stretch; }
.fcard .quotemark {
  font-family: var(--display); font-size: 120px;
  line-height: 0.8; color: var(--accent);
  position: absolute; top: 24px; right: 32px; opacity: 0.5;
}
.fcard .fquote {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 26px; line-height: 1.25; letter-spacing: var(--display-letter);
  color: var(--ink);
  flex: 1;
}
.fcard .fwho {
  display: flex; gap: 14px; align-items: center;
}
.fcard .fwho .avatar { width: 44px; height: 44px; font-size: 14px; }
.fcard .fwho-name { font-weight: 600; }
.fcard .fwho-meta { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.fcard-nav {
  display: flex; gap: 8px; justify-content: space-between;
  align-items: center; padding-top: 12px;
  border-top: 1px solid var(--line);
}
.fcard-nav .dots { display: flex; gap: 6px; }
.fcard-nav .dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
}
.fcard-nav .dots span[data-on="1"] { background: var(--accent); width: 24px; border-radius: 3px; }
.fcard-nav button {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink); border-radius: 50%;
  width: 36px; height: 36px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.fcard-nav button:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 980px) { .hero-quote { grid-template-columns: 1fr; gap: 40px; padding: 40px 0 48px; } }

/* ── Hero C: stats grid ─────────────────────────────────────────────────── */
.hero-stats {
  padding: 56px 0 32px;
}
.hero-stats .h1 {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.88; letter-spacing: var(--display-letter);
  margin: 0 0 8px;
  max-width: 1200px;
}
.hero-stats .h1 .accent { color: var(--accent); }
.hero-stats .h1 .strike {
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  color: var(--ink-3);
}
.hero-stats .sub {
  font-size: 17px; color: var(--ink-2); max-width: 580px;
  margin: 24px 0 48px; line-height: 1.5;
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 24px 28px 28px;
  border-right: 1px solid var(--line);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.stat .val {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: 56px; line-height: 1; letter-spacing: var(--display-letter);
  margin-top: 14px;
  color: var(--ink);
}
.stat .val .unit { font-size: 22px; color: var(--ink-3); margin-left: 4px; }
.stat .delta {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  margin-top: 10px;
}
@media (max-width: 900px) { .statgrid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); } }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  margin-top: 80px;
  padding: 40px 0 32px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ── Layout switcher ────────────────────────────────────────────────────── */
.layout-switch {
  display: flex; gap: 4px; align-items: center;
  padding: 2px; background: var(--bg-2); border-radius: 8px;
  border: 1px solid var(--line);
}
.layout-switch button {
  background: transparent; border: 0; padding: 6px 10px;
  color: var(--ink-3); cursor: pointer;
  border-radius: 6px; display: inline-flex; align-items: center;
  transition: all 120ms ease;
}
.layout-switch button[data-on="1"] {
  background: var(--ink); color: var(--ink-inv);
}
.layout-switch button:hover { color: var(--ink); }
.layout-switch button[data-on="1"]:hover { color: var(--ink-inv); }

/* Layout label */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  padding-top: 48px; padding-bottom: 12px;
  gap: 24px; flex-wrap: wrap;
}
.section-head .left { flex: 1; min-width: 0; }
.section-head h2 {
  font-family: var(--display); font-weight: var(--display-weight);
  font-size: clamp(28px, 4vw, 44px); line-height: 1.05;
  letter-spacing: var(--display-letter);
  margin: 10px 0 0;
}
.section-head .count {
  font-family: var(--mono); font-size: 12px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px;
}
