/* ==========================================================================
   Adult IPTV Subscription — Core Design System & Responsive Stylesheet
   Palette: Deep Navy (#0B192C), Sky Blue (#0EA5E9 / #0284C7), White, Slate
   ========================================================================== */

:root {
  --navy-950: #07111e;
  --navy-900: #0b192c;
  --navy-800: #13294b;
  --navy-700: #1e3a5f;
  --sky-600: #0284c7;
  --sky-500: #0ea5e9;
  --sky-400: #38bdf8;
  --sky-100: #e0f2fe;
  --sky-50: #f0f9ff;
  --white: #ffffff;
  --canvas-alt: #f8fafc;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text-strong: #0f172a;
  --text-body: #334155;
  --text-muted: #475569;
  --text-on-dark: #f8fafc;
  --text-on-dark-muted: #cbd5e1;
  --success: #047857;
  --success-bg: #ecfdf5;
  --warning-bg: #fffbeb;
  --warning-text: #92400e;
  --error: #b91c1c;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 25, 44, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 25, 44, 0.08);
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container-max: 1180px;
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--white);
  overflow-x: hidden;
}

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

a {
  color: var(--sky-600);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

a:hover {
  color: var(--navy-900);
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.125rem);
  font-weight: 700;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  max-width: 72ch;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.45rem;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--navy-900);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Header / Top Bar Contract (3 zones, single row)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

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

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.075rem;
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.brand-mark:hover {
  color: var(--sky-600);
}

.primary-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

.primary-nav a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.925rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.primary-nav a:hover,
.primary-nav a[aria-current='page'] {
  color: var(--navy-900);
  border-bottom-color: var(--sky-500);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-primary {
  background-color: var(--sky-500);
  color: var(--navy-950);
}

.btn-primary:hover {
  background-color: var(--sky-400);
  color: var(--navy-950);
}

.btn-navy {
  background-color: var(--navy-900);
  color: var(--white);
}

.btn-navy:hover {
  background-color: var(--navy-800);
  color: var(--white);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-dark {
  background-color: var(--white);
  color: var(--navy-900);
  border-color: var(--border-strong);
}

.btn-outline-dark:hover {
  background-color: var(--surface-muted);
  color: var(--navy-900);
}

.header-cta {
  display: none;
  min-height: 40px;
  padding: 0.6rem 1.05rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-900);
  cursor: pointer;
}

.nav-toggle:hover {
  background: var(--surface-muted);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.mobile-drawer a:hover,
.mobile-drawer a[aria-current='page'] {
  background: var(--sky-50);
  color: var(--sky-600);
}

.mobile-drawer .mobile-cta {
  margin-top: 0.75rem;
  width: 100%;
  justify-content: center;
  background-color: var(--navy-900);
  color: var(--white);
}

@media (min-width: 960px) {
  .primary-nav {
    display: flex;
  }
  .header-cta {
    display: inline-flex;
  }
  .nav-toggle,
  .mobile-drawer {
    display: none !important;
  }
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--sky-400);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs span[aria-hidden='true'] {
  color: rgba(203, 213, 225, 0.55);
}

/* ==========================================================================
   Hero Sections
   ========================================================================== */
.hero {
  background-color: var(--navy-950);
  background-image: radial-gradient(circle at 82% 18%, rgba(14, 165, 233, 0.18), transparent 46%),
    linear-gradient(115deg, rgba(7, 17, 30, 0.9) 0%, rgba(11, 25, 44, 0.78) 55%, rgba(7, 17, 30, 0.9) 100%),
    url('../images/adult-iptv-hero-backdrop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--text-on-dark);
  padding: 3.25rem 0 3.75rem;
}

.hero--compact {
  padding: 2.75rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .hero {
    padding: 4rem 0 4.5rem;
  }
  .hero--compact {
    padding: 3rem 0 3.25rem;
  }
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-kicker {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sky-400);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.075rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.75rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero-meta {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy-800);
  min-height: 240px;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Dynamic Multi-Connection Pricing Section (Directly After Hero on ALL Pages)
   ========================================================================== */
.pricing-section {
  background-color: var(--canvas-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}

.pricing-section--compact {
  padding: 2.75rem 0;
}

.pricing-header {
  max-width: 720px;
  margin-bottom: 2rem;
}

.pricing-header p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.rating-line {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-size: 0.885rem;
  color: var(--text-body);
}

.rating-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
  color: #d97706;
}

.rating-score {
  font-weight: 700;
  color: var(--navy-900);
}

.pricing-controls {
  margin-bottom: 2rem;
  max-width: 720px;
}

.control-group-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.connection-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  background: var(--white);
  padding: 0.375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

@media (min-width: 640px) {
  .connection-selector {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.conn-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.15rem;
  min-height: 52px;
  padding: 0.55rem 0.75rem;
  border-radius: 7px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-body);
  font-family: var(--font-display);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.conn-btn:hover {
  background: var(--surface-muted);
  color: var(--navy-900);
}

.conn-btn[aria-pressed='true'] {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.conn-btn-title {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.conn-btn-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.conn-btn[aria-pressed='true'] .conn-btn-sub {
  color: var(--sky-400);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.pricing-card--recommended {
  border: 2px solid var(--sky-500);
  box-shadow: var(--shadow-md);
}

.plan-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-recommended-label {
  color: var(--sky-600);
  font-weight: 700;
}

.plan-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.75rem;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan-currency {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-per-conn {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.plan-savings {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--success);
  min-height: 1.35rem;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.plan-savings--neutral {
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  padding: 1rem 0 0;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-body);
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 0.45rem;
}

.plan-cta {
  width: 100%;
  justify-content: center;
}

.pricing-summary-bar {
  margin-top: 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .pricing-summary-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.summary-details {
  font-size: 0.925rem;
  color: var(--text-body);
}

.summary-details strong {
  color: var(--navy-900);
}

/* ==========================================================================
   Content Sections, Editorial Grids, Tables & Visual Slots
   ========================================================================== */
.section {
  padding: 4.25rem 0;
}

.section--alt {
  background-color: var(--canvas-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--navy {
  background-color: var(--navy-900);
  color: var(--text-on-dark);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section--navy p {
  color: var(--text-on-dark-muted);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.25rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.025rem;
}

.section--navy .section-header p {
  color: var(--text-on-dark-muted);
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .split-grid--reverse .split-visual {
    order: -1;
  }
}

.visual-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-muted);
}

.visual-frame figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  background: var(--white);
  border-top: 1px solid var(--border);
}

.card-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.card-grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

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

@media (min-width: 900px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-span-2 {
    grid-column: span 2;
  }
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.info-card--navy {
  background: var(--navy-800);
  border-color: var(--navy-700);
  color: var(--text-on-dark);
}

.info-card--navy h3 {
  color: var(--white);
}

.info-card--navy p {
  color: var(--text-on-dark-muted);
}

.card-index {
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--sky-600);
  margin-bottom: 0.5rem;
  display: block;
}

.info-card--navy .card-index {
  color: var(--sky-400);
}

.steps-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 768px) {
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .steps-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sky-600);
  margin-bottom: 0.5rem;
  display: block;
}

/* ==========================================================================
   Tables
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.925rem;
}

th,
td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy-900);
  background: var(--canvas-alt);
}

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

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 840px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.025rem;
  font-weight: 600;
  color: var(--navy-900);
  cursor: pointer;
  min-height: 48px;
}

.faq-trigger:hover {
  background: var(--canvas-alt);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--sky-600);
  transition: transform var(--transition);
}

.faq-trigger[aria-expanded='true'] .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-body);
  font-size: 0.96rem;
}

.faq-panel[hidden] {
  display: none;
}

/* ==========================================================================
   Internal Linking / Related Guides Grid
   ========================================================================== */
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

@media (min-width: 1024px) {
  .related-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.related-card:hover {
  border-color: var(--sky-500);
  transform: translateY(-2px);
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.related-card-desc {
  font-size: 0.885rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.related-card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sky-600);
}

/* ==========================================================================
   Final CTA & Footer
   ========================================================================== */
.final-cta {
  background-color: var(--navy-900);
  background-image: linear-gradient(125deg, rgba(7, 17, 30, 0.92) 0%, rgba(19, 41, 75, 0.84) 100%),
    url('../images/adult-iptv-hero-backdrop.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--white);
  padding: 4rem 0;
}

.final-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 900px) {
  .final-cta-inner {
    flex-direction: row;
    align-items: center;
  }
}

.final-cta h2 {
  color: var(--white);
  margin-bottom: 0.6rem;
}

.final-cta p {
  color: var(--text-on-dark-muted);
  margin-bottom: 0;
  max-width: 58ch;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex-shrink: 0;
}

.site-footer {
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--navy-800);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.65rem;
  display: block;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--sky-400);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Prose / Legal / Form Styles
   ========================================================================== */
.prose-article {
  max-width: 820px;
}

.prose-article h2 {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.prose-article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.notice-box {
  background: var(--sky-50);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 1.125rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--navy-900);
  font-size: 0.94rem;
}

.notice-box--warning {
  background: var(--warning-bg);
  border-color: #fde68a;
  color: var(--warning-text);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.125rem;
}

@media (min-width: 640px) {
  .form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.form-field label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 0.4rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text-strong);
  background: var(--white);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  min-height: 44px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--sky-500);
  border-color: var(--sky-500);
}

.form-status {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
  border: 1px solid var(--border);
  background: var(--canvas-alt);
}

.form-status[hidden] {
  display: none;
}

.form-status--success {
  background: var(--success-bg);
  border-color: #a7f3d0;
  color: var(--success);
}

.form-status--error {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--error);
}

.code-block {
  background: var(--navy-950);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 1.55;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
