/* ============================================================================
   BrightKid — responsive layout
   Companion to styles.css. Load it SECOND:

     <link rel="stylesheet" href="/styles.css" />
     <link rel="stylesheet" href="/brightkid-responsive.css" />

   styles.css owns the design system (palette, nav, page-header, buttons,
   sections, cta, footer). Nothing in it needs to change. This file owns the
   layout that used to live in inline style="" attributes — which no media
   query could ever reach, because inline styles outrank every selector.

   Breakpoints, matched to the ones already in styles.css:
     > 1024px   desktop
     <= 1024px  tablet
     <=  960px  plan cards + plans FAQ collapse
     <=  900px  nav becomes a drawer  (styles.css hides .nav-links here)
     <=  760px  phone
     <=  400px  small phone
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. Base hardening
   -------------------------------------------------------------------------- */

/* styles.css sets overflow-x:hidden on html+body. `clip` does the same job
   without creating a scroll container, which is friendlier to the sticky nav.
   Browsers without `clip` ignore this and keep `hidden`. */
html,
body {
  overflow-x: clip;
}

body {
  -webkit-text-size-adjust: 100%;
}

/* Grid and flex children default to min-width:auto, so a long unbroken word
   blows out the track instead of wrapping. Most common cause of stray
   horizontal scroll on phones. */
.bk-grid > *,
.bk-flex > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   1. Shared pieces
   -------------------------------------------------------------------------- */

/* The rounded icon square used on cards across the site */
.icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  flex: none;
}

.icon-tile--sm {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 16px;
}

.icon-tile--purple { background: var(--purple-soft); }
.icon-tile--orange { background: var(--orange-soft); }
.icon-tile--yellow { background: #fef3c7; }
.icon-tile--pink   { background: #fce7f3; }
.icon-tile--mint   { background: #d1fae5; }
.icon-tile--sky    { background: #dbeafe; }

.card {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px;
}

.card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Hover lift, gated so it can't stick after a tap. Touch fires mouseover but
   never mouseout, which is why the old inline handlers froze cards mid-lift. */
.card--lift {
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  border: 2px solid transparent;
}

@media (hover: hover) and (pointer: fine) {
  .card--lift:hover {
    transform: translateY(-6px);
    border-color: var(--purple-light);
  }
  .card--shadow-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(109, 40, 217, 0.12);
  }
}

/* --------------------------------------------------------------------------
   2. Nav toggle (hidden until 900px)
   -------------------------------------------------------------------------- */

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--purple-soft);
  color: var(--purple);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex: none;
}

.nav-toggle-bars { position: relative; }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
}

.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after  { transform: translateY(6px); }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   3. Home
   -------------------------------------------------------------------------- */

.hero {
  padding: 80px 0 100px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-title { text-align: left; }

.hero-lede {
  text-align: left;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-blob {
  position: absolute;
  background: var(--yellow);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  top: -20px;
  right: 10%;
  z-index: -1;
  animation: bk-float 6s ease-in-out infinite;
}

.hero-img {
  width: 100%;
  max-width: 520px;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

@keyframes bk-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}

.section--trust {
  padding: 56px 0 24px;
}

.section-header--tight {
  margin-bottom: 40px;
}

.trust-row {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--purple-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  font-weight: 800;
  font-size: 14px;
  flex: none;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.explore-card {
  display: block;
  background: var(--paper);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}

.explore-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.explore-card p {
  font-size: 14px;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   4. Meet Arlo
   -------------------------------------------------------------------------- */

.arlo-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  background: var(--purple-soft);
  border-radius: 32px;
  padding: 56px;
}

.arlo-portrait {
  background: var(--purple);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 1;
  box-shadow: 0 20px 60px rgba(109, 40, 217, 0.3);
}

.arlo-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arlo-intro .section-eyebrow { margin-bottom: 16px; }

.arlo-heading {
  font-size: clamp(30px, 4vw, 48px);
  margin-bottom: 20px;
  line-height: 1.1;
}

.arlo-heading em {
  color: var(--purple);
  font-style: italic;
  font-weight: 500;
}

.arlo-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.arlo-body + .arlo-body { margin-top: 16px; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card .icon-tile { margin-bottom: 20px; }

/* --------------------------------------------------------------------------
   5. What it teaches
   -------------------------------------------------------------------------- */

.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.module-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 28px 24px;
}

.module-card h3 {
  font-size: 19px;
  margin-bottom: 6px;
}

.module-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.adaptive-panel {
  background: var(--purple);
  color: #fff;
  border-radius: 32px;
  padding: 56px;
  text-align: center;
}

.adaptive-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.adaptive-panel h2 {
  color: #fff;
  font-size: clamp(26px, 4vw, 44px);
  margin-bottom: 16px;
}

.adaptive-panel h2 em {
  color: var(--yellow);
  font-style: italic;
  font-weight: 500;
}

.adaptive-panel p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 56ch;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   6. Plans
   -------------------------------------------------------------------------- */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  align-items: start;
}

.plan-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 36px 28px;
  border: 2px solid transparent;
  position: relative;
}

.plan-card--featured {
  border-color: var(--purple);
  box-shadow: 0 20px 50px rgba(109, 40, 217, 0.15);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name {
  font-size: 24px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  margin-bottom: 4px;
}

.plan-price {
  font-family: "Fredoka", sans-serif;
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 4px;
}

.plan-period {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}

.plan-features {
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
}

.plan-features li {
  padding: 7px 0;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.plan-features li:last-child { border-bottom: 0; }

.plan-features li::before {
  content: "+";
  color: var(--purple);
  font-weight: 800;
  flex: none;
}

.modules-panel {
  background: var(--ink);
  color: #fff;
  border-radius: 32px;
  padding: 48px;
  margin-bottom: 48px;
}

.modules-panel h3 {
  font-size: 26px;
  margin-bottom: 8px;
  color: #fff;
  text-align: center;
}

.modules-panel-lede {
  text-align: center;
  opacity: 0.75;
  margin-bottom: 36px;
  font-size: 15px;
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
}

.faq-panel {
  background: var(--purple-soft);
  border-radius: 32px;
  padding: 40px;
  text-align: center;
}

.faq-panel h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--purple);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  text-align: left;
}

.faq-grid h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--ink);
}

.faq-grid p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   7. For Parents
   -------------------------------------------------------------------------- */

.hero-chips {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  justify-content: center;
}

.chip-link {
  background: var(--paper);
  color: var(--ink);
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chip-link--primary {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

@media (hover: hover) and (pointer: fine) {
  .chip-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(31, 17, 48, 0.18);
  }
}

.parents-block {
  margin-bottom: 80px;
}

.philosophy-panel {
  background: var(--ink);
  color: #fff;
  border-radius: 40px;
  padding: 64px;
  margin-bottom: 80px;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.philosophy-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.philosophy-panel h2 {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 20px;
  color: #fff;
}

.philosophy-panel h2 em {
  color: var(--yellow);
  font-style: italic;
  font-weight: 500;
}

.philosophy-body {
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.85;
}

.philosophy-body + .philosophy-body { margin-top: 16px; }

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 24px;
}

.stat-number {
  font-family: "Fredoka", sans-serif;
  font-size: 44px;
  font-weight: 600;
  color: var(--yellow);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 13px;
  opacity: 0.8;
  font-weight: 600;
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.safety-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 32px;
}

.safety-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.safety-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--paper);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 12px;
}

.faq-item:last-child { margin-bottom: 0; }

.faq-item summary {
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  line-height: 1;
  color: var(--purple);
  flex: none;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.legal-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.legal-body h3 {
  font-size: 18px;
  color: var(--ink);
  margin: 32px 0 12px;
}

.legal-body ul {
  padding-left: 24px;
  margin: 12px 0;
}

.legal-body li { margin-bottom: 8px; }

.legal-body strong { color: var(--ink); }

.legal-body a {
  color: var(--purple);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Long email addresses are the usual overflow culprit in legal copy */
.legal-body a[href^="mailto:"] {
  overflow-wrap: anywhere;
}

.legal-callout {
  background: var(--purple-soft);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 32px;
}

.legal-callout p {
  font-weight: 700;
  color: var(--purple);
  font-size: 15px;
}

.legal-callout--warn { background: #fef3c7; }
.legal-callout--warn p { color: #92400e; }

/* ==========================================================================
   TABLET  <= 1024px
   ========================================================================== */

@media (max-width: 1024px) {
  .hero { padding: 64px 0 80px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Image above copy reads better once stacked */
  .hero-visual { order: -1; }
  .hero-img { max-width: 420px; }

  .explore-grid,
  .module-grid,
  .chip-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .module-grid { margin-bottom: 56px; }

  .feature-grid,
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arlo-intro {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px;
  }

  .arlo-portrait {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .adaptive-panel { padding: 44px 36px; }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .philosophy-panel {
    padding: 44px 36px;
    margin-bottom: 56px;
  }

  .parents-block { margin-bottom: 56px; }
}

/* ==========================================================================
   <= 960px — plan cards and the plans FAQ go single column
   ========================================================================== */

@media (max-width: 960px) {
  .plans-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   <= 900px — NAV DRAWER
   This matches styles.css, which hides .nav-links at exactly this width.
   Before this file existed there was no mobile navigation at all.
   ========================================================================== */

@media (max-width: 900px) {
  .nav .container { overflow: visible; }

  .nav-inner {
    position: relative;
    gap: 12px;
  }

  .nav-toggle { display: inline-flex; }

  /* nav-links leaves the flex flow, so this keeps the CTA and the
     hamburger together at the right edge */
  .nav-cta { margin-left: auto; }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--paper);
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 18px 50px rgba(31, 17, 48, 0.18);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    display: block;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 16px;
  }

  .nav-links a.active { background: var(--purple-soft); }

  /* The desktop underline is absolutely positioned and would stretch the
     full width of a drawer row */
  .nav-links a.active::after { display: none; }
}

/* ==========================================================================
   PHONE  <= 760px
   ========================================================================== */

@media (max-width: 760px) {

  /* --- shell -------------------------------------------------------------- */

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section { padding: 48px 0; }

  .section-header { margin-bottom: 36px; }

  .section-title { font-size: clamp(26px, 7vw, 40px); }

  .section-subtitle { font-size: 16px; }

  /* Decorative blobs sit outside the viewport and serve no purpose here */
  .shape { display: none; }

  .nav-cta {
    font-size: 12px;
    padding: 9px 16px;
    white-space: nowrap;
  }

  /* --- page header -------------------------------------------------------- */

  .page-header {
    padding: 44px 0 56px;
    border-radius: 0 0 32px 32px;
  }

  .page-title { font-size: clamp(34px, 9vw, 48px); }

  .page-lede { font-size: 16px; }

  /* --- home hero ---------------------------------------------------------- */

  .hero { padding: 40px 0 56px; }

  .hero-grid { gap: 32px; }

  .hero-title,
  .hero-lede { text-align: center; }

  .hero-lede { margin-bottom: 28px; }

  /* The hard <br/> forces an awkward break on a narrow screen */
  .hero-title br { display: none; }

  .hero-actions {
    justify-content: center;
    gap: 12px;
  }

  .hero-blob {
    width: 56px;
    height: 56px;
    top: -14px;
    right: 4%;
  }

  .hero-img { max-width: 100%; }

  /* --- trust row ---------------------------------------------------------- */

  .trust-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    justify-items: start;
  }

  .trust-item { font-size: 13px; }

  /* --- cards -------------------------------------------------------------- */

  .explore-grid,
  .module-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .module-grid { margin-bottom: 44px; }

  .explore-card,
  .module-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .explore-card h3,
  .module-card h3 { font-size: 16px; }

  .explore-card p,
  .module-card p { font-size: 13px; }

  .icon-tile {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 23px;
    margin-bottom: 12px;
  }

  .icon-tile--sm {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }

  .feature-grid,
  .safety-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card,
  .feature-card,
  .safety-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .card h3 { font-size: 19px; }

  /* --- panels ------------------------------------------------------------- */

  .arlo-intro {
    padding: 24px 20px;
    border-radius: 24px;
    gap: 28px;
  }

  .arlo-body { font-size: 16px; }

  .adaptive-panel,
  .modules-panel,
  .faq-panel {
    padding: 32px 22px;
    border-radius: 24px;
  }

  .adaptive-panel p { font-size: 16px; }

  .modules-panel h3 { font-size: 21px; }
  .modules-panel-lede { margin-bottom: 24px; font-size: 14px; }

  .chip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .chip {
    padding: 12px 13px;
    font-size: 13px;
  }

  .faq-panel h3 { font-size: 20px; }

  /* --- plans -------------------------------------------------------------- */

  .plans-grid {
    gap: 28px;
    margin-bottom: 44px;
  }

  .plan-card {
    padding: 30px 22px;
    border-radius: 20px;
  }

  .plan-price { font-size: 38px; }

  /* --- for parents -------------------------------------------------------- */

  .hero-chips { gap: 8px; }

  .chip-link {
    font-size: 13px;
    padding: 9px 16px;
  }

  .parents-block { margin-bottom: 44px; }

  .philosophy-panel {
    padding: 28px 22px;
    border-radius: 28px;
    margin-bottom: 44px;
  }

  .philosophy-grid { gap: 28px; }

  .philosophy-body { font-size: 16px; }

  /* Four stats at one column is a very tall scroll — keep them 2-up */
  .stat-grid { gap: 12px; }

  .stat-card { padding: 18px; }

  .stat-number { font-size: 32px; }

  .stat-label { font-size: 12px; }

  .faq-item { padding: 18px; }

  .faq-item summary { font-size: 16px; }

  .legal-body h3 { font-size: 17px; margin-top: 28px; }

  .legal-callout { padding: 18px; }

  /* --- CTA + app buttons -------------------------------------------------- */

  .cta-block {
    padding: 40px 20px;
    border-radius: 28px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .app-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  /* --- footer ------------------------------------------------------------- */

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-col li { margin-bottom: 4px; }

  .footer-col a {
    display: inline-block;
    padding: 5px 0;
  }
}

/* ==========================================================================
   SMALL PHONE  <= 400px
   ========================================================================== */

@media (max-width: 400px) {
  .nav-cta { display: none; }

  .explore-grid,
  .module-grid,
  .chip-grid {
    grid-template-columns: 1fr;
  }

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

  .plan-price { font-size: 34px; }

  .explore-card,
  .module-card { padding: 20px 18px; }

  .stat-number { font-size: 28px; }
}

/* ==========================================================================
   Accessibility floor
   ========================================================================== */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.page-header a:focus-visible,
.philosophy-panel a:focus-visible,
.modules-panel a:focus-visible,
.cta-block a:focus-visible,
.footer a:focus-visible {
  outline-color: var(--yellow);
}

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