/* PennyPal landing — dark, frosted blue glass with a gradient hairline edge.
   One responsive page: the desktop and phone layouts from the design board. */

:root {
  --bg: #0a0b24;
  --panel: #121338;
  --text: #ffffff;
  --muted: #c3c6ee;
  --faint: #a9acdc;
  --accent: #7ee8fa;
  --gold: #ffd23f;
  --ink: #1b1450;
  --pos: #5eead4;
  --neg: #ff9db8;
  --neg-text: #ffb3cb;
  --edge: linear-gradient(135deg, #22e3ff, #8b5cff 50%, #f45cff);
  --glass-fill: linear-gradient(160deg, rgba(110, 190, 255, 0.24), rgba(110, 190, 255, 0.128));
  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* clip, not hidden: nothing may widen the page on phones, and sticky headers keep working */
html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:hover { color: var(--accent); }
h1, h2, h3, p { margin: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- glass ---------- */
.glass {
  --base: var(--bg);
  background: var(--glass-fill) padding-box, linear-gradient(var(--base), var(--base)) padding-box, var(--edge) border-box;
  border: 1px solid transparent;
}
.glass-on-panel { --base: var(--panel); }

/* ---------- type ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow-gold { color: var(--gold); }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(50px, 6vw, 80px); line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance; text-shadow: 0 2px 30px rgba(20, 10, 80, 0.35); }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.8vw, 56px); line-height: 1.05; letter-spacing: -0.035em; }
h3 { font-family: var(--display); font-weight: 500; font-size: 22px; }
.lead { font-size: 19px; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.lead-muted { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* amounts: white digits, small dimmed currency, colour lives in the IN/OUT tag */
.amount { display: inline-flex; align-items: baseline; gap: 2px; font-family: var(--display); font-variant-numeric: tabular-nums; }
.amount .cur { font-size: 0.55em; color: var(--faint); }
.amount-lg { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.amount-md { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.amount-low { font-size: 18px; font-weight: 500; color: var(--neg-text); }
.amount-low .cur { color: inherit; }
.amount-tag { margin-right: 6px; font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--faint); }
.tag-in { color: var(--pos); }
.tag-out { color: var(--neg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 30px; border-radius: 16px; font: 700 17px/1 var(--body); text-decoration: none; cursor: pointer; border: 0; }
.btn-primary { background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgba(40, 20, 140, 0.35); }
.btn-primary:hover { color: var(--ink); filter: brightness(0.96); }
.btn-outline { padding: 15px 28px; border: 2px solid rgba(255, 255, 255, 0.7); color: #fff; font-weight: 600; backdrop-filter: blur(8px); }
.ff-icon { fill: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: 0; padding: 0 24px; }
.nav {
  position: relative; top: 20px; max-width: 1200px; margin: 0 auto;
  padding: 10px 10px 10px 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: 20px; background: rgba(10, 11, 36, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 600; }
.nav-links a { text-decoration: none; }
.btn-login { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px 10px 18px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.btn-login:hover { color: var(--ink); }
.soon-tag { padding: 3px 7px; border-radius: 7px; background: linear-gradient(90deg, #22c7ff, #8b5cff); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 810px; display: flex; flex-direction: column; overflow: hidden; }
.hero-sky {
  position: absolute; inset: 0;
  /* a coded recreation of the reference art; colours sampled from it */
  background:
    radial-gradient(12% 18% at 60% 64%, #2f98fe 0%, rgba(47, 152, 254, 0) 100%),
    radial-gradient(30% 40% at 100% 4%, #ea18fc 0%, rgba(234, 24, 252, 0) 100%),
    radial-gradient(30% 36% at 93% 100%, #fb1dfd 0%, rgba(251, 29, 253, 0) 100%),
    radial-gradient(14% 16% at 73% 100%, #d01afd 0%, rgba(208, 26, 253, 0) 100%),
    radial-gradient(14% 18% at 100% 51%, #4d5efb 0%, rgba(77, 94, 251, 0) 100%),
    radial-gradient(16% 22% at 60% 0%, #9a2dfc 0%, rgba(154, 45, 252, 0) 100%),
    radial-gradient(14% 24% at 37% 63%, #8f3cfc 0%, rgba(143, 60, 252, 0) 100%),
    radial-gradient(14% 22% at 43% 79%, #a531fc 0%, rgba(165, 49, 252, 0) 100%),
    radial-gradient(13% 18% at 53% 93%, #ad3afb 0%, rgba(173, 58, 251, 0) 100%),
    radial-gradient(22% 26% at 25% 100%, #01f2fd 0%, rgba(1, 242, 253, 0) 100%),
    radial-gradient(26% 90% at 0% 50%, #03e6fe 0%, #10cbfd 45%, rgba(16, 203, 253, 0) 100%),
    radial-gradient(30% 45% at 4% 14%, #02f6fe 0%, rgba(2, 246, 254, 0) 100%),
    radial-gradient(22% 38% at 20% 22%, rgba(22, 176, 253, 0.9) 0%, rgba(22, 176, 253, 0) 100%),
    radial-gradient(20% 32% at 34% 30%, #3a6efb 0%, rgba(58, 110, 251, 0) 100%),
    #4f62fb;
}
.orb { position: absolute; border-radius: 50%; }
.orb-cyan { left: -8.97%; top: 59.2%; width: 482px; height: 482px; background: radial-gradient(circle at 45% 30%, rgba(170, 245, 255, 0.24) 0%, rgba(130, 232, 255, 0.16) 70%, rgba(190, 250, 255, 0.24) 100%); filter: blur(1px); animation: orb 18s ease-in-out infinite; }
.orb-top { left: 68.3%; top: -65.7%; width: 858px; height: 858px; background: radial-gradient(circle at 55% 40%, #c41efc 0%, #d334fb 82%, #db4afa 100%); filter: blur(1.5px); animation: orb 22s ease-in-out infinite reverse; }
.orb-bottom { left: 82%; top: 71.3%; width: 670px; height: 670px; background: radial-gradient(circle at 40% 40%, rgba(252, 34, 252, 0.85) 0%, rgba(250, 40, 252, 0.8) 80%, rgba(253, 60, 250, 0.85) 100%); filter: blur(1.5px); animation: orb 20s ease-in-out infinite; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(38% 44% at 25% 52%, rgba(22, 16, 96, 0.26) 0%, rgba(22, 16, 96, 0) 100%); }
.fade-out { position: absolute; left: 0; right: 0; bottom: 0; height: 110px; background: linear-gradient(180deg, rgba(10, 11, 36, 0) 0%, var(--bg) 100%); }

.hero-inner { position: relative; z-index: 2; flex: 1; width: 100%; padding-top: 136px; padding-bottom: 120px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.hero-copy { flex: 1 1 460px; max-width: 620px; min-width: 0; display: flex; flex-direction: column; gap: 26px; animation: rise 0.9s ease-out both; }
.eyebrow-hero { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: #fff; text-shadow: 0 1px 12px rgba(20, 10, 80, 0.35); }
.hero .lead { max-width: 470px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-penny { flex: 0 1 500px; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.hero-penny img { position: relative; z-index: 1; width: min(500px, 82vw); }
.penny-ground { margin-top: -66px; width: min(520px, 86vw); height: 64px; border-radius: 50%; background: radial-gradient(closest-side, rgba(78, 46, 240, 0.95) 0%, rgba(80, 48, 242, 0.7) 55%, rgba(84, 52, 246, 0) 100%); }

/* travelling shapes (built by main.js) */
.shapes { position: absolute; inset: 0; }
.shape { position: absolute; animation: travel var(--dur) linear var(--delay) infinite; }
.shape-pill { border-radius: 9999px; }
.shape-dot > span { display: block; width: 100%; height: 100%; border-radius: 50%; animation: bob var(--bob, 7s) ease-in-out infinite; }
.shape-tri svg { display: block; width: 100%; height: 100%; animation: wobble var(--bob, 10s) ease-in-out infinite; }

/* ---------- sections ---------- */
.section { position: relative; }
.calendar-section { padding: 60px 0 110px; overflow-x: clip; }
.section-glow { position: absolute; left: 50%; top: 45%; width: 820px; height: 420px; margin-left: -410px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91, 60, 245, 0.42), rgba(91, 60, 245, 0)); animation: glow 9s ease-in-out infinite; }
.calendar-section .container { position: relative; display: flex; flex-direction: column; gap: 32px; }

.cal-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.cal-copy { flex: 1 1 520px; max-width: 640px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.heads-up { flex: 0 1 470px; min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.heads-up img { width: 180px; flex-shrink: 0; transform: scaleX(-1); filter: drop-shadow(0 18px 24px rgba(20, 10, 80, 0.45)); }
.bubble { max-width: 270px; padding: 16px 18px; border-radius: 20px 20px 6px 20px; font-size: 15px; line-height: 1.5; }
.bubble strong { color: var(--neg-text); }

.cal-card { padding: 24px 28px 22px; border-radius: 30px; display: flex; flex-direction: column; gap: 16px; }
.cal-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.cal-month { display: flex; align-items: center; gap: 8px; color: var(--faint); }
.cal-month p { min-width: 180px; text-align: center; font-family: var(--display); font-size: 24px; font-weight: 500; color: #fff; }
.cal-projection { text-align: right; }
.cal-projection-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.cal-projection-label svg { fill: var(--accent); }
.cal-projection .amount { justify-content: flex-end; }

/* desktop month view — mirrors the app's DayCell + TransactionPill */
.month-grid { border-radius: 18px; overflow: hidden; border: 1px solid rgba(110, 190, 255, 0.14); }
.month-weekdays, .month-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: rgba(110, 190, 255, 0.14); }
.month-days { border-top: 1px solid rgba(110, 190, 255, 0.14); }
.month-weekdays span { padding: 10px; background: rgba(12, 14, 44, 0.9); font-size: 12px; font-weight: 700; color: var(--faint); }
.day { min-height: 118px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: rgba(14, 16, 50, 0.92); }
.day.is-lead { background: rgba(7, 8, 28, 0.96); }
.day.is-today { background: rgba(126, 232, 250, 0.08); box-shadow: inset 0 0 0 2px var(--accent); }
.day-top { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.day-num { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #eef0ff; }
.is-lead .day-num { color: #4b4f7a; }
.is-today .day-num { background: var(--accent); color: var(--bg); }
.day-bal { font-family: var(--display); font-size: 12.5px; font-weight: 500; font-variant-numeric: tabular-nums; color: #9ea2d4; }
.day-bal.is-low { color: var(--neg-text); font-weight: 700; }
.day-pills { display: flex; flex-direction: column; gap: 3px; min-width: 0; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 8px; border-radius: 9999px; font-size: 12px; line-height: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.day-pills .pill { display: flex; }
.pill b { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pill .dot { flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.pill .desc { min-width: 0; overflow: hidden; text-overflow: ellipsis; opacity: 0.88; }
.pill .rec { flex-shrink: 0; margin-left: auto; font-size: 10px; opacity: 0.6; }
.pill-in { background: rgba(52, 211, 153, 0.22); color: #b6f5dc; }
.pill-transfer { background: rgba(129, 140, 248, 0.3); color: #dbe0ff; }
.pill-exp-1 { background: rgba(244, 63, 94, 0.16); color: #ffd5dc; }
.pill-exp-2 { background: rgba(244, 63, 94, 0.22); color: #ffd5dc; }
.pill-exp-3 { background: rgba(244, 63, 94, 0.34); color: #ffe4e8; }
.pill-exp-4 { background: rgba(244, 63, 94, 0.5); color: #fff; }
.pill-exp-5 { background: rgba(244, 63, 94, 0.62); color: #fff; }
.pill-row { display: flex; padding: 7px 12px; font-size: 13px; }
.pill-row .dot { width: 7px; height: 7px; }

.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 13px; color: var(--faint); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend-rec { font-size: 13px; color: #d6d8f5; }

/* phone calendar — mirrors the app's MobileCalendar + day sheet */
.mini-cal { display: none; flex-direction: column; gap: 8px; }
.mini-weekdays, .mini-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.mini-weekdays { font-size: 11px; font-weight: 700; color: var(--faint); text-align: center; }
.mini-days { gap: 3px; }
.mini-day { height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--tint, transparent); }
.mini-day.is-lead { opacity: 0.3; }
.mini-day span { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #d6d8f5; }
.mini-day.is-today span { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent); }
.mini-day.is-selected span { background: #fff; color: var(--bg); }
.day-sheet { padding-top: 12px; border-top: 1px solid rgba(110, 190, 255, 0.14); display: flex; flex-direction: column; gap: 8px; }
.day-sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.day-sheet-title { font-size: 15px; font-weight: 700; }
.day-sheet-sub { margin-top: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--faint); }

/* ---------- payday ---------- */
.payday-section { padding: 0 0 110px; }
.payday-box {
  position: relative; min-height: 560px; border-radius: 34px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(55% 75% at 78% 45%, rgba(94, 234, 212, 0.2) 0%, rgba(94, 234, 212, 0) 100%),
    radial-gradient(50% 70% at 8% 100%, rgba(139, 92, 255, 0.3) 0%, rgba(139, 92, 255, 0) 100%),
    radial-gradient(40% 50% at 50% 0%, rgba(255, 210, 63, 0.12) 0%, rgba(255, 210, 63, 0) 100%),
    var(--panel);
}
.money-rain { position: absolute; inset: 0; overflow: hidden; }
.bill { position: absolute; top: -200px; animation: fall var(--dur) linear var(--delay) infinite; }
.bill-sway { display: block; animation: sway var(--sway) ease-in-out var(--delay) infinite; }
.bill-tilt { display: block; perspective: 600px; }
.bill svg { display: block; width: 100%; height: auto; animation: flip var(--flip) ease-in-out var(--delay) infinite; }
.payday-shade { position: absolute; inset: 0; background: radial-gradient(48% 70% at 26% 50%, rgba(18, 19, 56, 0.82) 0%, rgba(18, 19, 56, 0.4) 60%, rgba(18, 19, 56, 0) 100%); }

.payday-layout {
  position: relative; padding: clamp(28px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 440px); justify-content: space-between; align-items: center;
  grid-template-areas: "copy penny" "card penny"; gap: 20px 32px;
}
.payday-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; }
.payday-penny { grid-area: penny; position: relative; display: flex; justify-content: center; }
.payday-penny-glow { position: absolute; left: 10%; right: 10%; top: 12%; bottom: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 63, 0.32), rgba(255, 210, 63, 0)); }
.payday-penny img { position: relative; width: min(440px, 80vw); }

.recurring-card { grid-area: card; padding: 20px; border-radius: 22px; display: flex; flex-direction: column; gap: 14px; }
.rec-row { display: flex; align-items: center; gap: 14px; }
.rec-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.rec-icon-in { background: rgba(94, 234, 212, 0.16); fill: var(--pos); }
.rec-icon-out { background: rgba(255, 128, 170, 0.14); stroke: var(--neg); }
.rec-text { flex: 1; min-width: 0; }
.rec-name { font-weight: 700; }
.rec-when { margin-top: 2px; font-size: 14px; color: var(--faint); }
.rec-divider { height: 1px; background: rgba(255, 255, 255, 0.08); }
.next-paydays { padding-top: 6px; }
.next-label { margin-bottom: 12px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; color: var(--faint); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.timeline-line { position: absolute; left: 6px; right: 0; top: 5px; height: 2px; background: linear-gradient(90deg, var(--pos) 0%, var(--pos) 60%, rgba(94, 234, 212, 0) 100%); }
.timeline > div { position: relative; display: flex; flex-direction: column; gap: 10px; font-size: 13px; font-weight: 700; }
.tick { width: 12px; height: 12px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.2); }
.timeline-more { color: var(--faint); font-weight: 600 !important; }
.timeline-more svg { fill: rgba(94, 234, 212, 0.6); }

/* ---------- features ---------- */
.features-section { padding: 0 0 40px; }
.features { display: flex; flex-wrap: wrap; gap: 18px; }
.feature { flex: 1 1 300px; padding: 28px; border-radius: 30px; display: flex; flex-direction: column; gap: 14px; }
.feature div { display: flex; flex-direction: column; gap: 10px; }
.feature p { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--chip); }

/* ---------- waitlist ---------- */
.waitlist { position: relative; overflow: hidden; padding: 260px 24px 150px; text-align: center; }
.waitlist-sky {
  position: absolute; inset: 0;
  /* the hero's sky, mirrored so it rises out of the dark page */
  background:
    radial-gradient(30% 40% at 100% 96%, #ea18fc 0%, rgba(234, 24, 252, 0) 100%),
    radial-gradient(30% 36% at 93% 20%, #fb1dfd 0%, rgba(251, 29, 253, 0) 100%),
    radial-gradient(14% 18% at 100% 60%, #4d5efb 0%, rgba(77, 94, 251, 0) 100%),
    radial-gradient(16% 22% at 60% 100%, #9a2dfc 0%, rgba(154, 45, 252, 0) 100%),
    radial-gradient(14% 24% at 40% 50%, #8f3cfc 0%, rgba(143, 60, 252, 0) 100%),
    radial-gradient(22% 26% at 22% 40%, #01f2fd 0%, rgba(1, 242, 253, 0) 100%),
    radial-gradient(26% 90% at 0% 60%, #03e6fe 0%, #10cbfd 45%, rgba(16, 203, 253, 0) 100%),
    radial-gradient(30% 45% at 4% 96%, #02f6fe 0%, rgba(2, 246, 254, 0) 100%),
    radial-gradient(20% 32% at 34% 80%, #3a6efb 0%, rgba(58, 110, 251, 0) 100%),
    #4f62fb;
}
.orb-wl-cyan { left: -12%; top: 62%; width: 520px; height: 520px; background: radial-gradient(circle at 45% 30%, rgba(170, 245, 255, 0.24) 0%, rgba(130, 232, 255, 0.16) 70%, rgba(190, 250, 255, 0.24) 100%); filter: blur(1px); animation: orb 18s ease-in-out infinite; }
.orb-wl-pink { left: 80%; top: 54%; width: 640px; height: 640px; background: radial-gradient(circle at 40% 40%, rgba(252, 34, 252, 0.85) 0%, rgba(250, 40, 252, 0.8) 80%, rgba(253, 60, 250, 0.85) 100%); filter: blur(1.5px); animation: orb 20s ease-in-out infinite; }
.fade-in { position: absolute; left: 0; right: 0; top: 0; height: 280px; background: linear-gradient(180deg, var(--bg) 0%, rgba(10, 11, 36, 0.6) 50%, rgba(10, 11, 36, 0) 100%); }
.waitlist-shade { position: absolute; inset: 0; background: radial-gradient(34% 40% at 50% 62%, rgba(22, 16, 96, 0.32) 0%, rgba(22, 16, 96, 0) 100%); }
.waitlist-inner { position: relative; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.waitlist-inner img { width: 96px; filter: drop-shadow(0 16px 24px rgba(30, 10, 90, 0.35)); }
.waitlist h2 { font-weight: 600; font-size: clamp(40px, 5.6vw, 70px); line-height: 1; letter-spacing: -0.04em; text-shadow: 0 2px 24px rgba(20, 10, 80, 0.3); }
.waitlist .lead { max-width: 480px; }
.waitlist-form { width: 100%; max-width: 520px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.waitlist-form input[type="email"] { flex: 1 1 240px; min-width: 0; padding: 17px 22px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(10, 11, 36, 0.4); color: #fff; font: 16px var(--body); backdrop-filter: blur(10px); }
.waitlist-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.78); opacity: 1; }
.waitlist-form input[type="email"]:focus { outline: 2px solid #fff; outline-offset: 2px; }
.waitlist-form .btn { font-size: 16px; padding: 17px 28px; }
.waitlist-form .btn[disabled] { opacity: 0.7; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { min-height: 1.5em; font-size: 15px; font-weight: 600; }
.form-status.is-error { color: #ffe4e8; }
.consent { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.88); }
.consent a { color: #fff; font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--faint); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { text-decoration: none; color: #d6d8f5; }

/* ---------- legal pages ---------- */
.legal-page .nav { position: relative; top: 0; }
.legal-page .site-header { position: sticky; height: auto; padding-top: 20px; }
.btn-small { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; }
.btn-small:hover { color: var(--ink); }
.legal { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); text-shadow: none; }
.legal .updated { margin-top: 14px; font-size: 14px; color: var(--faint); }
.legal .summary { margin-top: 32px; padding: 22px 24px; border-radius: 22px; font-size: 16px; line-height: 1.65; color: #e3e5ff; }
.legal .summary ul { margin: 10px 0 0; padding-left: 20px; }
.legal h2 { margin-top: 48px; font-size: 28px; letter-spacing: -0.02em; }
.legal h3 { margin-top: 24px; font-family: var(--body); font-size: 17px; font-weight: 700; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--muted); }
.legal p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal strong { color: #fff; }
.legal a { color: var(--accent); }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(110, 190, 255, 0.16); color: var(--muted); line-height: 1.55; }
.legal th { color: #fff; font-weight: 700; }
.legal .table-wrap { overflow-x: auto; }

/* ---------- animations ---------- */
@keyframes travel { from { left: 104%; } to { left: -14%; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes wobble { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-8px) rotate(5deg); } }
@keyframes orb { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(14px, -10px) scale(1.03); } }
@keyframes glow { 0%, 100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fall { from { top: -200px; } to { top: 100%; } }
@keyframes sway { 0%, 100% { transform: translateX(-22px) rotate(-12deg); } 50% { transform: translateX(22px) rotate(12deg); } }
@keyframes flip { 0%, 100% { transform: rotateX(0deg) rotateY(0deg); } 25% { transform: rotateX(50deg) rotateY(-20deg); } 50% { transform: rotateX(0deg) rotateY(-40deg); } 75% { transform: rotateX(-45deg) rotateY(15deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  html { scroll-behavior: auto; }
  .money-rain { display: none; }
}

/* ---------- calendar: switch to the phone view ---------- */
@media (max-width: 900px) {
  .month-grid, .cal-legend { display: none; }
  .mini-cal { display: flex; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .site-header { padding: 0 16px; }
  .nav { top: 14px; padding: 8px 8px 8px 14px; border-radius: 18px; }
  .brand img { width: 28px; height: 28px; }
  .brand span { font-size: 19px; }
  .nav-links { display: none; }
  .btn-login { height: 36px; padding: 0 6px 0 12px; border-radius: 11px; font-size: 14px; gap: 6px; }
  .soon-tag { padding: 3px 5px; border-radius: 5px; font-size: 8.5px; }

  .hero { min-height: 0; }
  .hero-sky {
    background:
      radial-gradient(42% 20% at 50% 78%, #2f98fe 0%, rgba(47, 152, 254, 0) 100%),
      radial-gradient(62% 26% at 100% 2%, #ea18fc 0%, rgba(234, 24, 252, 0) 100%),
      radial-gradient(58% 22% at 100% 100%, #fb1dfd 0%, rgba(251, 29, 253, 0) 100%),
      radial-gradient(40% 15% at 100% 50%, #4d5efb 0%, rgba(77, 94, 251, 0) 100%),
      radial-gradient(40% 14% at 64% 0%, #9a2dfc 0%, rgba(154, 45, 252, 0) 100%),
      radial-gradient(46% 15% at 34% 54%, #8f3cfc 0%, rgba(143, 60, 252, 0) 100%),
      radial-gradient(44% 13% at 42% 68%, #a531fc 0%, rgba(165, 49, 252, 0) 100%),
      radial-gradient(58% 18% at 8% 100%, #01f2fd 0%, rgba(1, 242, 253, 0) 100%),
      radial-gradient(50% 62% at 0% 42%, #03e6fe 0%, #10cbfd 45%, rgba(16, 203, 253, 0) 100%),
      radial-gradient(70% 24% at 0% 6%, #02f6fe 0%, rgba(2, 246, 254, 0) 100%),
      radial-gradient(52% 20% at 42% 24%, #3a6efb 0%, rgba(58, 110, 251, 0) 100%),
      #4f62fb;
  }
  .orb-cyan { left: -32%; top: 72%; width: 270px; height: 270px; }
  .orb-top { left: 58%; top: -150px; width: 380px; height: 380px; }
  .orb-bottom { left: 72%; top: 80%; width: 300px; height: 300px; }
  .hero-shade { background: radial-gradient(80% 34% at 40% 31%, rgba(22, 16, 96, 0.3) 0%, rgba(22, 16, 96, 0) 100%); }
  .fade-out { height: 80px; }
  /* compact hero so Penny shows above the fold on phones */
  .hero-inner { padding-top: 94px; padding-bottom: 32px; gap: 6px; }
  .hero-copy { gap: 16px; }
  .eyebrow-hero { font-size: 11px; gap: 8px; letter-spacing: 0.12em; }
  .eyebrow-hero .ff-icon { width: 16px; height: 16px; }
  h1 { font-size: 42px; }
  .lead { font-size: 16px; line-height: 1.55; }
  .hero-ctas { flex-direction: column; gap: 10px; }
  .hero-ctas .btn { width: 100%; padding: 15px 24px; }
  .hero-ctas .btn-outline { display: none; }
  .hero-penny { flex: 1 1 100%; }
  .hero-penny img { width: 250px; }
  .penny-ground { margin-top: -34px; width: 250px; height: 34px; }

  .calendar-section { padding: 36px 0 72px; }
  h2 { font-size: 34px; }
  .lead-muted { font-size: 16px; }
  .eyebrow { font-size: 12px; }
  .cal-intro { gap: 20px; }
  .heads-up { flex: 1 1 100%; justify-content: flex-start; }
  .heads-up img { order: -1; width: 128px; transform: none; }
  .bubble { max-width: none; padding: 14px 16px; border-radius: 18px 18px 18px 6px; font-size: 14px; line-height: 1.45; }
  .cal-card { padding: 16px; border-radius: 26px; gap: 14px; }
  .cal-month { gap: 2px; margin-left: -6px; }
  .cal-month p { min-width: 0; font-size: 18px; }
  .cal-projection-label { font-size: 11px; }
  .amount-lg { font-size: 24px; }

  .payday-section { padding: 0 0 72px; }
  .payday-box { min-height: 0; border-radius: 26px; }
  .payday-shade { background: linear-gradient(180deg, rgba(18, 19, 56, 0.75) 0%, rgba(18, 19, 56, 0.35) 34%, rgba(18, 19, 56, 0.1) 50%, rgba(18, 19, 56, 0.7) 66%, rgba(18, 19, 56, 0.85) 100%); }
  .payday-layout { padding: 26px 18px 20px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "penny" "card"; gap: 8px; }
  .payday-copy { gap: 14px; }
  .payday-penny img { width: 270px; }
  .recurring-card { padding: 16px; border-radius: 20px; gap: 12px; }
  .rec-row { gap: 12px; }
  .rec-icon { width: 38px; height: 38px; border-radius: 12px; }
  .rec-when { font-size: 13px; }
  .amount-md { font-size: 20px; }
  .amount-tag { font-size: 10px; margin-right: 5px; }
  .next-label { font-size: 11px; margin-bottom: 10px; }
  .timeline > div { font-size: 12px; gap: 8px; }
  .tick { width: 10px; height: 10px; box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2); }
  .timeline-line { left: 5px; top: 4px; }

  .features-section { padding: 0 0 24px; }
  .features { flex-direction: column; gap: 12px; }
  .feature { flex: none; padding: 22px; border-radius: 24px; flex-direction: row; align-items: flex-start; gap: 16px; }
  .feature div { gap: 6px; }
  .feature-icon { width: 44px; height: 44px; border-radius: 14px; }
  .feature h3 { font-size: 20px; }
  .feature p { font-size: 15px; line-height: 1.6; }

  .waitlist { padding: 190px 20px 90px; }
  .waitlist-sky {
    background:
      radial-gradient(62% 26% at 100% 96%, #ea18fc 0%, rgba(234, 24, 252, 0) 100%),
      radial-gradient(58% 22% at 100% 30%, #fb1dfd 0%, rgba(251, 29, 253, 0) 100%),
      radial-gradient(46% 15% at 34% 60%, #8f3cfc 0%, rgba(143, 60, 252, 0) 100%),
      radial-gradient(50% 62% at 0% 62%, #03e6fe 0%, #10cbfd 45%, rgba(16, 203, 253, 0) 100%),
      radial-gradient(70% 24% at 0% 96%, #02f6fe 0%, rgba(2, 246, 254, 0) 100%),
      radial-gradient(52% 20% at 42% 84%, #3a6efb 0%, rgba(58, 110, 251, 0) 100%),
      #4f62fb;
  }
  .orb-wl-cyan { display: none; }
  .orb-wl-pink { left: 70%; top: 70%; width: 300px; height: 300px; }
  .fade-in { height: 200px; }
  .waitlist-shade { background: radial-gradient(80% 40% at 50% 60%, rgba(22, 16, 96, 0.3) 0%, rgba(22, 16, 96, 0) 100%); }
  .waitlist-inner { gap: 16px; }
  .waitlist-inner img { width: 80px; }
  .waitlist h2 { font-size: 40px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form input[type="email"] { flex: none; padding: 16px 20px; }
  .waitlist-form .btn { width: 100%; padding: 16px 24px; }

  .site-footer { padding: 28px 0 36px; }
  .footer-inner { flex-direction: column-reverse; align-items: flex-start; gap: 16px; }
  .footer-links { gap: 18px; }
}
