/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Typography */
body {
  font-family: Roboto, sans-serif;
  background-color: #090f1e;
  color: #c2c4c9;
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4, h5, h6 {
  font-family: Roboto, sans-serif;
  color: #ffffff;
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.375rem; }
p { margin-bottom: 1em; }
a { color: #ff2400; transition: color 0.2s ease; }
a:hover, a:focus { color: #e0330a; }

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn-primary {
  background-color: #ff2400;
  color: #ffffff;
  border-color: #ff2400;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #e0330a;
  border-color: #e0330a;
  color: #ffffff;
}
.btn-secondary {
  background-color: #e7ecf50f;
  color: #ffffff;
  border-color: #ff2400;
}
.btn-secondary:hover, .btn-secondary:focus {
  background-color: #e7ecf517;
  color: #ffffff;
}

/* Header */
.site-header {
  background-color: #172032;
  border-bottom: 1px solid #ff2400;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.logo-link {
  display: inline-flex;
  align-items: center;
}
.logo {
  width: 140px;
  height: auto;
}
.header-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Footer */
.site-footer {
  background-color: #172032;
  border-top: 1px solid #ff2400;
  margin-top: 2rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.footer-logo {
  width: 120px;
}
.footer-cta {
  padding: 0.65rem 1.5rem;
}
.legal {
  color: #c2c4c9;
  font-size: 0.8rem;
  margin-bottom: 0;
}

/* Tablet */
@media (min-width: 768px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  body { font-size: 17px; }
  .container { padding: 0 1.5rem; }
  .header-cta { padding: 0.75rem 1.75rem; font-size: 1rem; }
}

/* 404 page */
.not-found-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.not-found-code {
  font-family: Roboto, sans-serif;
  font-weight: 700;
  font-size: 3.5rem;
  color: #f9b242;
  margin-bottom: 0;
  line-height: 1;
}
.not-found-inner .btn {
  margin-top: 0.5rem;
}

/* Page-specific additions for / (TopX review article) */
.page-topx { padding-top: 1.5rem; padding-bottom: 3rem; }

.hero-carousel { margin-bottom: 2rem; overflow-x: auto; }
.carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.carousel-tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background-color: #172032;
}
.carousel-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.carousel-tile-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.carousel-tile-content h2 {
  font-size: 1.125rem;
  margin-bottom: 0;
}

.page-title-toc { margin-bottom: 2rem; }
.toc {
  border: 1px solid #ff2400;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  background-color: #172032;
  margin-top: 1rem;
}
.toc-label {
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5em;
}
.toc ul { display: flex; flex-direction: column; gap: 0.5rem; }
.toc a { color: #ff2400; }
.toc a:hover, .toc a:focus { color: #e0330a; }

.intro-banner { margin-bottom: 2rem; }
.promo-banner-link { display: block; margin-top: 1rem; }
.promo-banner {
  width: 100%;
  border-radius: 8px;
}

section.article-block,
section.key-facts,
section.trust-section,
section.support-table,
section.faq-accordion {
  margin-bottom: 2.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  background-color: #172032;
  border-radius: 8px;
  overflow: hidden;
}
table th, table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ff2400;
  font-size: 0.95rem;
}
table th {
  color: #ffffff;
  font-weight: 700;
  background-color: #090f1e;
}
table tbody tr:last-child td { border-bottom: none; }

ol, .article-block ul, .trust-section ul {
  margin: 0 0 1.5rem 1.25rem;
  list-style: decimal;
}
.trust-section ul { list-style: disc; }
ol li, .trust-section ul li { margin-bottom: 0.5em; }

.faq-accordion dl { margin-top: 1rem; }
.faq-item { border-bottom: 1px solid #ff2400; }
.faq-item:last-child { border-bottom: none; }
.faq-item details { padding: 1rem 0; }
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
  font-size: 1.05rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: #f9b242;
}
.faq-item details[open] summary::after { content: "\2212"; }
.faq-item dd {
  margin: 0.75rem 0 0;
  color: #c2c4c9;
}

section .btn { margin-top: 0.5rem; }

@media (min-width: 768px) {
  .carousel-track { grid-template-columns: repeat(3, 1fr); }
}