/* LISA design system: tokens, type, buttons, nav, footer and motion shared by every page.
   Colours come from the Lark logo (navy #002395, sky slash) and the Lark Money site (#1e57c8). */

:root {
  --navy: #002395;
  --blue: #1e57c8;
  --blue-600: #143f96;
  --blue-50: #eef3fc;
  --blue-100: #dde7f8;
  --sky: #22b4ee;
  --teal: #14a3a8;
  --mint: #12b981;
  --amber: #f0a020;
  --rose: #e5484d;

  --ink: #0a1326;
  --ink-2: #26324a;
  --ink-soft: #54607a;
  --ink-mute: #8590a6;
  --line: #e4e9f2;
  --line-2: #eef2f8;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --bg-tint: #eef3fb;
  --surface: #ffffff;
  --surface-rgb: 255 255 255;
  --surface-2: #f7f9fd;
  --line-strong: #cbd7ec;
  --hover: rgba(10, 19, 38, .05);
  --glass-border: rgba(255, 255, 255, .9);
  --glow: #eaf2fd;
  --hero-bg: linear-gradient(180deg, #f3f7fd 0%, #f7f9fe 45%, #fff 100%);
  --blob-1: #cddcf0; --blob-2: #bcd6f7; --blob-3: #d4f0fb;
  --tint-rose: #fff4f4; --tint-rose-line: #fbd5d5;
  --tint-amber: #fff8eb; --tint-amber-line: #fbe2b6;
  --tint-mint: #ecfaf3; --tint-mint-line: #c6eedb;
  --ok-text: #0d8a5f; --err-text: #b42318; --warn-text: #b45309;

  --night: #060c1d;
  --night-2: #0c1530;

  --grad: linear-gradient(120deg, #1e57c8 0%, #2f7be8 55%, #22b4ee 100%);
  --grad-soft: linear-gradient(135deg, #f5f8fd 0%, #eaf1fb 50%, #f7fafe 100%);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 19, 38, .05), 0 2px 8px -2px rgba(10, 19, 38, .06);
  --shadow: 0 1px 2px rgba(10, 19, 38, .04), 0 18px 40px -18px rgba(10, 19, 38, .18);
  --shadow-lg: 0 2px 4px rgba(10, 19, 38, .04), 0 40px 80px -30px rgba(10, 19, 38, .28);
  --shadow-blue: 0 18px 40px -14px rgba(30, 87, 200, .55);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(30, 87, 200, .18); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; transition: top .2s; }
.skip:focus { top: 16px; }

/* ── type ─────────────────────────────────────────────── */
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); letter-spacing: -.03em; line-height: 1.08; font-weight: 800; }
p { margin: 0; }
.pn { margin-left: -.09em; }
.serif .pn { margin-left: 0; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad); }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ── buttons ──────────────────────────────────────────── */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s, border-color .25s, color .25s;
  isolation: isolate; overflow: hidden;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-primary { color: #fff; background: var(--blue); box-shadow: var(--shadow-blue); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--grad); opacity: 0; transition: opacity .35s; }
.btn-primary:hover { box-shadow: 0 22px 48px -14px rgba(30, 87, 200, .7); transform: translateY(-1px); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary .shine { position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.35) 50%, transparent 65%); transform: translateX(-120%); }
.btn-primary:hover .shine { transform: translateX(120%); transition: transform .9s var(--ease); }
.btn-ghost { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--line-strong); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #000; transform: translateY(-1px); }
.btn-white { color: var(--blue-600); background: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.45); }
.btn-white:hover { transform: translateY(-1px); }
.btn-line-white { color: #fff; border-color: rgba(255,255,255,.35); }
.btn-line-white:hover { background: rgba(255,255,255,.1); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── brand lockup: LARK | LISA ───────────────────────── */
.lockup { display: inline-flex; align-items: center; gap: 12px; }
.lockup .wordmark { height: 20px; width: auto; }
.lockup .divider { width: 1px; height: 22px; background: var(--line); }
.lockup .product { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); }
.lockup.on-dark .wordmark { filter: brightness(0) invert(1); }
.lockup.on-dark .divider { background: rgba(255,255,255,.2); }
.lockup.on-dark .product { color: #fff; }

/* ── LISA orb (CSS fallback + small avatars) ─────────── */
.orb {
  position: relative; display: inline-block; flex: none; border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,.95) 0 6%, rgba(255,255,255,0) 22%),
    radial-gradient(circle at 70% 78%, rgba(34,180,238,.9), rgba(34,180,238,0) 55%),
    radial-gradient(circle at 30% 70%, #2f7be8, rgba(47,123,232,0) 60%),
    radial-gradient(circle at 50% 50%, #1e57c8 0%, #002395 70%, #001a6e 100%);
  box-shadow: inset -4px -6px 12px rgba(0, 18, 80, .45), inset 3px 4px 10px rgba(255,255,255,.25), 0 6px 16px -6px rgba(30, 87, 200, .55);
}
.orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 60%, rgba(255,255,255,.35) 75%, transparent 90%);
  mix-blend-mode: soft-light; animation: orb-spin 6s linear infinite;
}
@keyframes orb-spin { to { transform: rotate(360deg); } }
.orb.pulse { animation: orb-pulse 1.4s var(--ease) infinite; }
@keyframes orb-pulse { 50% { transform: scale(1.08); } }

/* ── nav ─────────────────────────────────────────────── */
.nav-shell { position: fixed; inset: 16px 0 auto; z-index: 50; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  max-width: 1180px; height: 64px; margin: 0 auto; padding: 0 8px 0 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-radius: 999px; background: rgb(var(--surface-rgb) / .72);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6);
  transition: background-color .4s, box-shadow .4s var(--ease), height .4s var(--ease);
}
.nav.scrolled { background: rgb(var(--surface-rgb) / .9); box-shadow: 0 10px 34px -12px rgba(10,19,38,.16); height: 58px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { position: relative; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--hover); }
.nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--hover); align-items: center; justify-content: center; }
.nav-burger svg { width: 20px; height: 20px; }
.nav-sheet {
  pointer-events: auto; position: fixed; inset: 88px 16px auto; z-index: 49; padding: 10px; border-radius: 24px;
  background: rgb(var(--surface-rgb) / .97); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  display: grid; gap: 2px; opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
  transition: opacity .25s, transform .35s var(--ease), visibility .25s;
}
.nav-sheet.open { opacity: 1; transform: none; visibility: visible; }
.nav-sheet a { padding: 14px 16px; border-radius: 14px; font-weight: 600; color: var(--ink); }
.nav-sheet a:hover { background: var(--bg-soft); }
.nav-sheet .btn { margin-top: 8px; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .hide-sm { display: none; }
}

#progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }

/* ── footer ──────────────────────────────────────────── */
.footer { background: var(--night); color: #9aa6c0; padding: 72px 0 36px; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: 0; margin-bottom: 16px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .about { max-width: 320px; margin-top: 18px; line-height: 1.65; }
.footer-legal { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 12.5px; color: #6f7b96; }
.footer-legal p { max-width: 760px; line-height: 1.6; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── motion ──────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal-scale { opacity: 0; transform: translateY(30px) scale(.96); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal-scale.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.split.in .w > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-scale { opacity: 1; transform: none; filter: none; }
  .split .w > span { transform: none; }
}
@media (max-width: 480px) {
  .nav { padding-left: 16px; }
  .nav-cta .btn-primary { display: none; }
  .lockup { gap: 10px; }
  .lockup .wordmark { height: 17px; }
}

/* ── dark theme ───────────────────────────────────────── */
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #3b7bf0;
  --blue-600: #5b93f5;
  --blue-50: rgba(59, 123, 240, .14);
  --blue-100: rgba(59, 123, 240, .28);
  --ink: #edf2fc;
  --ink-2: #c6cfe0;
  --ink-soft: #97a3bb;
  --ink-mute: #6d7a94;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .06);
  --line-strong: rgba(255, 255, 255, .2);
  --bg: #060b17;
  --bg-soft: #0b1324;
  --bg-tint: #0f192f;
  --surface: #0d1628;
  --surface-rgb: 13 22 40;
  --surface-2: #111c33;
  --hover: rgba(255, 255, 255, .06);
  --glass-border: rgba(255, 255, 255, .08);
  --glow: rgba(47, 123, 232, .16);
  --hero-bg: linear-gradient(180deg, #071029 0%, #060c1c 55%, #060b17 100%);
  --blob-1: #12306e; --blob-2: #0f3a7a; --blob-3: #0b4a63;
  --tint-rose: rgba(229, 72, 77, .12); --tint-rose-line: rgba(229, 72, 77, .3);
  --tint-amber: rgba(240, 160, 32, .12); --tint-amber-line: rgba(240, 160, 32, .3);
  --tint-mint: rgba(18, 185, 129, .12); --tint-mint-line: rgba(18, 185, 129, .3);
  --ok-text: #34d399; --err-text: #f87171; --warn-text: #fbbf24;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 2px 8px -2px rgba(0,0,0,.35);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 40px -18px rgba(0,0,0,.6);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.3), 0 40px 80px -30px rgba(0,0,0,.75);
  --shadow-blue: 0 18px 40px -14px rgba(59, 123, 240, .55);
}
:root[data-theme="dark"] .lockup:not(.on-dark) .wordmark { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .btn-ghost { box-shadow: none; }
:root[data-theme="dark"] .footer { background: #040811; border-top: 1px solid var(--line); }
:root[data-theme="dark"] ::selection { background: rgba(59, 123, 240, .35); }

/* smooth colour change while switching theme (no View Transitions support) */
html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
  transition: background-color .45s ease, border-color .45s ease, color .45s ease, fill .45s ease, box-shadow .45s ease !important;
}
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* theme toggle */
.theme-toggle { position: relative; display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink-soft); overflow: hidden; transition: color .2s, border-color .2s, transform .4s var(--ease); }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); transform: rotate(-12deg); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: transform .6s var(--ease), opacity .4s; }
.theme-toggle .moon { transform: translateY(26px) rotate(-60deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .sun { transform: translateY(-26px) rotate(60deg); opacity: 0; }
:root[data-theme="dark"] .theme-toggle .moon { transform: none; opacity: 1; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.eyebrow.reveal::before { width: 0; transition: width .9s var(--ease) .25s; }
.eyebrow.reveal.in::before { width: 18px; }
