/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

:root {
  --color-background: #090a0b;
  --color-surface: #18191b;
  --color-button: #31ffe5;
  --color-button-hover: #31ffe5;
  --color-button-text: #090a0b;
  --color-secondary-button: #7a2e34;
  --color-secondary-button-hover: #4a171d;
  --color-secondary-button-text: #ffffff;
  --color-font: #f8f5ef;
  --color-headers: #ffffff;
  --color-link: #d9b36b;
  --color-link-hover: #31ffe5;
  --color-border: #d9b36b;
  --color-accent: #d9b36b;
  --font-family: Inter, Arial, sans-serif;
}

html {
  font-size: 16px;
}

body {
  background: var(--color-background);
  color: var(--color-font);
  font-family: var(--font-family);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-headers);
  font-family: var(--font-family);
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--color-link);
  transition: color 0.2s ease;
}
a:hover, a:focus {
  color: var(--color-link-hover);
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-button);
  color: var(--color-button-text);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--color-button-hover);
  color: var(--color-button-text);
}

.btn-secondary {
  background: var(--color-secondary-button);
  color: var(--color-secondary-button-text);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--color-secondary-button-hover);
  color: var(--color-secondary-button-text);
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  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-img {
  height: 40px;
  width: auto;
}

.header-cta {
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  text-align: center;
}

.footer-logo-img {
  height: 36px;
  width: auto;
}

.footer-copy {
  color: var(--color-font);
  font-size: 0.875rem;
  opacity: 0.8;
}

/* Tablet */
@media (min-width: 768px) {
  html { font-size: 17px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .logo-img {
    height: 48px;
  }
}

/* Page body additions (homepage article layout) */
.page-main {
  display: block;
}

.page-main section {
  padding: 2.5rem 0;
}

.page-main h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.page-main h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.page-main p {
  margin-bottom: 1rem;
}

/* Hero carousel */
.hero-carousel {
  padding: 0;
  overflow-x: auto;
  background: var(--color-surface);
}

.hero-carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.hero-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 220px;
  background: var(--color-background);
}

.hero-tile-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.hero-tile-overlay {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.75rem;
  height: 100%;
  min-height: 220px;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(9, 10, 11, 0.85) 0%, rgba(9, 10, 11, 0.1) 70%);
}

.hero-tile-heading {
  font-size: 1.3rem;
  color: var(--color-headers);
}

/* Page title / TOC */
.page-title-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.toc-box {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
  margin-top: 1.5rem;
}

.toc-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(217, 179, 107, 0.2);
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  color: var(--color-link);
}

/* Promo banner */
.promo-banner-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1.5rem;
}

.promo-banner-img {
  width: 100%;
  height: auto;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.925rem;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(217, 179, 107, 0.2);
  vertical-align: top;
}

.data-table th {
  color: var(--color-headers);
  background: rgba(217, 179, 107, 0.12);
  font-weight: 700;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* CTA */
.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Article images */
.article-img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.25rem 0;
}

/* Step list */
.step-list {
  counter-reset: step;
  margin: 1.25rem 0;
}

.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 2.75rem;
  margin-bottom: 1rem;
}

.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--color-button);
  color: var(--color-button-text);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Trust section */
.trust-section {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* FAQ accordion */
.faq-accordion {
  margin-top: 1.5rem;
}

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

.faq-question {
  margin: 0;
}

.faq-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--color-headers);
  font-weight: 700;
  font-size: 1rem;
  padding: 1rem 1.75rem 1rem 0;
  position: relative;
}

.faq-toggle::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 1rem;
  color: var(--color-accent);
  font-size: 1.25rem;
}

.faq-toggle[aria-expanded="true"]::after {
  content: "\2212";
}

.faq-answer {
  padding-bottom: 1rem;
}

/* Sticky bottom promo bar */
.sticky-promo-bar {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

.sticky-promo-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
}

.sticky-promo-text {
  font-weight: 700;
  color: var(--color-headers);
}

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

/* Desktop */
@media (min-width: 1024px) {
  .page-title-section h1 {
    font-size: 2.5rem;
  }
}