/* ============================================
   CANADIAN DENTAL ASSOCIATION — MASTER STYLESHEET
   Glassmorphism · Nordic Blue · Boxed-Centered
   ============================================ */

/* --- CSS VARIABLES --- */
:root {
  --color-primary: #1A3C5E;
  --color-secondary: #4A90B8;
  --color-accent: #FF6B35;
  --color-bg: #F0F4F8;
  --color-surface: #FFFFFF;
  --color-text: #0D1B2A;
  --color-text-light: #546A7B;

  --font-heading: Baskerville, 'Libre Baskerville', serif;
  --font-body: 'Trebuchet MS', 'Lucida Grande', sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 6px 20px rgba(0, 0, 0, 0.15);
  --shadow-container: 0 0 60px rgba(0, 0, 0, 0.08);

  --section-padding: 60px;
  --grid-gap: 20px;
  --content-max: 900px;

  --glass-bg: rgba(255, 255, 255, 0.18);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-blur: blur(20px);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #eee;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* --- TOPOGRAPHIC CONTOUR TEXTURE (on body) --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(26, 60, 94, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 60%, rgba(74, 144, 184, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(26, 60, 94, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 30% 50%, transparent 18%, rgba(26, 60, 94, 0.02) 19%, transparent 20%, transparent 38%, rgba(26, 60, 94, 0.015) 39%, transparent 40%),
    radial-gradient(circle at 65% 35%, transparent 22%, rgba(74, 144, 184, 0.02) 23%, transparent 24%, transparent 44%, rgba(74, 144, 184, 0.015) 45%, transparent 46%);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-accent);
}

ul {
  list-style: none;
}

/* --- TYPOGRAPHY SCALE (Monospace Technical) --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

/* Section label heading — all-caps-with-rule */
h2 {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-body);
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
}

/* Descriptive heading below h2 labels */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--color-text);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.1rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  font-weight: 600;
  color: var(--color-text);
}

.caption,
.label-text {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

blockquote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-primary);
  padding: 1.5rem 0 1.5rem 2rem;
  position: relative;
  margin: 2rem 0;
  /* Horizontal rule rhythm — multiple left borders */
  box-shadow:
    4px 0 0 0 var(--color-accent) inset,
    8px 0 0 0 transparent inset,
    12px 0 0 0 var(--color-secondary) inset,
    16px 0 0 0 transparent inset,
    20px 0 0 0 rgba(26, 60, 94, 0.2) inset;
  padding-left: 2.5rem;
}

/* --- HORIZONTAL RULE RHYTHM MOTIF --- */
.hr-motif {
  display: block;
  width: 80px;
  max-width: 80px;
  height: 18px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-primary) 0px,
    var(--color-primary) 2px,
    transparent 2px,
    transparent 4px,
    var(--color-secondary) 4px,
    var(--color-secondary) 5px,
    transparent 5px,
    transparent 8px,
    rgba(26, 60, 94, 0.3) 8px,
    rgba(26, 60, 94, 0.3) 9px,
    transparent 9px,
    transparent 18px
  );
  margin-bottom: 1.5rem;
}

/* --- PAGE TRANSITION CURTAIN --- */
.page-curtain {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-primary);
  z-index: 10000;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  pointer-events: none;
}

.page-curtain.is-covering {
  transform: translateY(0%);
}

.page-curtain.is-revealing {
  transform: translateY(0%);
  animation: curtainReveal 0.4s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}

@keyframes curtainReveal {
  to {
    transform: translateY(-100%);
  }
}

/* --- SIDE DRAWER NAVIGATION --- */
.side-bar {
  width: 60px;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: var(--color-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.5rem;
  z-index: 1000;
  backdrop-filter: var(--glass-blur);
}

.side-bar .logo-mark {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: center;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s ease;
}

.hamburger-btn.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.is-active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-drawer {
  position: fixed;
  top: 0;
  left: 60px;
  width: 300px;
  height: 100vh;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid var(--glass-border);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(-360px);
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 999;
  padding-top: 2rem;
  overflow-y: auto;
}

.nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 27, 42, 0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.nav-drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.nav-drawer .drawer-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  margin-bottom: 0.5rem;
}

.nav-drawer .drawer-header .drawer-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: none;
  letter-spacing: 0;
  display: block;
}

.nav-drawer .drawer-header .drawer-title::after {
  display: none;
}

.nav-link {
  display: block;
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  font-family: var(--font-body);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: rgba(26, 60, 94, 0.05);
  padding-left: 2rem;
}

.nav-link.active {
  font-weight: 700;
  border-left: 3px solid var(--color-primary);
}

/* --- BOXED CONTAINER --- */
.site-container {
  max-width: 1200px;
  margin: 1.5rem auto 1.5rem 80px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-container);
  background: var(--color-bg);
  position: relative;
  z-index: 1;
}

/* Glassmorphism gradient backdrop inside container */
.site-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 10% 20%, rgba(74, 144, 184, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(26, 60, 94, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 107, 53, 0.08) 0%, transparent 40%);
}

/* --- HERO (Editorial Masthead) --- */
.hero {
  padding: 4rem 4rem 5rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse at center, rgba(240, 244, 248, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.hero .hr-motif {
  margin: 0 auto 1.5rem;
}

.hero-rule-top {
  width: 100%;
  max-width: 600px;
  height: 1px;
  background: var(--color-primary);
  margin: 0 auto 2rem;
  opacity: 0.3;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 7rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 0.95;
  margin-bottom: 1.5rem;
}

.hero-rule {
  width: 200px;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--color-primary), transparent);
  margin: 0 auto 1.5rem;
}

.hero-tagline {
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  color: var(--color-text-light);
  font-family: var(--font-body);
  margin-bottom: 2rem;
}

.hero-cta-link {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.hero-cta-link:hover {
  color: var(--color-accent);
  gap: 1rem;
}

.hero-cta-link .arrow {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.hero-cta-link:hover .arrow {
  transform: translateX(4px);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  animation: scrollBounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, var(--color-primary), transparent);
}

.scroll-indicator .chevron {
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--color-accent);
  border-bottom: 1.5px solid var(--color-accent);
  transform: rotate(45deg);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Inner page hero (compact) --- */
.hero--inner {
  min-height: 40vh;
  padding: 4rem 4rem;
  background:
    radial-gradient(ellipse at center, rgba(240, 244, 248, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero--inner h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.hero--inner .hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Hero with gradient art overlay */
.hero--overlay {
  min-height: 50vh;
  background:
    linear-gradient(135deg, rgba(26, 60, 94, 0.85) 0%, rgba(74, 144, 184, 0.75) 100%);
  color: #fff;
}

.hero--overlay h1,
.hero--overlay .hero-subtitle,
.hero--overlay p {
  color: #fff;
}

.hero--overlay .hero-subtitle {
  opacity: 0.9;
}

/* --- SECTIONS --- */
.section {
  padding: var(--section-padding) 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.section--white {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
}

.section--tinted {
  background: rgba(240, 244, 248, 0.6);
  backdrop-filter: blur(10px);
}

.section--dark {
  background: rgba(26, 60, 94, 0.92);
  backdrop-filter: blur(20px);
  color: #fff;
}

.section--dark h2 {
  color: rgba(255, 255, 255, 0.9);
}

.section--dark h2::after {
  background: rgba(255, 255, 255, 0.15);
}

.section--dark .section-title,
.section--dark h3,
.section--dark p,
.section--dark .caption {
  color: #fff;
}

.section--dark .caption {
  color: rgba(255, 255, 255, 0.7);
}

.section-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* Zigzag-triangle section dividers */
.section--divider {
  position: relative;
}

.section--divider::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 2;
}

.section--white.section--divider::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, rgba(255, 255, 255, 0.7) 33.33%, transparent 33.33%) 0 0;
  background-size: 30px 30px;
  background-repeat: repeat-x;
}

.section--tinted.section--divider::after {
  background:
    linear-gradient(135deg, rgba(240, 244, 248, 0.6) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, rgba(240, 244, 248, 0.6) 33.33%, transparent 33.33%) 0 0;
  background-size: 30px 30px;
  background-repeat: repeat-x;
}

.section--dark.section--divider::after {
  background:
    linear-gradient(135deg, rgba(26, 60, 94, 0.92) 33.33%, transparent 33.33%) 0 0,
    linear-gradient(225deg, rgba(26, 60, 94, 0.92) 33.33%, transparent 33.33%) 0 0;
  background-size: 30px 30px;
  background-repeat: repeat-x;
}

.section--after-divider {
  padding-top: calc(var(--section-padding) + 30px);
}

/* --- CONCENTRIC RINGS DECORATION --- */
.rings-decoration {
  position: relative;
}

.rings-decoration::before {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-accent);
  top: 20%;
  right: -80px;
  z-index: 0;
  box-shadow:
    0 0 0 40px transparent,
    0 0 0 42px rgba(255, 107, 53, 0.05),
    0 0 0 80px transparent,
    0 0 0 82px rgba(255, 107, 53, 0.05),
    0 0 0 120px transparent,
    0 0 0 122px rgba(255, 107, 53, 0.04),
    0 0 0 160px transparent,
    0 0 0 162px rgba(255, 107, 53, 0.03);
}

/* --- CARDS (Glass + Dashed Outline) --- */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px dashed var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all 0.35s ease;
  position: relative;
}

.card:hover {
  background: rgba(255, 255, 255, 0.55);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Multi-line top border effect (horizontal rule rhythm) */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 2rem;
  right: 2rem;
  height: 6px;
  background: repeating-linear-gradient(
    to bottom,
    var(--color-primary) 0px,
    var(--color-primary) 1px,
    transparent 1px,
    transparent 2px,
    var(--color-secondary) 2px,
    var(--color-secondary) 3px,
    transparent 3px,
    transparent 6px
  );
  border-radius: 0 0 2px 2px;
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.12);
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.card--center {
  text-align: center;
}

/* --- GRID LAYOUTS --- */
.grid {
  display: grid;
  gap: var(--grid-gap);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* --- BUTTONS (Chunky) --- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
  transform: translateY(-3px);
}

/* --- STATS (Big Number Cards) --- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--grid-gap);
  text-align: center;
}

.stat-card {
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.section--dark .stat-number {
  color: var(--color-accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

.section--white .stat-label,
.section--tinted .stat-label {
  color: var(--color-text-light);
}

/* --- TESTIMONIALS (Side-by-Side with Avatar) --- */
.testimonial {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--grid-gap);
  transition: all 0.3s ease;
}

.testimonial:hover {
  background: rgba(255, 255, 255, 0.35);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-avatar--accent {
  background: linear-gradient(135deg, var(--color-accent), #ff8f65);
}

.testimonial-avatar--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.testimonial-avatar--secondary {
  background: linear-gradient(135deg, var(--color-secondary), #7ab8d4);
}

.testimonial-content {
  flex: 1;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.testimonial-author {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* Full-width testimonial (homepage) */
.testimonial--featured {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  display: block;
  border: none;
  background: transparent;
  backdrop-filter: none;
}

.testimonial--featured .testimonial-quote {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--color-primary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.testimonial--featured .testimonial-quote::before {
  content: '"';
  font-size: 3rem;
  color: var(--color-accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.testimonial--featured .testimonial-author {
  font-size: 0.85rem;
}

/* --- COMPARISON TABLE --- */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: var(--radius-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
}

.comparison-table thead th {
  padding: 1.5rem 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
  border-bottom: 2px solid rgba(26, 60, 94, 0.15);
  text-align: center;
  vertical-align: bottom;
}

.comparison-table thead th:first-child {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table thead th.highlighted {
  background: rgba(26, 60, 94, 0.08);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  position: relative;
}

.comparison-table thead th.highlighted .recommended-badge {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
}

.comparison-table tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  color: var(--color-text);
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
}

.comparison-table tbody td.highlighted {
  background: rgba(26, 60, 94, 0.04);
}

.comparison-table .check {
  color: var(--color-secondary);
  font-size: 1.1rem;
  font-weight: 700;
}

.comparison-table .dash {
  color: rgba(0, 0, 0, 0.2);
  font-size: 1.1rem;
}

/* --- ACCORDION FAQ --- */
.accordion-item {
  border: 2px dashed rgba(26, 60, 94, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition: all 0.3s ease;
}

.accordion-item.is-active {
  border-color: var(--color-primary);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  transition: all 0.3s ease;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  position: relative;
  flex-shrink: 0;
  margin-left: 1rem;
}

.accordion-icon::before,
.accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--color-primary);
  transition: transform 0.3s ease;
}

.accordion-icon::before {
  width: 14px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-icon::after {
  width: 2px;
  height: 14px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.accordion-item.is-active .accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body-inner {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* --- TABBED CONTENT --- */
.tabs {
  margin: 2rem 0;
}

.tab-bar {
  display: flex;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  gap: 0;
}

.tab-btn {
  padding: 1rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--color-primary);
}

.tab-btn.is-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 700;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- DARK CONTRAST FORM --- */
.form-dark {
  background: var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  color: #fff;
}

.form-dark label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.5rem;
}

.form-dark input,
.form-dark select,
.form-dark textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.form-dark input:focus,
.form-dark select:focus,
.form-dark textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

.form-dark textarea {
  min-height: 120px;
  resize: vertical;
}

.form-dark select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23546A7B' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
}

.form-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* --- GRADIENT ART BLOCK (Image Placeholders) --- */
.art-block {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.art-block--4-3 {
  aspect-ratio: 4 / 3;
}

.art-block--1-1 {
  aspect-ratio: 1 / 1;
}

.art-block--a {
  background: linear-gradient(135deg, #1A3C5E 0%, #4A90B8 40%, #7ab8d4 70%, #FF6B35 100%);
}

.art-block--b {
  background: radial-gradient(ellipse at 30% 50%, #4A90B8 0%, #1A3C5E 60%, #0D1B2A 100%);
}

.art-block--c {
  background: linear-gradient(225deg, #FF6B35 0%, #ff8f65 25%, #4A90B8 60%, #1A3C5E 100%);
}

.art-block--d {
  background: radial-gradient(circle at 70% 30%, #7ab8d4 0%, #4A90B8 35%, #1A3C5E 70%, #0D1B2A 100%);
}

.art-block--e {
  background: linear-gradient(160deg, #0D1B2A 0%, #1A3C5E 30%, #4A90B8 60%, #F0F4F8 100%);
}

.art-block--f {
  background: linear-gradient(45deg, #1A3C5E 0%, #FF6B35 50%, #4A90B8 100%);
}

.art-block--g {
  background: radial-gradient(ellipse at 20% 80%, #FF6B35 0%, #1A3C5E 50%, #4A90B8 100%);
}

/* Avatar-sized art blocks */
.art-block--avatar {
  width: 70px;
  height: 70px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  flex-shrink: 0;
}

/* --- PULL QUOTE --- */
.pull-quote {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid rgba(26, 60, 94, 0.15);
  border-bottom: 1px solid rgba(26, 60, 94, 0.15);
  line-height: 1.5;
}

/* --- CASE STUDY CARDS --- */
.case-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.35s ease;
}

.case-card:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.case-card .art-block {
  border-radius: 0;
}

.case-card-body {
  padding: 1.5rem;
}

.case-card-body h3 {
  margin-bottom: 0.5rem;
}

.case-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.case-stat {
  display: inline-block;
  background: rgba(26, 60, 94, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: 0.75rem;
  letter-spacing: 0.02em;
}

/* --- PROCESS WALKTHROUGH --- */
.process-steps {
  margin: 2rem 0;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.process-step-number {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: rgba(26, 60, 94, 0.1);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
}

.process-step-content h3 {
  margin-bottom: 0.25rem;
}

.process-step-content p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* --- LETTER FORMAT (About page) --- */
.letter-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.letter-content p {
  margin-bottom: 1.5rem;
}

.founder-signature {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.founder-signature .signature-name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.founder-signature .signature-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}

/* --- TEAM CARDS --- */
.team-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 2px dashed rgba(26, 60, 94, 0.2);
  border-radius: var(--radius-md);
  transition: all 0.35s ease;
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.team-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}

.team-card .team-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  margin-bottom: 0.5rem;
  display: block;
}

.team-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

/* --- CONTACT INFO DISPLAY --- */
.contact-info-large {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.contact-detail .icon-circle {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(26, 60, 94, 0.08);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  color: var(--color-primary);
}

/* --- DISCLOSURES SECTION --- */
.disclosures {
  padding: 2.5rem 4rem;
  background: rgba(240, 244, 248, 0.8);
  backdrop-filter: blur(10px);
  border-top: 2px solid rgba(26, 60, 94, 0.1);
  position: relative;
  z-index: 1;
}

.disclosures h2 {
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.disclosures-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.disclosures p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.disclosures .disclosure-item {
  padding-left: 1rem;
  border-left: 2px solid rgba(26, 60, 94, 0.15);
  margin-bottom: 0.75rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--color-primary);
  color: #fff;
  padding: 4rem 3rem 2rem;
  position: relative;
  z-index: 1;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* Footer fading horizontal lines (rhythm motif) */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 3rem;
  right: 3rem;
  height: 12px;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.2) 0px,
    rgba(255, 255, 255, 0.2) 1px,
    transparent 1px,
    transparent 3px,
    rgba(255, 255, 255, 0.1) 3px,
    rgba(255, 255, 255, 0.1) 4px,
    transparent 4px,
    transparent 7px,
    rgba(255, 255, 255, 0.05) 7px,
    rgba(255, 255, 255, 0.05) 8px,
    transparent 8px,
    transparent 12px
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-col-heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  opacity: 0.9;
  font-family: var(--font-mono);
  color: #fff;
}

.footer-about-text {
  font-size: 0.9rem;
  opacity: 0.75;
  line-height: 1.7;
  color: #fff;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  line-height: 2;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.75;
  color: #fff;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
  color: #fff;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  opacity: 0.75;
  color: #fff;
}

.footer-contact-line .icon {
  opacity: 0.7;
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
  text-align: center;
  color: #fff;
}

/* --- BACK TO TOP BUTTON --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 900;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

/* --- FLOATING MOBILE CTA --- */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 0.85rem 1.5rem;
  z-index: 950;
  text-align: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.floating-cta a {
  color: #fff;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.floating-cta a:hover {
  color: var(--color-accent);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  color: #fff;
  max-width: 500px;
}

.cookie-banner .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
}

.cookie-btn-group {
  display: flex;
  gap: 0.75rem;
}

/* --- ANIMATIONS --- */

/* Fade up on scroll */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger reveal */
.stagger-container .stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-container.revealed .stagger-item:nth-child(1) { transition-delay: 0s; }
.stagger-container.revealed .stagger-item:nth-child(2) { transition-delay: 0.08s; }
.stagger-container.revealed .stagger-item:nth-child(3) { transition-delay: 0.16s; }
.stagger-container.revealed .stagger-item:nth-child(4) { transition-delay: 0.24s; }
.stagger-container.revealed .stagger-item:nth-child(5) { transition-delay: 0.32s; }
.stagger-container.revealed .stagger-item:nth-child(6) { transition-delay: 0.4s; }
.stagger-container.revealed .stagger-item:nth-child(7) { transition-delay: 0.48s; }
.stagger-container.revealed .stagger-item:nth-child(8) { transition-delay: 0.56s; }
.stagger-container.revealed .stagger-item:nth-child(9) { transition-delay: 0.64s; }
.stagger-container.revealed .stagger-item:nth-child(10) { transition-delay: 0.72s; }

.stagger-container.revealed .stagger-item {
  opacity: 1;
  transform: translateY(0);
}

/* --- PRIVACY & TERMS PAGE STYLES --- */
.legal-content {
  max-width: var(--content-max);
  margin: 0 auto;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.legal-content .qa-question {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content .qa-answer {
  color: var(--color-text-light);
  font-size: 0.95rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(26, 60, 94, 0.1);
}

.legal-content ol,
.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content ol li {
  margin-bottom: 0.5rem;
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

/* Numbered sections for terms */
.terms-section {
  margin-top: 2rem;
}

.terms-section h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.terms-section .subsection {
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* --- CTA SECTION --- */
.cta-section {
  text-align: center;
  padding: var(--section-padding) 4rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--color-text);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .btn {
  margin-top: 0.5rem;
}

/* --- UTILITY CLASSES --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* --- RESPONSIVE --- */

/* Large screens — center the container better with side bar */
@media (min-width: 1400px) {
  .site-container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
  }

  body {
    padding-left: 60px;
  }
}

/* Standard desktop */
@media (min-width: 769px) and (max-width: 1399px) {
  .site-container {
    margin-left: 80px;
    margin-right: 1.5rem;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .section {
    padding: var(--section-padding) 2.5rem;
  }

  .hero {
    padding: 3rem 2.5rem 4rem;
  }

  .hero--inner {
    padding: 3rem 2.5rem;
  }

  .disclosures {
    padding: 2rem 2.5rem;
  }

  .footer {
    padding: 3rem 2.5rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table thead th,
  .comparison-table tbody td {
    padding: 0.65rem 0.5rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hide side bar, show floating hamburger */
  .side-bar {
    width: auto;
    height: auto;
    position: fixed;
    top: 1rem;
    left: 1rem;
    border-radius: 50%;
    padding: 0;
    z-index: 1000;
    background: var(--color-primary);
    box-shadow: var(--shadow-md);
  }

  .side-bar .logo-mark {
    display: none;
  }

  .side-bar .hamburger-btn {
    padding: 14px;
  }

  .nav-drawer {
    left: 0;
    width: 280px;
    transform: translateX(-280px);
  }

  .site-container {
    margin: 0.75rem;
    border-radius: var(--radius-lg);
  }

  .hero {
    padding: 3rem 1.5rem 3.5rem;
    min-height: 50vh;
  }

  .hero--inner {
    min-height: 35vh;
    padding: 3rem 1.5rem;
  }

  .hero-name {
    font-size: clamp(2rem, 10vw, 4rem);
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .disclosures {
    padding: 2rem 1.5rem;
  }

  .footer {
    padding: 2.5rem 1.5rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .testimonial {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-card {
    flex-direction: column;
  }

  .tab-bar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    padding: 0.85rem 1rem;
    font-size: 0.75rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-dark {
    padding: 1.5rem;
  }

  .floating-cta {
    display: block;
  }

  /* Shift back-to-top above floating CTA */
  .back-to-top {
    bottom: 4.5rem;
  }

  .cookie-banner {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    padding-bottom: 4rem; /* space for floating CTA */
  }

  .process-step {
    flex-direction: column;
    gap: 0.75rem;
  }

  .comparison-table-wrapper {
    margin: 1rem -1rem;
    border-radius: 0;
  }

  h2 {
    font-size: 0.75rem;
  }

  blockquote {
    font-size: 1.1rem;
    padding-left: 2rem;
    box-shadow:
      4px 0 0 0 var(--color-accent) inset,
      12px 0 0 0 transparent inset,
      16px 0 0 0 var(--color-secondary) inset;
  }
}

/* Ensure text contrast on all surfaces */
.section--dark p,
.section--dark h2,
.section--dark h3,
.section--dark a,
.section--dark .section-title,
.section--dark .caption,
.section--dark li {
  color: #fff;
}

.section--dark a:hover {
  color: var(--color-accent);
}

.section--dark h2::after {
  background: rgba(255, 255, 255, 0.2);
}