/* Handler site. The pages open the way the app does: the H with a check drawn on its forest field, then the
   app's own surfaces (grouped ground, inset lists, category discs, capsule bars). Colour tokens mirror the app:
   FluidUI TabTint, CategoryPalette (ACT-02) and LivingMarkPalette. In-phone UI is sized in container units, so
   1em inside .ui is 16 pt on a 390 pt screen. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --ground: #F2F2F7;
  --card: #FFFFFF;
  --fill: #E9E9EE;
  --ink: #0B0B0C;
  --ink-2: #55555B;
  --sep: rgba(60, 60, 67, .16);
  --accent: #1B5E4B;
  --on-accent: #FFFFFF;
  --accent-soft: #E3EFEA;
  --budget: #4B49D6;
  --vault: #9A5200;
  --upcoming: #00727F;
  --g-home: #2A78D6;
  --g-health: #C8457D;
  --g-move: #0091B0;
  --g-food: #2E8B3D;
  --g-shop: #9B3FBF;
  --g-fun: #D95926;
  --g-other: #8E8E93;
  --close: #9A5200;
  --over: #C4291C;
  --lift: 0 1px 2px rgba(15, 20, 18, .05), 0 10px 30px rgba(15, 20, 18, .07);

  /* The field: the welcome screen's dark appearance, the same in both modes (it is the App Icon's ground). */
  --field-top: #1D4A3D;
  --field-bottom: #06140F;
  --on-field: #FFFDF8;
  --on-field-2: #B7CFC5;
  --field-link: #8FE0C2;
  --check: #FFB340;
  --field-btn-ink: #0B2A21;

  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #000000;
    --card: #1C1C1E;
    --fill: #2C2C2E;
    --ink: #F5F5F7;
    --ink-2: #A1A1A6;
    --sep: rgba(84, 84, 88, .55);
    --accent: #52BA97;
    --on-accent: #04140E;
    --accent-soft: #122921;
    --budget: #8E8CFF;
    --vault: #FFB340;
    --upcoming: #48D1E8;
    --g-home: #3987E5;
    --g-health: #D55181;
    --g-move: #1AA3C7;
    --g-food: #3A9E4A;
    --g-shop: #B373DC;
    --g-fun: #D95926;
    --close: #FFB340;
    --over: #FF6B5E;
    --lift: none;
  }
}

/* Each feature page owns its tab colour as a deep field. */
.f-budget { --field-top: #2E2C86; --field-bottom: #0A0A24; --on-field-2: #C9C8F2; --field-link: #B2B1FF; --field-btn-ink: #17165A; --tab: var(--budget); }
.f-vault { --field-top: #4D2C07; --field-bottom: #150B02; --on-field-2: #EBD3B0; --field-link: #FFC266; --field-btn-ink: #3B2004; --tab: var(--vault); }
.f-upcoming { --field-top: #08434C; --field-bottom: #021316; --on-field-2: #B5DDE2; --field-link: #7FE3F2; --field-btn-ink: #06343B; --tab: var(--upcoming); }
.f-assistant, .f-about { --tab: var(--accent); }

/* ---- Base and browser surfaces ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: color-mix(in srgb, var(--ink-2) 55%, transparent) var(--ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  caret-color: var(--accent);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: inherit; }
.field ::selection { background: color-mix(in srgb, var(--check) 40%, transparent); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: .2em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.field :focus-visible { outline-color: var(--check); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--card); color: var(--ink); padding: 10px 16px; border-radius: 12px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- Type ---- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 1.4rem + 5.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.028em;
}
.h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -.024em;
}
.h3 { font-family: var(--display); font-weight: 750; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.01em; }
.lead { font-size: clamp(1.125rem, 1rem + .45vw, 1.35rem); line-height: 1.5; color: var(--ink-2); max-width: 40ch; }
.field .lead { color: var(--on-field-2); }
.headline-l { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); line-height: 1.05; letter-spacing: -.024em; }
.headline-m { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); line-height: 1.08; letter-spacing: -.02em; }
.body-l { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.fine { font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.field .fine { color: var(--on-field-2); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0;
  font: 650 1.0625rem/1 var(--text); letter-spacing: -.01em; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-fill { background: var(--accent); color: var(--on-accent); }
.btn-fill:hover { background: color-mix(in srgb, var(--accent) 88%, var(--ink)); }
.btn-plain { background: transparent; color: var(--accent); padding-inline: 12px; }
.btn-plain:hover { text-decoration: underline; }
.field .btn-fill { background: var(--on-field); color: var(--field-btn-ink); }
.field .btn-fill:hover { background: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .28); }
.field .btn-plain { color: var(--on-field); }
.btn[aria-disabled="true"] { background: var(--fill); color: var(--ink-2); cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }

/* ---- Navigation: one floating capsule, like the app's tab bar ---- */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 40;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  width: min(100% - 24px, 980px);
  padding: 6px 6px 6px 8px;
  border-radius: 999px;
  color: var(--on-field);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.nav.is-stuck .nav-bar, .on-ground .nav-bar {
  color: var(--ink);
  background: color-mix(in srgb, var(--card) 80%, transparent);
  border-color: var(--sep);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  padding: 4px 12px 4px 4px; min-height: 44px; border-radius: 999px;
  color: inherit; text-decoration: none;
  font: 800 1.2rem/1 var(--display); letter-spacing: -.015em;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links {
  display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; list-style: none;
  overflow-x: auto; scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s var(--ease);
}
.nav-links a:hover { background: rgba(127, 127, 127, .16); }
.nav-links a[aria-current="page"] { background: rgba(255, 255, 255, .16); }
.nav.is-stuck .nav-links a[aria-current="page"], .on-ground .nav-links a[aria-current="page"] { background: color-mix(in srgb, var(--tab, var(--accent)) 14%, transparent); color: var(--tab, var(--accent)); }
.nav-links .ico { width: 18px; height: 18px; }
.nav-links .ico { --icon-cut: var(--field-top); }
.nav.is-stuck .nav-links .ico, .on-ground .nav-links .ico { --icon-cut: var(--card); }
@media (max-width: 980px) {
  .nav-links .ico { display: none; }
}
@media (max-width: 720px) {
  .nav { inset-block-start: 8px; }
  .nav-bar { padding: 4px; width: min(100% - 16px, 980px); }
  .brand { padding-right: 4px; }
  .nav-links { gap: 0; }
  .nav-links .ico { display: block; width: 21px; height: 21px; }
  .nav-links a { width: 44px; padding: 0; justify-content: center; }
  .nav-bar .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---- The field (hero bands) ---- */
.field {
  position: relative;
  color: var(--on-field);
  background: linear-gradient(180deg, var(--field-top), var(--field-bottom));
  overflow: hidden;
  isolation: isolate;
}
.field a:not(.btn) { color: var(--field-link); }

/* The mark: two pillars and a check (200 grid). */
.mark-svg { overflow: visible; }
.mark-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mark-svg .pillar { stroke: var(--on-field); stroke-width: 14; }
.mark-svg .check { stroke: var(--check); stroke-width: 10; }

/* ---- Home hero ---- */
.hero {
  min-height: max(720px, 100svh);
  display: grid; grid-template-rows: 1fr auto;
  padding-top: 112px;
}
.hero-copy { display: grid; justify-items: center; text-align: center; align-content: center; gap: 22px; padding-bottom: 36px; }
.hero-mark { width: clamp(132px, 19vmin, 200px); margin-bottom: -10px; }
.hero-name { font: 800 clamp(1.25rem, 1rem + .8vw, 1.6rem)/1 var(--display); letter-spacing: -.01em; color: var(--on-field); margin-top: -18px; }
.hero .lead { margin-inline: auto; max-width: 34ch; }
.hero .actions { justify-content: center; }
.hero .fine { max-width: 44ch; }
.hero-phone { display: flex; justify-content: center; height: clamp(220px, 34vh, 360px); }
.hero-phone .phone { --pw: clamp(280px, 30vw, 360px); align-self: flex-start; }

@media (prefers-reduced-motion: no-preference) {
  html:not(.still) .draw .pillar, html:not(.still) .draw .check { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html:not(.still) .draw .p1 { animation: draw .9s var(--ease) .25s forwards; }
  html:not(.still) .draw .p2 { animation: draw .9s var(--ease) .65s forwards; }
  html:not(.still) .draw .check { animation: draw .8s var(--ease) 1.45s forwards; }
  html:not(.still) .hero-name { animation: rise 1s var(--ease) 2.1s both; }
  html:not(.still) .hero-phone .phone { animation: phone-rise 1.4s var(--ease) .5s both; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
@keyframes phone-rise { from { opacity: 0; transform: translateY(90px); } }

/* ---- Sections on the ground ---- */
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { justify-items: center; text-align: center; }
.section-head .lead { max-width: 46ch; }

/* ---- Tour: one phone, switched by the app's capsule bar ---- */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; margin: 0 auto;
  border-radius: 999px; background: var(--fill);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg button, .seg a {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); font: 600 .98rem/1 var(--text); cursor: pointer; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.seg [aria-selected="true"] { background: var(--card); color: var(--c, var(--accent)); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (prefers-color-scheme: dark) { .seg [aria-selected="true"] { background: #3A3A3C; } }
.seg .ico { width: 18px; height: 18px; }
.tour-bar { display: flex; justify-content: center; margin-bottom: clamp(32px, 4vw, 48px); }
html:not(.js) .tour-bar, html:not(.js) .play-toggle { display: none; }
html:not(.js) .tour-panel + .tour-panel { margin-top: 96px; }
.tour-panel { display: grid; grid-template-columns: auto minmax(0, 30rem); justify-content: center; align-items: center; gap: clamp(32px, 7vw, 96px); }
.tour-panel[hidden] { display: none; }
.tour-panel .phone { --pw: clamp(260px, 26vw, 320px); }
.tour-copy { display: grid; gap: 16px; align-content: center; }
.tour-copy .h2 { color: var(--c); }
.tour-copy ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.tour-copy li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.tour-copy li .ico { width: 22px; height: 22px; margin-top: 3px; color: var(--c); }
.tour-copy .more { justify-self: start; margin-top: 8px; }
.tour-copy .more { background: var(--c); color: #fff; }
@media (prefers-color-scheme: dark) { .tour-copy .more { color: #0B0B0C; } }
@media (prefers-reduced-motion: no-preference) {
  .tour-panel.is-entering .phone { animation: tour-in .6s var(--ease) both; }
  .tour-panel.is-entering .tour-copy { animation: rise .6s var(--ease) .06s both; }
}
@keyframes tour-in { from { opacity: 0; transform: translateY(16px) scale(.985); } }
@media (max-width: 820px) {
  .tour-panel { grid-template-columns: 1fr; justify-items: center; }
  .tour-copy { order: -1; max-width: 34rem; }
}
@media (max-width: 560px) {
  .tour-bar .seg { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; border-radius: 22px; }
  .tour-bar .seg button { flex-direction: column; gap: 4px; padding: 8px 4px; min-height: 56px; border-radius: 18px; font-size: .8rem; }
}

/* ---- Inset grouped lists (Settings vocabulary) ---- */
.list {
  margin: 0; padding: 0; list-style: none;
  background: var(--card); border-radius: 16px; box-shadow: var(--lift);
  overflow: hidden;
}
.list > li, .list > .li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px 20px; align-items: start; }
.list > li + li::before, .list > .li + .li::before {
  content: ""; position: absolute; inset: 0 0 auto 76px; height: 1px; background: var(--sep);
}
.list .disc { --size: 40px; }
.list h3 { font: 650 1.0625rem/1.35 var(--text); letter-spacing: -.01em; }
.list p { color: var(--ink-2); font-size: 1rem; line-height: 1.5; margin-top: 3px; max-width: 62ch; }
.list-cols { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.list-cols .section-head { position: sticky; top: 110px; margin: 0; }
@media (max-width: 820px) { .list-cols { grid-template-columns: 1fr; } .list-cols .section-head { position: static; } }

.disc {
  --size: 32px;
  display: inline-grid; place-items: center; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  background: var(--d, var(--accent)); color: #fff;
}
.disc .ico { width: 56%; height: 56%; --icon-cut: var(--d, var(--accent)); }
@media (prefers-color-scheme: dark) { .disc { color: #fff; } }

/* Privacy on the field: the same list, in the field's own glass. */
.field .list { background: rgba(255, 255, 255, .06); box-shadow: none; border: 1px solid rgba(255, 255, 255, .1); }
.field .list > li + li::before { background: rgba(255, 255, 255, .12); }
.field .list p { color: var(--on-field-2); }
.field .list .disc { background: rgba(255, 255, 255, .12); color: var(--check); }
.field .list .disc .ico { --icon-cut: #1B3A31; }
.band { padding-block: clamp(80px, 11vw, 150px); }

/* ---- Pricing: the StoreKit sheet ---- */
.store {
  width: min(100%, 640px); margin-inline: auto;
  background: var(--card); border-radius: 28px; box-shadow: var(--lift);
  padding: clamp(28px, 5vw, 44px);
  display: grid; gap: 24px;
}
.store-head { display: grid; justify-items: center; text-align: center; gap: 10px; }
.store-head img { width: 72px; height: 72px; border-radius: 17px; }
.store-head .h3 { font-size: 1.6rem; }
.store-head p { color: var(--ink-2); }
.plans { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.plan {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px;
  padding: 16px 18px; border-radius: 16px; border: 2px solid var(--fill);
}
.plan.is-first { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 7%, transparent); }
.plan strong { font-size: 1.0625rem; }
.plan .price { font: 750 1.35rem/1.1 var(--text); letter-spacing: -.01em; }
.plan .per { color: var(--ink-2); font-size: .95rem; grid-column: 1; }
.plan .badge { grid-column: 2; justify-self: end; font-size: .8rem; font-weight: 650; color: var(--accent); }
.store-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
.store-cols h3 { font: 650 .95rem/1.3 var(--text); color: var(--ink-2); margin-bottom: 10px; }
.store-cols ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.store-cols li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; line-height: 1.4; }
.store-cols li .ico { width: 20px; height: 20px; color: var(--accent); --icon-cut: var(--card); margin-top: 1px; }
.store .btn { width: 100%; }
.store .fine { text-align: center; }
@media (max-width: 560px) { .store-cols { grid-template-columns: 1fr; } }

/* ---- Questions ---- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { position: relative; }
.faq details + details::before { content: ""; position: absolute; inset: 0 0 auto 20px; height: 1px; background: var(--sep); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-weight: 650; font-size: 1.0625rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { width: 18px; height: 18px; color: var(--ink-2); transition: transform .25s var(--ease); transform: rotate(90deg); }
.faq details[open] summary .ico { transform: rotate(-90deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 16px; }
.faq .answer { padding: 0 20px 20px; color: var(--ink-2); display: grid; gap: 10px; max-width: 66ch; }
.faq .list { display: block; }

/* ---- Closing band ---- */
.close { text-align: center; padding-block: clamp(96px, 13vw, 170px); }
.close .wrap { display: grid; justify-items: center; gap: 20px; }
.close .mark-svg { width: 84px; }
.close .lead { margin-inline: auto; }

/* ---- Feature pages ---- */
.page-hero { padding-top: 132px; padding-bottom: clamp(64px, 9vw, 120px); }
.page-hero .intro { display: grid; justify-items: center; text-align: center; gap: 20px; margin-bottom: clamp(44px, 6vw, 72px); }
.page-hero .intro .lead { margin-inline: auto; max-width: 42ch; }
.page-mark { width: clamp(56px, 7vmin, 76px); margin-bottom: 4px; }
.story { display: grid; grid-template-columns: auto minmax(0, 26rem); justify-content: center; align-items: center; gap: clamp(36px, 7vw, 96px); }
.story .phone { --pw: clamp(270px, 27vw, 330px); }
.steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.steps button {
  display: grid; grid-template-columns: 36px 1fr; gap: 4px 14px; width: 100%; text-align: left;
  padding: 16px 16px 18px; border: 0; border-radius: 18px; background: transparent; color: var(--on-field-2);
  font: inherit; cursor: pointer; position: relative;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.steps button:hover { background: rgba(255, 255, 255, .05); }
.steps .n {
  grid-row: span 2; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 750 .95rem/1 var(--text);
  border: 1.5px solid currentColor;
}
.steps strong { font: 750 1.15rem/1.3 var(--display); color: var(--on-field); }
.steps span:last-child { font-size: 1rem; line-height: 1.5; }
.steps [aria-current="step"] { background: rgba(255, 255, 255, .08); color: var(--on-field); }
.steps [aria-current="step"] .n { background: var(--check); border-color: var(--check); color: var(--field-btn-ink); }
.steps [aria-current="step"]::after {
  content: ""; position: absolute; left: 66px; right: 16px; bottom: 8px; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .5); transform-origin: left; transform: scaleX(0);
}
.story.is-playing .steps [aria-current="step"]::after { animation: progress var(--dwell, 4200ms) linear forwards; }
.story.is-paused .steps [aria-current="step"]::after { transform: scaleX(0); }
@keyframes progress { to { transform: scaleX(1); } }
.story-side { display: grid; gap: 16px; }
.play-toggle {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: var(--on-field);
  font: 600 .9rem/1 var(--text); cursor: pointer;
}
.play-toggle .ico { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .story { grid-template-columns: 1fr; justify-items: center; }
  .story-side { width: min(100%, 30rem); }
}

.next {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px;
  padding: clamp(24px, 4vw, 36px); border-radius: 24px; background: var(--card); box-shadow: var(--lift);
  color: var(--ink); text-decoration: none;
  transition: transform .3s var(--ease);
}
.next:hover { transform: translateY(-2px); }
.next small { display: block; color: var(--ink-2); font-size: .95rem; font-weight: 600; margin-bottom: 6px; }
.next .h3 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); color: var(--c, var(--accent)); }
.next .disc { --size: 52px; --d: var(--c, var(--accent)); }
.next .disc .ico { width: 46%; height: 46%; }

/* ---- Footer ---- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--sep); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .brand { color: var(--ink); padding-left: 0; }
.footer .brand + .fine { margin-top: 8px; max-width: 30ch; }
.foot-h { font: 650 .875rem/1.3 var(--text); color: var(--ink-2); margin: 10px 0 12px; }
.footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.footer ul a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink); text-decoration: none; }
.footer ul a:hover { text-decoration: underline; }
.footer-legal { margin-top: 32px; display: grid; gap: 8px; max-width: 80ch; }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }

/* ---- Document pages (Support, Privacy) ---- */
.doc-hero { padding: 140px 0 40px; display: grid; gap: 14px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); padding-bottom: 96px; align-items: start; }
.toc { position: sticky; top: 110px; display: grid; gap: 2px; font-size: .95rem; }
.toc a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; }
.toc a:hover { background: var(--fill); color: var(--ink); }
.toc ul, .toc ol { margin: 0; padding: 0; list-style: none; }
.toc h2 { font: 650 .875rem/1.3 var(--text); color: var(--ink-2); margin: 0 0 6px 12px; }
.prose { background: var(--card); border-radius: 20px; box-shadow: var(--lift); padding: clamp(24px, 4vw, 48px); max-width: 78ch; }
.prose h2 { font: 800 1.6rem/1.2 var(--display); letter-spacing: -.015em; margin: 40px 0 12px; scroll-margin-top: 110px; }
.prose h2:first-child, .prose > section:first-child h2 { margin-top: 0; }
.prose h3 { font: 700 1.15rem/1.35 var(--text); margin: 26px 0 8px; scroll-margin-top: 110px; }
.prose p, .prose li { color: var(--ink); line-height: 1.65; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: 6px; }
.contact-card, .summary-card {
  background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 16px; padding: 20px 22px; margin-bottom: 28px;
}
.contact-card h2, .summary-card h2 { margin-top: 0; font-size: 1.3rem; }
@media (max-width: 820px) { .doc-layout { grid-template-columns: 1fr; } .toc { position: static; } }

.center-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.center-page > div { display: grid; justify-items: center; gap: 18px; }
.center-page .mark { width: 72px; height: 72px; border-radius: 17px; }
.center-page .body-l { margin-inline: auto; }

/* =========================================================================
   The phone and the app's UI inside it
   ========================================================================= */
.phone {
  --pw: 320px;
  position: relative; flex: none;
  width: var(--pw); aspect-ratio: 402 / 874;
  padding: calc(var(--pw) * .03);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(145deg, #3a3a3c, #121214 40%, #2a2a2c);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  margin: 0;
}
.phone-wrap { display: grid; justify-items: center; gap: 12px; margin: 0; }
.sample-note { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.field .sample-note { color: var(--on-field-2); }
.section .phone { box-shadow: 0 40px 80px -36px rgba(20, 30, 26, .45), 0 0 0 1px rgba(255, 255, 255, .06) inset; }
.screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: calc(var(--pw) * .138);
  background: var(--ground);
  container-type: inline-size;
}
.ui {
  position: absolute; inset: 0;
  font-family: var(--text); font-size: calc(100cqi / 24.375); line-height: 1.3; color: var(--ink);
  font-variant-numeric: tabular-nums;
  padding: 3.4em 1em 1em;
  background: var(--ground);
}
.ui-status {
  position: absolute; inset: 0 0 auto; height: 3.3em; z-index: 3;
  display: flex; justify-content: space-between; align-items: center; padding: 0 1.9em 0 2.1em;
  font-weight: 650; font-size: 1em;
}
.ui-status::after { content: ""; position: absolute; left: 50%; top: .7em; width: 7.8em; height: 2.2em; margin-left: -3.9em; border-radius: 99em; background: #000; }
.ui-status .bars { display: flex; gap: .3em; align-items: center; }
.ui-status .bars i { display: block; width: 1.05em; height: .62em; border-radius: .2em; background: currentColor; opacity: .9; }
.ui-status .bars i:first-child { width: 1.05em; clip-path: polygon(0 100%, 100% 0, 100% 100%); border-radius: .1em; }
.ui-status .bars i:last-child { width: 1.6em; border-radius: .25em; }

.ui-top { display: flex; justify-content: space-between; align-items: center; margin: .2em 0 .35em; }
.ui-top .round { display: inline-grid; place-items: center; width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--card); box-shadow: 0 .1em .4em rgba(0, 0, 0, .06); }
.ui-top .round .ico { width: 1.1em; height: 1.1em; }
.ui-top .rounds { display: flex; gap: .5em; margin-left: auto; }
.ui-back { display: inline-flex; align-items: center; gap: .2em; color: var(--c, var(--accent)); font-size: 1.0625em; }
.ui-back .ico { width: 1em; height: 1em; transform: rotate(180deg); }
.ui-title { font-size: 2.125em; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .35em; }
.ui-h { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1em; font-weight: 750; margin: 0 0 .5em; }
.ui-h a, .ui-h span { font-size: .82em; font-weight: 550; color: var(--c, var(--accent)); text-decoration: none; }
.ui-card { background: var(--card); border-radius: 1.1em; padding: .9em 1em; margin-bottom: .75em; }
.ui-muted { color: var(--ink-2); }
.ui-small { font-size: .8125em; }
.ui-big { font-size: 2.1em; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.ui-chip { display: inline-flex; align-items: center; gap: .35em; padding: .3em .7em; border-radius: 99em; font-size: .78em; font-weight: 650; background: var(--accent-soft); color: var(--accent); }
.ui-chip .ico { width: 1.1em; height: 1.1em; }
.ui-pill { display: inline-block; padding: .18em .6em; border-radius: 99em; font-size: .72em; font-weight: 650; background: color-mix(in srgb, var(--d) 16%, transparent); color: var(--ink); }
.ui-row { display: grid; grid-template-columns: auto 1fr auto; gap: .7em; align-items: center; padding: .55em 0; }
.ui-row + .ui-row { border-top: 1px solid var(--sep); }
.ui-row .disc { --size: 2.3em; }
.ui-row b { display: block; font-weight: 650; font-size: .98em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row .ui-small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row .amt { text-align: right; font-weight: 650; font-size: .98em; }
.ui-row .amt .ui-pill { margin-top: .25em; }
.ui-dot { display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--g-home); margin-left: .35em; vertical-align: middle; }
.ui-status-close { color: var(--close); font-weight: 650; }
.ui-status-over { color: var(--over); font-weight: 650; }
.ui-status-close .ico, .ui-status-over .ico { display: inline-block; width: 1em; height: 1em; vertical-align: -.12em; --icon-cut: var(--card); }
.ui-seg { display: flex; gap: .3em; margin: 0 0 .8em; overflow: hidden; }
.ui-seg span { flex: none; padding: .45em .9em; border-radius: 99em; background: var(--card); font-weight: 600; font-size: .9em; }
.ui-seg span.on { background: color-mix(in srgb, var(--c, var(--accent)) 16%, var(--card)); color: var(--c, var(--accent)); }
.ui-bar { height: .38em; border-radius: 99em; background: var(--fill); overflow: hidden; margin-top: .45em; }
.ui-bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--d, var(--accent)); }
.ui-search { display: flex; align-items: center; gap: .4em; padding: .55em .8em; border-radius: .8em; background: var(--fill); color: var(--ink-2); margin-bottom: .8em; }
.ui-search .ico { width: 1em; height: 1em; }

/* Rings: a budget per category, labelled "$x left" / "$x over". Rings never recolour by status. */
.ui-rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3em; text-align: center; }
.ring { position: relative; width: 3.6em; height: 3.6em; margin: 0 auto .35em; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 4.2; }
.ring .track { stroke: var(--fill); }
.ring .val { stroke: var(--d); stroke-linecap: round; stroke-dasharray: var(--p) 100; }
.ring .over { stroke: var(--d); stroke-width: 4.2; stroke-dasharray: 2 2; opacity: .55; }
.ring .disc { position: absolute; inset: 0; margin: auto; --size: 2.3em; }
.ui-rings b { display: block; font-size: .78em; font-weight: 650; }
.ui-rings .ui-small { font-size: .7em; }

/* The floating tab bar */
.ui-tabbar {
  position: absolute; left: .9em; right: .9em; bottom: 1.4em; z-index: 4;
  display: flex; align-items: center; gap: .5em;
}
.ui-tabbar .tabs {
  flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); padding: .35em; border-radius: 99em;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  box-shadow: 0 .3em 1.4em rgba(0, 0, 0, .12), 0 0 0 1px var(--sep) inset;
}
.ui-tabbar .tabs span { display: grid; justify-items: center; gap: .15em; padding: .35em 0; border-radius: 99em; font-size: .62em; font-weight: 600; }
.ui-tabbar .tabs .ico { width: 1.9em; height: 1.9em; }
.ui-tabbar .tabs span.on { color: var(--c, var(--accent)); background: color-mix(in srgb, var(--c, var(--accent)) 12%, transparent); }
.ui-tabbar .search {
  display: grid; place-items: center; width: 3.4em; height: 3.4em; border-radius: 50%;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 .3em 1.4em rgba(0, 0, 0, .12), 0 0 0 1px var(--sep) inset;
}
.ui-tabbar .search .ico { width: 1.3em; height: 1.3em; }

/* Charts drawn from the sample figures written in the markup */
.pace { width: 100%; height: auto; margin: .5em 0 .4em; overflow: visible; }
.pace .budgetline { stroke: var(--ink-2); stroke-width: 1.4; stroke-dasharray: 3 4; fill: none; opacity: .7; }
.pace .spent { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pace .area { fill: color-mix(in srgb, var(--accent) 12%, transparent); }
.pace .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2.5; }
.donut { width: 6.6em; height: 6.6em; transform: rotate(-90deg); flex: none; }
.donut circle { fill: none; stroke-width: 7; }
.donut .track { stroke: var(--fill); }
.donut .val { stroke: var(--budget); stroke-linecap: round; stroke-dasharray: var(--p) 100; }

/* Receipt contact card */
.snap {
  width: 15.5em; margin: .2em auto .5em; border-radius: 1.4em; overflow: hidden;
  border: .18em solid var(--vault); background: #FBF8F1; color: #222;
  font: 600 .62em/1.4 ui-monospace, "SF Mono", Menlo, monospace; padding: .8em 1em; white-space: nowrap;
}
.snap-cap { text-align: center; }
.ui-kv { display: grid; grid-template-columns: 6.2em 1fr auto; gap: .2em .6em; align-items: center; padding: .55em 0; }
.ui-kv + .ui-kv { border-top: 1px solid var(--sep); }
.ui-kv span:first-child { color: var(--ink-2); font-size: .9em; }
.ui-kv b { font-weight: 650; font-size: .95em; }
.ui-kv .ok { color: var(--g-food); width: 1.05em; height: 1.05em; --icon-cut: var(--card); }
.ui .ui-fill { background: var(--c, var(--accent)); color: #fff; }
@media (prefers-color-scheme: dark) { .ui .ui-fill { color: #0B0B0C; } }
.ui-tint-btn { display: block; text-align: center; padding: .8em; border-radius: 99em; background: var(--vault); color: #fff; font-weight: 700; margin-top: .6em; }
@media (prefers-color-scheme: dark) { .ui-tint-btn { color: #1A1003; } }

/* Assistant */
.bubble { max-width: 82%; padding: .6em .85em; border-radius: 1.2em; margin-bottom: .55em; font-size: .95em; line-height: 1.35; }
.bubble.me { margin-left: auto; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: .35em; }
.bubble.it { background: var(--card); border-bottom-left-radius: .35em; }
.bubble .fig { font-weight: 750; }
.src { display: flex; gap: .4em; flex-wrap: wrap; margin-top: .5em; }
.src span { display: inline-flex; align-items: center; gap: .3em; padding: .25em .55em; border-radius: .6em; background: var(--fill); font-size: .78em; font-weight: 600; }
.src .ico { width: 1em; height: 1em; color: var(--vault); }
.ask { position: absolute; left: .9em; right: .9em; bottom: 1.4em; display: flex; align-items: center; gap: .5em; padding: .75em 1em; border-radius: 99em; background: var(--card); box-shadow: 0 .2em 1em rgba(0, 0, 0, .1); color: var(--ink-2); }
.ask .ico { width: 1.1em; height: 1.1em; color: var(--accent); }
.suggest { display: grid; gap: .45em; }
.suggest span { padding: .65em .85em; border-radius: 1em; background: var(--card); font-weight: 550; font-size: .95em; }

/* Story layers: one phone, several screens, pushed like navigation */
.layers { position: absolute; inset: 0; }
.layers .ui { transition: transform .7s var(--ease), opacity .5s var(--ease); }
.js .layers .ui:not(.is-on) { opacity: 0; transform: translateX(14%); pointer-events: none; }
.js .layers .ui.was-on { transform: translateX(-10%); }
@media (prefers-reduced-motion: reduce) { .layers .ui { transition: opacity .3s linear; transform: none !important; } }
.layers .ui:not(:first-child) { visibility: visible; }
html:not(.js) .layers .ui:not(:last-child) { display: none; }
.sync-banner { display: flex; align-items: center; gap: .5em; padding: .55em .8em; border-radius: .9em; background: color-mix(in srgb, var(--budget) 12%, var(--card)); color: var(--ink); font-size: .85em; font-weight: 600; margin-bottom: .7em; }
.sync-banner .ico { width: 1.1em; height: 1.1em; color: var(--budget); }
.sheet { position: absolute; inset: auto 0 0; padding: 1.2em 1.1em 2.2em; border-radius: 1.8em 1.8em 0 0; background: var(--card); box-shadow: 0 -.4em 2em rgba(0, 0, 0, .18); }
.sheet .grab { width: 2.6em; height: .32em; border-radius: 99em; background: var(--fill); margin: -.4em auto .9em; }
.dim::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .28); }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25em; }
.thumbs span { aspect-ratio: 1; border-radius: .3em; background: linear-gradient(160deg, #d9d4c7, #b7ae9b); }
.thumbs span.pick { outline: .2em solid var(--vault); outline-offset: -.2em; background: #FBF8F1; }
.share-row { display: flex; gap: .9em; overflow: hidden; padding: .3em 0; }
.share-row span { display: grid; justify-items: center; gap: .3em; font-size: .7em; font-weight: 600; flex: none; width: 5.2em; }
.share-row img, .share-row i { width: 4.2em; height: 4.2em; border-radius: 1em; display: block; background: var(--fill); }
.share-row img { background: none; }

/* ---- Review pass: pressed feedback, scroll reveal, flush sections ---- */
.section-flush { padding-top: 0; }
.ui-card-tight { padding: .2em 1em; }
@media (prefers-reduced-motion: no-preference) {
  .nav-links a, .steps button, .next { transition-property: background-color, transform; }
  .nav-links a:active, .steps button:active { transform: scale(.97); }
  .next:active { transform: translateY(0) scale(.99); }
  /* site.js adds .reveal-ready only when it can also show the content again, so a failed script never hides a page */
  .reveal-ready [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-ready [data-reveal].is-revealed { opacity: 1; transform: none; }
}

/* ---- Motion: list items rise in turn, icon discs settle, cards lift on hover ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .list > li { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal-ready .is-revealed.list > li, .reveal-ready .is-revealed .list > li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 80ms + 120ms); }
  .reveal-ready .list > li .disc { transform: scale(.85); transition: transform .6s var(--ease); }
  .reveal-ready .is-revealed.list > li .disc, .reveal-ready .is-revealed .list > li .disc { transform: none; transition-delay: calc(var(--i, 0) * 80ms + 200ms); }
  @media (hover: hover) { .reveal-ready .is-revealed.list > li:hover { transform: translateY(-2px); transition-delay: 0s; transition-duration: .25s; } }
}
