/* Budget landing page. Self-hosted fonts, no external requests. */

@font-face { font-family: "DM Sans"; src: url("assets/fonts/dmsans-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dmsans-500.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dmsans-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("assets/fonts/dmsans-900.ttf") format("truetype"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("assets/fonts/fraunces-600i.ttf") format("truetype"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  /* Brand */
  --forest-950: #0B231A;
  --forest-900: #0F2E23;
  --forest-800: #12392B;
  --forest-700: #1A4A39;
  --forest-600: #26614B;
  --on-forest: #F3EBDC;
  --on-forest-muted: #C9D3C8;
  --gold: #D8B25E;
  --orange: #F26A21;
  --orange-press: #D9531A;

  /* Light surfaces (tinted toward the forest hue, not toward cream) */
  --bg: #F3F6F2;
  --surface: #FFFFFF;
  --ink: #142019;
  --ink-soft: #3F4B44;
  --line: #DCE3DC;

  /* App tints, used for the feature panel */
  --t-pink: #F8E3EA;
  --t-green: #DCEBE2;
  --t-blue: #DEE6F2;
  --t-yellow: #FBF0CF;
  --t-rose: #F6DDE7;
  --t-plum: #E7DEEE;
  --t-cyan: #DDF0F7;
  --t-orange: #FCE4D6;

  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-md: 18px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.22, 1, .36, 1);

  --z-nav: 20;
  --z-skip: 30;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;

  --display: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C1712;
    --surface: #14221B;
    --ink: #E9F0EA;
    --ink-soft: #B3C1B7;
    --line: #22352B;
    --t-pink: #3A2730;
    --t-green: #1C3428;
    --t-blue: #1F2A3B;
    --t-yellow: #3A3320;
    --t-rose: #3A2531;
    --t-plum: #2D2538;
    --t-cyan: #18323A;
    --t-orange: #3D2819;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
em { font-family: var(--serif); font-style: italic; font-weight: 600; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-skip); background: var(--orange); color: var(--forest-950); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* ---------- Shared bits ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; padding: 14px 24px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .4s var(--ease-out), background-color .3s;
}
.pill--orange { background: var(--orange); color: var(--forest-950); }
.pill--orange:hover { background: #FF7D36; transform: translateY(-1px); }
.pill--sm { padding: 10px 18px; font-size: 15px; }

.h2 {
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 3.5rem);
  line-height: .98;
  letter-spacing: -0.035em;
}
.h2 em { font-size: .94em; }
.lead { font-size: clamp(16px, 1.3vw, 18px); color: var(--ink-soft); max-width: 52ch; }

.tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold); display: inline-grid; place-items: center; flex: none;
}
.tick::after {
  content: ""; width: 9px; height: 5px;
  border: solid var(--forest-950); border-width: 0 0 2.2px 2.2px;
  transform: translateY(-1px) rotate(-45deg);
}
.tick--dark { background: var(--forest-700); }
.tick--dark::after { border-color: #fff; }

/* Phone: a cut-off phone that rises from the bottom of its container */
.phone {
  position: relative;
  border-radius: 13% 13% 0 0 / 7.6% 7.6% 0 0;
  background: #0d0d0d;
  padding: 2.4% 2.4% 0;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.phone img {
  width: 100%;
  border-radius: 11% 11% 0 0 / 6.5% 6.5% 0 0;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  transition: background-color .4s, box-shadow .4s;
}
.nav.is-solid { background: var(--forest-900); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px; color: var(--on-forest);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .3s; }
.nav__links a:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .pill { margin-left: auto; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--forest-800);
  color: var(--on-forest);
  padding-top: clamp(110px, 14vh, 150px);
  overflow: hidden;
  isolation: isolate;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(216, 178, 94, .22), rgba(216, 178, 94, 0));
  z-index: -1; pointer-events: none;
  animation: drift 18s var(--ease-soft) infinite alternate;
}
@keyframes drift { to { transform: translate(-8vw, 10vh) scale(1.1); } }

.hero__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 64px); align-items: end;
}
.hero__copy { padding-bottom: clamp(64px, 10vh, 120px); }
.hero__title {
  font-weight: 900;
  font-size: clamp(2.6rem, 5.6vw, 4.6rem);
  line-height: .93;
  letter-spacing: -0.04em;
}
.hero__title em { color: var(--gold); font-size: .92em; }
.hero__title .w { display: inline-block; }
.hero__lead { margin-top: 22px; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--on-forest-muted); max-width: 44ch; }

.badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.badge { display: inline-block; border-radius: 12px; transition: transform .4s var(--ease-out); }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 52px; width: auto; }
@media (max-width: 420px) {
  .badges { gap: 10px; }
  .badge img { height: 44px; }
}

.hero__promises { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 500; font-size: 15px; color: var(--on-forest); }
.hero__promises li { display: inline-flex; align-items: center; gap: 9px; }

.hero__stage { position: relative; align-self: end; perspective: 1400px; display: flex; justify-content: center; padding-bottom: clamp(48px, 8vh, 88px); }

/* A full phone playing the vertical launch video. */
.hero__phone {
  position: relative; width: min(318px, 74%);
  padding: 9px; border-radius: 52px; background: #0d0d0d;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .1);
  transform-style: preserve-3d; will-change: transform;
}
.hero__video {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 16;
  border-radius: 43px; background: var(--orange); object-fit: cover;
}
.hero__pause {
  position: absolute; right: 22px; bottom: 22px; width: 34px; height: 34px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(11, 35, 26, .55); color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .3s;
  backdrop-filter: blur(6px);
}
.hero__phone:hover .hero__pause, .hero__pause:focus-visible { opacity: 1; }
.hero__pause::before { content: ""; width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero__pause.is-paused::before { width: 0; height: 0; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 2px; }
@media (hover: none) { .hero__pause { opacity: .85; } }

/* Load choreography (keyframes always run, so nothing is left hidden) */
.js .hero__title .w { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms + 100ms); }
.js .hero__lead, .js .hero__badges, .js .hero__promises { animation: fadeUp 1s var(--ease-out) both; }
.js .hero__lead { animation-delay: .55s; }
.js .hero__badges { animation-delay: .7s; }
.js .hero__promises { animation-delay: .85s; }
.js .hero__stage { animation: phoneIn 1.4s var(--ease-out) .35s both; }

@keyframes rise { from { opacity: 0; transform: translateY(.45em); filter: blur(10px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(120px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 8px; }
  .hero__stage { margin-top: 36px; padding-bottom: 48px; }
  .hero__phone { width: min(270px, 66%); border-radius: 44px; padding: 8px; }
  .hero__video { border-radius: 36px; }
}
/* ---------- Video ---------- */

.film { padding: clamp(72px, 10vh, 120px) 0 0; }
.film__title { max-width: 16ch; }
.film__frame {
  position: relative; margin-top: clamp(28px, 4vh, 48px);
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--forest-800);
  box-shadow: 0 40px 90px -50px rgba(11, 35, 26, .55);
}
.film__video { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--forest-800); }
.film__play {
  position: absolute; left: 50%; bottom: clamp(16px, 4%, 36px); translate: -50% 0;
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  border: 0; cursor: pointer; text-align: left;
  background: var(--orange); color: var(--forest-950);
  border-radius: 999px; padding: 12px 26px 12px 12px;
  font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease-out), background-color .3s;
}
.film__play:hover { background: #FF7D36; transform: translateY(-2px); }
.film__play small { grid-column: 2; font-size: 13px; font-weight: 500; opacity: .8; }
.film__icon {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%;
  background: var(--forest-900); display: grid; place-items: center;
}
.film__icon::after {
  content: ""; margin-left: 4px;
  border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--on-forest);
}
@media (max-width: 560px) {
  .film__frame { border-radius: var(--radius-lg); }
  .film__play { padding: 6px 16px 6px 6px; font-size: 14px; column-gap: 10px; white-space: nowrap; bottom: 12px; }
  .film__play small { display: none; }
  .film__icon { width: 34px; height: 34px; grid-row: auto; }
  .film__icon::after { border-width: 7px 0 7px 11px; margin-left: 3px; }
}

/* ---------- Privacy statement ---------- */

.statement { padding: clamp(96px, 14vh, 160px) 0 clamp(72px, 10vh, 120px); }
.statement__text {
  font-weight: 900;
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 21ch;
}
.statement__text .w { transition: opacity .25s linear; }
.js .statement__text .w { opacity: var(--o, .16); }

.promises {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
  margin-top: clamp(56px, 8vh, 96px);
}
.promise {
  border-radius: var(--radius-xl);
  padding: clamp(24px, 3vw, 36px);
  display: flex; flex-direction: column; gap: 28px; justify-content: space-between;
  min-height: 330px;
}
.promise h3 { font-size: clamp(21px, 2vw, 25px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
.promise p { margin-top: 10px; font-size: 15px; max-width: 40ch; }

.promise--signup { grid-column: span 3; background: var(--orange); color: var(--forest-950); }
.promise--offline { grid-column: span 3; background: var(--forest-800); color: var(--on-forest); }
.promise--offline p { color: var(--on-forest-muted); }
.promise--noads { grid-column: 1 / -1; background: var(--surface); flex-direction: row; align-items: center; min-height: 0; border: 1px solid var(--line); }
.promise--noads p { color: var(--ink-soft); }

.form { display: grid; gap: 10px; max-width: 340px; }
.form__field {
  position: relative; display: grid;
  background: rgba(255, 255, 255, .5); border-radius: 14px; padding: 12px 16px;
  font-size: 15px; font-weight: 500; color: rgba(11, 35, 26, .72);
  transition: opacity .7s var(--ease-out), background-color .7s, transform .7s var(--ease-out);
}
.form__field small { font-size: 12px; font-weight: 500; color: rgba(11, 35, 26, .62); }
.form__field--yes { background: #fff; color: var(--forest-950); font-weight: 700; }
.form__field--no::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 50%; height: 2.5px; border-radius: 3px;
  background: var(--forest-950); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.form__btn {
  justify-self: start; background: var(--forest-900); color: var(--on-forest);
  border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 14px; margin-top: 4px;
}
.promise--signup.is-in .form__field--no, html:not(.js) .form__field--no { opacity: .45; background: rgba(255, 255, 255, .22); }
.promise--signup.is-in .form__field--no::after, html:not(.js) .form__field--no::after { transform: scaleX(1); }
.promise--signup.is-in .form__field--no:nth-child(1), .promise--signup.is-in .form__field--no:nth-child(1)::after { transition-delay: .4s; }
.promise--signup.is-in .form__field--no:nth-child(2), .promise--signup.is-in .form__field--no:nth-child(2)::after { transition-delay: .65s; }
.promise--signup.is-in .form__field--yes { animation: nudge .9s var(--ease-out) 1.1s both; }
@keyframes nudge { 40% { transform: scale(1.035); } }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .07); border-radius: 18px; padding: 16px 18px; max-width: 330px;
  font-weight: 500;
}
.toggle { width: 52px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .18); position: relative; transition: background-color .5s; }
.toggle i { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform .6s var(--ease-out); box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.promise--offline.is-in .toggle { background: var(--orange); transition-delay: .5s; }
.promise--offline.is-in .toggle i { transform: translateX(20px); transition-delay: .5s; }
.still-works {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 700; color: var(--gold);
  opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease-out) 1.1s, transform .6s var(--ease-out) 1.1s;
}
.still-works .tick { background: var(--gold); }
.still-works .tick::after { border-color: var(--forest-950); }
.promise--offline.is-in .still-works, html:not(.js) .still-works { opacity: 1; transform: none; }

.promise--noads .promise__art { display: flex; flex-wrap: wrap; gap: 10px; flex: 1; }
.promise--noads .promise__body { flex: 1.2; }
.struck {
  position: relative; font-weight: 900; font-size: clamp(20px, 2.4vw, 32px); letter-spacing: -0.03em;
  padding: 6px 22px; border-radius: 999px; background: var(--t-pink); color: var(--ink);
}
.struck:nth-child(2) { background: var(--t-blue); }
.struck:nth-child(3) { background: var(--t-yellow); }
.struck::after {
  content: ""; position: absolute; left: 14px; right: 14px; top: 52%; height: 3px; border-radius: 3px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.promise--noads.is-in .struck::after, html:not(.js) .struck::after { transform: scaleX(1); }
.promise--noads.is-in .struck:nth-child(2)::after { transition-delay: .2s; }
.promise--noads.is-in .struck:nth-child(3)::after { transition-delay: .4s; }

@media (max-width: 860px) {
  .promise--signup, .promise--offline { grid-column: 1 / -1; min-height: 0; }
  .promise--noads { flex-direction: column; align-items: flex-start; }
}

/* ---------- Feature story ---------- */

.story { padding: clamp(72px, 10vh, 120px) 0; }
.story__head { margin-bottom: clamp(32px, 6vh, 72px); }
.story__head .h2 { max-width: 17ch; }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); }

.story__steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; opacity: .32; transition: opacity .6s var(--ease-out); }
.step.is-active { opacity: 1; }
.step__tag { align-self: flex-start; font-weight: 700; font-size: 14px; padding: 6px 14px; border-radius: 999px; background: var(--forest-800); color: var(--on-forest); }
.step h3 { margin-top: 16px; font-size: clamp(26px, 2.8vw, 38px); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.step p { margin-top: 12px; font-size: 16.5px; color: var(--ink-soft); max-width: 40ch; }
.step__media { display: none; }

.story__stage { position: relative; }
.story__panel {
  position: sticky; top: 12vh; height: 76vh; min-height: 520px;
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--panel, var(--t-pink));
  transition: background-color .8s var(--ease-soft);
  display: flex; align-items: flex-end; justify-content: center;
}
.story__phone { width: min(360px, 72%); aspect-ratio: 720 / 1218; margin-bottom: -2px; }
.story__phone img {
  position: absolute; inset: 2.4% 2.4% 0; width: 95.2%;
  opacity: 0; transform: translateY(40px) scale(.98); filter: blur(8px);
  transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), filter .7s var(--ease-out);
}
.story__phone img.is-active { opacity: 1; transform: none; filter: none; }
.story__dots { position: absolute; top: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; }
.story__dots i { width: 8px; height: 8px; border-radius: 9px; background: color-mix(in oklab, var(--ink) 22%, transparent); transition: height .5s var(--ease-out), background-color .5s; }
.story__dots i.is-active { height: 26px; background: var(--ink); }

@media (max-width: 900px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__stage { display: none; }
  .step { min-height: 0; opacity: 1; padding: 28px 0 8px; }
  .step__media {
    display: block; margin-top: 28px; width: 100%; max-width: 360px;
    border-radius: var(--radius-lg); background: var(--tint); padding: 36px 14% 0; box-shadow: none; overflow: hidden;
  }
  .step__media img { border-radius: 13% 13% 0 0 / 7.6% 7.6% 0 0; box-shadow: 0 0 0 8px #0d0d0d; margin-top: 8px; }
}

/* ---------- Small things (bento) ---------- */

.small { padding: clamp(72px, 10vh, 120px) 0; background: var(--surface); border-block: 1px solid var(--line); }
.bento {
  margin-top: clamp(40px, 6vh, 64px);
  display: grid; gap: 18px;
  grid-template-columns: repeat(6, 1fr);
}
.tile {
  border-radius: var(--radius-lg); padding: 28px;
  background: var(--bg); display: flex; flex-direction: column; gap: 10px;
}
.tile h3 { font-size: 19px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin-top: auto; }
.tile p { font-size: 14.5px; color: var(--ink-soft); }
.tile__art { display: grid; place-items: center; min-height: 180px; position: relative; margin-bottom: 14px; }

.tile--ring { grid-column: span 2; grid-row: span 2; background: var(--t-rose); }
.tile--ring .tile__art { min-height: 300px; }
.tile--nudge { grid-column: span 4; background: var(--forest-800); color: var(--on-forest); }
.tile--nudge p { color: var(--on-forest-muted); }
.tile--recurring { grid-column: span 2; }
.tile--debt { grid-column: span 2; background: var(--t-plum); }
.tile--theme { grid-column: span 3; }
.tile--currency { grid-column: span 3; background: var(--orange); color: var(--forest-950); }
.tile--currency p { color: rgba(11, 35, 26, .82); }

.bigring { width: min(230px, 80%); transform: rotate(-90deg); }
.bigring circle { fill: none; stroke-width: 11; stroke: color-mix(in oklab, #C56C90 22%, transparent); }
.bigring .bigring__fill { stroke: #C56C90; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 2s var(--ease-out) .2s; }
.tile--ring.is-in .bigring__fill, html:not(.js) .bigring__fill { stroke-dashoffset: calc(314.16 * .32); }
.bigring__num { position: absolute; font-weight: 900; font-size: 42px; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }

.notif {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  width: min(380px, 100%); background: rgba(255, 255, 255, .94); color: #1C2420;
  border-radius: 22px; padding: 14px 16px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .6);
  transform: translateY(-60px) scale(.95); opacity: 0;
  transition: transform 1s var(--ease-out) .3s, opacity .6s var(--ease-out) .3s;
}
.notif img { border-radius: 9px; }
.notif b { display: block; font-size: 15px; }
.notif span { font-size: 14.5px; color: #3F4B44; }
.notif small { align-self: start; color: #6A746E; font-size: 12.5px; }
.tile--nudge.is-in .notif, html:not(.js) .notif { transform: none; opacity: 1; }

.rules { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.rules li {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px;
  background: var(--surface); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: 15px;
}
.rules em { font-family: var(--display); font-style: normal; font-weight: 500; font-size: 13px; color: var(--ink-soft); }
.rules .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.rules .tick { width: 22px; height: 22px; transform: scale(0); transition: transform .5s var(--ease-out); }
.tile--recurring.is-in .rules .tick, html:not(.js) .rules .tick { transform: scale(1); }
.tile--recurring.is-in li:nth-child(1) .tick { transition-delay: .4s; }
.tile--recurring.is-in li:nth-child(2) .tick { transition-delay: .7s; }
.tile--recurring.is-in li:nth-child(3) .tick { transition-delay: 1s; }

.debtbar { background: var(--surface); border-radius: 18px; padding: 16px; margin-bottom: 14px; }
.debtbar__top { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.debtbar__top span { font-weight: 700; }
.debtbar__top b { color: #1B7A4B; font-weight: 700; }
.debtbar__track { height: 12px; border-radius: 9px; background: color-mix(in oklab, #562A67 18%, transparent); margin-top: 12px; overflow: hidden; }
.debtbar__track i { display: block; height: 100%; width: 100%; background: #562A67; border-radius: inherit; transform-origin: right; transition: transform 2.2s var(--ease-out) .3s; }
.tile--debt.is-in .debtbar__track i, html:not(.js) .debtbar__track i { transform: scaleX(.42); }

.theme-demo { display: grid; place-items: center; min-height: 180px; margin-bottom: 14px; }
.theme-demo__card {
  width: min(300px, 100%); border-radius: 20px; padding: 18px 20px; display: grid; gap: 4px;
  background: #fff; color: #1F2622; border: 1px solid #E4E7EA;
  transition: background-color .9s var(--ease-soft), color .9s var(--ease-soft), border-color .9s;
}
.theme-demo__card span { font-size: 14px; color: inherit; opacity: .7; }
.theme-demo__card b { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.theme-demo__card i { height: 9px; border-radius: 9px; background: linear-gradient(90deg, #1B7A4B 57%, rgba(127, 127, 127, .2) 57%); margin-top: 6px; }
.theme-demo.is-dark .theme-demo__card { background: #221E17; color: #F2ECE2; border-color: #342E24; }

.currency { display: grid; place-items: center; min-height: 180px; margin-bottom: 14px; }
.currency span { font-weight: 900; font-size: 96px; line-height: 1; letter-spacing: -0.04em; display: inline-block; transition: opacity .35s, transform .5s var(--ease-out), filter .35s; }
.currency span.is-out { opacity: 0; transform: translateY(-24px); filter: blur(8px); }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--ring, .tile--nudge, .tile--theme, .tile--currency { grid-column: 1 / -1; grid-row: auto; }
  .tile--recurring, .tile--debt { grid-column: span 1; }
  .tile--ring .tile__art { min-height: 240px; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile--recurring, .tile--debt { grid-column: 1 / -1; }
}

/* ---------- Affirmations ---------- */

.kind { background: var(--forest-900); color: var(--on-forest); padding: clamp(64px, 10vh, 110px) 0 clamp(48px, 8vh, 80px); overflow: hidden; }
.marquee { display: flex; overflow: hidden; user-select: none; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee + .marquee { margin-top: 10px; }
.marquee__row { display: flex; flex: none; gap: 56px; padding-right: 56px; animation: slide 60s linear infinite; }
.marquee--reverse .marquee__row { animation-direction: reverse; animation-duration: 70s; }
.marquee__row span { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: clamp(26px, 3.4vw, 46px); letter-spacing: -0.02em; white-space: nowrap; line-height: 1.3; }
.marquee--reverse .marquee__row span { color: var(--gold); }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }
.kind__caption { margin-top: 36px; color: var(--on-forest-muted); font-size: 16px; }

/* ---------- Backups ---------- */

.backups { padding: clamp(80px, 12vh, 140px) 0; }
.backups__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.backups .lead { margin-top: 22px; }
.howto { list-style: none; counter-reset: s; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; }
.howto li {
  counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px;
}
.howto li::before {
  content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  background: var(--forest-800); color: var(--on-forest); display: grid; place-items: center; font-weight: 900; font-size: 18px;
}
.howto b { font-size: 16.5px; letter-spacing: -0.01em; }
.howto span { color: var(--ink-soft); font-size: 14.5px; }

.backups__art {
  position: relative; aspect-ratio: 1; border-radius: var(--radius-xl);
  background: var(--t-green); overflow: hidden;
}
.mini-phone {
  position: absolute; left: 12%; top: 16%; width: 30%; height: 62%;
  border-radius: 28px; background: var(--forest-800); padding: 30px 14px; display: grid; align-content: start; gap: 10px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5);
}
.mini-phone__row { height: 12px; border-radius: 8px; background: rgba(243, 235, 220, .28); }
.mini-phone__row.short { width: 60%; }
.folder {
  position: absolute; right: 10%; bottom: 16%; width: 38%; aspect-ratio: 1.25;
  background: var(--orange); border-radius: 8px 22px 22px 22px;
  display: grid; place-items: end start; padding: 16px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.folder__tab { position: absolute; left: 0; top: -14px; width: 42%; height: 22px; background: var(--orange); border-radius: 10px 10px 0 0; }
.folder__label { font-weight: 900; color: var(--forest-950); font-size: 17px; }
.backups__art { container-type: size; }
.folder { z-index: 2; }
.folder__tab { z-index: -1; }
.file {
  position: absolute; left: 14%; top: 26%; z-index: 3; width: 22cqw;
  display: grid; justify-items: center; gap: 8px; padding: 14px 10px 12px;
  background: #fff; color: #1C2420; border-radius: 14px; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .45);
  font-size: clamp(10px, 2.4cqw, 13px); font-weight: 700; text-align: center;
}
.file__icon { width: 40%; aspect-ratio: .85; border-radius: 8px; background: #FBF0CF; color: #856320; display: grid; place-items: center; font-weight: 900; font-size: 1.1em; }
.file__name { overflow-wrap: anywhere; line-height: 1.2; }
.backups__art.is-in .file { animation: tuck 6s var(--ease-soft) .4s infinite; }
/* Out of the phone, over to the folder, then down inside it. */
@keyframes tuck {
  0% { translate: 0 0; scale: .9; opacity: 0; rotate: 0deg; z-index: 3; }
  10% { translate: 0 0; scale: 1; opacity: 1; }
  48% { translate: 44cqw 0cqh; rotate: -4deg; z-index: 3; }
  56% { translate: 44cqw 0cqh; rotate: 0deg; z-index: 1; }
  72% { translate: 44cqw 28cqh; opacity: 1; z-index: 1; }
  82%, 100% { translate: 44cqw 28cqh; opacity: 0; z-index: 1; }
}

@media (max-width: 900px) {
  .backups__grid { grid-template-columns: 1fr; }
  .backups__art { max-width: 520px; width: 100%; }
}

/* ---------- FAQ ---------- */

.faq { padding: clamp(72px, 10vh, 120px) 0; background: var(--surface); border-top: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__grid .h2 { position: sticky; top: 110px; }
.faq__list { display: grid; gap: 10px; }
.faq details { background: var(--bg); border-radius: 22px; padding: 0 24px; transition: background-color .3s; }
.faq details[open] { background: var(--t-green); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 16.5px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--forest-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3v10M3 8h10' stroke='%23F3EBDC' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .45s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 60ch; }
@media (max-width: 860px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__grid .h2 { position: static; }
}

/* ---------- Final CTA ---------- */

.cta { background: var(--forest-800); color: var(--on-forest); padding-top: clamp(80px, 12vh, 140px); overflow: hidden; }
.cta__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.cta__copy { padding-bottom: clamp(72px, 12vh, 140px); }
.cta__title { font-weight: 900; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: .93; letter-spacing: -0.04em; }
.cta__title em { color: var(--gold); font-size: .92em; }
.cta__phone { width: min(380px, 80%); justify-self: center; transform: translateY(60px); opacity: 0; transition: transform 1.2s var(--ease-out), opacity .9s var(--ease-out); }
.cta__phone.is-in, html:not(.js) .cta__phone { transform: none; opacity: 1; }
@media (max-width: 900px) {
  .cta__grid { grid-template-columns: 1fr; }
  .cta__copy { padding-bottom: 24px; }
  .cta__phone { width: min(320px, 76%); }
}

/* ---------- Footer ---------- */

.foot { background: var(--forest-950); color: var(--on-forest-muted); padding: 36px 0; font-size: 15px; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.foot .brand { color: var(--on-forest); font-size: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--on-forest); text-decoration: underline; }
.foot p { margin-left: auto; }
@media (max-width: 700px) { .foot p { margin-left: 0; } }

/* ---------- Dark mode touches ---------- */

@media (prefers-color-scheme: dark) {
  .promise--offline, .tile--nudge { box-shadow: inset 0 0 0 1px rgba(243, 235, 220, .1); }
  .debtbar__top b { color: #6CCB98; }
  .faq details[open] { background: var(--t-green); }
}

/* ---------- Generic reveal (enhances an already visible default) ---------- */

.js [data-reveal]:not(.promise):not(.tile):not(.cta__phone):not(.backups__art) { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js .tile, .js .promise { transform: translateY(26px); opacity: 0; transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.js .tile.is-in, .js .promise.is-in { transform: none; opacity: 1; }
.bento .tile:nth-child(2) { transition-delay: .06s; }
.bento .tile:nth-child(3) { transition-delay: .12s; }
.bento .tile:nth-child(4) { transition-delay: .18s; }
.bento .tile:nth-child(5) { transition-delay: .06s; }
.bento .tile:nth-child(6) { transition-delay: .12s; }

/* ---------- Reduced motion: everything visible, no travel ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .2s !important; transition-delay: 0s !important; }
  .js .statement__text .w { opacity: 1; }
  .marquee__row { animation: none !important; }
  .marquee { overflow-x: auto; }
  .backups__art.is-in .file { animation: none; }
  .hero__glow { animation: none; }
}
