/* =========================================================
   bestfreevpn.net shared stylesheet
   Display: Space Grotesk | Body: IBM Plex Sans | Data: IBM Plex Mono
   Palette: deep navy + warm coral, verified green, amber ratings
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --ink: #16243B;
  --ink-soft: #2C3A52;
  --paper: #FFFFFF;
  --mist: #F4F6F8;
  --mist-2: #EAEEF2;
  --line: #E2E7EC;
  --text: #2A3441;
  --muted: #66727F;
  --coral: #FF5A3C;
  --coral-dark: #E2461F;
  --green: #14A06A;
  --green-soft: #E7F6EF;
  --red-soft: #FCEDEA;
  --amber: #F4A623;

  --maxw: 1080px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(22,36,59,.06), 0 8px 24px rgba(22,36,59,.06);
  --shadow-lift: 0 2px 4px rgba(22,36,59,.08), 0 16px 40px rgba(22,36,59,.10);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 700; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 30px; height: 30px; flex: 0 0 auto; display: block;
}
.brand .mark svg { width: 100%; height: 100%; display: block; }
.brand .mark .s-body { fill: var(--ink); }
.brand .mark .s-check { stroke: var(--coral); }
.site-footer .brand .mark .s-body { fill: #fff; }
.brand b { color: var(--coral); font-weight: 700; }

.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink-soft); font-weight: 500; font-size: .94rem;
  padding: 8px 12px; border-radius: 8px;
}
.nav a:hover { background: var(--mist); text-decoration: none; color: var(--ink); }

.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-size: 1rem; cursor: pointer; color: var(--ink); }

@media (max-width: 720px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 14px; }
  .nav.open { display: flex; }
  .nav a { padding: 11px 4px; border-radius: 0; border-bottom: 1px solid var(--mist-2); }
  .menu-btn { display: inline-block; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--mist) 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 56px 0 44px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: .76rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--coral-dark);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 12px; margin-bottom: 18px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p.lead { font-size: 1.16rem; color: var(--ink-soft); margin-top: 16px; }
.hero .meta { margin-top: 22px; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.hero .meta b { color: var(--ink); font-weight: 600; }

/* ---------- Section scaffolding ---------- */
.section { padding: 52px 0; }
.section.alt { background: var(--mist); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 660px; margin-bottom: 30px; }
.section-head .kicker { font-family: var(--font-mono); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dark); display: block; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); letter-spacing: -.01em; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.04rem; }

/* ---------- At-a-glance winners ---------- */
.winners { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.winner {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); position: relative;
}
.winner .award { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.winner .name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; color: var(--ink); margin: 6px 0 4px; }
.winner .why { font-size: .9rem; color: var(--ink-soft); }
.winner .jump { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--coral-dark); }

/* ---------- Comparison table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .92rem; }
table.compare th, table.compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.compare thead th { background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
table.compare thead th:first-child { border-top-left-radius: var(--radius); }
table.compare thead th:last-child { border-top-right-radius: var(--radius); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare tbody tr:nth-child(even) { background: var(--mist); }
table.compare .vpn-name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1rem; }
table.compare .mono { font-family: var(--font-mono); font-size: .86rem; }
.score-pill { display: inline-block; font-family: var(--font-mono); font-weight: 600; font-size: .86rem; color: #fff; background: var(--green); border-radius: 999px; padding: 3px 10px; }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--muted); }
.partial { color: var(--amber); font-weight: 600; }

/* ---------- Review cards ---------- */
.reviews { display: grid; gap: 26px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 80px;
}
.review-top { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rank {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700;
  font-size: 1.3rem; display: grid; place-items: center;
}
.review:first-child .rank { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%); }
.review-id { flex: 1 1 240px; min-width: 0; }
.review-id .award { font-family: var(--font-mono); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--coral-dark); }
.review-id h3 { font-size: 1.5rem; margin: 3px 0 6px; }
.stars { color: var(--amber); font-size: .95rem; letter-spacing: 1px; }
.stars .num { color: var(--muted); font-family: var(--font-mono); font-size: .8rem; margin-left: 6px; }
.score-big {
  flex: 0 0 auto; text-align: center; background: var(--mist); border-radius: 12px; padding: 8px 14px; min-width: 78px;
}
.score-big .n { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--ink); line-height: 1; }
.score-big .l { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

/* spec rail: the signature element, consistent across every VPN */
.spec-rail { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); }
.spec { padding: 14px 16px; border-right: 1px solid var(--line); }
.spec:last-child { border-right: none; }
.spec .k { font-family: var(--font-mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: 4px; }
.spec .v { font-family: var(--font-mono); font-weight: 600; font-size: .92rem; color: var(--ink); }
@media (max-width: 620px) {
  .spec-rail { grid-template-columns: repeat(2, 1fr); }
  .spec:nth-child(2n) { border-right: none; }
  .spec { border-bottom: 1px solid var(--line); }
  .spec:nth-last-child(-n+1) { border-bottom: none; }
}

.review-body { padding: 22px 24px; }
.review-body > p { margin-bottom: 16px; color: var(--text); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 4px 0 18px; }
@media (max-width: 560px) { .proscons { grid-template-columns: 1fr; } }
.pc h4 { font-size: .9rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.pc.pros h4 { color: var(--green); }
.pc.cons h4 { color: var(--coral-dark); }
.pc ul { list-style: none; }
.pc li { position: relative; padding-left: 24px; margin-bottom: 7px; font-size: .94rem; }
.pc li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.pc.pros li::before { content: "+"; color: var(--green); }
.pc.cons li::before { content: "–"; color: var(--coral-dark); }

.verdict { background: var(--mist); border-left: 3px solid var(--coral); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; margin-bottom: 18px; }
.verdict strong { font-family: var(--font-display); color: var(--ink); }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-family: var(--font-body);
  border-radius: 10px; padding: 11px 20px; cursor: pointer; border: 1px solid transparent; font-size: .95rem;
}
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); text-decoration: none; }
.cta-note { font-size: .8rem; color: var(--muted); }

/* video embed slot */
.video-slot { margin-top: 18px; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--ink); display: grid; place-items: center; border: 1px solid var(--line);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { text-align: center; color: #fff; padding: 20px; }
.video-placeholder .play { width: 56px; height: 56px; border-radius: 50%; background: var(--coral); display: grid; place-items: center; margin: 0 auto 12px; }
.video-placeholder .play::before { content: ""; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.video-placeholder small { display: block; color: rgba(255,255,255,.7); font-family: var(--font-mono); font-size: .72rem; margin-top: 6px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  margin: 30px auto; max-width: 760px; min-height: 90px;
  border: 1px dashed var(--mist-2); border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--mist);
  color: var(--muted); font-family: var(--font-mono); font-size: .72rem; letter-spacing: .05em;
}

/* ---------- Disclosure banner ---------- */
.disclosure-bar {
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .84rem; color: var(--ink-soft); display: flex; gap: 10px; align-items: flex-start;
}
.disclosure-bar .ico { color: var(--coral-dark); font-weight: 700; flex: 0 0 auto; }

/* ---------- How we test ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step .n { font-family: var(--font-mono); font-weight: 600; color: var(--coral-dark); font-size: .8rem; }
.step h4 { font-size: 1.05rem; margin: 8px 0 6px; }
.step p { font-size: .92rem; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; background: #fff; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--coral); font-weight: 400; flex: 0 0 auto; }
.faq details[open] summary::after { content: "–"; }
.faq details > p { padding: 0 20px 18px; color: var(--ink-soft); font-size: .96rem; }

/* ---------- Article / legal pages ---------- */
.page-hero { background: var(--ink); color: #fff; padding: 48px 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.page-hero p { color: rgba(255,255,255,.75); margin-top: 10px; max-width: 640px; }
.prose { max-width: 720px; padding: 44px 0; }
.prose h2 { font-size: 1.4rem; margin: 30px 0 12px; }
.prose h3 { font-size: 1.12rem; margin: 22px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { margin-bottom: 7px; }
.prose .updated { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); margin-bottom: 24px; }

/* contact form */
.form-card { max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; font-family: var(--font-body); font-size: .95rem; color: var(--text); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; border-color: var(--coral); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 40px 0 28px; margin-top: 10px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #fff; margin-bottom: 10px; }
.footer-brand p { font-size: .88rem; line-height: 1.6; }
.footer-col h5 { color: #fff; font-family: var(--font-display); font-size: .88rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); font-size: .9rem; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 18px; font-size: .8rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }

/* keyboard focus visibility */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 4px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
