/* Calla website. Same design language as the app (mockups/css/tokens.css): pure white,
   wine as the one dark anchor, blush fills, gold details, Apple's system font, and the
   Cormorant Garamond "calla" wordmark (self-hosted, subset to its five letters). */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/cormorant-garamond-700-italic.woff') format('woff');
}

:root {
  --wine: #64193F;
  --wine-grad: linear-gradient(155deg, #732050 0%, #64193F 48%, #531434 100%);
  --rose: #9C5A67;
  --blush: #F6E9EB;
  --blush-soft: #FBF4F5;
  --gold: #D9A75E;
  --gold-ink: #94662A;
  --gold-soft: #F7ECDA;
  --ink: #3D2921;
  --cocoa: #6B5147;
  --line: #EAE1DD;
  --spent: #E3DCDC;
  --indigo: #5A5F95;
  --indigo-soft: #C3C5E6;
  --emerald: #2F8F5E;
  --emerald-soft: #8FCFAE;
  --dash-rose: rgba(156, 90, 103, 0.5);
  --dash-indigo: rgba(90, 95, 149, 0.5);
  --dash-emerald: rgba(47, 143, 94, 0.5);
  --dash-gold: rgba(148, 102, 42, 0.5);

  --shadow-stamp: 0 1px 3px rgba(61, 41, 33, 0.14);
  --shadow-card: 0 1px 2px rgba(61, 41, 33, 0.05), 0 0 0 0.5px rgba(61, 41, 33, 0.07);
  --shadow-float: 0 12px 32px rgba(61, 41, 33, 0.12), 0 0 0 0.5px rgba(61, 41, 33, 0.06);
  --shadow-wine: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 0.5px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(100, 25, 63, 0.2), 0 18px 40px rgba(100, 25, 63, 0.28);
  --shadow-btn: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 24px rgba(100, 25, 63, 0.28);

  --font-ui: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-wordmark: 'Cormorant Garamond', Georgia, serif;

  --ease-ios: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(80px, 10vw, 136px);
  --header: 64px;

  color-scheme: light;
}

/* ================= base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font: 400 17px/1.5 var(--font-ui);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--blush); color: var(--wine); }
:focus-visible { outline: 2.5px solid var(--rose); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--wine); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ================= type ================= */
.eyebrow { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--rose); letter-spacing: -0.01em; margin-bottom: 14px; }
.h1 {
  font-size: clamp(46px, 7.2vw, 92px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.032em;
  text-wrap: balance;
}
.h3 { font-size: 22px; line-height: 1.22; font-weight: 600; letter-spacing: -0.018em; }
.lede {
  font-size: clamp(18px, 1.55vw, 21px);
  line-height: 1.5;
  color: var(--cocoa);
  letter-spacing: -0.008em;
  text-wrap: pretty;
}
.accent { color: var(--wine); }
.body { color: var(--cocoa); line-height: 1.5; text-wrap: pretty; }
.amt { font-variant-numeric: tabular-nums; }

/* the lowercase wordmark: the only non-system face. As on the app's welcome screen (her pick,
   2026-10-30): Cormorant's boldest cut with a hairline of its own wine round each letter */
.wordmark { font-family: var(--font-wordmark); font-style: italic; font-weight: 700; color: var(--wine); line-height: 1; letter-spacing: -0.01em; -webkit-text-stroke: 0.9px currentColor; }

/* ================= buttons ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 17px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 160ms var(--ease-out), box-shadow 200ms ease, background-color 200ms ease, opacity 200ms ease;
  user-select: none; -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); transition-duration: 80ms; }
.btn-primary { background: var(--wine-grad); color: #fff; box-shadow: var(--shadow-btn); }
.btn-secondary { background: var(--blush); color: var(--wine); }
.btn-light { background: #fff; color: var(--wine); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; }
@media (hover: hover) {
  .btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 12px 30px rgba(100, 25, 63, 0.36); }
  .btn-secondary:hover { background: #F1DFE2; }
}
.link { color: var(--rose); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
@media (hover: hover) { .link:hover svg { transform: translateX(3px); } }

/* store buttons. App Store: Apple's own badge, unaltered (their rules: no changes, no shadow,
   at least 40px tall, clear space of a quarter of its height). Android: not on Google Play yet,
   so a matching black badge (no Google Play logo, which may only link to a Play listing)
   that opens the waitlist page. */
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.stores.center { justify-content: center; }
.app-store { display: block; flex: none; border-radius: 9px; transition: transform 160ms var(--ease-out); }
.app-store img { width: auto; height: 54px; }
.store {
  display: inline-flex; align-items: center; gap: 9px;
  height: 54px; padding: 0 20px 0 15px; border-radius: 9px;
  background: #000; color: #fff; text-align: left;
  box-shadow: inset 0 0 0 1px #A6A6A6;
  transition: transform 160ms var(--ease-out);
  user-select: none; -webkit-user-select: none;
}
.app-store:active, .store:active { transform: scale(0.97); transition-duration: 80ms; }
.store-glyph { width: 28px; height: 28px; flex: none; }
.store-text { display: flex; flex-direction: column; line-height: 1.1; }
.store-text small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.store-text b { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
/* phones: a little smaller, so both fit on one row (Apple's minimum is 40px tall) */
@media (max-width: 440px) {
  .stores { gap: 12px; }
  .app-store img { height: 46px; }
  .store { height: 46px; padding: 0 15px 0 12px; gap: 7px; border-radius: 8px; }
  .store-glyph { width: 24px; height: 24px; }
  .store-text small { font-size: 9.5px; }
  .store-text b { font-size: 18px; }
}

/* Until Apple releases Calla: a label where the App Store badge goes (Apple licenses its badge
   only for apps already on the App Store). Not a link, so it doesn't look tappable.
   Launch day: revert the pre-launch commit (HANDOFF §15, phase 7). */
.store.soon { background: #fff; color: var(--wine); box-shadow: inset 0 0 0 1px var(--line); user-select: text; -webkit-user-select: text; }
.store.soon:active { transform: none; }
.cta .store.soon { background: rgba(255, 255, 255, 0.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32); }
.guide-cta .store.soon { margin-top: 24px; }

/* under the store buttons */
.trial-note { margin-top: 14px; font-size: 15px; color: var(--cocoa); }
/* scan-to-download, for people on a computer (hidden on phones and tablets, which have the badge) */
.qr-hint { display: flex; align-items: center; gap: 16px; margin-top: 30px; max-width: 360px; }
.qr-hint img { flex: none; width: 92px; height: 92px; padding: 6px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-float); }
.qr-hint p { font-size: 15px; line-height: 1.4; color: var(--cocoa); }
.qr-hint b { display: block; color: var(--ink); font-weight: 600; }
.qr-card { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 32px; }
.qr-card img { width: 132px; height: 132px; padding: 8px; border-radius: 20px; background: #fff; }
.qr-card p { font-size: 15px; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 900px), (pointer: coarse) { .qr-hint, .qr-card { display: none; } }

/* ================= header ================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  transition: box-shadow 250ms ease;
}
.site-header.scrolled { box-shadow: 0 0.5px 0 rgba(61, 41, 33, 0.1); }
.nav { height: var(--header); display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
/* the welcome screen's logo: the 34px purse, an 8px gap, "calla" at 38px */
.brand .wordmark { font-size: 38px; transform: translateY(-1.5px); }
.nav-links { display: flex; gap: 28px; font-size: 15px; color: var(--cocoa); font-weight: 500; }
.nav-links a { transition: color 150ms ease; }
@media (hover: hover) { .nav-links a:hover { color: var(--wine); } }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ================= iPhone drawn in CSS ================= */
/* --w sets the width; everything else scales from it. Screenshots are 1206×2622. */
.phone {
  --w: 300px;
  position: relative; flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.168);
  background: linear-gradient(150deg, #43332E 0%, #1E1513 34%, #0D0807 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--w) * 0.01) #120B0A,
    0 calc(var(--w) * 0.12) calc(var(--w) * 0.24) calc(var(--w) * -0.08) rgba(100, 25, 63, 0.34),
    0 calc(var(--w) * 0.04) calc(var(--w) * 0.08) calc(var(--w) * -0.03) rgba(61, 41, 33, 0.32);
}
.screen {
  position: relative; overflow: hidden;
  aspect-ratio: 1206 / 2622;
  border-radius: calc(var(--w) * 0.14);
  background: #fff;
  isolation: isolate;
}
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.screen::after {
  content: ''; position: absolute; z-index: 3; left: 50%; top: calc(var(--w) * 0.026);
  width: calc(var(--w) * 0.29); height: calc(var(--w) * 0.086);
  border-radius: 999px; background: #000; transform: translateX(-50%);
}

/* ================= hero ================= */
/* Text on the left, the app on the right, all in the first screen (like most app sites).
   On narrow screens the text sits above the phone. */
.hero { position: relative; padding: clamp(24px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; z-index: -1; inset: 0;
  background:
    radial-gradient(34% 46% at 74% 52%, rgba(246, 233, 235, 0.95), rgba(246, 233, 235, 0) 72%),
    radial-gradient(18% 22% at 86% 70%, rgba(247, 236, 218, 0.7), rgba(247, 236, 218, 0) 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
  gap: clamp(32px, 4vw, 64px);
  min-height: min(780px, calc(100svh - var(--header) - 32px));
}
.hero .h1 { font-size: clamp(46px, 6.2vw, 86px); max-width: 10.5ch; }
.hero .lede { max-width: 25em; margin-top: 24px; }
.hero .stores { margin-top: 36px; }

.hero-stage { position: relative; --w: clamp(240px, 21.5vw, 310px); height: calc(var(--w) * 2.26); }
.hero-stage .phone { --w: inherit; position: absolute; left: 50%; }
.hero-stage .phone.main { z-index: 2; top: 0; margin-left: calc(var(--w) * -0.8); }
.hero-stage .phone.back { z-index: 1; top: calc(var(--w) * 0.16); margin-left: calc(var(--w) * -0.12); transform: scale(0.88); }

/* floating cards over the phones, drawn like the app's UI */
.float-card {
  position: absolute; z-index: 3; text-align: left;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border-radius: 20px; box-shadow: var(--shadow-float);
  padding: 12px 16px 12px 12px;
  display: flex; align-items: center; gap: 11px;
}
.float-card .t { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; white-space: nowrap; }
.float-card .s { font-size: 13px; color: var(--cocoa); line-height: 1.25; white-space: nowrap; }
.float-card.a { left: calc(50% - var(--w) * 1.1); top: calc(var(--w) * 1.32); }
.float-card.b { left: calc(50% + var(--w) * 0.5); top: calc(var(--w) * 0.58); }

@media (max-width: 1080px) { .float-card { display: none; } }
@media (max-width: 900px) {
  .hero { padding-top: clamp(40px, 8vw, 64px); text-align: center; }
  .hero::before { background: radial-gradient(60% 34% at 50% 82%, rgba(246, 233, 235, 0.95), rgba(246, 233, 235, 0) 72%); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: clamp(48px, 9vw, 72px); }
  .hero .h1 { margin: 0 auto; max-width: 11ch; }
  .hero .lede { margin-left: auto; margin-right: auto; max-width: 30em; }
  .hero .stores { justify-content: center; }
  .hero-stage {
    --w: min(70vw, 300px); height: calc(var(--w) * 1.5);
    -webkit-mask: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask: linear-gradient(to bottom, #000 72%, transparent 100%);
  }
  .hero-stage .phone.main { margin-left: calc(var(--w) / -2); }
  .hero-stage .phone.back { display: none; }
}

/* ================= sections ================= */
.section { padding: var(--section) 0; overflow-x: clip; }
.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .lede { margin-top: 20px; }
.section-head.center .lede { margin-left: auto; margin-right: auto; max-width: 36em; }

/* how it works: the three sentences light up as they scroll past */
.statement {
  font-size: clamp(38px, 5.6vw, 72px); line-height: 1.08; font-weight: 700; letter-spacing: -0.034em;
}
.statement span { display: block; transition: color 600ms var(--ease-out); }
.js .statement span { color: rgba(61, 41, 33, 0.16); }
.js .statement span.lit { color: var(--ink); }
.js .statement span.lit.accent { color: var(--wine); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(56px, 7vw, 88px); }
.step { position: relative; padding: 30px 28px 32px; border-radius: 28px; background: var(--blush-soft); }
.step .num { position: absolute; top: 28px; right: 28px; font-size: 15px; font-weight: 600; color: var(--rose); font-variant-numeric: tabular-nums; opacity: 0.8; }
.step .h3 { margin-top: 26px; }
.step .body { margin-top: 8px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* postage stamps, as in the app (5a) */
.stamp {
  --c: var(--rose); --d: var(--dash-rose);
  position: relative; flex: none;
  width: 30px; height: 35px; padding: 2.5px;
  background: #fff; border-radius: 4px; box-shadow: var(--shadow-stamp);
}
.stamp > span { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border: 1.5px dashed var(--d); border-radius: 2px; }
.stamp svg { width: 18px; height: 18px; fill: none; stroke: var(--c); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stamp.fixed { --c: var(--indigo); --d: var(--dash-indigo); }
.stamp.saving { --c: var(--emerald); --d: var(--dash-emerald); }
.stamp.income { --c: var(--gold-ink); --d: var(--dash-gold); }
.stamp.lg { width: 48px; height: 56px; padding: 4px; border-radius: 6px; }
.stamp.lg > span { border-width: 2px; border-radius: 3px; }
.stamp.lg svg { width: 26px; height: 26px; stroke-width: 1.8; }

/* ================= the stuffing demo ================= */
.demo-section { background: linear-gradient(to bottom, #fff, var(--blush-soft) 30%, var(--blush-soft) 70%, #fff); }
.demo { position: relative; max-width: 540px; margin: clamp(48px, 6vw, 72px) auto 0; }
.demo-panel {
  position: relative;
  padding: 18px; border-radius: 34px; background: #fff;
  box-shadow: 0 30px 70px -30px rgba(100, 25, 63, 0.28), 0 0 0 0.5px rgba(61, 41, 33, 0.08);
}
.demo-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 20px 22px; border-radius: 22px;
  background: var(--wine-grad); color: #fff; box-shadow: var(--shadow-wine);
}
.demo-hero .label { font-size: 15px; font-weight: 500; opacity: 0.86; }
.demo-left { font-size: clamp(28px, 5vw, 34px); font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; line-height: 1; }
.demo-bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); margin: 0 4px; margin-top: -2px; overflow: hidden; display: none; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.env-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 9px;
  height: 68px; padding: 0 12px 0 10px; border-radius: 18px;
  background: var(--blush);
  -webkit-mask: radial-gradient(circle 8px at 50% 0, transparent 96%, #000 100%);
  mask: radial-gradient(circle 8px at 50% 0, transparent 96%, #000 100%);
  text-align: left;
  transition: background-color 300ms ease, transform 160ms var(--ease-out);
}
.env-card .body { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.env-name { font-size: 15px; font-weight: 500; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.env-amt { align-self: flex-end; font-size: 17px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; transition: color 300ms ease; }
.env-card .hint { position: absolute; left: 0; bottom: 0; font-size: 12px; font-weight: 600; color: var(--rose); opacity: 0; transition: opacity 250ms ease; }
.env-card.empty { background: var(--blush-soft); box-shadow: inset 0 0 0 1px rgba(156, 90, 103, 0.14); }
.env-card.empty .env-amt { color: rgba(61, 41, 33, 0.32); }
.env-card.filled .stamp { box-shadow: 0 0 0 2px var(--emerald-soft), var(--shadow-stamp); }
.env-card:active { transform: scale(0.975); }
.env-card:disabled { cursor: default; }
@media (hover: hover) { .env-card.empty:not(:disabled):hover { background: #F8EDEF; } }
.demo-coins { position: absolute; inset: -60px 0 0; z-index: 5; pointer-events: none; overflow: hidden; }
.coin {
  position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #FBE8C2 0 16%, #E9BD6E 42%, #C8923F 100%);
  box-shadow: inset 0 0 0 2px rgba(148, 102, 42, 0.5), inset 0 0 0 5px rgba(255, 240, 210, 0.3), 0 2px 5px rgba(61, 41, 33, 0.2);
  will-change: transform, opacity;
}
.demo-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; min-height: 92px; }
.demo-done {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--emerald);
  opacity: 0; transform: translateY(6px); transition: opacity 400ms ease, transform 500ms var(--ease-ios);
}
.demo-done.on { opacity: 1; transform: none; }
.demo-done svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ================= feature rows ================= */
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(48px, 7vw, 112px); }
.feature.flip .feature-media { order: -1; }
.feature-media { position: relative; display: flex; justify-content: center; align-items: center; min-height: 100%; }
.feature-media::before {
  content: ''; position: absolute; z-index: -1; width: 112%; aspect-ratio: 1; max-width: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--blush) 0%, rgba(246, 233, 235, 0.6) 55%, rgba(246, 233, 235, 0) 100%);
}
.feature-media .phone { --w: clamp(250px, 24vw, 310px); }
.feature-copy .lede { margin-top: 20px; max-width: 30em; }
.feature-copy .h2 { max-width: 13ch; }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 56px; }
  .feature.flip .feature-media { order: 0; }
  .feature-media .phone { --w: min(72vw, 290px); }
}

/* envelope kinds: a segmented control like the app's */
.segmented {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  margin-top: 36px; max-width: 420px; padding: 4px; border-radius: 999px;
  background: var(--blush);
}
.segmented .thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px; background: #fff;
  box-shadow: 0 2px 8px rgba(100, 25, 63, 0.1), 0 0 0 0.5px rgba(61, 41, 33, 0.06);
  transition: transform 420ms var(--ease-ios);
}
.segmented button {
  position: relative; z-index: 1; height: 42px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--cocoa); letter-spacing: -0.01em;
  transition: color 250ms ease;
}
.segmented button[aria-selected='true'] { color: var(--wine); }
.kind-copy { position: relative; margin-top: 28px; min-height: 132px; max-width: 28em; }
.kind-copy > div { transition: opacity 300ms ease, transform 420ms var(--ease-ios); }
.kind-copy > div[hidden] { display: block; position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(6px); pointer-events: none; }
.kind-copy .kind-title { display: flex; align-items: center; gap: 12px; }
.kind-copy .body { margin-top: 12px; font-size: 17px; }
.screen .swap { transition: opacity 380ms ease; }
.screen .swap[data-off] { opacity: 0; }

/* payday: two phones, one ahead of the other */
.duo { position: relative; width: 100%; display: flex; justify-content: center; }
.duo .phone { --w: clamp(220px, 21vw, 280px); }
.duo .phone.back { position: absolute; transform: translate(-50%, -3%) scale(0.88); }
.duo .phone.front { transform: translateX(25%); }
@media (max-width: 860px) {
  .duo .phone { --w: min(56vw, 250px); }
  .duo .phone.back { transform: translate(-36%, -3%) scale(0.88); }
  .duo .phone.front { transform: translateX(18%); }
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 12px; border-radius: 16px;
  background: #fff; box-shadow: 0 0 0 1px var(--line);
}
.chip svg { width: 20px; height: 20px; fill: none; stroke: var(--cocoa); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.chip small { display: block; font-size: 12px; font-weight: 600; color: var(--cocoa); line-height: 1.1; }
.chip b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.chip.suggested { background: var(--gold-soft); box-shadow: 0 0 0 1.5px rgba(217, 167, 94, 0.75); }
.chip.suggested svg { stroke: var(--gold-ink); }
.chip.suggested small { color: var(--gold-ink); }
.note { margin-top: 22px; display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--cocoa); max-width: 28em; }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; fill: none; stroke: var(--rose); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* logging: the amount, typed */
.typed {
  display: inline-flex; align-items: baseline; gap: 2px; margin-top: 34px;
  font-size: 56px; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1;
}
.typed .caret { width: 3px; height: 0.86em; align-self: center; background: var(--rose); border-radius: 2px; margin-left: 3px; animation: caret 1.1s steps(1) infinite; }
.typed-sub { margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--cocoa); font-variant-numeric: tabular-nums; }
.typed-sub b { color: var(--ink); }
@keyframes caret { 50% { opacity: 0; } }

/* ================= bento ================= */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(48px, 6vw, 72px); }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 520px; padding: 34px 34px 0; border-radius: 32px;
  background: var(--blush-soft);
  display: flex; flex-direction: column;
}
.tile.span-2 { grid-column: span 2; }
.tile .h3 { font-size: 24px; }
.tile .body { margin-top: 8px; max-width: 26em; }
.tile .phone { --w: 270px; margin: 36px auto calc(var(--w) * -1.18); }
.tile.wine { background: var(--wine-grad); color: #fff; box-shadow: var(--shadow-wine); }
.tile.wine .body { color: rgba(255, 255, 255, 0.78); }
.tile.span-2.split { display: grid; grid-template-columns: 1fr auto; column-gap: 24px; }
.tile.span-2.split .tile-copy { display: flex; flex-direction: column; padding-bottom: 34px; }
.tile.span-2.split .phone { margin: 6px 20px calc(var(--w) * -1.0) 0; align-self: start; grid-row: span 2; }
/* sample money that could read like a result is marked as an example (her facts rule) */
.example { align-self: flex-start; margin-top: auto; padding: 3px 10px; border-radius: 999px; background: var(--blush); color: var(--rose); font-size: 13px; font-weight: 600; }
.example + .big-num { margin-top: 12px; padding-top: 0; }
.big-num { margin-top: auto; padding-top: 24px; font-size: 64px; font-weight: 600; letter-spacing: -0.04em; color: var(--emerald); line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.span-2 { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .bento { grid-template-columns: 1fr; }
  .tile { min-height: 0; padding: 28px 24px 0; }
  .tile .phone { --w: min(66vw, 250px); }
  .tile.span-2.split { display: flex; }
  .tile.span-2.split .tile-copy { padding-bottom: 0; }
  .tile.span-2.split .phone { margin: 32px auto calc(var(--w) * -1.18); }
}

/* lock-screen notifications, drawn after the app's bill-reminder screen */
.notifs { position: relative; margin-top: auto; padding: 36px 0 10px; max-width: 420px; }
.notif {
  position: relative; z-index: 2;
  padding: 14px 16px 15px; border-radius: 22px;
  background: rgba(246, 233, 235, 0.86); color: var(--ink);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 16px 36px -12px rgba(30, 6, 18, 0.5);
}
.notif.behind {
  position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 30px; height: 60px; padding: 0;
  background: rgba(246, 233, 235, 0.42); box-shadow: none;
}
.notif-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; color: rgba(61, 41, 33, 0.62); }
.notif-top img { width: 22px; height: 22px; border-radius: 6px; }
.notif-top time { margin-left: auto; letter-spacing: 0; font-weight: 500; }
.notif-t { margin-top: 8px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.notif-s { margin-top: 2px; font-size: 15px; line-height: 1.35; }

/* the wax-sealed envelope (onboarding 4.1), played on the waitlist's thank-you screen */
.seal-art { position: relative; width: min(100%, 340px); aspect-ratio: 1; margin: 0 auto; }
.seal-art .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 200deg, #F4D6DD, #E5E2F5, #F8EEF0, #F4D6DD); animation: spin 16s linear infinite; opacity: 0.95; }
.seal-art .disc { position: absolute; inset: 9%; border-radius: 50%; background: #fff; overflow: hidden; box-shadow: 0 20px 50px -20px rgba(30, 6, 18, 0.6); }
.seal-art svg { width: 100%; height: 100%; }
.env-pop { transform-box: view-box; transform-origin: 100px 130px; animation: env-pop 450ms var(--ease-ios) both; }
.env-float { animation: env-float 3.2s ease-in-out 1.7s infinite; }
.seal { transform-box: fill-box; transform-origin: center; animation: seal 550ms cubic-bezier(0.3, 1.5, 0.6, 1) 550ms both; }
.seal-ring { transform-box: fill-box; transform-origin: center; opacity: 0; animation: seal-ring 800ms ease-out 850ms forwards; }
.spark { transform-box: fill-box; transform-origin: center; animation: spark 2.4s ease-in-out infinite both; }
.js .seal-art:not(.play) * { animation-play-state: paused !important; }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes env-pop { from { opacity: 0; transform: translateY(10px) scale(0.88); } to { opacity: 1; transform: none; } }
@keyframes env-float { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@keyframes seal { from { opacity: 0; transform: scale(2.2); } to { opacity: 1; transform: none; } }
@keyframes seal-ring { from { opacity: 0.9; transform: none; } to { opacity: 0; transform: scale(2.4); } }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(0.2); } 40%, 60% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* ================= FAQ ================= */
.faq { max-width: 820px; margin: clamp(40px, 5vw, 64px) auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 4px;
  font-size: clamp(19px, 2vw, 22px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; transition: transform 350ms var(--ease-ios), background-color 200ms ease; }
.faq summary .pm svg { width: 16px; height: 16px; fill: none; stroke: var(--wine); stroke-width: 2.2; stroke-linecap: round; }
.faq details[open] summary .pm { transform: rotate(45deg); }
@media (hover: hover) { .faq summary:hover .pm { background: #F1DFE2; } }
.faq .answer { padding: 0 56px 28px 4px; color: var(--cocoa); font-size: 17px; line-height: 1.55; max-width: 40em; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 380ms var(--ease-ios), content-visibility 380ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }

/* ================= download ================= */
.cta {
  position: relative; overflow: hidden; text-align: center;
  border-radius: clamp(28px, 4vw, 44px);
  background: var(--wine-grad); color: #fff; box-shadow: var(--shadow-wine);
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(56px, 7vw, 88px);
}
.cta::before {
  content: ''; position: absolute; left: 50%; top: -10%; width: 70%; aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .h2 { max-width: 14ch; margin: 0 auto; }
.cta .lede { color: rgba(255, 255, 255, 0.8); margin: 20px auto 0; max-width: 28em; }
.cta .stores { margin-top: 36px; }
.cta .trial-note { color: rgba(255, 255, 255, 0.78); }
.purse-stage { display: block; width: 200px; height: 200px; margin: 0 auto 12px; cursor: pointer; border-radius: 50%; }
.purse { width: 100%; height: 100%; overflow: visible; }

/* ================= footer ================= */
.site-footer { padding: clamp(24px, 4vw, 48px) 0 calc(40px + env(safe-area-inset-bottom)); }
.foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 32px; }
.foot .tag { margin-top: 10px; color: var(--cocoa); font-size: 15px; }
.foot-side { display: flex; flex-direction: column; align-items: flex-end; gap: 20px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; color: var(--cocoa); }
.foot-links a { transition: color 150ms ease; }
@media (hover: hover) { .foot-links a:hover { color: var(--wine); } }
/* Instagram and TikTok, drawn by site.js once their usernames are filled in (SOCIAL) */
.social { display: flex; gap: 10px; }
.social:empty { display: none; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blush); color: var(--wine); transition: background-color 150ms ease; }
.social svg { width: 20px; height: 20px; }
@media (hover: hover) { .social a:hover { background: #F1DFE2; } }
@media (max-width: 640px) { .foot-side { align-items: flex-start; } }
.fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: rgba(107, 81, 71, 0.85); }
.fine p + p { margin-top: 4px; }

/* ================= Android waitlist page (/android) ================= */
/* Its own page so the link can be shared: callamoney.com/android */
.solo { padding: clamp(40px, 7vw, 88px) 0 var(--section); background: radial-gradient(60% 50% at 50% 30%, var(--blush-soft), #fff 70%); }
.wl-card {
  width: min(480px, 100%); margin: 0 auto; padding: 44px 36px 36px; border-radius: 34px;
  background: #fff; text-align: center;
  box-shadow: 0 30px 70px -30px rgba(100, 25, 63, 0.28), 0 0 0 0.5px rgba(61, 41, 33, 0.08);
}
.wl-card .eyebrow { margin-bottom: 8px; }
.wl-card h1 { font-size: clamp(30px, 6vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.wl-card h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.028em; line-height: 1.15; }
.wl-card .body { margin-top: 12px; font-size: 17px; }
.wl-card .btn { width: 100%; margin-top: 6px; }
.wl-card .fine-print a { color: var(--wine); text-decoration: underline; text-decoration-color: rgba(100, 25, 63, 0.3); text-underline-offset: 3px; }
.wl-card .done-art { width: 180px; height: 180px; margin: 0 auto 18px; }
.wl-card [data-step][hidden] { display: none; }
.wl-ios { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 15px; color: var(--cocoa); }
@media (max-width: 560px) { .wl-card { padding: 36px 22px 28px; border-radius: 28px; } }
.logo-circle { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: var(--blush); display: flex; align-items: center; justify-content: center; }
.logo-circle img { width: 56px; height: 56px; }
.field { margin-top: 26px; text-align: left; }
.field input {
  width: 100%; height: 54px; padding: 0 18px; border-radius: 16px;
  border: 0; background: #F7F2F1; color: var(--ink);
  font: 400 17px/1 var(--font-ui); letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 200ms ease, background-color 200ms ease;
}
.field input::placeholder { color: rgba(107, 81, 71, 0.55); }
.field input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rose), 0 0 0 4px rgba(156, 90, 103, 0.12); }
.field.bad input { box-shadow: inset 0 0 0 1.5px #B3403A; }
.field-msg { min-height: 20px; margin-top: 8px; font-size: 13.5px; color: #B3403A; padding-left: 4px; }
.fine-print { margin-top: 14px; font-size: 13px; color: rgba(107, 81, 71, 0.85); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ================= reveal on scroll ================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-out), transform 1100ms var(--ease-ios); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: 80ms; }
.js .reveal.d2 { transition-delay: 160ms; }
.js .reveal.d3 { transition-delay: 240ms; }

/* hero entrance */
.js .hero .rise { opacity: 0; transform: translateY(20px); animation: rise 900ms var(--ease-ios) forwards; }
.js .hero .rise.d1 { animation-delay: 80ms; }
.js .hero .rise.d2 { animation-delay: 160ms; }
.js .hero .rise.d3 { animation-delay: 240ms; }
.js .hero-stage .phone { animation: phone-rise 1300ms var(--ease-ios) 250ms both; }
.js .hero-stage .phone.back { animation-delay: 420ms; }
.js .hero-stage .float-card { animation: rise 900ms var(--ease-ios) 900ms both; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes phone-rise { from { opacity: 0; translate: 0 90px; } to { opacity: 1; translate: 0 0; } }

/* ================= legal pages ================= */
.legal { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.legal .doc { max-width: 760px; margin: 0 auto; }
.legal .back { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--rose); margin-bottom: 28px; text-decoration: none; }
.legal .back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.legal h1 { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; font-weight: 700; letter-spacing: -0.032em; text-wrap: balance; }
.legal h1 + p { margin-top: 14px; color: var(--rose); font-weight: 600; font-size: 15px; }
.legal h2 { margin-top: 56px; padding-top: 8px; font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.022em; }
.legal h3 { margin-top: 32px; font-size: 19px; font-weight: 600; letter-spacing: -0.012em; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--cocoa); }
.legal p { margin-top: 16px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { margin: 16px 0 0; padding-left: 1.2em; }
.legal li { margin-top: 10px; padding-left: 4px; }
.legal li::marker { color: var(--rose); }
.legal a { color: var(--wine); text-decoration: underline; text-decoration-color: rgba(100, 25, 63, 0.3); text-underline-offset: 3px; transition: text-decoration-color 150ms ease; }
@media (hover: hover) { .legal a:hover { text-decoration-color: var(--wine); } }
.legal hr { margin: 56px 0 0; border: 0; height: 1px; background: var(--line); }
.legal hr + p em { font-size: 14px; }
.legal .table { margin-top: 20px; overflow-x: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.legal th, .legal td { padding: 12px 16px; text-align: left; vertical-align: top; color: var(--cocoa); }
.legal th { background: var(--blush-soft); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.legal tr + tr td { border-top: 1px solid var(--line); }
.legal .short { margin-top: 28px; padding: 6px 28px 26px; border-radius: 24px; background: var(--blush-soft); }
.legal ol { margin: 16px 0 0; padding-left: 1.3em; }
.legal ol li::marker { color: var(--rose); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ================= guides (/guides) ================= */
/* A guide's text uses the legal pages' type (.legal wraps just the article). */
.guide { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.guide .legal { padding: 0; }
.guide .doc { max-width: 720px; }
.guide .doc > p, .guide .doc li { font-size: 18px; }
.guide .disclaimer { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.guide-cta {
  max-width: 720px; margin: 56px auto 0; padding: 36px 28px; border-radius: 30px;
  background: var(--blush-soft); text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.guide-cta > img { width: 56px; height: 56px; }
.guide-cta h2 { margin-top: 14px; font-size: 26px; font-weight: 700; letter-spacing: -0.024em; line-height: 1.2; }
.guide-cta > p:not(.trial-note) { margin-top: 8px; color: var(--cocoa); max-width: 26em; }
.guide-cta .app-store { margin-top: 24px; }
.guide-cta .trial-note + .trial-note { margin-top: 6px; }
.more-guides { max-width: 1000px; margin: 88px auto 0; }
.more-guides > h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.024em; text-align: center; }
.guides { padding: clamp(48px, 7vw, 88px) 0 var(--section); }
.guide-list { list-style: none; margin: clamp(40px, 5vw, 64px) auto 0; padding: 0; max-width: 860px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.more-guides .guide-list { margin-top: 28px; max-width: 1000px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .more-guides .guide-list { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .guide-list { grid-template-columns: 1fr; } }
.guide-card {
  height: 100%; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px 26px; border-radius: 28px; background: #fff;
  box-shadow: 0 1px 2px rgba(61, 41, 33, 0.04), 0 22px 44px -28px rgba(100, 25, 63, 0.28), 0 0 0 0.5px rgba(61, 41, 33, 0.08);
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease;
}
.guide-card .stamp { margin-bottom: 12px; }
.guide-card .body { font-size: 16px; }
.guide-card .read { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 600; color: var(--rose); }
.guide-card:active { transform: scale(0.985); }
@media (hover: hover) { .guide-card:hover { box-shadow: 0 1px 2px rgba(61, 41, 33, 0.04), 0 26px 50px -26px rgba(100, 25, 63, 0.36), 0 0 0 0.5px rgba(61, 41, 33, 0.1); } }

/* ================= reduced motion, transparency, contrast ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero .rise, .js .hero-stage .phone, .js .hero-stage .float-card { opacity: 1; transform: none; translate: none; animation: none; transition: opacity 200ms ease; }
  .js .reveal { opacity: 1; }
  .seal-art .ring, .env-pop, .env-float, .seal { animation: none; }
  .seal-ring { animation: none; opacity: 0; }
  .spark { animation: none; opacity: 1; }
  .typed .caret { animation: none; }
  .segmented .thumb, .kind-copy > div { transition: opacity 200ms ease; }
  .kind-copy > div[hidden] { transform: none; }
  .faq summary .pm { transition: none; }
  .faq details::details-content { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .float-card, .notif { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .site-header { background: #fff; box-shadow: 0 1px 0 var(--cocoa); }
  .lede, .body { color: var(--ink); }
}
