/* Benchmark Buyer: site styles. Colours and fonts follow the approved prototype. */

@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #15171C;
  --ink-2: #3F444D;
  --muted: #4A4F59;
  --accent: #1D4ED8;
  --accent-dark: #1E3A8A;
  --star: #B45309;
  --surface: #F4F5F2;
  --border: #E3E5E0;
  --border-strong: #C9CCC5;
  --footer-text: #D9DBD6;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.65; overflow-wrap: break-word; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
a:focus-visible, .tile:focus-visible, .table-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img, svg { max-width: 100%; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 20px; font-size: 15px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 12px 4px; display: inline-block; }
.main-nav a:hover { color: var(--accent); }

/* Shared type */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); }
.kicker { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 8px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 16px; line-height: 1.25; text-align: center; }
.btn:hover { background: var(--accent-dark); color: #FFFFFF; }
.btn-secondary { background: #FFFFFF; color: var(--ink); border: 1px solid var(--border-strong); }
.btn-secondary:hover { background: var(--surface); color: var(--ink); }

/* Homepage */
.hero { background: var(--surface); border-bottom: 1px solid var(--border); }
.hero .wrap { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(34px, 5vw, 60px); line-height: 1.08; max-width: 820px; }
.hero .lede { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 680px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

.guides .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.section-head h2, .band h2 { margin: 0; font-size: 34px; font-weight: 600; line-height: 1.2; }
.section-head p { margin: 0; font-size: 15px; color: var(--muted); }
.group { display: flex; flex-direction: column; gap: 14px; }
.group h3 { margin: 0; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.tiles li { display: flex; }
.tile { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--border); border-radius: 12px; background: #FFFFFF; text-decoration: none; color: var(--ink); min-height: 44px; }
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile-name { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; }
.tile-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 15px; line-height: 1.4; }
.tile-top .label { color: var(--muted); }
.tile-count { font-size: 14px; color: var(--muted); }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band .wrap { padding-top: 64px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 32px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num { font-family: var(--serif); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.step h3 { margin: 0; font-family: var(--sans); font-size: 19px; font-weight: 600; }
.step p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-2); }

.money .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 14px; }
.money h2 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.2; }
.money p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 760px; }
.money .links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.money .links a { font-weight: 600; font-size: 16px; padding: 12px 0; display: inline-block; }

/* Stars and dots */
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.dots { color: var(--accent); letter-spacing: 2px; white-space: nowrap; }

/* Guide and simple pages */
.article { max-width: 820px; margin: 0 auto; padding: 40px var(--gutter) 72px; }
.page { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 20px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.article-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.article h1, .page h1 { margin: 0; font-weight: 700; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.1; }
.page h1 { font-size: clamp(34px, 4.6vw, 50px); margin-bottom: 14px; }
.subtitle { margin: 0; font-size: 20px; color: var(--ink-2); line-height: 1.45; }
.subtitle::first-letter { text-transform: uppercase; }

.prose > * + *, .prose section > * + *, .prose article > * + * { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose aside, .prose .table-scroll { margin: 0 0 18px; }
.prose p { line-height: 1.65; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose li > ul { margin-top: 8px; margin-bottom: 0; }
.prose h2 { font-size: 27px; font-weight: 600; line-height: 1.2; margin: 0 0 16px; }
.prose h3 { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 24px 0 12px; }
.prose h2[id], .prose article[id], .prose section[id] { scroll-margin-top: 16px; }

p.byline { font-size: 14px; color: var(--muted); line-height: 1.5; }
p.byline em { font-style: normal; }

.disclosure { background: var(--surface); border-radius: 10px; padding: 16px 18px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.disclosure p { margin: 0; }
.disclosure strong { color: var(--ink); }

.prose blockquote.quote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--accent); font-family: var(--serif); font-size: 19px; line-height: 1.5; }
.prose blockquote.quote p { margin: 0; }
.prose blockquote.quote p + p { margin-top: 10px; }
.prose blockquote.quote a { font-family: var(--sans); font-size: 15px; }

.guide-block { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 32px; }
.short-answer { border: 2px solid var(--ink); border-radius: 12px; padding: 24px; margin-top: 28px; }
.short-answer h2 { font-size: 26px; }
.short-answer p:last-child { margin-bottom: 0; }
.short-answer .see-why { margin: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; min-width: 720px; }
.table-scroll th { text-align: left; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.table-scroll td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll td:first-child { font-weight: 600; }
.table-scroll td .stars { font-size: 17px; }
.table-scroll a.product-link { font-weight: 600; color: var(--ink); }
.table-scroll a.product-link:hover { color: var(--accent); }
.scroll-hint { display: none; font-size: 13px; color: var(--muted); margin: -10px 0 18px; }
@media (max-width: 760px) { .scroll-hint { display: block; } }

.glance-note, .prose p.small { font-size: 14px; line-height: 1.6; color: var(--muted); }

.product h2 { font-size: 27px; }
p.score { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border-radius: 999px; padding: 6px 16px; font-size: 15px; line-height: 1.4; }
p.score .stars { font-size: 16px; }
p.users { background: var(--surface); border-radius: 10px; padding: 14px 16px; font-size: 16px; line-height: 1.6; }
p.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
a.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 20px; border-radius: 8px; background: var(--accent); color: #FFFFFF; text-decoration: none; font-weight: 600; line-height: 1.25; text-align: center; }
a.cta:hover { background: var(--accent-dark); color: #FFFFFF; }
.ad-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--border-strong); border-radius: 4px; padding: 1px 6px; line-height: 1.4; }

.sources { font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.sources h2 { font-size: 22px; }
.sources li { margin-bottom: 6px; }

/* Simple pages (How we review, privacy, about) */
.page .prose h2 { font-size: 28px; margin-top: 36px; }
.page .prose > ol { list-style: none; padding: 0; counter-reset: card; display: flex; flex-direction: column; gap: 12px; }
.page .prose > ol > li { counter-increment: card; position: relative; display: block; padding-left: 56px !important; border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin: 0; font-size: 16px; line-height: 1.6; }
.page .prose > ol > li::before { content: counter(card); position: absolute; left: 18px; top: 14px; font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--accent); min-width: 24px; line-height: 1.1; }
.page .after { margin-top: 36px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--footer-text); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px; font-size: 14px; }
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .name { font-family: var(--serif); font-size: 18px; font-weight: 700; color: #FFFFFF; }
.footer-brand .small { color: #A9ADA6; font-size: 13px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a { color: var(--footer-text); display: inline-block; padding: 6px 0; }
.footer-nav a:hover { color: #FFFFFF; }

/* Small screens */
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero .wrap { padding-top: 44px; padding-bottom: 40px; }
  .hero .lede { font-size: 17px; }
  .guides .wrap, .band .wrap { padding-top: 44px; padding-bottom: 44px; }
  .money .wrap { padding-top: 40px; padding-bottom: 40px; }
  .section-head h2, .band h2 { font-size: 28px; }
  .tiles { grid-template-columns: 1fr; }
  .article { padding-top: 24px; }
  .page { padding-top: 32px; }
  .subtitle { font-size: 18px; }
  .prose h2, .product h2 { font-size: 23px; }
  .short-answer { padding: 18px 16px; }
  .prose blockquote.quote { font-size: 17px; }
  .main-nav { gap: 0 14px; }
  .main-nav a { padding: 8px 2px; }
  .brand span { font-size: 20px; }
}
