/* ==========================================================================
   Top5 Best IPTV Reviews — editorial IPTV review site
   Self-contained design system. No framework, no template classes.
   ========================================================================== */

:root {
  --ink: #14181f;
  --body: #444c59;
  --muted: #6b7480;
  --line: #e6e9ee;
  --line-soft: #eef1f5;
  --surface: #ffffff;
  --surface-alt: #f6f8fa;
  --surface-deep: #0b1437;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #e9f1ff;
  --accent2: #4f46e5;
  --accent-glow: rgba(37, 99, 235, .32);
  --amber: #f59e0b;
  --pos: #15a34a;
  --neg: #dc2626;
  --gold: #d4a531;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06);
  --shadow-md: 0 6px 24px rgba(16, 24, 40, .08);
  --shadow-lg: 0 18px 48px rgba(16, 24, 40, .12);
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--body);
  background: var(--surface);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

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

.section { padding: 54px 0; }
.section--tight { padding: 38px 0; }
.section--alt { background: var(--surface-alt); }
.section--deep { background: linear-gradient(165deg, #0b1437 0%, #15204d 60%, #1c2c66 100%); color: #cdd9f0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 14px;
}
.section--deep .eyebrow { color: #93c5fd; }

.section-head { margin: 0 0 26px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin: 0; max-width: 62ch; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section--deep .section-head h2 { color: #fff; }
.section--deep .section-head p { color: #97a6bd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: .9rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand b { color: var(--accent-dark); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--body); font-weight: 600; font-size: .96rem; }
.nav a:hover { color: var(--accent-dark); text-decoration: none; }
.nav a.active { color: var(--ink); }
.nav__cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 36px; background: radial-gradient(120% 120% at 80% -10%, var(--accent-soft) 0%, #fff 55%); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2.05rem, 4.4vw, 3.05rem); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent-dark); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 em { background: linear-gradient(120deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.hero__lede { font-size: 1.13rem; color: var(--body); max-width: 36ch; margin: 0 0 20px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 18px 26px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta svg { width: 17px; height: 17px; color: var(--accent); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: var(--shadow-lg);
}
.hero-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hero-card__tag { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.hero-card__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin: 2px 0 2px; }
.hero-card__sub { font-size: .92rem; color: var(--muted); margin: 0 0 14px; }
.hero-card__row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line-soft); font-size: .92rem; }
.hero-card__row b { color: var(--ink); }

/* ---------- Category strip ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.cat img { width: 42px; height: 42px; flex: none; }
.cat b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.06rem; }
.cat span { font-size: .85rem; color: var(--muted); }

/* ---------- Stars ---------- */
.stars { position: relative; display: inline-block; font-size: 1.02rem; line-height: 1; letter-spacing: 2px; font-family: var(--font-sans); }
.stars::before { content: "★★★★★"; color: #dde2e8; }
.stars > i { position: absolute; left: 0; top: 0; width: var(--pct, 100%); overflow: hidden; color: var(--amber); white-space: nowrap; }
.stars > i::before { content: "★★★★★"; }

/* ---------- Comparison table ---------- */
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare { width: 100%; border-collapse: collapse; min-width: 720px; background: #fff; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.compare thead th { font-family: var(--font-sans); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--surface-alt); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr.is-top { background: linear-gradient(90deg, rgba(212,165,49,.07), transparent 60%); }
.compare .rank { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.compare .prov { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.compare .prov small { display: block; font-weight: 500; color: var(--muted); font-size: .82rem; }
.compare .score { font-family: var(--font-display); font-weight: 600; color: var(--accent-dark); font-size: 1.25rem; }
.yes { color: var(--pos); font-weight: 700; }
.no { color: var(--neg); font-weight: 700; }
.pill-top { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8a6d16; background: #fbf1d4; border: 1px solid #f0dca0; padding: 3px 8px; border-radius: 999px; margin-top: 6px; }

/* ---------- Review cards ---------- */
.reviews { display: grid; gap: 26px; }
.review {
  display: grid; grid-template-columns: 220px 1fr; gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.review.is-top { border-color: #ecd9a3; box-shadow: 0 10px 30px rgba(212,165,49,.14); }
.review__aside {
  background: var(--surface-deep); color: #cdd6e4; padding: 26px 22px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.review__rankline { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #7d8aa3; }
.review.is-top .review__rankline { color: var(--gold); }
.logo-chip { width: 100%; height: 76px; display: grid; place-items: center; padding: 8px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; }
.logo-chip img { max-height: 56px; width: auto; object-fit: contain; }
.review__score { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 2px; }
.review__score b { font-family: var(--font-display); font-size: 2.4rem; color: #fff; line-height: 1; }
.review__score span { font-size: .78rem; color: #8a98b0; letter-spacing: .06em; text-transform: uppercase; }
.review__body { padding: 26px 28px; }
.review__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.review__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin: 0; }
.review__tag { font-size: .9rem; color: var(--accent-dark); font-weight: 700; }
.review__text { margin: 12px 0 18px; color: var(--body); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; margin: 0 0 20px; }
.proscons h4 { font-family: var(--font-sans); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.proscons ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.proscons li { position: relative; padding-left: 26px; font-size: .94rem; color: var(--body); }
.proscons li::before { position: absolute; left: 0; top: 1px; font-weight: 800; }
.proscons .pro li::before { content: "✓"; color: var(--pos); }
.proscons .con li::before { content: "✕"; color: var(--neg); }
.review__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: 18px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .8rem; font-weight: 600; color: var(--body); background: var(--surface-alt); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.tag.tag-off { color: var(--neg); border-color: #f3d3d3; background: #fdf2f2; }

/* ---------- Methodology ---------- */
.method { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.method__item { padding: 4px 2px; }
.method__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--accent); line-height: 1; display: block; margin-bottom: 10px; }
.section--deep .method__num { color: #7cb0ff; }
.method__item h3 { font-size: 1.12rem; color: #fff; margin: 0 0 6px; }
.section--deep .method__item p { color: #97a6bd; font-size: .96rem; margin: 0; }

/* ---------- Guide ---------- */
.guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.guide__icon { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; margin-bottom: 16px; }
.guide__icon svg { width: 23px; height: 23px; }
.guide__item h3 { font-size: 1.18rem; margin: 0 0 8px; }
.guide__item p { margin: 0; color: var(--body); font-size: .97rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-weight: 400; font-size: 1.5rem; color: var(--accent); transition: transform .2s ease; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--body); }
.faq details > div p { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(125deg, #1e3a8a 0%, #2563eb 55%, #4f46e5 100%); background-size: 180% 180%; color: #fff; border-radius: 20px; padding: 46px 44px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.85); max-width: 48ch; }
.cta-band .btn { background: #fff; color: var(--accent-dark); }
.cta-band .btn:hover { background: #eef3ff; transform: translateY(-1px); }

/* ---------- Article / legal pages ---------- */
.page-hero { background: radial-gradient(120% 120% at 85% -20%, var(--accent-soft), #fff 55%); padding: 46px 0 32px; border-bottom: 1px solid var(--line); }
.page-hero .crumbs { font-size: .85rem; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.page-hero .crumbs a { color: var(--muted); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 10px; }
.page-hero p { font-size: 1.12rem; color: var(--body); max-width: 60ch; margin: 0; }
.page-hero .updated { display: inline-block; margin-top: 16px; font-size: .85rem; color: var(--muted); font-weight: 600; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 14px; }
.prose h3 { font-size: 1.22rem; margin: 28px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 4px; list-style: none; display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 28px; }
.prose ul li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose strong { color: var(--ink); }
.prose .callout { background: var(--surface-alt); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 18px 22px; margin: 26px 0; }
.prose .callout p:last-child { margin-bottom: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-aside h2 { font-size: 1.7rem; }
.contact-aside ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 18px; }
.contact-aside li { display: flex; gap: 14px; align-items: flex-start; }
.contact-aside .ci { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); display: grid; place-items: center; }
.contact-aside .ci svg { width: 20px; height: 20px; }
.contact-aside b { display: block; color: var(--ink); font-size: .98rem; }
.contact-aside span { font-size: .92rem; color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-sans); font-size: .98rem; color: var(--ink); background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface-deep); color: #9fb0c7; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.08); }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: #93c5fd; }
.footer-about { margin: 16px 0 0; font-size: .94rem; color: #8597af; max-width: 42ch; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: #9fb0c7; font-size: .96rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-disclaimer { font-size: 1.05rem; color: #c4d0e4; line-height: 1.75; margin: 30px 0 0; }
.footer-disclaimer h4 { color: #e3eaf6; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: .85rem; color: #6f8099; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-card { max-width: 460px; }
  .method { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .guide { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 42px 0; }
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 22px 18px; box-shadow: var(--shadow-md); transform: translateY(-130%); transition: transform .25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .nav__cta { margin-top: 12px; }
  .nav-toggle { display: block; }
  .cats { grid-template-columns: 1fr 1fr; }
  .review { grid-template-columns: 1fr; }
  .review__aside { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 16px 24px; }
  .logo-chip { width: auto; min-width: 150px; height: 64px; }
  .proscons { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 34px 26px; }
}
@media (max-width: 460px) {
  .cats { grid-template-columns: 1fr; }
}

/* ---------- Articles ---------- */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.article-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .14s ease, box-shadow .14s ease; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card__top { height: 7px; background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.article-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.cat-pill { align-self: flex-start; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.article-card h3 { font-size: 1.24rem; margin: 0 0 10px; line-height: 1.2; }
.article-card h3 a { color: var(--ink); }
.article-card h3 a:hover { color: var(--accent-dark); text-decoration: none; }
.article-card p { margin: 0 0 18px; color: var(--body); font-size: .95rem; }
.article-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.article-card__meta a { font-weight: 700; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 18px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.post-meta .cat-pill { margin: 0; }
.article-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.related { border-top: 1px solid var(--line); margin-top: 46px; padding-top: 26px; }
.related h3 { font-size: 1.1rem; margin: 0 0 14px; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related a { font-weight: 600; }
.section-head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.section-head--row > div { max-width: 720px; }
.head-link { flex: none; white-space: nowrap; font-size: .95rem; font-weight: 700; color: var(--accent-dark); display: inline-flex; align-items: center; gap: 6px; padding-bottom: 4px; }
.head-link:hover { color: var(--accent); text-decoration: none; }
.head-link span { transition: transform .18s ease; }
.head-link:hover span { transform: translateX(3px); }
@media (max-width: 960px) { .article-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .article-grid { grid-template-columns: 1fr; } .section-head--row { flex-direction: column; align-items: flex-start; gap: 10px; } }

/* ==========================================================================
   Entertainment polish — blue theme motion & micro-interactions
   Hover affordances are always on; ambient/auto motion is gated behind
   prefers-reduced-motion so the site stays calm for those who ask for it.
   ========================================================================== */

.hero-card { position: relative; }

/* Card hover: lift + blue glow */
.review, .guide__item, .cat { transition: transform .22s cubic-bezier(.22,.61,.36,1), box-shadow .22s ease, border-color .22s ease; }
.guide__item:hover, .cat:hover { transform: translateY(-4px); box-shadow: 0 16px 36px var(--accent-glow); border-color: #c7d9ff; }
.review:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(37,99,235,.16); border-color: #c7d9ff; }
.review.is-top:hover { box-shadow: 0 20px 48px rgba(212,165,49,.22); }
.article-card:hover { box-shadow: 0 18px 40px var(--accent-glow); border-color: #c7d9ff; }
.compare tbody tr { transition: background .2s ease; }
.compare tbody tr:hover td { background: var(--accent-soft); }
.logo-chip { transition: transform .25s ease; }
.review:hover .logo-chip { transform: scale(1.04); }

/* Animated nav underline */
.nav a:not(.btn) { position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }

/* Primary button shine sweep (movement gated below) */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); pointer-events: none; }
.btn-primary:hover { box-shadow: 0 10px 24px var(--accent-glow); }

/* FAQ accent on open */
.faq details[open] { border-color: #c7d9ff; box-shadow: 0 8px 24px var(--accent-glow); }

@media (prefers-reduced-motion: no-preference) {

  /* Hero ambience — floating glow orbs behind content */
  .hero { position: relative; overflow: hidden; }
  .hero > .wrap { position: relative; z-index: 1; }
  .hero::before, .hero::after { content: ""; position: absolute; z-index: 0; border-radius: 50%; filter: blur(64px); opacity: .55; pointer-events: none; }
  .hero::before { width: 460px; height: 460px; top: -170px; right: -70px; background: radial-gradient(circle, rgba(37,99,235,.5), transparent 70%); animation: orb-a 15s ease-in-out infinite; }
  .hero::after { width: 380px; height: 380px; bottom: -170px; left: -60px; background: radial-gradient(circle, rgba(79,70,229,.42), transparent 70%); animation: orb-b 19s ease-in-out infinite; }
  @keyframes orb-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-28px,24px) scale(1.06); } }
  @keyframes orb-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(26px,-20px) scale(1.08); } }

  /* Hero entrance, staggered */
  .hero h1 { animation: rise .7s cubic-bezier(.22,.61,.36,1) both; }
  .hero__lede { animation: rise .7s cubic-bezier(.22,.61,.36,1) .08s both; }
  .hero__actions { animation: rise .7s cubic-bezier(.22,.61,.36,1) .16s both; }
  .hero__meta { animation: rise .7s cubic-bezier(.22,.61,.36,1) .24s both; }
  .hero-card { animation: pop .75s cubic-bezier(.22,.61,.36,1) .18s both; }
  @keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

  /* Star rating fills in */
  .stars > i { animation: star-fill 1s cubic-bezier(.22,.61,.36,1) .3s both; }
  @keyframes star-fill { from { width: 0; } to { width: var(--pct,100%); } }

  /* "Top pick" badge shimmer */
  .pill-top { position: relative; overflow: hidden; }
  .pill-top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 18%, rgba(255,255,255,.75) 50%, transparent 82%); transform: translateX(-110%); animation: shimmer 3.4s ease-in-out infinite; }
  @keyframes shimmer { 0% { transform: translateX(-110%); } 55%,100% { transform: translateX(110%); } }

  /* Editor's-pick card breathes a soft glow */
  .hero-card::after { content: ""; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; animation: cardglow 4.5s ease-in-out infinite; }
  @keyframes cardglow { 0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); } 50% { box-shadow: 0 0 34px 1px rgba(37,99,235,.20); } }

  /* CTA band gradient drifts */
  .cta-band { animation: ctashift 12s ease infinite; }
  @keyframes ctashift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

  /* Button shine on hover */
  .btn-primary:hover::after { left: 135%; transition: left .75s ease; }

  /* Reveal-on-scroll (reveal.js adds .reveal, then .is-visible on enter) */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* FAQ answer slides open */
  .faq details[open] > div { animation: rise .35s ease both; }
}

/* Header CTA keeps a white label (outranks the generic .nav a colour rules) */
.nav a.btn-primary,
.nav a.btn-primary:hover { color: #fff; }

/* ---------- Knowledge-base accordion (in-depth SEO articles) ---------- */
.kb { display: grid; gap: 14px; }
.kb-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.kb-item[open] { border-color: #c7d9ff; box-shadow: 0 12px 32px var(--accent-glow); }
.kb-item > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.kb-item > summary::-webkit-details-marker { display: none; }
.kb-item > summary:hover .kb-sum-txt b { color: var(--accent-dark); }
.kb-sum-num { flex: none; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-dark); font-weight: 800; display: grid; place-items: center; font-size: .95rem; transition: background .2s ease, color .2s ease; }
.kb-item[open] .kb-sum-num { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; }
.kb-sum-txt { flex: 1; min-width: 0; }
.kb-sum-txt b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.16rem; color: var(--ink); line-height: 1.25; }
.kb-sum-txt span { font-size: .9rem; color: var(--muted); }
.kb-chev { flex: none; width: 22px; height: 22px; color: var(--accent); transition: transform .25s ease; }
.kb-item[open] .kb-chev { transform: rotate(180deg); }
.kb-body { padding: 6px 24px 26px; border-top: 1px solid var(--line-soft); }
.kb-body > * { max-width: 780px; }
.kb-body h3 { font-size: 1.18rem; margin: 22px 0 8px; color: var(--ink); }
.kb-body p { margin: 0 0 14px; color: var(--body); }
.kb-body ul { margin: 0 0 16px; padding-left: 2px; list-style: none; display: grid; gap: 9px; }
.kb-body li { position: relative; padding-left: 24px; color: var(--body); }
.kb-body li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kb-body strong { color: var(--ink); }
.kb-body a { font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .kb-item[open] .kb-body { animation: rise .3s ease both; } }
@media (max-width: 600px) { .kb-item > summary { padding: 16px 15px; gap: 12px; } .kb-sum-txt b { font-size: 1.05rem; } .kb-body { padding: 6px 15px 20px; } }

/* ---------- Comparison table → stacked cards on mobile (no horizontal scroll) ---------- */
@media (max-width: 720px) {
  .compare-scroll { overflow: visible; border: 0; box-shadow: none; border-radius: 0; }
  .compare { min-width: 0; width: 100%; background: transparent; }
  /* visually hide the header row (kept in DOM for semantics) */
  .compare thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .compare tbody { display: block; }

  .compare tr {
    display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow-sm); padding: 16px 18px 18px; margin-bottom: 14px;
  }
  .compare tr.is-top { border-color: #ecd9a3; box-shadow: 0 10px 30px rgba(212, 165, 49, .14); }

  .compare td {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 11px 0; border: 0; border-top: 1px solid var(--line-soft); text-align: right;
  }
  .compare td::before {
    font-weight: 700; color: var(--muted); font-size: .8rem; letter-spacing: .04em;
    text-transform: uppercase; text-align: left;
  }
  .compare td:nth-child(3)::before { content: "Score"; }
  .compare td:nth-child(4)::before { content: "Free trial"; }
  .compare td:nth-child(5)::before { content: "Card payments"; }
  .compare td:nth-child(6)::before { content: "Support"; }

  /* Rank badge (column 1 of the card header) */
  .compare td.rank {
    grid-column: 1; grid-row: 1; width: 40px; height: 40px; padding: 0; border: 0;
    justify-content: center; align-self: start;
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
    border-radius: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  }

  /* Provider name (column 2 of the card header) */
  .compare td:nth-child(2) {
    grid-column: 2; grid-row: 1; flex-direction: column; align-items: flex-start;
    justify-content: center; text-align: left; padding: 0; border: 0; gap: 4px;
  }

  /* First stat row keeps a clear divider under the header */
  .compare td:nth-child(3) { margin-top: 6px; }

  /* Visit button → full width at the bottom of the card */
  .compare td:last-child { padding-top: 16px; }
  .compare td:last-child .btn { width: 100%; }
}

/* provider wordmark used in place of a logo image */
.logo-chip--text{font-weight:800;font-size:19px;line-height:1.2;letter-spacing:-.3px;color:#fff;text-align:center}
