/* StudiTracker landing — SchoolBus Track layout, light + dark */

:root {
  --yellow: #ffc107;
  --yellow-deep: #e5a600;
  --yellow-soft: #fff4d1;
  --blue: #007bff;
  --blue-deep: #0062cc;
  --ink: #0b2545;
  --ink-2: #1c3a63;
  --muted: #667085;
  --line: #e8ebf0;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-ink: #0b2545;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(11, 37, 69, 0.1);
  --radius: 1rem;
  --radius-sm: 0.65rem;
  --max: 72rem;
  --font: "Manrope", system-ui, sans-serif;
  --nav-h: 4.5rem;
}

html[data-theme="dark"] {
  --yellow: #ffc107;
  --yellow-deep: #ffd54a;
  --yellow-soft: #3a2f0f;
  --blue: #3d9bff;
  --blue-deep: #007bff;
  --ink: #f5f6f8;
  --ink-2: #d7dbe3;
  --muted: #9aa3b2;
  --line: #2a303c;
  --bg: #0e1116;
  --bg-soft: #161b22;
  --bg-ink: #080a0d;
  --card: #171c24;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

#top,
#product,
#how,
#parents,
#schools,
#about,
#drivers {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

body.landing {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 1.02rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

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

.section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section--soft { background: var(--bg-soft); }

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-theme="dark"] .eyebrow { color: var(--blue); }

h1, h2, h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.15rem); font-weight: 800; color: var(--ink); }
h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 750; }

.lead {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36rem;
}

.accent { color: var(--blue); }

.section__head { margin-bottom: 2rem; }
.section__head--center { text-align: center; }
.section__head--center .lead,
.lead--center { max-width: 40rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.9rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 750;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--yellow);
  color: #111;
}

.btn--primary:hover { background: var(--yellow-deep); }

.btn--nav {
  min-height: 2.55rem;
  padding-inline: 1.15rem;
  font-size: 0.92rem;
}

.btn--outline {
  background: #fff;
  color: var(--ink);
  border-color: #cfd4dc;
}

.btn--outline:hover {
  border-color: #98a2b3;
  background: #fff;
}

.btn__play {
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 0.55rem;
  line-height: 1;
}

.btn--link {
  background: transparent;
  color: var(--yellow-deep);
  min-height: auto;
  padding: 0;
  margin-top: 0.35rem;
  font-weight: 750;
}

html[data-theme="dark"] .btn--link { color: var(--yellow); }
html[data-theme="dark"] .btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

/* ============================================================ HERO
   Header floats over the hero. Copy on the left; on the right the
   order is: phone mockup, then child/bus photo (after the mockup). */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  overflow: clip;
  min-height: min(100svh, 52rem);
  display: flex;
  flex-direction: column;
}

.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.site-header.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.35rem;
  color: var(--ink);
  min-width: 0;
}

/* The header floats transparent over the dark hero photo, then gains a
   solid var(--bg) bar on scroll — white in dark mode, white-again in
   light mode. Stack both logo variants and swap by scroll + theme so
   the mark stays legible against whichever bar is actually showing. */
.brand__mark-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
}

.brand__mark {
  height: 2.25rem;
  width: auto;
  flex: 0 0 auto;
}

.brand__mark--color {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease;
}

.site-header.is-scrolled .brand__mark--white { opacity: 0; visibility: hidden; }
.site-header.is-scrolled .brand__mark--color { opacity: 1; visibility: visible; }

html[data-theme="dark"] .site-header.is-scrolled .brand__mark--white { opacity: 1; visibility: visible; }
html[data-theme="dark"] .site-header.is-scrolled .brand__mark--color { opacity: 0; visibility: hidden; }

.brand__tag {
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.7rem;
  font-weight: 650;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 11rem;
}

.site-header.is-scrolled .brand__tag {
  color: var(--muted);
  border-left-color: var(--line);
}

html[data-theme="dark"] .brand__tag {
  color: rgba(255, 255, 255, 0.7);
  border-left-color: rgba(255, 255, 255, 0.18);
}

.brand__name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.15rem;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.2rem;
}

.nav-links a:hover { color: var(--blue-deep); }

html[data-theme="dark"] .nav-links a:hover { color: var(--blue); }

.nav-links a.is-active {
  color: var(--ink);
  font-weight: 750;
}

.nav-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0.15rem;
  right: 0.15rem;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--yellow);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.theme-toggle {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
  backdrop-filter: blur(8px);
}

.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: inline; }
html[data-theme="dark"] .theme-toggle {
  background: rgba(23, 28, 36, 0.75);
  border-color: var(--line);
}

@media (min-width: 1060px) {
  .nav-links { display: flex; }
}

.nav-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translate(-50%, -6.8px);
}

.nav-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(3) {
  transform: translate(-50%, 6.8px);
}

html[data-theme="dark"] .nav-toggle {
  background: rgba(23, 28, 36, 0.75);
  border-color: var(--line);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 1060px) {
  .nav-toggle { display: none; }
}

.mobile-nav {
  position: fixed;
  inset-inline: 0;
  top: var(--nav-h);
  z-index: 19;
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(17, 17, 17, 0.1);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease, visibility 180ms;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav a {
  padding: 0.7rem 0.25rem;
  font-size: 0.98rem;
  font-weight: 650;
  color: var(--ink-2);
  border-radius: 0.6rem;
}

.mobile-nav a.is-active {
  color: var(--ink);
  font-weight: 750;
  background: var(--bg-soft);
}

@media (min-width: 1060px) {
  .mobile-nav { display: none; }
}

.hero__stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  align-items: stretch;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: calc(var(--nav-h) + 1rem) 0 2.5rem;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .hero__stage {
    grid-template-columns: minmax(0, 0.92fr) minmax(24rem, 1.15fr);
    gap: 0;
    /* Let the photo bleed to the right edge of the viewport */
    width: min(100%, calc(var(--max) + (100vw - var(--max)) / 2));
    margin-left: max(1rem, calc((100vw - var(--max)) / 2));
    margin-right: 0;
    padding-right: 0;
  }
}

.hero__copy {
  position: relative;
  z-index: 5;
  max-width: 34rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 2.5rem;
  isolation: isolate;
}

/* Soft veil under the words so the photo can dissolve behind them */
.hero__copy::before {
  content: "";
  position: absolute;
  inset: -1.5rem -3rem -1.5rem -1.5rem;
  z-index: -1;
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    var(--bg) 55%,
    rgba(255, 255, 255, 0.72) 78%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

html[data-theme="dark"] .hero__copy::before {
  background: linear-gradient(
    90deg,
    var(--bg) 0%,
    var(--bg) 55%,
    rgba(14, 17, 22, 0.78) 78%,
    rgba(14, 17, 22, 0) 100%
  );
}

.hero__copy h1 {
  white-space: normal;
}

.hero__lede {
  margin: 1.05rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 32rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-top: 1.85rem;
}

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

.hero-feat {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.hero-feat__icon {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #111;
  flex: 0 0 auto;
}

.hero-feat__icon svg {
  width: 0.95rem;
  height: 0.95rem;
}

.hero-feat__icon--blue {
  background: var(--blue);
  color: #fff;
}

/* Right column: photo fills it and slides under the copy so the
   girl fades out behind the words */
.hero__visual {
  position: relative;
  min-height: 22rem;
  isolation: isolate;
  z-index: 1;
}

@media (min-width: 960px) {
  .hero__visual {
    min-height: 100%;
    /* Extend photo under the header, under the copy, and to the viewport edge */
    margin-top: calc(-1 * (var(--nav-h) + 1rem));
    margin-bottom: -2.5rem;
    margin-left: -28%;
  }
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #1a1a1a;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 28% center;
}

.hero__photo-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      var(--bg) 18%,
      rgba(255, 255, 255, 0.92) 32%,
      rgba(255, 255, 255, 0.55) 46%,
      rgba(255, 255, 255, 0.18) 58%,
      rgba(255, 255, 255, 0) 72%
    ),
    linear-gradient(180deg, transparent 78%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
}

html[data-theme="dark"] .hero__photo-fade {
  background:
    linear-gradient(
      90deg,
      var(--bg) 0%,
      var(--bg) 18%,
      rgba(14, 17, 22, 0.92) 32%,
      rgba(14, 17, 22, 0.55) 46%,
      rgba(14, 17, 22, 0.18) 58%,
      rgba(14, 17, 22, 0) 72%
    ),
    linear-gradient(180deg, transparent 78%, rgba(0, 0, 0, 0.3) 100%);
}

.hero__phone {
  position: absolute;
  z-index: 4;
  /* Stay inside the photo column — no overlap with copy */
  left: 4%;
  bottom: 8%;
  width: min(36%, 12.5rem);
  transform: none;
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.4));
  pointer-events: none;
}

.hero__phone img {
  width: 100%;
  height: auto;
  background: transparent;
}

@media (max-width: 959px) {
  .hero__copy::before {
    display: none;
  }

  .hero__visual {
    min-height: 26rem;
    border-radius: 1.25rem;
    overflow: hidden;
  }

  .hero__photo-fade {
    background:
      linear-gradient(180deg, var(--bg) 0%, transparent 28%),
      linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35) 100%);
  }

  html[data-theme="dark"] .hero__photo-fade {
    background:
      linear-gradient(180deg, var(--bg) 0%, transparent 28%),
      linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45) 100%);
  }

  .hero__phone {
    left: 1rem;
    bottom: 4.25rem;
    width: min(34%, 10rem);
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero__phone { display: none; }
  .brand__tag { display: none; }
}

@media (max-width: 430px) {
  .site-header__inner { gap: 0.5rem; }

  .brand { gap: 0.5rem; }

  .brand__mark,
  .brand__mark-stack {
    height: 1.85rem;
  }

  .nav-actions { gap: 0.35rem; }

  .btn--nav {
    min-height: 2.35rem;
    padding-inline: 0.6rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .theme-toggle,
  .nav-toggle {
    width: 2.15rem;
    height: 2.15rem;
    flex: 0 0 auto;
  }
}

.btn--nav__short { display: none; }

@media (max-width: 360px) {
  .btn--nav__full { display: none; }
  .btn--nav__short { display: inline; }

  .btn--nav {
    padding-inline: 0.85rem;
  }
}

/* Stats */
.lead--center {
  margin-inline: auto;
  text-align: center;
}

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

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

.stat {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border-radius: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.04);
}

html[data-theme="dark"] .stat {
  box-shadow: none;
}

.stat__icon {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.stat:nth-child(even) .stat__icon {
  background: var(--blue);
  color: #fff;
}

.stat__icon svg {
  width: 1.15rem;
  height: 1.15rem;
}

.stat strong {
  display: block;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.stat span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

@media (max-width: 480px) {
  .section__head { margin-bottom: 1.5rem; }

  .stats { gap: 0.65rem; }

  .stat {
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
  }

  .stat__icon {
    width: 2.25rem;
    height: 2.25rem;
  }

  .stat__icon svg {
    width: 0.95rem;
    height: 0.95rem;
  }

  .stat strong {
    font-size: 1.2rem;
  }

  .stat span {
    font-size: 0.8rem;
  }
}

/* Problem / How — equal columns, divider, 3 problem cards, 6-step flow */
/* The Problem and How It Works are each a full-width row, stacked —
   not a cramped two-column split. Six process steps need their own
   row's width to lay out legibly at any viewport. */
.split {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 4rem);
}

.split > .problem,
.split > .how {
  width: 100%;
}

.section-sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 550;
}

.problem h2,
.how h2 {
  max-width: none;
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  letter-spacing: -0.03em;
}

.problem-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .problem-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

.problem-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 1rem 0.9rem 1.05rem;
  border: none;
  border-radius: 0.75rem;
  background: #f3f5f7;
}

html[data-theme="dark"] .problem-item {
  background: var(--card);
  border: 1px solid var(--line);
}

.problem-item__icon {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  padding: 0;
}

.problem-item__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.problem-item strong {
  display: block;
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.problem-item p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
  font-weight: 550;
}

.problem__note {
  margin: 1.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  max-width: none;
  text-align: center;
}

/* Horizontal numbered process — yellow nums, icons, arrows */
.process {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  position: relative;
}

@media (min-width: 560px) {
  .process {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .process {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

.process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  padding-top: 0;
}

.process-step__num {
  position: relative;
  z-index: 1;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  box-shadow: none;
}

/* Alternate the two brand colors across the timeline so it reads as
   one connected system rather than a single yellow run. */
.process-step:nth-child(even) .process-step__num {
  background: var(--blue);
}

.process-step__icon {
  width: 1.55rem;
  height: 1.55rem;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.process-step__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.process-step__icon--done {
  color: var(--ink);
}

.process-step__label {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  max-width: 10ch;
}

@media (min-width: 960px) {
  .process-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -0.05rem;
    top: 2.75rem;
    transform: translateX(50%);
    color: #b8bec8;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1;
  }
}

/* ============================================================ APPS ROW
   For Parents and For Schools — each its own full-width section row. */
.apps-row {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .apps-row {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
  }

  .apps-row--reverse .apps-row__copy {
    order: 2;
  }

  .apps-row--reverse .apps-row__visual {
    order: 1;
  }
}

.apps-row__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.apps-row h2 {
  max-width: 18ch;
}

.apps-row .lead {
  margin-top: 0.65rem;
  max-width: 34ch;
}

.apps-row .check-list {
  margin: 1.25rem 0 1.5rem;
}

.apps-row .btn--primary {
  align-self: flex-start;
}

.check-list {
  display: grid;
  gap: 0.55rem;
}

.check-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
}

.check-list li::before {
  content: "✓";
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--yellow);
  color: #111;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 800;
  flex: 0 0 auto;
  margin-top: 0.05rem;
}

.apps-row__visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone-pair {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  max-width: 23rem;
  margin: 0 auto;
  height: 23rem;
}

.phone-pair img {
  position: absolute;
  bottom: 0;
  width: auto;
  height: 22rem;
  max-width: 52%;
  object-fit: contain;
  object-position: bottom center;
  background: transparent;
  filter: drop-shadow(0 14px 24px rgba(17, 17, 17, 0.18));
}

.phone-pair img:first-child {
  left: 4%;
  z-index: 2;
  transform: rotate(-4deg);
}

.phone-pair img:last-child {
  right: 2%;
  z-index: 1;
  transform: rotate(5deg) translateY(-0.35rem);
}

.dashboard-shot {
  margin: 0;
  width: 100%;
  max-width: 26rem;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.12);
  border: 1px solid var(--line);
  background: var(--card);
}

.dashboard-shot img {
  width: 100%;
  height: 18rem;
  object-fit: cover;
  object-position: left top;
  display: block;
}

.phone-single {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 14rem;
  margin: 0 auto;
}

.phone-single img {
  width: 100%;
  height: auto;
  background: transparent;
  filter: drop-shadow(0 14px 24px rgba(17, 17, 17, 0.18));
}

@media (max-width: 719px) {
  .phone-pair {
    height: 16.5rem;
    max-width: 18rem;
  }

  .phone-pair img {
    height: 15.75rem;
  }

  .dashboard-shot {
    max-width: 22rem;
  }

  .dashboard-shot img {
    height: 12.5rem;
  }

  .phone-single {
    max-width: 12rem;
  }
}

/* ============================================================ SAFETY BAND */
/* Inset cream card: flush photo | wide middle | soft yellow quote */
.section--safety {
  padding-block: clamp(2rem, 4vw, 3rem);
}

.safety {
  display: grid;
  gap: 1.15rem;
  background: #fff9e8;
  overflow: hidden;
  border-radius: 1.25rem;
  padding: 1.15rem 1.15rem 1.35rem;
  align-items: stretch;
}

html[data-theme="dark"] .safety {
  background: #2a2414;
}

@media (min-width: 1000px) {
  .safety {
    grid-template-columns: minmax(10rem, 0.78fr) minmax(0, 2.5fr) minmax(12.5rem, 0.9fr);
    gap: 1.35rem 1.5rem;
    padding: 0 clamp(1.15rem, 2.2vw, 1.75rem) 0 0;
    min-height: 16.5rem;
    align-items: center;
  }
}

.safety__media {
  position: relative;
  min-height: 11rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #1a1a1a;
}

.safety__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
  display: block;
}

@media (min-width: 1000px) {
  .safety__media {
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    border-radius: 0;
  }
}

.safety__main {
  display: grid;
  gap: 1.15rem;
  align-content: center;
  min-width: 0;
}

@media (min-width: 1000px) {
  .safety__main {
    padding-block: 1.35rem;
  }

  .safety > .quote {
    margin-block: 1.35rem;
  }
}

.safety__intro h2 {
  font-size: clamp(1.55rem, 2.6vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.safety__intro .lead {
  margin-top: 0.45rem;
  max-width: 46ch;
  color: var(--ink-2);
  font-size: 0.98rem;
}

html[data-theme="dark"] .safety__intro .lead {
  color: var(--muted);
}

.safety-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 0.65rem;
  margin: 0;
}

@media (min-width: 560px) {
  .safety-items {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .safety-items {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.35rem 0.5rem;
  }
}

.safety-item {
  text-align: center;
  padding: 0.15rem 0.1rem;
}

.safety-item__icon {
  width: 1.85rem;
  height: 1.85rem;
  margin: 0 auto 0.4rem;
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.safety-item__icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.safety-item span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

@media (min-width: 1000px) {
  .safety-item span {
    font-size: 0.62rem;
  }
}

.safety > .quote {
  position: relative;
  margin: 0;
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 0.95rem;
  background: #ffe08a;
  color: #1a1a1a;
  box-shadow: none;
  max-width: none;
  align-self: center;
}

html[data-theme="dark"] .safety > .quote {
  background: #c9a227;
  color: #111;
}

.safety > .quote::before {
  content: "“";
  position: absolute;
  top: 0.2rem;
  left: 0.75rem;
  font-size: 2.6rem;
  line-height: 1;
  font-weight: 800;
  color: #e8a020;
  opacity: 0.9;
}

.safety > .quote::after {
  content: "”";
  position: absolute;
  right: 0.85rem;
  bottom: 0.15rem;
  font-size: 2.2rem;
  line-height: 1;
  font-weight: 800;
  color: #e8a020;
  opacity: 0.85;
}

.safety > .quote p {
  position: relative;
  margin: 0;
  padding-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.safety > .quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 700;
  font-size: 0.82rem;
  opacity: 0.75;
}

/* CTA band — full-bleed, edge to edge */
.cta-band {
  position: relative;
  overflow: hidden;
  min-height: 12rem;
  display: flex;
  align-items: center;
  padding-block: 0;
  color: #fff;
}

.cta-band__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(2.25rem, 4vw, 2.75rem);
}

@media (min-width: 860px) {
  .cta-band__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(12rem, 0.9fr);
    align-items: center;
  }
}

.cta-band__bg {
  position: absolute;
  inset: 0;
}

.cta-band__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.cta-band__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(8, 10, 14, 0.9) 0%,
    rgba(8, 10, 14, 0.72) 42%,
    rgba(8, 10, 14, 0.35) 100%
  );
}

.cta-band__content {
  position: relative;
  z-index: 1;
  max-width: 34rem;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.cta-band p {
  margin: 0.75rem 0 1.25rem;
  color: rgba(255, 255, 255, 0.84);
}

.cta-band__slogan {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: end;
  text-align: right;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: clamp(2.1rem, 3.8vw, 3.15rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: #fff;
  transform: rotate(-7deg);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.cta-band__slogan-mark {
  position: relative;
  display: inline-block;
  padding-bottom: 0.12em;
}

.cta-band__slogan-mark::after {
  content: "";
  position: absolute;
  left: 0.05em;
  right: 0.05em;
  bottom: 0.02em;
  height: 0.18em;
  border-radius: 999px;
  background: var(--yellow);
  transform: rotate(-2deg) skewX(-8deg);
  opacity: 0.95;
}

@media (max-width: 859px) {
  .cta-band__slogan {
    justify-self: start;
    text-align: left;
    margin-top: 0.5rem;
  }
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.5rem;
  background: var(--bg-ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 2fr; }
}

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

@media (min-width: 700px) {
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.footer-cols h4 {
  margin: 0 0 0.75rem;
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-cols a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.site-footer .brand { color: #fff; margin-bottom: 0.9rem; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__mark { height: 2rem; }

.footer-lede {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  max-width: 28ch;
  font-size: 1.02rem;
}

.footer-contact {
  margin: 1.1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--yellow);
}

.footer-contact a { color: inherit; }
.footer-contact a:hover { color: #fff; }

/* Scroll to top */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 18;
  width: 2.85rem;
  height: 2.85rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(0.5rem);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.scroll-top:hover { background: var(--bg-soft); }

.scroll-top svg {
  width: 1.15rem;
  height: 1.15rem;
}

@media (min-width: 640px) {
  .scroll-top {
    right: 2rem;
    bottom: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover { transform: none; }
  .scroll-top { transition: opacity 200ms ease, visibility 200ms; }
}
