:root {
  --bg: #ffffff;
  --surface: #f6f6f4;
  --text: #111111;
  --muted: #4b4b4b;
  --line: #d8d8d3;
  --flag-red: #ae1c28;
  --flag-blue: #21468b;
  --max-width: 1180px;
  --title-font: "Poppins", "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body-font: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  font-size: 1.02rem;
  color: var(--text);
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 10px), rgba(33, 70, 139, 0.08) calc(100% - 10px), rgba(33, 70, 139, 0.08) 100%),
    linear-gradient(180deg, rgba(174, 28, 40, 0.06) 0, rgba(174, 28, 40, 0.06) 6px, transparent 6px, transparent 100%);
}

.topbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.topbar-inner,
.page,
.footer-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.brand-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.94rem;
  color: var(--muted);
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--flag-blue);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--text);
  background: transparent;
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font: inherit;
}

.page {
  padding: 38px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  padding: 50px 0 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 52px;
  height: 2px;
  background: linear-gradient(90deg, var(--flag-red), var(--flag-blue));
  vertical-align: middle;
  margin-right: 0.8rem;
}

h1,
h2,
h3 {
  font-family: var(--title-font);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5.6rem);
  max-width: 10ch;
}

h2 {
  font-size: clamp(1.9rem, 2.8vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

.lead {
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-panel {
  border: 1px solid var(--text);
  padding: 1.4rem;
  align-self: stretch;
  background:
    linear-gradient(180deg, rgba(174, 28, 40, 0.04), rgba(174, 28, 40, 0) 35%),
    linear-gradient(180deg, #fff, #fff);
}

.hero-panel strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.7rem;
}

.hero-panel p {
  margin: 0;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--text);
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button {
  background: var(--text);
  color: #fff;
}

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

.button-secondary {
  background: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding: 24px 0 10px;
}

.stat {
  border-top: 3px solid var(--text);
  padding-top: 0.85rem;
}

.stat:nth-child(2) {
  border-color: var(--flag-red);
}

.stat:nth-child(3) {
  border-color: var(--flag-blue);
}

.stat strong {
  display: block;
  font-family: var(--title-font);
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 2rem;
}

.section-grid-wide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--line);
  padding: 1.25rem;
  background: #fff;
  border-radius: var(--radius);
}

.card.accent-red {
  border-top: 3px solid var(--flag-red);
}

.card.accent-blue {
  border-top: 3px solid var(--flag-blue);
}

.card.accent-black {
  border-top: 3px solid var(--text);
}

.callout {
  border-left: 4px solid var(--flag-red);
  padding: 0.2rem 0 0.2rem 1rem;
  max-width: 54ch;
}

.link-list {
  display: grid;
  gap: 0.75rem;
}

.link-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.link-list a span:last-child {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-section-block {
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.faq-section-block:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section-intro {
  color: var(--muted);
  max-width: 68ch;
  margin: 0 0 1.25rem;
}

.accordion-list {
  display: grid;
  gap: 0.8rem;
}

.accordion-item {
  border: 1px solid var(--line);
  background: #fff;
}

.accordion-item[open] {
  border-color: var(--text);
}

.accordion-item:nth-child(3n + 1) {
  border-top: 3px solid var(--text);
}

.accordion-item:nth-child(3n + 2) {
  border-top: 3px solid var(--flag-red);
}

.accordion-item:nth-child(3n) {
  border-top: 3px solid var(--flag-blue);
}

.accordion-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 3.3rem 1rem 1rem;
  position: relative;
  font-weight: 600;
}

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

.accordion-item summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
}

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

.accordion-answer {
  padding: 0 1rem 1rem;
  color: var(--text);
}

.accordion-answer p {
  margin: 0;
}

.faq-item {
  border-top: 2px solid var(--text);
  padding-top: 0.95rem;
}

.faq-item:nth-child(even) {
  border-color: var(--flag-blue);
}

.faq-item:nth-child(3n) {
  border-color: var(--flag-red);
}

.faq-item p {
  margin-bottom: 0;
}

.page-header {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--line);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(280px, 0.26fr);
  gap: 2rem;
  padding-top: 2rem;
}

.content-grid aside {
  border-left: 1px solid var(--line);
  padding-left: 1.4rem;
}

.inline-note {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.resource-section {
  padding: 0 0 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line);
}

.resource-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.resource-list {
  display: grid;
  gap: 0.9rem;
}

.resource-item {
  border: 1px solid var(--line);
  background: #fff;
  padding: 1rem 1rem 1.05rem;
}

.resource-item:nth-child(3n + 1) {
  border-top: 3px solid var(--text);
}

.resource-item:nth-child(3n + 2) {
  border-top: 3px solid var(--flag-red);
}

.resource-item:nth-child(3n) {
  border-top: 3px solid var(--flag-blue);
}

.resource-item h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
}

.resource-item p {
  margin: 0 0 0.7rem;
  color: var(--muted);
}

.resource-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

.resource-link:hover {
  border-color: var(--text);
}

.resource-link::after {
  content: "\2197";
  font-size: 0.95rem;
}

.footer {
  background: #fafafa;
  border-top: 1px solid var(--line);
}

.footer-inner {
  padding: 28px 0 36px;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .hero,
  .section-grid,
  .content-grid,
  .section-grid-wide {
    grid-template-columns: 1fr;
  }

  .content-grid aside {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.4rem;
  }

  .stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    align-items: flex-start;
    padding: 18px 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.75rem;
  }

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

  .page,
  .topbar-inner,
  .footer-inner {
    width: min(var(--max-width), calc(100% - 28px));
  }

  h1 {
    max-width: 12ch;
  }
}
