/* Drops Finance website
   Tokens mirror the app's design system (lib/core/theme in drops_finance):
   AppPalette brand colours, AppColors semantic roles, AppTypography (SF Pro),
   AppSpacing, AppRadii and AppMotion. */

/* ---------- Tokens ---------- */
:root {
  /* Brand (AppPalette) */
  --navy: #0B1B3F;
  --ice: #DCEBFA;
  --blue: #2F6BFF;
  --lime: #C6F432;
  --white: #FFFFFF;

  /* Derived tints, computed with the app's Color.lerp mixes */
  --ice-mist: #F3F8FD;        /* mix(ice, white, .65) */
  --ice-deep: #C7DCFB;        /* mix(ice, blue, .12) */
  --navy-raised: #0F2556;     /* mix(navy, blue, .12) */
  --navy-elevated: #122B65;   /* mix(navy, blue, .20) */
  --navy-glow: #183782;       /* mix(navy, blue, .35) */
  --electric-deep: #2453C5;   /* mix(blue, navy, .30) */
  --electric-soft: #749EFD;   /* mix(blue, ice, .40) */
  --electric-pale: #8EB1FC;   /* mix(blue, ice, .55) */
  --slate: #74839D;           /* mix(ice, navy, .50) */
  --ink-2-light: #4A5977;     /* mix(navy, ice, .30) */
  --ink-2-dark: #9DADC2;      /* mix(ice, navy, .30) */
  --border-light: #C3D2E4;    /* mix(ice, navy, .12) */
  --border-dark: #283859;     /* mix(navy, ice, .14) */
  --heat-1: #DBE7FD;
  --heat-2: #BCD1FE;
  --heat-3: #91B2FE;

  /* Category tints (CategoryTints): muted, never brand colours */
  --hue-blue: #D3E0FF;  --on-hue-blue: #1F4FC2;
  --hue-sage: #DCEBD3;  --on-hue-sage: #3B6B2F;
  --hue-teal: #CDEBEA;  --on-hue-teal: #1F6461;
  --hue-sand: #F1E6CB;  --on-hue-sand: #7A5B12;
  --hue-plum: #E6DAF3;  --on-hue-plum: #5B3E8F;
  --hue-clay: #F4DDD1;  --on-hue-clay: #94431F;

  /* Semantic roles (AppColors.light, on the app's lightest tone: Ice Mist) */
  --bg: var(--ice-mist);
  --surface: var(--white);
  --surface-elevated: var(--white);
  --well: var(--ice);
  --fill-secondary: var(--ice-deep);
  --separator: var(--border-light);
  --pressed: rgba(11, 27, 63, 0.06);
  --shadow-color: rgba(11, 27, 63, 0.18);
  --text: var(--navy);
  --text-2: var(--ink-2-light);
  --text-3: var(--slate);
  --accent: var(--electric-deep);
  --primary: var(--lime);
  --on-primary: var(--navy);
  --inverse: var(--navy);
  --on-inverse: var(--ice-mist);
  --hero-bg: var(--navy);
  --hero-fg: var(--ice);
  --hero-2: var(--ink-2-dark);
  --tile-on-hero: var(--navy-raised);
  --tile-on-hero-2: var(--navy-elevated);
  --bar-bg: rgba(11, 27, 63, 0.85);
  --bar-border: rgba(220, 235, 250, 0.14);
  --panel-bg: var(--ice-deep);

  /* Type: SF Pro via the system stack (no web fonts, nothing loaded from third parties) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  /* Spacing (AppSpacing) and radii (AppRadii) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px;
  --s-12: 48px; --s-16: 64px; --s-24: 96px; --s-32: 128px;
  --r-sm: 10px; --r-md: 16px; --r-lg: 24px; --r-hero: 28px; --r-pill: 999px;

  /* Motion (AppMotion) */
  --quick: 150ms;
  --standard: 250ms;
  --emphasized: 400ms;
  --ease: cubic-bezier(0.33, 1, 0.68, 1);        /* easeOutCubic */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1); /* easeInOutCubic */
  --spring: cubic-bezier(0.34, 1.3, 0.64, 1);

  --container: 1180px;
  --gutter: 20px; /* AppSpacing.page */

  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    /* AppColors.dark */
    --bg: var(--navy);
    --surface: var(--navy-raised);
    --surface-elevated: var(--navy-elevated);
    --well: var(--navy-raised);
    --fill-secondary: var(--navy-elevated);
    --separator: var(--border-dark);
    --pressed: rgba(220, 235, 250, 0.1);
    --shadow-color: rgba(11, 27, 63, 0.6);
    --text: var(--ice);
    --text-2: var(--ink-2-dark);
    --accent: var(--electric-soft);
    --inverse: var(--ice);
    --on-inverse: var(--navy);
    --hero-bg: var(--navy-elevated);
    --tile-on-hero: var(--navy-elevated);
    --tile-on-hero-2: #173373;
    --bar-bg: rgba(18, 43, 101, 0.85);
    --bar-border: rgba(220, 235, 250, 0.12);
    --panel-bg: var(--navy-raised);
  }
}
:root[data-theme="dark"] {
  /* AppColors.dark */
  --bg: var(--navy);
  --surface: var(--navy-raised);
  --surface-elevated: var(--navy-elevated);
  --well: var(--navy-raised);
  --fill-secondary: var(--navy-elevated);
  --separator: var(--border-dark);
  --pressed: rgba(220, 235, 250, 0.1);
  --shadow-color: rgba(11, 27, 63, 0.6);
  --text: var(--ice);
  --text-2: var(--ink-2-dark);
  --accent: var(--electric-soft);
  --inverse: var(--ice);
  --on-inverse: var(--navy);
  --hero-bg: var(--navy-elevated);
  --tile-on-hero: var(--navy-elevated);
  --tile-on-hero-2: #173373;
  --bar-bg: rgba(18, 43, 101, 0.85);
  --bar-border: rgba(220, 235, 250, 0.12);
  --panel-bg: var(--navy-raised);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

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

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

:focus-visible {
  outline: 2px solid var(--electric-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--primary); color: var(--on-primary); font-weight: 600;
  transition: top var(--quick) var(--ease);
}
.skip-link:focus { top: 16px; text-decoration: none; }

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

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}

/* ---------- Type scale (AppTypography, scaled for the web) ---------- */
.display {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.018em;
}
.title3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; }
.headline { font-size: 17px; line-height: 1.35; font-weight: 600; }
.lead {
  font-size: clamp(19px, 1.9vw, 22px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.subhead { font-size: 15px; line-height: 1.45; letter-spacing: -0.013em; color: var(--text-2); }
.footnote { font-size: 13px; line-height: 1.4; letter-spacing: -0.005em; color: var(--text-2); }
.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--accent);
  margin-bottom: var(--s-3);
}
em.mark { font-style: normal; color: var(--lime); }
.num { font-variant-numeric: tabular-nums; }
.money small { font-size: 0.6em; font-weight: inherit; letter-spacing: 0; }

/* ---------- Buttons (Pressable: scale for filled buttons, opacity for text) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--quick) var(--ease), background-color var(--quick) var(--ease), box-shadow var(--standard) var(--ease), opacity var(--quick) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.96); }

.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { box-shadow: 0 8px 24px rgba(198, 244, 50, 0.28); }

.btn-inverse { background: var(--inverse); color: var(--on-inverse); }
.btn-inverse:hover { box-shadow: 0 8px 24px var(--shadow-color); }

.btn-ghost {
  color: var(--hero-fg);
  box-shadow: inset 0 0 0 1.5px rgba(220, 235, 250, 0.28);
}
.btn-ghost:hover { background: rgba(220, 235, 250, 0.08); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 26px 0 8px; font-size: 18px; }

/* The Add button's navy coin, reused on the main call to action */
.btn-coin {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--lime);
}
.btn-coin .icon { width: 20px; height: 20px; stroke-width: 2.2; }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--accent);
  transition: opacity var(--quick) var(--ease), gap var(--standard) var(--ease);
}
.text-link:hover { text-decoration: none; gap: 10px; }
.text-link:active { opacity: 0.6; }
.text-link .icon { width: 18px; height: 18px; stroke-width: 2.2; }

/* ---------- Header: a full-width bar ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--bar-bg);
  box-shadow: 0 1px 0 var(--bar-border), 0 8px 24px rgba(11, 27, 63, 0.12);
  -webkit-backdrop-filter: saturate(1.4) blur(20px);
  backdrop-filter: saturate(1.4) blur(20px);
}
.site-header .container { position: relative; }

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  height: 68px;
  color: var(--ice);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 10px 6px 0;
  border-radius: var(--r-pill);
  color: var(--ice);
  font-size: 17px; font-weight: 700; letter-spacing: -0.02em;
  transition: opacity var(--quick) var(--ease);
}
.brand:hover { text-decoration: none; }
.brand:active { opacity: 0.6; }
.brand img {
  width: 36px; height: 36px; border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(220, 235, 250, 0.22);
}

.nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }

.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px;
  border-radius: var(--r-pill);
  color: var(--ice);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  transition: background-color var(--quick) var(--ease), color var(--quick) var(--ease);
}
.nav-trigger:hover { background: rgba(220, 235, 250, 0.1); }
.nav-trigger .icon { width: 16px; height: 16px; stroke-width: 2.4; transition: transform var(--standard) var(--ease); }
.nav-trigger[aria-expanded="true"] .icon { transform: rotate(180deg); }
/* The current section wears the tab bar's selected pill */
.nav-trigger.is-current,
.nav-trigger[aria-expanded="true"] { background: var(--ice-mist); color: var(--navy); }

.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  width: 340px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--separator), 0 24px 60px rgba(11, 27, 63, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity var(--quick) var(--ease), transform var(--standard) var(--ease), visibility 0s linear var(--standard);
}
.nav-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity var(--quick) var(--ease), transform var(--standard) var(--spring), visibility 0s;
}
.nav-panel::before { /* hover bridge */
  content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px;
}

.panel-link {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--r-md);
  color: var(--text);
  transition: background-color var(--quick) var(--ease);
}
.panel-link:hover { text-decoration: none; background: var(--pressed); }
.panel-link:active { background: var(--pressed); }
.panel-link strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.panel-link small { display: block; font-size: 13px; color: var(--text-2); letter-spacing: -0.005em; margin-top: 1px; }
.panel-icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--fill-secondary); color: var(--accent);
}

.bar .btn-primary { margin-left: 4px; }

/* Appearance menu: Light, Dark or System (the default), as in the app's Profile */
.theme-item { position: relative; margin-left: 4px; }
.theme-trigger {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--ice);
  transition: background-color var(--quick) var(--ease);
}
.theme-trigger:hover { background: rgba(220, 235, 250, 0.1); }
.theme-trigger[aria-expanded="true"] { background: var(--ice-mist); color: var(--navy); }
.theme-trigger .icon { display: none; width: 21px; height: 21px; }
:root:not([data-theme]) .theme-icon-system,
:root[data-theme="light"] .theme-icon-light,
:root[data-theme="dark"] .theme-icon-dark { display: block; }

.theme-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  padding: 8px;
  border-radius: var(--r-lg);
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--separator), 0 24px 60px rgba(11, 27, 63, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--quick) var(--ease), transform var(--standard) var(--ease), visibility 0s linear var(--standard);
}
.theme-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity var(--quick) var(--ease), transform var(--standard) var(--spring), visibility 0s;
}
.theme-title { padding: 8px 12px 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.theme-option {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 44px; padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 16px; font-weight: 500; text-align: left;
  transition: background-color var(--quick) var(--ease);
}
.theme-option:hover, .theme-option:active { background: var(--pressed); }
.theme-option .icon { color: var(--text-2); }
.theme-option .theme-check { margin-left: auto; color: var(--accent); stroke-width: 2.4; visibility: hidden; }
.theme-option[aria-pressed="true"] { font-weight: 600; }
.theme-option[aria-pressed="true"] .theme-check { visibility: visible; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  color: var(--ice);
  transition: background-color var(--quick) var(--ease);
}
.menu-toggle:hover { background: rgba(220, 235, 250, 0.1); }
.menu-toggle .icon { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: var(--gutter);
  right: var(--gutter);
  padding: 8px 8px 16px;
  border-radius: var(--r-lg);
  background: var(--surface-elevated);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--separator), 0 24px 60px rgba(11, 27, 63, 0.28);
  max-height: calc(100dvh - 100px);
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu .group-label {
  padding: 14px 12px 4px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
}
.mobile-menu .btn { width: calc(100% - 16px); margin: 12px 8px 0; }

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: grid; }
  .theme-item { margin-left: auto; }
  .bar { height: 64px; }
}
@media (max-width: 420px) {
  .bar .btn-primary { display: none; }
  .brand { font-size: 16px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-fg);
  background:
    radial-gradient(ellipse 55% 70% at 78% 85%, rgba(47, 107, 255, 0.5), transparent 70%),
    radial-gradient(ellipse 38% 34% at 96% 0%, rgba(198, 244, 50, 0.12), transparent 70%),
    radial-gradient(ellipse 45% 55% at 0% 100%, rgba(47, 107, 255, 0.26), transparent 70%),
    linear-gradient(180deg, #0B1B3F 0%, #0F2557 100%);
}
.hero h1 { color: #F3F8FD; }
.hero .lead { color: rgba(220, 235, 250, 0.82); }

.hero-home { padding-top: 148px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: var(--s-8);
}
.hero-copy { padding-bottom: var(--s-24); }
.hero-copy .lead { margin-top: var(--s-6); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s-8); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: var(--r-pill);
  background: rgba(220, 235, 250, 0.08);
  box-shadow: inset 0 0 0 1px rgba(220, 235, 250, 0.2);
  font-size: 15px; font-weight: 600; color: var(--ice);
}
.chip .icon { width: 18px; height: 18px; stroke: var(--lime); stroke-width: 2.4; }

.hero-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  height: 600px;
}
.hero-visual .phone { position: absolute; top: 0; }

/* Page heroes for inner pages */
.hero-page { padding: 160px 0 var(--s-24); }
.hero-page .lead { margin-top: var(--s-5); max-width: 36ch; }
.hero-page .eyebrow { color: var(--electric-soft); }
.hero-page.centered { text-align: center; }
.hero-page.centered .lead { margin-inline: auto; }
.hero-page .hero-actions { justify-content: inherit; }
.hero-page.centered .hero-actions { justify-content: center; }

@media (max-width: 900px) {
  .hero-home { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: var(--s-12); text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions, .chips { justify-content: center; }
  .hero-visual { height: 460px; }
  .hero-page { padding: 128px 0 var(--s-16); }
}

/* ---------- Phone mockup (from the App Store frames) ---------- */
.phone {
  --w: 300px;
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.026);
  border-radius: calc(var(--w) * 0.145);
  background: #05080F;
  box-shadow:
    inset 0 0 0 2px #2B3552,
    inset 0 0 0 4px #0A0F1C,
    0 0 0 1px rgba(150, 170, 210, 0.28),
    0 40px 80px rgba(2, 8, 24, 0.42),
    0 12px 28px rgba(2, 8, 24, 0.22);
  flex: none;
}
.phone img,
.phone picture {
  display: block;
  width: 100%;
  border-radius: calc(var(--w) * 0.12);
  overflow: hidden;
}
.phone-lg { --w: 330px; }
.phone-md { --w: 290px; }
.phone-sm { --w: 250px; }
@media (max-width: 900px) {
  .phone-lg { --w: 290px; }
}
@media (max-width: 420px) {
  .phone-lg, .phone-md { --w: 260px; }
}

/* A transaction row lifted off the screen */
.float-card {
  position: absolute;
  z-index: 2;
  display: flex; align-items: center; gap: 12px;
  min-width: 250px;
  padding: 12px 18px 12px 12px;
  border-radius: var(--r-md);
  background: var(--ice-mist);
  color: var(--navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 24px 50px rgba(2, 8, 24, 0.4), 0 8px 18px rgba(2, 8, 24, 0.2);
  animation: float 6s var(--ease-in-out) infinite;
}
.float-card .meta { flex: 1; min-width: 0; }
.float-card .meta strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.float-card .meta span { display: block; font-size: 13px; color: var(--ink-2-light); }
.float-card .amount { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.float-card.one { left: -12%; top: 57%; }
.float-card.two { right: -10%; top: 77%; animation-delay: -3s; }
@media (max-width: 1080px) { .float-card.one { left: -2%; } .float-card.two { right: -2%; } }
@media (max-width: 900px) { .float-card { display: none; } }

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

/* Category avatar (the app keeps these icon circles) */
.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
}
.avatar .icon { width: 20px; height: 20px; }
.avatar.sage { background: var(--hue-sage); color: var(--on-hue-sage); }
.avatar.teal { background: var(--hue-teal); color: var(--on-hue-teal); }
.avatar.blue { background: var(--hue-blue); color: var(--on-hue-blue); }
.avatar.sand { background: var(--hue-sand); color: var(--on-hue-sand); }
.avatar.plum { background: var(--hue-plum); color: var(--on-hue-plum); }
.avatar.clay { background: var(--hue-clay); color: var(--on-hue-clay); }
.avatar.lg { width: 48px; height: 48px; }
.avatar.lg .icon { width: 22px; height: 22px; }

/* ---------- Sections ---------- */
.section { padding: var(--s-32) 0; }
.section-tight { padding: var(--s-24) 0; }
.section-head { max-width: 680px; margin-bottom: var(--s-16); }
.section-head.centered { margin-inline: auto; text-align: center; }
.section-head .subhead, .section-head .sub { margin-top: var(--s-4); }
.sub { font-size: 19px; line-height: 1.45; color: var(--text-2); letter-spacing: -0.012em; }

@media (max-width: 768px) {
  .section { padding: var(--s-24) 0; }
  .section-tight { padding: var(--s-16) 0; }
  .section-head { margin-bottom: var(--s-12); }
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-16);
  align-items: center;
}
.steps-list { display: grid; gap: var(--s-8); margin: var(--s-12) 0 var(--s-12); counter-reset: step; }
.steps-list li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); align-items: start; }
.step-num {
  font-size: 34px; font-weight: 700; letter-spacing: -0.03em; line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.steps-list h3 { margin-bottom: 6px; }
.steps-list p { color: var(--text-2); }

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

/* Soft panel that crops a phone at the bottom */
.shot-panel {
  position: relative;
  display: flex;
  justify-content: center;
  height: 560px;
  padding-top: 56px;
  overflow: hidden;
  border-radius: var(--r-hero);
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(47, 107, 255, 0.28), transparent 70%),
    var(--panel-bg);
}
.shot-panel.navy {
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(47, 107, 255, 0.45), transparent 70%),
    linear-gradient(180deg, #0B1B3F 0%, #0F2557 100%);
}
@media (max-width: 600px) {
  .shot-panel { height: 480px; padding-top: 40px; }
}

/* Trust strip */
.trust {
  padding: var(--s-12) 0;
  background: var(--surface);
  border-block: 1px solid var(--separator);
}
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-6);
}
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item .panel-icon { width: 44px; height: 44px; }
.trust-item strong { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.trust-item span { display: block; font-size: 13px; color: var(--text-2); }
@media (max-width: 900px) { .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .trust-list { grid-template-columns: 1fr; gap: var(--s-5); } }

/* Use cases on Electric Blue */
.band-blue {
  color: #fff;
  background:
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(220, 235, 250, 0.16), transparent 70%),
    var(--blue);
}
.band-blue .sub { color: rgba(255, 255, 255, 0.92); }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.case-card {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--ice-mist);
  color: var(--navy);
  box-shadow: 0 12px 32px rgba(11, 27, 63, 0.16);
  transition: transform var(--standard) var(--spring), box-shadow var(--standard) var(--ease);
}
.case-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11, 27, 63, 0.22); }
.case-card .avatar { margin-bottom: var(--s-5); }
.case-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 6px; }
.case-card p { font-size: 15px; line-height: 1.45; color: var(--ink-2-light); }
.case-card .pill { position: absolute; top: var(--s-6); right: var(--s-6); }
@media (max-width: 960px) { .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards-3 { grid-template-columns: 1fr; } }

/* Pills: compact high-emphasis uses the inverse fill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; letter-spacing: -0.005em; line-height: 1.2;
  white-space: nowrap;
}
.pill-inverse { background: var(--navy); color: var(--ice-mist); }
.pill-outline { box-shadow: inset 0 0 0 1.5px currentColor; }
.pill-on-dark { background: var(--ice); color: var(--navy); }
.pill-on-dark-outline { color: var(--ice); box-shadow: inset 0 0 0 1.5px rgba(220, 235, 250, 0.4); }

/* Alternating feature rows */
.feature-rows { display: grid; gap: var(--s-32); }
.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-16);
  align-items: center;
}
.feature-row.flip .feature-copy { order: 2; }
.feature-copy { max-width: 470px; }
.feature-copy p { margin-top: var(--s-5); color: var(--text-2); font-size: 19px; line-height: 1.5; }
.feature-copy .text-link { margin-top: var(--s-6); }
@media (max-width: 900px) {
  .feature-rows { gap: var(--s-24); }
  .feature-row { grid-template-columns: 1fr; gap: var(--s-8); }
  .feature-row.flip .feature-copy { order: 0; }
}

/* ---------- Vision (navy band) ---------- */
.band-navy {
  color: var(--hero-fg);
  background:
    radial-gradient(ellipse 50% 60% at 15% 0%, rgba(47, 107, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 50% at 100% 100%, rgba(47, 107, 255, 0.22), transparent 70%),
    var(--hero-bg);
}
.band-navy .sub { color: var(--hero-2); }
.band-navy .eyebrow { color: var(--electric-soft); }

.stages {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.stage {
  display: flex; flex-direction: column;
  padding: var(--s-6);
  border-radius: var(--r-hero);
  background: var(--tile-on-hero);
  box-shadow: inset 0 0 0 1px rgba(220, 235, 250, 0.08);
}
.stage-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-6); }
.stage-step { font-size: 15px; font-weight: 600; color: var(--hero-2); }
.stage h3 { color: var(--ice-mist); }
.stage p { margin-top: var(--s-2); color: var(--hero-2); font-size: 16px; }
.stage-art {
  margin-top: auto;
  padding-top: var(--s-6);
}
.art-tile {
  border-radius: var(--r-md);
  background: var(--tile-on-hero-2);
  padding: var(--s-4);
  min-height: 168px;
}
@media (max-width: 960px) { .stages { grid-template-columns: 1fr; } }

/* Drop progress: three drops filling up */
.drops-progress {
  display: flex; align-items: center; justify-content: center; gap: var(--s-3);
  margin: 0 auto var(--s-12);
}
.drops-progress svg { width: 28px; height: 36px; }
.drops-progress .line { width: 56px; height: 2px; border-radius: 2px; background: rgba(220, 235, 250, 0.2); }

/* Mini calendar (Home's heat map) */
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; max-width: 300px; margin-inline: auto; }
.mini-cal span { aspect-ratio: 1; border-radius: 6px; background: rgba(220, 235, 250, 0.06); }
.mini-cal .h1 { background: #1A3A86; }
.mini-cal .h2 { background: #2550B8; }
.mini-cal .h3 { background: var(--electric-soft); }
.mini-cal .h4 { background: var(--ice); }
.mini-cal .in { position: relative; }
.mini-cal .in::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--lime);
}

/* Split mock */
.split-row { display: flex; align-items: center; gap: 10px; }
.split-row + .split-row { margin-top: 12px; }
.initials {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 13px; font-weight: 700; letter-spacing: 0;
}
.initials.me { background: var(--ice); color: var(--navy); }
.initials.them { background: var(--electric-soft); color: var(--navy); }
.split-row .who { flex: 1; min-width: 0; font-size: 14px; color: var(--hero-2); line-height: 1.25; }
.split-row .who strong { display: block; color: var(--ice); font-weight: 600; font-size: 15px; }
.split-row .amt { font-size: 15px; font-weight: 600; color: var(--ice); font-variant-numeric: tabular-nums; }
.split-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 14px; padding-top: 12px;
  border-top: 1px solid rgba(220, 235, 250, 0.12);
  font-size: 14px; color: var(--hero-2);
}
.split-total strong { font-size: 17px; color: var(--ice); font-variant-numeric: tabular-nums; }

/* Net worth mock */
.nw-label { font-size: 13px; color: var(--hero-2); }
.nw-value { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ice); font-variant-numeric: tabular-nums; margin-top: 2px; }
.nw-chart { margin-top: 10px; width: 100%; height: 70px; }
.nw-split { display: flex; gap: 4px; margin-top: 10px; height: 8px; }
.nw-split span { border-radius: 4px; }
.nw-legend { display: flex; gap: 14px; margin-top: 8px; font-size: 12px; color: var(--hero-2); }
.nw-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }

/* ---------- Grouped lists (one container per section, inset hairlines) ---------- */
.group {
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--separator);
  overflow: hidden;
}
.group-header {
  font-size: 20px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 var(--s-3) 4px;
}
.row {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  padding: 14px var(--s-5);
  min-height: 64px;
}
.row + .row::before {
  content: "";
  position: absolute; top: 0; right: 0;
  left: var(--inset, 20px);
  border-top: 1px solid var(--separator);
}
.group.with-icons .row + .row::before { --inset: 74px; }
.row .icon-circle {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--fill-secondary); color: var(--accent);
}
.row .row-text { flex: 1; min-width: 0; }
.row .row-text strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.row .row-text span { display: block; font-size: 15px; color: var(--text-2); line-height: 1.4; margin-top: 2px; }
.row .mark-yes { color: var(--accent); }
.row .mark-no { color: var(--text-3); }

.promises {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
}
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Final call to action ---------- */
.cta-card {
  position: relative;
  overflow: hidden;
  padding: var(--s-24) var(--s-8);
  border-radius: var(--r-hero);
  text-align: center;
  color: var(--hero-fg);
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(47, 107, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 30% 40% at 100% 0%, rgba(198, 244, 50, 0.1), transparent 70%),
    var(--navy);
}
.cta-card img.app-icon {
  width: 88px; height: 88px; margin: 0 auto var(--s-8);
  border-radius: 20px;
  box-shadow: 0 0 0 1.5px rgba(220, 235, 250, 0.22), 0 14px 34px rgba(0, 0, 0, 0.35);
}
.cta-card h2 { color: #F3F8FD; }
.cta-card .sub { color: rgba(220, 235, 250, 0.8); margin: var(--s-5) auto 0; max-width: 34ch; }
.cta-card .hero-actions { justify-content: center; }
.store-note { margin-top: var(--s-4); font-size: 15px; color: var(--hero-2); }
@media (max-width: 600px) { .cta-card { padding: var(--s-16) var(--s-5); } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-card, :root:not([data-theme="light"]) .shot-panel, :root:not([data-theme="light"]) .mock-card { box-shadow: inset 0 0 0 1px rgba(220, 235, 250, 0.1); }
  :root:not([data-theme="light"]) .mock-card { box-shadow: inset 0 0 0 1px rgba(220, 235, 250, 0.12), 0 30px 60px rgba(2, 8, 24, 0.35); }
}
:root[data-theme="dark"] .cta-card, :root[data-theme="dark"] .shot-panel, :root[data-theme="dark"] .mock-card { box-shadow: inset 0 0 0 1px rgba(220, 235, 250, 0.1); }
:root[data-theme="dark"] .mock-card { box-shadow: inset 0 0 0 1px rgba(220, 235, 250, 0.12), 0 30px 60px rgba(2, 8, 24, 0.35); }

/* ---------- Footer ---------- */
.site-footer {
  padding: var(--s-24) 0 var(--s-8);
  background: var(--surface);
  border-top: 1px solid var(--separator);
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.6fr));
  gap: var(--s-12);
}
.footer-brand .brand { color: var(--text); padding-left: 0; }
.footer-brand .brand img { box-shadow: none; }
.footer-brand p { margin-top: var(--s-4); color: var(--text-2); max-width: 32ch; }
.footer-col h2 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: var(--s-4); }
.footer-col li + li { margin-top: var(--s-3); }
.footer-col a { color: var(--text-2); font-size: 15px; transition: color var(--quick) var(--ease); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  margin-top: var(--s-16); padding-top: var(--s-6);
  border-top: 1px solid var(--separator);
  font-size: 13px; color: var(--text-2);
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Features page ---------- */
.feature-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--s-16);
  align-items: center;
}
.feature-group + .feature-group { margin-top: var(--s-32); }
.feature-group.flip .feature-group-copy { order: 2; }
.feature-group-copy .h2 { margin-bottom: var(--s-4); }
.feature-group-copy .sub { margin-bottom: var(--s-8); }
@media (max-width: 900px) {
  .feature-group { grid-template-columns: 1fr; gap: var(--s-8); }
  .feature-group + .feature-group { margin-top: var(--s-24); }
  .feature-group.flip .feature-group-copy { order: 0; }
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.tile {
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--separator);
}
.tile .icon-circle {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fill-secondary); color: var(--accent);
  margin-bottom: var(--s-5);
}
.tile h3 { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.tile p { font-size: 15px; color: var(--text-2); line-height: 1.45; }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tiles { grid-template-columns: 1fr; } }

/* ---------- Vision page ---------- */
.vision-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-16);
  align-items: center;
}
.vision-stage + .vision-stage { margin-top: var(--s-32); }
.vision-stage.flip .vision-copy { order: 2; }
.vision-copy .pill { margin-bottom: var(--s-5); }
.vision-copy p { margin-top: var(--s-5); color: var(--text-2); font-size: 19px; line-height: 1.5; max-width: 46ch; }
.vision-copy ul { margin-top: var(--s-6); display: grid; gap: 10px; }
.vision-copy li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); }
.vision-copy li .icon { margin-top: 3px; color: var(--accent); stroke-width: 2.4; }
.vision-copy .text-link { margin-top: var(--s-6); }
.stage-label { font-size: 15px; font-weight: 600; color: var(--text-2); margin-left: 10px; }

.mock-card {
  width: min(100%, 380px);
  padding: var(--s-6);
  border-radius: var(--r-hero);
  background: var(--navy);
  color: var(--ice);
  box-shadow: 0 0 0 1px rgba(220, 235, 250, 0.1), 0 30px 60px rgba(2, 8, 24, 0.35);
}
.mock-card .mock-title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; color: var(--hero-2); margin-bottom: var(--s-5); }
.mock-card .mock-big { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; color: var(--ice); font-variant-numeric: tabular-nums; line-height: 1.1; }
.mock-card .mock-caption { font-size: 15px; color: var(--hero-2); margin-top: 4px; }
.mock-card .art-tile { margin-top: var(--s-5); background: var(--navy-raised); min-height: 0; }
@media (max-width: 900px) {
  .vision-stage { grid-template-columns: 1fr; gap: var(--s-8); }
  .vision-stage + .vision-stage { margin-top: var(--s-24); }
  .vision-stage.flip .vision-copy { order: 0; }
}

/* ---------- Help page ---------- */
.search {
  position: relative;
  max-width: 560px;
  margin: var(--s-8) auto 0;
}
.search .icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  color: var(--slate); width: 20px; height: 20px;
}
.search input {
  width: 100%;
  height: 56px;
  padding: 0 20px 0 52px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ice-mist);
  color: var(--navy);
  font: inherit;
  font-size: 17px;
  box-shadow: 0 0 0 1px rgba(220, 235, 250, 0.2), 0 12px 30px rgba(2, 8, 24, 0.25);
}
.search input::placeholder { color: var(--slate); }
.search input:focus { outline: 2px solid var(--electric-soft); outline-offset: 3px; }

.help-layout { display: grid; gap: var(--s-16); max-width: 820px; margin-inline: auto; }
.faq-group h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.018em; margin: 0 0 var(--s-3) 4px; }
.faq summary {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 18px var(--s-5);
  min-height: 64px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: background-color var(--quick) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--pressed); }
.faq summary .icon { color: var(--text-3); transition: transform var(--standard) var(--ease); }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq + .faq summary::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 0;
  border-top: 1px solid var(--separator);
}
.faq .answer { padding: 0 var(--s-5) var(--s-5); color: var(--text-2); max-width: 64ch; }
.faq .answer p + p { margin-top: var(--s-3); }
.faq .answer strong { color: var(--text); font-weight: 600; }
.no-results { text-align: center; color: var(--text-2); padding: var(--s-8) 0; }
.no-results[hidden] { display: none; }

.help-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); }
.help-card {
  padding: var(--s-8);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--separator);
}
.help-card .icon-circle {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--fill-secondary); color: var(--accent);
  margin-bottom: var(--s-5);
}
.help-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.018em; }
.help-card p { margin-top: var(--s-2); color: var(--text-2); }
.help-card .btn, .help-card .text-link { margin-top: var(--s-6); }
@media (max-width: 720px) { .help-cards { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--emphasized) var(--ease), transform 600ms var(--ease);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

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

.stage-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  margin-bottom: var(--s-5);
  background: var(--tile-on-hero-2);
  color: var(--electric-soft);
}

/* ---------- Photography (laid out the way tricount uses photos) ---------- */

/* 1. Full-bleed photo hero, headline over a navy fade */
.hero-photo {
  display: flex;
  align-items: center;
  min-height: min(100svh, 880px);
  min-height: min(100vh, 880px);
  background: var(--navy);
}
.hero-photo .hero-media { position: absolute; inset: 0; overflow: hidden; }
.hero-photo .hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  transform: scale(1.14);
  transform-origin: 0% 45%;
}
.hero-photo::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 27, 63, 0.92) 0%, rgba(11, 27, 63, 0.8) 26%, rgba(11, 27, 63, 0.3) 50%, rgba(11, 27, 63, 0) 66%),
    linear-gradient(0deg, rgba(11, 27, 63, 0.5) 0%, rgba(11, 27, 63, 0) 28%),
    linear-gradient(180deg, rgba(11, 27, 63, 0.45) 0%, rgba(11, 27, 63, 0) 18%);
}
.hero-photo .container { position: relative; z-index: 1; padding-top: 132px; padding-bottom: 96px; }
.hero-photo .hero-copy { max-width: 540px; padding-bottom: 0; }
.hero-photo .float-card { left: auto; right: 5%; top: auto; bottom: 12%; z-index: 1; }

@media (max-width: 900px) {
  .hero-photo { align-items: flex-end; min-height: 820px; }
  .hero-photo .hero-media img { transform: none; object-position: 60% 20%; }
  .hero-photo::after {
    background:
      linear-gradient(0deg, rgba(11, 27, 63, 0.96) 0%, rgba(11, 27, 63, 0.88) 42%, rgba(11, 27, 63, 0.2) 68%, rgba(11, 27, 63, 0.1) 100%);
  }
  .hero-photo .container { padding-top: 0; padding-bottom: 48px; }
  .hero-photo .hero-copy { max-width: none; }
}

/* 2. Rounded photo with app cards stacked over its edge */
.photo-wrap {
  position: relative;
  width: min(100%, 440px);
  margin-inline: auto;
  margin-bottom: 56px;
}
.photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-hero);
  overflow: hidden;
  background: var(--fill-secondary);
  box-shadow: 0 30px 60px rgba(11, 27, 63, 0.18);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack {
  position: absolute;
  bottom: -56px;
  right: -72px;
  display: grid;
  gap: 10px;
  width: 300px;
}
.stack-card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: var(--r-md);
  background: var(--ice-mist);
  color: var(--navy);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 18px 40px rgba(11, 27, 63, 0.22), 0 4px 10px rgba(11, 27, 63, 0.1);
}
.stack-card .meta { flex: 1; min-width: 0; }
.stack-card .meta strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.stack-card .meta span { display: block; font-size: 13px; color: var(--ink-2-light); }
.stack-card .amount { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.photo-stack .stack-card:nth-child(2) { margin-left: -28px; }
.photo-stack .stack-card:nth-child(3) { margin-left: 14px; }

.photo-overlay {
  position: absolute;
  left: -48px;
  bottom: -32px;
}
.mock-card.compact { width: 300px; padding: var(--s-5); }
.mock-card.compact .mock-title { margin-bottom: var(--s-3); }
.mock-card.compact .mock-big { font-size: 32px; }
.mock-card.compact .art-tile { margin-top: var(--s-4); padding: 14px; }

@media (max-width: 1100px) {
  .photo-stack { right: -40px; }
  .photo-overlay { left: -24px; }
}
@media (max-width: 900px) {
  .photo-stack { right: 16px; left: 16px; width: auto; bottom: -48px; }
  .photo-stack .stack-card:nth-child(2),
  .photo-stack .stack-card:nth-child(3) { margin-left: 0; }
  .photo-stack .stack-card:nth-child(1) { display: none; }
  .photo-overlay { left: 16px; right: auto; bottom: -40px; }
  .mock-card.compact { width: min(250px, calc(100vw - 72px)); }
}

/* 3. Full-width photo call to action */
.cta-photo {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 640px;
  padding: var(--s-16) var(--s-8);
  overflow: hidden;
  border-radius: var(--r-hero);
  text-align: center;
  color: #fff;
  background: var(--navy);
  isolation: isolate;
}
.cta-photo > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.cta-photo::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(11, 27, 63, 0.94) 0%, rgba(11, 27, 63, 0.8) 40%, rgba(11, 27, 63, 0.2) 70%, rgba(11, 27, 63, 0) 100%);
}
.cta-photo .cta-inner { position: relative; z-index: 2; }
.cta-photo h2 { color: #fff; text-shadow: 0 2px 24px rgba(11, 27, 63, 0.35); }
.cta-photo .sub { color: rgba(255, 255, 255, 0.92); margin: var(--s-5) auto 0; max-width: 34ch; }
.cta-photo .hero-actions { justify-content: center; }
.cta-photo .store-note { color: rgba(255, 255, 255, 0.8); }

/* App Store and Google Play badges */
.store-badges {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4);
  margin-top: var(--s-8);
}
.store-badge {
  position: relative;
  display: inline-flex;
  border-radius: 14px;
  color: #fff;
  transition: transform var(--quick) var(--ease), box-shadow var(--standard) var(--ease);
}
.store-badge,
.store-badge-inner {
  align-items: center; gap: 12px;
  min-width: 212px; height: 64px;
  padding: 0 22px 0 18px;
  background: #000;
  box-shadow: inset 0 0 0 1.5px rgba(166, 166, 166, 0.55);
}
.store-badge-inner { display: inline-flex; border-radius: inherit; width: 100%; }
a.store-badge:hover { text-decoration: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.8), 0 12px 28px rgba(0, 0, 0, 0.35); }
a.store-badge:active { transform: scale(0.97); }
.store-logo { width: 30px; height: 30px; flex: none; }
.store-text { display: grid; text-align: left; line-height: 1.05; }
.store-text small { font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.store-badge.is-soon .store-text small { text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }
.store-text strong { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; }

/* Google Play isn't available yet: greyed out, not a link */
.store-badge.is-soon { padding: 0; background: none; box-shadow: none; cursor: not-allowed; }
.store-badge.is-soon .store-badge-inner { filter: grayscale(1); opacity: 0.45; }
.store-soon {
  position: absolute; top: -10px; right: -8px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--ice-mist); color: var(--navy);
  font-size: 12px; font-weight: 600; letter-spacing: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
@media (max-width: 480px) {
  .store-badges { flex-direction: column; align-items: center; }
  .store-badge, .store-badge.is-soon { width: 232px; }
}
@media (max-width: 600px) {
  .cta-photo { min-height: 680px; padding: var(--s-12) var(--s-5); }
  .cta-photo::before {
    background: linear-gradient(0deg, rgba(11, 27, 63, 0.96) 0%, rgba(11, 27, 63, 0.9) 48%, rgba(11, 27, 63, 0.55) 62%, rgba(11, 27, 63, 0.08) 80%, rgba(11, 27, 63, 0) 100%);
  }
}

/* ---------- Roadmap ---------- */
.road-updated { margin-top: var(--s-6); font-size: 15px; color: var(--hero-2); }
.road-section { padding: var(--s-24) 0; }
.road-section + .road-section { padding-top: 0; }

.roadmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  align-items: start;
}
.road-col {
  padding: var(--s-5);
  border-radius: var(--r-hero);
  background: var(--well);
}
.road-head { display: flex; align-items: center; gap: 14px; }
.road-node {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy);
}
.road-node svg { width: 20px; height: 26px; }
.road-label { flex: 1; min-width: 0; }
.road-label h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.road-label p { font-size: 15px; font-weight: 600; color: var(--accent); }
.road-head .pill { color: var(--text-2); }
.road-goal { margin: var(--s-4) 0 var(--s-5); font-size: 15px; color: var(--text-2); }
.road-list { display: grid; gap: 10px; }
.road-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--surface-elevated);
  box-shadow: 0 1px 2px rgba(11, 27, 63, 0.06);
}
.road-card .avatar { width: 40px; height: 40px; }
.road-card h4 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.road-card p { margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--text-2); }

.wish-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}
.wish-card {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--s-6);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--separator);
}
.wish-card .avatar { margin-bottom: var(--s-5); }
.wish-card h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.wish-card p { margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.wish-card .text-link, .wish-card .btn { margin-top: auto; }
.wish-card p + .text-link, .wish-card p + .btn { margin-top: var(--s-5); }
.wish-idea {
  background: transparent;
  border: 1.5px dashed var(--separator);
  box-shadow: none;
}
.wish-idea .avatar { background: var(--fill-secondary); color: var(--accent); }

.done-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-3);
}
.done-grid li {
  display: flex; align-items: flex-start; gap: 14px;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--tile-on-hero);
  box-shadow: inset 0 0 0 1px rgba(220, 235, 250, 0.08);
}
.done-check {
  display: grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(116, 158, 253, 0.18); color: var(--electric-soft);
}
.done-check .icon { width: 18px; height: 18px; stroke-width: 2.4; }
.done-grid strong { display: block; font-size: 16px; font-weight: 600; color: var(--ice-mist); letter-spacing: -0.01em; }
.done-grid li > span:last-child > span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--hero-2); }
#done .hero-actions { margin-top: var(--s-12); }

@media (max-width: 1000px) {
  .roadmap { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
  .wish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .done-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .wish-grid, .done-grid { grid-template-columns: 1fr; }
  .road-col { padding: var(--s-4); }
  .road-section { padding: var(--s-16) 0; }
}

/* ---------- Coming soon pages ---------- */
.hero-soon {
  display: grid; align-items: center;
  min-height: min(100svh, 860px);
  min-height: min(100vh, 860px);
  padding-bottom: var(--s-16);
}
.hero-soon .eyebrow { display: block; }
.soon-icon {
  display: grid; place-items: center;
  width: 72px; height: 72px; margin: 0 auto var(--s-6);
  border-radius: 50%;
  background: rgba(116, 158, 253, 0.16);
  color: var(--electric-soft);
  box-shadow: inset 0 0 0 1px rgba(116, 158, 253, 0.3);
}
.soon-icon .icon { width: 30px; height: 30px; stroke-width: 1.7; }
