/* =================================================================
   craigstubing.app — design system
   Dark, content-first. Three-font split: Syne / DM Sans / DM Mono.
   Tokens mirror the Film Library design system so the hub and the
   apps feel like one family.
   ================================================================= */

/* ----------------------------------------------------------------
   1. Tokens
   ---------------------------------------------------------------- */
:root {
  /* Surfaces (near-black, cinematic) */
  --bg: #0B0B0E;
  --surface: #16161B;
  --surface-elevated: #202028;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  /* Text */
  --text-primary: #F5F5F7;
  --text-secondary: #9A9AA5;
  --text-tertiary: #66666F;

  /* Accent — the hub default is warm amber; each app overrides --accent */
  --accent: #E8B85B;
  --accent-contrast: #0B0B0E;      /* readable text ON the accent */
  --accent-alt: #6FA8DC;
  --danger: #D9605B;
  --support: #5F7FFF;              /* Buy Me a Coffee blue */

  /* Typography */
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Type scale (fluid) */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.4rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3:  clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4:  clamp(2.6rem, 2rem + 3vw, 4.25rem);

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* Radii (match app: corner 14, card 18) */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 30px rgba(0, 0, 0, 0.25);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.5);

  /* Layout */
  --container: 1120px;
  --container-narrow: 760px;
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ----------------------------------------------------------------
   2. Reset / base
   ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

button { font: inherit; color: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ----------------------------------------------------------------
   3. Utilities
   ---------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.lead { font-size: var(--step-1); color: var(--text-secondary); max-width: 60ch; }

.mono { font-family: var(--font-mono); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: var(--space-4); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------
   4. Buttons
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7em 1.25em;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  white-space: nowrap;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
              border-color 0.15s var(--ease), opacity 0.15s var(--ease);
}

.btn--primary { background: var(--accent); color: var(--accent-contrast); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }

.btn--secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--hairline-strong);
}
.btn--secondary:hover { background: var(--surface); border-color: var(--accent); }

.btn--ghost { color: var(--text-primary); border-color: var(--hairline-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--support { background: var(--support); color: #fff; }
.btn--support:hover { background: color-mix(in srgb, var(--support) 88%, #fff); }

.btn--sm { font-size: var(--step--1); padding: 0.55em 1em; }
.btn--block { width: 100%; }

.btn svg { width: 1.1em; height: 1.1em; }

/* ----------------------------------------------------------------
   5. App Store / Mac App Store badges (native-style)
   ---------------------------------------------------------------- */
.store-badge {
  display: inline-flex;
  height: 48px;
  transition: opacity 0.15s var(--ease);
}
.store-badge:hover { opacity: 0.85; }
.store-badge svg { height: 100%; width: auto; }
.store-badge--disabled { opacity: 0.45; pointer-events: none; }
.store-badges { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

/* ----------------------------------------------------------------
   6. Pills / badges
   ---------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 500;
  padding: 0.35em 0.75em;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--hairline);
  line-height: 1;
}
.pill--accent {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.pill--soon {
  background: color-mix(in srgb, var(--accent-alt) 16%, transparent);
  color: var(--accent-alt);
  border-color: color-mix(in srgb, var(--accent-alt) 30%, transparent);
}
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* ----------------------------------------------------------------
   7. Header / nav
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-1);
  color: var(--text-primary);
  letter-spacing: -0.02em;
}
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  display: grid; place-items: center;
  font-size: 1rem; color: var(--accent-contrast);
  flex-shrink: 0;
}

.nav { display: flex; align-items: center; gap: var(--space-2); }
.nav__links { display: flex; align-items: center; gap: var(--space-1); }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: var(--step--1);
  font-weight: 500;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--text-primary); background: var(--surface); }
.nav__link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Apps dropdown — trigger centered in the header; menu centered on screen,
   two columns with a divider */
.nav__dropdown {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}
.nav__menu {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  left: 50%;
  translate: -50% 8px;
  width: min(620px, 92vw);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--space-5);
  list-style: none;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: var(--space-3) var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), translate 0.18s var(--ease), visibility 0.18s;
}
.nav__menu li { list-style: none; }
.nav__menu::before { /* center divider */
  content: "";
  position: absolute;
  top: var(--space-4);
  bottom: var(--space-4);
  left: 50%;
  width: 1px;
  background: var(--hairline);
}
.nav__dropdown:hover .nav__menu,
.nav__dropdown:focus-within .nav__menu,
.nav__menu[data-open="true"] {
  opacity: 1; visibility: visible; translate: -50% 0;
}
.nav__menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}
.nav__menu-item:hover { background: var(--surface-elevated); color: var(--text-primary); }
.nav__menu-item img { width: 34px; height: 34px; border-radius: 8px; }
.nav__menu-item span { font-weight: 600; color: var(--text-primary); font-size: var(--step--1); }
.nav__menu-item small { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-tertiary); }

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-sm);
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
}
.nav__toggle svg { width: 22px; height: 22px; color: var(--text-primary); }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline-strong);
    padding: var(--space-3);
    box-shadow: var(--shadow-pop);
    display: none;
  }
  .nav__links[data-open="true"] { display: flex; }
  .nav__link { padding: var(--space-3); font-size: var(--step-0); }
  .nav__dropdown { position: static; transform: none; display: block; }
  .nav__dropdown .nav__menu {
    position: static;
    translate: none;
    width: auto;
    grid-template-columns: 1fr;
    column-gap: 0;
    opacity: 1; visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding-left: var(--space-3);
  }
  .nav__menu::before { display: none; }
  .nav__dropdown > .nav__link { pointer-events: none; opacity: 0.6; }
  .nav .btn--support { margin-top: var(--space-2); }
}

/* ----------------------------------------------------------------
   8. Hero (home)
   ---------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--space-9) var(--space-7);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto 0;
  height: 600px;
  background: radial-gradient(60% 60% at 50% 0%,
    color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 { font-size: var(--step-4); font-weight: 800; max-width: 16ch; }
.hero .lead { margin-top: var(--space-5); }
.hero__actions { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__stats {
  margin-top: var(--space-7);
  display: flex; flex-wrap: wrap; gap: var(--space-6);
  font-family: var(--font-mono);
}
.hero__stat strong { display: block; font-size: var(--step-2); color: var(--text-primary); font-family: var(--font-display); }
.hero__stat span { font-size: var(--step--1); color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.1em; }

/* ----------------------------------------------------------------
   9. App grid + cards
   ---------------------------------------------------------------- */
.section-head { margin-bottom: var(--space-6); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: var(--space-2); color: var(--text-secondary); max-width: 55ch; }

.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

.app-card {
  --card-accent: var(--accent);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s var(--ease);
  overflow: hidden;
}
.app-card::after { /* top accent bar, revealed on hover/focus */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--card-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.app-card:hover { border-color: var(--hairline-strong); }
.app-card:hover::after,
.app-card:focus-within::after { opacity: 1; }

.app-card__top { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.app-card__head { display: flex; align-items: flex-start; gap: var(--space-4); }
.app-card__icon {
  width: 72px; height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
  background: transparent;
}
.app-card__titles { min-width: 0; }
.app-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--text-primary);
}
.app-card__tagline {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--card-accent);
  margin-top: 2px;
}
.app-card__summary { color: var(--text-secondary); flex-grow: 1; }
/* Actions pinned to the card bottom; badges left, "Learn more" right, bottom-aligned. */
.app-card__actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
}
/* Coming-soon cards: extra breathing room before the pill / Learn more line. */
.app-card__actions:has(.pill--soon) { padding-top: var(--space-4); }
/* In a card the badges stack vertically (App Store above Mac App Store). */
.app-card .store-badges { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.app-card__link {
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--card-accent);
  display: inline-flex; align-items: center; gap: 0.3em;
  white-space: nowrap;
}
/* Whole card is clickable: this link's overlay covers the card. */
.app-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}
.app-card__link svg { transition: none; }
/* Keep store badges independently clickable above the overlay. */
.app-card .store-badge { height: 40px; position: relative; z-index: 1; }
.app-card .pill--soon { position: relative; z-index: 1; }

/* ----------------------------------------------------------------
   10. Support banner
   ---------------------------------------------------------------- */
.support-banner {
  position: relative;
  text-align: center;
  padding: var(--space-8) var(--space-5);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--support) 22%, transparent), transparent 70%),
    var(--surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
}
.support-banner h2 { font-size: var(--step-2); }
.support-banner p { margin: var(--space-3) auto var(--space-5); max-width: 50ch; color: var(--text-secondary); }
.support-banner__emoji { font-size: 2.5rem; margin-bottom: var(--space-2); }

/* ----------------------------------------------------------------
   11. App detail page
   ---------------------------------------------------------------- */
.app-hero {
  position: relative;
  padding-block: var(--space-8) var(--space-7);
  overflow: hidden;
}
.app-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 80% 0%,
    color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%);
  z-index: -1;
}
.app-hero__grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: var(--space-6);
  align-items: center;
}
.app-hero__icon {
  width: 140px; height: 140px;
  border-radius: 30px;
  background: transparent;
}
.app-hero h1 { font-size: var(--step-3); margin-top: var(--space-3); }
.app-hero__tagline { font-family: var(--font-mono); color: var(--accent); margin-top: var(--space-2); font-size: var(--step-0); }
.app-hero__intro { margin-top: var(--space-4); max-width: 60ch; }
.app-hero__actions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
/* On the detail page, the "Coming soon" pill matches the support button's size. */
.app-hero__actions .pill--soon {
  font-size: var(--step-0);
  font-weight: 600;
  padding: 0.7em 1.25em;
  gap: var(--space-2);
}
.app-hero__actions .pill--soon svg { width: 1em; height: 1em; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}
.feature {
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.feature h3 {
  font-size: var(--step-1);
  display: flex; align-items: baseline; gap: var(--space-3);
}
.feature h3::before {
  content: counter(feat, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--accent);
  font-weight: 500;
}
.features { counter-reset: feat; }
.feature { counter-increment: feat; }
.feature p { margin-top: var(--space-2); color: var(--text-secondary); }

.shots {
  list-style: none;
  margin: 0;
  padding: 0 0 var(--space-3);
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shots li { scroll-snap-align: start; flex: 0 0 auto; }
.shots img {
  height: clamp(360px, 50vh, 560px);
  width: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
  background: var(--surface);
}

.app-note {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: var(--step--1);
}
.disclaimer { color: var(--text-tertiary); font-size: var(--step--1); margin-top: var(--space-5); }

.back-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-mono); font-size: var(--step--1);
  color: var(--text-secondary); margin-bottom: var(--space-4);
}
.back-link:hover { color: var(--accent); }

/* ----------------------------------------------------------------
   12. Legal pages
   ---------------------------------------------------------------- */
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-7); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-5); color: var(--text-primary); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-secondary); }
.prose p + p { margin-top: var(--space-4); }
.prose ul { margin: var(--space-3) 0; padding-left: var(--space-5); }
.prose li { margin-top: var(--space-2); }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text-primary); }
.prose hr { border: none; border-top: 1px solid var(--hairline); margin-block: var(--space-6); }
.prose .updated { font-family: var(--font-mono); font-size: var(--step--1); color: var(--text-tertiary); }
.legal-app { scroll-margin-top: calc(var(--header-h) + var(--space-5)); }

.toc {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-top: var(--space-5);
  margin-bottom: var(--space-7);
}
.toc h2 { font-size: var(--step-0) !important; margin: 0 0 var(--space-3) !important; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-tertiary); }
.toc ul { list-style: none; padding: 0; margin: 0; columns: 2; gap: var(--space-5); }
.toc a { font-weight: 500; }

/* ----------------------------------------------------------------
   13. Footer
   ---------------------------------------------------------------- */
.site-footer {
  margin-top: var(--space-9);
  border-top: 1px solid var(--hairline);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent));
}
.footer-cta {
  text-align: center;
  padding-block: var(--space-7);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
}
.footer-cta h2 { font-size: var(--step-2); }
.footer-cta p { margin: var(--space-2) auto var(--space-4); max-width: 44ch; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-7);
}
.footer-brand .brand { margin-bottom: var(--space-3); }
.footer-brand p { font-size: var(--step--1); color: var(--text-tertiary); max-width: 32ch; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a { font-size: var(--step--1); color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent); }
.footer-col a { display: inline-flex; align-items: center; gap: 0.4em; }
.footer-col .soon-tag { display: inline-flex; color: var(--text-tertiary); }
.footer-col .soon-tag svg { width: 13px; height: 13px; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-5);
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.footer-bottom nav a { font-family: var(--font-mono); font-size: 0.8rem; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom .mono { font-family: var(--font-mono); }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .toc ul { columns: 1; }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
  .app-hero__grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .app-hero__actions { justify-content: center; }
}

/* ----------------------------------------------------------------
   14. Motion preferences
   ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .btn:hover, .app-card:hover, .store-badge:hover { transform: none; }
}
