/* ===================================================================
   ME-DB brand layer (2026-10-17)
   One set of tokens and chrome for the landing-style React pages
   (loaded from index.html) and, from the blog chunk of the redesign,
   for the static blog (post-style.css @imports this file).
   Tokens live on :root. Every other rule is scoped to .brand, so the
   logged-in app and the demo are untouched.
   Plan: vault projects/me-db/plans/landing-blog-redesign.md
   Note: App.css has a global `* { max-width: 100% !important }` (overflow
   guard), so every max-width here carries !important too; nothing else
   needs it.
   Look: Ethan's original landing palette (2026-10-17, "I still like the
   original style of my app better"): navy and deep-navy sections
   alternating with light grey ones, yellow accent, tall navbar, emoji as
   icons. Sections switch palette by redefining the text/surface tokens
   on the section (see .brand-section--light), so panels, buttons and the
   accordion adapt without extra rules.
   =================================================================== */

:root {
  /* dark palette (page default) */
  --navy: #1d2144;
  --navy-deep: #0f1629;
  --footer-bg: #1a252f;
  --bg-0: var(--navy);
  --bg-2: rgba(255, 255, 255, 0.06);        /* raised panel on navy */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --text: #ffffff;
  --text-2: #f1f5f9;
  --text-3: rgba(241, 245, 249, 0.72);

  /* light palette (grey sections, legal pages) */
  --light-bg: #e5e7eb;
  --light-panel: #ffffff;
  --light-text: #1f2937;
  --light-text-2: #6b7280;
  --light-text-3: #9ca3af;
  --light-line: rgba(0, 0, 0, 0.08);
  --light-line-strong: rgba(0, 0, 0, 0.16);

  /* accent */
  --accent: #ffc107;
  --accent-hover: #ffcd38;
  --accent-ink: #1a1a2e;
  --link: var(--accent);

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: clamp(2.25rem, 1.4rem + 3.5vw, 3.5rem);
  --h2: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem);

  /* shape + depth */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --pill: 50rem;
  --shadow-raised: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 28px -14px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);

  /* motion: press and hover only, nothing scroll-triggered */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --t-press: 120ms;
  --t-hover: 180ms;

  --nav-h: 80px;
  --nav-h-scrolled: 60px;
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(255, 255, 255, 0.3);
    --line-strong: rgba(255, 255, 255, 0.5);
    --text-3: #e2e8f0;
    --light-line: rgba(0, 0, 0, 0.3);
    --light-text-2: #374151;
    --light-text-3: #4b5563;
  }
}

/* --- Page shell ---------------------------------------------------- */
.brand {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  color-scheme: dark;
  line-height: 1.6;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.brand *,
.brand *::before,
.brand *::after { -webkit-tap-highlight-color: transparent; }

/* Light sections and light pages: swap the tokens, everything inside follows. */
.brand-section--light,
.brand--light {
  --bg-0: var(--light-bg);
  --bg-2: var(--light-panel);
  --line: var(--light-line);
  --line-strong: var(--light-line-strong);
  --text: var(--light-text);
  --text-2: var(--light-text-2);
  --text-3: var(--light-text-3);
  --link: #9a6700;
  background: var(--bg-0);
  color: var(--text);
  color-scheme: light;
}
.brand-section--deep { background: var(--navy-deep); }

.brand h1, .brand h2, .brand h3, .brand h4, .brand h5 {
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}
.brand p { margin: 0 0 1rem; }
.brand a { color: inherit; }
.brand a:focus-visible,
.brand button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.brand-display { font-size: var(--display); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.brand-display .accent { color: var(--accent); }
.brand-h2 { font-size: var(--h2); line-height: 1.15; letter-spacing: -0.015em; }
.brand-h3 { font-size: 1.15rem; font-weight: 600; }
.brand-lead { font-size: 1.2rem; color: var(--text-2); max-width: 40rem !important; }
.brand-muted { color: var(--text-3); }
.brand .text-muted { color: var(--text-3) !important; }
.brand-center { text-align: center; }
.brand-center .brand-lead { margin-left: auto; margin-right: auto; }

.brand-container {
  width: 100%;
  max-width: 1120px !important;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.brand-section { padding: 80px 0; }
.brand-section > .brand-container > .brand-h2 { margin-bottom: 1.5rem; }
@media (min-width: 768px) {
  .brand-section { padding: 100px 0; }
}
.brand-page-main { flex: 1; padding-top: 40px; padding-bottom: 72px; }
@media (min-width: 768px) {
  .brand-page-main { padding-top: 56px; padding-bottom: 96px; }
}

/* Emoji used as icons: fixed boxes so they line up and never jitter. */
.emoji { display: inline-block; line-height: 1; }
.emoji--xl { font-size: 4.5rem; }
.emoji--lg { font-size: 2.75rem; }
.emoji--md { font-size: 1.35rem; }

/* --- Prose (About story, Privacy, Terms, Add to Home Screen, 404) --- */
.brand-prose { max-width: 680px !important; }
.brand-prose h1 { font-size: clamp(1.75rem, 1.3rem + 1.5vw, 2.4rem); letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 1rem; }
.brand-prose h2, .brand-prose h5 { font-size: 1.2rem; font-weight: 600; margin: 2rem 0 0.6rem; }
.brand-prose p, .brand-prose li { color: var(--text-2); }
.brand-prose p { font-size: 1.05rem; }
.brand-prose ul, .brand-prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.brand-prose li { margin-bottom: 0.35rem; }
.brand-prose strong { color: var(--text); font-weight: 600; }
.brand-prose a, .brand-link {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.brand-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 32px;
}
@media (min-width: 768px) {
  .brand-card { padding: 48px; }
}
.step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--light-text);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  flex: none;
}

/* --- Buttons --------------------------------------------------------- */
.brand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color var(--t-hover) var(--ease-out),
    border-color var(--t-hover) var(--ease-out),
    color var(--t-hover) var(--ease-out);
}
.brand-btn:active { transform: scale(0.97); }
.brand-btn img, .brand-btn svg { width: 18px; height: 18px; flex: none; }
.brand-btn--sm { min-height: 38px; padding: 0 18px; font-size: 0.9rem; }
.brand-btn--lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.brand-btn--pill { border-radius: var(--pill); }

.brand .brand-btn--primary,
.brand .brand-btn--primary:hover,
.brand .brand-btn--primary:focus { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.brand .brand-btn--light,
.brand .brand-btn--light:hover,
.brand .brand-btn--light:focus { background: #ffffff; color: #1a1a2e; border-color: #ffffff; }
.brand .brand-btn--outline,
.brand .brand-btn--outline:hover,
.brand .brand-btn--outline:focus { background: transparent; color: var(--text); border-color: var(--line-strong); }
.brand .brand-btn--secondary,
.brand .brand-btn--secondary:hover,
.brand .brand-btn--secondary:focus { background: #ffffff; color: #1f2937; border-color: #d1d5db; }

@media (hover: hover) and (pointer: fine) {
  .brand .brand-btn--primary:hover { background: var(--accent-hover); }
  .brand .brand-btn--light:hover { background: #f1f5f9; }
  .brand .brand-btn--outline:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--text); }
  .brand .brand-btn--secondary:hover { background: #f3f4f6; }
}

/* --- Site nav (same class names the blog partial uses) --------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(29, 33, 68, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid var(--line);
  color: #ffffff;
}
.site-nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  transition: height 200ms var(--ease-out);
}
.site-nav.is-scrolled .site-nav-inner { height: var(--nav-h-scrolled); }
/* Once scrolled the bar turns white with dark text, like the original landing navbar. */
.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  color: #1f2937;
}
.site-nav.is-scrolled .nav-brand,
.site-nav.is-scrolled .nav-brand:hover,
.site-nav.is-scrolled .nav-toggle { color: #1f2937; }
.site-nav.is-scrolled .nav-links a { color: #4b5563; }
.site-nav.is-scrolled .nav-links a.is-current { color: #1f2937; background: rgba(0, 0, 0, 0.06); }
.site-nav.is-scrolled .nav-links a:active,
.site-nav.is-scrolled .nav-toggle:active { background: rgba(0, 0, 0, 0.06); }
.brand .site-nav.is-scrolled .nav-signin,
.brand .site-nav.is-scrolled .nav-signin:hover,
.brand .site-nav.is-scrolled .nav-signin:focus { background: #1f2937; color: #ffffff; border-color: #1f2937; }
.site-nav.is-scrolled .nav-menu { background: #f8f9fa; border-color: #e5e7eb; }
.site-nav.is-scrolled .nav-menu a,
.site-nav.is-scrolled .nav-menu button { color: #1f2937; }
.site-nav.is-scrolled .nav-menu a:active,
.site-nav.is-scrolled .nav-menu button:active { background: rgba(0, 0, 0, 0.06); }
@media (hover: hover) and (pointer: fine) {
  .site-nav.is-scrolled .nav-links a:hover { color: #1f2937; background: rgba(0, 0, 0, 0.06); }
  .brand .site-nav.is-scrolled .nav-signin:hover { background: #111827; }
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: #ffffff;
  text-decoration: none;
}
.nav-brand:hover, .nav-brand:focus { color: #ffffff; }
.nav-brand img { width: 32px; height: 32px; display: block; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--pill);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color var(--t-hover) var(--ease-out), background-color var(--t-hover) var(--ease-out);
}
.nav-links a.is-current { color: #ffffff; background: rgba(255, 255, 255, 0.1); }
.nav-links a:active { background: rgba(255, 255, 255, 0.16); }
/* Section links fit next to Blog / About and the two pills from ~1100px up; below that the
   landing keeps Blog / About in the bar and the sections move to the mobile menu. */
@media (max-width: 1099.98px) {
  .nav-section-link { display: none; }
}
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: #ffffff;
  cursor: pointer;
  touch-action: manipulation;
}
.nav-toggle:active { background: rgba(255, 255, 255, 0.08); }
.nav-toggle svg { width: 24px; height: 24px; }
.nav-menu { display: none; }
@media (hover: hover) and (pointer: fine) {
  /* Hover = a soft pill behind the link, not just a text colour change. */
  .nav-links a:hover { color: #ffffff; background: rgba(255, 255, 255, 0.12); }
}
@media (max-width: 767.98px) {
  :root { --nav-h: 64px; --nav-h-scrolled: 56px; }
  .nav-brand { font-size: 1.25rem; }
  .nav-brand img { width: 28px; height: 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .nav-signin { display: none; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 12px 12px;
    padding: 8px 12px 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
  }
  .nav-menu.is-open { display: block; }
  .nav-menu a, .nav-menu button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: none;
    font: inherit;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
  }
  .nav-menu a:active, .nav-menu button:active { background: rgba(255, 255, 255, 0.08); }
}
@media (prefers-reduced-transparency: reduce) {
  .site-nav { background: var(--navy); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* --- Landing: hero ---------------------------------------------------- */
.hero { padding: 64px 0 56px; text-align: center; }
@media (min-width: 768px) {
  .hero { padding: 96px 0 72px; }
}
.hero .brand-display { margin: 0 auto 1.25rem; max-width: 18ch !important; }
.hero .brand-lead { margin: 0 auto 28px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-actions .brand-btn { min-width: 240px; }
@media (max-width: 479.98px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .brand-btn { width: 100%; }
}
.hero-note { margin: 14px 0 0; font-size: 0.9rem; color: var(--text-3); }
.hero-shot {
  display: block;
  max-width: 1000px !important;
  margin: 40px auto 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-raised);
  background: #2c3e50;   /* the app's own background, so the screenshot edge is invisible while it loads */
  transition: transform var(--t-press) var(--ease-out);
}
.hero-shot:active { transform: scale(0.995); }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-caption { margin: 14px 0 0; font-size: 0.9rem; color: var(--text-3); }
.hero-caption a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* --- Landing: how it works (deep navy) -------------------------------- */
.steps { list-style: none; counter-reset: step; margin: 0 auto 56px; padding: 0; display: grid; gap: 18px; max-width: 900px !important; }
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
.steps li { counter-increment: step; padding-top: 14px; border-top: 2px solid var(--line-strong); text-align: left; }
.steps li::before {
  content: "(" counter(step) ")";
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}
.steps h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.steps p { color: var(--text-3); margin: 0; }

.types-label { font-size: 1.15rem; font-weight: 600; color: var(--text-2); margin: 0 0 20px; }
.type-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; list-style: none; margin: 0 0 56px; padding: 0; }
@media (min-width: 768px) {
  .type-tiles { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}
.type-tile { text-align: center; }
.type-tile .emoji { margin-bottom: 12px; }
.type-tile .type-name { font-size: 1.15rem; font-weight: 500; margin: 0 0 14px; }
.custom-types { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 36px; list-style: none; margin: 0; padding: 0; }
.custom-type { text-align: center; min-width: 96px; }
.custom-type .emoji { margin-bottom: 8px; }
.custom-type .type-name { font-size: 1.05rem; font-weight: 500; color: var(--text-2); margin: 0; white-space: nowrap; }

/* --- Landing: gallery of live tier lists (navy) ------------------------ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
.gallery-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-raised);
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-hover) var(--ease-out);
}
.gallery-card:active { transform: scale(0.985); }
.gallery-card-image { display: block; aspect-ratio: 16 / 9; background: #0d0d0d; overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-card-image.is-portrait img { object-position: 50% 12%; }   /* 2:3 posters: keep the faces, crop the bottom */
.gallery-card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.gallery-card-title { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.gallery-card-meta { font-size: 0.85rem; color: var(--text-3); }
.gallery-card--more { justify-content: center; text-align: center; background: transparent; border-style: dashed; border-color: var(--line-strong); box-shadow: none; min-height: 160px; }
.gallery-card--more .gallery-card-title { color: var(--accent); }
@media (hover: hover) and (pointer: fine) {
  .gallery-card:hover { border-color: var(--accent); }
}

/* --- Landing: made-by block (end of Who it's for) ---------------------- */
.maker {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 720px !important;
  margin: 72px auto 0;
  padding: 20px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--text-2);
}
.maker .emoji { flex: none; margin-top: 2px; }
.maker p { margin: 0; }
.maker strong { color: var(--text); }
.maker a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- Landing: features (light grey, white cards) ---------------------- */
.feature-cards { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .feature-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .feature-cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  text-align: center;
}
.feature-card .emoji { margin-bottom: 14px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-2); margin: 0; }

/* --- Landing: who it's for (navy, clip + text rows) -------------------- */
.audience-row { display: grid; gap: 28px; align-items: center; margin-bottom: 72px; }
.audience-row:last-child { margin-bottom: 0; }
@media (min-width: 992px) {
  .audience-row { grid-template-columns: 1fr 1fr; gap: 56px; }
  .audience-row--flip .clip { order: 2; }
}
.audience h3 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
.audience > p { color: var(--text-2); font-size: 1.15rem; }
.audience ul { list-style: none; margin: 0; padding: 0; }
.audience li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); margin-bottom: 14px; }
.audience li .emoji { flex: none; margin-top: 2px; }

.clip { margin: 0; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); box-shadow: var(--shadow-raised); }
/* The two mp4s are 1920x1080 with the app letterboxed in rows ~199-880 (equal
   black bars top and bottom), so a centred 1920x682 crop shows just the app. */
.clip video { display: block; width: 100%; aspect-ratio: 1920 / 682; object-fit: cover; }

/* --- Landing: FAQ (light grey, Bootstrap accordion in a white card) --- */
.brand .accordion {
  --bs-accordion-bg: var(--bg-2);
  --bs-accordion-color: var(--text-2);
  --bs-accordion-border-color: var(--line);
  --bs-accordion-btn-bg: var(--bg-2);
  --bs-accordion-btn-color: var(--text);
  --bs-accordion-active-bg: var(--bg-2);
  --bs-accordion-active-color: var(--text);
  --bs-accordion-btn-focus-box-shadow: none;
  --bs-accordion-btn-padding-x: 1.25rem;
  --bs-accordion-btn-padding-y: 1.1rem;
  --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-body-padding-y: 0;
  --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236b7280'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231f2937'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  --bs-accordion-btn-icon-transition: transform var(--t-hover) var(--ease-out);
  max-width: 800px !important;
  margin: 0 auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.brand .accordion-item { border-left: 0; border-right: 0; }
.brand .accordion-item:first-child { border-top: 0; }
.brand .accordion-item:last-child { border-bottom: 0; }
.brand .accordion-button { font-weight: 600; font-size: 1.05rem; box-shadow: none; text-align: left; }
.brand .accordion-button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.brand .accordion-body { padding: 0 1.25rem 1.25rem; color: var(--text-2); }
.brand .accordion-body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* --- Footer (always dark) --------------------------------------------- */
.site-footer {
  margin-top: auto;
  background: var(--footer-bg);
  padding: 40px 0 calc(32px + env(safe-area-inset-bottom, 0px));
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}
.site-footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.site-footer .nav-brand { color: rgba(255, 255, 255, 0.6); font-size: 1.1rem; }
.site-footer .nav-brand img { width: 24px; height: 24px; }
.site-footer .tagline { flex-basis: 100%; margin: 0; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer a { color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color var(--t-hover) var(--ease-out); }
.site-footer a:active { color: #ffffff; }
@media (hover: hover) and (pointer: fine) {
  .site-footer a:hover { color: #ffffff; text-decoration: underline; }
}

/* --- Landing: sticky demo bar (phones only, after the hero scrolls away) --- */
.demo-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: none;
  gap: 12px;
  align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 22, 41, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 220ms var(--ease-out);
}
.demo-bar.is-visible { transform: none; }
.demo-bar .brand-btn { flex: 1; }
.demo-bar-note { flex: none; font-size: 0.8rem; color: var(--text-3); line-height: 1.3; max-width: 9rem !important; }
@media (max-width: 767.98px) {
  .demo-bar { display: flex; }
  .brand--has-bar { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* While the bar is up, the navbar's own demo pill would be a duplicate; hide it. */
  .brand--has-bar:has(.demo-bar.is-visible) .nav-actions .brand-btn--primary { display: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .demo-bar { background: var(--navy-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* --- Reduced motion ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .brand *, .brand *::before, .brand *::after {
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}
