/* MoneyLonger web. Same language as the app (App/Theme.swift): Jost + Inter, eyebrow labels,
   pill buttons, purple / pink / orange. Dark glowing sections echo the onboarding screens,
   colour sections carry the brand, white sections give the eye a rest. */

@font-face { font-family: "Jost"; src: url("/fonts/Jost-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/Jost-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --purple: #7c3aed;
  --pink: #ec4899;
  --orange: #f97316;
  --ink: #120a24;
  --night: #0b0614;
  --muted: #5f5b70;
  --line: #ebe8f3;
  --lilac: #f5f1ff;
  --gradient: linear-gradient(135deg, var(--purple), var(--pink) 58%, var(--orange));
  --mesh:
    radial-gradient(120% 140% at 100% 100%, color-mix(in srgb, var(--pink) 65%, var(--orange)) 0%, transparent 45%),
    radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--purple) 70%, var(--pink)) 0%, transparent 60%),
    var(--purple);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  --fg: var(--ink); --sub: var(--muted); --card: #fff; --edge: var(--line);
  margin: 0; overflow-x: clip;
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, sans-serif;
  color: var(--fg); background: var(--night);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Jost", system-ui, sans-serif; font-weight: 500; line-height: 1.04; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* ---------- Surfaces ---------- */
.s-night { --fg: #fff; --sub: rgba(255,255,255,.66); --card: rgba(255,255,255,.06); --edge: rgba(255,255,255,.1); background: var(--night); color: var(--fg); }
.s-mesh  { --fg: #fff; --sub: rgba(255,255,255,.84); --card: rgba(255,255,255,.12); --edge: rgba(255,255,255,.22); background: var(--mesh); color: var(--fg); }
.s-grad  { --fg: #fff; --sub: rgba(255,255,255,.88); background: var(--gradient); color: var(--fg); }
.s-white { background: #fff; color: var(--fg); }
.s-lilac { background: var(--lilac); color: var(--fg); }

/* Glows like GlowBackdrop / the onboarding screens */
.relative { position: relative; isolation: isolate; }
.relative > .wrap { position: relative; z-index: 1; }
.glows { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.glows i { position: absolute; border-radius: 50%; filter: blur(110px); }
.glows .g1 { width: 620px; height: 620px; left: -160px; top: -120px; background: var(--purple); opacity: .5; }
.glows .g2 { width: 520px; height: 520px; right: -120px; top: 60px; background: var(--pink); opacity: .32; }
.glows .g3 { width: 560px; height: 560px; left: 35%; bottom: -320px; background: var(--orange); opacity: .26; }

/* ---------- Type bits ---------- */
.eyebrow { font: 600 11.5px/1 "Inter", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.s-night .eyebrow, .s-mesh .eyebrow, .s-grad .eyebrow { color: var(--sub); }
.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.s-night .gradient-text { background: linear-gradient(100deg, #b57bff, var(--pink) 45%, #ffa25c); -webkit-background-clip: text; background-clip: text; }
.lede { font-size: 19px; color: var(--sub); }

/* ---------- Pills ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 "Inter", sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.pill:active { transform: scale(.98); }
.pill.solid { background: var(--purple); color: #fff; box-shadow: 0 10px 30px -10px rgba(124,58,237,.8); }
.pill.solid:hover { background: #6d28d9; }
.pill.white { background: #fff; color: var(--purple); }
.pill.ghost { background: transparent; color: var(--fg); border-color: var(--edge); }
.pill.ghost:hover { border-color: currentColor; }
.pill.small { height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 20; color: #fff; transition: background .25s, border-color .25s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(11, 6, 20, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: rgba(255,255,255,.08); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 36px; height: auto; }
.brand span { font: 500 22px/1 "Jost", sans-serif; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.pill) { font-size: 14.5px; color: rgba(255,255,255,.72); text-decoration: none; }
.nav-links a:not(.pill):hover { color: #fff; }

/* ---------- Phone frame around real screenshots ---------- */
.phone {
  position: relative; width: 300px; aspect-ratio: 1206 / 2622; padding: 10px;
  border-radius: 54px; background: linear-gradient(145deg, #2c2833, #0d0b12 40%, #1c1a22);
  box-shadow: 0 0 0 1.5px #3a3642 inset, 0 60px 120px -40px rgba(0,0,0,.75), 0 30px 60px -30px rgba(124,58,237,.5);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 44px; }
.phone::after { content: ""; position: absolute; top: 21px; left: 50%; translate: -50% 0; width: 30%; height: 3.4%; border-radius: 30px; background: #000; }
.phone.sm { width: 250px; border-radius: 46px; padding: 8px; }
.phone.sm img { border-radius: 38px; }
.phone.sm::after { top: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 110px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: clamp(48px, 7vw, 92px); margin: 22px 0; }
.hero .lede { max-width: 31ch; }
.badge { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font: 500 13px/1 "Inter", sans-serif; color: rgba(255,255,255,.85); }
.badge b { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.hero-phones { position: relative; height: 650px; }
.hero-phones .phone { position: absolute; }
.hero-phones .back { width: 268px; right: 4%; top: 46px; rotate: 8deg; }
.hero-phones .front { left: 4%; top: 0; rotate: -4deg; z-index: 2; }
.float { animation: float 7s ease-in-out infinite; }
.float.slow { animation-duration: 9s; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-14px); } }
.chip-float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 20px;
  background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 24px 50px -20px rgba(0,0,0,.7);
  font: 500 14px/1.3 "Inter", sans-serif;
}
.chip-float small { display: block; color: var(--orange); font-weight: 600; font-size: 12px; }
.chip-float .icon { width: 38px; height: 38px; border-radius: 12px; box-shadow: none; }
.chip-float .icon svg { width: 19px; height: 19px; }
.chip-a { left: -2%; bottom: 110px; }
.chip-b { right: 2%; top: 0; }

/* Waitlist form */
.waitlist { display: flex; gap: 8px; margin-top: 34px; max-width: 460px; }
.waitlist input {
  flex: 1; min-width: 0; height: 50px; padding: 0 22px; border-radius: 999px; font: 400 15px "Inter", sans-serif;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); color: #fff;
}
.waitlist input::placeholder { color: rgba(255,255,255,.55); }
.waitlist input:focus { outline: none; border-color: #b57bff; box-shadow: 0 0 0 4px rgba(124,58,237,.3); }
.s-grad .waitlist input { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.45); }
.s-grad .waitlist input::placeholder { color: rgba(255,255,255,.85); }
.form-note { font-size: 13.5px; color: var(--sub); margin-top: 12px; min-height: 1.6em; }
.form-note.ok { color: #86efac; }
.s-grad .form-note.ok { color: #fff; font-weight: 600; }
.form-note.err { color: #fecaca; }

/* ---------- Ticker ---------- */
.ticker { padding: 26px 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.ticker .track { display: flex; gap: 14px; width: max-content; animation: ticker 45s linear infinite; }
.ticker span { font: 500 17px/1 "Jost", sans-serif; color: rgba(255,255,255,.6); padding: 11px 20px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
section { padding: 120px 0; }
.head { max-width: 680px; margin-bottom: 64px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(38px, 5vw, 60px); margin-top: 16px; }
.head p { color: var(--sub); font-size: 19px; margin-top: 18px; }

/* Steps: the three onboarding screens */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.step .phone { margin-bottom: 32px; }
.step:nth-child(2) { translate: 0 40px; }
.step h3 { font-size: 26px; margin: 12px 0 10px; }
.step p { color: var(--muted); max-width: 30ch; }

/* Split feature (screenshot + copy) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split .visual { display: flex; justify-content: center; }
.split h2 { font-size: clamp(36px, 4.6vw, 56px); margin: 16px 0 18px; }
.ticks { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Gradient icon tiles, like the onboarding icons */
.icon { width: 56px; height: 56px; border-radius: 17px; background: var(--gradient); display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(236,72,153,.6); }
.icon svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile { border-radius: 26px; padding: 30px; background: var(--card); border: 1px solid var(--edge); transition: transform .25s ease, box-shadow .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgba(124,58,237,.45); }
.tile h3 { font-size: 23px; margin: 22px 0 8px; }
.tile p { color: var(--sub); font-size: 15.5px; }

/* Big numbers band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats b { display: block; font: 500 clamp(56px, 7vw, 92px)/1 "Jost", sans-serif; }
.stats span { display: block; margin-top: 12px; color: var(--sub); font-size: 16px; }

/* Privacy */
.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.privacy ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.privacy li { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--edge); }
.privacy li .icon { width: 44px; height: 44px; border-radius: 14px; flex: none; }
.privacy li .icon svg { width: 20px; height: 20px; }
.privacy li b { display: block; font-weight: 600; }
.privacy li span { color: var(--sub); font-size: 15px; }

/* Final CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(42px, 6vw, 76px); max-width: 14ch; margin: 18px auto 0; }
.cta p { margin: 18px auto 0; max-width: 40ch; color: var(--sub); font-size: 18px; }
.cta .waitlist { margin: 34px auto 0; }

/* Footer */
footer { padding: 56px 0 64px; background: var(--night); color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 26px; }
footer a, footer small { color: rgba(255,255,255,.6); font-size: 14px; text-decoration: none; }
footer a:hover { color: #fff; }

/* ---------- Text pages (privacy, support) ---------- */
.doc-head { padding: 160px 0 72px; }
.doc-head .wrap { max-width: 780px; }
.doc-head h1 { font-size: clamp(44px, 6vw, 68px); margin: 16px 0 14px; }
.doc-head .updated { color: var(--sub); }
.doc-head .updated a { color: #fff; }
.doc404 { min-height: 80vh; display: flex; align-items: center; }
.doc { background: #fff; padding: 72px 0 110px; }
.doc .wrap { max-width: 780px; }
.doc h2 { font-size: 28px; margin: 48px 0 12px; }
.doc p, .doc li { color: #34303f; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; }
.doc a { color: var(--purple); }
.doc .callout { margin-top: 40px; padding: 26px 28px; border-radius: 24px; background: var(--mesh); color: #fff; }
.doc .callout .eyebrow { color: rgba(255,255,255,.8); }
.doc .callout p { color: #fff; }
.doc .callout a { color: #fff; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 500 20px/1.3 "Jost", sans-serif; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--purple); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .ticker .track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .hero .wrap, .split, .privacy { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(44px, 12vw, 64px); }
  .hero-phones { height: 540px; max-width: 400px; margin: 10px auto 0; width: 100%; }
  .hero-phones .front { width: 240px; left: 0; }
  .hero-phones .back { width: 210px; right: 0; }
  .chip-a { left: 0; bottom: 40px; } .chip-b { right: 0; top: -20px; }
  .steps, .grid, .stats { grid-template-columns: 1fr; }
  .steps { gap: 64px; } .step:nth-child(2) { translate: none; }
  .split .visual { order: -1; }
  .nav-links a:not(.pill) { display: none; }
  section { padding: 88px 0; }
  .waitlist .pill { padding: 0 18px; }
}
