/* ==========================================================================
   CURRENT — main.css
   Single source of truth for the marketing site.
   Tokens follow docs/design.md (TypeRated visual system, light mode).
   ========================================================================== */

/* -------------------------------- Fonts ---------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/inter-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/inter-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/inter-800.woff2') format('woff2');
}

/* -------------------------------- Tokens --------------------------------- */
:root {
  /* Brand */
  --c-primary:           #0052ff;
  --c-primary-active:    #003ecc;
  --c-primary-disabled:  #a8b8cc;
  --c-primary-tint:      rgba(0, 82, 255, 0.08);
  --c-primary-tint-2:    rgba(0, 82, 255, 0.12);

  /* Surface */
  --c-canvas:            #ffffff;
  --c-surface-soft:      #f7f7f7;
  --c-surface-strong:    #eef0f3;
  --c-surface-dark:      #0a0b0d;
  --c-surface-dark-elev: #16181c;
  --c-surface-dark-elev-2: #1e2025;

  /* Hairlines */
  --c-hairline:          #dee1e6;
  --c-hairline-soft:     #eef0f3;
  --c-hairline-on-dark:  rgba(255, 255, 255, 0.08);

  /* Text */
  --c-ink:               #0a0b0d;
  --c-body:              #5b616e;
  --c-muted:             #7c828a;
  --c-muted-soft:        #a8acb3;
  --c-on-primary:        #ffffff;
  --c-on-dark:           #ffffff;
  --c-on-dark-soft:      #a8acb3;

  /* Semantic */
  --c-up:                #05b169;
  --c-down:              #cf202f;
  --c-accent-yellow:     #f4b000;

  /* Radii */
  --r-xs:    4px;
  --r-sm:    8px;
  --r-md:    12px;
  --r-lg:    16px;
  --r-xl:    24px;
  --r-pill:  100px;
  --r-full:  9999px;

  /* Spacing */
  --s-xxs:    4px;
  --s-xs:     8px;
  --s-sm:     12px;
  --s-base:   16px;
  --s-md:     20px;
  --s-lg:     24px;
  --s-xl:     32px;
  --s-xxl:    48px;
  --s-section: 96px;

  /* Shadow */
  --shadow-soft-drop: 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card-hero: 0 30px 60px -25px rgba(0, 0, 0, 0.35),
                      0 12px 24px -12px rgba(0, 0, 0, 0.18);

  /* Layout */
  --max-w:               1200px;
  --max-w-narrow:        920px;
  --max-w-prose:         680px;
  --header-h:            72px;

  /* Motion */
  --t-fast:    150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:    250ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:    400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Fonts */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

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

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

body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover { color: var(--c-primary-active); }

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

ul, ol { list-style: none; }

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

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

/* ------------------------------ Typography ------------------------------- */
.display-mega   { font-family: var(--f-display); font-size: clamp(48px, 9vw, 80px); font-weight: 400; line-height: 1.0;  letter-spacing: -0.025em; }
.display-xl     { font-family: var(--f-display); font-size: clamp(40px, 7vw, 64px); font-weight: 400; line-height: 1.05; letter-spacing: -0.025em; }
.display-lg     { font-family: var(--f-display); font-size: clamp(36px, 5.5vw, 52px); font-weight: 400; line-height: 1.05; letter-spacing: -0.022em; }
.display-md     { font-family: var(--f-display); font-size: clamp(32px, 4.5vw, 44px); font-weight: 400; line-height: 1.1;  letter-spacing: -0.018em; }
.display-sm     { font-family: var(--f-sans);    font-size: clamp(28px, 3.5vw, 36px); font-weight: 400; line-height: 1.11; letter-spacing: -0.014em; }
.title-lg       { font-family: var(--f-sans);    font-size: clamp(24px, 2.6vw, 32px); font-weight: 400; line-height: 1.13; letter-spacing: -0.012em; }
.title-md       { font-family: var(--f-sans);    font-size: 18px; font-weight: 600; line-height: 1.33; letter-spacing: 0; }
.title-sm       { font-family: var(--f-sans);    font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: 0; }
.body-lg        { font-family: var(--f-sans);    font-size: 18px; font-weight: 400; line-height: 1.55; }
.body-md        { font-family: var(--f-sans);    font-size: 16px; font-weight: 400; line-height: 1.5; }
.body-strong    { font-family: var(--f-sans);    font-size: 16px; font-weight: 700; line-height: 1.5; }
.body-sm        { font-family: var(--f-sans);    font-size: 14px; font-weight: 400; line-height: 1.5; }
.caption        { font-family: var(--f-sans);    font-size: 13px; font-weight: 400; line-height: 1.5; }
.caption-strong { font-family: var(--f-sans);    font-size: 12px; font-weight: 600; line-height: 1.5; letter-spacing: 0.04em; text-transform: uppercase; }
.num            { font-family: var(--f-mono); font-weight: 500; font-feature-settings: 'tnum' 1, 'lnum' 1; }

.text-ink   { color: var(--c-ink); }
.text-body  { color: var(--c-body); }
.text-muted { color: var(--c-muted); }
.text-on-dark { color: var(--c-on-dark); }
.text-on-dark-soft { color: var(--c-on-dark-soft); }
.text-up    { color: var(--c-up); }
.text-down  { color: var(--c-down); }

/* ------------------------------ Containers ------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

.container-narrow {
  max-width: var(--max-w-narrow);
}

.container-prose {
  max-width: var(--max-w-prose);
}

.section {
  padding: var(--s-section) 0;
}

.section-tight {
  padding: var(--s-xxl) 0;
}

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

.section-band-dark {
  background: var(--c-surface-dark);
  color: var(--c-on-dark);
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .section-tight { padding: 40px 0; }
  .container { padding: 0 20px; }
}

/* ---------------------------- Skip link / a11y --------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--s-lg);
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-ink);
  color: var(--c-on-dark);
  border-radius: var(--r-pill);
  transition: top var(--t-base);
}
.skip-link:focus { top: 12px; }

/* ------------------------------- Nav Bar --------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background var(--t-base);
}

.nav.scrolled {
  border-bottom-color: var(--c-hairline);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-brand:hover { color: var(--c-ink); }

.nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  object-fit: cover;
  background: var(--c-canvas);
  box-shadow: inset 0 0 0 1px var(--c-hairline-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--c-body);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
}

.nav-link:hover { color: var(--c-ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  border-radius: var(--r-pill);
}

.nav-mobile-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--c-ink);
  border-radius: 1px;
  transition: transform var(--t-base), opacity var(--t-base), top var(--t-base);
}

.nav-mobile-toggle span:nth-child(1) { top: 14px; }
.nav-mobile-toggle span:nth-child(2) { top: 19px; }
.nav-mobile-toggle span:nth-child(3) { top: 24px; }

.nav-mobile-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--c-canvas);
  z-index: 70;
  padding: var(--s-xl) var(--s-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--t-base), transform var(--t-base);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mobile-menu a {
  padding: 14px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--c-ink);
  border-bottom: 1px solid var(--c-hairline-soft);
}

.mobile-menu .btn { margin-top: var(--s-lg); }

@media (max-width: 900px) {
  .nav-links, .nav-actions { display: none; }
  .nav-actions .btn-sm.show-mobile { display: inline-flex; }
  .nav-mobile-toggle { display: block; }
}

/* -------------------------------- Buttons -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--c-primary);
  color: var(--c-on-primary);
}
.btn-primary:hover {
  background: var(--c-primary-active);
  color: var(--c-on-primary);
}

.btn-secondary {
  background: var(--c-surface-strong);
  color: var(--c-ink);
}
.btn-secondary:hover {
  background: #e2e5ea;
  color: var(--c-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
}
.btn-ghost:hover {
  background: var(--c-surface-soft);
  color: var(--c-ink);
}

.btn-on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: var(--c-on-dark);
  border: 1px solid var(--c-hairline-on-dark);
}
.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--c-on-dark);
}

.btn-lg {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-block { width: 100%; }

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* App-Store badge — flat outlined pill on light bg */
.btn-store {
  height: 56px;
  padding: 0 22px 0 18px;
  background: var(--c-ink);
  color: var(--c-on-primary);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background var(--t-fast);
}
.btn-store:hover { background: #25272d; color: var(--c-on-primary); }
.btn-store .store-glyph { width: 24px; height: 24px; }
.btn-store-lines { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.btn-store-line-1 { font-size: 11px; font-weight: 500; opacity: 0.75; letter-spacing: 0.02em; }
.btn-store-line-2 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-top: 3px; }

/* --------------------------------- Badges -------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--c-surface-strong);
  color: var(--c-ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-tint {
  background: var(--c-primary-tint);
  color: var(--c-primary);
  border: 1px solid var(--c-primary-tint-2);
}

.badge-on-dark {
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-on-dark);
  border: 1px solid var(--c-hairline-on-dark);
}

.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  padding: clamp(64px, 8vw, 112px) 0 clamp(48px, 6vw, 96px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--s-lg);
  color: var(--c-body);
}

.hero h1 {
  margin: 0 0 var(--s-md);
  color: var(--c-ink);
  text-wrap: balance;
}

.hero h1 .accent { color: var(--c-primary); }

.hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--c-body);
  max-width: 540px;
  margin-bottom: var(--s-xl);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--s-lg);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  align-items: center;
  font-size: 13px;
  color: var(--c-muted);
}

.hero-trust .trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust .trust-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-up);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
}

.hero-badge-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-soft-drop);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  z-index: 3;
  animation: floatY 6s ease-in-out infinite;
}

.hero-badge-float .glyph {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-primary-tint);
  display: grid; place-items: center;
  color: var(--c-primary);
}

.hero-badge-float .glyph svg { width: 13px; height: 13px; }

.hero-badge-float.b-1 { top: 12%; left: -4%; animation-delay: 0s; }
.hero-badge-float.b-2 { top: 50%; right: -8%; animation-delay: 1.6s; }
.hero-badge-float.b-3 { bottom: 8%; left: 12%; animation-delay: 3.2s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 460px; }
  .hero-badge-float.b-1 { top: 4%; left: 4%; }
  .hero-badge-float.b-2 { top: 38%; right: 4%; }
  .hero-badge-float.b-3 { bottom: 4%; left: 6%; }
}

/* ----------------------------- iPhone Mockup ----------------------------- */
.iphone {
  position: relative;
  width: clamp(260px, 30vw, 320px);
  aspect-ratio: 195 / 400;
  background: #1a1c20;
  border-radius: clamp(34px, 4vw, 48px);
  padding: clamp(7px, 0.8vw, 10px);
  box-shadow: var(--shadow-card-hero);
  z-index: 2;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}

.iphone-screen {
  width: 100%;
  height: 100%;
  background: var(--c-canvas);
  border-radius: clamp(28px, 3.4vw, 40px);
  overflow: hidden;
  position: relative;
}

.iphone-screen img.shot {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #0a0b0d;
  border-radius: 100px;
  z-index: 4;
}

.iphone-tilt-l { transform: rotate(-3.5deg); }
.iphone-tilt-r { transform: rotate(3deg); }

.iphone-stack {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1200px;
  will-change: transform;
}

.iphone-stack .iphone-back {
  position: absolute;
  transform: translate(50px, 16px) rotate(6deg) scale(0.92);
  opacity: 0.85;
  filter: blur(0.2px);
  z-index: 1;
}

.iphone-stack .iphone-front {
  position: relative;
  z-index: 2;
}

/* Smaller device frame for in-step screenshots */
.device {
  position: relative;
  width: clamp(180px, 22vw, 240px);
  aspect-ratio: 195 / 400;
  background: #1a1c20;
  border-radius: clamp(28px, 3vw, 36px);
  padding: clamp(5px, 0.6vw, 8px);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.28), 0 6px 16px -8px rgba(0, 0, 0, 0.12);
  margin: 0 auto;
}
.device-screen {
  width: 100%; height: 100%;
  border-radius: clamp(22px, 2.4vw, 30px);
  overflow: hidden;
  background: var(--c-canvas);
}
.device-screen img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}
.device-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 20px;
  background: #0a0b0d;
  border-radius: 100px;
  z-index: 4;
}

/* In-screen content shells (dummy UI inside iPhone) */
.ui-shell {
  padding: 22px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ui-statusbar {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-ink);
  padding: 6px 8px 14px;
  font-weight: 600;
}

.ui-h {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.ui-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 14px;
  line-height: 1.25;
}

.ui-progress {
  height: 6px;
  background: var(--c-surface-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  margin-bottom: 18px;
}

.ui-progress .bar {
  height: 100%;
  background: var(--c-primary);
  width: 64%;
  border-radius: inherit;
}

.ui-card {
  background: var(--c-surface-soft);
  border-radius: var(--r-lg);
  padding: 14px;
  margin-bottom: 10px;
}

.ui-card .ui-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 4px;
}

.ui-card .ui-card-meta {
  font-size: 11px;
  color: var(--c-muted);
  display: flex;
  justify-content: space-between;
}

.ui-card-flashcard {
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ui-mc-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
}

.ui-mc-choice .label-pill {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c-surface-strong);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--c-body);
  margin-right: 10px;
}

.ui-mc-choice.is-correct {
  background: rgba(5, 177, 105, 0.06);
  border-color: rgba(5, 177, 105, 0.3);
  color: var(--c-ink);
}
.ui-mc-choice.is-correct .label-pill {
  background: var(--c-up);
  color: white;
}

.ui-mc-choice.is-wrong {
  background: rgba(207, 32, 47, 0.04);
  border-color: rgba(207, 32, 47, 0.2);
  color: var(--c-muted);
}

.ui-mc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ui-pillrow {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.ui-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--c-surface-strong);
  color: var(--c-body);
}

.ui-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--c-hairline-soft);
}
.ui-stat-row:last-child { border-bottom: none; }
.ui-stat-row .label { font-size: 13px; color: var(--c-body); }
.ui-stat-row .value { font-family: var(--f-mono); font-weight: 500; font-size: 14px; color: var(--c-ink); }

/* -------------------------------- Features ------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
  margin-top: var(--s-xl);
}

@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-xl);
  padding: var(--s-xl);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft-drop);
  border-color: #d0d5db;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  background: var(--c-primary-tint);
  color: var(--c-primary);
  margin-bottom: var(--s-base);
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-card.is-soon .feature-icon {
  background: var(--c-surface-strong);
  color: var(--c-muted);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--c-ink);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}

.feature-card p {
  font-size: 15px;
  color: var(--c-body);
  line-height: 1.55;
}

.feature-card .soon-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-muted);
  font-weight: 600;
  margin-left: 8px;
}

/* ------------------------------- Section Heads --------------------------- */
.section-head {
  max-width: 760px;
  margin: 0 auto var(--s-xl);
  text-align: center;
}

.section-head.left {
  text-align: left;
  margin-left: 0;
}

.section-head h2 {
  color: var(--c-ink);
  margin-bottom: var(--s-base);
  text-wrap: balance;
}

.section-head .eyebrow {
  display: inline-block;
  margin-bottom: var(--s-base);
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-head p {
  font-size: 17px;
  color: var(--c-body);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 580px;
  text-wrap: pretty;
}

.section-band-dark .section-head h2 { color: var(--c-on-dark); }
.section-band-dark .section-head p  { color: var(--c-on-dark-soft); }
.section-band-dark .section-head .eyebrow { color: var(--c-on-dark-soft); }

/* ----------------------------- Scroll progress --------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: transparent;
  z-index: 90;
  pointer-events: none;
}
.scroll-progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--p, 0%);
  background: var(--c-primary);
  transition: width 100ms linear;
}

/* ---------------------- Cursor glow on dark sections --------------------- */
.cta-band, .section-band-dark {
  position: relative;
  overflow: hidden;
}
.cursor-glow {
  position: absolute;
  pointer-events: none;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.22) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 50%);
  opacity: 0;
  transition: opacity 250ms ease;
  filter: blur(20px);
  z-index: 1;
}
.cta-band:hover .cursor-glow,
.section-band-dark:hover .cursor-glow {
  opacity: 1;
}
@media (hover: none) {
  .cursor-glow { display: none; }
}

/* -------------------------- 3D tilt on feature cards --------------------- */
.feature-card.tilt {
  transform-style: preserve-3d;
  transform: perspective(700px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateZ(0);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, border-color 220ms ease;
}
.feature-card.tilt:hover {
  box-shadow: 0 20px 40px -20px rgba(0, 82, 255, 0.18), 0 6px 14px -6px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 82, 255, 0.18);
}
.feature-card.tilt .feature-icon {
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(24px);
}

/* ----------------------- Magnetic CTA on primary buttons ----------------- */
.btn-primary, .btn-lg.btn-primary {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              background 150ms ease, color 150ms ease,
              box-shadow 250ms ease;
  will-change: transform;
}
.btn-primary:hover {
  box-shadow: 0 14px 28px -12px rgba(0, 82, 255, 0.45);
}

/* ----------------------- Reveal-on-scroll variations --------------------- */
.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left { opacity: 0; transform: translateX(-32px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right { opacity: 0; transform: translateX(32px); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-scale { opacity: 0; transform: scale(0.95); transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1), transform 700ms cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-scale.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero parallax (set via JS) */
.iphone-stack[data-parallax] {
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Count-up stats */
.stat-num[data-countup] {
  font-variant-numeric: tabular-nums;
}

/* App-Store badge subtle pulse on hover */
.btn-store {
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), background 150ms ease, box-shadow 250ms ease;
}
.btn-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -16px rgba(10, 11, 13, 0.5);
}

/* ------------------------------ How It Works ----------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-xl);
  margin-top: var(--s-xxl);
  position: relative;
}

.step-device {
  margin-top: var(--s-lg);
  display: flex;
  justify-content: center;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
}

.step-card {
  text-align: left;
}

.step-num {
  font-family: var(--f-mono);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--c-ink);
  color: var(--c-on-primary);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: var(--s-base);
}

.step-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--c-body);
  font-size: 16px;
  line-height: 1.55;
}

/* ------------------------------ Split Section ---------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.split.reverse > :first-child { order: 2; }

.split-text h2 { color: inherit; margin-bottom: var(--s-base); }
.split-text p {
  font-size: 17px;
  color: var(--c-body);
  line-height: 1.55;
  margin-bottom: var(--s-base);
  max-width: 480px;
  text-wrap: pretty;
}

.section-band-dark .split-text p { color: var(--c-on-dark-soft); }

.split-list {
  list-style: none;
  margin: var(--s-md) 0 var(--s-lg);
  padding: 0;
  display: grid;
  gap: 12px;
}

.split-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  color: var(--c-body);
  line-height: 1.5;
}

.split-list li::before {
  content: '';
  margin-top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
  display: inline-block;
}

.section-band-dark .split-list li {
  color: var(--c-on-dark-soft);
}

.split-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse > :first-child { order: 0; }
  .split-visual { order: 2; }
}

/* ------------------------------ Stats Row -------------------------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-xl);
  margin-top: var(--s-xl);
}

@media (max-width: 800px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

.stat {
  text-align: left;
}

.stat-num {
  font-family: var(--f-mono);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: block;
}

.section-band-dark .stat-num { color: var(--c-on-dark); }

.stat-label {
  font-size: 14px;
  color: var(--c-body);
  margin-top: 6px;
  letter-spacing: 0.01em;
}

.section-band-dark .stat-label { color: var(--c-on-dark-soft); }

/* --------------------------------- FAQ ----------------------------------- */
.faq-grid {
  margin-top: var(--s-xl);
  border-top: 1px solid var(--c-hairline);
}

.faq-item {
  border-bottom: 1px solid var(--c-hairline);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-ink);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.faq-q .faq-chevron {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--c-surface-strong);
  display: grid;
  place-items: center;
  margin-left: 16px;
  transition: transform var(--t-base), background var(--t-fast);
}

.faq-q .faq-chevron svg {
  width: 14px; height: 14px;
  transition: transform var(--t-base);
}

.faq-item.open .faq-q .faq-chevron svg { transform: rotate(180deg); }
.faq-item.open .faq-q .faq-chevron { background: var(--c-primary-tint); color: var(--c-primary); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base);
}

.faq-a-inner {
  padding: 0 4px 22px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-body);
  max-width: 720px;
  text-wrap: pretty;
}

/* ------------------------------- CTA Band -------------------------------- */
.cta-band {
  background: var(--c-surface-dark);
  color: var(--c-on-dark);
  padding: clamp(80px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}

.cta-band-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  color: var(--c-on-dark);
  margin-bottom: var(--s-base);
  text-wrap: balance;
}

.cta-band p {
  color: var(--c-on-dark-soft);
  font-size: 18px;
  margin-bottom: var(--s-xl);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  text-wrap: pretty;
}

.cta-band-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-band-glow {
  position: absolute;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.16) 0%, transparent 65%);
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  filter: blur(40px);
  z-index: 1;
  pointer-events: none;
}

/* --------------------------------- Footer -------------------------------- */
.footer {
  padding: var(--s-xxl) 0 var(--s-xl);
  border-top: 1px solid var(--c-hairline);
  background: var(--c-canvas);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-xl);
  margin-bottom: var(--s-xxl);
}

@media (max-width: 800px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-base);
}

.footer-brand-row .nav-brand-mark { width: 28px; height: 28px; }

.footer-brand-row span {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: -0.01em;
}

.footer p {
  color: var(--c-body);
  font-size: 14px;
  line-height: 1.55;
  max-width: 320px;
}

.footer h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: var(--s-base);
}

.footer ul { display: grid; gap: 10px; }
.footer ul a {
  color: var(--c-ink);
  font-size: 14px;
  font-weight: 500;
}
.footer ul a:hover { color: var(--c-primary); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-lg);
  border-top: 1px solid var(--c-hairline);
  gap: var(--s-base);
  flex-wrap: wrap;
}

.footer-bottom small {
  font-size: 13px;
  color: var(--c-muted);
}

.footer-lang {
  position: relative;
}

.footer-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--c-surface-soft);
  border: 1px solid var(--c-hairline);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink);
}

.footer-lang-btn:hover { background: var(--c-surface-strong); }

.footer-lang-btn svg { width: 12px; height: 12px; }

.footer-lang-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--c-canvas);
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-soft-drop);
  padding: 6px;
  display: none;
  min-width: 160px;
  z-index: 10;
}

.footer-lang.open .footer-lang-menu { display: block; }

.footer-lang-menu a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-ink);
}

.footer-lang-menu a:hover { background: var(--c-surface-soft); color: var(--c-ink); }
.footer-lang-menu a.active { color: var(--c-primary); font-weight: 600; }

/* ------------------------------ Legal Pages ------------------------------ */
.legal-hero {
  padding: clamp(48px, 6vw, 96px) 0 24px;
}
.legal-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.legal-hero p {
  font-size: 17px;
  color: var(--c-body);
  max-width: 580px;
}
.legal-prose {
  padding: 24px 0 80px;
}
.legal-prose h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal-prose h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}
.legal-prose p, .legal-prose li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-body);
  margin-bottom: 12px;
}
.legal-prose ul, .legal-prose ol {
  margin-bottom: 12px;
  padding-left: 22px;
}
.legal-prose ul li { list-style: disc; }
.legal-prose ol li { list-style: decimal; }
.legal-prose a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-note {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: var(--c-primary-tint);
  border: 1px solid var(--c-primary-tint-2);
  color: var(--c-ink);
  font-size: 14px;
}

/* -------------------------------- Utilities ------------------------------ */
.center { text-align: center; }
.lift   { animation: lift 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes lift {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reveal on scroll (progressive enhancement) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

/* Print */
@media print {
  .nav, .footer, .cta-band, .mobile-menu { display: none !important; }
  body { color: #000; background: #fff; }
}
