/* ==========================================================================
   CleverShares marketing one-pager — shared stylesheet
   Dark "1E" design direction. Ported from the design handoff (inline styles
   → reusable classes). Loaded by both index.html (EN) and index-da.html (DA).
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Surfaces */
  --cs-page: #0C1420;
  --cs-alt: #0A121D;
  --cs-spotlight: #08131C;
  --cs-card: #12202E;
  --cs-float: #1A2A3A;
  --cs-chip: #14212F;

  /* Brand */
  --cs-orange: #FF5701;
  --cs-orange-hover: #E64A00;
  --cs-orange-light: #FF7A33;
  --cs-orange-lighter: #FF9A5C;
  --cs-orange-tint: rgba(255, 87, 1, .14);

  --cs-green: #329365;
  --cs-green-text: #6FC79E;
  --cs-green-bright: #35A574;
  --cs-green-tint: rgba(50, 147, 101, .14);

  --cs-negative: #FF8C7A;

  /* Text */
  --cs-text: #EAF1F8;
  --cs-text-2: #A9B8C8;
  --cs-muted: #94A3B4;
  --cs-muted-2: #8A99AB;
  --cs-faint: #78899B;
  --cs-faint-2: #6C7C8E;
  --cs-chip-text: #C6D2DE;

  /* Hairlines */
  --cs-line-card: rgba(255, 255, 255, .09);
  --cs-line-soft: rgba(255, 255, 255, .06);
  --cs-line-ribbon: rgba(255, 255, 255, .18);
  --cs-line-divider: rgba(255, 255, 255, .08);

  /* Shadows */
  --cs-shadow-card: 0 40px 90px -40px rgba(0, 0, 0, .75);
  --cs-shadow-float: 0 24px 48px -16px rgba(0, 0, 0, .85);
  --cs-shadow-cta: 0 14px 30px -10px rgba(255, 87, 1, .55);

  /* Motion */
  --cs-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Brand font (Regular 400 only; Source Sans 3 covers 500–900) ---------- */
@font-face {
  font-family: 'Myriad Pro';
  src: url('/brand/MyriadPro-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cs-page);
  color: var(--cs-text);
  font-family: 'Myriad Pro', 'Source Sans 3', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--cs-orange); color: #fff; }
input::placeholder { color: var(--cs-faint-2); }

a { color: inherit; }

img { max-width: 100%; }

/* Keyboard focus — never remove the outline (design system rule) */
:focus-visible {
  outline: 2px solid var(--cs-orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0;
  top: -48px;
  background: var(--cs-orange);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
  font-weight: 700;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Anchored sections stop below the sticky header instead of sliding under it */
section[id] { scroll-margin-top: 86px; }

/* ---------- Layout ---------- */
/* Single 1440px cap for the whole page (nav + main + footer), centred — the
   design mock was built as one 1440px column. Beyond 1440px the sides fall
   back to the body colour (same --cs-page), so it reads seamlessly. */
.page {
  max-width: 1440px;
  margin: 0 auto;
}

.section {
  padding: 92px 72px;
}
.section--alt { background: var(--cs-alt); }
.section--line { border-top: 1px solid var(--cs-line-soft); }

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cs-orange-light);
  margin: 0;
}

.accent { color: var(--cs-orange-light); }
.eyebrow--green { color: var(--cs-green-text); }

.two-col {
  display: grid;
  gap: 56px;
  /* Copy and card are top-aligned in every copy+card section (no variant
     overrides this — one rule governs them all, on every page). */
  align-items: start;
}
.two-col--hero { grid-template-columns: 1.4fr .8fr; gap: 60px; }
.two-col--wide-left { grid-template-columns: 1.4fr .8fr; }
.two-col--benefits { grid-template-columns: 1fr .8fr; }
.two-col--spotlight { grid-template-columns: .85fr 1.15fr; }
.two-col--join { grid-template-columns: 1.1fr .9fr; gap: 52px; }

h1, h2, h3, h4 { margin: 0; }

.h2 {
  /* Fluid: 31px on small phones → 44px at the 1440 design width.
     Plain wrapping so left-aligned section headings fill their column
     instead of balancing into short lines with whitespace on the right
     (centered headers re-enable balance below). */
  font-size: clamp(31px, 3.4vw, 44px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--cs-text);
  margin: 16px 0 0;
}

/* Narrow headline variant (deliberate design constraint, e.g. "Skills that
   grow with them" breaking beside the tall learning card) */
.h2--narrow { max-width: 20ch; }

.lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--cs-text-2);
  margin: 20px 0 0;
}
.lead--sm { font-size: 17px; }
.lead + .lead { margin-top: 16px; }
.lead strong { color: var(--cs-text); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  border-radius: 999px;
  transition: background .15s var(--cs-ease), transform .12s var(--cs-ease), border-color .15s var(--cs-ease);
}
.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--cs-orange);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  box-shadow: var(--cs-shadow-cta);
}
.btn--primary:hover { background: var(--cs-orange-hover); }

.btn--sm {
  font-size: 15px;
  padding: 11px 20px;
  box-shadow: 0 10px 22px -8px rgba(255, 87, 1, .5);
}

.btn--ghost {
  background: transparent;
  color: var(--cs-text);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .42); }

/* ---------- Cards ---------- */
.card {
  background: var(--cs-card);
  border: 1px solid var(--cs-line-card);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--cs-shadow-card);
}
.card--rel { position: relative; }
.card--tight { border-radius: 22px; }

/* Floating badge cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--cs-float);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: var(--cs-shadow-float);
}
/* Tight two-line text stack inside a floating badge */
.float__txt { line-height: 1.12; }
.float__k--sm { font-size: 13px; }

/* ---------- Chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cs-chip);
  border: 1px solid var(--cs-line-divider);
  color: var(--cs-chip-text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cs-green-bright);
}

/* ==========================================================================
   NAV / HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 72px;
  border-bottom: 1px solid var(--cs-line-soft);
  background: rgba(12, 20, 32, .72);
  transition: background .25s var(--cs-ease), backdrop-filter .25s var(--cs-ease);
}

/* On desktop/tablet the drawer is a transparent wrapper — its children (page
   links, language switch) sit inline in the nav row. On phones (<=700) it
   becomes the drop-down panel behind the menu button. */
.nav-drawer { display: contents; }
.lang-label { display: none; }
/* Blur/opacity treatment once scrolled past the hero (toggled in main.js) */
.site-header.scrolled .site-nav {
  background: rgba(12, 20, 32, .8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark {
  height: 34px;
  width: 34px;
  object-fit: contain;
  border-radius: 9px;
}
.brand__name {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cs-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  margin-inline: auto; /* centers the page links between brand and flags/CTA */
}
.nav-links a {
  color: var(--cs-text-2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s var(--cs-ease);
}
.nav-links a:hover { color: var(--cs-text); }
/* The nav link matching the current page (set by main.js after injection) */
.nav-links a.active { color: var(--cs-orange-light); font-weight: 700; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

/* Menu button — phones only (hidden on desktop/tablet) */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
}
.nav-burger:hover { border-color: rgba(255, 255, 255, .35); }
.nav-burger span {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cs-text);
  transition: transform .18s var(--cs-ease), opacity .18s var(--cs-ease);
}
.site-header.menu-open .nav-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Language switcher (circular flag toggles) */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-flag {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
  flex-shrink: 0;
}
.lang-flag svg { width: 100%; height: 100%; display: block; }
.lang-flag:hover { transform: scale(1.1); border-color: var(--cs-orange); }
.lang-flag.active { border-color: var(--cs-orange); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  background: radial-gradient(1100px 520px at 82% -12%, rgba(255, 87, 1, .16), transparent 58%), var(--cs-page);
  padding: 80px 72px 90px;
}
.hero__title {
  /* Fluid: 36px on small phones → 62px at the 1440 design width.
     Plain wrapping (no balance) so the lines fill the column instead of
     leaving whitespace before the hero card — applies to every page. */
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-text);
  margin: 0;
}
.hero__lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--cs-text-2);
  margin: 24px 0 0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

/* Progress card (hero) */
.mock-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cs-faint);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--cs-orange-tint);
  color: var(--cs-orange-lighter);
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}
.streak-pill span { font-size: 15px; }
.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-row.goal { margin-top: 18px; }
.card-row .goal-title { color: var(--cs-text); font-weight: 700; font-size: 15px; }
.card-row .goal-xp { color: var(--cs-faint); font-size: 13px; font-weight: 600; }
.progress-bar {
  margin-top: 10px;
  height: 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--cs-orange), var(--cs-green));
  border-radius: 999px;
}
/* 2-up tile grid inside mockup cards (hero progress + learning progress) */
.tiles-2,
.learn-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.tile {
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cs-line-divider);
}
.tile--green {
  background: var(--cs-green-tint);
  border-color: rgba(50, 147, 101, .32);
}
.tile__k { font-size: 12px; font-weight: 700; color: var(--cs-faint); }
.tile--green .tile__k { color: var(--cs-green-text); }
.tile__v { font-size: 19px; font-weight: 800; color: var(--cs-text); margin-top: 3px; }
.tile__v--green { color: var(--cs-green-text); }
.emoji { line-height: 1; flex-shrink: 0; }
.emoji--24 { font-size: 24px; }
.emoji--26 { font-size: 26px; }

.up-next {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 14px;
  padding: 12px 14px;
}
.up-next__left { display: flex; align-items: center; gap: 11px; }
.up-next__k { color: var(--cs-faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.up-next__v { color: var(--cs-text); font-size: 14px; font-weight: 700; margin-top: 2px; }
.link-arrow { color: var(--cs-orange-lighter); font-size: 13px; font-weight: 700; white-space: nowrap; }

.float--progress { left: -8px; bottom: -22px; }
.float__title { color: var(--cs-text); font-size: 14px; font-weight: 800; }
.float__sub { color: var(--cs-faint); font-size: 12px; }

/* ==========================================================================
   STAT RIBBONS
   ========================================================================== */
.ribbon {
  padding: 36px 72px;
  border-top: 1px solid var(--cs-line-ribbon);
  border-bottom: 1px solid var(--cs-line-ribbon);
  background: var(--cs-alt);
}
.ribbon__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cs-orange-light);
  text-align: center;
  margin: 0 0 22px;
}
.ribbon__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { text-align: center; }
.stat + .stat { border-left: 1px solid var(--cs-line-divider); }
.stat__num {
  font-size: clamp(34px, 3.8vw, 52px);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-green-text);
  line-height: 1;
}
.stat__label {
  color: var(--cs-muted-2);
  font-size: 14px;
  margin-top: 8px;
}

/* ==========================================================================
   FEATURE CARD GRIDS (challenge / benefits)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 72px;
  margin-top: 56px;
}
.feature-grid--approach {
  grid-template-columns: repeat(4, 1fr);
  gap: 40px 48px;
}
.feature-grid--benefits { margin-top: 48px; }

.feature h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--cs-text);
  margin: 16px 0 0;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--cs-muted);
  margin: 10px 0 0;
}
.feature--approach p { margin-top: 8px; }

.icon-tile {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: var(--cs-orange-tint);
}
.icon-tile--green {
  background: rgba(50, 147, 101, .16);
  color: var(--cs-green-text);
  font-weight: 800;
}
.icon-tile--glyph { color: var(--cs-orange-lighter); font-weight: 800; }

/* ---------- "My portfolio" card (challenge) ---------- */
.portfolio-wrap { position: relative; margin: 8px 8px 24px 0; }
.portfolio {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 22px;
}
.portfolio__head,
.persona__head { display: flex; align-items: center; gap: 13px; }
.icon-box {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(50, 147, 101, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-green-bright);
  flex-shrink: 0;
}
.portfolio__name { flex: 1; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: var(--cs-text); }
.portfolio__totals { text-align: right; }
.portfolio__total { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--cs-text); line-height: 1; }
.portfolio__delta { font-size: 13px; margin-top: 4px; }
.delta-green { color: var(--cs-green-text); font-weight: 700; }
.delta-red { color: var(--cs-negative); font-weight: 700; }

.holding {
  display: flex;
  align-items: center;
  gap: 13px;
  background: rgba(255, 255, 255, .04);
  border-radius: 14px;
  padding: 12px;
}
.logo-tile {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  font-weight: 800;
  font-size: 13px;
}
.logo-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
  background: #fff;
}
/* Fallback letter colors (shown when a holding logo fails to load) */
.logo-tile--mcd { color: #B23434; }
.logo-tile--adidas { color: #111; }
.holding__name { flex: 1; }
.holding__name b,
.holding__val b { font-size: 15px; font-weight: 800; color: var(--cs-text); display: block; }
.holding__name small { font-size: 12px; color: var(--cs-faint); }
.holding__val { text-align: right; }
.holding__val small { font-size: 12px; font-weight: 700; }

.float--portfolio { right: -12px; bottom: -20px; padding: 12px 18px 12px 12px; }
.float__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-green-bright);
  flex-shrink: 0;
}
.float__big { font-size: 17px; font-weight: 800; color: var(--cs-green-text); line-height: 1; }

/* ---------- "Alex / Henriette" card (approach) ---------- */
.persona { border-radius: 24px; padding: 24px; }
/* Top-right corner badges share one geometry; only the value color differs */
.float--streak,
.float--rank { top: -16px; right: -8px; padding: 10px 16px; }
.float--streak .float__k,
.float--rank .float__k { font-size: 16px; font-weight: 800; }
.float--streak .float__k { color: var(--cs-orange-lighter); }
.float--rank .float__k { color: var(--cs-text); }
.float--streak .float__s,
.float--rank .float__s { color: var(--cs-faint); font-size: 13px; font-weight: 600; }
.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(50, 147, 101, .18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-green-text);
  flex-shrink: 0;
}
.persona__name { color: var(--cs-text); font-size: 19px; font-weight: 800; }
.persona__role { color: var(--cs-faint); font-size: 14px; }
.tiles-3 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tile-c {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cs-line-divider);
  border-radius: 16px;
  padding: 18px 10px;
  text-align: center;
}
.tile-c--green,
.learn-tile--green {
  background: var(--cs-green-tint);
  border-color: rgba(50, 147, 101, .3);
}
.tile-c__v { color: var(--cs-text); font-size: 14px; font-weight: 700; margin-top: 9px; }
.tile-c--green .tile-c__v { color: var(--cs-green-text); }

/* ---------- "Learning progress" card (benefits) ---------- */
.learning { border-radius: 22px; }
.learn-tile {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cs-line-divider);
  border-radius: 14px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.learn-tile__v { font-size: 22px; font-weight: 800; line-height: 1; color: var(--cs-text); }
.learn-tile__v--orange { color: var(--cs-orange-lighter); }
.learn-tile__v--green { color: var(--cs-green-text); }
.learn-tile__k { color: var(--cs-faint); font-size: 12px; margin-top: 3px; }

/* ==========================================================================
   COMPOUNDING SPOTLIGHT
   ========================================================================== */
.spotlight {
  padding: 80px 72px;
  background: radial-gradient(900px 420px at 18% 0%, rgba(50, 147, 101, .22), transparent 60%), var(--cs-spotlight);
  border-top: 1px solid var(--cs-line-soft);
}
.spotlight__big {
  font-size: clamp(64px, 9.6vw, 132px);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--cs-green-bright);
  line-height: .86;
  margin-top: 14px;
}
.spotlight__lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--cs-text);
  font-weight: 700;
  margin: 18px 0 0;
}
.spotlight__sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--cs-text-2);
  margin: 12px 0 0;
}
.spotlight__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.spot-card {
  background: var(--cs-card);
  border: 1px solid var(--cs-line-card);
  border-radius: 18px;
  padding: 26px;
}
.spot-card--wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
  gap: 18px;
}
.spot-card__num {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-text);
  line-height: 1;
  flex-shrink: 0;
}
.spot-card__label {
  color: var(--cs-muted-2);
  font-size: 14px;
  margin-top: 10px;
  line-height: 1.4;
}
.spot-card--wide .spot-card__label { margin-top: 0; }

/* Small right-aligned assumptions note under the compounding cards */
.spotlight__note {
  margin: 26px 0 0;
  text-align: right;
  font-size: 12.5px;
  line-height: 1.5;
  color: #A8B2BD; /* silver — deliberately non-intrusive */
}

/* ==========================================================================
   FAQ
   ========================================================================== */
/* Centered section headers (family FAQ, teacher FAQ/endorsements/subjects/
   life-skills). The block spans the section — only the intro paragraph is
   width-capped for readable line length — so long headlines stay on one
   full line instead of stacking in a narrow column. */
.faq-head,
.center-head {
  text-align: center;
  margin: 0 auto 44px;
}
.faq-head .lead,
.center-head .lead { margin: 16px auto 0; max-width: 80ch; }
/* Centered headlines DO balance — symmetric lines look right when centered,
   and a greedy wrap would strand one short word on the second line. They are
   also width-capped (like the intro below them), so a long headline wraps
   inside the same centered column as the rest instead of spanning the page. */
.faq-head .h2,
.center-head .h2 {
  text-wrap: balance;
  max-width: 42ch;
  margin-inline: auto;
}
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}
.faq {
  border-bottom: 1px solid var(--cs-line-divider);
}
.faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 6px;
  color: var(--cs-text);
  font-size: 18px;
  font-weight: 700;
}
.faq > summary::-webkit-details-marker { display: none; }
.faqmark {
  color: var(--cs-orange-light);
  font-size: 26px;
  font-weight: 300;
  flex-shrink: 0;
  display: inline-block;
  transition: transform .22s var(--cs-ease);
}
.faq[open] .faqmark { transform: rotate(45deg); }
.faq__body {
  padding: 0 6px 22px;
  color: var(--cs-text-2);
  font-size: 16px;
  line-height: 1.65;
  /* fills the full accordion width (no narrow cap) so answers use the space
     to the left of the +/× toggle instead of leaving it empty */
}

/* ==========================================================================
   JOIN / EARLY ACCESS
   ========================================================================== */
.join-card {
  background: radial-gradient(700px 340px at 85% 12%, rgba(255, 87, 1, .2), transparent 62%), var(--cs-card);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  padding: 56px 60px;
}
.join__title {
  font-size: clamp(32px, 3.5vw, 46px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--cs-text);
  margin: 0;
}
.join__lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--cs-text-2);
  margin: 18px 0 0;
}
/* (The join sections' reassurance items reuse the hero .chips/.chip pills.) */

.form-card {
  background: var(--cs-page);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  padding: 28px;
}
.form-card label {
  display: block;
  color: var(--cs-faint);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
/* Label-less stacked forms (teacher signup): no top gap on the first field */
.form-card form > .input-wrap:first-child { margin-top: 0; }
.input-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  background: var(--cs-alt);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  padding: 4px 4px 4px 16px;
  transition: border-color .15s var(--cs-ease);
}
.input-wrap:focus-within { border-color: var(--cs-orange); }
.input-wrap.invalid { border-color: var(--cs-negative); }
.input-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cs-text);
  font-size: 15px;
  font-family: inherit;
  padding: 12px 0;
}
.form-card .btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  border-radius: 12px;
  padding: 15px;
}
.form-card .btn--success { background: var(--cs-green); box-shadow: none; }
.form-error {
  color: var(--cs-negative);
  font-size: 13px;
  margin: 8px 2px 0;
  min-height: 1em;
}
.form-fine {
  text-align: center;
  color: var(--cs-faint);
  font-size: 13px;
  margin: 14px 0 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 56px 72px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  background: var(--cs-alt);
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}
.footer-contact {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
  color: var(--cs-muted-2);
  font-size: 17px;
}
.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cs-muted-2);
  text-decoration: none;
  transition: color .15s var(--cs-ease);
}
.footer-contact a:hover { color: var(--cs-text); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { color: var(--cs-faint-2); font-size: 14px; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  color: var(--cs-text-2);
  font-size: 14px;
  text-decoration: none;
  transition: color .15s var(--cs-ease);
}
.footer-legal a:hover { color: var(--cs-text); }

/* ==========================================================================
   TEACHER PAGE (teachers.html) — components not on the family page.
   Everything else on that page reuses the shared classes above.
   ========================================================================== */

/* 3-stat ribbon variant (the shared ribbon defaults to 4 columns) */
.ribbon__grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Plain oversized-emoji icon (feature cards use bare emoji, no tinted tile) */
.icon-plain { height: 40px; display: flex; align-items: center; font-size: 30px; }
.icon-plain--lg { height: 44px; font-size: 34px; }

/* Generic mockup-card header: emoji + title (+ optional pill on the right) */
.card-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.card-head .emoji { font-size: 28px; flex-shrink: 0; }
.card-head__title { font-size: 18px; font-weight: 800; color: var(--cs-text); }
.card-head__title--md { font-size: 17px; }
.card-head__title--sm { font-size: 15px; }
/* card-row used as a card header (e.g. "Recent activity" + Live) */
.card-row--head { margin-bottom: 14px; }
.card-head__sub { font-size: 14px; color: var(--cs-faint); margin-top: 4px; }
.badge-green {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(50, 147, 101, .16);
  color: var(--cs-green-text);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Assignment-builder card (hero) */
.subj-tabs { display: flex; gap: 7px; margin-bottom: 14px; }
.subj-tab {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--cs-line-divider);
  color: var(--cs-text-2);
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 0;
  border-radius: 9px;
}
.subj-tab--on {
  background: var(--cs-orange-tint);
  border: 1.5px solid rgba(255, 87, 1, .45);
  color: var(--cs-orange-lighter);
  font-weight: 800;
}
.task-stack { display: flex; flex-direction: column; gap: 8px; }
.task {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  padding: 11px 13px;
}
.task--sel { background: rgba(50, 147, 101, .12); border: 1.5px solid rgba(50, 147, 101, .4); }
.task__glyph { display: inline-flex; justify-content: center; width: 30px; font-size: 26px; flex-shrink: 0; color: var(--cs-chip-text); }
.task--sel .task__glyph, .task__check { color: var(--cs-green-text); font-weight: 800; }
.task__body { flex: 1; }
.task__t { font-size: 15px; font-weight: 700; color: var(--cs-text); }
.task__s { font-size: 12.5px; color: var(--cs-faint); }
.assign-btn {
  margin-top: 14px;
  width: 50%;
  margin-left: auto;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--cs-text);
  text-align: center;
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 800;
}

/* "From abstract to personal" comparison card */
.compare { display: flex; gap: 12px; }
.cmp { flex: 1; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 14px; padding: 15px; }
.cmp--good { background: rgba(50, 147, 101, .1); border: 1.5px solid rgba(50, 147, 101, .4); }
.cmp__tag { font-size: 10px; font-weight: 800; color: var(--cs-faint); letter-spacing: .06em; text-transform: uppercase; }
.cmp--good .cmp__tag { color: var(--cs-green-text); }
.cmp__q { font-size: 14px; color: var(--cs-text-2); font-weight: 600; margin-top: 22px; min-height: 56px; }
.cmp--good .cmp__q { color: var(--cs-text); font-weight: 700; }
.meter-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; margin-top: 12px; }
.meter-row span { color: var(--cs-faint); }
.meter-row b { font-weight: 800; }
.cmp .meter-row b { color: var(--cs-text-2); }
.cmp--good .meter-row b { color: var(--cs-green-text); }
.meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 999px; background: #4A5A6B; }
.meter > span.meter--brand { background: linear-gradient(90deg, var(--cs-orange), var(--cs-green)); }
.card-note { text-align: center; font-size: 14px; color: var(--cs-faint); margin-top: 14px; }

/* Student activity-trail card */
.trail-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--cs-line-divider);
  margin-bottom: 14px;
}
.trail-head__body { flex: 1; }
.trail-head__t { font-size: 15px; font-weight: 800; color: var(--cs-text); }
.trail-head__s { font-size: 14px; color: var(--cs-faint); margin-top: 3px; }
.avatar-emoji {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FCD34D, #F59E0B);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.trail { display: flex; flex-direction: column; }
.trail__row { display: flex; gap: 12px; }
.trail__rail { display: flex; flex-direction: column; align-items: center; }
.trail__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(50, 147, 101, .16);
  color: var(--cs-green-text);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trail__dot--star { background: var(--cs-green); color: #fff; }
.trail__line { width: 2px; flex: 1; background: rgba(255, 255, 255, .1); margin: 2px 0; }
.trail__body { flex: 1; padding-bottom: 13px; }
.trail__row:last-child .trail__body { padding-bottom: 0; }
.trail__t { font-size: 15px; font-weight: 700; color: var(--cs-text); }
.trail__s { font-size: 13px; color: var(--cs-faint); margin-top: 5px; }
.trail__s--good { color: var(--cs-green-text); }
.trail__time { font-size: 12px; color: var(--cs-faint); font-weight: 700; flex-shrink: 0; }
.trail__time--good { color: var(--cs-green-text); }

/* Class-analytics mini stat tiles (4-up) */
.tiles-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tile-c--sm { padding: 12px 6px; border-radius: 12px; }
.tile-c--sm .tile-c__v { font-size: 18px; margin-top: 4px; }
.tile-c__k { color: var(--cs-faint); font-size: 12px; margin-top: 5px; }

/* Recent-activity feed card */
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--cs-green-text); font-weight: 700; }
.live .dot { background: var(--cs-green-text); width: 6px; height: 6px; }
.feed {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  padding: 4px 16px;
}
.feed__row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--cs-line-soft); }
.feed__row:last-child { border-bottom: none; }
.feed__row .emoji { font-size: 22px; flex-shrink: 0; }
.feed__t { flex: 1; font-size: 15px; font-weight: 700; color: var(--cs-text); }
.feed__time { font-size: 13px; color: var(--cs-faint); flex-shrink: 0; }

/* Floating-badge value colors (the shared .float--rank k/v is white) */
.float__k--green { color: var(--cs-green-text) !important; }

/* Life-skills: three oversized numerals */
.skills3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.skill__num {
  font-size: clamp(64px, 8.5vw, 120px);
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--cs-orange-light);
  line-height: .8;
}
.skill__num--green { color: var(--cs-green-bright); }
.skill h3 { font-size: 24px; font-weight: 800; color: var(--cs-text); margin: 20px 0 0; }
.skill__bar { width: 40px; height: 3px; background: rgba(255, 255, 255, .15); margin: 14px 0; }
.skill p { font-size: 15px; line-height: 1.6; color: var(--cs-muted); margin: 0; }

/* UN Global Goals watermark card */
.un-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .08);
  min-height: 230px;
}
.un-card__mark {
  position: absolute;
  right: -24px;
  bottom: -24px;
  width: 190px;
  height: 190px;
  object-fit: contain;
  opacity: .24;
  pointer-events: none;
}
.un-card__body { position: relative; }
.un-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8AB4F0; }
.un-title { font-size: 20px; font-weight: 800; color: var(--cs-text); margin-top: 8px; max-width: 22ch; line-height: 1.2; }
.un-goals { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.un-goal { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--cs-chip-text); }
.un-goal b { font-weight: 800; }
.un-goal__sq { width: 11px; height: 11px; border-radius: 2px; background: var(--cs-orange); flex-shrink: 0; }

/* Endorsement quote cards + schools panel */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.quote-card { background: var(--cs-card); border: 1px solid var(--cs-line-card); border-radius: 22px; padding: 32px; }
.quote-card__mark { font-size: 56px; line-height: .6; color: var(--cs-orange-light); font-weight: 800; font-family: Georgia, serif; }
.quote-card p { font-size: 17px; line-height: 1.6; font-style: italic; color: var(--cs-chip-text); margin: 8px 0 0; }
.quote-card__logo { display: flex; align-items: center; margin-top: 20px; }
.quote-card__logo img { margin-left: auto; height: 64px; object-fit: contain; flex-shrink: 0; }

/* Subject checklists */
.subject h3 { font-size: 20px; font-weight: 800; color: var(--cs-text); margin: 16px 0 14px; }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 9px; }
.check__i { color: var(--cs-green-text); font-size: 13px; flex-shrink: 0; margin-top: 2px; }
.check__t { font-size: 14px; line-height: 1.5; color: var(--cs-text-2); }

/* ==========================================================================
   RESPONSIVE — four tiers below the 1440px design width
   (display type is fluid via clamp(); these tiers handle layout + spacing)

     ≤1280  compact desktop  — small/medium tablets landscape
     ≤1024  grid steps       — large-tablet portrait / small-tablet landscape
     ≤960   stacked          — phones landscape + tablets portrait
     ≤640   phones portrait  — and tiny landscape
   ========================================================================== */

@media (max-width: 1280px) {
  .section { padding: 80px 48px; }
  .hero { padding: 64px 48px 76px; }
  .ribbon { padding: 32px 48px; }
  .spotlight { padding: 64px 48px; }
  .site-nav { padding: 18px 36px; }
  .nav-links { gap: 24px; }
  .site-footer { padding: 48px 48px; }

  /* Keep the two-column sections, but guarantee the mockup/form column enough
     width to render without cramming — the copy column absorbs the difference.
     (Fixed fr-ratios were letting the card column collapse to ~300px.) */
  .two-col--hero,
  .two-col--wide-left { grid-template-columns: 1.3fr minmax(340px, .9fr); gap: 44px; }
  .two-col--benefits { grid-template-columns: 1.1fr minmax(340px, .9fr); gap: 44px; }
  .two-col--spotlight { gap: 44px; }
  .two-col--join { gap: 40px; }

  .feature-grid { gap: 40px 44px; }
  /* 4 approach columns get too narrow below the design width */
  .feature-grid--approach { grid-template-columns: repeat(2, 1fr); gap: 36px 44px; }
}

/* 1080 (not 1024) so 1024-wide tablets sit safely inside the tier — media
   queries at an exact device width can miss by a fraction of a pixel. */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .section { padding: 64px 36px; }
  .hero { padding: 52px 36px 64px; }
  .ribbon { padding: 30px 36px; }
  .spotlight { padding: 56px 36px; }
  .site-footer { padding: 44px 36px; }
  .site-nav { padding: 16px 28px; }
  /* The nav links are the page switcher (For families / For teachers) —
     they stay visible at every width, unlike the old section anchors. */
  .nav-links { gap: 22px; }

  .skills3 { grid-template-columns: 1fr; gap: 44px; }
  .quote-grid { grid-template-columns: 1fr; }

  /* Stack every two-column section: copy first, visual after */
  .two-col,
  .two-col--hero,
  .two-col--wide-left,
  .two-col--benefits,
  .two-col--spotlight,
  .two-col--join {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  /* Stacked mockup cards render after the copy, and don't stretch
     edge-to-edge on wide-but-stacked screens (landscape phones, portrait
     tablets) — cap and center them. */
  .two-col--hero .card--rel,
  .two-col--wide-left .portfolio-wrap,
  .two-col--wide-left .card--rel,
  .two-col--benefits .card--rel {
    order: 2;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
  }
  .two-col--join .form-card { width: 100%; max-width: 480px; margin-inline: auto; }
  .join-card { padding: 44px 36px; }

  .ribbon__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 16px;
    max-width: 640px;
    margin: 0 auto;
  }
  .stat:nth-child(odd) { border-left: none; }

  /* (Headings wrap plainly at every width via their base rules.) */
}

/* 700 (not 640) so 640-wide and 667-wide landscape phones sit safely inside
   the phone tier rather than straddling its boundary. */
@media (max-width: 700px) {
  .section { padding: 56px 20px; }
  .hero { padding: 44px 20px 56px; }
  .ribbon { padding: 26px 20px; }
  .spotlight { padding: 48px 20px; }
  .site-footer { padding: 40px 20px; }
  .join-card { padding: 36px 22px; }

  /* Phone header ("solution B"): one compact row — brand · CTA · menu button.
     The page links and the language switch live in a drop-down drawer toggled
     by the button (main.js flips .menu-open on .site-header). The CTA never
     hides; only the rarely-used items do. */
  .site-nav { position: relative; padding: 12px 14px; gap: 10px; }
  .brand__name { font-size: 18px; }
  .nav-right { gap: 8px; }
  .nav-burger { display: flex; }
  .site-nav .btn--sm {
    font-size: 13px;
    padding: 9px 16px;
    white-space: nowrap;
    box-shadow: 0 8px 16px -8px rgba(255, 87, 1, .5);
  }

  .nav-drawer {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0B141F; /* solid — page content must never bleed through */
    border-top: 1px solid rgba(255, 255, 255, .05);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .8);
    padding: 6px 10px 10px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity .18s var(--cs-ease), transform .18s var(--cs-ease);
  }
  .site-header.menu-open .nav-drawer { opacity: 1; transform: none; pointer-events: auto; }

  .nav-links { flex-direction: column; align-items: stretch; gap: 0; margin-inline: 0; }
  .nav-links a {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 10px;
    border-radius: 12px;
    font-size: 15px;
  }
  .nav-links a:hover { background: rgba(255, 255, 255, .05); }

  .lang-switch { height: 46px; padding: 0 10px; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 4px; }
  .lang-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--cs-faint-2); margin-right: auto; }
  .lang-flag { width: 24px; height: 24px; }

  section[id] { scroll-margin-top: 84px; }

  .two-col,
  .two-col--hero,
  .two-col--wide-left,
  .two-col--benefits,
  .two-col--spotlight,
  .two-col--join { gap: 36px; }

  /* Body copy a notch smaller for phone line lengths */
  .hero__lead { font-size: 17px; }
  .lead { font-size: 17px; }
  .spotlight__lead { font-size: 18px; }
  .spotlight__sub { font-size: 15px; }
  .faq > summary { font-size: 17px; padding: 18px 4px; }

  .feature-grid,
  .feature-grid--approach { grid-template-columns: 1fr; gap: 30px; }
  .spotlight__cards { grid-template-columns: 1fr; }
  .spot-card--wide { grid-column: span 1; }
  .spot-card { padding: 20px; }
  .spot-card__num { font-size: 32px; }
  .ribbon__grid { gap: 22px 12px; }

  /* Teacher-page components on phones */
  .compare { flex-direction: column; }
  .cmp__q { min-height: 0; }
  .tiles-4 { grid-template-columns: 1fr 1fr; }
  .subj-tab { font-size: 11.5px; }
  .assign-btn { width: 60%; }
  .quote-card { padding: 24px; }
  .un-card__mark { width: 150px; height: 150px; }

  /* Scale the four mockup-card visuals down on phones so their content fits the
     narrower cards without cramping (the ribbon numbers already shrink; these
     did not — text like "+150 XP" was wrapping). */
  .card, .persona { padding: 18px; }
  .portfolio__total { font-size: 22px; }
  .emoji--24 { font-size: 20px; }
  .emoji--26 { font-size: 22px; }
  .tile { padding: 12px; }
  .tile__v { font-size: 17px; }
  .tile-c__v { font-size: 13px; }
  .learn-tile { padding: 13px; }
  .learn-tile__v { font-size: 19px; }

  /* The corner badges overlap the card corners by design; give the two cards
     whose badge sits over content a little extra bottom padding so the badge
     lands on empty card surface, not on the last row's values. */
  .two-col--hero .card--rel { padding-bottom: 38px; }
  .portfolio { padding-bottom: 34px; }

  /* Footer: stack tidily at phone widths */
  .footer-top { gap: 20px; }
  .footer-contact { gap: 14px 24px; font-size: 15px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Floating badges keep their designed absolute positioning on mobile too, so
     they overlap the card corners (not docked below it). Their offsets (≤12px)
     sit within the 20px side-padding, so they never cause a horizontal scrollbar. */
}

/* On the tightest screens the wordmark yields so the CTA never wraps —
   the logomark alone still brands the row. */
@media (max-width: 430px) {
  .brand__name { display: none; }
}

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