/* ==========================================================================
   Expencil — expencil.com
   --------------------------------------------------------------------------
   The landing site speaks the app's own language: the "aurora" design system
   (ADR-018) — a violet→indigo brand on a calm, faintly tinted canvas, with a
   per-feature accent (ADR-028/029: Expenses pink, Recurring golden-amber,
   Groups teal). Every token below is copied from the app's src/index.css so
   the site and the product cannot drift apart; where a value is new to the
   marketing site it is derived from those same tokens.

   Contents
     1. Font
     2. Tokens — light, dark, feature accents
     3. Reset & base
     4. Layout & typography
     5. Surfaces — glass, aurora, spotlight, grain
     6. Controls — buttons, pills, links
     7. Site chrome — header, footer, scroll progress
     8. Sections — hero, features, bento, steps, pricing, faq, cta
     9. App mock — the miniature Expencil UI used throughout
    10. Motion
   ========================================================================== */

/* ── 1. Font ─────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
}

/* ── 2. Tokens ───────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* canvas & ink — app :root */
  --bg: oklch(0.9857 0.0026 286.35);
  --fg: oklch(0.21 0.021 285);
  --card: oklch(1 0 0);
  --card-2: oklch(0.985 0.004 286);
  --muted-fg: oklch(0.545 0.024 285);
  --border: oklch(0.912 0.008 286);
  --hairline: oklch(0.21 0.021 285 / 0.08);
  --glass-bg: oklch(1 0 0 / 0.72);

  /* brand ramp — app --brand-* */
  --brand-50: oklch(0.977 0.014 287);
  --brand-100: oklch(0.945 0.033 287);
  --brand-200: oklch(0.892 0.062 287);
  --brand-400: oklch(0.7048 0.1652 286.6);
  --brand-500: oklch(0.599 0.2299 286.2);
  --brand-600: oklch(0.5424 0.2312 281.5);
  --brand-700: oklch(0.5106 0.2301 276.97);
  --brand-ink: oklch(0.5424 0.2312 281.5);

  /* supporting spectrum — decorative fills + text-safe "ink" pairs */
  --spectrum-sky: oklch(0.7535 0.139 232.66);
  --spectrum-rose: oklch(0.7253 0.1752 349.76);
  --spectrum-amber: oklch(0.8369 0.1644 84.43);
  --spectrum-mint: oklch(0.77 0.135 176);
  --spectrum-orange: oklch(0.75 0.168 70);
  --spectrum-sky-ink: oklch(0.53 0.139 232.66);
  --spectrum-rose-ink: oklch(0.53 0.1752 349.76);
  --spectrum-mint-ink: oklch(0.5 0.115 178);
  --spectrum-orange-ink: oklch(0.53 0.155 63);
  --success: oklch(0.54 0.1327 163.22);
  --warning: oklch(0.56 0.155 61.05);
  --destructive: oklch(0.577 0.245 27.325);

  /* seeded category colors, straight from migration 0001 */
  --cat-groceries: #22c55e;
  --cat-dining: #f97316;
  --cat-transport: #3b82f6;
  --cat-home: #a855f7;
  --cat-shopping: #ec4899;
  --cat-subs: #8b5cf6;

  /* elevation — never a hard grey drop shadow */
  --shadow-soft: 0 1px 2px oklch(0.35 0.06 285 / 0.05), 0 4px 14px oklch(0.35 0.06 285 / 0.06);
  --shadow-lift: 0 2px 4px oklch(0.35 0.06 285 / 0.06), 0 12px 28px oklch(0.35 0.06 285 / 0.1);
  --shadow-float: 0 4px 8px oklch(0.35 0.06 285 / 0.07), 0 20px 44px oklch(0.35 0.06 285 / 0.13);

  /* aurora wash intensity */
  --aurora-1: oklch(0.599 0.2299 286.2 / 0.16);
  --aurora-2: oklch(0.7535 0.139 232.66 / 0.13);
  --aurora-3: oklch(0.7253 0.1752 349.76 / 0.1);
  --grain-opacity: 0.03;

  /* per-feature accent indirection — brand by default (ADR-028) */
  --feature-600: var(--brand-600);
  --feature-700: var(--brand-700);
  --feature-mix: oklch(0.55 0.2 320);
  --feature-ink: var(--brand-ink);
  --feature-deco: var(--brand-500);

  --radius: 0.875rem;
  --r-sm: calc(var(--radius) * 0.6);
  --r-md: calc(var(--radius) * 0.8);
  --r-lg: var(--radius);
  --r-xl: calc(var(--radius) * 1.4);
  --r-2xl: calc(var(--radius) * 1.8);
  --r-3xl: calc(var(--radius) * 2.2);

  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);

  --container: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

/* Dark theme. Three states: OS preference (unless overridden to light) and an
   explicit toggle. Only the values that actually flip are restated. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: oklch(0.1533 0.0149 284.51);
    --fg: oklch(0.97 0.006 286);
    --card: oklch(0.2088 0.0176 285);
    --card-2: oklch(0.2405 0.0186 285);
    --muted-fg: oklch(0.719 0.021 286);
    --border: oklch(0.99 0.01 286 / 0.12);
    --hairline: oklch(0.99 0.01 286 / 0.1);
    --glass-bg: oklch(0.19 0.017 285 / 0.72);
    --brand-50: oklch(0.28 0.045 286);
    --brand-100: oklch(0.34 0.07 286);
    --brand-200: oklch(0.42 0.11 286);
    --brand-400: oklch(0.7462 0.1436 286.7);
    --brand-500: oklch(0.6612 0.1934 285);
    --brand-ink: oklch(0.6612 0.1934 285);
    --spectrum-rose-ink: oklch(0.77 0.1752 349.76);
    --spectrum-sky-ink: oklch(0.77 0.139 232.66);
    --spectrum-mint-ink: oklch(0.77 0.115 178);
    --spectrum-orange-ink: oklch(0.77 0.155 63);
    --success: oklch(0.7729 0.1535 163.22);
    --warning: oklch(0.8369 0.1644 84.43);
    --destructive: oklch(0.704 0.191 22.216);
    --shadow-soft: 0 1px 2px oklch(0 0 0 / 0.4), 0 4px 14px oklch(0 0 0 / 0.35);
    --shadow-lift: 0 2px 4px oklch(0 0 0 / 0.45), 0 12px 28px oklch(0 0 0 / 0.45);
    --shadow-float: 0 4px 8px oklch(0 0 0 / 0.5), 0 20px 44px oklch(0 0 0 / 0.55);
    --aurora-1: oklch(0.599 0.2299 286.2 / 0.32);
    --aurora-2: oklch(0.7535 0.139 232.66 / 0.18);
    --aurora-3: oklch(0.7253 0.1752 349.76 / 0.16);
    --grain-opacity: 0.05;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: oklch(0.1533 0.0149 284.51);
  --fg: oklch(0.97 0.006 286);
  --card: oklch(0.2088 0.0176 285);
  --card-2: oklch(0.2405 0.0186 285);
  --muted-fg: oklch(0.719 0.021 286);
  --border: oklch(0.99 0.01 286 / 0.12);
  --hairline: oklch(0.99 0.01 286 / 0.1);
  --glass-bg: oklch(0.19 0.017 285 / 0.72);
  --brand-50: oklch(0.28 0.045 286);
  --brand-100: oklch(0.34 0.07 286);
  --brand-200: oklch(0.42 0.11 286);
  --brand-400: oklch(0.7462 0.1436 286.7);
  --brand-500: oklch(0.6612 0.1934 285);
  --brand-ink: oklch(0.6612 0.1934 285);
  --spectrum-rose-ink: oklch(0.77 0.1752 349.76);
  --spectrum-sky-ink: oklch(0.77 0.139 232.66);
  --spectrum-mint-ink: oklch(0.77 0.115 178);
  --spectrum-orange-ink: oklch(0.77 0.155 63);
  --success: oklch(0.7729 0.1535 163.22);
  --warning: oklch(0.8369 0.1644 84.43);
  --destructive: oklch(0.704 0.191 22.216);
  --shadow-soft: 0 1px 2px oklch(0 0 0 / 0.4), 0 4px 14px oklch(0 0 0 / 0.35);
  --shadow-lift: 0 2px 4px oklch(0 0 0 / 0.45), 0 12px 28px oklch(0 0 0 / 0.45);
  --shadow-float: 0 4px 8px oklch(0 0 0 / 0.5), 0 20px 44px oklch(0 0 0 / 0.55);
  --aurora-1: oklch(0.599 0.2299 286.2 / 0.32);
  --aurora-2: oklch(0.7535 0.139 232.66 / 0.18);
  --aurora-3: oklch(0.7253 0.1752 349.76 / 0.16);
  --grain-opacity: 0.05;
}

/* Feature accent scopes — identical hues to the app's [data-accent] blocks,
   so a section painted "expenses" here matches the /expenses screen exactly. */
[data-accent='expenses'] {
  --feature-600: oklch(0.53 0.1752 349.76);
  --feature-700: oklch(0.5 0.19 342);
  --feature-mix: oklch(0.55 0.2 320);
  --feature-ink: var(--spectrum-rose-ink);
  --feature-deco: var(--spectrum-rose);
}
[data-accent='recurring'] {
  --feature-600: oklch(0.56 0.165 73);
  --feature-700: oklch(0.52 0.16 62);
  --feature-mix: oklch(0.55 0.17 48);
  --feature-ink: var(--spectrum-orange-ink);
  --feature-deco: var(--spectrum-orange);
}
[data-accent='groups'] {
  --feature-600: oklch(0.52 0.115 178);
  --feature-700: oklch(0.49 0.115 184);
  --feature-mix: oklch(0.55 0.12 200);
  --feature-ink: var(--spectrum-mint-ink);
  --feature-deco: var(--spectrum-mint);
}

/* ── 3. Reset & base ─────────────────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  min-height: 100dvh;
  background-color: var(--bg);
  color: var(--fg);
  font-family: 'Geist Variable', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

ul,
ol {
  list-style: none;
  padding: 0;
}

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

::selection {
  background: color-mix(in oklch, var(--brand-500), transparent 72%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.6rem 1rem;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: var(--shadow-float);
  font-weight: 600;
  transform: translateY(-150%);
  transition: transform 0.25s var(--ease-out-soft);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ── 4. Layout & typography ──────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 46rem;
}

section {
  position: relative;
}

.band {
  padding-block: clamp(4.5rem, 11vw, 8.5rem);
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 7.2vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.25;
}

p {
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted-fg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--feature-ink);
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--feature-600));
}

.section-head {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 1.1rem;
}
.section-head p {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--muted-fg);
}

.text-gradient {
  background-image: linear-gradient(
    135deg,
    var(--brand-500) 0%,
    var(--brand-700) 45%,
    color-mix(in oklch, var(--brand-700), oklch(0.55 0.2 320) 45%) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.feature-text-gradient {
  background-image: linear-gradient(135deg, var(--feature-deco), var(--feature-600));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-gradient .word,
.feature-text-gradient .word {
  background-image: inherit;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tnum {
  font-variant-numeric: tabular-nums;
}

code {
  padding: 0.1em 0.35em;
  border-radius: 0.35rem;
  background: color-mix(in oklch, var(--fg), transparent 93%);
  font-family: ui-monospace, 'SFMono-Regular', 'Menlo', monospace;
  font-size: 0.9em;
}

/* ── 5. Surfaces ─────────────────────────────────────────────────────────── */

/* Full-page aurora wash: three soft blobs, parallaxed by main.js. Mirrors the
   app's .aurora-bg, but each blob is its own element so it can drift. */
.aurora {
  position: fixed;
  inset: -20vh -10vw;
  z-index: -2;
  pointer-events: none;
  contain: strict;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
  transition: background 0.8s var(--ease-out-soft);
  translate: var(--px, 0) var(--py, 0);
}
.blob-1 {
  top: -6%;
  left: -4%;
  width: 58vw;
  height: 46vw;
  min-width: 30rem;
  min-height: 24rem;
  background: var(--aurora-1);
  animation: drift 26s ease-in-out infinite;
}
.blob-2 {
  top: 4%;
  right: -10%;
  width: 50vw;
  height: 40vw;
  min-width: 26rem;
  min-height: 22rem;
  background: var(--aurora-2);
  animation: drift 32s ease-in-out -8s infinite reverse;
}
.blob-3 {
  bottom: -12%;
  left: 30%;
  width: 46vw;
  height: 38vw;
  min-width: 24rem;
  min-height: 20rem;
  background: var(--aurora-3);
  animation: drift 29s ease-in-out -15s infinite;
}

/* Fine film grain — takes the flatness off the large washes. */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.card {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  background-color: color-mix(in oklch, var(--card), transparent 22%);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

/* Pointer-tracked light splash. main.js writes --mx/--my; the layer is inert
   until then, so a card is never lit in the wrong place on touch devices. */
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-soft);
  background: radial-gradient(
    16rem 16rem at var(--mx, 50%) var(--my, 0%),
    color-mix(in oklch, var(--feature-deco), transparent 82%),
    transparent 70%
  );
}
.spotlight:hover::before,
.spotlight:focus-within::before {
  opacity: 1;
}

.lift {
  transition:
    transform 0.4s var(--ease-out-soft),
    box-shadow 0.4s var(--ease-out-soft),
    border-color 0.4s var(--ease-out-soft);
}
.lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in oklch, var(--feature-600), transparent 72%);
}

/* The brand / feature gradient. 600→700 keeps white type at ≥4.5:1. */
.brand-gradient {
  background-image: linear-gradient(
    135deg,
    var(--brand-600) 0%,
    var(--brand-700) 55%,
    color-mix(in oklch, var(--brand-700), oklch(0.55 0.2 320) 35%) 100%
  );
}
.feature-gradient {
  background-image: linear-gradient(
    135deg,
    var(--feature-600) 0%,
    var(--feature-700) 55%,
    color-mix(in oklch, var(--feature-700), var(--feature-mix) 35%) 100%
  );
}

.tint {
  background: color-mix(in oklch, var(--feature-deco), transparent 88%);
  color: var(--feature-ink);
}

.mark {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in oklch, var(--brand-600), transparent 72%);
}
.mark svg {
  width: 55%;
  height: 55%;
  fill: currentColor;
}
.mark-sm {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
}
.mark-md {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
}

/* ── 6. Controls ─────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  transition:
    transform 0.25s var(--ease-spring),
    box-shadow 0.3s var(--ease-out-soft),
    background-color 0.3s var(--ease-out-soft),
    border-color 0.3s var(--ease-out-soft);
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

.btn-primary {
  color: #fff;
  box-shadow: 0 4px 14px color-mix(in oklch, var(--feature-600), transparent 68%);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px color-mix(in oklch, var(--feature-600), transparent 52%);
  transform: translateY(-2px);
}
/* Sheen sweep on hover — the one flourish the primary action gets. */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / 0.28) 48%, transparent 62%);
  translate: -120% 0;
  transition: translate 0.75s var(--ease-out-soft);
}
.btn-primary:hover::after {
  translate: 120% 0;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card), transparent 40%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn-ghost:hover {
  border-color: color-mix(in oklch, var(--feature-600), transparent 60%);
  background: color-mix(in oklch, var(--card), transparent 10%);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.95rem 1.6rem;
  font-size: 1.02rem;
}

.btn-icon {
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted-fg);
}
.btn-icon:hover {
  color: var(--fg);
  border-color: color-mix(in oklch, var(--brand-500), transparent 55%);
}
.btn-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem 0.4rem 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: color-mix(in oklch, var(--card), transparent 35%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-fg);
}
.pill b {
  color: var(--fg);
  font-weight: 600;
}
.pill .dot {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.7rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--feature-ink);
}
.link-arrow svg {
  width: 1em;
  height: 1em;
  transition: transform 0.3s var(--ease-out-soft);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ── 7. Site chrome ──────────────────────────────────────────────────────── */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: 2px;
  transform-origin: left;
  scale: var(--p, 0) 1;
  background-image: linear-gradient(90deg, var(--brand-500), var(--spectrum-rose), var(--spectrum-orange), var(--spectrum-mint));
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  padding-block: 0.85rem;
  border-bottom: 1px solid transparent;
  transition:
    padding 0.35s var(--ease-out-soft),
    background-color 0.35s var(--ease-out-soft),
    border-color 0.35s var(--ease-out-soft);
}
.site-header.stuck {
  padding-block: 0.5rem;
  border-bottom-color: var(--hairline);
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.site-header > .container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-link {
  position: relative;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition:
    color 0.25s var(--ease-out-soft),
    background-color 0.25s var(--ease-out-soft);
}
.nav-link:hover {
  color: var(--fg);
  background: color-mix(in oklch, var(--fg), transparent 94%);
}
.nav-link.active {
  color: var(--fg);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 1rem;
  height: 2px;
  border-radius: 2px;
  translate: -50% 0;
  background: var(--brand-500);
}

.nav-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.35rem;
}

.theme-toggle .moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .sun,
:root[data-theme='dark'] .theme-toggle .moon {
  display: revert;
}
:root[data-theme='dark'] .theme-toggle .sun {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle .moon {
    display: revert;
  }
  :root[data-theme='light'] .theme-toggle .sun {
    display: revert;
  }
  :root[data-theme='light'] .theme-toggle .moon {
    display: none;
  }
}

.nav-toggle {
  display: none;
}

@media (max-width: 60rem) {
  .site-nav {
    position: fixed;
    inset: 0 0 auto;
    top: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 4.75rem var(--gutter) 1.75rem;
    background: color-mix(in oklch, var(--card), transparent 6%);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--hairline);
    box-shadow: var(--shadow-float);
    translate: 0 -101%;
    visibility: hidden;
    transition:
      translate 0.45s var(--ease-out-soft),
      visibility 0.45s;
  }
  .site-nav[data-open='true'] {
    translate: 0 0;
    visibility: visible;
  }
  .nav-link {
    padding: 0.75rem 0.9rem;
    font-size: 1.05rem;
    border-radius: var(--r-md);
  }
  .nav-link.active::after {
    display: none;
  }
  .site-nav .btn {
    margin-top: 0.6rem;
    justify-content: center;
  }
  .nav-tools {
    position: relative;
    z-index: 1;
    margin-left: auto;
  }
  .site-header .brand {
    position: relative;
    z-index: 1;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .nav-toggle span {
    display: block;
    width: 1.05rem;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.35s var(--ease-out-soft), opacity 0.2s;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }
}

.site-footer {
  position: relative;
  padding-block: 4rem 2.5rem;
  border-top: 1px solid var(--hairline);
  background: color-mix(in oklch, var(--card), transparent 55%);
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
.footer-grid h3 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 0.9rem;
}
.footer-grid li + li {
  margin-top: 0.5rem;
}
.footer-grid a {
  font-size: 0.925rem;
  color: var(--muted-fg);
  transition: color 0.25s var(--ease-out-soft);
}
.footer-grid a:hover {
  color: var(--fg);
}
.footer-brand p {
  margin-top: 1rem;
  max-width: 26rem;
  font-size: 0.925rem;
  color: var(--muted-fg);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.85rem;
  color: var(--muted-fg);
}
@media (max-width: 56rem) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ── 8. Sections ─────────────────────────────────────────────────────────── */

/* Hero */
.hero {
  padding-block: clamp(7rem, 15vw, 10.5rem) clamp(3rem, 7vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin-top: 1.5rem;
}
.hero .lede {
  margin-top: 1.5rem;
  max-width: 34rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}
.hero-note {
  margin-top: 1.35rem;
  font-size: 0.875rem;
  color: var(--muted-fg);
}
.hero-note b {
  color: var(--fg);
  font-weight: 600;
}

/* the three-feature chip row under the hero copy */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid color-mix(in oklch, var(--chip, var(--brand-500)), transparent 72%);
  background: color-mix(in oklch, var(--chip, var(--brand-500)), transparent 90%);
  color: var(--chip-ink, var(--brand-ink));
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform 0.3s var(--ease-spring), background-color 0.3s;
}
.chip:hover {
  transform: translateY(-2px);
  background: color-mix(in oklch, var(--chip, var(--brand-500)), transparent 82%);
}
.chip svg {
  width: 0.95rem;
  height: 0.95rem;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted-fg);
}
.scroll-cue .mouse {
  width: 1.15rem;
  height: 1.85rem;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  position: relative;
  opacity: 0.6;
}
.scroll-cue .mouse::after {
  content: '';
  position: absolute;
  top: 0.3rem;
  left: 50%;
  width: 2.5px;
  height: 0.45rem;
  border-radius: 2px;
  background: currentColor;
  translate: -50% 0;
  animation: wheel 2s var(--ease-out-soft) infinite;
}

@media (max-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  /* Copy first on a phone: the headline and the call to action have to land
     above the fold, with the app mock peeking in underneath them. */
  .hero-visual {
    margin: 1.5rem auto 0;
  }
  .phone {
    width: min(19rem, 84%);
  }
  .scroll-cue {
    display: none;
  }
  .hero {
    padding-block: clamp(6rem, 22vw, 8rem) clamp(2rem, 6vw, 4rem);
  }
}

/* Converge band — three apps become one */
.converge {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 52rem;
  margin: 3rem auto 0;
}
.converge-card {
  padding: 1.35rem;
  border-radius: var(--r-xl);
  border: 1px dashed var(--border);
  background: color-mix(in oklch, var(--card), transparent 55%);
  text-align: center;
}
.converge-card .glyph {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 0.75rem;
  border-radius: 0.85rem;
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--fg), transparent 93%);
  color: var(--muted-fg);
}
.converge-card .glyph svg {
  width: 1.15rem;
  height: 1.15rem;
}
.converge-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}
.converge-card span {
  font-size: 0.82rem;
  color: var(--muted-fg);
}
.converge-arrow {
  display: grid;
  place-items: center;
  margin: 1.5rem auto 0;
  color: var(--muted-fg);
}
.converge-arrow svg {
  width: 1.5rem;
  height: 1.5rem;
  animation: nudge 2.4s var(--ease-out-soft) infinite;
}
@media (max-width: 44rem) {
  .converge {
    grid-template-columns: 1fr;
  }
}

/* Feature bands */
.feature-band + .feature-band {
  padding-top: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.feature-band:nth-of-type(even) .feature-copy {
  order: 2;
}
.feature-copy h2 {
  margin-top: 1.15rem;
}
.feature-copy > p {
  margin-top: 1.25rem;
  font-size: 1.06rem;
  color: var(--muted-fg);
  max-width: 34rem;
}
.feature-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 2rem;
}
.feature-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.feature-list .tick {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--feature-deco), transparent 85%);
  color: var(--feature-ink);
}
.feature-list .tick svg {
  width: 0.8rem;
  height: 0.8rem;
}
.feature-list b {
  font-weight: 600;
}
.feature-list span {
  color: var(--muted-fg);
}
.feature-cta {
  margin-top: 2rem;
}
@media (max-width: 62rem) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-band:nth-of-type(even) .feature-copy {
    order: 0;
  }
}

/* Bento */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
}
.bento > * {
  grid-column: span 2;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.bento .wide {
  grid-column: span 3;
}
.bento .tall,
.bento .half {
  grid-column: span 3;
}
.bento h3 {
  font-size: 1.1rem;
  margin-top: 1rem;
}
.bento p {
  margin-top: 0.6rem;
  font-size: 0.925rem;
  color: var(--muted-fg);
}
.bento .glyph {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
}
.bento .glyph svg {
  width: 1.2rem;
  height: 1.2rem;
}
.bento .demo {
  margin-top: auto;
  padding-top: 1.4rem;
}
@media (max-width: 62rem) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento .wide,
  .bento .tall,
  .bento .half {
    grid-column: span 4;
  }
}
@media (max-width: 44rem) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento > * {
    grid-column: 1 / -1;
  }
}

/* Steps */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}
.steps::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 12%;
  right: 12%;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
}
.steps::after {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 12%;
  width: calc(76% * var(--fill, 0));
  height: 2px;
  border-radius: 2px;
  background-image: linear-gradient(90deg, var(--spectrum-rose), var(--spectrum-orange), var(--spectrum-mint));
  transition: width 1.4s var(--ease-out-soft);
}
.step {
  position: relative;
  text-align: center;
}
.step .num {
  position: relative;
  z-index: 1;
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  border: 4px solid var(--bg);
}
.step p {
  margin-top: 0.65rem;
  font-size: 0.95rem;
  color: var(--muted-fg);
}
@media (max-width: 52rem) {
  .steps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .steps::before,
  .steps::after {
    display: none;
  }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 58rem;
  margin: 3.5rem auto 0;
}
.plan-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.plan-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.2rem;
}
.plan-flag {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
}
.plan-tagline {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted-fg);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: 1.35rem;
}
.plan-price .amount {
  font-size: clamp(2.1rem, 4vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.plan-price .per {
  font-size: 0.9rem;
  color: var(--muted-fg);
}
.plan-alt {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted-fg);
}
.plan-card .feature-list {
  margin-top: 1.6rem;
  margin-bottom: 2rem;
  gap: 0.75rem;
  font-size: 0.925rem;
}
.plan-card .btn {
  margin-top: auto;
  justify-content: center;
}
.plan-pro {
  border-color: color-mix(in oklch, var(--brand-600), transparent 55%);
  box-shadow: var(--shadow-lift);
}
.plans-fineprint {
  max-width: 58rem;
  margin: 1.4rem auto 0;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--muted-fg);
}
.plans-fineprint a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 52rem) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 30rem;
  }
}

/* FAQ */
.faq {
  max-width: 46rem;
  margin: 3rem auto 0;
  display: grid;
  gap: 0.75rem;
}
.faq details {
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  background: color-mix(in oklch, var(--card), transparent 45%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.3s var(--ease-out-soft), background-color 0.3s;
}
.faq details[open] {
  border-color: color-mix(in oklch, var(--brand-500), transparent 70%);
  background: color-mix(in oklch, var(--card), transparent 15%);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary .sign {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in oklch, var(--brand-500), transparent 88%);
  color: var(--brand-ink);
  transition: transform 0.35s var(--ease-spring);
}
.faq details[open] summary .sign {
  transform: rotate(135deg);
}
.faq summary .sign svg {
  width: 0.75rem;
  height: 0.75rem;
}
.faq .answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--muted-fg);
  font-size: 0.95rem;
}
.faq details[open] .answer {
  animation: rise 0.4s var(--ease-out-soft) both;
}

/* CTA band */
.cta-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-3xl);
  padding: clamp(2.75rem, 7vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  box-shadow: 0 8px 30px color-mix(in oklch, var(--brand-600), transparent 60%);
}
.cta-card h2 {
  position: relative;
}
.cta-card p {
  position: relative;
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: rgb(255 255 255 / 0.82);
}
.cta-card .btn {
  position: relative;
  margin-top: 2.25rem;
  background: #fff;
  color: var(--brand-700);
}
.cta-card .btn:hover {
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.28);
}
.cta-card .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.cta-card .orb-a {
  top: -35%;
  left: -8%;
  width: 26rem;
  height: 26rem;
  background: rgb(255 255 255 / 0.18);
  animation: drift 18s ease-in-out infinite;
}
.cta-card .orb-b {
  bottom: -45%;
  right: -6%;
  width: 24rem;
  height: 24rem;
  background: rgb(255 255 255 / 0.13);
  animation: drift 22s ease-in-out -7s infinite reverse;
}
.cta-note {
  position: relative;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: rgb(255 255 255 / 0.7);
}

/* Legal pages */
.legal {
  padding-block: clamp(6.5rem, 12vw, 9rem) clamp(3.5rem, 8vw, 6rem);
}
.legal-body {
  max-width: 46rem;
  margin-inline: auto;
}
.legal-body h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}
.legal-body h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin-top: 3rem;
}
.legal-body h3 {
  font-size: 1.05rem;
  margin-top: 1.75rem;
}
.legal-body p,
.legal-body ul,
.legal-body ol {
  margin-top: 1rem;
  color: var(--muted-fg);
}
.legal-body li {
  position: relative;
  padding-left: 1.35rem;
  margin-top: 0.5rem;
}
.legal-body li::before {
  content: '';
  position: absolute;
  left: 0.3rem;
  top: 0.72em;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--brand-500);
}
.legal-body strong {
  color: var(--fg);
  font-weight: 600;
}
.legal-body a {
  color: var(--brand-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in oklch, var(--brand-500), transparent 60%);
}
.legal-body a:hover {
  text-decoration-color: currentColor;
}
.updated {
  margin-top: 0.75rem !important;
  font-size: 0.875rem;
}
.callout {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  border-radius: var(--r-xl);
  border: 1px solid color-mix(in oklch, var(--brand-500), transparent 78%);
  background: color-mix(in oklch, var(--brand-500), transparent 93%);
}
.callout p {
  margin-top: 0;
  color: var(--fg);
}
.legal-toc {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r-xl);
  border: 1px solid var(--hairline);
  background: color-mix(in oklch, var(--card), transparent 45%);
}
.legal-toc ol {
  margin-top: 0.5rem;
  counter-reset: toc;
  columns: 2;
  column-gap: 2rem;
}
.legal-toc li::before {
  display: none;
}
.legal-toc li {
  padding-left: 0;
  break-inside: avoid;
  counter-increment: toc;
}
.legal-toc a::before {
  content: counter(toc) '. ';
  opacity: 0.55;
}
.legal-toc a {
  text-decoration: none;
  color: var(--muted-fg);
}
.legal-toc a:hover {
  color: var(--brand-ink);
}
@media (max-width: 40rem) {
  .legal-toc ol {
    columns: 1;
  }
}

/* 404 */
.notfound {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.notfound .code {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

/* ── 9. App mock ─────────────────────────────────────────────────────────── */

/* A miniature of the real Expencil UI, built from the same tokens as the app.
   Used in the hero (phone) and in each feature band (floating panels). */

.phone {
  position: relative;
  width: min(21rem, 100%);
  margin-inline: auto;
  aspect-ratio: 375 / 760;
  padding: 0.7rem;
  border-radius: 3rem;
  background: linear-gradient(160deg, oklch(0.35 0.03 285), oklch(0.2 0.02 285));
  box-shadow:
    0 2px 4px oklch(0.2 0.02 285 / 0.4),
    0 30px 70px -20px oklch(0.3 0.08 285 / 0.55),
    inset 0 0 0 1px oklch(1 0 0 / 0.12);
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease-out-soft);
}
.phone-screen {
  position: relative;
  height: 100%;
  border-radius: 2.4rem;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  translate: -50% 0;
  width: 5.5rem;
  height: 1.35rem;
  border-radius: 999px;
  background: oklch(0.2 0.02 285);
  z-index: 3;
}
.phone-body {
  flex: 1;
  overflow: hidden;
  padding: 2.6rem 0.9rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 82%, transparent 100%);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
}
.mock-topbar .space {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: color-mix(in oklch, var(--card), transparent 40%);
  font-size: 0.67rem;
  font-weight: 500;
  color: var(--muted-fg);
}

/* The gradient hero card — the app's HeroShell. */
.mock-hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  padding: 0.95rem;
  color: #fff;
  box-shadow: 0 8px 30px color-mix(in oklch, var(--feature-600), transparent 62%);
}
.mock-hero .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
}
.mock-hero .orb-a {
  top: -3rem;
  right: -2rem;
  width: 8rem;
  height: 8rem;
  background: rgb(255 255 255 / 0.22);
  animation: drift 14s ease-in-out infinite;
}
.mock-hero .orb-b {
  bottom: -4rem;
  left: -2rem;
  width: 7rem;
  height: 7rem;
  background: rgb(255 255 255 / 0.14);
  animation: drift 17s ease-in-out -6s infinite reverse;
}
.mock-hero > * {
  position: relative;
}
.mock-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgb(255 255 255 / 0.85);
}
.mock-hero-top .chip-icon {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 0.2);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
}
.mock-hero-top .chip-icon svg {
  width: 0.85rem;
  height: 0.85rem;
}
.mock-hero-figure {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.mock-amount {
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.mock-delta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.18);
  font-size: 0.62rem;
  font-weight: 500;
}
.mock-delta svg {
  width: 0.65rem;
  height: 0.65rem;
}
.donut {
  width: 4.4rem;
  height: 4.4rem;
  flex-shrink: 0;
  rotate: -90deg;
}
.donut circle {
  transition: stroke-dasharray 1.1s var(--ease-out-soft);
}
.mock-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  margin-top: 0.65rem;
  font-size: 0.6rem;
  color: rgb(255 255 255 / 0.85);
}
.mock-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.mock-legend i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
}
.mock-legend b {
  font-weight: 600;
  color: #fff;
}
.mock-hero-rows {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  display: grid;
  gap: 0.35rem;
}
.mock-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: rgb(255 255 255 / 0.85);
}
.mock-hero-row b {
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
}

/* Quiet cards, list rows, bars — the app's neutral surfaces. */
.mock-card {
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background-color: color-mix(in oklch, var(--card), transparent 12%);
  padding: 0.75rem;
}
.mock-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
}
.mock-card-title span {
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0;
}
.mock-row + .mock-row {
  border-top: 1px solid var(--hairline);
}
.mock-icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: color-mix(in oklch, var(--c, var(--brand-500)), transparent 86%);
  color: var(--c, var(--brand-500));
}
.mock-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}
.mock-row .label {
  min-width: 0;
  flex: 1;
}
.mock-row .label b {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-row .label b.with-badge {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.mock-row .label span {
  display: block;
  font-size: 0.62rem;
  color: var(--muted-fg);
}
.mock-row .amount {
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.mock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  font-size: 0.55rem;
  font-weight: 600;
  background: color-mix(in oklch, var(--spectrum-orange), transparent 85%);
  color: var(--spectrum-orange-ink);
}
.mock-badge svg {
  width: 0.55rem;
  height: 0.55rem;
}
.mock-day {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0.5rem 0 0.15rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted-fg);
}

.mock-bar {
  height: 0.4rem;
  border-radius: 999px;
  background: color-mix(in oklch, var(--fg), transparent 92%);
  overflow: hidden;
}
.mock-bar i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--c, var(--brand-500)), color-mix(in oklch, var(--c, var(--brand-500)), white 28%));
  transform-origin: left center;
  scale: var(--grow, 1) 1;
  transition: scale 0.9s var(--ease-out-soft), width 0.9s var(--ease-out-soft);
}

.mock-tabbar {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0.5rem 0.4rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mock-tab {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  font-size: 0.53rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: color 0.35s var(--ease-out-soft);
}
.mock-tab .pillbox {
  width: 2.1rem;
  height: 1.4rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease-out-soft), color 0.4s;
}
.mock-tab svg {
  width: 0.95rem;
  height: 0.95rem;
}
.mock-tab[data-on='true'] {
  color: var(--feature-ink);
}
.mock-tab[data-on='true'] .pillbox {
  color: #fff;
  background-image: linear-gradient(135deg, var(--feature-600), var(--feature-700));
  box-shadow: 0 4px 12px color-mix(in oklch, var(--feature-600), transparent 68%);
}

.mock-fab {
  position: absolute;
  right: 1.1rem;
  bottom: 4.4rem;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 2;
  box-shadow: 0 8px 24px color-mix(in oklch, var(--feature-600), transparent 55%);
}
.mock-fab svg {
  width: 1.15rem;
  height: 1.15rem;
}
.mock-fab::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--feature-600);
  animation: ping 2.8s var(--ease-out-soft) infinite;
}

.mock-avatar {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.55rem;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--card);
}
.mock-avatars {
  display: flex;
}
.mock-avatars .mock-avatar + .mock-avatar {
  margin-left: -0.4rem;
}

/* Floating panels used beside the feature copy */
.panel-stack {
  position: relative;
  perspective: 1400px;
}
.panel {
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  background-color: color-mix(in oklch, var(--card), transparent 12%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow-float);
  padding: 1.1rem;
  overflow: hidden;
}
.panel-float {
  position: absolute;
  z-index: 2;
  padding: 0.75rem 0.9rem;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-float);
  animation: bob 6s ease-in-out infinite;
}
.panel-glow {
  position: absolute;
  inset: 12% 8%;
  z-index: -1;
  border-radius: 50%;
  filter: blur(70px);
  background: color-mix(in oklch, var(--feature-deco), transparent 68%);
}

/* the settle-up transfer visual */
.transfer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.7rem;
  border-radius: var(--r-md);
  background: color-mix(in oklch, var(--feature-deco), transparent 90%);
  border: 1px solid color-mix(in oklch, var(--feature-deco), transparent 78%);
}
.transfer .flow {
  position: relative;
  flex: 1;
  height: 1.5px;
  border-radius: 2px;
  background: color-mix(in oklch, var(--feature-600), transparent 70%);
}
.transfer .flow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--feature-600);
  translate: 0 -50%;
  animation: travel 2.6s var(--ease-out-soft) infinite;
}

/* Six-month trend sparkline (bento) — stacked daily/recurring, the app's
   --series-* pair. Each column grows from its baseline on entry. */
.spark {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  height: 6.5rem;
}
.spark > span {
  flex: 1;
  max-width: 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  height: 100%;
}
.spark i {
  display: block;
  border-radius: 3px;
  height: 0;
  transition: height 0.9s var(--ease-out-soft);
}
.spark .daily {
  background-image: linear-gradient(180deg, color-mix(in oklch, #6d4aff, white 22%), #6d4aff);
}
.spark .recurring {
  background-image: linear-gradient(180deg, #d97706, color-mix(in oklch, #d97706, black 12%));
}
.spark-legend {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-fg);
}
.spark-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.spark-legend i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
}

/* Two miniature surfaces showing the same card in both themes. */
.theme-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.theme-preview > div {
  border-radius: var(--r-lg);
  border: 1px solid var(--hairline);
  padding: 0.7rem;
  overflow: hidden;
}
.theme-preview .light {
  background: oklch(0.9857 0.0026 286.35);
  color: oklch(0.21 0.021 285);
}
.theme-preview .dark {
  background: oklch(0.1533 0.0149 284.51);
  color: oklch(0.97 0.006 286);
}
.theme-preview .tile {
  border-radius: 0.5rem;
  padding: 0.45rem 0.55rem;
  color: #fff;
  background-image: linear-gradient(135deg, var(--brand-600), var(--brand-700));
}
.theme-preview .tile small {
  display: block;
  font-size: 0.55rem;
  opacity: 0.85;
}
.theme-preview .tile b {
  font-size: 0.85rem;
  letter-spacing: -0.02em;
}
.theme-preview .line {
  height: 0.35rem;
  border-radius: 999px;
  margin-top: 0.45rem;
  background: currentColor;
  opacity: 0.14;
}
.theme-preview .line.short {
  width: 60%;
}
.theme-preview figcaption {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  opacity: 0.6;
}

/* ── 10. Motion ──────────────────────────────────────────────────────────── */

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 14px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(4%, -6%, 0) scale(1.08);
  }
  66% {
    transform: translate3d(-3%, 4%, 0) scale(0.96);
  }
}

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

@keyframes ping {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  70%,
  100% {
    opacity: 0;
    transform: scale(1.65);
  }
}

@keyframes travel {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(-2px);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

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

@keyframes shine {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* Scroll-in reveal. Elements start hidden only once JS has confirmed it can
   observe them (html.js), so a no-JS visitor sees the full page. */
.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 0.75s var(--ease-out-soft),
    translate 0.75s var(--ease-out-soft);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal='scale'] {
  translate: 0 30px;
  scale: 0.965;
  transition:
    opacity 0.85s var(--ease-out-soft),
    translate 0.85s var(--ease-out-soft),
    scale 0.85s var(--ease-out-soft);
}
.js [data-reveal].in {
  opacity: 1;
  translate: 0 0;
  scale: 1;
}

/* Headline words rise one after the other. */
.js .word {
  display: inline-block;
  opacity: 0;
  translate: 0 0.5em;
  transition:
    opacity 0.7s var(--ease-out-soft),
    translate 0.7s var(--ease-out-soft);
  transition-delay: var(--d, 0ms);
}
.js .word.in {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal],
  .js .word {
    opacity: 1;
    translate: none;
    scale: none;
  }
  .phone {
    transform: none !important;
  }
  .blob {
    translate: none !important;
  }
}
