/* ==========================================================================
   iLurna — Design System v7 · iOS / Apple style
   System fonts, white + #f5f5f7 bands, Apple blue, flat rounded tiles.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #000000;
  --card-bg: #ffffff;
  --tile-bg: #f5f5f7;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --menu-bg: rgba(255, 255, 255, 0.97);

  --border: rgba(0, 0, 0, 0.08);
  --border-strong: rgba(0, 0, 0, 0.16);

  --text-1: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;

  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --teal: #00c7be;
  --orange: #ff9500;
  --pink: #ff2d55;
  --green: #34c759;
  --red: #ff3b30;

  /* Apple-Intelligence-style highlight gradient */
  --grad-text: linear-gradient(90deg, #0894ff, #c959dd 40%, #ff2e54 70%, #ff9004);
  --grad-blue: linear-gradient(135deg, #0a84ff, #0066cc);
  --grad-warm: linear-gradient(135deg, #ff9500, #ffcc00);

  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
    'Helvetica Neue', 'Segoe UI', Helvetica, Arial, sans-serif;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.16);

  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --nav-h: 56px;
}

/* ---------- Dark mode (site default) ----------
   Slate palette shared with the privacy / terms pages:
   page #111827, panels #1f2937, lines #374151, links #60a5fa. */
html[data-theme="dark"] {
  --bg: #111827;
  --bg-soft: #0d1422;
  --bg-dark: #0a0f1a;
  --card-bg: #1f2937;
  --tile-bg: #1f2937;
  --nav-bg: rgba(17, 24, 39, 0.82);
  --menu-bg: rgba(17, 24, 39, 0.98);

  --border: rgba(148, 163, 184, 0.16);
  --border-strong: #374151;

  --text-1: #f3f4f6;
  --text-2: #c2c8d2;
  --text-3: #9ca3af;

  --blue: #3b82f6;
  --blue-hover: #60a5fa;
  --link: #60a5fa;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

::selection { background: rgba(0, 113, 227, 0.25); }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-1);
}

/* ---------- Layout ---------- */
.container { max-width: 1040px; margin: 0 auto; padding: 0 22px; }

.section { padding: 110px 0; position: relative; }
.section--tight { padding: 80px 0; }

.section--band { background: var(--bg-soft); }

.section-header { max-width: 700px; margin: 0 auto 60px; text-align: center; }

.section-eyebrow {
  display: block;
  color: var(--text-3);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.section-description { color: var(--text-2); font-size: 1.2rem; line-height: 1.45; }

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

/* ---------- Buttons — Apple pills ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 980px;
  border: none;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  white-space: nowrap;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
}
.btn-secondary:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

.btn-large { padding: 15px 32px; font-size: 1.08rem; }

/* Text link, Apple style */
.link-more { color: var(--link); text-decoration: none; font-size: 1.02rem; }
.link-more:hover { text-decoration: underline; }
.link-more::after { content: ' ›'; }

/* Store badges */
.store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
html[data-theme="dark"] .store-btn { background: #fff; color: #000; border-color: transparent; }
html[data-theme="dark"] .store-btn .store-label { color: rgba(0, 0, 0, 0.6); }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.store-btn .store-label { font-size: 0.62rem; color: rgba(255, 255, 255, 0.65); line-height: 1.2; letter-spacing: 0.06em; }
.store-btn .store-name { font-size: 0.98rem; font-weight: 600; line-height: 1.25; }

.store-btn--soon { opacity: 0.45; cursor: default; pointer-events: none; }

.soon-chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--tile-bg);
  color: var(--text-2);
  font-size: 0.75rem;
  font-weight: 600;
}

/* ==========================================================================
   Navigation — slim frosted, Apple style
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.navbar.scrolled { border-bottom-color: var(--border); }

.nav-container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-1);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.logo-img { width: 28px; height: 28px; border-radius: 8px; }
.logo .brand-sub { font-size: 0.82em; font-weight: 500; color: var(--text-3); }

.nav-menu { display: flex; align-items: center; gap: 8px; }
/* links sit centred, so the button and theme toggle group on the right */
@media (min-width: 769px) { .nav-menu { margin: 0 auto; } }
@media (max-width: 768px) { .theme-toggle { margin-left: auto; } }

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  padding: 7px 13px;
  border-radius: 980px;
  transition: color 0.25s, background 0.25s;
}
.nav-link:hover { color: var(--text-1); }
.nav-link.active { color: var(--text-1); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 7px 17px; font-size: 0.86rem; }

/* Theme toggle */
.theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: 980px;
  border: none;
  background: var(--tile-bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s, background 0.25s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--text-1); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--text-1);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ==========================================================================
   Ambient — kept minimal for iOS look
   ========================================================================== */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora__orb { display: none; }

.grid-overlay { display: none; }

/* ==========================================================================
   Hero — Apple product-page style
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 96px) 0 96px;
  overflow: hidden;
  text-align: center;
}
.hero--centered { padding: calc(var(--nav-h) + 96px) 0 96px; }

.hero-container {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 22px;
  display: block;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 980px;
  background: var(--tile-bg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 28px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero-title {
  font-size: clamp(2.9rem, 6.4vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.hero--centered .hero-title { font-size: clamp(2.9rem, 6.4vw, 4.8rem); }

.hero-description {
  color: var(--text-2);
  font-size: 1.3rem;
  line-height: 1.45;
  max-width: 640px;
  margin: 0 auto 34px;
}
.hero--centered .hero-description { max-width: 640px; margin-left: auto; margin-right: auto; font-size: 1.3rem; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.hero--centered .hero-buttons { justify-content: center; }

/* proof chips */
.proof-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero--centered .proof-row { border-top: none; padding-top: 0; }
.proof-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 980px;
  background: var(--tile-bg);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-2);
  white-space: nowrap;
}
.proof-chip strong { color: var(--text-1); font-weight: 600; }
.proof-chip svg { width: 16px; height: 16px; flex-shrink: 0; }

/* App icon duo under hero */
.hero-apps {
  display: flex;
  gap: 44px;
  justify-content: center;
  margin-top: 60px;
  flex-wrap: wrap;
}
.hero-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}
.hero-app:hover { transform: translateY(-6px) scale(1.03); }
.hero-app .app-squircle { width: 108px; height: 108px; border-radius: 26px; box-shadow: var(--shadow-md); }
.hero-app .hero-app-name { font-size: 1.02rem; font-weight: 600; color: var(--text-1); }
.hero-app .hero-app-sub { font-size: 0.85rem; color: var(--text-3); margin-top: -8px; }
.hero-app .link-more { font-size: 0.92rem; }

.app-squircle { border-radius: 24%; overflow: hidden; }
.app-squircle svg { width: 100%; height: 100%; }

/* ==========================================================================
   App cards — Apple grid tiles
   ========================================================================== */
.apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.app-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 52px 44px;
  background: var(--tile-bg);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}
.app-card:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }

.app-card-header { display: flex; align-items: center; gap: 16px; }

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.app-icon svg { width: 32px; height: 32px; }
.app-icon--leo { background: var(--grad-blue); }
.app-icon--learnq { background: var(--grad-warm); }

.app-card-title { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.015em; }
.app-card-tagline { color: var(--text-3); font-size: 0.95rem; }

.app-card-description { color: var(--text-2); font-size: 1.08rem; line-height: 1.5; }

.app-features-list { list-style: none; display: grid; gap: 11px; }
.app-features-list li { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 0.98rem; }
.app-features-list svg { flex-shrink: 0; }

.app-card-actions { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step-card {
  padding: 40px 32px;
  border-radius: var(--r-xl);
  background: var(--tile-bg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.step-card:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 980px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  margin-bottom: 20px;
}
.step-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.step-card p { color: var(--text-2); font-size: 0.98rem; }

/* ==========================================================================
   Why / feature cards
   ========================================================================== */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.why-card {
  padding: 38px 28px;
  border-radius: var(--r-xl);
  background: var(--card-bg);
  text-align: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.section--band .why-card { background: var(--card-bg); }
.why-card:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: 980px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 113, 227, 0.1);
  color: var(--blue);
  margin: 0 auto 18px;
}
.why-icon svg { width: 26px; height: 26px; }

.why-grid .why-card:nth-child(4n+2) .why-icon,
.features-grid .why-card:nth-child(3n+2) .why-icon { background: rgba(0, 199, 190, 0.12); color: var(--teal); }
.why-grid .why-card:nth-child(4n+3) .why-icon,
.features-grid .why-card:nth-child(3n) .why-icon { background: rgba(255, 149, 0, 0.12); color: var(--orange); }
.why-grid .why-card:nth-child(4n) .why-icon { background: rgba(255, 45, 85, 0.1); color: var(--pink); }

.why-card h3 { font-size: 1.18rem; margin-bottom: 8px; }
.why-card p { color: var(--text-2); font-size: 0.96rem; }

/* Feature grid (features page) */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.features-grid .why-card { display: flex; flex-direction: column; align-items: center; }

.feature-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 980px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  width: fit-content;
}
.feature-tag--leo { background: rgba(0, 113, 227, 0.1); color: var(--blue); }
.feature-tag--learnq { background: rgba(255, 149, 0, 0.12); color: var(--orange); }

/* ==========================================================================
   Impact band — black, Apple keynote style
   ========================================================================== */
.impact-band {
  position: relative;
  overflow: hidden;
  background: #000;
  padding: 96px 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
  margin-bottom: 72px;
}
.impact-item .stat-number {
  font-size: 3.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.impact-item .stat-label { color: #86868b; font-size: 1rem; margin-top: 6px; }

.impact-quote { max-width: 780px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.impact-quote blockquote {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: #f5f5f7;
  margin-bottom: 18px;
}
.impact-quote cite { font-style: normal; color: #86868b; font-size: 1rem; }

@media (max-width: 768px) {
  .impact-grid { grid-template-columns: 1fr; gap: 30px; }
}
html[data-theme="dark"] .impact-band { background: var(--bg-dark); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 80px 48px;
  text-align: center;
  overflow: hidden;
  background: var(--tile-bg);
}
.cta-card h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.cta-card p { color: var(--text-2); font-size: 1.2rem; max-width: 540px; margin: 0 auto 34px; }
.cta-card .hero-buttons, .cta-card .store-buttons { justify-content: center; margin-bottom: 0; }
.cta-card .store-btn { background: #000; color: #fff; }
.cta-card .store-btn .store-label { color: rgba(255, 255, 255, 0.65); }
html[data-theme="dark"] .cta-card .store-btn { background: #fff; color: #000; }
html[data-theme="dark"] .cta-card .store-btn .store-label { color: rgba(0, 0, 0, 0.6); }

/* ==========================================================================
   Footer — Apple style light gray
   ========================================================================== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  color: var(--text-2);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1.3fr 1fr 1fr;
  gap: 44px;
  margin-bottom: 44px;
}

.footer .logo { color: var(--text-1); font-size: 1rem; }
.footer .logo .brand-sub { color: var(--text-3); }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { color: var(--text-3); font-size: 0.85rem; max-width: 290px; line-height: 1.55; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-1);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a { color: var(--text-2); text-decoration: none; font-size: 0.85rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--text-1); text-decoration: underline; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 84px) 0 64px;
  text-align: center;
  overflow: hidden;
}
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 18px; }
.page-hero p { color: var(--text-2); font-size: 1.22rem; line-height: 1.45; max-width: 640px; margin: 0 auto; }
.page-hero .container { position: relative; z-index: 1; }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split + .split { margin-top: 110px; }
.split--reverse .split-visual { order: 2; }

.split-content .section-eyebrow { text-align: left; }
.split-content h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); letter-spacing: -0.02em; margin-bottom: 14px; }
.split-content > p { color: var(--text-2); margin-bottom: 24px; font-size: 1.1rem; }

.check-list { list-style: none; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 1rem; }
.check-list li strong { color: var(--text-1); font-weight: 600; }
.check-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(52, 199, 89, 0.14);
  margin-top: 2px;
}
.check-list .check svg { width: 12px; height: 12px; }

.split-visual { position: relative; display: flex; justify-content: center; }
.split-visual::before { display: none; }

/* Phones (features page) — clean, no float */
.phone {
  width: 250px;
  border-radius: 40px;
  padding: 10px;
  background: #1d1d1f;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 12px;
  background: #000;
  z-index: 3;
}
.phone-screen { border-radius: 32px; overflow: hidden; background: #0a0c1c; aspect-ratio: 9 / 19; position: relative; }
.phone-screen svg { width: 100%; height: 100%; }
.split-visual .phone { animation: none; }

/* ==========================================================================
   Pricing
   ========================================================================== */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 880px; margin: 0 auto; }

.price-card {
  position: relative;
  border-radius: var(--r-xl);
  padding: 46px 38px;
  background: var(--tile-bg);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.price-card:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }

.price-value { font-size: 2.6rem; font-weight: 700; letter-spacing: -0.02em; }
.price-value span { font-size: 1rem; font-weight: 400; color: var(--text-3); }

/* FAQ */
.faq-list { max-width: 740px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  border-radius: var(--r-md);
  background: var(--card-bg);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.section--band .faq-item { background: var(--card-bg); }
.faq-item[open] { box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text-1);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--blue);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 24px 22px; color: var(--text-2); font-size: 0.98rem; }
.faq-item .faq-body a { color: var(--link); }

/* ==========================================================================
   About
   ========================================================================== */
.stats-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat-card {
  text-align: center;
  padding: 44px 24px;
  border-radius: var(--r-xl);
  background: var(--tile-bg);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.stat-card:hover { transform: scale(1.015); box-shadow: var(--shadow-md); }
.stat-card .stat-number { font-size: 2.8rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-card .stat-label { font-size: 0.98rem; color: var(--text-2); margin-top: 4px; }

.stat-item .stat-number {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.prose-block { max-width: 700px; margin: 0 auto; }
.prose-block p { color: var(--text-2); font-size: 1.15rem; line-height: 1.6; margin-bottom: 22px; }
.prose-block p strong { color: var(--text-1); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: start; }

.form-card, .info-card {
  border-radius: var(--r-xl);
  padding: 40px;
  background: var(--tile-bg);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; color: var(--text-1); }
.form-group label .req { color: var(--red); }

.form-control {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-1);
  font-family: var(--font);
  font-size: 1rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-control::placeholder { color: var(--text-3); }
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
}
textarea.form-control { resize: vertical; min-height: 130px; }
select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236e6e73' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }

.form-check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 20px; color: var(--text-2); font-size: 0.9rem; }
.form-check input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; }

.form-alert { display: none; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-size: 0.94rem; font-weight: 500; }
.form-alert.show { display: block; animation: fade-up-in 0.4s var(--ease-out); }
.form-alert--success { background: rgba(52, 199, 89, 0.12); color: #1d7a35; }
.form-alert--error { background: rgba(255, 59, 48, 0.1); color: #c22a22; }
html[data-theme="dark"] .form-alert--success { color: #4cd964; }
html[data-theme="dark"] .form-alert--error { color: #ff6b61; }

.info-item { display: flex; gap: 14px; align-items: flex-start; padding: 17px 0; border-bottom: 1px solid var(--border); }
.info-item:first-child { padding-top: 0; }
.info-item:last-child { border-bottom: none; padding-bottom: 0; }
.info-item .why-icon { width: 42px; height: 42px; border-radius: 980px; margin: 0; flex-shrink: 0; }
.info-item .why-icon svg { width: 19px; height: 19px; }
.info-item:nth-child(2) .why-icon { background: rgba(0, 199, 190, 0.12); color: var(--teal); }
.info-item:nth-child(3) .why-icon { background: rgba(255, 149, 0, 0.12); color: var(--orange); }
.info-item:nth-child(4) .why-icon { background: rgba(255, 45, 85, 0.1); color: var(--pink); }
.info-item h4 { font-size: 1rem; margin-bottom: 2px; }
.info-item p, .info-item a { color: var(--text-2); font-size: 0.92rem; text-decoration: none; }
.info-item a { color: var(--link); }
.info-item a:hover { text-decoration: underline; }

/* ==========================================================================
   Legal / prose pages
   ========================================================================== */
.legal-layout { max-width: 780px; margin: 0 auto; }

.legal-meta { text-align: center; color: var(--text-3); font-size: 0.9rem; margin-top: 8px; }

.legal-content { border-radius: var(--r-xl); background: var(--tile-bg); padding: 48px; }
.legal-content h2 { font-size: 1.4rem; margin: 38px 0 12px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--text-1); }
.legal-content p { color: var(--text-2); margin-bottom: 14px; font-size: 0.98rem; }
.legal-content ul, .legal-content ol { margin: 0 0 16px 22px; color: var(--text-2); display: grid; gap: 8px; font-size: 0.98rem; }
.legal-content a { color: var(--link); }
.legal-content strong { color: var(--text-1); }

.notice-box { padding: 18px 22px; border-radius: var(--r-md); margin: 16px 0; font-size: 0.95rem; background: var(--card-bg); }
.notice-box--info { border-left: 4px solid var(--blue); }
.notice-box--warn { border-left: 4px solid var(--orange); }
.notice-box--danger { border-left: 4px solid var(--red); }
.notice-box--success { border-left: 4px solid var(--green); }
.notice-box p { margin: 0; color: var(--text-2); }
.notice-box strong { color: var(--text-1); }

/* ==========================================================================
   Error pages
   ========================================================================== */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}
.error-code {
  font-size: clamp(6.5rem, 20vw, 11rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}
.error-page h1 { font-size: 1.9rem; margin-bottom: 12px; }
.error-page p { color: var(--text-2); max-width: 440px; margin: 0 auto 30px; font-size: 1.1rem; }
.error-page .content { position: relative; z-index: 1; }
.error-page .hero-buttons { justify-content: center; margin-bottom: 0; }

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 44px;
  height: 44px;
  border-radius: 980px;
  border: none;
  background: var(--card-bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out), color 0.25s;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { color: var(--blue); }
.back-to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Reveal animations — subtle
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal--left { transform: translateX(-28px); }
.reveal--right { transform: translateX(28px); }
.reveal--left.visible, .reveal--right.visible { transform: translateX(0); }

@keyframes fade-up-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split--reverse .split-visual { order: 0; }
  .split { gap: 44px; }
  .split-content .section-eyebrow { text-align: center; }
  .split-content { text-align: center; }
  .split-content .check-list { text-align: left; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-menu {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--menu-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease-out), opacity 0.25s, visibility 0.25s;
  }
  .nav-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav-menu .nav-link { padding: 13px 10px; font-size: 1.05rem; }
  .menu-toggle { display: flex; }
  .nav-actions { display: none; }

  .apps-grid, .steps-grid, .pricing-grid, .why-grid, .features-grid { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .hero { padding-top: calc(var(--nav-h) + 64px); }
  .hero-apps { gap: 32px; }

  .legal-content { padding: 30px 22px; }
  .cta-card { padding: 56px 26px; }
  .app-card { padding: 36px 28px; }
  .form-card, .info-card { padding: 28px 22px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}




/* ==========================================================================
   HOME PAGE (v12) — App Store editorial. System fonts, slate / white,
   one blue accent. All colour comes from the apps' own artwork.
   Scoped to .hm-* — used only by views/index.ejs.
   ========================================================================== */

.hm-container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* Footer lines up with the wider home column */
.hm-page .footer .container { max-width: 1100px; }

/* Home header spans the full width */
.hm-page .nav-container { max-width: none; padding: 0 32px; }

/* Over the hero the bar is clear with white type; it frosts once you scroll */
.hm-page .navbar:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.hm-page .navbar:not(.scrolled) .logo { color: #fff; }
.hm-page .navbar:not(.scrolled) .logo .brand-sub { color: rgba(255, 255, 255, 0.68); }
.hm-page .navbar:not(.scrolled) .theme-toggle { background: rgba(255, 255, 255, 0.12); color: #fff; }
.hm-page .navbar:not(.scrolled) .menu-toggle span { background: #fff; }
@media (min-width: 769px) {
  .hm-page .navbar:not(.scrolled) .nav-link { color: rgba(255, 255, 255, 0.76); }
  .hm-page .navbar:not(.scrolled) .nav-link:hover,
  .hm-page .navbar:not(.scrolled) .nav-link.active { color: #fff; }
}

/* ---------- Hero: copy over a full-bleed looping video ---------- */
.hm-hero {
  --hero-ink: 17, 24, 39;
  position: relative;
  min-height: clamp(560px, 84vh, 760px);
  padding-top: var(--nav-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: rgb(var(--hero-ink));
  color: #fff;
}

.hm-video { position: absolute; inset: 0; }
.hm-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* scrim — keeps the nav and copy readable whatever frame is showing */
.hm-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(var(--hero-ink), 0.6) 0%, rgba(var(--hero-ink), 0) 26%),
    linear-gradient(90deg, rgba(var(--hero-ink), 0.92) 0%, rgba(var(--hero-ink), 0.7) 48%, rgba(var(--hero-ink), 0.42) 100%);
}
/* on the slate theme the video melts into the page instead of ending on an edge */
html[data-theme="dark"] .hm-video::after {
  background:
    linear-gradient(180deg, rgba(var(--hero-ink), 0.6) 0%, rgba(var(--hero-ink), 0) 26%, rgba(var(--hero-ink), 0) 62%, rgb(var(--hero-ink)) 100%),
    linear-gradient(90deg, rgba(var(--hero-ink), 0.92) 0%, rgba(var(--hero-ink), 0.7) 48%, rgba(var(--hero-ink), 0.42) 100%);
}

.hm-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: 64px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.hm-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 22px;
  max-width: 12em;
  text-wrap: balance;
}
.hm-hero-lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  max-width: 540px;
  margin-bottom: 32px;
}
.hm-hero-actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.hm-hero-link { color: #fff; text-decoration: none; font-size: 1.02rem; font-weight: 500; }
.hm-hero-link::after { content: ' ›'; }
.hm-hero-link:hover { text-decoration: underline; }

/* the four apps, as a frosted list that jumps to each card */
.hm-hero-apps {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
}
.hm-hero-app {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 12px;
  border-radius: 15px;
  color: #fff;
  text-decoration: none;
  transition: background 0.25s;
}
.hm-hero-app:hover { background: rgba(255, 255, 255, 0.1); }
.hm-hero-app img { width: 46px; height: 46px; border-radius: 22%; flex-shrink: 0; }
.hm-hero-app-text { min-width: 0; flex: 1; }
.hm-hero-app b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.hm-hero-app small { display: block; margin-top: 2px; font-size: 0.82rem; color: rgba(255, 255, 255, 0.64); line-height: 1.3; }
.hm-hero-app svg { width: 16px; height: 16px; flex-shrink: 0; color: rgba(255, 255, 255, 0.5); }

.hm-hero-link:focus-visible,
.hm-hero-app:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.hm-hero + .hm-section { padding-top: 76px; }

/* ---------- Section head ---------- */
.hm-section { padding: 56px 0 84px; }
.hm-section--band { background: var(--bg-soft); padding: 84px 0; }

.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.hm-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.15; }
.hm-head p { color: var(--text-2); font-size: 1.02rem; margin-top: 8px; }
.hm-head .link-more { flex-shrink: 0; font-size: 0.95rem; white-space: nowrap; }

/* ---------- Apps: one wide panel per app, artwork and copy side by side ---------- */
.hm-apps { display: grid; gap: 24px; }

.hm-app {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
  border-radius: var(--r-xl);
  background: var(--card-bg);
  border: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.hm-app:nth-child(even) .hm-app-media { order: 2; }

.hm-app-media {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.hm-app-media > img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* tall phone screenshots sit as a staggered pair instead of being cropped */
.hm-app-media--phones { display: flex; align-items: center; justify-content: center; gap: 5%; }
.hm-app-media--phones > img {
  width: auto;
  height: auto;
  max-width: 43%;
  max-height: 82%;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5%);
}
.hm-app-media--phones > img + img { transform: translateY(5%); }

.hm-app-copy { padding: 16px 32px; }

.hm-app-id { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hm-app-icon { width: 52px; height: 52px; border-radius: 22%; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.hm-app-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.hm-app-cat {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hm-app-tag {
  font-size: clamp(1.4rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.18;
  color: var(--text-1);
  margin-bottom: 14px;
  text-wrap: balance;
}
.hm-app-desc { color: var(--text-2); font-size: 1rem; line-height: 1.6; margin-bottom: 20px; }

.hm-points { list-style: none; display: grid; gap: 10px; margin-bottom: 28px; }
.hm-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 0.95rem; line-height: 1.45; }
.hm-points svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--blue); }

.hm-app-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hm-app-actions .btn { padding: 12px 22px; font-size: 0.96rem; font-weight: 600; }
.hm-app-actions .btn svg { width: 17px; height: 17px; }
.hm-app-meta { color: var(--text-3); font-size: 0.82rem; line-height: 1.5; }
.hm-note { margin-top: 16px; font-size: 0.76rem; color: var(--text-3); line-height: 1.5; }

/* ---------- Apps carousel (home): one panel at a time, advancing by itself ---------- */
.hm-tabs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.hm-tab {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  border-radius: 980px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.hm-tab img { width: 26px; height: 26px; border-radius: 22%; }
.hm-tab:hover { color: var(--text-1); }
.hm-tab.is-active { background: var(--card-bg); color: var(--text-1); border-color: var(--border-strong); }

/* the active tab's bar is the autoplay timer */
.hm-tab-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
}
.hm-carousel.is-auto .hm-tab.is-active .hm-tab-bar { animation: hm-tab-fill 6s linear forwards; }
.hm-carousel.is-paused .hm-tab-bar,
.hm-carousel.is-offscreen .hm-tab-bar,
.hm-carousel.is-hidden .hm-tab-bar { animation-play-state: paused; }
@keyframes hm-tab-fill { to { transform: scaleX(1); } }

.hm-carousel-controls { margin-left: auto; display: flex; gap: 8px; }
.hm-arrow {
  width: 38px;
  height: 38px;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
}
.hm-arrow:hover { color: var(--text-1); border-color: var(--border-strong); }
.hm-arrow svg { width: 16px; height: 16px; }
.hm-arrow[hidden] { display: none; }
.hm-carousel-toggle .icon-play { display: none; }
.hm-carousel-toggle.is-stopped .icon-play { display: block; }
.hm-carousel-toggle.is-stopped .icon-pause { display: none; }

.hm-apps--carousel {
  position: relative;
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hm-apps--carousel::-webkit-scrollbar { display: none; }
.hm-apps--carousel > .hm-app { flex: 0 0 100%; scroll-snap-align: start; }
/* in the carousel every panel keeps the artwork on the left */
.hm-apps--carousel > .hm-app:nth-child(even) .hm-app-media { order: 0; }

/* ---------- Screenshot gallery ---------- */
.hm-gallery { position: relative; }
.hm-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, #000 88%, transparent 100%);
}
.hm-rail::-webkit-scrollbar { display: none; }
.hm-rail img {
  height: 300px;
  width: auto;
  flex: 0 0 auto;
  border-radius: 16px;
  scroll-snap-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.hm-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 36px; height: 36px;
  margin-top: -22px;
  border: 1px solid var(--border);
  border-radius: 980px;
  background: var(--card-bg);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity 0.25s, color 0.25s;
}
.hm-nav svg { width: 16px; height: 16px; }
.hm-nav--prev { left: -10px; }
.hm-nav--next { right: -10px; }
.hm-gallery:hover .hm-nav, .hm-nav:focus-visible { opacity: 1; }
.hm-nav:hover { color: var(--text-1); }
@media (hover: none) { .hm-nav { display: none; } }

/* ---------- Stats band ---------- */
.hm-band { background: #000; padding: 96px 0; }
/* on slate the statement sits on the page itself, between the two darker bands */
html[data-theme="dark"] .hm-band { background: transparent; }
html[data-theme="dark"] .hm-band-grid { border-top-color: var(--border-strong); }
html[data-theme="dark"] .hm-kicker,
html[data-theme="dark"] .hm-stat span { color: var(--text-3); }

.hm-kicker {
  display: block;
  margin-bottom: 18px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #86868b;
}
.hm-statement { max-width: 860px; margin-bottom: 56px; }
.hm-statement-sub { margin-top: 10px; color: #86868b; font-size: 1.05rem; }
html[data-theme="dark"] .hm-statement-sub { color: var(--text-2); }
.hm-statement .link-more { display: inline-block; margin-top: 20px; }
.hm-band .hm-statement .link-more { color: #2997ff; }
html[data-theme="dark"] .hm-band .hm-statement .link-more { color: var(--link); }
.hm-statement h2 {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #f5f5f7;
}

.hm-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hm-stat b {
  display: block;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #f5f5f7;
}
.hm-stat span { display: block; color: #86868b; font-size: 0.9rem; margin-top: 8px; line-height: 1.45; }

/* ---------- FAQ + CTA ---------- */
.hm-faq { padding: 96px 0; background: var(--bg-soft); }
.hm-faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.hm-faq-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.15; }
.hm-faq-head p { color: var(--text-2); font-size: 1.02rem; margin: 10px 0 16px; }

/* hairline list rather than borderless tiles, so each row reads as a row */
.hm-faq .faq-list { max-width: none; margin: 0; gap: 0; border-top: 1px solid var(--border-strong); }
.hm-faq .faq-item { background: transparent; border-radius: 0; border-bottom: 1px solid var(--border-strong); }
.hm-faq .faq-item[open] { box-shadow: none; }
.hm-faq .faq-item summary { padding: 22px 0; font-size: 1.06rem; }
.hm-faq .faq-item summary:hover { color: var(--blue); }
.hm-faq .faq-item .faq-body { padding: 0 40px 24px 0; font-size: 1rem; line-height: 1.6; }

.hm-cta .store-info { display: flex; flex-direction: column; text-align: left; }

.hm-cta { padding: 96px 0; }
.hm-cta-card {
  border-radius: var(--r-xl);
  padding: 64px 40px;
  text-align: center;
  background: var(--tile-bg);
  border: 1px solid var(--border);
}
.hm-cta-icons { display: flex; justify-content: center; gap: 14px; margin-bottom: 24px; }
.hm-cta-icons img { width: 54px; height: 54px; border-radius: 22%; box-shadow: var(--shadow-sm); }
.hm-cta-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; margin-bottom: 12px; }
.hm-cta-card h2 + .hm-cta-actions { margin-top: 28px; }
.hm-faq-head h2 + .link-more { display: inline-block; margin-top: 14px; }
.hm-cta-card > p { color: var(--text-2); font-size: 1.08rem; max-width: 470px; margin: 0 auto 28px; line-height: 1.55; }
.hm-cta-actions { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; }

/* ---------- Inner pages (Learn, Contact, About) in the home style ---------- */
/* page header: the hero's poster frame under the same scrim, shorter */
.hm-video img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hm-hero--page { min-height: clamp(280px, 38vh, 360px); }
.hm-hero--page .hm-hero-inner { display: block; padding-top: 44px; padding-bottom: 76px; }
.hm-hero--page h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); max-width: 15em; margin-bottom: 0; }
.hm-hero--page h1 + .hm-hero-lead { margin-top: 18px; }
.hm-hero--page .hm-hero-lead { max-width: 620px; margin-bottom: 0; }
.hm-hero .hm-kicker,
html[data-theme="dark"] .hm-hero .hm-kicker { color: rgba(255, 255, 255, 0.64); margin-bottom: 16px; }
/* home: no headline over the video — the actions and the four apps sit along
   the bottom as one bar; the page title is kept for screen readers only */
.hm-sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.hm-hero:not(.hm-hero--page) { align-items: flex-end; }
.hm-hero-inner--bar { display: flex; flex-direction: column; align-items: stretch; gap: 28px; padding-top: 48px; padding-bottom: 112px; }
.hm-hero-inner--bar .hm-hero-app svg { display: none; }
@media (min-width: 901px) { .hm-hero-inner--bar .hm-hero-app small { white-space: nowrap; } }
.hm-hero-inner--bar .hm-hero-apps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hm-hero--page + .hm-section { padding-top: 40px; }
/* light theme has no fade under the header, so the first section needs its own air */
html[data-theme="light"] .hm-hero--page + .hm-section { padding-top: 76px; }

.hm-points strong { color: var(--text-1); font-weight: 600; }

/* heading on the left, long-form copy on the right */
.hm-two { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr); gap: 64px; align-items: start; }
.hm-two-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.15; }
.hm-two-head p { color: var(--text-2); font-size: 1.02rem; margin-top: 10px; }
.hm-prose p { color: var(--text-2); font-size: 1.08rem; line-height: 1.65; margin-bottom: 20px; }
.hm-prose p:last-child { margin-bottom: 0; }
.hm-prose strong { color: var(--text-1); font-weight: 600; }

/* the home facts row, on the page background rather than the black band */
.hm-band-grid--page { margin-top: 72px; border-top-color: var(--border-strong); }
.hm-band-grid--page .hm-stat b { color: var(--text-1); }
.hm-band-grid--page .hm-stat span { color: var(--text-3); }

/* small panels: one idea each */
.hm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hm-cards--4 { grid-template-columns: repeat(4, 1fr); }
.hm-tile {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  border: 1px solid var(--border);
}
.hm-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue);
  margin-bottom: 20px;
}
.hm-tile-icon svg { width: 22px; height: 22px; }
.hm-tile .hm-app-cat { margin: 0 0 8px; }
.hm-tile h3 { font-size: 1.1rem; letter-spacing: -0.015em; line-height: 1.25; margin-bottom: 8px; }
.hm-tile p { color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }

.hm-cards--2 { grid-template-columns: 1fr 1fr; }
.hm-tile--wide { grid-column: 1 / -1; }
.hm-tile h2 { font-size: 1.3rem; letter-spacing: -0.02em; line-height: 1.25; margin-bottom: 12px; }
.hm-tile h2.hm-app-name { font-size: 1.15rem; margin-bottom: 0; }
.hm-tile .hm-points { margin: 16px 0 0; }
.hm-tile p a { color: var(--link); }
.hm-tile p strong, .hm-steps strong { color: var(--text-1); font-weight: 600; }

/* pricing panels */
.hm-plan { padding: 32px; display: flex; flex-direction: column; }
.hm-price { font-size: 2.1rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--text-1); }
.hm-tile .hm-price { color: var(--text-1); font-size: 2.1rem; }
.hm-price span { font-size: 0.95rem; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.hm-plan .hm-points { margin: 22px 0 28px; }
.hm-plan .hm-app-actions { margin-top: auto; }

/* account deletion: numbered steps, plain list, warning line */
.hm-steps { list-style: none; counter-reset: step; display: grid; gap: 12px; margin-top: 18px; }
.hm-steps li {
  counter-increment: step;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.5;
}
.hm-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 980px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}
.hm-points--plain li::before {
  content: '';
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--text-3);
}
.hm-tile .hm-warn {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  border-left: 3px solid var(--orange);
  background: var(--bg-soft);
}
.hm-tile .hm-help { margin-top: 18px; }

/* contact: the form and info cards become the same bordered panels */
.hm-page .form-card,
.hm-page .info-card { background: var(--card-bg); border: 1px solid var(--border); }
.hm-page .form-control { background-color: var(--bg-soft); }
.hm-page .info-item .why-icon { border-radius: 12px; background: rgba(59, 130, 246, 0.14); color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hm-hero { min-height: 0; }
  .hm-hero-inner { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 48px; }
  .hm-hero-apps, .hm-hero-inner--bar .hm-hero-apps { grid-template-columns: 1fr 1fr; }
  .hm-hero-inner--bar { gap: 24px; padding-bottom: 64px; }
  .hm-hero-app svg { display: none; }
  .hm-app { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .hm-app:nth-child(even) .hm-app-media { order: 0; }
  .hm-app-copy { padding: 20px 10px 12px; }
  .hm-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hm-faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .hm-two { grid-template-columns: 1fr; gap: 24px; }
  .hm-cards, .hm-cards--4 { grid-template-columns: 1fr 1fr; }
  .hm-band-grid--page { margin-top: 48px; }
  .hm-nav--prev { left: 2px; }
  .hm-nav--next { right: 2px; }
}

@media (max-width: 768px) {
  .hm-page .nav-container { padding: 0 22px; }
  .hm-hero-inner { padding-top: 44px; padding-bottom: 36px; }
  .hm-hero-actions { gap: 18px; }
  .hm-hero-app { gap: 10px; padding: 9px 8px; }
  .hm-hero-app img { width: 38px; height: 38px; }
  .hm-hero-app b { font-size: 0.94rem; }
  .hm-hero-app small { font-size: 0.76rem; }
  .hm-hero + .hm-section { padding-top: 52px; }
  .hm-section { padding: 44px 0 64px; }
  .hm-section--band { padding: 64px 0; }
  .hm-app-copy { padding: 18px 6px 10px; }
  .hm-app-actions .btn { width: 100%; }
  .hm-tab { padding: 6px 12px 6px 6px; font-size: 0.84rem; }
  .hm-tab img { width: 24px; height: 24px; }
  /* phones: one swipeable row of tabs; swiping replaces the arrows */
  .hm-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -22px; padding-right: 22px; }
  .hm-tabs::-webkit-scrollbar { display: none; }
  .hm-tab, .hm-carousel-controls { flex-shrink: 0; }
  .hm-carousel-controls .hm-arrow--prev, .hm-carousel-controls .hm-arrow--next { display: none; }
  .hm-apps--carousel { gap: 14px; }
  .hm-hero--page .hm-hero-inner { padding-top: 36px; padding-bottom: 52px; }
  .hm-hero--page + .hm-section { padding-top: 28px; }
  .hm-cards, .hm-cards--4, .hm-cards--2 { grid-template-columns: 1fr; }
  .hm-plan { padding: 24px; }
  .hm-tile { padding: 22px; }
  .hm-rail img { height: 240px; }
  .hm-band { padding: 64px 0; }
  .hm-statement { margin-bottom: 40px; }
  .hm-band-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; padding-top: 28px; }
  .hm-faq { padding: 64px 0; }
  .hm-faq .faq-item .faq-body { padding-right: 0; }
  .hm-cta { padding: 64px 0 72px; }
  .hm-cta-card { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-rail { scroll-snap-type: none; }
}
