/* Motive site: base, nav, buttons, hero type, phone frames and the overview.
   Colours come from themes.css; sections in sections.css; motion, glass and the hero canvas stage in motion.css. */
:root {
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r: 16px;                     /* the app's radius scale: 8 / 12 / 16 / 24 */
  --r-lg: 24px;
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans); font-size: 17px; line-height: 1.62; color: var(--sub); background: var(--bg);
  overflow-x: hidden; overflow-x: clip; /* clip keeps the sticky nav working */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background-color .3s ease, color .3s ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: var(--accent-text); text-decoration: none; transition: color .2s; }
a:hover { color: var(--text); }
p a, li a, td a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(var(--accent-rgb), .35); color: var(--text); }
h1, h2, h3 { color: var(--text); font-family: var(--display); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
h3 { font-weight: 600; letter-spacing: -.02em; }
strong { color: var(--text); font-weight: 600; }
p { text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600;
}
.skip:focus { top: 12px; color: var(--bg); }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: var(--nav-bg); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.24rem; font-weight: 800; letter-spacing: -.03em; color: var(--text); }
.wordmark:hover { color: var(--text); }
.wordmark svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: .9rem; }
.nav-links a { position: relative; padding: 6px 0; color: var(--sub); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--text); }
.nav-links a[aria-current="true"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px;
  background: var(--accent); box-shadow: 0 0 10px rgba(var(--accent-rgb), .8);
}
.theme-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none; border: 0; border-radius: 50%;
  color: var(--sub); background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer;
  transition: color .2s, background-color .2s;
}
.theme-btn:hover { color: var(--text); background: var(--ghost-hover); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .moon, [data-theme="light"] .theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .moon { display: block; }
html:not(.js) .theme-btn { display: none; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px;
  border-radius: 999px; border: 0; font: inherit; font-family: var(--display); font-size: .98rem; font-weight: 700; letter-spacing: 0;
  white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s;
}
.btn-primary {
  color: var(--cta-ink); background: var(--cta-bg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 12px 32px -12px rgba(var(--accent-rgb), calc(var(--glow) + .3)), 0 0 46px -14px rgba(var(--accent-rgb), var(--glow));
}
.btn-primary:hover {
  color: var(--cta-ink); transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 16px 40px -12px rgba(var(--accent-rgb), calc(var(--glow) + .45)), 0 0 60px -12px rgba(var(--accent-rgb), calc(var(--glow) + .2));
}
.btn-ghost { color: var(--text); background: var(--ghost); box-shadow: inset 0 0 0 1px var(--line-3); }
.btn-ghost:hover { color: var(--text); background: var(--ghost-hover); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .86rem; }
.btn .sep { opacity: .55; }
.btn svg { width: 16px; height: 16px; }

/* ── Hero type (the stage and the canvas are in motion.css) ───── */
.hero-copy { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.kicker, .pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--ghost);
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--sub);
}
.kicker .dot, .pill .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .16), 0 0 12px rgba(var(--accent-rgb), .9);
}
.hero h1 {
  margin-top: 20px; font-size: clamp(3.5rem, 15.5vw, 8.8rem); font-weight: 800; letter-spacing: -.055em; line-height: .92;
  text-shadow: 0 0 46px var(--bg);
}
.hero h1 .pt { color: var(--accent); }
.hero-sub { margin-top: 18px; font-family: var(--display); font-size: clamp(1.45rem, 3vw, 2.15rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: var(--text); }
.hero-lede { max-width: 600px; margin: 14px auto 0; font-size: 1.06rem; color: var(--sub); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 26px; list-style: none;
  font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ── Phone frames (real screenshots) ─────────────────── */
.phone {
  position: relative; padding: 9px; border-radius: 46px; background: var(--bezel);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .35),
              0 50px 100px -42px var(--drop), 0 30px 90px -46px rgba(var(--accent-rgb), var(--glow));
}
.phone img { width: 100%; border-radius: 37px; background: #12111a; }
.phone::after { /* glass highlight */
  content: ""; position: absolute; inset: 9px; border-radius: 37px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .09), transparent 30%);
}

/* ── Overview: three real screens and the summary ────── */
.overview { position: relative; z-index: 1; padding-top: clamp(24px, 4vw, 56px); }
.trio { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: center; gap: clamp(16px, 3vw, 44px); max-width: 980px; margin: 0 auto; }
.trio .phone:not(.main) { transform: translateY(42px) scale(.9); opacity: .92; }
.trio figcaption { margin-top: 16px; text-align: center; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.trio figure:not(.lead) figcaption { transform: translateY(30px); }
.overview-lede { max-width: 760px; margin: clamp(56px, 7vw, 88px) auto 0; text-align: center; font-size: clamp(1.15rem, 2vw, 1.38rem); line-height: 1.55; color: var(--text); letter-spacing: -.01em; }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr); margin-top: clamp(36px, 5vw, 56px); list-style: none;
  border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--glass);
}
.stats li { padding: 22px 22px 20px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats .v { font-family: var(--display); font-size: clamp(1.7rem, 2.8vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats .k { margin-top: 6px; font-size: .86rem; line-height: 1.42; }
