:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --soft: #f9fafb;
  --soft-strong: #f3f4f6;
  --link: #e60012;
  --link-dark: #b91c1c;
  --max-width: 1120px;
  --content-width: 860px;
  --font: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--text);
  color: #ffffff;
  font-weight: 700;
  transform: translateY(-140%);
  transition: transform 0.16s ease;
}

.skip-link:focus-visible {
  color: #ffffff;
  transform: translateY(0);
  text-decoration: none;
}

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

a:hover,
a:focus-visible {
  color: var(--link-dark);
  text-decoration: underline;
}

.container {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.container.narrow {
  width: min(var(--content-width), calc(100% - 32px));
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-title {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.site-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 190px;
  object-fit: contain;
}

.site-title:hover,
.site-title:focus-visible {
  color: var(--text);
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 15px;
}

.main-nav a,
.nav-group-toggle {
  color: var(--text);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
}

.nav-group {
  position: relative;
  display: flex;
  align-items: center;
  padding: 10px 0;
  margin: -10px 0;
}

.nav-group-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-group-toggle::after {
  content: "▾";
  margin-left: 5px;
  color: var(--link);
  font-size: 11px;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  display: none;
  width: 310px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(17, 17, 17, 0.12);
}

.nav-dropdown.compact {
  width: 250px;
}

.nav-dropdown.wide {
  width: min(620px, calc(100vw - 32px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.nav-group-open .nav-dropdown {
  display: grid;
  gap: 2px;
}

.nav-dropdown a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  white-space: normal;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--soft-strong);
  color: var(--link);
  text-decoration: none;
}

.main-nav .signup-link {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--link);
  color: #ffffff;
  font-weight: 700;
}

.main-nav .signup-link:hover,
.main-nav .signup-link:focus-visible {
  background: var(--link-dark);
  color: #ffffff;
  text-decoration: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 38px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.hero {
  padding: 82px 0 58px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

h1,
h2,
h3 {
  margin: 0 0 16px;
  line-height: 1.18;
  color: var(--text);
}

h1 {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  word-break: keep-all;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero h1 {
  max-width: 900px;
  line-height: 1.12;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

h3 {
  margin-top: 26px;
  font-size: 22px;
  font-weight: 700;
}

p {
  margin: 0 0 18px;
}

.last-updated {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tagline {
  margin: 0 auto 16px;
  color: var(--text);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  line-height: 1.35;
}

.hero-copy,
.section-intro,
.text-block p {
  color: var(--muted);
}

.hero-copy {
  max-width: 760px;
  margin: 0 auto 26px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 12px 20px;
  border: 1px solid var(--link);
  border-radius: 6px;
  background: #ffffff;
  color: var(--link);
  font-weight: 700;
  line-height: 1.2;
}

.button:hover,
.button:focus-visible {
  border-color: var(--link-dark);
  color: var(--link-dark);
  text-decoration: none;
}

.button.primary {
  background: var(--link);
  color: #ffffff;
}

.button.primary:hover,
.button.primary:focus-visible {
  background: var(--link-dark);
  color: #ffffff;
}

.categories,
.signup-section,
.info-section,
.guide-section,
.faq-section,
.comparison-section,
.related-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--border);
}

.categories {
  text-align: center;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 17px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(66.666%, 760px);
  margin: 24px auto 0;
}

.category-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 16px 12px;
  border: 1px solid var(--link);
  border-radius: 8px;
  background: var(--link);
  color: #ffffff;
  font-weight: 700;
  text-align: center;
}

.category-grid a:hover,
.category-grid a:focus-visible {
  border-color: var(--link-dark);
  background: var(--link-dark);
  color: #ffffff;
  text-decoration: none;
}

.signup-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
}

.signup-box h2 {
  margin-bottom: 10px;
}

.signup-box p {
  margin: 0;
  color: var(--muted);
}

.text-block {
  max-width: var(--content-width);
}

.text-block h2 {
  margin-bottom: 18px;
}

.info-section,
.guide-section,
.faq-section,
.comparison-section,
.related-section {
  background: #ffffff;
}

.comparison-hero,
.faq-hero {
  background: var(--soft);
}

.faq-page-section {
  padding: 58px 0;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.faq-toc {
  position: sticky;
  top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
}

.faq-toc h2 {
  margin-bottom: 14px;
  font-size: 22px;
}

.faq-toc a {
  display: block;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
}

.faq-toc a:hover,
.faq-toc a:focus-visible {
  color: var(--link);
  text-decoration: none;
}

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

.faq-group {
  margin-bottom: 34px;
  scroll-margin-top: 24px;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group h2 {
  margin-bottom: 18px;
}

.faq-group details {
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.faq-group summary {
  cursor: pointer;
  padding: 17px 18px;
  color: var(--text);
  font-weight: 800;
  list-style: none;
}

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

.faq-group summary::after {
  content: "+";
  float: right;
  color: var(--link);
  font-size: 20px;
  line-height: 1;
}

.faq-group details[open] summary {
  border-bottom: 1px solid var(--border);
  color: var(--link);
}

.faq-group details[open] summary::after {
  content: "−";
}

.faq-group details p {
  margin: 0;
  padding: 16px 18px 18px;
  color: var(--muted);
}

.verdict-card {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-left: 5px solid var(--link);
  border-radius: 10px;
  background: var(--soft);
}

.verdict-card h2,
.verdict-card p {
  margin-bottom: 0;
}

.verdict-card h2 {
  margin-bottom: 10px;
}

.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  font-size: 14px;
}

.comparison-table th,
.comparison-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: var(--soft-strong);
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.recommended-row td {
  background: #fff5f5;
}

.recommended-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--link);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.pros-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
}

.pros-card h3 {
  margin-top: 0;
}

.pros-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.pros-card li {
  margin-bottom: 8px;
}

.choice-grid,
.scenario-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card,
.metric-card,
.content-callout {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--soft);
}

.choice-card h3,
.metric-card h3 {
  margin-top: 0;
}

.choice-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.choice-card li {
  margin-bottom: 8px;
}

.choice-card p,
.metric-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.metric-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.1;
}

.content-callout {
  margin-top: 22px;
  border-left: 5px solid var(--link);
  color: var(--muted);
}

.comparison-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.internal-link-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.internal-link-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 13px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.internal-link-grid a:hover,
.internal-link-grid a:focus-visible {
  border-color: var(--link);
  color: var(--link);
  background: var(--soft-strong);
  text-decoration: none;
}

.guide-section h3:first-of-type {
  margin-top: 18px;
}

.bottom-cta-section {
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
  background: var(--soft);
}

.bottom-cta-box {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
}

.bottom-cta-box h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.bottom-cta-box p {
  margin: 0;
  color: var(--muted);
}

.bottom-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  padding: 46px 0 34px;
  background: var(--soft);
  border-top: 1px solid var(--border);
}

.footer-copy h2 {
  font-size: 28px;
}

.footer-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 14px;
  font-size: 14px;
}

.copyright {
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--link);
  border-radius: 999px;
  background: var(--link);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 26px rgba(17, 17, 17, 0.18);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease, background 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--link-dark);
  color: #ffffff;
  text-decoration: none;
}

.back-to-top span {
  transform: translateY(-1px);
}

@media (max-width: 920px) {
  .header-inner {
    min-height: 62px;
  }

  .menu-button {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    display: none;
    align-items: flex-start;
    padding: 18px 16px;
    border-bottom: 1px solid var(--border);
    background: #ffffff;
    text-align: left;
  }

  .site-header.menu-open .main-nav {
    display: flex;
    justify-content: flex-start;
  }

  .nav-group {
    width: 100%;
    display: block;
    padding: 0;
    margin: 0;
  }

  .nav-group-toggle {
    width: 100%;
    padding: 10px 0;
    text-align: left;
  }

  .nav-dropdown,
  .nav-dropdown.compact {
    position: static;
    width: 100%;
    margin: 0 0 8px;
    box-shadow: none;
  }

  .nav-dropdown a {
    padding: 10px 12px;
  }

  .category-grid,
  .internal-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pros-cons-grid,
  .faq-layout,
  .choice-grid,
  .scenario-grid {
    grid-template-columns: 1fr;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-dropdown.wide {
    grid-template-columns: 1fr;
  }

  .faq-toc {
    position: static;
  }

  .signup-box,
  .bottom-cta-box {
    grid-template-columns: 1fr;
  }

  .bottom-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .container,
  .container.narrow,
  .header-inner {
    width: min(100% - 24px, var(--max-width));
  }

  .hero {
    padding: 58px 0 42px;
  }

  .categories,
  .signup-section,
  .info-section,
  .guide-section,
  .faq-section,
  .comparison-section,
  .related-section,
  .faq-page-section,
  .bottom-cta-section {
    padding: 42px 0;
  }

  .internal-link-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-actions,
  .bottom-cta-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    text-align: center;
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
}
