/* =============================================================
   O'Budget website: shared styles and the homepage sections
   (inner pages add assets/css/pages.css)
   Layout, sections and motion follow the Dayconn Framer template;
   colours, type and content are O'Budget's own (tokens.css).
   Breakpoints: desktop ≥1200 · tablet 810–1199 · phone ≤809
   ============================================================= */

@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --h1: 80px; --h2: 56px; --h2-xl: 72px; --statement: 52px;
  --page-x: 80px;      /* content gutter */
  --inset: 16px;       /* gap between full-bleed panels and the viewport */
  --panel-r: 32px;     /* big panels: hero, slides, how it works, CTA */
  --max: 1280px;
  --lilac: #DED5FF;
  --on-stage-2: rgb(255 255 255 / 0.76);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --grad-brand: linear-gradient(135deg, #DED5FF 0%, #9E7BFF 45%, #7340FE 100%);
}
@media (max-width: 1199.98px) { :root { --h1: 64px; --h2: 44px; --h2-xl: 56px; --statement: 42px; --page-x: 40px; } }
@media (max-width: 809.98px)  { :root { --h1: clamp(30px, calc((100vw - 64px) / 8.4), 44px); --h2: 32px; --h2-xl: 38px; --statement: 30px; --page-x: 20px; --inset: 10px; --panel-r: 24px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* No scroll anchoring: on reload Chrome would restore to an element in the still-animating hero
   and land lower than where you left off, so it restores the exact position instead */
html { background: var(--ob-bg); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overflow-anchor: none; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--ob-bg); color: var(--ob-text);
  font-family: var(--ob-font); font-weight: 500; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
section[id] { scroll-margin-top: 88px; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 8px; }
[tabindex="-1"]:focus { outline: none; }
/* Skip link: first stop for keyboard users, out of sight until focused */
.skip {
  position: fixed; left: 16px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: var(--ob-radius-pill);
  background: var(--ob-purple-fill); color: var(--ob-on-purple); font: 700 15px/1 var(--ob-font);
  transform: translateY(calc(-100% - 24px)); transition: transform .3s var(--ob-ease);
}
.skip:focus { transform: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 24px; height: 24px; flex: none; }

/* ---------- Type ---------- */
.h2 {
  font: 800 var(--h2)/1.08 var(--ob-font); letter-spacing: var(--ob-tracking-display);
  color: var(--ob-text); text-wrap: balance;
}
.h2--xl { font-size: var(--h2-xl); }
.lead { font: 500 18px/1.55 var(--ob-font); color: var(--ob-text-secondary); max-width: 520px; text-wrap: pretty; }
.lead--center { margin: 0 auto; text-align: center; font-size: 16px; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px; border-radius: var(--ob-radius-pill);
  background: var(--ob-purple-fill); color: var(--ob-on-purple);
  font: 700 16px/1 var(--ob-font); white-space: nowrap;
  box-shadow: var(--ob-shadow-cta);
  transition: transform .45s var(--spring), background var(--ob-dur-fast) var(--ob-ease);
}
.btn:hover { transform: translateY(-2px); background: var(--ob-purple-pressed); }
.btn:active { transform: scale(.97); }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn-outline {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: var(--ob-radius-pill); border: 1px solid rgb(255 255 255 / .22);
  font: 600 14px/1 var(--ob-font); color: var(--ob-text);
  transition: background var(--ob-dur) var(--ob-ease), border-color var(--ob-dur) var(--ob-ease);
}
.btn-outline:hover { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .4); }
/* Small tinted pill inside a stage slide (the app's "+ Add" pill, on a stage) */
.btn-pill {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px;
  border-radius: var(--ob-radius-pill); background: #FFFFFF; color: var(--stage, var(--ob-stage-purple));
  font: 700 14px/1 var(--ob-font);
  transition: transform .45s var(--spring);
}
.btn-pill:hover { transform: translateY(-2px); }
.store-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 28px; border-radius: var(--ob-radius-pill); background: #FFFFFF;
  box-shadow: 0 10px 30px rgb(0 0 0 / .25);
  transition: transform .45s var(--spring);
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn img { height: 36px; width: auto; }

/* ---------- Gradient icons (Dayconn's gradient glyphs, in O'Budget purple) ---------- */
.gicon { display: inline-grid; place-items: center; color: var(--ob-purple); }
.gicon .ico { width: 56px; height: 56px; }
.gicon .ico path { fill: url(#ob-grad); }
.gicon--lg { width: 96px; height: 96px; border-radius: 22px; background: var(--grad-brand); }
.gicon--lg .ico { width: 56px; height: 56px; }
.gicon--lg .ico path { fill: var(--ob-stage-purple-deep); }
.gicon--quote .ico { width: 40px; height: 40px; }

/* ---------- Phone mockup (same construction as the current site) ---------- */
.mockup { position: relative; aspect-ratio: 0.5; container-type: inline-size; margin: 0; }
.mockup__screen {
  position: absolute; top: 3.7cqw; left: 50%; transform: translateX(-50%);
  width: 89%; aspect-ratio: 0.46; border-radius: 11.5cqw;
  background: #F8F9FA center top / cover no-repeat; overflow: hidden;
}
.mockup__frame {
  position: absolute; top: 0; left: 1%; right: 1%; aspect-ratio: 0.49;
  background: url("../img/iphone-frame.webp") center / 100% 100% no-repeat;
  pointer-events: none;
}

/* =============================================================
   Scroll progress, compact bar
   ============================================================= */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 80; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad-brand); transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); }

.bar {
  position: fixed; top: 14px; left: 50%; z-index: 70; width: min(720px, calc(100% - 24px));
  transform: translate(-50%, calc(-100% - 24px)); visibility: hidden;
  transition: transform .7s var(--spring), visibility 0s linear .7s;
}
.bar.is-shown { transform: translate(-50%, 0); visibility: visible; transition: transform .7s var(--spring), visibility 0s; }
.bar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px; padding: 0 10px 0 22px; border-radius: var(--ob-radius-pill);
  background: rgb(28 31 36 / .72); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 12px 40px rgb(0 0 0 / .35), inset 0 0 0 1px rgb(255 255 255 / .06);
}
.bar__logo img { height: 28px; width: auto; }
.bar__links { display: flex; gap: 4px; }
.bar__links a { padding: 9px 14px; border-radius: var(--ob-radius-pill); font: 600 14px/1 var(--ob-font); color: var(--ob-text-secondary); transition: color var(--ob-dur), background var(--ob-dur); }
.bar__links a:hover { color: var(--ob-text); }
.bar__links a.is-active { color: var(--ob-text); background: rgb(255 255 255 / .07); }
@media (max-width: 809.98px) { .bar__links { display: none; } .bar__inner { height: 56px; } }


/* =============================================================
   Hero: rounded inset card, purple horizon, phone rising in 3D
   ============================================================= */
.hero { padding: var(--inset) var(--inset) 0; }
.hero__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--panel-r); transform: translateZ(0); /* own layer, so Safari clips the tilting phone to the corners */
  background: radial-gradient(120% 70% at 50% 0%, #181A1F 0%, #111317 60%, #0F1114 100%);
  min-height: 1040px;
}
.hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow-in { position: absolute; inset: 0; }
/* Horizon: stacked blurred ellipses, so the light follows the curve (lilac rim, purple band, dark core) */
.arc { position: absolute; left: 50%; top: 600px; width: 2400px; height: 1300px; margin-left: -1200px; }
.arc i { position: absolute; inset: 0; border-radius: 50%; }
.arc i:nth-child(1) { background: #DED5FF; filter: blur(14px); }
.arc i:nth-child(2) { top: 14px; background: #A98BFF; filter: blur(22px); }
.arc i:nth-child(3) { top: 46px; background: #7340FE; filter: blur(40px); }
.arc i:nth-child(4) { top: 120px; background: #3A1A8A; filter: blur(60px); }
.arc i:nth-child(5) { top: 230px; background: #1C0A45; filter: blur(80px); }
.arc i:nth-child(6) { top: 380px; background: #0F1114; filter: blur(90px); }

.topnav {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px 48px;
}
.topnav__links { display: flex; gap: 28px; }
.topnav__links a, .menu a:not(.btn) { font: 600 15px/1 var(--ob-font); color: var(--ob-text-muted); transition: color var(--ob-dur); }
.topnav__links a:hover { color: var(--ob-text); }
.topnav__logo img { height: 34px; width: auto; }
.topnav__end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .06); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: var(--ob-text); transition: transform .35s var(--spring), top .35s var(--spring); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.topnav.is-open .burger span:first-child { top: 21px; transform: rotate(45deg); }
.topnav.is-open .burger span:last-child { top: 21px; transform: rotate(-45deg); }
.menu {
  position: absolute; top: calc(100% - 6px); left: 12px; right: 12px; display: none;
  flex-direction: column; gap: 4px; padding: 10px; border-radius: var(--ob-radius-card);
  background: var(--ob-surface-raised); box-shadow: 0 20px 50px rgb(0 0 0 / .45);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: 50% 0;
  transition: opacity .25s var(--ob-ease), transform .35s var(--spring);
  pointer-events: none;
}
.menu a:not(.btn) { padding: 16px 14px; font-size: 17px; color: var(--ob-text); border-radius: 12px; }
.menu a:not(.btn):hover { background: rgb(255 255 255 / .05); }
.menu .btn { margin-top: 6px; }
.menu { visibility: hidden; }
.topnav.is-open .menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }

.hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 76px var(--page-x) 0; text-align: center; }
.hero__title { font: 800 var(--h1)/1.02 var(--ob-font); letter-spacing: var(--ob-tracking-display); color: var(--ob-text); }
.hero__sub { font: 500 18px/1.55 var(--ob-font); color: var(--ob-text-muted); max-width: 470px; text-wrap: balance; margin-top: -6px; }

.hero__stage { position: relative; z-index: 1; display: flex; justify-content: center; margin-top: 88px; height: 540px; }
.hero__phone { position: relative; width: 370px; }
/* Purple light behind the phone (a filter on the phone itself upsets Safari's 3D rendering) */
.hero__phone::before {
  content: ""; position: absolute; z-index: -1; left: -30%; right: -30%; top: -12%; height: 70%;
  background: radial-gradient(closest-side, rgb(115 64 254 / .45), rgb(115 64 254 / 0));
  pointer-events: none;
}
/* Scroll tilt, desktop only as on Dayconn: the phone tips back and grows (--tilt 0 → 1, set by home.js).
   Phones and tablets keep a flat phone, which also avoids mobile Safari dropping 3D layers inside the rounded card. */
@media (min-width: 1200px) and (prefers-reduced-motion: no-preference) {
  .hero__phone {
    transform-origin: 50% 50%; will-change: transform;
    transform: perspective(1157px) scale(calc(1 + .3 * var(--tilt, 0))) rotateX(calc(20deg * var(--tilt, 0)));
  }
}

@media (max-width: 1199.98px) {
  .hero__card { min-height: 900px; }
  .topnav { padding: 22px 32px; }
  .hero__copy { padding-top: 64px; }
  .hero__stage { margin-top: 72px; height: 460px; }
  .hero__phone { width: 320px; }
  .arc { top: 530px; width: 1900px; height: 1100px; margin-left: -950px; }
}
@media (max-width: 809.98px) {
  .hero__card { min-height: 0; }
  .topnav { grid-template-columns: 1fr auto; padding: 16px 16px 16px 22px; }
  .topnav__links, .topnav__end .btn-outline { display: none; }
  .topnav__logo { order: -1; }
  .topnav__logo img { height: 28px; }
  .burger, .menu { display: flex; }
  .burger { display: block; }
  .hero__copy { padding-top: 64px; gap: 22px; }
  .hero__sub { font-size: 16px; max-width: 300px; }
  .hero__stage { margin-top: 56px; height: 330px; }
  .hero__phone { width: 250px; }
  .arc { top: 400px; width: 1000px; height: 640px; margin-left: -500px; }
  .arc i:nth-child(4) { top: 80px; } .arc i:nth-child(5) { top: 150px; } .arc i:nth-child(6) { top: 240px; }
}

/* =============================================================
   Statement: scroll-scrubbed words, key words in lilac
   ============================================================= */
.statement { max-width: 920px; margin: 0 auto; padding: 200px var(--page-x) 180px; }
.statement__text { font: 700 var(--statement)/1.2 var(--ob-font); letter-spacing: var(--ob-tracking-display); text-align: center; text-wrap: balance; }
.statement__text em { font-style: normal; color: var(--lilac); }
.js .statement__text .sw { color: rgb(241 242 244 / .38); transition: color .5s var(--ob-ease); }
.js .statement__text .sw.on { color: var(--ob-text); }
.js .statement__text .sw.hl { color: rgb(222 213 255 / .42); }
.js .statement__text .sw.hl.on { color: var(--lilac); }
@media (max-width: 809.98px) { .statement { padding: 120px var(--page-x) 110px; } }

/* =============================================================
   Marquees (category strip, app moments)
   ============================================================= */
.marquee {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--dur, 40s) linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee--cards:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

.chips { display: flex; flex-direction: column; align-items: center; gap: 36px; padding: 0 0 140px; }
.chips__label { font: 600 18px/1.4 var(--ob-font); color: var(--ob-text); text-align: center; text-wrap: balance; padding: 0 var(--page-x); }
.chips .marquee { max-width: 900px; }
/* Networks and banks: white logos; the ones not read yet are dimmed and carry a "Soon" pill */
/* Networks and banks: each logo in the same-height box, with its status tag underneath */
.net { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; margin-right: 56px; white-space: nowrap; }
.net img { height: var(--h, 32px); width: auto; max-width: none; margin-block: calc((44px - var(--h, 32px)) / 2); }
.net--soon img { opacity: .42; }
.net__tag {
  padding: 5px 9px; border-radius: var(--ob-radius-pill); background: rgb(255 255 255 / .06);
  font: 700 11px/1 var(--ob-font); letter-spacing: .08em; text-transform: uppercase; color: var(--ob-text-secondary);
}
.net__tag--live { background: var(--ob-purple-16); color: var(--lilac); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 809.98px) { .chips { padding-bottom: 96px; gap: 28px; } .chips__label { max-width: 300px; } .net { margin-right: 40px; gap: 10px; } .net img { height: calc(var(--h, 32px) * .82); margin-block: calc((36px - var(--h, 32px) * .82) / 2); } }

/* Pause control for everything that moves on its own (WCAG 2.2.2) */
.motion-toggle {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 auto; padding: 8px 14px 8px 10px;
  border-radius: var(--ob-radius-pill); background: rgb(255 255 255 / .06); color: var(--ob-text-secondary);
  font: 600 13px/1 var(--ob-font); transition: color var(--ob-dur), background var(--ob-dur);
}
.motion-toggle:hover { color: var(--ob-text); background: rgb(255 255 255 / .1); }
.motion-toggle__icon { position: relative; width: 14px; height: 14px; }
.motion-toggle__icon::before, .motion-toggle__icon::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 4px; border-radius: 1px; background: currentColor; }
.motion-toggle__icon::before { left: 2px; } .motion-toggle__icon::after { right: 2px; }
.motion-paused .motion-toggle__icon::before { left: 3px; width: 0; border-radius: 0; background: none; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; top: 1px; bottom: auto; }
.motion-paused .motion-toggle__icon::after { display: none; }
.chips .motion-toggle { margin-top: -8px; }
#moments .motion-toggle { display: flex; margin-top: 32px; }
.how__copy .motion-toggle { margin: 28px 0 0; }
.motion-paused .marquee__track, .motion-paused .hero__glow-in, .motion-paused .switch__dot { animation-play-state: paused; }
.motion-paused .how.is-auto .step.is-active .step__bar span { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none !important; } }

/* =============================================================
   Feature carousel: stage-colour slides, neighbours peeking in
   ============================================================= */
.carousel-wrap { overflow: hidden; padding: 0 0 160px; }
.carousel { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.carousel__viewport { width: 100%; container-type: inline-size; touch-action: pan-y; cursor: grab; outline: none; }
.carousel__viewport.is-dragging { cursor: grabbing; }
.carousel__viewport:focus-visible .slide.is-active .slide__card { outline: 2px solid var(--ob-purple); outline-offset: 4px; }
.carousel__track {
  --w: min(1040px, calc(100cqw - 2 * var(--page-x) - 120px));
  display: flex; gap: 24px; padding-left: calc((100cqw - var(--w)) / 2);
  transition: transform .8s var(--spring); will-change: transform;
}
.slide { flex: none; width: var(--w); }
.slide__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; height: 660px;
  border-radius: var(--panel-r); background: var(--stage);
  transition: opacity .6s var(--ob-ease), transform .8s var(--spring);
  user-select: none; -webkit-user-select: none;
}
.slide:not(.is-active) .slide__card { opacity: .38; transform: scale(.97); }
.slide__glow {
  position: absolute; z-index: -1; right: -30%; top: -40%; width: 110%; height: 150%; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(222 213 255 / .55), rgb(141 99 254 / .45) 35%, rgb(115 64 254 / .18) 60%, transparent 75%);
  filter: blur(10px); opacity: .9;
}
.slide__copy { display: flex; flex-direction: column; justify-content: space-between; padding: 56px; color: #FFFFFF; }
.slide__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.slide__title { font: 800 52px/1.05 var(--ob-font); letter-spacing: var(--ob-tracking-display); text-wrap: balance; }
.slide__text p { font: 500 17px/1.55 var(--ob-font); color: var(--on-stage-2); max-width: 400px; }
.slide__text .btn-pill { margin-top: 12px; }
.slide__phone { position: relative; }
.slide__phone .mockup {
  position: absolute; left: 50%; top: 96px; width: 370px; margin-left: -185px;
  transform: translateY(60px); transition: transform 1.1s var(--out);
}
.slide.is-active .slide__phone .mockup { transform: none; }
.carousel__nav { display: flex; gap: 12px; }
.round-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: #FFFFFF; color: #0E1013; transition: opacity var(--ob-dur), transform .45s var(--spring), background var(--ob-dur);
}
.round-btn .ico { width: 22px; height: 22px; }
.round-btn:hover:not(:disabled) { transform: scale(1.06); }
.round-btn:disabled { background: rgb(255 255 255 / .22); color: rgb(255 255 255 / .6); cursor: default; }

@media (max-width: 1199.98px) {
  .carousel__track { --w: calc(100cqw - 2 * var(--page-x) - 40px); gap: 16px; }
  .slide__card { height: 540px; }
  .slide__copy { padding: 40px; }
  .slide__title { font-size: 40px; }
  .gicon--lg { width: 80px; height: 80px; border-radius: 20px; }
  .gicon--lg .ico { width: 46px; height: 46px; }
  .slide__phone .mockup { width: 300px; margin-left: -150px; top: 72px; }
}
@media (max-width: 809.98px) {
  .carousel-wrap { padding-bottom: 110px; }
  .carousel__track { --w: calc(100cqw - 2 * var(--page-x)); gap: 12px; }
  .slide__card { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 640px; }
  .slide__copy { align-items: center; text-align: center; gap: 28px; padding: 36px 24px 0; justify-content: flex-start; }
  .slide__text { align-items: center; gap: 14px; }
  .slide__text .btn-pill { margin-top: 6px; }
  .slide__title { font-size: 32px; }
  .slide__text p { font-size: 15px; }
  .gicon--lg { width: 64px; height: 64px; border-radius: 16px; }
  .gicon--lg .ico { width: 38px; height: 38px; }
  .slide__phone .mockup { width: 250px; margin-left: -125px; top: 28px; }
  .slide__glow { right: -60%; top: 20%; width: 170%; height: 110%; }
}

/* =============================================================
   Sections, heads, feature grid
   ============================================================= */
.section { width: 100%; max-width: calc(var(--max) + 2 * var(--page-x)); margin: 0 auto; padding: 0 var(--page-x) 160px; }
.section--bleed { max-width: none; padding-left: 0; padding-right: 0; }
.head { display: flex; flex-direction: column; align-items: center; gap: 24px; max-width: 960px; margin: 0 auto 72px; text-align: center; padding: 0 var(--page-x); }
.section:not(.section--bleed) .head { padding: 0; }
.head .lead { text-align: center; max-width: 500px; }
#inside .h2 { max-width: 560px; }

.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fcard {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; gap: 24px; min-height: 376px; padding: 24px;
  border-radius: var(--ob-radius-card); background: var(--ob-surface);
}
.fcard::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s var(--ob-ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgb(158 123 255 / .16), transparent 65%);
}
.fcard:hover::before { opacity: 1; }
.fcard .gicon { justify-content: start; }
.fcard__title { font: 700 24px/1.15 var(--ob-font); letter-spacing: -0.01em; max-width: 220px; }
.checks { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font: 500 16px/1.35 var(--ob-font); color: var(--ob-text-muted); }
.checks .ico { width: 20px; height: 20px; color: var(--ob-purple); }
@media (max-width: 1199.98px) { .grid4 { grid-template-columns: repeat(2, 1fr); gap: 16px; } .fcard { min-height: 300px; } }
@media (max-width: 809.98px) {
  .section { padding-bottom: 110px; }
  .head { margin-bottom: 44px; gap: 18px; }
  .lead { font-size: 16px; }
  .grid4 { grid-template-columns: 1fr; gap: 12px; }
  .fcard { min-height: 0; gap: 20px; }
  .fcard .gicon .ico { width: 48px; height: 48px; }
  .checks { margin-top: 4px; }
}

/* =============================================================
   How it works: inset panel, phone left, steps right
   ============================================================= */
.how-wrap { padding: 0 var(--inset) 160px; }
.how {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 830px;
  border-radius: var(--panel-r); background: #15171B;
}
.how__glow {
  position: absolute; z-index: -1; left: -30%; top: -60%; width: 90%; height: 150%;
  background: linear-gradient(135deg, transparent 34%, rgb(42 16 101 / .95) 45%, rgb(115 64 254 / .9) 53%, rgb(169 139 255 / .75) 58%, rgb(222 213 255 / .4) 61%, rgb(115 64 254 / 0) 67%);
  filter: blur(28px);
}
.how__stage { align-self: end; display: flex; justify-content: center; height: 700px; overflow: hidden; }
.how__stage .mockup { width: 370px; margin-top: 60px; }
.shot { opacity: 0; transform: translateX(-50%) scale(1.04); transition: opacity .42s var(--ob-ease), transform .7s var(--out); }
.shot.is-on { opacity: 1; transform: translateX(-50%); }
.how__copy { display: flex; flex-direction: column; align-items: flex-start; padding: 80px 80px 80px 24px; }
.how__eyebrow { font: 700 22px/1.2 var(--ob-font); color: var(--lilac); margin-bottom: 14px; }
.how__copy .h2 { max-width: 480px; margin-bottom: 72px; }
.steps { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 440px; }
.step { position: relative; padding-bottom: 20px; }
.step__btn { display: flex; align-items: center; gap: 22px; width: 100%; text-align: left; }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%;
  background: var(--ob-surface-raised); color: var(--ob-text-secondary); font: 700 18px/1 var(--ob-font);
  transition: background .4s var(--ob-ease), color .4s var(--ob-ease), box-shadow .4s var(--ob-ease);
}
.step__title { font: 700 22px/1.25 var(--ob-font); color: var(--ob-text-secondary); transition: color .4s var(--ob-ease); }
.step__btn:hover .step__title { color: var(--ob-text-muted); }
.step.is-active .step__num { background: var(--ob-purple-fill); color: #FFFFFF; box-shadow: inset 0 3px 3px #8D63FE, 0 6px 18px rgb(115 64 254 / .45); }
.step.is-active .step__title { color: var(--ob-text); }
.step__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--spring); }
.step__panel > div { overflow: hidden; }
.step.is-active .step__panel { grid-template-rows: 1fr; }
.step__panel p { padding: 10px 0 0 62px; font: 500 16px/1.55 var(--ob-font); color: var(--ob-text-muted); opacity: 0; transform: translateY(-6px); transition: opacity .4s var(--ob-ease), transform .5s var(--out); }
.step.is-active .step__panel p { opacity: 1; transform: none; transition-delay: .12s; }
.step__bar { position: absolute; left: 62px; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: rgb(255 255 255 / .08); overflow: hidden; }
.step__bar span { display: block; height: 100%; background: var(--grad-brand); transform: scaleX(0); transform-origin: 0 50%; }
.how.is-auto .step.is-active .step__bar span { animation: fill var(--step-dur, 4.5s) linear forwards; }
.how.is-paused .step.is-active .step__bar span, .how.is-offscreen .step.is-active .step__bar span { animation-play-state: paused; }
@keyframes fill { to { transform: scaleX(1); } }

@media (max-width: 1199.98px) {
  .how { min-height: 720px; }
  .how__stage { height: 600px; }
  .how__stage .mockup { width: 300px; }
  .how__copy { padding: 56px 40px 56px 8px; }
  .how__copy .h2 { margin-bottom: 48px; }
  .step__title { font-size: 19px; }
}
@media (max-width: 809.98px) {
  .how-wrap { padding-bottom: 110px; }
  .how { grid-template-columns: 1fr; min-height: 0; }
  .how__glow { left: -70%; top: -35%; width: 200%; height: 90%; }
  .how__stage { order: -1; height: 380px; }
  .how__stage .mockup { width: 250px; margin-top: 36px; }
  .how__copy { padding: 36px 20px 40px; }
  .how__eyebrow { font-size: 18px; }
  .how__copy .h2 { margin-bottom: 36px; }
  .step__btn { gap: 16px; }
  .step__num { width: 34px; height: 34px; font-size: 16px; }
  .step__title { font-size: 18px; }
  .step__panel p, .step__bar { padding-left: 0; left: 50px; }
  .step__panel p { margin-left: 50px; font-size: 15px; }
}

/* =============================================================
   App moments: quote cards in a marquee
   ============================================================= */
#moments .head { margin-bottom: 64px; }
.moment {
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  width: 480px; min-height: 280px; margin-right: 24px; padding: 28px 28px 24px;
  border-radius: var(--ob-radius-card); background: var(--ob-surface);
}
.moment__quote { font: 600 23px/1.3 var(--ob-font); letter-spacing: -0.01em; color: var(--ob-text); text-wrap: pretty; }
.moment__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.moment__foot p { display: flex; flex-direction: column; gap: 4px; }
.moment__foot strong { font: 700 20px/1.2 var(--ob-font); }
.moment__foot span { font: 500 15px/1.3 var(--ob-font); color: var(--ob-text-secondary); }
#moments .lead--center { margin-top: 56px; padding: 0 var(--page-x); }
@media (max-width: 809.98px) {
  .moment { width: 300px; min-height: 250px; margin-right: 12px; padding: 22px; }
  .moment__quote { font-size: 19px; }
  .moment__foot strong { font-size: 17px; }
  #moments .head { margin-bottom: 44px; }
}

/* =============================================================
   FAQ
   ============================================================= */
.faq { max-width: 1040px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--ob-hairline); }
.qa.is-open { border-bottom-color: rgb(255 255 255 / .28); }
.qa__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 26px 0; text-align: left; font: 600 22px/1.3 var(--ob-font); color: var(--ob-text-secondary); transition: color .3s var(--ob-ease); }
.qa__q:hover, .qa.is-open .qa__q { color: var(--ob-text); }
.qa__icon {
  position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ob-surface-raised);
  transition: background .35s var(--ob-ease), transform .5s var(--spring);
}
.qa__icon::before {
  content: ""; position: absolute; left: 12px; top: 10px; width: 8px; height: 8px;
  border-right: 2px solid var(--ob-text); border-bottom: 2px solid var(--ob-text); transform: rotate(45deg);
}
.qa.is-open .qa__icon { background: var(--ob-purple-fill); transform: rotate(180deg); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--spring); }
.qa__a > div { overflow: hidden; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a p { padding: 0 60px 28px 0; font: 500 16px/1.6 var(--ob-font); color: var(--ob-text-muted); opacity: 0; transition: opacity .35s var(--ob-ease); }
.qa.is-open .qa__a p { opacity: 1; transition-delay: .1s; }
.faq__more { margin-top: 72px; text-align: center; font: 500 16px/1.5 var(--ob-font); color: var(--ob-text); }
.faq__more a { color: var(--ob-purple); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 809.98px) { .qa__q { font-size: 18px; padding: 20px 0; } .qa__a p { padding-right: 0; font-size: 15px; } .faq__more { margin-top: 48px; max-width: 260px; margin-inline: auto; } }

/* =============================================================
   Closing CTA: purple gradient panel, three phones fanning out
   ============================================================= */
.cta { padding: 0 var(--inset) 120px; }
.cta__card {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--panel-r);
  background:
    radial-gradient(70% 60% at 50% 115%, rgb(222 213 255 / .45), transparent 70%),
    linear-gradient(110deg, #7340FE 0%, #5A2FD6 35%, #3A1A8A 70%, #2A1065 100%);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 120px;
}
.cta__copy { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; padding: 0 var(--page-x); }
.cta__copy .h2 { color: #FFFFFF; }
.cta__sub { font: 500 18px/1.5 var(--ob-font); color: var(--on-stage-2); max-width: 420px; }
.cta__phones { position: relative; width: 100%; height: 470px; margin-top: 90px; }
.fan { position: absolute; left: 50%; top: 0; width: 360px; margin-left: -180px; transform-origin: 50% 100%; will-change: transform; }
.fan--c { z-index: 2; transform: translate(0, calc((1 - var(--p, 1)) * 180px)); }
.fan--l { transform: translate(calc(var(--p, 1) * -112%), calc(170px + (1 - var(--p, 1)) * 120px)) rotate(calc(var(--p, 1) * -6deg)); }
.fan--r { transform: translate(calc(var(--p, 1) * 112%), calc(170px + (1 - var(--p, 1)) * 120px)) rotate(calc(var(--p, 1) * 6deg)); }
.fan .mockup { filter: drop-shadow(0 -10px 40px rgb(14 16 19 / .35)); }
@media (max-width: 1199.98px) {
  .cta__card { padding-top: 96px; }
  .cta__phones { height: 400px; margin-top: 72px; }
  .fan { width: 300px; margin-left: -150px; }
}
@media (max-width: 809.98px) {
  .cta { padding-bottom: 80px; }
  .cta__card { padding-top: 72px; }
  .cta__copy { gap: 22px; }
  .cta__sub { font-size: 16px; max-width: 280px; }
  .cta__phones { height: 300px; margin-top: 56px; }
  .fan { width: 250px; margin-left: -125px; }
  .fan--l, .fan--r { display: none; }
  .store-btn { height: 52px; }
}

/* =============================================================
   Footer with the giant wordmark
   ============================================================= */
.foot { max-width: calc(var(--max) + 2 * var(--page-x)); margin: 0 auto; padding: 40px var(--page-x) 0; }
.foot__main { display: flex; justify-content: space-between; gap: 64px; }
.foot__tagline { font: 800 40px/1.1 var(--ob-font); letter-spacing: var(--ob-tracking-display); }
.foot__cols { display: grid; grid-template-columns: repeat(3, 180px); gap: 24px; }
.foot__head { font: 600 14px/1 var(--ob-font); color: var(--ob-text-secondary); margin-bottom: 22px; }
.foot__col ul { display: flex; flex-direction: column; gap: 14px; }
.foot__col a { font: 600 15px/1.2 var(--ob-font); color: var(--ob-text); transition: color var(--ob-dur); }
.foot__col a:hover { color: var(--ob-purple); }
.foot__legal { margin-top: 160px; display: flex; flex-direction: column; gap: 6px; font: 500 14px/1.5 var(--ob-font); color: var(--ob-text-secondary); }
.foot__mark { overflow: hidden; margin-top: 40px; }
/* The wordmark: the O'Budget mark stands in for the O, sized to the letters as in the lockup */
.foot__word {
  display: flex; align-items: center; font: 800 clamp(80px, 18.4vw, 266px)/.92 var(--ob-font); letter-spacing: -0.045em; white-space: nowrap;
  padding: .06em 0 .2em;
}
.foot__o { width: .99em; height: .92em; flex: none; margin-right: .09em; transform: translateY(-.035em); }
.foot__rest {
  padding: .08em 0 .26em; margin: -.08em 0 -.26em; /* the gradient paints the descender too */
  background: linear-gradient(90deg, #8D63FE 0%, #9E7BFF 30%, #DED5FF 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.js .foot__mark[data-reveal] { opacity: 1; transform: none; }
.js .foot__word { transform: translateY(75%); transition: transform 1.6s var(--out) .1s; }
.js .foot__mark.is-in .foot__word { transform: none; }
@media (max-width: 1199.98px) { .foot__main { flex-direction: column; gap: 56px; } .foot__cols { grid-template-columns: repeat(3, 1fr); } .foot__legal { margin-top: 96px; } }
@media (max-width: 809.98px) {
  .foot__tagline { font-size: 32px; }
  .foot__cols { grid-template-columns: 1fr; gap: 36px; }
  .foot__head { margin-bottom: 16px; }
  .foot__legal { margin-top: 64px; }
  .foot__mark { margin-top: 24px; }
  .foot__word { font-size: 18.6vw; }
}

/* =============================================================
   Motion: load sequence, split headings, scroll reveals
   (only with JS; without it everything is simply visible)
   ============================================================= */
/* Split headings: each letter rises, fades and unblurs in turn */
.js [data-split] .w { display: inline-block; white-space: nowrap; }
.js [data-split] .c {
  display: inline-block; opacity: 0; transform: translateY(.42em); filter: blur(10px);
  transition: opacity .7s var(--ob-ease), transform .9s var(--out), filter .7s var(--ob-ease);
  transition-delay: calc(var(--base, 0s) + var(--i) * var(--step, 22ms));
}
.js [data-split].is-in .c { opacity: 1; transform: none; filter: blur(0); }
.js .hero__title { --base: .05s; --step: 20ms; }

.js [data-hero] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .8s var(--ob-ease) var(--d, 0s), transform 1s var(--out) var(--d, 0s), filter .8s var(--ob-ease) var(--d, 0s); }
.is-loaded [data-hero] { opacity: 1; transform: none; filter: blur(0); }

/* Horizon grows in, then drifts */
.js .arc { opacity: 0; transform: translateY(160px) scale(.82); transition: opacity 1.4s var(--ob-ease) .1s, transform 2.2s var(--out) .1s; }
.is-loaded .arc { opacity: 1; transform: none; }
.hero__glow-in { animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(-1.2%, 0, 0) scale(1); } to { transform: translate3d(1.2%, -10px, 0) scale(1.025); } }

/* Phone: rises and fades in on load */
.js .hero__phone-in { opacity: 0; transform: translateY(40px); transition: opacity .7s var(--ob-ease) .2s, transform 1.1s var(--out) .2s; }
.is-loaded .hero__phone-in { opacity: 1; transform: none; }

/* Scroll reveals */
.js [data-reveal] { opacity: 0; transform: translateY(var(--ry, 40px)); transition: opacity .9s var(--ob-ease) var(--d, 0s), transform 1.2s var(--out) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .slide[data-reveal] { --ry: 80px; }

/* ---------- Reduced motion: everything in place, nothing moving ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none !important; width: auto; flex-wrap: wrap; justify-content: center; gap: 16px 12px; padding: 0 var(--page-x); }
  .marquee__track > [aria-hidden="true"] { display: none; }
  .marquee__track > li { margin-right: 0; }
  .hero__glow-in { animation: none !important; }
  .step__bar { display: none; }
}
