:root {
  --bg: #050b14;
  --bg-soft: #0b1526;
  --panel: #0b1728;
  --panel-strong: #08111e;
  --line: rgba(120, 195, 255, 0.16);
  --text: #eaf4ff;
  --muted: #9fb5ca;
  --cyan: #50d7ff;
  --green: #43e7a7;
  --blue: #2f6dff;
  --teal: #24c7c4;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  --radius: 18px;
  --max: 1160px;
  --header-offset: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.7 "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(80, 215, 255, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(67, 231, 167, 0.12), transparent 22%),
    linear-gradient(180deg, #06101d 0%, #050b14 42%, #04070f 100%);
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  color: #9ae9ff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(80, 215, 255, 0.85);
  outline-offset: 2px;
}

code {
  font-family: "SFMono-Regular", Consolas, monospace;
  color: #a8f1ff;
}

.site-shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 18px 20px 112px;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: var(--header-offset);
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: center;
  padding: 16px 18px 14px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(5, 11, 20, 0.98);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: var(--text);
}

.brand img {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  max-width: 390px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.site-nav {
  display: grid;
  grid-column: 2 / 3;
  grid-template-columns: repeat(3, max-content);
  justify-content: end;
  gap: 8px 10px;
  padding-top: 0;
  border-top: 0;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(80, 215, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(80, 215, 255, 0.08);
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.88fr);
  gap: 26px;
  align-items: center;
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(10, 26, 44, 0.95), rgba(4, 10, 18, 0.95)),
    linear-gradient(120deg, rgba(80, 215, 255, 0.08), transparent 55%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto -54px -36px;
  width: 210px;
  height: 210px;
  background: radial-gradient(circle, rgba(80, 215, 255, 0.22), transparent 70%);
  pointer-events: none;
}

.hero__content,
.hero__visual {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 14px;
  max-width: 580px;
  font: 700 clamp(2rem, 3.6vw, 3.2rem)/1.02 "Trebuchet MS", "Avenir Next", sans-serif;
  letter-spacing: -0.03em;
}

.hero__lede,
.lede {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 22px;
  color: #b7c9da;
  font-size: 0.88rem;
}

.hero__meta span {
  padding: 7px 10px;
  border: 1px solid rgba(80, 215, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.hero__actions,
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #032031;
  background: linear-gradient(135deg, var(--green), var(--cyan));
}

.button--ghost {
  color: var(--text);
  border-color: rgba(80, 215, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
}

.hero__visual img {
  width: 100%;
  max-height: 380px;
  min-height: 250px;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(80, 215, 255, 0.14);
  background: linear-gradient(160deg, rgba(80, 215, 255, 0.08), rgba(67, 231, 167, 0.06));
}

.panel {
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel > :first-child {
  margin-top: 0;
}

.panel > :last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2,
.panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.92rem);
  line-height: 1.15;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  position: relative;
  min-height: 172px;
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(12, 26, 44, 0.88), rgba(7, 16, 29, 0.9));
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(80, 215, 255, 0.24), transparent 68%);
}

.stat-card__value {
  position: relative;
  display: block;
  margin-bottom: 4px;
  font-size: 1.76rem;
  font-weight: 800;
  color: var(--cyan);
}

.stat-card__label {
  position: relative;
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.stat-card p,
.related-card p,
.site-footer p,
.source-list,
.panel p,
.sidebar-list li {
  color: var(--muted);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.content-main {
  min-width: 0;
}

.content-sidebar {
  position: static;
}

.key-list,
.sidebar-list,
.source-list,
.site-footer ul,
.sitemap-group ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.key-list li,
.sidebar-list li,
.source-list li,
.site-footer li,
.sitemap-group li {
  margin-bottom: 10px;
}

.table-shell {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

caption {
  padding-bottom: 14px;
  color: var(--muted);
  text-align: left;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(80, 215, 255, 0.12);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
}

.chart-panel__summary {
  max-width: 720px;
  margin-bottom: 16px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.bar-chart__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.bar-chart__item--score {
  justify-content: center;
  min-height: 148px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(80, 215, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.score-chip {
  display: grid;
  place-items: center;
  min-width: 92px;
  min-height: 92px;
  padding: 12px;
  border-radius: 24px;
  color: #041018;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.score-chip strong {
  font-size: 1.32rem;
  line-height: 1.1;
}

.score-chip--cyan { background: linear-gradient(180deg, #9fefff, var(--cyan)); }
.score-chip--green { background: linear-gradient(180deg, #8cf8d4, var(--green)); }
.score-chip--blue { background: linear-gradient(180deg, #89b0ff, var(--blue)); }
.score-chip--teal { background: linear-gradient(180deg, #86f4ef, var(--teal)); }

.legend-dot--green { background: var(--green); }
.legend-dot--blue { background: var(--blue); }
.legend-dot--teal { background: var(--teal); }

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(80, 215, 255, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 20px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item p {
  padding: 0 20px 20px;
  margin: 0;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.related-card {
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(80, 215, 255, 0.12);
  background: linear-gradient(160deg, rgba(10, 23, 39, 0.92), rgba(7, 14, 26, 0.94));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(80, 215, 255, 0.28);
}

.related-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.related-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.related-card--large {
  min-height: 210px;
}

.editorial-block {
  display: grid;
  gap: 8px;
  margin: 16px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(80, 215, 255, 0.18);
  border-radius: 16px;
  background: rgba(4, 13, 23, 0.84);
}

.editorial-block strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.editorial-block p {
  margin: 0;
}

.editorial-block p,
.breadcrumbs {
  color: var(--muted);
}

.editorial-note {
  margin-bottom: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  background: rgba(80, 215, 255, 0.08);
  color: var(--muted);
}

.editorial-note strong {
  color: var(--text);
}

.affiliate-notice {
  color: #0c1b2b;
}

.affiliate-notice a {
  color: #0052b3;
  font-weight: 700;
}

.home-trust-note {
  margin-top: -4px;
}

.home-trust-note p {
  margin: 0;
  font-size: 1rem;
  color: #cde3f4;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: #bddcff;
}

.info-grid,
.sitemap-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.calculator-panel .tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.tool-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.tool-form input,
.tool-form select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(80, 215, 255, 0.16);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.calculator-result {
  margin-top: 16px;
  padding: 18px;
  border-radius: 14px;
  background: rgba(80, 215, 255, 0.07);
  border: 1px solid rgba(80, 215, 255, 0.16);
}

.site-footer {
  padding: 28px 24px;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, minmax(180px, 1fr));
  gap: 20px;
}

.site-footer h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.cookie-banner {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 999;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: min(360px, calc(100vw - 24px));
  padding: 16px;
  border: 1px solid rgba(80, 215, 255, 0.18);
  border-radius: 16px;
  background: rgba(5, 11, 20, 0.98);
  box-shadow: var(--shadow);
  pointer-events: auto;
  isolation: isolate;
}

.cookie-banner p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.cookie-banner button,
.cookie-banner a,
.cookie-banner * {
  pointer-events: auto;
}

.cookie-banner .button {
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.cookie-banner__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#schema-data {
  display: none;
}

@media (max-width: 1100px) {
  .brand small {
    max-width: 260px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, max-content);
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid rgba(80, 215, 255, 0.12);
  }

  .content-layout,
  .hero,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero__visual img {
    max-height: 360px;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    border-radius: 18px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    justify-content: flex-start;
    padding-top: 10px;
    border-top: 1px solid rgba(80, 215, 255, 0.12);
  }

  .site-nav.is-open {
    display: grid;
  }

  .hero {
    padding: 24px;
  }

  .calculator-panel .tool-form,
  .editorial-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 12px 12px 108px;
  }

  .hero,
  .panel,
  .site-footer {
    padding: 18px;
  }

  .hero h1 {
    font-size: 1.95rem;
  }

  .brand small {
    display: none;
  }

  .hero__meta span,
  .button {
    width: 100%;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
  }

  .cookie-banner__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

@supports not (position: sticky) {
  .site-header {
    position: static;
  }
}

.affiliate-disclosure-banner {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(80, 215, 255, 0.2);
  border-left: 3px solid var(--cyan);
  border-radius: 16px;
  background: rgba(11, 23, 40, 0.92);
  color: var(--muted);
}

.affiliate-disclosure-banner strong {
  color: var(--text);
}

.affiliate-disclosure-banner p {
  margin: 0;
}

.affiliate-disclosure-banner a {
  color: var(--cyan);
  font-weight: 700;
}

/* ===== Affiliate CTA Cards ===== */

.affiliate-cta-card {
  background: linear-gradient(135deg, #f0f4f8 0%, #e8eef5 100%);
  border: 1px solid #d1dce8;
  border-left: 5px solid #4687ff;
  border-radius: 8px;
  padding: 24px 28px;
  margin: 28px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.affiliate-cta-card h3 {
  margin: 0 0 12px 0;
  color: #1a3a5c;
  font-size: 1.15em;
}

.affiliate-cta-card p {
  margin: 0 0 18px 0;
  color: #2c3e50;
  line-height: 1.55;
}

.affiliate-cta-card small {
  display: block;
  margin-top: 12px;
  color: #5a6c7e;
  font-size: 0.85em;
}

.affiliate-cta-card-secondary {
  background: #fafbfc;
  border: 1px solid #e1e8ef;
  border-radius: 6px;
  padding: 18px 22px;
  margin: 24px 0;
}

.affiliate-cta-card-secondary p {
  margin: 0 0 12px 0;
}

.cta-btn-primary,
.cta-btn-secondary {
  display: inline-block;
  padding: 12px 24px;
  background: #4687ff;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.98em;
  transition: background 0.2s;
}

.cta-btn-primary:hover,
.cta-btn-secondary:hover {
  background: #3672e0;
  text-decoration: none;
}

.cta-btn-secondary {
  background: #1a3a5c;
}

.cta-btn-secondary:hover {
  background: #0e2540;
}

@media (max-width: 640px) {
  .affiliate-cta-card,
  .affiliate-cta-card-secondary {
    padding: 18px 16px;
  }
  
.cta-btn-primary,
.cta-btn-secondary {
  display: block;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  }
}
/* ===== End Affiliate CTA Cards ===== */

/* ===== Smart Sticky Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background: var(--header-bg, #0a1628);
  backdrop-filter: blur(10px);
}

.site-header.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

@media (min-width: 768px) {
  .site-header.header-hidden {
    transform: none;
  }
}

@media (max-width: 767px) {
  .site-header.scrolled {
    padding: 10px 14px 9px;
    border-radius: 16px;
    margin-bottom: 14px;
  }
}
/* ===== End Smart Sticky Header ===== */

/* ===== Contextual Affiliate CTA Cards ===== */
.quick-take-card {
  background: linear-gradient(135deg, rgba(70, 135, 255, 0.08), rgba(70, 135, 255, 0.03));
  border: 1px solid rgba(70, 135, 255, 0.25);
  border-left: 4px solid #4687ff;
  border-radius: 8px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.quick-take-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #4687ff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-take-body {
  margin: 0 0 14px;
  line-height: 1.6;
  color: var(--text-color, #e6ecf5);
}

.quick-take-cta {
  display: inline-block;
  background: #4687ff;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.quick-take-cta:hover {
  background: #3576ed;
}

.quick-take-note {
  margin: 10px 0 0;
  font-size: 0.8rem;
  opacity: 0.65;
}

.editor-pick-card,
.best-price-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #4687ff;
  border-radius: 8px;
  padding: 18px 22px;
  margin: 20px 0 28px;
}

.editor-pick-label,
.best-price-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4687ff;
  margin: 0 0 8px;
  font-weight: 600;
}

.editor-pick-body,
.best-price-body {
  margin: 0 0 12px;
  line-height: 1.6;
}

.closing-cta-card {
  background: rgba(70, 135, 255, 0.05);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 36px 0 24px;
  text-align: center;
}

.closing-cta-text {
  margin: 0 0 12px;
  font-size: 1rem;
  opacity: 0.9;
}
/* ===== End Contextual Affiliate CTA Cards ===== */
