/* =============================================================
   Roll Mobility — Home page prototype
   Wireframe IA (Sept 14 2026 brief) + Figma visual style
   ============================================================= */

:root, [data-theme="light"] {
  /* Type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem, 1.4rem + 2.5vw, 3.5rem);
  --text-3xl:  clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);

  /* Spacing */
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  /* Surfaces */
  --color-bg:              #ffffff;
  --color-surface:         #ffffff;
  --color-surface-offset:  #f4f5f2;   /* soft off-white section */
  --color-surface-dark:    #f0efe9;
  --color-divider:         #e6e5e0;
  --color-border:          #d8d6cf;   /* decorative card edges only */
  --color-input-border:    #767d8f;   /* form fields: 4.1:1 on white */

  /* Text — Figma dark navy */
  --color-text:            #17203a;
  --color-text-muted:      #5b6478;
  --color-text-faint:      #5b6478;   /* was #a4a9b5 (2.2:1); now meets 4.5:1 */
  --color-text-inverse:    #ffffff;

  /* Primary accent — Figma lime */
  --color-primary:         #b4e04a;   /* lime */
  --color-primary-hover:   #a0cf37;
  --color-primary-active:  #8ebb2c;
  --color-primary-ink:     #17203a;   /* text sits on lime */

  /* Accessibility rating colors — carry semantic meaning */
  --rating-accessible: #1f9d5b;   /* green */
  --rating-limited:    #e6a91a;   /* amber */
  --rating-not:        #d84545;   /* red   */
  --rating-none:       #6b7280;   /* grey  */

  /* Rating text on its tinted badge: all 4.5:1 or better */
  --rating-accessible-text: #13703f;
  --rating-limited-text:    #7a5508;
  --rating-not-text:        #b42318;
  --rating-none-text:       #4b5262;
  --color-error:            #b42318;

  /* Focus: navy ring with a lime halo, visible on light and lime surfaces */
  --focus-ring: #17203a;
  --focus-halo: #b4e04a;

  --rating-accessible-bg: #e3f5ea;
  --rating-limited-bg:    #fbeecc;
  --rating-not-bg:        #fbdedc;
  --rating-none-bg:       #e9eaee;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-2xl: 2.25rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(23, 32, 58, 0.06);
  --shadow-md: 0 6px 24px rgba(23, 32, 58, 0.08);
  --shadow-lg: 0 20px 48px rgba(23, 32, 58, 0.12);

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts — Figma uses a bold monospace-flavored display + geometric sans body */
  --font-display: 'Space Grotesk', 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body:    'Satoshi', 'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --content-wide: 1200px;
  --content-default: 1080px;
}

[data-theme="dark"] {
  --color-bg:              #0f1424;
  --color-surface:         #151b30;
  --color-surface-offset:  #1a2038;
  --color-surface-dark:    #0b0f1c;
  --color-divider:         #2a304a;
  --color-border:          #333a56;
  --color-text:            #edeef2;
  --color-text-muted:      #a7adbd;
  --color-text-faint:      #9aa1b3;
  --color-input-border:    #7d84a0;
  --color-error:           #f17b7b;
  --focus-ring: #b4e04a;
  --focus-halo: #0f1424;
  --color-text-inverse:    #17203a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.55);
  --rating-accessible-bg: rgba(31,157,91,0.18);
  --rating-limited-bg:    rgba(230,169,26,0.18);
  --rating-not-bg:        rgba(216,69,69,0.18);
  --rating-none-bg:       rgba(107,114,128,0.22);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;      /* clears the sticky header */
  scroll-padding-bottom: 6rem;   /* clears the phone app bar */
}

body {
  min-height: 100dvh;
  line-height: 1.55;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { text-wrap: pretty; max-width: 62ch; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--focus-halo);
  border-radius: var(--radius-sm);
}
/* On navy surfaces the ring flips to lime */
.site-footer, .lead-feature, .mv-mission, .skip-link, .toast { --focus-ring: #b4e04a; --focus-halo: #17203a; }
main:focus { outline: none; }

button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

::selection { background: var(--color-primary); color: var(--color-primary-ink); }

.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;
}

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

a, button, [role="button"] {
  transition:
    color var(--transition-interactive),
    background var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; top: 0; left: 0;
  background: var(--color-text); color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-4);
  border-radius: 0 0 var(--radius-md) 0;
  transform: translateY(-110%);
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus { transform: translateY(0); }

/* ---------- Layout container ---------- */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-8); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-divider);
  background: color-mix(in oklab, var(--color-bg) 96%, transparent);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.brand-mark { height: 28px; width: auto; flex: none; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.25rem;
}

.primary-nav {
  display: none;
  gap: var(--space-6);
  margin-left: var(--space-8);
  flex: 1;
}
@media (min-width: 960px) {
  .primary-nav { display: inline-flex; }
}
.primary-nav a {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) 0;
  position: relative;
}
.primary-nav a:hover { color: var(--color-text); }

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.theme-toggle {
  height: 40px; width: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.theme-toggle:hover { color: var(--color-text); border-color: var(--color-text-muted); }

.menu-toggle {
  height: 40px; width: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
@media (min-width: 960px) { .menu-toggle { display: none; } }

/* Mobile drawer */
.mobile-nav {
  display: none;
  border-top: 1px solid var(--color-divider);
  background: var(--color-bg);
  padding: var(--space-4) 0 var(--space-6);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-1); }
.mobile-nav a {
  display: block;
  padding: var(--space-3) 0;
  text-decoration: none;
  color: var(--color-text);
  font-size: var(--text-base);
  font-weight: 500;
  border-bottom: 1px solid var(--color-divider);
}
.mobile-nav .btn { margin-top: var(--space-4); width: 100%; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-primary-ink);
}
.btn-primary:hover { background: var(--color-primary-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--color-primary-active); transform: translateY(0); }

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { border-color: var(--color-text); background: color-mix(in oklab, var(--color-text) 5%, transparent); }

.btn-dark {
  background: var(--color-text);
  color: var(--color-text-inverse);
}
.btn-dark:hover { background: color-mix(in oklab, var(--color-text) 88%, black); transform: translateY(-1px); }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--color-text);
  color: var(--color-text-inverse);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  min-height: 48px;
  border: 1px solid transparent;
}
.btn-store:hover { background: color-mix(in oklab, var(--color-text) 90%, black); transform: translateY(-1px); }
.btn-store svg { height: 20px; width: auto; }
.btn-store-outline { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border); }
.btn-store-outline:hover { border-color: var(--color-text); background: var(--color-bg); }

.store-row { display: inline-flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(3rem, 6vw, 6rem);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.hero-eyebrow .dot {
  height: 8px; width: 8px; border-radius: 50%;
  background: var(--rating-accessible);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.4); }
}

.hero h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-5);
  max-width: 14ch;
}
.hero h1 .accent {
  background: linear-gradient(180deg, transparent 62%, var(--color-primary) 62%);
  padding: 0 0.15em;
}
.hero .lede {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 46ch;
  margin-bottom: var(--space-6);
}

.hero-meta {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.hero-meta a { color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }



/* Floating rating badge card, overlaid on hero image */
.rating-card {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 380px;
}
.rating-card .pin {
  flex: none;
  height: 44px; width: 44px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--rating-accessible);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
}
.rating-card .pin svg { transform: rotate(45deg); }
.rating-card .rc-body { min-width: 0; }
.rating-card .rc-title { font-weight: 700; font-size: var(--text-sm); }
.rating-card .rc-sub { color: var(--color-text-muted); font-size: var(--text-xs); margin-top: 2px; }


/* ---------- Stats strip ---------- */
.stats {
  background: var(--color-surface-offset);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-8);
}
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-item .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1;
  letter-spacing: -0.02em;
  display: block;
}
.stat-item .label {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  display: block;
}
.stats-note {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ---------- Section basics ---------- */
section { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
  display: inline-flex; align-items: center; gap: var(--space-2);
}
.section-eyebrow::before {
  content: ""; height: 1px; width: 24px; background: var(--color-text-muted);
  display: inline-block;
}
.section-title {
  font-size: var(--text-2xl);
  max-width: 22ch;
  margin-bottom: var(--space-4);
}
.section-intro {
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  max-width: 58ch;
}

/* ---------- Lead feature (sensory ratings) ---------- */
.lead-feature { background: var(--color-text); color: var(--color-text-inverse); border-radius: var(--radius-2xl); overflow: hidden; }
.lead-feature-wrap { padding: 0; }
.lead-feature-outer { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.lead-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .lead-feature-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-12);
    align-items: center;
  }
}
.lead-feature h2 { font-size: var(--text-2xl); color: var(--color-text-inverse); margin-bottom: var(--space-5); max-width: 18ch; }
.lead-feature .accent { color: var(--color-primary); }
.lead-feature p { color: color-mix(in oklab, var(--color-text-inverse) 78%, transparent); font-size: var(--text-lg); margin-bottom: var(--space-6); }
.lead-feature .learn {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 3px;
  font-size: var(--text-sm);
}
.lead-feature .learn:hover { color: var(--color-text-inverse); border-bottom-color: var(--color-text-inverse); }

/* ---------- Feature grid (6 features) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive), border-color var(--transition-interactive);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-border); }
.feature-icon {
  height: 44px; width: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-primary-ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.feature-icon svg { height: 22px; width: 22px; }
.feature-card h3 { font-size: var(--text-lg); }
.feature-card p { color: var(--color-text-muted); font-size: var(--text-sm); }

/* ---------- Rated this week ---------- */
.rated-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}
@media (min-width: 700px) { .rated-list { grid-template-columns: repeat(3, 1fr); } }

.place-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.place-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.place-map {
  height: 180px;
  background:
    radial-gradient(circle at 30% 40%, rgba(31,157,91,0.16), transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(230,169,26,0.16), transparent 40%),
    linear-gradient(120deg, #eef1e8, #e8ece0);
  position: relative;
  overflow: hidden;
}
.place-map::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, rgba(23,32,58,0.06) 1px, transparent 1px),
    linear-gradient(0deg,  rgba(23,32,58,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 90%);
}
.place-map .map-pin {
  position: absolute;
  height: 32px; width: 32px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.place-map .map-pin svg { transform: rotate(45deg); height: 14px; width: 14px; }

.place-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.place-name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.place-loc { color: var(--color-text-muted); font-size: var(--text-sm); }
.place-quote { color: var(--color-text); font-size: var(--text-sm); margin-top: var(--space-2); font-style: italic; }
.place-meta {
  margin-top: var(--space-3);
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.badge::before {
  content: "";
  display: inline-block;
  height: 8px; width: 8px;
  border-radius: 50%;
}
.badge-accessible { background: var(--rating-accessible-bg); color: var(--rating-accessible-text); }
.badge-accessible::before { background: var(--rating-accessible); }
.badge-limited    { background: var(--rating-limited-bg); color: var(--rating-limited-text); }
.badge-limited::before { background: var(--rating-limited); }
.badge-not        { background: var(--rating-not-bg); color: var(--rating-not-text); }
.badge-not::before { background: var(--rating-not); }
.badge-none       { background: var(--rating-none-bg); color: var(--rating-none-text); }
.badge-none::before { background: var(--rating-none); }

/* ---------- Origin story ---------- */
.origin {
  background: var(--color-surface-offset);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.origin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
@media (min-width: 900px) {
  .origin-grid { grid-template-columns: 1.2fr 1fr; }
}
.origin-copy {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: center;
}
.origin-copy h2 { font-size: var(--text-2xl); margin-bottom: var(--space-5); max-width: 18ch; }
.origin-copy p { color: var(--color-text-muted); font-size: var(--text-lg); margin-bottom: var(--space-6); }
.origin-copy .learn {
  align-self: flex-start;
  color: var(--color-text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 3px;
  font-size: var(--text-sm);
}
.origin-image { min-height: 320px; }
.origin-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Voices ---------- */
.voices {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-top: var(--space-10);
}
@media (min-width: 700px) { .voices { grid-template-columns: repeat(3, 1fr); } }

.voice-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
}
.voice-quote { font-size: var(--text-base); line-height: 1.55; }
.voice-quote::before { content: "“"; font-family: var(--font-display); font-size: 2.5rem; line-height: 0.5; color: var(--color-primary); vertical-align: -0.3em; margin-right: 4px; }
.voice-attrib { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.voice-avatar {
  height: 40px; width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), color-mix(in oklab, var(--color-primary) 40%, var(--rating-accessible)));
  color: var(--color-primary-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-sm);
}
.voice-name { font-weight: 600; font-size: var(--text-sm); }
.voice-context { color: var(--color-text-muted); font-size: var(--text-xs); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-primary-ink);
  border-radius: var(--radius-2xl);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
}
@media (min-width: 800px) {
  .cta-banner { grid-template-columns: 1.5fr 1fr; }
}
.cta-banner h2 { font-size: var(--text-2xl); max-width: 20ch; margin-bottom: var(--space-3); color: var(--color-primary-ink); }
.cta-banner p { color: color-mix(in oklab, var(--color-primary-ink) 78%, transparent); font-size: var(--text-lg); }
.cta-banner .store-row { justify-content: flex-start; }
@media (min-width: 800px) { .cta-banner .store-row { justify-content: flex-end; flex-wrap: nowrap; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: var(--space-16);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-10);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-brand .brand-word { color: var(--color-text-inverse); }
.footer-brand p { color: color-mix(in oklab, var(--color-text-inverse) 66%, transparent); font-size: var(--text-sm); margin-top: var(--space-3); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-col a {
  color: color-mix(in oklab, var(--color-text-inverse) 82%, transparent);
  text-decoration: none;
  font-size: var(--text-sm);
  display: inline-flex; align-items: center; min-height: 28px;
}
.footer-col a:hover { color: var(--color-text-inverse); }

.newsletter {
  margin-top: var(--space-4);
  display: flex; gap: var(--space-2); flex-wrap: wrap;
}
.newsletter input {
  flex: 1; min-width: 0;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid color-mix(in oklab, var(--color-text-inverse) 20%, transparent);
  background: color-mix(in oklab, var(--color-text-inverse) 5%, transparent);
  color: var(--color-text-inverse);
  font-size: var(--text-sm);
}
.newsletter input::placeholder { color: color-mix(in oklab, var(--color-text-inverse) 45%, transparent); }
.newsletter button {
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: var(--color-primary-ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.footer-legal {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid color-mix(in oklab, var(--color-text-inverse) 12%, transparent);
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  justify-content: space-between; align-items: center;
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 55%, transparent);
}
.footer-legal a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; min-height: 28px; }
.footer-legal a:hover { color: var(--color-text-inverse); }
.footer-legal .links { display: inline-flex; gap: var(--space-4); flex-wrap: wrap; }

/* ---------- Iteration 2: interim stories + content placeholders ---------- */
.story-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.story-body .place-quote { font-style: normal; font-size: var(--text-base); margin-top: 0; }
.story-meta { display: flex; flex-direction: column; }
.story-body .place-meta { margin-top: auto; padding-top: var(--space-3); }
.sample-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
}
.stat-item .num.pending {
  color: var(--color-text-muted);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.1em 0.3em;
  display: inline-block;
}

/* =============================================================
   Iteration 3: real logo, real screenshots, new pages, motion
   ============================================================= */

/* Logo */
.brand-logo { height: 40px; width: auto; color: var(--color-text); }
.brand-footer .brand-logo { color: #ffffff; height: 44px; }
.brand:hover .brand-logo { opacity: 0.85; }

/* Nav current page */
.primary-nav a[aria-current="page"] { color: var(--color-text); }
.primary-nav a[aria-current="page"]::after,
.primary-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--color-primary); border-radius: 2px;
}

/* Phone frame for real screenshots */
.phone {
  position: relative;
  border-radius: 2.6rem;
  padding: 10px;
  background: #0d1220;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, var(--shadow-lg);
  margin: 0;
}
.phone img {
  border-radius: 2rem;
  width: 100%;
  height: auto;
  display: block;
  background: #f4f5f2;
}
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-6) 0 var(--space-12);
  min-height: 520px;
}
.phone-hero { width: min(320px, 78%); z-index: 1; }
.hero-glow {
  position: absolute;
  inset: 6% 4% 10% 4%;
  border-radius: var(--radius-2xl);
  background:
    radial-gradient(60% 50% at 30% 30%, color-mix(in oklab, var(--color-primary) 70%, transparent), transparent 70%),
    radial-gradient(50% 50% at 75% 75%, color-mix(in oklab, var(--color-primary) 35%, transparent), transparent 70%),
    var(--color-surface-offset);
}
.hero-glow-violet {
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(124, 108, 240, 0.45), transparent 70%),
    radial-gradient(50% 50% at 75% 75%, color-mix(in oklab, var(--color-primary) 40%, transparent), transparent 70%),
    var(--color-surface-offset);
}
.float-card {
  position: absolute;
  z-index: 2;
  left: 0; right: auto;
  bottom: var(--space-4);
  width: min(360px, 92%);
}
@media (min-width: 900px) {
  .float-card { left: -8%; bottom: 14%; }
}
.rating-card .pin { background: var(--rating-accessible); }
.rating-card .badge { margin-left: auto; }

/* Lead feature screenshot */
.hero-eyebrow.on-dark { color: var(--color-primary); }
.lead-shot { display: flex; justify-content: center; margin: 0; }
.phone-lead { width: min(300px, 80%); transform: rotate(2deg); }
@media (min-width: 900px) {
  .lead-feature-grid { grid-template-columns: 1.1fr 0.9fr; }
  .phone-lead { margin-bottom: calc(-1 * clamp(2rem, 5vw, 4rem) - 80px); }
  .lead-feature { padding-bottom: 0; }
}

/* Store button sizes */
.btn-store-sm { min-height: 40px; padding: 0.5rem 0.85rem; font-size: var(--text-xs); }
.btn-store-sm svg { height: 16px; }
.store-row-end { justify-content: flex-start; }
@media (min-width: 800px) { .store-row-end { justify-content: flex-end; flex-wrap: nowrap; } }

/* Mobile pinned download bar (wireframe: buttons pinned to the bottom on mobile) */
.app-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background: color-mix(in oklab, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-divider);
  transform: translateY(110%);
  visibility: hidden;   /* keeps hidden buttons out of the tab order */
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 300ms;
}
.app-bar.is-visible { transform: translateY(0); visibility: visible; transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1); }
.app-bar-text { font-weight: 700; font-size: var(--text-sm); margin-right: auto; }
@media (min-width: 768px) { .app-bar { display: none; } }
@media (max-width: 767px) {
  .site-footer { padding-bottom: calc(var(--space-8) + 88px + env(safe-area-inset-bottom)); }
  .header-cta { display: none; }
}

/* Toast for links not in this prototype */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 60;
  transform: translate(-50%, 20px);
  background: var(--color-text); color: var(--color-text-inverse);
  padding: 0.65rem 1rem; border-radius: var(--radius-full);
  font-size: var(--text-sm); font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  max-width: calc(100vw - 2rem); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .toast { bottom: 32px; } }

/* Footer heading (h2 for correct outline) */
.footer-h {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in oklab, var(--color-text-inverse) 70%, transparent);
  margin-bottom: var(--space-4);
  font-weight: 500;
}
[data-theme="dark"] .site-footer { background: #0a0e1a; color: rgba(255,255,255,0.82); }
[data-theme="dark"] .site-footer .footer-h,
[data-theme="dark"] .site-footer .footer-col a,
[data-theme="dark"] .footer-brand p,
[data-theme="dark"] .footer-legal { color: rgba(255,255,255,0.72); }
[data-theme="dark"] .newsletter input { color: #fff; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); }
[data-theme="dark"] .lead-feature { background: #1d2440; }
[data-theme="dark"] .lead-feature h2 { color: #fff; }
[data-theme="dark"] .lead-feature p { color: rgba(255,255,255,0.8); }
.newsletter-status { min-height: 1.2em; font-size: var(--text-xs); color: var(--color-primary) !important; margin-top: var(--space-2) !important; }

/* Hover polish */
.story-card, .voice-card { transition: transform var(--transition-interactive), box-shadow var(--transition-interactive); }
.story-card:hover, .voice-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.story-card img { transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1); }
.story-card { isolation: isolate; }
.story-card:hover img { transform: scale(1.03); }
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.06); }
.feature-icon { transition: transform var(--transition-interactive); }
.learn { transition: gap var(--transition-interactive), color var(--transition-interactive); }

/* Scroll reveal — only when JS + motion allowed */
.js-motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); transition-delay: var(--d, 0ms); }
.js-motion .reveal.is-in { opacity: 1; transform: none; }
.js-motion .phone-lead.reveal.is-in, .js-motion .lead-shot.is-in .phone-lead { transform: rotate(2deg); }
@media (prefers-reduced-motion: reduce) {
  .js-motion .reveal { opacity: 1; transform: none; }
  .hero-eyebrow .dot { animation: none; }
}

/* ---------- Shared: breadcrumbs, bands ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-5); }
.crumbs a { color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 3px; }
.crumbs a:hover { color: var(--color-text); }
.band { background: var(--color-surface-offset); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.voices-2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .voices-2 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Sensory page ---------- */
.hero-feature h1 { max-width: 16ch; }
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-10); counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.step-num { height: 44px; width: 44px; border-radius: 50%; background: var(--color-text); color: var(--color-text-inverse); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.step h3 { font-size: var(--text-lg); }
.step p { color: var(--color-text-muted); font-size: var(--text-sm); }
.dial-chips { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.dial-chips li { font-size: var(--text-xs); font-weight: 600; padding: 4px 10px; border-radius: var(--radius-full); border: 1px solid var(--color-border); }
.proof { display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
@media (min-width: 860px) { .proof { grid-template-columns: 1fr 1fr; } }
.proof-quote { background: var(--color-surface); border-radius: var(--radius-lg); border-left: 4px solid var(--color-primary); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); }
.proof-quote p { font-size: var(--text-lg); font-family: var(--font-display); line-height: 1.3; }
.proof-quote footer { color: var(--color-text-muted); font-size: var(--text-sm); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-8); }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: flex; justify-content: space-between; align-items: center; padding: var(--space-5); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); text-decoration: none; font-weight: 600; background: var(--color-surface); }
.related-card:hover { border-color: var(--color-text); transform: translateY(-2px); }
.related-card span:last-child { transition: transform var(--transition-interactive); }
.related-card:hover span:last-child { transform: translateX(4px); }

/* ---------- Place page ---------- */
.proto-banner { background: #fff7d6; color: #5a4a00; font-size: var(--text-xs); padding: var(--space-2) 0; border-bottom: 1px solid #f0e2a0; }
[data-theme="dark"] .proto-banner { background: #3a3110; color: #f5e7a8; border-color: #574a17; }
.place-hero { padding: var(--space-10) 0 var(--space-8); border-bottom: 1px solid var(--color-divider); }
.place-head { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; align-items: flex-end; }
.place-type { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-muted); }
.place-hero h1 { font-size: var(--text-3xl); margin: var(--space-2) 0 var(--space-2); }
.place-address { color: var(--color-text-muted); font-size: var(--text-lg); }
.place-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.place-facts strong { color: var(--color-text); }
.score-pair { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.score { background: var(--color-surface-offset); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1 1 9rem; min-width: 0; }
.score .badge { white-space: normal; }
.score-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); font-weight: 600; }
.badge-lg { font-size: var(--text-sm); padding: 6px 14px; align-self: flex-start; }
.legend { margin-top: var(--space-6); font-size: var(--text-sm); }
.legend summary { cursor: pointer; font-weight: 600; display: inline-block; padding: var(--space-1) 0; }
.legend ul { list-style: none; display: grid; gap: var(--space-2); margin-top: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 700px) { .legend ul { grid-template-columns: repeat(2, 1fr); } }
.legend li { display: flex; gap: var(--space-3); align-items: center; color: var(--color-text-muted); }
.place-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-10); padding-top: var(--space-10); padding-bottom: var(--space-16); }
@media (min-width: 960px) { .place-layout { grid-template-columns: 1fr 320px; } }
.place-section { padding: 0 0 var(--space-10); margin-bottom: var(--space-10); border-bottom: 1px solid var(--color-divider); }
.place-section:last-child { border-bottom: 0; }
.place-section h2 { font-size: var(--text-xl); margin-bottom: var(--space-5); }
.sub-h { font-size: var(--text-base); margin: var(--space-6) 0 var(--space-3); }
.muted { color: var(--color-text-muted); margin-bottom: var(--space-4); }
.phys-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
@media (min-width: 700px) { .phys-grid { grid-template-columns: repeat(4, 1fr); } }
.phys-item { border: 1px solid var(--color-divider); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.phys-item dt { font-weight: 600; font-size: var(--text-sm); }
.tag-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tag-list li { border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 6px 12px; font-size: var(--text-sm); font-weight: 500; }
.tag-count { color: var(--color-text-muted); font-weight: 400; margin-left: 4px; }
.sens-summary { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-5); }
.sens-pill { background: var(--color-surface-offset); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); display: flex; flex-direction: column; }
.sens-k { font-size: var(--text-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.sens-v { font-weight: 700; }
.sens-grid { display: grid; gap: var(--space-3); }
.sens-row { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); align-items: center; }
.sens-row dt { font-weight: 600; font-size: var(--text-sm); }
.sens-row dd { display: flex; align-items: center; gap: var(--space-3); }
.meter { flex: 1; height: 8px; border-radius: 4px; background: var(--color-divider); overflow: hidden; }
.meter span { display: block; height: 100%; background: #6f63e6; border-radius: 4px; }
.meter-word { font-size: var(--text-sm); color: var(--color-text-muted); min-width: 7ch; }
.week-strip { margin: var(--space-8) 0 0; }
.week-strip figcaption { font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-3); }
.week-bars { list-style: none; display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); height: 140px; align-items: end; }
.week-bars li { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-end; height: 100%; gap: var(--space-2); }
.week-bars .bar { height: var(--h); background: color-mix(in oklab, #6f63e6 35%, var(--color-divider)); border-radius: 6px 6px 2px 2px; }
.week-bars .peak .bar { background: #6f63e6; }
.week-bars .day { font-size: var(--text-xs); text-align: center; color: var(--color-text-muted); }
.review-list { list-style: none; display: grid; gap: var(--space-4); margin-bottom: var(--space-6); }
.review { border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-5); }
.review-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.review-head > div { display: flex; flex-direction: column; }
.review-head .badge { margin-left: auto; }
.review-date { font-size: var(--text-xs); color: var(--color-text-muted); }
.review p { font-size: var(--text-sm); }
.nearby { list-style: none; display: grid; gap: var(--space-3); }
.nearby a { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 2px var(--space-4); align-items: center; padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-md); text-decoration: none; }
.nearby a:hover { border-color: var(--color-text); }
.nearby-name { font-weight: 600; }
.nearby-type { font-size: var(--text-xs); color: var(--color-text-muted); grid-row: 2; }
.nearby .badge { grid-row: 1 / span 2; grid-column: 2; }
.place-aside { display: flex; flex-direction: column; gap: var(--space-4); }
@media (min-width: 960px) { .place-aside { position: sticky; top: 96px; align-self: start; } }
.action-card { border: 1px solid var(--color-divider); border-radius: var(--radius-lg); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); background: var(--color-surface); box-shadow: var(--shadow-sm); }
.action-card-quiet { background: var(--color-surface-offset); box-shadow: none; }
.action-h { font-size: var(--text-lg); }
.action-card p { color: var(--color-text-muted); font-size: var(--text-sm); }
.action-card .fine { font-size: var(--text-xs); }
.btn-block { width: 100%; }

/* Limited badge contrast in dark mode */
[data-theme="dark"] .badge-limited { color: #f3c55a; }
[data-theme="dark"] .badge-accessible { color: #4fd18b; }
[data-theme="dark"] .badge-not { color: #f17b7b; }
[data-theme="dark"] .badge-none { color: #b8bcc7; }
.inline-link { color: var(--color-text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.place-section:last-child { margin-bottom: 0; padding-bottom: 0; }
@media (min-width: 900px) { .float-card { width: 390px; } .float-card .rc-title { white-space: nowrap; } }

/* ---------- About page ---------- */
.about-hero h1 { max-width: 18ch; }
.about-hero-img { border-radius: var(--radius-2xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; max-height: 600px; }
.about-hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.story-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-6) var(--space-12); }
@media (min-width: 900px) { .story-layout { grid-template-columns: 0.8fr 1.4fr; } .story-side { position: sticky; top: 110px; align-self: start; } }
.story-prose p { font-size: var(--text-base); line-height: 1.7; margin-bottom: var(--space-5); max-width: 66ch; }
.story-prose .sub-h { font-size: var(--text-lg); margin-top: var(--space-8); }
.pull-quote { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.25; font-weight: 600; border-left: 4px solid var(--color-primary); padding: var(--space-2) 0 var(--space-2) var(--space-6); margin: var(--space-6) 0 var(--space-8); max-width: 30ch; text-wrap: balance; }
.mv-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-5); }
@media (min-width: 860px) { .mv-grid { grid-template-columns: 1fr 1fr; } }
.mv-card { border-radius: var(--radius-2xl); padding: clamp(2rem, 4vw, 3rem); display: flex; flex-direction: column; gap: var(--space-4); }
.mv-mission { background: var(--color-text); color: var(--color-text-inverse); }
.mv-mission .section-eyebrow { color: var(--color-primary); }
.mv-mission .section-eyebrow::before { background: var(--color-primary); }
.mv-vision { background: var(--color-primary); color: var(--color-primary-ink); }
.mv-vision .section-eyebrow { color: var(--color-primary-ink); }
.mv-vision .section-eyebrow::before { background: var(--color-primary-ink); }
.mv-statement { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.01em; }
.mv-vision p:not(.mv-statement) { font-size: var(--text-base); }
[data-theme="dark"] .mv-mission { background: #1d2440; color: #fff; }
.pending-term { background: #fff7d6; color: #5a4a00; border: 1px dashed #c9a800; border-radius: 4px; padding: 0 4px; white-space: nowrap; }
.team-grid { list-style: none; display: grid; grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-10); }
@media (min-width: 640px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-card { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--transition-interactive), box-shadow var(--transition-interactive); }
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team-body { padding: var(--space-5) var(--space-6) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.team-body h3 { font-size: var(--text-lg); }
.team-role { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); }
.team-body p:not(.team-role) { font-size: var(--text-sm); color: var(--color-text-muted); }
.team-link { margin-top: auto; padding-top: var(--space-3); font-size: var(--text-sm); font-weight: 600; color: var(--color-text); text-decoration: underline; text-decoration-color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.voice-photo { height: 40px; width: 40px; border-radius: 50%; object-fit: cover; }
figure.voice-card { margin: 0; }
.origin-image img { object-position: center 30%; }
.about-hero-inner { padding-block: 0; }
.about-hero-inner .hero-copy { max-width: 52rem; }
.about-hero h1 { max-width: 22ch; }
.mv-copy { font-size: var(--text-lg); line-height: 1.5; font-weight: 500; }
@media (min-width: 700px) and (max-width: 999px) { .voices-6 { grid-template-columns: repeat(2, 1fr); } }
.voices-6 .voice-name { overflow-wrap: anywhere; }
.score-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full, 999px); background: var(--color-surface-offset); border: 1px solid var(--color-divider); font-size: var(--text-xs); font-weight: 600; color: var(--color-text); }
.score-label { font-weight: 500; color: var(--color-text-muted); }
.score-star { color: #c26a1d; }
.footer-social { margin-top: var(--space-6); }
.social-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); padding: 0; }
.social-list a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: #ffffff; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); transition: background var(--transition-interactive), transform var(--transition-interactive); }
.social-list a:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }
.social-list a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.social-list svg { width: 20px; height: 20px; }
/* Social section */
.ig-section { padding-block: clamp(3rem, 6vw, 5.5rem); }
.social-head { text-align: center; max-width: 46rem; margin: 0 auto var(--space-10); }
.social-head .section-intro { margin-inline: auto; }
.social-embeds { display: grid; grid-template-columns: 1fr; gap: var(--space-8); justify-items: center; align-items: start; }
@media (min-width: 900px) { .social-embeds { grid-template-columns: 1fr 1fr; } }
.social-embed { width: 100%; max-width: 540px; display: flex; justify-content: center; min-height: 420px; }
.social-embed .instagram-media, .social-embed .tiktok-embed { margin: 0 auto !important; width: 100% !important; }
@media (max-width: 380px) { .social-embed .instagram-media, .social-embed .tiktok-embed { min-width: 0 !important; } }
.social-list-light { justify-content: center; margin-top: var(--space-10); }
.social-list-light a { color: var(--color-text-inverse); background: var(--color-text); border-color: var(--color-text); }
.social-list-light a:hover { background: color-mix(in oklab, var(--color-text) 85%, transparent); }

.tt-embed iframe { min-height: 740px; }
.social-embed iframe { max-width: 100% !important; }
@media (max-width: 400px) { .social-embed .tiktok-embed { min-width: 0 !important; } }
@media (max-width: 400px) { .app-bar { gap: 6px; padding-inline: var(--space-3); } }
.ig-fallback-frame { width: 100%; max-width: 540px; height: 1150px; border: 1px solid var(--color-divider); border-radius: 4px; background: #fff; }
@media (max-width: 600px) { .ig-fallback-frame { height: 960px; } }
.tt-fallback-frame { width: 100%; max-width: 340px; height: 740px; border: 0; border-radius: 8px; background: #000; }
.social-embed .tt-fallback-frame { max-width: 340px !important; }
/* Balance the two social posts */
.social-embeds { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: var(--space-8); }
.social-embed { width: 100%; max-width: 340px; min-height: 0; }
.social-embed .instagram-media, .social-embed .tiktok-embed { max-width: 340px !important; }
.ig-fallback-frame, .social-embed .ig-fallback-frame { max-width: 340px !important; height: 780px; }
@media (max-width: 600px) { .ig-fallback-frame { height: 780px; } }
.social-embed .tiktok-embed iframe, .tt-embed iframe { min-height: 790px; }
.social-head { text-align: left; max-width: none; margin: 0 0 var(--space-10); }
.social-head .section-intro { margin-inline: 0; }
.ig-fallback-frame, .social-embed .ig-fallback-frame, .ig-embed iframe { height: 650px; }
@media (max-width: 600px) { .ig-fallback-frame { height: 650px; } }

/* Feature card links to feature pages */
.feature-card .learn {
  margin-top: auto;
  align-self: flex-start;
  color: var(--color-text);
  font-weight: 600;
  font-size: var(--text-sm);
  text-decoration: none;
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
}
.feature-card .learn:hover { border-bottom-color: var(--color-text); }
.hero-glow-blue {
  background:
    radial-gradient(60% 50% at 30% 30%, rgba(66, 133, 244, 0.35), transparent 70%),
    radial-gradient(50% 50% at 75% 75%, color-mix(in oklab, var(--color-primary) 40%, transparent), transparent 70%),
    var(--color-surface-offset);
}

/* Use-case cards (who a feature is for) */
.use-card { display: flex; flex-direction: column; gap: var(--space-2); }
.use-who { font-family: var(--font-mono, "JetBrains Mono", monospace); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.use-card h3 { font-size: var(--text-lg); }
.use-card p { color: var(--color-text-muted); }

/* Proof section with no quote box: one column */
.proof:has(> :only-child) { grid-template-columns: 1fr; }

/* ---------- Press kit ---------- */
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-sm); min-height: 40px; }
.press-contact { margin-top: var(--space-8); padding: var(--space-6); border: 1px solid var(--color-divider); border-left: 4px solid var(--color-primary); border-radius: var(--radius-lg); background: var(--color-surface); max-width: 60ch; }
.press-contact-h { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-bottom: var(--space-3); }
.press-contact p { margin-bottom: var(--space-3); }
.press-contact .muted { margin-bottom: 0; font-size: var(--text-sm); }
.fact-list { display: grid; gap: 0; border-top: 1px solid var(--color-divider); }
.fact-list > div { display: grid; grid-template-columns: 1fr; gap: var(--space-1); padding: var(--space-4) 0; border-bottom: 1px solid var(--color-divider); }
@media (min-width: 640px) { .fact-list > div { grid-template-columns: 11rem 1fr; gap: var(--space-6); } .fact-list-wide > div { grid-template-columns: 13rem 1fr; } }
.fact-list dt { font-weight: 600; }
.fact-list dd { margin: 0; color: var(--color-text-muted); }
.copy-stack { display: grid; gap: var(--space-5); }
.copy-box { margin: 0; padding: var(--space-6); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.copy-box figcaption { display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); }
.copy-box p { line-height: 1.7; max-width: 70ch; }
.faq { display: grid; gap: var(--space-3); }
.faq details { border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); padding: var(--space-4) var(--space-5); }
.faq summary { cursor: pointer; font-weight: 600; font-size: var(--text-base); }
.faq details[open] summary { margin-bottom: var(--space-3); }
.faq p { color: var(--color-text-muted); line-height: 1.7; max-width: 66ch; }
.asset-grid { list-style: none; padding: 0; margin: var(--space-8) 0 0; display: grid; gap: var(--space-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .asset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.asset-card { display: flex; flex-direction: column; gap: var(--space-3); align-items: stretch; padding: var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.asset-card img { width: 100%; height: auto; aspect-ratio: 720 / 1564; object-fit: cover; border-radius: var(--radius-md); }
.asset-card .btn { justify-content: center; text-align: center; white-space: normal; }
.asset-logo { grid-column: 1 / -1; }
.asset-logo img { aspect-ratio: auto; max-width: 220px; height: auto; margin: var(--space-4) auto; color: var(--color-text); background: #fff; padding: var(--space-4); border-radius: var(--radius-md); }
.asset-logo .btn { align-self: center; }
.cta-banner p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Legal text ---------- */
.legal { max-width: 72ch; padding-bottom: var(--space-16); }
.legal h2 { font-size: var(--text-xl); margin: var(--space-12) 0 var(--space-4); }
.legal h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-3); }
.legal p, .legal li { line-height: 1.75; margin-bottom: var(--space-4); }
.legal ul { padding-left: 1.25rem; list-style: disc; }

/* ---------- Help form ---------- */
.help-form { display: grid; gap: var(--space-5); max-width: 40rem; padding: var(--space-8); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); background: var(--color-surface); }
.help-form .form-note { font-size: var(--text-sm); color: var(--color-text-muted); }
.field { display: grid; gap: var(--space-2); }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; color: var(--color-text); background: var(--color-bg); border: 1px solid var(--color-input-border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); min-height: 48px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 2px var(--focus-halo); border-color: var(--color-text); }
.field [aria-invalid="true"] { border-color: var(--color-error); border-width: 2px; }
.field-error { color: var(--color-error); font-size: var(--text-sm); font-weight: 600; }
.field-error::before { content: "Error: "; }
.help-form .btn { justify-self: start; }
.form-status { font-size: var(--text-sm); }
.legal-section { padding-top: 0 !important; }
.legal > p:first-child { margin-top: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:focus { outline: none; }
.form-status:not(:empty) { font-weight: 600; }
.field[hidden] { display: none; }

/* ---------- Social video cards (click to load) ---------- */
.social-embed { margin: 0; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); max-width: 340px; width: 100%; min-height: 0; }
.embed-cover { position: relative; width: 100%; aspect-ratio: 9 / 16; max-height: 600px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: var(--space-4); padding: var(--space-6); border: 0; border-radius: var(--radius-lg); background: radial-gradient(120% 80% at 20% 10%, color-mix(in oklab, var(--color-primary) 30%, #17203a), #17203a 70%); color: #fff; text-align: left; font: inherit; cursor: pointer; overflow: hidden; }
.embed-cover:hover .embed-play { transform: translate(-50%, -50%) scale(1.06); }
.embed-cover:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 3px var(--focus-halo); }
.embed-platform { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 600; font-size: var(--text-sm); }
.embed-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--color-primary); color: #17203a; display: flex; align-items: center; justify-content: center; transition: transform var(--transition-interactive); }
.embed-play svg { margin-left: 4px; }
.embed-caption { margin-top: auto; font-family: var(--font-display); font-size: var(--text-lg); line-height: 1.3; }
.embed-cta { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.85); text-decoration: underline; text-underline-offset: 3px; }
.social-embed figcaption { font-size: var(--text-sm); }
.embed-frame { width: 100%; border: 0; border-radius: var(--radius-lg); background: #000; }
.embed-frame-tiktok { height: 740px; max-width: 340px; }
.embed-frame-instagram { height: 650px; background: #fff; border: 1px solid var(--color-divider); }
@media (prefers-reduced-motion: reduce) { .embed-play { transition: none; } }

/* ---------- Accessibility fixes, Oct 2026 ---------- */
/* No colour fade while the page first draws (stops the dark-mode flash) */
.no-transition, .no-transition *, .no-transition *::before, .no-transition *::after { transition: none !important; }
/* Arrows after links are decoration */
.learn .arrow { display: inline-block; }
/* Newsletter: a real link to The Roll Up sign-up */
.newsletter-cta { margin-top: var(--space-4); display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0.65rem 1.15rem; border-radius: var(--radius-full); background: var(--color-primary); color: var(--color-primary-ink) !important; font-size: var(--text-sm); font-weight: 600; text-decoration: none; }
.newsletter-cta:hover { background: var(--color-primary-hover); }
/* Accessibility statement */
.statement-list { display: grid; gap: var(--space-3); padding-left: 1.25rem; }

/* ---------- Launch prep, Oct 31 2026 ---------- */
/* QR code beside the store buttons, only on wide screens (desktop visitors install on their phone) */
.store-qr { display: none; }
@media (min-width: 1024px) and (hover: hover) {
  .store-qr { display: inline-flex; align-items: center; gap: var(--space-3); margin-left: var(--space-2); }
  .store-qr img { width: 88px; height: 88px; border-radius: var(--radius-sm); border: 1px solid var(--color-divider); background: #fff; padding: 2px; }
  .store-qr figcaption { font-size: var(--text-xs); color: var(--color-text-muted); max-width: 11rem; line-height: 1.35; }
  .store-row-end .store-qr { display: none; }
}
/* Checkbox group in forms */
.field-checks { border: 0; display: grid; gap: 0; }
.field-checks legend { font-weight: 600; margin-bottom: var(--space-2); padding: 0; }
.field-checks label { display: inline-flex; align-items: center; gap: var(--space-3); font-weight: 500; min-height: 32px; }
.field-checks input { width: 20px; height: 20px; accent-color: var(--color-text); }
/* Draft notice on unpublished pages */
.draft-note { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); border: 2px solid var(--rating-limited-text); border-radius: var(--radius-md); background: var(--rating-limited-bg); color: var(--color-text); }
.store-row { align-items: center; }

/* ---------- Press: in the news ---------- */
.news-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--color-divider); }
.news-item { padding: var(--space-5) 0; border-bottom: 1px solid var(--color-divider); display: grid; gap: var(--space-2); }
.news-source { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-text-muted); }
.news-outlet { font-weight: 500; color: var(--color-text); }
.news-item h3 { font-size: var(--text-lg); line-height: 1.2; }
.news-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.news-link:hover { text-decoration-thickness: 2px; }
.news-item p:last-child { color: var(--color-text-muted); font-size: var(--text-sm); }
/* Home hero: press logos. Same-size tiles, greyscale, swipe or scroll sideways when they don't fit. */
.hero-copy { min-width: 0; }
.featured-in { margin-top: clamp(2rem, 4vw, 3.5rem); min-width: 0; position: relative; }
.featured-head { max-width: none; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-2); font-size: var(--text-sm); }
.featured-label { font-family: var(--font-mono); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-text-muted); }
.featured-head a { color: var(--color-text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; white-space: nowrap; }
.press-strip { overflow-x: auto; scrollbar-width: thin; padding-bottom: var(--space-2); border-radius: var(--radius-sm, 6px);
}
/* Fade the right edge only while there are more logos to scroll to (main.js sets data-more). */
.press-strip[data-more] { -webkit-mask-image: linear-gradient(to right, #000 88%, transparent); mask-image: linear-gradient(to right, #000 88%, transparent); }
.press-strip:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; box-shadow: 0 0 0 6px var(--focus-halo); }
.press-logos { list-style: none; display: flex; gap: var(--space-3); margin: 0; padding: 0; width: 100%; }
.press-logo { flex: 1 0 156px; min-width: 156px; height: 84px; scroll-margin-inline: 8px; }
.press-logo a { display: grid; place-items: center; width: 100%; height: 100%; padding: 10px 14px; border: 1px solid var(--color-divider); border-radius: 10px; transition: border-color var(--transition-interactive), background-color var(--transition-interactive); }
.press-logo a:hover { border-color: var(--color-text-muted); background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.press-logo a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 5px var(--focus-halo); }
.press-logo img { width: 100%; max-width: 150px; height: 52px; object-fit: contain; opacity: 0.88; }
.press-logo a:hover img { opacity: 1; }
[data-theme="dark"] .press-logo img { filter: invert(1); opacity: 0.92; }
.press-name { font-family: var(--font-heading); font-size: 13px; line-height: 1.15; font-weight: 600; text-align: center; color: var(--color-text-muted); }
@media (prefers-reduced-motion: no-preference) { .press-strip { scroll-behavior: smooth; } }

/* ---------- Top menu: Features disclosure (Nov 2026) ---------- */
.nav-item { position: relative; display: inline-flex; }
.nav-menu-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: 500; padding: var(--space-2) 0; position: relative; }
.nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"], .is-current > .nav-menu-btn { color: var(--color-text); }
.primary-nav .is-current > .nav-menu-btn::after { content: ""; position: absolute; left: 0; right: 18px; bottom: 0; height: 2px; background: var(--color-primary); border-radius: 2px; }
.nav-menu-btn .chev { transition: transform var(--transition-interactive); }
.nav-menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-menu[hidden] { display: none !important; }
.primary-nav .nav-menu { position: absolute; top: calc(100% + 14px); left: -20px; width: min(36rem, 92vw); z-index: 50;
  background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: var(--space-3); }
.nav-menu-list { list-style: none; display: grid; gap: 2px; }
.primary-nav .nav-menu-list { grid-template-columns: 1fr 1fr; }
.primary-nav .nav-menu a { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--color-text); }
.primary-nav .nav-menu a::after { content: none; }
.primary-nav .nav-menu a:hover { background: var(--color-surface-offset); }
.menu-name { font-weight: 600; font-size: var(--text-sm); color: var(--color-text); }
.menu-desc { font-size: var(--text-xs); color: var(--color-text-muted); line-height: 1.35; }
.primary-nav .nav-menu .nav-menu-all { display: block; margin-top: var(--space-2); border-top: 1px solid var(--color-divider); border-radius: 0 0 var(--radius-md) var(--radius-md); padding-top: 12px; font-weight: 600; font-size: var(--text-sm); }
/* Phone menu */
.mobile-nav .nav-menu-btn { width: 100%; justify-content: space-between; min-height: 48px; padding: var(--space-3) 0; font-size: var(--text-base); color: var(--color-text); border-bottom: 1px solid var(--color-divider); }
.mobile-nav .nav-menu { padding: var(--space-1) 0 var(--space-2) var(--space-4); border-bottom: 1px solid var(--color-divider); }
.mobile-nav .nav-menu a { border-bottom: 0; padding: var(--space-2) 0; }
.mobile-nav .menu-desc { display: none; }
.mobile-nav .nav-menu-all { font-weight: 600; }
.mobile-nav a.btn { border-bottom: 0; display: flex; color: var(--color-primary-ink); }
@media (min-width: 768px) { .mobile-nav a.btn { display: none; } }

/* Home: sensory leads the features section */
.features-lead { margin: var(--space-8) 0 var(--space-6); }
.lead-feature .lead-title { font-size: var(--text-2xl); color: var(--color-text-inverse); margin-bottom: var(--space-5); max-width: 18ch; }
[data-theme="dark"] .lead-feature .lead-title { color: #fff; }
.features-all { margin-top: var(--space-8); }
/* Linked card titles */
.card-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.card-link:hover { text-decoration-thickness: 2px; }
.rollup-cta { justify-self: start; }
@media (min-width: 800px) { .rollup-cta { justify-self: end; } }
.nav-menu-btn .chev { width: 12px; height: 12px; flex: none; }
.primary-nav .nav-menu-narrow { width: min(22rem, 92vw); }
.primary-nav .nav-menu-narrow .nav-menu-list { grid-template-columns: 1fr; }

/* ---------- Roll Call (blog) ---------- */
.blog-section { padding-top: 0 !important; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.post-card { position: relative; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive); }
.post-card:hover { border-color: var(--color-text-muted); }
.post-card:focus-within { outline: 3px solid var(--focus-ring); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }
.post-card-img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card-body { display: grid; gap: var(--space-3); padding: var(--space-6); align-content: start; }
.post-card-meta, .post-meta { font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-text-muted); }
.post-card-title { font-size: var(--text-lg); line-height: 1.25; }
.post-card-lead { grid-column: 1 / -1; }
.post-card-lead .post-card-body { padding: var(--space-8); }
.post-card-lead .post-card-title { font-size: var(--text-xl); max-width: 30ch; }
.post-card-lead .post-card-excerpt { max-width: 60ch; }
.post-card-link { color: inherit; text-decoration: none; }
.post-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card-link:focus-visible { outline: none !important; box-shadow: none !important; }
.post-card:hover .post-card-link, .post-card-link:focus-visible { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.post-card-excerpt { color: var(--color-text-muted); line-height: 1.6; }
.post-list-more { margin-bottom: var(--space-6); }
.post-hero h1 { font-size: var(--text-2xl); max-width: 24ch; }
.post-meta { margin-top: var(--space-4); }
.post-figure { margin: 0 auto var(--space-8); }
.post-figure img { width: 100%; height: auto; border-radius: var(--radius-lg); }
.post-figure figcaption { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); }
.post-body a { color: var(--color-text); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body ol { padding-left: 1.25rem; list-style: decimal; }
.post-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.post-body figure { margin: var(--space-8) 0; }
.post-body blockquote { margin: var(--space-6) 0; padding-left: var(--space-5); border-left: 4px solid var(--color-primary); font-size: var(--text-lg); }
.post-body > :first-child, .post-body .wp-block-post-content > :first-child { margin-top: 0; }
.blog-pager { margin-top: var(--space-10); }
.blog-pager ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.blog-pager a, .blog-pager span { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-divider); border-radius: var(--radius-full); color: var(--color-text); font-weight: 500; text-decoration: none; }
.blog-pager a:hover { border-color: var(--color-text); }
.blog-pager .current { background: var(--color-text); border-color: var(--color-text); color: var(--color-text-inverse); }
