@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f5efe5;
  --surface: rgba(255, 252, 246, 0.9);
  --ink: #12202a;
  --ink-soft: #50626d;
  --line: rgba(18, 32, 42, 0.28); /* WCAG 1.4.11: 3:1 contrast for UI components */
  --brand: #10232f;
  --brand-soft: #234255;
  --accent: #b8551f; /* WCAG 1.4.3: darkened from #d86f3d for 4.5:1 contrast vs white */
  --accent-soft: #d86f3d; /* original for hover/decorative */
  --shadow: 0 24px 70px rgba(16, 35, 47, 0.08);
  --radius-xl: 28px;
  --radius-md: 14px;
  --max-width: 1180px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 111, 61, 0.1), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(35, 66, 85, 0.12), transparent 22%),
    linear-gradient(180deg, #f6f0e7 0%, #f1e9dc 100%);
}

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

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

p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.7rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

ul,
ol {
  margin: 0;
  padding: 0;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(245, 239, 229, 0.72);
  border-bottom: 1px solid rgba(16, 35, 47, 0.08);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
}

.brand-name,
.brand-tag {
  display: block;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-tag {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ============================================================
   PRIMARY NAVIGATION SYSTEM
   Desktop: horizontal flex with hover/focus dropdowns
   Mobile (<= 880px): slide-in overlay with accordion
   ============================================================ */

.top-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--brand);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  white-space: nowrap;
  transition: background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(216, 111, 61, 0.1);
  color: var(--accent);
}

.nav-link:focus-visible {
  background: rgba(216, 111, 61, 0.1);
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-link[aria-current="page"] {
  color: var(--accent);
  background: rgba(216, 111, 61, 0.08);
}

.nav-arrow {
  display: inline-block;
  font-size: 0.72rem;
  transition: transform 200ms ease;
  margin-top: 1px;
}

.nav-has-dropdown[data-open="true"] .nav-arrow,
.nav-has-dropdown:hover .nav-arrow,
.nav-has-dropdown:focus-within .nav-arrow {
  transform: rotate(180deg);
}

.nav-dropdown {
  list-style: none;
  margin: 0;
  padding: 0.5rem;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: rgba(255, 252, 246, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 35, 47, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(16, 35, 47, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  z-index: 50;
}

.nav-has-dropdown:hover > .nav-dropdown,
.nav-has-dropdown:focus-within > .nav-dropdown,
.nav-has-dropdown[data-open="true"] > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: 0.6rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand);
  border-radius: 10px;
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.nav-dropdown a:hover {
  background: rgba(216, 111, 61, 0.1);
  color: var(--accent);
}

.nav-dropdown a:focus-visible {
  background: rgba(216, 111, 61, 0.1);
  color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nav-dropdown a[aria-current="page"] {
  color: var(--accent);
  background: rgba(216, 111, 61, 0.08);
}

/* ============================================================
   Mobile burger toggle (hidden on desktop)
   ============================================================ */

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(16, 35, 47, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--brand);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle:hover {
  background: rgba(216, 111, 61, 0.1);
  border-color: var(--accent);
}

.nav-toggle-bars {
  display: inline-grid;
  gap: 4px;
}

.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 200ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ============================================================
   Mobile (<= 880px) — slide-in overlay menu
   ============================================================ */

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
  }

  .top-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    background: var(--brand);
    color: #fff;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(110%);
    transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
    z-index: 100;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
    display: block;
  }

  .top-nav[data-open="true"] {
    transform: translateX(0);
  }

  body.nav-locked {
    overflow: hidden;
  }

  body.nav-locked::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(8, 18, 28, 0.55);
    backdrop-filter: blur(2px);
    z-index: 90;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.95rem 0.5rem;
    color: #fff;
    font-size: 1rem;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link[aria-current="page"] {
    background: rgba(216, 111, 61, 0.18);
    color: #ffcfa8;
  }

  .nav-arrow {
    font-size: 0.85rem;
  }

  /* Accordion: dropdown collapses inline */
  .nav-dropdown {
    position: static;
    background: transparent;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 0.5rem 1rem;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 280ms ease;
  }

  .nav-has-dropdown[data-open="true"] > .nav-dropdown {
    max-height: 500px;
  }

  .nav-dropdown a {
    color: rgba(255, 255, 255, 0.85);
    padding: 0.7rem 0.6rem;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 8px;
  }

  .nav-dropdown a:hover,
  .nav-dropdown a:focus-visible,
  .nav-dropdown a[aria-current="page"] {
    background: rgba(216, 111, 61, 0.18);
    color: #ffcfa8;
  }
}

.hero-section {
  padding: 5rem 0 3rem;
}

.hero-grid,
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  font-size: 0.83rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brand-soft);
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero-lead {
  max-width: 40rem;
  margin-top: 1.45rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #bc5e2f);
  box-shadow: 0 18px 36px rgba(216, 111, 61, 0.22);
}

.button-secondary {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(16, 35, 47, 0.1);
}

.hero-notes {
  display: grid;
  gap: 0.7rem;
  margin-top: 2rem;
  list-style: none;
}

.hero-notes li {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-notes li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #f1b787);
}

.card-surface {
  overflow: hidden;
  padding: 1.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 251, 244, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-visual {
  padding: 2rem;
}

.hero-art {
  width: 100%;
  aspect-ratio: 1.15 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 8px);
  background: linear-gradient(180deg, rgba(16, 35, 47, 0.04), rgba(16, 35, 47, 0.09));
}

.signal-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.signal-panel > div {
  padding: 0.95rem;
  border-radius: var(--radius-md);
  background: rgba(16, 35, 47, 0.05);
}

.signal-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.section {
  padding: 2rem 0 4rem;
}

.section-muted {
  padding-bottom: 5rem;
}

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

.section-intro {
  max-width: 46rem;
  margin-bottom: 1.8rem;
}

.section-copy {
  margin-top: 1rem;
}

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

.stat-card {
  min-height: 100%;
}

.stat-kicker {
  display: block;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.stat-value {
  display: block;
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3vw, 3rem);
  font-family: var(--font-display);
  color: var(--brand);
}

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

.brand-card {
  display: grid;
  gap: 1rem;
  min-height: 100%;
}

.brand-card h3,
.process-card h3,
.route-card h3,
.faq-card h3 {
  font-size: 1.5rem;
}

.brand-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.brand-chip,
.brand-status,
.route-type {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-chip {
  background: rgba(216, 111, 61, 0.14);
  color: #a34d23;
}

.brand-status {
  background: rgba(16, 35, 47, 0.08);
  color: var(--brand);
}

.mini-list {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.mini-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
}

.mini-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--accent);
}

.text-link {
  font-weight: 800;
  color: var(--brand);
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.brand-actions {
  display: grid;
  gap: 0.7rem;
}

.brand-cta {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  box-shadow: 0 10px 24px rgba(216, 111, 61, 0.18);
}

.brand-meta {
  margin-top: auto;
  padding-top: 0.35rem;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.ordered-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-left: 1.35rem;
}

.ordered-list li {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.6;
}

.stack-gap {
  display: grid;
  gap: 1rem;
}

.split-grid-top {
  align-items: start;
}

.process-card {
  display: grid;
  gap: 0.8rem;
}

.process-step {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  min-height: 3rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 35, 47, 0.08);
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand);
}

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

.route-card {
  display: grid;
  gap: 0.9rem;
  min-height: 100%;
}

.route-type {
  background: rgba(16, 35, 47, 0.08);
  color: var(--brand-soft);
}

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

.icon-line {
  display: flex;
  gap: 0.9rem;
  align-items: center;
}

.icon-line img {
  width: 22px;
  height: 22px;
}

.trust-panel {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.trust-copy p:last-child {
  margin-top: 1rem;
}

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

.trust-item {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(16, 35, 47, 0.05);
}

.trust-item img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.trust-item strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.faq-shell {
  display: grid;
  gap: 1.25rem;
}

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

.faq-card {
  display: grid;
  gap: 0.8rem;
  min-height: 100%;
}

.section-final {
  padding-top: 0;
  padding-bottom: 5rem;
}

.final-cta {
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.5rem;
  align-items: center;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.breadcrumb a {
  color: var(--brand-soft);
}

.breadcrumb span[aria-current="page"] {
  color: var(--ink);
}

.page-shell {
  display: grid;
  gap: 1.2rem;
}

.page-lead-card {
  display: grid;
  gap: 1rem;
}

.page-art {
  width: 100%;
  aspect-ratio: 1.16 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 8px);
  background: rgba(16, 35, 47, 0.06);
}

.page-signal-grid {
  margin-top: 0;
}

.note-banner {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(16, 35, 47, 0.1);
  border-radius: var(--radius-md);
  background: rgba(16, 35, 47, 0.05);
}

.note-banner img {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

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

.spotlight-card {
  display: grid;
  gap: 0.95rem;
}

.spotlight-card h3 {
  font-size: 1.55rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pill-list span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(16, 35, 47, 0.07);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-soft);
}

.comparison-shell {
  display: grid;
  gap: 1rem;
}

.verification-note {
  display: grid;
  gap: 0.6rem;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(16, 35, 47, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.58);
}

.verification-note strong {
  color: var(--ink);
}

.verification-note p {
  font-size: 0.95rem;
}

.comparison-head {
  max-width: 48rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1rem;
  border-bottom: 1px solid rgba(16, 35, 47, 0.08);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-soft);
  background: rgba(16, 35, 47, 0.05);
}

.comparison-table td strong {
  color: var(--ink);
}

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

.comparison-table small {
  display: block;
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 1.25rem;
}

.support-panel {
  display: grid;
  gap: 1rem;
}

.support-list {
  display: grid;
  gap: 0.9rem;
  list-style: none;
}

.support-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 700;
}

.support-list li::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #f1b787);
}

.route-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

.route-strip .route-card {
  min-height: 0;
  padding: 1rem 0 0;
  border: 0;
  border-top: 1px solid rgba(16, 35, 47, 0.1);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.route-strip .route-card:first-child {
  padding-top: 0;
  border-top: 0;
}

.route-strip .route-type {
  min-height: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
}

.route-card h3 {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  overflow-wrap: anywhere;
}

.faq-tight .faq-grid {
  margin-top: 0.5rem;
}

.site-footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid rgba(16, 35, 47, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.7fr;
  gap: 1.5rem;
}

.footer-brand,
.footer-heading {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 800;
  color: var(--ink);
}

.footer-note {
  margin-top: 0.75rem;
  max-width: 24rem;
  font-size: 0.9rem;
}

.brand-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.spotlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.brand-card-compact {
  gap: 0.95rem;
  align-content: start;
}

.brand-card-head {
  display: grid;
  gap: 0.9rem;
}

.brand-card-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.brand-summary {
  font-size: 0.98rem;
  min-height: 4.2rem;
}

.brand-fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.brand-fact {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.82rem 0.9rem;
  border-radius: 20px;
  background: rgba(16, 35, 47, 0.05);
}

.brand-fact span {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.brand-fact strong {
  display: -webkit-box;
  margin-top: 0;
  font-size: 0.91rem;
  line-height: 1.45;
  color: var(--ink);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.casino-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.casino-logo-badge,
.casino-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--logo-start), var(--logo-end));
  box-shadow: 0 16px 30px rgba(16, 35, 47, 0.18);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.casino-logo-badge {
  display: block;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(16, 35, 47, 0.08);
}

.casino-logo-word {
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.brand-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.brand-cta {
  width: auto;
  min-width: 170px;
}

.brand-secondary-link {
  font-size: 0.92rem;
}

.comparison-table {
  table-layout: fixed;
}

.comparison-table th,
.comparison-table td {
  font-size: 0.92rem;
  line-height: 1.55;
}

.comparison-table th:last-child,
.comparison-table td:last-child {
  width: 12rem;
}

.table-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.table-brand .casino-logo {
  gap: 0.65rem;
}

.table-brand .casino-logo-word {
  font-size: 1.08rem;
}

.table-brand .casino-logo-badge,
.table-brand .casino-logo-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  border-radius: 14px;
  font-size: 0.72rem;
}

.table-state {
  display: block;
  font-weight: 800;
  color: var(--ink);
}

.table-action-cell {
  width: 12rem;
}

.table-action-cell .button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 0.95rem;
}

.table-action-cell .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font-weight: 800;
}

.quick-table-shell {
  display: grid;
  gap: 1rem;
}

.section-table-priority {
  padding-top: 1rem;
}

.longform-shell {
  display: grid;
  gap: 1.25rem;
}

.longform-card {
  display: grid;
  gap: 1rem;
}

.longform-copy {
  max-width: 58rem;
}

.longform-copy h3 {
  margin-top: 1.75rem;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
}

.longform-copy ul,
.longform-copy ol {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.longform-copy li {
  line-height: 1.72;
}

.longform-copy p + p {
  margin-top: 1rem;
}

@media (max-width: 1240px) {
  .brand-grid,
  .spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  font-weight: 700;
  color: var(--brand-soft);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.error-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.5rem;
}

.error-main {
  max-width: 42rem;
  text-align: center;
}

.error-main p {
  margin: 1rem auto 0;
  max-width: 32rem;
}

.error-mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.5rem;
}

html.js-enhanced [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms ease, transform 420ms ease;
}

html.js-enhanced [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-grid,
  .stat-grid,
  .brand-grid,
  .spotlight-grid,
  .content-grid,
  .route-strip,
  .route-grid,
  .faq-grid,
  .trust-panel,
  .final-cta,
  .section-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 1100px) {
  .comparison-table {
    display: block;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody {
    display: grid;
    gap: 0.9rem;
  }

  .comparison-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(16, 35, 47, 0.1);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.7);
  }

  .comparison-table td {
    display: block;
    min-width: 0;
    padding: 0.9rem 0.95rem;
    border: 1px solid rgba(16, 35, 47, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .comparison-table td::before {
    display: block;
    content: "";
    margin-bottom: 0.45rem;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-soft);
  }

  .comparison-table td:first-child {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .comparison-table td:first-child::before {
    display: none;
  }

  .comparison-table td:last-child {
    grid-column: 1 / -1;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .comparison-table td small {
    margin-top: 0.2rem;
  }

  .table-brand {
    padding: 0.1rem 0 0.15rem;
  }

  .table-brand .casino-logo {
    width: 100%;
    align-items: center;
  }

  .table-brand .casino-logo-word {
    font-size: 1.2rem;
  }

  .table-action-cell {
    width: auto;
  }

  .table-action-cell .button,
  .table-action-cell .text-link {
    width: 100%;
  }

  .table-action-cell .button {
    min-height: 50px;
  }

  .comparison-table-mbway td:nth-child(1)::before {
    content: "Marca";
  }

  .comparison-table-mbway td:nth-child(2)::before {
    content: "Encaixe";
  }

  .comparison-table-mbway td:nth-child(3)::before {
    content: "MB WAY";
  }

  .comparison-table-mbway td:nth-child(4)::before {
    content: "Levantamentos";
  }

  .comparison-table-mbway td:nth-child(5)::before {
    content: "Estado";
  }

  .comparison-table-mbway td:nth-child(6)::before {
    content: "Acao";
  }

  .comparison-table-withdrawal td:nth-child(1)::before {
    content: "Marca";
  }

  .comparison-table-withdrawal td:nth-child(2)::before {
    content: "Foco";
  }

  .comparison-table-withdrawal td:nth-child(3)::before {
    content: "Timing";
  }

  .comparison-table-withdrawal td:nth-child(4)::before {
    content: "KYC";
  }

  .comparison-table-withdrawal td:nth-child(5)::before {
    content: "Estado";
  }

  .comparison-table-withdrawal td:nth-child(6)::before {
    content: "Acao";
  }

  .comparison-table-deposit td:nth-child(1)::before {
    content: "Marca";
  }

  .comparison-table-deposit td:nth-child(2)::before {
    content: "Encaixe";
  }

  .comparison-table-deposit td:nth-child(3)::before {
    content: "Minimo";
  }

  .comparison-table-deposit td:nth-child(4)::before {
    content: "Taxas";
  }

  .comparison-table-deposit td:nth-child(5)::before {
    content: "Estado";
  }

  .comparison-table-deposit td:nth-child(6)::before {
    content: "Acao";
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
  }

  .header-grid,
  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  html.js-enhanced .nav-toggle {
    display: inline-flex;
  }

  html.js-enhanced .top-nav {
    display: none;
    width: 100%;
    padding-top: 0.5rem;
  }

  html.js-enhanced .top-nav.is-open {
    display: flex;
  }

  html.js-enhanced .top-nav a {
    width: 100%;
  }

  .hero-section {
    padding: 1.9rem 0 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual,
  .page-lead-card {
    display: none;
  }

  .section-table-priority {
    padding-top: 0.25rem;
    padding-bottom: 2.4rem;
  }

  .quick-table-shell .card-surface,
  .comparison-shell .card-surface {
    padding: 0.9rem;
  }

  .brand-card-top {
    align-items: flex-start;
  }

  .brand-grid,
  .spotlight-grid,
  .brand-fact-grid {
    grid-template-columns: 1fr;
  }

  .brand-fact {
    grid-template-columns: 1fr;
  }

  .comparison-table tr {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.9rem;
  }

  .comparison-table td {
    padding: 0.85rem 0.9rem;
  }

  .comparison-table td:last-child {
    padding: 0;
  }

  .comparison-table td::before {
    margin-bottom: 0.35rem;
  }

  .table-brand .casino-logo-badge,
  .table-brand .casino-logo-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
  }

  .table-brand .casino-logo-word {
    font-size: 1.12rem;
  }

  .button {
    width: 100%;
  }

  .card-surface,
  .hero-visual {
    padding: 1.25rem;
  }
}

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

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Mobile safety net: prevent any horizontal scroll
   ============================================================ */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

img, video, table, pre, code {
  max-width: 100%;
}

@media (max-width: 720px) {
  h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* ============================================================
   Mobile fixes (P0): grid containers overflow at 375px
   QA audit findings: trust-panel, final-cta, footer-grid
   ============================================================ */

@media (max-width: 720px) {
  .trust-panel,
  .final-cta,
  .footer-grid,
  .hero-grid,
  .split-grid,
  .header-grid,
  .stat-grid,
  .route-grid,
  .content-grid,
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  .trust-list {
    grid-template-columns: 1fr;
  }

  .signal-panel {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.875rem;
  }

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

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.4rem;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ============================================================
   Skip-link (WCAG 2.4.1 + a11y)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #d86f3d;
  color: #fff;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ============================================================
   Age gate badge in header (18+)
   ============================================================ */

.age-gate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a04318; /* WCAG 1.4.3: darker for 4.5:1 contrast vs white text */
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
  margin-left: 0.5rem;
  white-space: nowrap;
}

.age-gate::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-right: 0.4rem;
}

/* ============================================================
   Affiliate disclosure banner above the fold
   ============================================================ */

.disclosure-banner {
  background: rgba(216, 111, 61, 0.08);
  border-left: 4px solid #d86f3d;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #1a3a4d;
  margin: 0;
}

.disclosure-banner strong {
  color: #10232f;
}

/* ============================================================
   Visually hidden (for table captions, screen readers)
   ============================================================ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Global accessibility: focus visible (WCAG 2.4.7 AA)
   ============================================================ */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ============================================================
   Reduced-motion respect for navigation transitions
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .top-nav,
  .nav-dropdown,
  .nav-arrow,
  .nav-toggle-bars span,
  .skip-link,
  .button {
    transition: none !important;
    animation: none !important;
  }
}

