/* ==========================================================================
   EDTECH PLATFORM LANDING PAGE - VANILLA STYLES
   ========================================================================== */

/* Self-hosted fonts. The page used to pull these from fonts.googleapis.com,
   which is unreliable in Nigeria: when that request failed the page
   silently fell back to a system geometric sans and the brand voice
   changed. The same two families are served from the app itself, so the
   landing page vendors them too. */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300..700;
  font-display: swap;
  src: url('/landing/fonts/fredoka-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 300..700;
  font-display: swap;
  src: url('/landing/fonts/fredoka-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200..1000;
  font-display: swap;
  src: url('/landing/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200..1000;
  font-display: swap;
  src: url('/landing/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --brand-blue: #2563EB;
  --brand-blue-hover: #1D4ED8;
  --brand-blue-dark: #1E40AF;
  --brand-blue-tint: rgba(37, 99, 235, 0.08);
  --brand-blue-light: #EFF6FF;
  
  --font-heading: 'Fredoka', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Nunito', sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  --color-text-main: #1E293B;
  --color-text-muted: #475569;
  --color-border-subtle: rgba(15, 23, 42, 0.08);
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-body);
  color: var(--color-text-main);
  background-color: #FAF8F5;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.65;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 3px;
}

/* Typography Hierarchy */
h1, h2, h3 {
  font-family: var(--font-heading);
  color: #0F172A;
  font-weight: 700;
  line-height: 1.2;
}

.section-heading {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.text-center {
  text-align: center;
}

/* Section Containers */
.section {
  position: relative;
  width: 100%;
}

.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* SVG Wave Dividers */
.wave-divider {
  width: 100%;
  height: clamp(35px, 5vw, 65px);
  line-height: 0;
  overflow: hidden;
  display: block;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #FAF8F5;
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 300ms var(--ease-standard);
}

.navbar.is-scrolled {
  border-bottom-color: rgba(15, 23, 42, 0.08);
}

.navbar-container {
  max-width: 1280px;
  margin: 0 auto;
  height: 72px;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0F172A;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  background-image: linear-gradient(var(--brand-blue), var(--brand-blue));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: left bottom;
  transition: background-size 300ms var(--ease-standard), color 200ms;
}

.nav-link:hover {
  color: var(--brand-blue);
  background-size: 100% 2px;
}

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

.nav-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  background-color: var(--brand-blue);
  text-decoration: none;
  padding: 0.65rem 1.45rem;
  border-radius: 999px;
  transition: background-color 200ms var(--ease-standard), transform 150ms;
}

.nav-button:hover {
  background-color: var(--brand-blue-hover);
}

.nav-button:active {
  transform: scale(0.97);
}

/* Mobile Hamburger & Panel */
.nav-hamburger {
  display: none;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
}

.hamburger-svg {
  display: block;
}

.h-line {
  transition: transform 300ms var(--ease-standard), stroke 200ms;
  transform-origin: center;
}

.nav-hamburger[aria-expanded="true"] .h-line-1 {
  transform: translateY(4px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] .h-line-2 {
  transform: translateY(-4px) rotate(-45deg);
}

.nav-mobile-panel {
  display: none;
  width: 100%;
  background-color: #FAF8F5;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 1.25rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
}

.nav-mobile-panel.is-open {
  display: block;
}

.nav-mobile-menu {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.nav-mobile-link {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1E293B;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms var(--ease-standard), transform 300ms var(--ease-standard);
  transition-delay: calc(var(--m-idx, 0) * 60ms);
}

.nav-mobile-panel.is-open .nav-mobile-link,
.nav-mobile-panel.is-open .nav-mobile-btn {
  opacity: 1;
  transform: translateY(0);
}

.nav-mobile-btn {
  display: inline-block;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  background-color: var(--brand-blue);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 300ms var(--ease-standard), transform 300ms var(--ease-standard);
  transition-delay: calc(var(--m-idx, 0) * 60ms);
}

@media (max-width: 768px) {
  .nav-links, .nav-action {
    display: none;
  }
  .nav-hamburger {
    display: block;
  }
}

/* ==========================================================================
   SECTION 1: HERO (Continuous Ground Plane & 3 Depth Layers)
   ========================================================================== */
.section-hero {
  background-color: #FAF8F5;
  padding-top: clamp(5.25rem, 8vw, 6.75rem);
  padding-bottom: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
}

.hero-header-wrap {
  text-align: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem);
  z-index: 15;
}

.hero-headline {
  font-size: clamp(2.5rem, 5.8vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  display: inline-block;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

/* Word-by-word reveal (default visible so content is always displayed immediately) */
.hero-word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard);
  margin-right: 0.28em;
}

.hero-word.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Field wrapper with continuous ground plane */
.hero-field-wrapper {
  position: relative;
  width: 100%;
  margin-top: 0.25rem; /* No empty gap */
  overflow: hidden;
}

/* Hero Banner Container & Student Art */
.hero-banner-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  display: flex;
  justify-content: center;
}

.hero-students-banner-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
}

/* Map Showcase Artwork */
.map-showcase-wrap {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.4) 0%, rgba(255, 255, 255, 0.9) 100%);
  padding: 1rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 20px 40px -24px rgba(37, 99, 235, 0.14);
}

.map-students-artwork {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* The map is a floating object seen from below, so it is tilted and
   lifted off the page. */
.map-floating-element {
  width: 100%;
  transform: rotateX(24deg); /* 3D low-angle tilt */
  transform-origin: center bottom;
  position: relative;
  filter: drop-shadow(0 20px 24px rgba(15, 23, 42, 0.12));
}

#nigeria-map-svg {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

/* State names sit on the shapes themselves. The white halo keeps them
   readable on top of every state colour. */
.state-label {
  fill: #1e293b;
  font-family: var(--font-body);
  font-weight: 800;
  paint-order: stroke fill;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 2.6px;
  stroke-linejoin: round;
  pointer-events: none;
  user-select: none;
}

.nigeria-state {
  transition: fill 200ms ease, opacity 200ms ease;
  cursor: pointer;
}

.nigeria-state:hover {
  filter: brightness(1.1);
  stroke-width: 2.5;
}

/* ==========================================================================
   SECTION 2: MAP + PROBLEM / SOLUTION
   ========================================================================== */
.section-map-story {
  background-color: #FDFBF7;
  padding: clamp(2.5rem, 4.5vw, 4rem) 0;
}

.map-story-grid {
  display: grid;
  /* fr, not %: percentage columns ignore the gap, so 55% + 45% + a 64px
     gap overflowed the container and pushed the story text off-screen. */
  grid-template-columns: 55fr 45fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  }

.map-stage {
  width: 100%;
  position: relative;
  will-change: transform, opacity;
  transition: opacity 1100ms var(--ease-standard), transform 1100ms var(--ease-standard);
}

.map-stage.has-sway {
  animation: map-vertical-sway 9s ease-in-out infinite alternate;
}

@keyframes map-vertical-sway {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-6px) rotate(0.4deg);
  }
}

.map-3d-scene {
  perspective: 1200px;
  perspective-origin: 50% 95%; /* low camera angle looking up */
  width: 100%;
  position: relative;
}

/* The map and the students holding it are one artwork, so the hands
   always meet the map's underside exactly. */
.map-story-content {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.story-block {
  transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard);
}

.story-text {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--color-text-muted);
  line-height: 1.75;
}

@media (max-width: 960px) {
  .map-story-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* ==========================================================================
   SECTION 3: APP SCREENSHOTS
   ========================================================================== */
.section-screenshots {
  background-color: #F3F7F5;
  padding: clamp(2.5rem, 4.5vw, 4rem) 0 clamp(3rem, 5vw, 4.5rem);
  overflow: hidden;
}

.screenshots-track-wrapper {
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.screenshots-track {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  width: max-content;
  will-change: transform;
}

.screenshot-panel {
  width: clamp(320px, 70vw, 460px);
  aspect-ratio: 16 / 10;
  flex-shrink: 0;
  background-color: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 300ms var(--ease-standard);
}

.screenshot-panel.panel-even {
  transform: translateY(24px);
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   SECTION 4: SUPPORTED EXAMS
   ========================================================================== */
.section-exams {
  background-color: #FFFDF4;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.exams-header {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 4.5vw, 3.75rem);
}

.exams-subtext {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.exams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2vw, 1.75rem);
}

.exam-card {
  padding: clamp(1.75rem, 2.5vw, 2.25rem);
  border-radius: 20px;
  transition: opacity 650ms var(--ease-standard),
              transform 300ms var(--ease-spring);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.exam-card:hover {
  transform: translateY(-6px) rotate(1deg);
}

.exam-card-1 { background-color: #FEF2F2; }
.exam-card-2 { background-color: #EFF6FF; }
.exam-card-3 { background-color: #F0FDF4; }
.exam-card-4 { background-color: #FFFBEB; }
.exam-card-5 { background-color: #FAF5FF; }
.exam-card-6 { background-color: #FDF2F8; }
.exam-card-7 { background-color: #F0FDFA; }
.exam-card-8 { background-color: #FFF7ED; }

.exam-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0F172A;
}

.exam-desc {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   SECTION 5: BLOG CARDS
   ========================================================================== */
.section-blog {
  background-color: #FFF9F5;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
  text-decoration: none;
  color: inherit;
  transition: opacity 700ms var(--ease-standard), transform 700ms var(--ease-standard);
}

.blog-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #F8FAFC;
}

.blog-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 350ms var(--ease-standard);
}

.blog-card:hover .blog-illustration {
  transform: scale(1.06);
}

.blog-content {
  padding: clamp(1.5rem, 2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex-grow: 1;
}

.blog-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #0F172A;
  display: inline;
  background-image: linear-gradient(var(--brand-blue), var(--brand-blue));
  background-size: 0% 2.5px;
  background-repeat: no-repeat;
  background-position: left bottom;
  padding-bottom: 3px;
  transition: background-size 350ms var(--ease-standard);
  width: fit-content;
}

.blog-card:hover .blog-title {
  background-size: 100% 2.5px;
}

.blog-excerpt {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  }

.blog-cta {
  margin-top: 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue);
  transition: transform 250ms var(--ease-standard);
  }

.blog-card:hover .blog-cta {
  transform: translateX(4px);
  }

@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   SECTION 6: COMPARISON TABLE
   (No inner vertical scroll on desktop; fixed column widths; all 7 rows visible)
   ========================================================================== */
.section-comparison {
  background-color: #F8FAFC;
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.table-responsive-container {
  width: 100%;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  border-radius: 20px;
  border: 1px solid var(--color-border-subtle);
  background-color: #FFFFFF;
  overflow-x: hidden; /* no inner scroll on desktop */
  overflow-y: visible;
  max-height: none;
}

.comparison-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed; /* fixed column widths so all rows align perfectly */
  border-collapse: collapse;
  text-align: left;
}

.col-feature { width: 44%; }
.col-platform { width: 28%; }
.col-others { width: 28%; }

.comparison-table th,
.comparison-table td {
  padding: 1.15rem 1.75rem;
  border-bottom: 1px solid #E2E8F0;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .table-responsive-container {
    overflow: hidden;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.8rem 0.45rem;
    font-size: 0.82rem;
    line-height: 1.3;
  }

  .comparison-table th {
    font-size: 0.85rem;
  }
}

.comparison-table th {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}

.th-feature {
  color: #334155;
  background-color: #F8FAFC;
}

.th-platform {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  text-align: center;
}

.th-others {
  color: #64748B;
  background-color: #F8FAFC;
  text-align: center;
}

.table-row {
  transition: opacity 550ms var(--ease-standard), transform 550ms var(--ease-standard);
}

.td-feature {
  font-weight: 600;
  color: #1E293B;
  font-size: 1.05rem;
}

.td-platform {
  background-color: var(--brand-blue-tint);
  text-align: center;
}

.td-others {
  text-align: center;
}

.table-check-icon,
.table-cross-icon {
  width: 26px;
  height: 26px;
  display: inline-block;
  vertical-align: middle;
}

.table-check-icon path {
  stroke: var(--brand-blue);
  stroke-dasharray: 28;
  stroke-dashoffset: 28;
  transition: stroke-dashoffset 650ms var(--ease-standard);
}

.table-row.is-revealed .table-check-icon path,
body:not(.js-observer-ready) .table-check-icon path {
  stroke-dashoffset: 0;
}

.table-cross-icon path {
  stroke: #94A3B8;
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  transition: stroke-dashoffset 650ms var(--ease-standard);
}

.table-row.is-revealed .table-cross-icon path,
body:not(.js-observer-ready) .table-cross-icon path {
  stroke-dashoffset: 0;
}

/* ==========================================================================
   SECTION 7: CTA
   ========================================================================== */
.section-cta {
  background-color: #FFFBEB;
  padding: clamp(4rem, 7vw, 6rem) 0;
}

.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.cta-line {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  color: #0F172A;
  line-height: 1.25;
}

.cta-button {
  display: inline-block;
  position: relative;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  font-weight: 700;
  padding: 1.15rem 2.85rem;
  border-radius: 999px;
  border: none;
  color: #FFFFFF;
  background-color: var(--brand-blue);
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: transform 150ms var(--ease-standard);
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--brand-blue-dark);
  z-index: -1;
  transform: translateX(-100%);
  transition: transform 300ms var(--ease-standard);
}

.cta-button:hover::before {
  transform: translateX(0);
}

.cta-button:active {
  transform: scale(0.97);
}

/* ==========================================================================
   SECTION 8: FOOTER
   ========================================================================== */
.section-footer {
  background-color: #0F172A;
  color: #F8FAFC;
  padding: clamp(3.5rem, 6vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(248, 250, 252, 0.12);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
}

.footer-tagline {
  margin: 0.9rem 0 0;
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #94A3B8;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.footer-contact-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #CBD5E1;
  text-decoration: none;
  transition: color 250ms var(--ease-standard);
}

.footer-contact-link:hover {
  color: #FFFFFF;
}

.footer-contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7DD3FC;
  border: 1px solid rgba(125, 211, 252, 0.28);
  background: rgba(125, 211, 252, 0.1);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  white-space: nowrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-col-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #F8FAFC;
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
  transition: color 250ms var(--ease-standard);
}

.footer-link:hover {
  color: var(--brand-blue);
}

.footer-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 250, 0.32);
  background: rgba(59, 130, 246, 0.16);
  color: #93C5FD;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  vertical-align: 0.1em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 1.75rem;
}

.footer-copyright {
  margin: 0;
  font-size: 0.9rem;
  color: #64748B;
}

.footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-legal-link {
  color: #94A3B8;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 250ms var(--ease-standard);
}

.footer-legal-link:hover {
  color: #FFFFFF;
}

.footer-brand:focus-visible,
.footer-link:focus-visible,
.footer-contact-link:focus-visible,
.footer-legal-link:focus-visible {
  outline: 2px solid #93C5FD;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.75rem;
  }

  .footer-tagline {
    max-width: none;
  }
}

/* ==========================================================================
   REVEAL BEHAVIORS: DEFAULT VISIBLE EVERYWHERE
   Hidden start states are applied ONLY when JS observer is actively running
   AND element is currently below viewport
   ========================================================================== */
.js-observer-ready .js-will-reveal {
  opacity: 0;
  transform: translateY(28px);
}

.js-observer-ready .map-stage.js-will-reveal {
  opacity: 0;
  transform: translateY(80px) rotate(-2deg);
}

.is-revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .map-stage.has-sway {
    animation: none !important;
  }

  .screenshots-track-wrapper {
    overflow: hidden !important;
  }

  .screenshots-track {
    animation: none !important;
  }

  .table-check-icon path,
  .table-cross-icon path {
    stroke-dashoffset: 0 !important;
  }
}
