:root {
  --bg: #f5f9fc;
  --bg-alt: #e9f2f9;
  --surface: #ffffff;
  --border: #d9e5ef;
  --border-strong: #bfd0e0;
  --text: #22364a;
  --muted: #587086;
  --heading: #0d2b42;
  --accent: #0b7285;
  --accent-dark: #085866;
  --gold: #f6b93b;
  --gold-dark: #e0a21f;
  --teal: #1bb39a;
  --teal-dark: #149a84;
  --ink: #2a1c00;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow: 0 8px 24px rgba(13, 43, 66, 0.12);
  --container: 1100px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-bottom: 68px;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-dark);
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { margin-top: 3rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { margin-top: 2rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); }

p {
  margin: 0 0 1rem;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

li {
  margin-bottom: 0.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

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

.skip-link {
  position: absolute;
  top: auto;
  left: -999px;
  z-index: 1000;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo img {
  width: auto;
  height: 56px;
}

.main-nav {
  display: none;
}

.main-nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav__list li {
  margin: 0;
}

.main-nav__list a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.main-nav__list a:hover {
  color: var(--accent);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  display: block;
  position: relative;
  width: 20px;
  height: 2px;
  background: var(--heading);
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }

@media (max-width: 959px) {
  .main-nav {
    display: block;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 400;
    padding: 2rem 1.25rem;
    overflow-y: auto;
    background: var(--surface);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0.25s;
  }

  body.nav-open .main-nav {
    visibility: visible;
    transform: none;
  }

  .main-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
}

@media (min-width: 960px) {
  .main-nav {
    display: block;
  }

  .nav-toggle {
    display: none;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7em 1.4em;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--gold);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--gold-dark);
  color: var(--ink);
}

.btn--teal {
  background: var(--teal);
  color: #03251e;
}

.btn--teal:hover {
  background: var(--teal-dark);
  color: #03251e;
}

.btn--outline {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--small {
  padding: 0.5em 1em;
  font-size: 0.85rem;
}

.hero {
  padding: 2rem 0;
}

.hero__content {
  padding: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 100% 0%, rgba(246, 185, 59, 0.28), transparent 70%),
    linear-gradient(135deg, #d9eefb 0%, #f4f9fd 60%, #fff6dd 100%);
  box-shadow: var(--shadow);
}

.hero__title {
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  max-width: 640px;
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.1rem;
}

.hero__meta {
  width: fit-content;
  margin: 0 0 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  font-size: 0.85rem;
}

.hero__meta time {
  color: var(--heading);
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero__content {
    padding: 1.5rem;
  }
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(13, 43, 66, 0.05);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.rank-row:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.rank-row__logo-wrap {
  position: relative;
  width: 64px;
  height: 64px;
}

.rank-row__num {
  position: absolute;
  top: -8px;
  left: -8px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
}

.rank-row__logo {
  width: 100%;
  height: 100%;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  object-fit: contain;
}

.rank-row__name {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.rank-row__bonus {
  display: none;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
  color: var(--heading);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
}

.rank-row__cta {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  .rank-row {
    grid-template-columns: 64px 1fr 170px 150px;
  }

  .rank-row__bonus {
    display: block;
  }

  .rank-row__cta {
    grid-column: auto;
  }
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.star-rating__stars {
  color: var(--gold-dark);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.star-rating__value {
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
}

.table-wrap {
  margin: 1.5rem 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.comparison-table {
  table-layout: fixed;
  font-size: 0.92rem;
}

.comparison-table caption {
  padding: 0.75rem 1rem;
  background: var(--bg-alt);
  color: var(--muted);
  font-weight: 600;
  text-align: left;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  overflow-wrap: anywhere;
  text-align: left;
}

.comparison-table th {
  background: var(--bg-alt);
  color: var(--heading);
  font-weight: 700;
}

.comparison-table th[data-sortable="true"] {
  cursor: pointer;
  user-select: none;
}

.comparison-table th[data-sortable="true"]::after {
  content: "\21C5";
  margin-left: 0.5rem;
  font-size: 0.8em;
  opacity: 0.6;
}

.comparison-table td {
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

.comparison-table tbody tr:nth-child(even) {
  background: #f6fafd;
}

.comparison-table tbody tr:hover {
  background: rgba(246, 185, 59, 0.14);
}

.cell-brand {
  color: var(--heading);
  font-weight: 700;
}

@media (max-width: 640px) {
  .comparison-table {
    font-size: 0.78rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem;
  }
}

.faq-list {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  padding: 1.25rem 2.5rem 1.25rem 0.5rem;
  color: var(--heading);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  color: var(--accent);
  font-size: 1.4rem;
  transform: translateY(-50%);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0;
  padding: 0 0.5rem 1.25rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 4rem;
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--muted);
}

.site-footer a {
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-strong);
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-col__title {
  margin-bottom: 0.75rem;
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-about {
  font-size: 0.88rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.8rem;
}

.footer-bottom p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: calc(1.5rem + 60px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 350;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -4px 16px rgba(13, 43, 66, 0.1);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta.is-visible {
  transform: none;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.sticky-cta__text {
  display: none;
  color: var(--heading);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .sticky-cta__text {
    display: block;
  }
}

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

  * {
    transition: none !important;
  }
}
