/* MapTrotter shared brand tokens — keep in sync with tailwind.config brand.* on every page */
:root {
  --mt-bg: #0F172A;
  --mt-card: #1A222D;
  --mt-card-hover: #242F3E;
  --mt-accent: #E2725B;
  --mt-cyan: #00E9FF;
  --mt-gold: #E5B869;
  --mt-cream: #F5F5DC;
  --mt-muted: #94a3b8;
  --mt-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

/* Animated conic angle for CTA running border (GPU-friendly) */
@property --mt-cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

body {
  background-color: var(--mt-bg);
  color: var(--mt-cream);
  font-family: var(--mt-font);
}

.accent-bg { background-color: var(--mt-accent); }
.accent-text { color: var(--mt-accent); }

/* Brand splash wordmark — strong but balanced (not edge-to-edge giant) */
.brand-splash-link {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  margin: 0;
  line-height: 0;
}

.brand-splash {
  display: block;
  /* Fixed rem widths — avoid width:% against auto-sized flex parents */
  width: 14rem;
  /* Prefer % over 100vw to avoid scrollbar-gutter horizontal shift */
  max-width: calc(100% - 0.25rem);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.3s ease;
}

.brand-splash-link:hover .brand-splash,
.brand-splash-link:focus-visible .brand-splash {
  transform: scale(1.02);
}

/* Homepage / primary headers: brand-first, centered on mobile */
.brand-splash--home {
  width: 15.5rem;
  max-width: min(15.5rem, calc(100% - 0.5rem));
  margin-inline: auto;
  object-position: center;
}

/* Optical nudge: coral MAPTROTTER sits left of PNG mid ("live" overhangs right).
   object-position is a no-op when the image fills the box, so translate instead. */
@media (max-width: 639.98px) {
  .mt-header-primary .brand-splash--home {
    /* ~coral glyph offset inside splash.png at home width */
    transform: translateX(0.125rem);
  }

  .mt-header-primary .brand-splash-link:hover .brand-splash--home,
  .mt-header-primary .brand-splash-link:focus-visible .brand-splash--home {
    transform: translateX(0.125rem) scale(1.02);
  }
}

@media (min-width: 640px) {
  .brand-splash {
    width: 18rem;
    max-width: 100%;
  }

  .brand-splash--home {
    width: 22rem;
    max-width: 100%;
    margin-inline: 0;
    object-position: left center;
  }
}

@media (min-width: 768px) {
  .brand-splash {
    width: 22rem;
  }

  .brand-splash--home {
    width: 26rem;
  }
}

/*
 * Language chrome:
 * - Mobile: in-flow under centered splash (stack: splash → lang → CTAs)
 * - Desktop (sm+): absolute top-right corner utility
 */
.mt-lang-chrome {
  position: static;
  z-index: 20;
  display: flex;
  justify-content: center;
  width: auto;
  flex: none;
}

.mt-lang-chrome #lang-btn {
  background: rgba(26, 34, 45, 0.65);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--mt-muted);
  padding: 0.375rem 0.625rem;
  font-size: 0.6875rem;
}

.mt-lang-chrome #lang-btn:hover,
.mt-lang-chrome #lang-btn:focus {
  background: var(--mt-card);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

@media (min-width: 640px) {
  .mt-lang-chrome {
    position: absolute;
    top: 0.25rem;
    right: 0;
    justify-content: flex-end;
  }

  .mt-lang-chrome #lang-btn {
    font-size: 0.75rem;
  }
}

/* Mobile: centered column. Desktop: offset row (brand + CTAs), lang out of flow */
.mt-header-primary {
  padding-top: 0;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mt-header-primary .brand-splash-link {
  flex: none;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  /* Kill any leftover asymmetric padding from prior layouts */
  padding-inline: 0;
  align-self: center;
}

@media (min-width: 640px) {
  .mt-header-primary {
    padding-top: 0.5rem;
    padding-right: 5.75rem;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
  }

  .mt-header-primary .brand-splash-link {
    margin-inline: 0;
    align-self: auto;
  }
}

/* Primary CTA pair — only the two action buttons */
.mt-cta-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .mt-cta-pair {
    justify-content: flex-start;
    flex-shrink: 0;
    gap: 0.75rem;
  }
}

/* Solid accent CTA — FOMO: soft pulse + running warm border */
.mt-cta {
  --mt-cta-angle: 0deg;
  position: relative;
  display: inline-block;
  isolation: isolate;
  z-index: 0;
  background-color: var(--mt-accent);
  color: #ffffff !important;
  font-weight: 700;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.25),
    0 0 0 0 rgb(226 114 91 / 0.35);
  text-decoration: none !important;
  text-align: center;
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.1s ease;
  animation: mt-cta-pulse 2.8s ease-in-out infinite;
  animation-play-state: paused; /* until body.mt-motion-cta */
}

body.mt-motion-cta .mt-cta {
  animation-play-state: running;
}

/* Running border via masked conic-gradient (warm brand hues, not purple) */
.mt-cta::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--mt-cta-angle),
    var(--mt-accent),
    var(--mt-gold),
    rgba(0, 233, 255, 0.85),
    var(--mt-gold),
    var(--mt-accent)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: mt-cta-border-spin 3.2s linear infinite;
  animation-play-state: paused;
  pointer-events: none;
  opacity: 0.9;
}

body.mt-motion-cta .mt-cta::before {
  animation-play-state: running;
}

.mt-cta:hover,
.mt-cta:focus,
.mt-cta:focus-visible {
  color: #ffffff !important;
  filter: brightness(1.08);
  text-decoration: none !important;
}

.mt-cta:active {
  transform: scale(0.97);
  animation: none;
}

.mt-cta:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

@keyframes mt-cta-pulse {
  0%, 100% {
    box-shadow:
      0 10px 15px -3px rgb(0 0 0 / 0.25),
      0 0 0 0 rgb(226 114 91 / 0.28),
      0 0 18px -4px rgb(229 184 105 / 0.25);
  }
  50% {
    box-shadow:
      0 10px 15px -3px rgb(0 0 0 / 0.25),
      0 0 0 6px rgb(226 114 91 / 0),
      0 0 28px -2px rgb(229 184 105 / 0.4);
  }
}

@keyframes mt-cta-border-spin {
  to { --mt-cta-angle: 360deg; }
}

.mt-cta--sm {
  padding: 0.625rem 1rem;
  font-size: 0.75rem;
}

@media (min-width: 640px) {
  .mt-cta--sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

.prose a.mt-cta,
.prose .article-cta a,
.article-cta a.mt-cta {
  color: #ffffff !important;
  text-decoration: none !important;
}

.prose a.mt-cta:hover,
.prose .article-cta a:hover,
.article-cta a.mt-cta:hover {
  color: #ffffff !important;
}

/* —— Hero title: true center on mobile; balanced wrap —— */
.mt-hero {
  position: relative;
  text-align: center;
}

.mt-hero-title {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
  /* Explicit reset — no leftover transform/indent from older layouts */
  transform: none;
  margin-left: auto;
  margin-right: auto;
  padding-inline: 0;
  letter-spacing: -0.02em;
}

.mt-hero-title > span {
  display: inline;
}

/* Soft shimmer on the accent line (“…right where you are”) */
.mt-title-shimmer {
  background-image: linear-gradient(
    105deg,
    var(--mt-accent) 0%,
    var(--mt-accent) 38%,
    var(--mt-gold) 48%,
    #fff6e8 52%,
    var(--mt-gold) 56%,
    var(--mt-accent) 66%,
    var(--mt-accent) 100%
  );
  background-size: 220% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: mt-title-shimmer 5.5s ease-in-out infinite;
  animation-play-state: paused; /* until body.mt-motion-shimmer */
}

body.mt-motion-shimmer .mt-title-shimmer {
  animation-play-state: running;
}

@keyframes mt-title-shimmer {
  0%, 70% { background-position: 100% 50%; }
  85% { background-position: 0% 50%; }
  100% { background-position: 0% 50%; }
}

/*
 * Motif: organic spot pops — JS spawns random emoji + motion class + position.
 * Cap at 5; transform+opacity only; paused when .is-paused (offscreen).
 */
.mt-spot-pops {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.mt-hero > *:not(.mt-spot-pops) {
  position: relative;
  z-index: 1;
}

.mt-spot-pops span {
  position: absolute;
  font-size: 1.85rem;
  line-height: 1;
  opacity: 0;
  will-change: transform, opacity;
  user-select: none;
  filter: drop-shadow(0 3px 8px rgb(0 0 0 / 0.4));
  /* Motion applied via .mt-pop-anim-* (picked at random per spawn) */
}

.mt-spot-pops.is-paused span,
.mt-spot-pops[hidden] span {
  animation-play-state: paused !important;
  opacity: 0;
  will-change: auto;
}

/* Distinct one-shot motions — each spawn picks one at random */
.mt-spot-pops span.mt-pop-anim-a {
  animation: mt-pop-drift-a 7.2s cubic-bezier(0.22, 1.2, 0.36, 1) 1 both;
}
.mt-spot-pops span.mt-pop-anim-b {
  animation: mt-pop-drift-b 8.6s cubic-bezier(0.34, 1.4, 0.64, 1) 1 both;
}
.mt-spot-pops span.mt-pop-anim-c {
  animation: mt-pop-drift-c 6.8s cubic-bezier(0.16, 1, 0.3, 1) 1 both;
}
.mt-spot-pops span.mt-pop-anim-d {
  animation: mt-pop-drift-d 9.4s cubic-bezier(0.45, 0.05, 0.2, 1.2) 1 both;
}
.mt-spot-pops span.mt-pop-anim-e {
  animation: mt-pop-drift-e 7.8s cubic-bezier(0.28, 1.35, 0.4, 1) 1 both;
}
.mt-spot-pops span.mt-pop-anim-f {
  animation: mt-pop-drift-f 8.2s cubic-bezier(0.2, 0.9, 0.3, 1.15) 1 both;
}
.mt-spot-pops span.mt-pop-anim-g {
  animation: mt-pop-drift-g 10s cubic-bezier(0.33, 1.2, 0.5, 1) 1 both;
}

@keyframes mt-pop-drift-a {
  0%   { opacity: 0; transform: translate3d(-18px, 28px, 0) rotate(-28deg) scale(0.45); }
  14%  { opacity: 0.85; transform: translate3d(10px, -4px, 0) rotate(14deg) scale(1.2); }
  32%  { opacity: 0.7; transform: translate3d(-8px, -22px, 0) rotate(-10deg) scale(1.05); }
  48%  { opacity: 0; transform: translate3d(22px, -48px, 0) rotate(26deg) scale(0.6); }
  100% { opacity: 0; transform: translate3d(22px, -48px, 0) rotate(26deg) scale(0.6); }
}
@keyframes mt-pop-drift-b {
  0%   { opacity: 0; transform: translate3d(24px, 16px, 0) rotate(32deg) scale(0.4); }
  10%  { opacity: 0.75; transform: translate3d(-6px, -12px, 0) rotate(-18deg) scale(1.15); }
  26%  { opacity: 0.65; transform: translate3d(14px, 8px, 0) rotate(8deg) scale(1); }
  40%  { opacity: 0; transform: translate3d(-20px, -40px, 0) rotate(-36deg) scale(0.55); }
  100% { opacity: 0; transform: translate3d(-20px, -40px, 0) rotate(-36deg) scale(0.55); }
}
@keyframes mt-pop-drift-c {
  0%   { opacity: 0; transform: translate3d(-10px, 20px, 0) rotate(8deg) scale(0.5); }
  18%  { opacity: 0.8; transform: translate3d(16px, -14px, 0) rotate(-22deg) scale(1.25); }
  36%  { opacity: 0.55; transform: translate3d(-14px, -6px, 0) rotate(16deg) scale(0.95); }
  52%  { opacity: 0; transform: translate3d(8px, -44px, 0) rotate(-4deg) scale(0.65); }
  100% { opacity: 0; transform: translate3d(8px, -44px, 0) rotate(-4deg) scale(0.65); }
}
@keyframes mt-pop-drift-d {
  0%   { opacity: 0; transform: translate3d(12px, 24px, 0) rotate(-40deg) scale(0.35); }
  12%  { opacity: 0.7; transform: translate3d(-18px, -8px, 0) rotate(20deg) scale(1.18); }
  30%  { opacity: 0.6; transform: translate3d(6px, -26px, 0) rotate(-12deg) scale(1.05); }
  44%  { opacity: 0; transform: translate3d(-28px, -52px, 0) rotate(30deg) scale(0.5); }
  100% { opacity: 0; transform: translate3d(-28px, -52px, 0) rotate(30deg) scale(0.5); }
}
@keyframes mt-pop-drift-e {
  0%   { opacity: 0; transform: translate3d(0, 14px, 0) rotate(0deg) scale(0.4); }
  8%   { opacity: 0.65; transform: translate3d(-16px, -10px, 0) rotate(-24deg) scale(1.1); }
  22%  { opacity: 0.55; transform: translate3d(18px, -4px, 0) rotate(18deg) scale(1); }
  38%  { opacity: 0; transform: translate3d(-6px, -36px, 0) rotate(-8deg) scale(0.7); }
  100% { opacity: 0; transform: translate3d(-6px, -36px, 0) rotate(-8deg) scale(0.7); }
}
/* Spin-wobble rise */
@keyframes mt-pop-drift-f {
  0%   { opacity: 0; transform: translate3d(8px, 30px, 0) rotate(0deg) scale(0.3); }
  15%  { opacity: 0.9; transform: translate3d(-12px, -8px, 0) rotate(40deg) scale(1.25); }
  35%  { opacity: 0.7; transform: translate3d(20px, -20px, 0) rotate(-30deg) scale(1.05); }
  55%  { opacity: 0; transform: translate3d(-6px, -55px, 0) rotate(55deg) scale(0.55); }
  100% { opacity: 0; transform: translate3d(-6px, -55px, 0) rotate(55deg) scale(0.55); }
}
/* Soft lateral glide */
@keyframes mt-pop-drift-g {
  0%   { opacity: 0; transform: translate3d(-30px, 10px, 0) rotate(-12deg) scale(0.5); }
  20%  { opacity: 0.8; transform: translate3d(4px, -16px, 0) rotate(10deg) scale(1.15); }
  45%  { opacity: 0.6; transform: translate3d(28px, -8px, 0) rotate(-6deg) scale(1); }
  65%  { opacity: 0; transform: translate3d(40px, -42px, 0) rotate(18deg) scale(0.65); }
  100% { opacity: 0; transform: translate3d(40px, -42px, 0) rotate(18deg) scale(0.65); }
}

/* —— Google Play robot rocket gag —— */
.mt-store-btn--play {
  position: relative;
  overflow: visible;
}

.mt-play-rocket-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

/* Invisible placeholder keeps layout while flyer is fixed */
.mt-play-rocket-slot.is-empty::before {
  content: "🤖";
  visibility: hidden;
}

.mt-play-rocket {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.5rem;
  line-height: 1;
  transform-origin: 50% 70%;
  pointer-events: none;
  z-index: 1;
}

.mt-play-rocket__bot {
  position: relative;
  z-index: 2;
  display: block;
  line-height: 1;
}

/* Flame + smoke — GPU-friendly, only visible while flying */
.mt-play-rocket__flame,
.mt-play-rocket__smoke {
  position: absolute;
  left: 50%;
  top: 72%;
  width: 0.7rem;
  height: 1.15rem;
  margin-left: -0.35rem;
  border-radius: 40% 40% 50% 50%;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transform: translate3d(0, 0, 0) scaleY(0.4);
  background: linear-gradient(
    180deg,
    #fff8c4 0%,
    #ffe066 25%,
    var(--mt-gold) 45%,
    var(--mt-accent) 78%,
    transparent 100%
  );
  filter: blur(0.4px);
  box-shadow: 0 0 10px 2px rgb(226 114 91 / 0.45);
}

.mt-play-rocket__smoke {
  width: 1.05rem;
  height: 1.35rem;
  margin-left: -0.525rem;
  top: 95%;
  background: radial-gradient(circle, rgb(203 213 225 / 0.65) 0%, transparent 70%);
  filter: blur(2.5px);
  box-shadow: none;
}

.mt-play-rocket.is-flying {
  position: fixed;
  z-index: 80;
  margin: 0;
  /*
   * linear timing — ease must NOT be per-segment (that caused freinage
   * at each keyframe). Acceleration is baked into keyframe spacing.
   */
  animation: mt-rocket-orbit 2.7s linear forwards;
}

.mt-play-rocket.is-flying .mt-play-rocket__flame {
  opacity: 1;
  animation: mt-rocket-flame 0.22s ease-in-out infinite alternate;
}

.mt-play-rocket.is-flying .mt-play-rocket__smoke {
  opacity: 0.85;
  animation: mt-rocket-smoke 0.35s ease-out infinite;
}

.mt-play-rocket.is-reappearing {
  animation: mt-rocket-reappear 0.55s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

/*
 * Continuous SpaceX-like arc (dense samples, monotonic Y up).
 * X peaks gently then softens — no hard reverse. Rotate follows path.
 * Early % = small deltas (slow lift); late % = large deltas (accel).
 */
@keyframes mt-rocket-orbit {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); opacity: 1; }
  8%   { transform: translate3d(4px, -2vh, 0) rotate(-6deg) scale(1.02); opacity: 1; }
  16%  { transform: translate3d(12px, -5vh, 0) rotate(-12deg) scale(1.05); opacity: 1; }
  24%  { transform: translate3d(24px, -10vh, 0) rotate(-18deg) scale(1.08); opacity: 1; }
  32%  { transform: translate3d(40px, -16vh, 0) rotate(-24deg) scale(1.1); opacity: 1; }
  40%  { transform: translate3d(58px, -24vh, 0) rotate(-30deg) scale(1.1); opacity: 1; }
  48%  { transform: translate3d(74px, -34vh, 0) rotate(-35deg) scale(1.08); opacity: 1; }
  56%  { transform: translate3d(88px, -46vh, 0) rotate(-38deg) scale(1.05); opacity: 1; }
  64%  { transform: translate3d(98px, -60vh, 0) rotate(-40deg) scale(1.02); opacity: 1; }
  72%  { transform: translate3d(104px, -74vh, 0) rotate(-38deg) scale(0.98); opacity: 0.98; }
  80%  { transform: translate3d(102px, -88vh, 0) rotate(-32deg) scale(0.92); opacity: 0.95; }
  88%  { transform: translate3d(96px, -100vh, 0) rotate(-24deg) scale(0.82); opacity: 0.85; }
  94%  { transform: translate3d(88px, -110vh, 0) rotate(-16deg) scale(0.7); opacity: 0.55; }
  100% { transform: translate3d(80px, -120vh, 0) rotate(-10deg) scale(0.55); opacity: 0; }
}

@keyframes mt-rocket-flame {
  from { transform: translate3d(0, 0, 0) scaleY(0.7) scaleX(0.85); opacity: 0.85; }
  to   { transform: translate3d(0, 4px, 0) scaleY(1.35) scaleX(1.1); opacity: 1; }
}

@keyframes mt-rocket-smoke {
  0%   { transform: translate3d(0, 0, 0) scale(0.6); opacity: 0.7; }
  100% { transform: translate3d(-4px, 14px, 0) scale(1.6); opacity: 0; }
}

@keyframes mt-rocket-reappear {
  0%   { opacity: 0; transform: scale(0.4) rotate(-20deg); }
  60%  { opacity: 1; transform: scale(1.15) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* —— App Store apple: longer left roll → tip-off fall (near end of rocket) —— */
.mt-store-btn--apple {
  position: relative;
  overflow: visible;
}

.mt-apple-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  font-size: 1.5rem;
  line-height: 1;
}

.mt-apple-slot.is-empty::before {
  content: "🍏";
  visibility: hidden;
}

.mt-apple {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  font-size: 1.5rem;
  line-height: 1;
  transform-origin: 50% 50%;
  pointer-events: none;
  z-index: 1;
}

.mt-apple.is-tipping {
  position: fixed;
  z-index: 79;
  margin: 0;
  /*
   * Short tip-off at button exit edge (~⅓ prior horizontal path).
   * linear = no per-segment freinage; rotate synced to travel.
   * Roll wall-clock kept (~0.62s @ 46% of 1.35s) → slower feel over short distance.
   */
  animation: mt-apple-roll-fall 1.35s linear forwards;
}

.mt-apple.is-reappearing {
  animation: mt-apple-reappear 0.5s cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

@keyframes mt-apple-roll-fall {
  /* Phase 1 — short roll to App Store button left exit edge (~27px ≈ prior×⅓) */
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }
  12% {
    transform: translate3d(-7px, 0, 0) rotate(-32deg);
    opacity: 1;
  }
  24% {
    transform: translate3d(-14px, 0, 0) rotate(-64deg);
    opacity: 1;
  }
  35% {
    transform: translate3d(-21px, 1px, 0) rotate(-96deg);
    opacity: 1;
  }
  46% {
    /* tip off button frame edge */
    transform: translate3d(-27px, 5px, 0) rotate(-130deg);
    opacity: 1;
  }
  /* Phase 2 — angled fall (also ×⅓ horizontal; denser samples for fluid drop) */
  58% {
    transform: translate3d(-38px, 12vh, 0) rotate(-200deg);
    opacity: 1;
  }
  70% {
    transform: translate3d(-48px, 32vh, 0) rotate(-280deg);
    opacity: 1;
  }
  82% {
    transform: translate3d(-57px, 58vh, 0) rotate(-360deg);
    opacity: 0.92;
  }
  92% {
    transform: translate3d(-64px, 88vh, 0) rotate(-430deg);
    opacity: 0.55;
  }
  100% {
    transform: translate3d(-70px, 115vh, 0) rotate(-480deg);
    opacity: 0;
  }
}

@keyframes mt-apple-reappear {
  0%   { opacity: 0; transform: scale(0.35) rotate(25deg); }
  65%  { opacity: 1; transform: scale(1.12) rotate(-8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mt-cta,
  .mt-cta::before,
  .mt-title-shimmer,
  .mt-spot-pops span,
  .mt-play-rocket,
  .mt-play-rocket__flame,
  .mt-play-rocket__smoke,
  .mt-apple {
    animation: none !important;
  }

  .mt-cta {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.25);
  }

  .mt-cta::before {
    opacity: 0.55;
    background: linear-gradient(
      135deg,
      var(--mt-gold),
      var(--mt-accent),
      rgba(0, 233, 255, 0.7)
    );
  }

  .mt-title-shimmer {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--mt-accent);
  }

  .mt-spot-pops {
    display: none;
  }

  .mt-play-rocket__flame,
  .mt-play-rocket__smoke {
    display: none;
  }
}

/* Optional text fallback if splash.png fails to load */
.brand-wordmark-fallback {
  display: inline-block;
  font-family: var(--mt-font);
  font-weight: 800;
  font-size: clamp(1.35rem, 6vw, 2.35rem);
  letter-spacing: 0.02em;
  color: var(--mt-accent);
  line-height: 1;
  padding: 0.25rem 0;
}

.brand-wordmark-fallback[hidden] {
  display: none !important;
}

.brand-wordmark-fallback em {
  font-style: italic;
  font-weight: 500;
  font-size: 0.55em;
  color: var(--mt-cyan);
  margin-left: 0.15em;
}

/* Article / legal prose */
.prose h1 {
  color: #ffffff;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.prose h2 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h3 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.prose ul {
  color: #cbd5e1;
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.prose ol {
  color: #cbd5e1;
  list-style-type: decimal;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}

.prose li { margin-bottom: 0.5rem; }

.prose a {
  color: var(--mt-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose a:hover { color: #f08a75; }

.prose blockquote {
  border-left: 3px solid var(--mt-accent);
  padding-left: 1rem;
  margin: 1.5rem 0;
  color: #e2e8f0;
  font-style: italic;
}

.prose strong { color: #ffffff; font-weight: 700; }

/* LLMO / future Markdown blocks */
.direct-answer {
  background: linear-gradient(135deg, rgba(26, 34, 45, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(226, 114, 91, 0.35);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem;
}

.direct-answer p {
  margin-bottom: 0;
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-cta {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--mt-card), var(--mt-bg));
  border: 1px solid rgba(226, 114, 91, 0.3);
  border-radius: 1rem;
  text-align: center;
}

.article-faq details {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  background: rgba(26, 34, 45, 0.5);
}

.article-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
}

.article-faq details[open] summary { margin-bottom: 0.75rem; }
