/* virallizedreviews.com — independent editorial palette.
   Deliberately distinct from virallized.com: cool neutrals and a steel-blue
   accent rather than the warm cream/magenta brand scheme. Light only. */

:root {
  --bg: #ffffff;
  --bg-warm: #f4f7fa;
  --card: #ffffff;
  --ink: #151a21;
  --ink-soft: #4c5766;
  --ink-faint: #8590a1;
  --line: #e2e8ef;
  --accent: #1a5f8a;
  --accent-hover: #14496b;
  --pos: #157347;
  --star: #d4a017;
  --radius: 14px;
  --maxw: 760px;
  --shadow: 0 1px 2px rgba(21, 26, 33, .04), 0 8px 24px rgba(21, 26, 33, .06);

  /* legacy aliases so existing rules keep working */
  --magenta: var(--accent);
  --lavender: #5b6b7d;
  --yellow: var(--star);
  --red: #b4232a;
  --green: var(--pos);
}

/* Light only — no dark-scheme overrides by design. */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Barlow, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.masthead .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap;
}
.brand {
  font-weight: 800; font-size: 17px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 9px;
}
.brand .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); display: inline-block; flex: none;
}
.masthead nav { display: flex; gap: 18px; flex-wrap: wrap; }
.masthead nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 14.5px; font-weight: 600;
}
.masthead nav a:hover { color: var(--magenta); }

/* ---------- type ---------- */

main { padding: 40px 0 72px; }

h1 {
  font-size: clamp(30px, 5.5vw, 42px);
  line-height: 1.14; letter-spacing: -.025em;
  font-weight: 800; margin: 0 0 6px;
}
h2 {
  font-size: clamp(21px, 3.4vw, 26px);
  line-height: 1.24; letter-spacing: -.018em;
  font-weight: 800; margin: 46px 0 12px;
  scroll-margin-top: 20px;
}
h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  margin: 28px 0 6px;
}
p { margin: 0 0 16px; }
a { color: var(--magenta); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
small { font-size: 13.5px; color: var(--ink-faint); }

.dek {
  font-size: 19px; color: var(--ink-soft); margin: 0 0 22px; line-height: 1.55;
}
.updated {
  font-size: 13.5px; color: var(--ink-faint); margin: 0 0 26px;
  display: flex; gap: 7px; align-items: center; flex-wrap: wrap;
}

/* ---------- the answer block (what AI extracts) ---------- */

.answer {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--magenta);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 0 0 30px;
  box-shadow: var(--shadow);
}
.answer p:last-child { margin-bottom: 0; }
.answer .lede { font-size: 18.5px; font-weight: 600; line-height: 1.5; }

/* ---------- rating card ---------- */

.ratingcard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  margin: 0 0 24px;
}
.ratingtop { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.score { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.score span { font-size: 21px; color: var(--ink-faint); font-weight: 700; }
.ratingmeta { font-size: 14.5px; color: var(--ink-soft); }

/* Partial star fill — the filled width is the actual score, not a rounded-up
   row of five. --pct is set inline per instance. */
.stars {
  position: relative; display: inline-block; line-height: 1;
  font-size: 19px; letter-spacing: 2px; white-space: nowrap;
}
.stars .sb { color: var(--line); }
.stars .sf {
  position: absolute; inset: 0 auto 0 0; overflow: hidden;
  width: var(--pct, 100%); color: var(--star);
}

.bars { margin-top: 20px; display: grid; gap: 7px; }
.bar { display: grid; grid-template-columns: 52px 1fr 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar .track {
  display: block; background: var(--bg-warm); border-radius: 99px;
  height: 9px; overflow: hidden;
}
.bar .fill {
  display: block; background: var(--star); height: 9px;
  border-radius: 99px; min-width: 2px;
}
.bar .pct { text-align: right; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- facts table ---------- */

.facts { width: 100%; border-collapse: collapse; margin: 6px 0 22px; font-size: 15.5px; }
.facts th, .facts td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.facts th { width: 38%; font-weight: 700; color: var(--ink-soft); }
.facts tr:last-child th, .facts tr:last-child td { border-bottom: 0; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- review cards ---------- */

.reviews { display: grid; gap: 14px; margin: 18px 0 8px; }
.review {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.review.neg { border-left: 4px solid var(--red); }
.review .rhead {
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 7px;
}
.review .rtitle { font-weight: 700; font-size: 16px; }
.review .rbody { font-size: 15.5px; color: var(--ink-soft); margin: 0 0 10px; white-space: pre-line; }
.review .rmeta { font-size: 13px; color: var(--ink-faint); }
.review .reply {
  margin-top: 12px; padding: 12px 14px; background: var(--bg-warm);
  border-radius: 10px; font-size: 14.5px; color: var(--ink-soft);
}
.review .reply b { color: var(--ink); }

/* ---------- Q&A ---------- */

.qa { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.qa:first-of-type { border-top: 0; }
.qa h3 { margin-top: 0; font-size: 19px; }
.qa .short {
  font-weight: 650; color: var(--ink);
  background: var(--bg-warm); border-radius: 10px; padding: 12px 15px; margin: 0 0 14px;
}

/* ---------- callouts ---------- */

.note {
  border: 1px solid var(--line); border-left: 4px solid var(--lavender);
  background: var(--card); border-radius: var(--radius);
  padding: 16px 19px; margin: 22px 0; font-size: 15.5px; color: var(--ink-soft);
}
.note b { color: var(--ink); }
.note.warn { border-left-color: var(--yellow); }
.note p:last-child { margin-bottom: 0; }

ul.checks { list-style: none; padding: 0; margin: 14px 0 22px; display: grid; gap: 9px; }
ul.checks li {
  padding-left: 30px; position: relative; font-size: 15.5px; color: var(--ink-soft);
}
ul.checks li::before {
  content: "→"; position: absolute; left: 6px; top: 0;
  color: var(--magenta); font-weight: 800;
}
ul.checks li b { color: var(--ink); }

/* ---------- source list ---------- */

.sources { display: grid; gap: 11px; margin: 16px 0 10px; padding: 0; list-style: none; }
.sources li {
  background: var(--card); border: 1px solid var(--line); border-radius: 11px;
  padding: 13px 16px; font-size: 15px;
}
.sources li b { display: block; font-size: 15.5px; }
.sources li span { color: var(--ink-faint); font-size: 13.5px; }

/* ---------- cta ---------- */

.cta {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin: 40px 0 0;
  text-align: center; box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 8px; font-size: 22px; }
.cta p { color: var(--ink-soft); font-size: 15.5px; }
.btn {
  display: inline-block; background: var(--magenta); color: #fff;
  text-decoration: none; font-weight: 700; font-size: 16px;
  padding: 12px 26px; border-radius: 99px; margin-top: 6px;
}
.btn:hover { background: var(--accent-hover); }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 28px 0 40px; font-size: 14px; color: var(--ink-soft);
}
footer nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
footer a { color: var(--ink-soft); }
footer .fine { font-size: 13px; color: var(--ink-faint); }

/* ---------- tables scroll on mobile ---------- */

.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .facts th { width: 44%; }
  .score { font-size: 44px; }
}

/* ---------- nav current state ---------- */

.masthead nav a.cur { color: var(--magenta); }

/* ---------- breadcrumbs ---------- */

.crumbs {
  font-size: 13.5px; color: var(--ink-faint); margin: 0 0 20px;
  display: flex; gap: 7px; flex-wrap: wrap; align-items: center;
}
.crumbs a { color: var(--ink-faint); text-decoration: none; }
.crumbs a:hover { color: var(--magenta); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink-soft); font-weight: 600; }

/* ---------- source note ---------- */

.src { font-size: 13.5px; color: var(--ink-faint); margin: 10px 0 22px; line-height: 1.5; }

/* ---------- comparison table ---------- */

.cmp {
  width: 100%; border-collapse: collapse; font-size: 15.5px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 4px;
}
.cmp th, .cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.cmp td.num, .cmp th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tr.me { background: var(--bg-warm); }
.cmp tr.me td { font-weight: 600; }
.cmp tr.vs td:first-child { box-shadow: inset 3px 0 0 var(--lavender); }

/* ---------- steps ---------- */

.steps { display: grid; gap: 14px; margin: 18px 0 8px; }
.step {
  display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.stepnum {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--magenta); color: #fff; font-weight: 800;
  display: grid; place-items: center; font-size: 16px;
}
.step h3 { margin: 2px 0 6px; font-size: 17.5px; }
.step p { margin: 0; font-size: 15.5px; color: var(--ink-soft); }

/* ---------- timeline ---------- */

.timeline { display: grid; gap: 0; margin: 18px 0 22px; }
.tl {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.tl:last-child { border-bottom: 0; }
.tl b { color: var(--ink); font-size: 15px; }
.tl span { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- results ---------- */

.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.result {
  display: flex; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px;
}
.rnum {
  font-size: 26px; font-weight: 800; color: var(--green);
  letter-spacing: -.02em; flex: none; font-variant-numeric: tabular-nums;
}
.rdetail b { display: block; font-size: 15.5px; }
.rniche { display: block; font-size: 13px; color: var(--ink-faint); margin-bottom: 5px; }
.ba { display: flex; gap: 9px; align-items: baseline; font-size: 15.5px; font-weight: 700; }
.ba em { font-style: normal; color: var(--ink-faint); font-weight: 400; }
.ba span:first-child { color: var(--ink-faint); font-weight: 600; }

/* ---------- client roster ---------- */

.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 11px; margin: 16px 0 22px; }
.client {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 11px; padding: 13px 15px; font-size: 14.5px;
}
.client b { display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 2px; }
.client span { display: block; font-size: 12.5px; color: var(--ink-faint); margin-top: 3px; }

/* ---------- pricing plans ---------- */

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.plan {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column;
}
.ptag {
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: var(--magenta); margin-bottom: 6px;
}
.plan h3 { margin: 0 0 8px; font-size: 20px; }
.pgrowth { font-size: 17px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.pgrowth span { display: block; font-size: 12px; font-weight: 600; color: var(--ink-faint);
  text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.pprice { font-size: 34px; font-weight: 800; margin-top: 12px; letter-spacing: -.02em; }
.pprice span { font-size: 16px; color: var(--ink-faint); font-weight: 700; }
.pannual { font-size: 13px; color: var(--ink-faint); margin-bottom: 10px; }
.pblurb { font-size: 14.5px; color: var(--ink-soft); margin: 0 0 10px; }
.plan ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-soft); }
.plan ul li { margin-bottom: 4px; }

/* ---------- table of contents ---------- */

.toc {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 30px;
  padding: 16px 18px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.toc a {
  font-size: 14px; font-weight: 600; text-decoration: none;
  background: var(--bg-warm); color: var(--ink-soft);
  padding: 6px 12px; border-radius: 99px;
}
.toc a:hover { background: var(--magenta); color: #fff; }

/* ---------- related cards ---------- */

.rels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 8px; }
.rel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; text-decoration: none; display: block;
}
.rel:hover { border-color: var(--magenta); }
.rel b { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 3px; }
.rel span { display: block; color: var(--ink-faint); font-size: 13.5px; line-height: 1.45; }

@media (max-width: 560px) {
  .tl { grid-template-columns: 1fr; gap: 3px; }
  .results { grid-template-columns: 1fr; }
}

/* ---------- directory table ---------- */

.cmp.dir td, .cmp.dir th { padding: 10px 12px; }
.cmp.dir td .sub {
  display: block; font-size: 12px; color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}
.cmp.dir tbody tr:hover { background: var(--bg-warm); }
.na { color: var(--ink-faint); font-style: italic; }
.facts small { display: inline-block; margin-top: 3px; color: var(--ink-faint); line-height: 1.45; }
.bad { color: var(--red); font-weight: 600; }


/* ---------- review theme analysis ---------- */

.themes { margin: 18px 0 24px; }
.themes .bar { grid-template-columns: 34px 1fr 44px; margin-bottom: 2px; }
.themes .bar .fill { background: var(--accent); }
.themerow {
  font-size: 14.5px; color: var(--ink-faint); margin: 0 0 14px;
  padding-left: 44px; line-height: 1.45;
}
.themerow b { color: var(--ink); font-weight: 700; }

/* 404 */
.notfound { list-style: none; padding: 0; margin: 1.6rem 0; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .8rem; }
.notfound a { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-warm); text-decoration: none; height: 100%; }
.notfound a:hover { border-color: var(--accent); }
.notfound b { display: block; color: var(--accent); margin-bottom: .25rem; }
.notfound span { display: block; color: var(--ink-soft); font-size: .92rem; line-height: 1.45; }
