/* Humlo — landing + legal shared styles */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand palette — synced with iOS SplashLogo.imageset + Figma 42:2534 */
  --bg: #0B0D12;
  --bg-deep: #070910;
  --surface: #10131A;
  --card: #161A24;
  --card-steel: rgba(57, 97, 129, 0.12);
  --card-hover: #1C2131;
  --border: #1E2230;
  --border-light: #2B3044;
  --border-steel: rgba(97, 154, 200, 0.22);
  --text: #EEEEEE;
  --text-secondary: rgba(238, 238, 238, 0.62);
  --text-muted: rgba(238, 238, 238, 0.36);
  --accent: #619AC8;
  --accent-mid: #4780AE;
  --accent-deep: #396181;
  --accent-gradient: linear-gradient(79deg, #396181 0%, #4780AE 55%, #619AC8 110%);
  --accent-gradient-soft: linear-gradient(135deg, rgba(97, 154, 200, 0.95), rgba(71, 128, 174, 0.8));
  --accent-glow: rgba(71, 128, 174, 0.28);
  --accent-glow-soft: rgba(97, 154, 200, 0.16);
  --success: #34D399;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 49px;
  --container: 1200px;
  --nav-height: 72px;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Ambient background glow */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(71, 128, 174, 0.22), transparent 60%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(97, 154, 200, 0.14), transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(57, 97, 129, 0.18), transparent 55%);
  z-index: -1;
  pointer-events: none;
}

/* Subtle grid texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(97, 154, 200, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(97, 154, 200, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent 80%);
  z-index: -1;
  pointer-events: none;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* ===== Layout ===== */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Nav ===== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(11, 13, 18, 0.72);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  flex-shrink: 0;
}
.nav-logo-mark img,
.nav-logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 9px;
}
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-body);
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 8px 32px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 48px rgba(123, 97, 255, 0.32);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
}
/* Apple App Store badge — rebuilt to match Apple's official proportions */
.btn-appstore {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 18px;
  height: 54px;
  min-width: 180px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-family: var(--font-system);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-appstore .bi {
  display: block;
  width: 26px;
  height: 30px;
  flex-shrink: 0;
}
.btn-appstore .bi path { fill: #fff; }
.btn-appstore-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  text-align: left;
}
.btn-appstore-small {
  font-family: var(--font-system);
  font-size: 11px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: #fff;
  opacity: 0.88;
}
.btn-appstore-big {
  font-family: var(--font-system);
  font-size: 20px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: #fff;
}
.btn-appstore:hover {
  transform: translateY(-1px);
  background: #0a0a0a;
  border-color: rgba(255, 255, 255, 0.32);
}

/* ===== Typography ===== */

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  overflow-wrap: break-word;
  word-break: normal;
}

.h1 {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  overflow-wrap: break-word;
  hyphens: none;
  padding-bottom: 0.06em;
}
.h2 {
  font-size: clamp(26px, 4.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.028em;
  margin-bottom: 16px;
  text-wrap: balance;
  overflow-wrap: break-word;
}

@media (max-width: 480px) {
  .h1 { font-size: 34px; letter-spacing: -0.03em; }
  .h2 { font-size: 28px; letter-spacing: -0.025em; }
  .container { padding: 0 20px; }
}
.h3 {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  margin-bottom: 10px;
  text-wrap: balance;
}

.lead {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  line-height: 1.55;
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Sections ===== */

section { padding: 96px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
  padding: 0 8px;
}
.section-head .lead { margin-top: 12px; }

/* ===== Phone mockup frame — iPhone 14 Pro proportions with safe areas ===== */

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 375 / 812;
  border-radius: 48px;
  padding: 11px;
  background:
    linear-gradient(145deg, #2A2F3D 0%, #0F1117 70%);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 2px rgba(0, 0, 0, 0.9),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: visible;
}
/* Side buttons for realism */
.phone::after {
  content: '';
  position: absolute;
  top: 90px; left: -2px;
  width: 3px; height: 30px;
  background: linear-gradient(90deg, #0a0a0a, #24283a);
  border-radius: 2px 0 0 2px;
  box-shadow: 0 54px 0 #0a0a0a, 0 54px 0 -1px #24283a;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Notch/home indicator removed — Figma screenshots include their own iOS chrome */
/* Soft glow halo behind the phone */
.phone-halo {
  position: absolute;
  inset: -18% -15% -5% -15%;
  background: radial-gradient(ellipse at 50% 40%, var(--accent-glow) 0%, transparent 65%);
  z-index: -1;
  filter: blur(6px);
  pointer-events: none;
}
.phone--sm { width: 230px; border-radius: 40px; padding: 9px; }
.phone--sm .phone-screen { border-radius: 32px; }
.phone--xs { width: 180px; border-radius: 32px; padding: 7px; }
.phone--xs .phone-screen { border-radius: 26px; }

/* ===== Hero ===== */

.hero {
  padding: 80px 0 140px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -30% -20% 0 -20%;
  background:
    radial-gradient(ellipse 40% 60% at 30% 35%, rgba(71, 128, 174, 0.25), transparent 60%),
    radial-gradient(ellipse 30% 50% at 75% 45%, rgba(97, 154, 200, 0.18), transparent 60%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-inner > * { min-width: 0; }
@media (max-width: 960px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
}
.hero-copy .eyebrow { margin-bottom: 20px; }
.hero-copy h1 { margin-bottom: 24px; }
.hero-copy h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #619AC8 0%, #A8C8E0 40%, #619AC8 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 0 22px rgba(97, 154, 200, 0.35));
}
.hero-copy .lead { max-width: 540px; }
@media (max-width: 960px) {
  .hero-copy .lead { max-width: 100%; margin: 0 auto; }
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 960px) {
  .hero-ctas { justify-content: center; }
}
.hero-meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 960px) {
  .hero-meta { justify-content: center; }
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-meta svg { width: 14px; height: 14px; color: var(--success); }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  isolation: isolate;
  overflow: visible;
}
.hero-visual .phone {
  width: 330px;
  transform: rotate(-2.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-visual .phone:hover { transform: rotate(0deg) translateY(-8px); }

/* orbit accent blobs */
.hero-visual::before,
.hero-visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}
.hero-visual::before {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(71, 128, 174, 0.55), transparent 70%);
  top: -60px; left: -40px;
}
.hero-visual::after {
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(97, 154, 200, 0.45), transparent 70%);
  bottom: -20px; right: -60px;
}

/* Floating chips around hero phone */
.hero-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(22, 26, 36, 0.8);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  z-index: 2;
  white-space: nowrap;
}
.hero-chip-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: chip-pulse 2s infinite;
}
.hero-chip svg { width: 14px; height: 14px; color: var(--accent); }
.hero-chip--1 { top: 8%; left: -4%; }
.hero-chip--2 { top: 44%; right: -8%; }
.hero-chip--3 { bottom: 12%; left: -8%; }
@keyframes chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}
@media (max-width: 960px) {
  .hero-chip--1, .hero-chip--3 { left: 2%; }
  .hero-chip--2 { right: 2%; }
}

/* ===== Features grid ===== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
}

.feature-card {
  background:
    linear-gradient(180deg, rgba(57, 97, 129, 0.08) 0%, rgba(22, 26, 36, 0.6) 60%),
    linear-gradient(180deg, var(--card) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 40% at 50% 0%, rgba(97, 154, 200, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-steel);
  box-shadow: 0 24px 64px rgba(57, 97, 129, 0.25);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(97, 154, 200, 0.22), rgba(57, 97, 129, 0.12)),
    rgba(22, 26, 36, 0.8);
  border: 1px solid rgba(97, 154, 200, 0.28);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 12px; font-size: 22px; letter-spacing: -0.02em; }
.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 280px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.feature-phone-wrap {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
  position: relative;
}
.feature-phone-wrap .phone {
  width: 230px;
  margin-bottom: -40%;
}

/* ===== How it works ===== */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
}
.step {
  padding: 36px 32px;
  background:
    linear-gradient(180deg, rgba(57, 97, 129, 0.06) 0%, transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--border-steel);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 22px;
  box-shadow: 0 8px 24px rgba(57, 97, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.step h3 { margin-bottom: 10px; font-size: 22px; letter-spacing: -0.02em; color: var(--text); }
.step p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.55;
}
.step-connect {
  display: none;
}
@media (min-width: 961px) {
  .steps {
    position: relative;
  }
  .step {
    position: relative;
  }
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 56px;
    right: -20px;
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--border-steel), transparent);
  }
}

/* ===== Showcase ===== */

.showcase {
  background:
    linear-gradient(180deg, rgba(57, 97, 129, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.showcase::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(97, 154, 200, 0.22), transparent 65%);
  filter: blur(60px);
  z-index: 0;
  pointer-events: none;
}
.showcase > .container { position: relative; z-index: 1; }
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 960px) {
  .showcase-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
}
.showcase-copy .h2 { margin-bottom: 20px; }
.showcase-copy .lead { max-width: 460px; }
@media (max-width: 960px) {
  .showcase-copy .lead { margin: 0 auto; }
}
.showcase-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.showcase-visual .phone {
  width: 340px;
}
.showcase-bullets {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 14px;
}
.showcase-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}
.showcase-bullets svg {
  flex-shrink: 0;
  width: 20px; height: 20px;
  color: var(--success);
  margin-top: 2px;
}
@media (max-width: 960px) {
  .showcase-bullets {
    justify-items: center;
    text-align: left;
    max-width: 340px;
    margin: 32px auto 0;
  }
}

/* ===== Final CTA ===== */

.cta-final {
  padding: 120px 0;
  position: relative;
}
.cta-final-card {
  position: relative;
  text-align: center;
  padding: 72px 48px;
  background:
    linear-gradient(145deg, rgba(57, 97, 129, 0.22) 0%, rgba(22, 26, 36, 0.6) 60%),
    rgba(16, 19, 26, 0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--border-steel);
  border-radius: 36px;
  overflow: hidden;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.cta-final-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 50% 0%, rgba(97, 154, 200, 0.28), transparent 70%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(71, 128, 174, 0.18), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.cta-final-card h2 {
  font-size: clamp(36px, 5vw, 60px);
  margin-bottom: 16px;
}
.cta-final-card .lead { max-width: 540px; margin: 0 auto 40px; }
.cta-final-card .hero-ctas { justify-content: center; margin-top: 0; }
.cta-final-card .hero-meta { justify-content: center; margin-top: 28px; }
@media (max-width: 720px) {
  .cta-final { padding: 64px 0; }
  .cta-final-card { padding: 48px 24px; border-radius: 28px; }
}

/* ===== Marquee of genre chips ===== */

.marquee {
  padding: 48px 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(16, 19, 26, 0.4), rgba(11, 13, 18, 0.2));
}
.marquee-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 24px;
  font-weight: 600;
}
.marquee-track {
  display: flex;
  gap: 16px;
  animation: marquee-scroll 38s linear infinite;
  width: max-content;
  padding: 0 16px;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.marquee-chip:hover {
  border-color: var(--border-steel);
  color: var(--text);
}
.marquee-chip svg {
  width: 14px; height: 14px;
  color: var(--accent);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Edge fade */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.marquee::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

/* ===== Footer ===== */

.footer {
  border-top: 1px solid var(--border);
  padding: 72px 0 40px;
  margin-top: 40px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 320px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}
.footer-brand img {
  width: 32px; height: 32px; border-radius: 8px;
}
.footer-tagline {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  font-size: 14px;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===== Utility ===== */

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

/* ===================================================================
   LEGAL PAGES (terms.html, privacy.html)
   =================================================================== */

.legal {
  padding: 80px 0 40px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
}
.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  font-size: 13px;
  max-height: calc(100vh - var(--nav-height) - 48px);
  overflow-y: auto;
}
@media (max-width: 960px) {
  .legal-toc {
    position: static;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    background: var(--surface);
  }
}
.legal-toc-title {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc li {
  counter-increment: toc;
  padding-left: 24px;
  position: relative;
}
.legal-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 12px;
}
.legal-toc a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
  line-height: 1.35;
}
.legal-toc a:hover { color: var(--text); }

.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.72;
  color: var(--text-secondary);
}
.prose h1 {
  font-size: clamp(36px, 5vw, 48px);
  color: var(--text);
  margin-bottom: 12px;
}
.prose .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 48px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.prose .intro {
  font-size: 18px;
  color: var(--text);
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin-bottom: 48px;
}
.prose h2 {
  font-size: 24px;
  color: var(--text);
  margin: 48px 0 16px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}
.prose h3 {
  font-size: 18px;
  color: var(--text);
  margin: 32px 0 12px;
}
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol {
  margin: 0 0 16px 24px;
  padding-left: 8px;
}
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a {
  color: var(--accent);
  border-bottom: 1px solid rgba(97, 154, 200, 0.38);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.prose a:hover { border-bottom-color: var(--accent); color: #82B0D6; }
.prose .intro {
  border-left-color: var(--accent);
}
.prose code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88em;
  background: var(--card);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}
.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
.placeholder {
  display: inline-block;
  background: rgba(251, 191, 36, 0.08);
  color: #FBBF24;
  padding: 1px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.9em;
  border: 1px dashed rgba(251, 191, 36, 0.3);
}
