/* The home page (index.html only), loaded after site.css, which gives the basics, the brand and the footer. The farm is
   the stage: full-bleed and drifting in the hero and the close, with the real app rising out of it, and each core line
   gets a screen of its own on full-bleed sheets (milk, scrim, Pasture, hay, the farm) that slide up over each other.
   Every color is a token from tokens.css, or a color-mix() of tokens. Components are the design system's cow- classes,
   placed and sized here, never restyled beyond that. Motion plays for everyone, Reduce Motion included (the owner's
   decision, October 11, 2026): time-based moments play once, scroll-linked ones follow the scroll, and only the farm's
   drift loops. The HTML holds every finished state, which is what people see without JavaScript; home.js only adds
   the before-states, and only to things below the first screen. Regions (region:NAME) let each section be polished on
   its own: index.html, home.css and home.js share the names. */

/* region:base */
/* STYLE CONTRACT. Read this before changing a section; everything here is shared.

   Custom properties (on :root; dark values follow the visitor's setting, below). Some are the design system's web
   tokens from tokens.css (October 14, 2026); the rest are still written here, and move onto tokens only where they
   render the same, pixel for pixel:
     Page:     --page-x (--size-page-wide, 1320px: the widest a section's .wrap gets), --top-h (the header's height, for
               pinned stages)
     Sheets:   --sheet-r (--radius-sheet, 28px; --radius-sheet-wide, 40px from 720px wide), --sheet / --sheet-ink /
               --sheet-dim (the statement's light sheet: milk and ink by day, a deep green-black and milk at night;
               --sheet-ink is tokens.css's own; --sheet-dim is an unlit word, still 3:1), --sheet-2 (the features
               sheet), --hero-floor (the solid ground the hero's farm sinks into)
     Display:  --display-hero (the H1), --display-xl (the statement), --display-l (big lines: No homework, Read-only,
               Coming soon), --display-m (section titles: Every dollar has a job, the price title), --display-price
               ($64.99): the design system's --size-display-hero, -statement, -line, -section and -price. With
               --display-lh (.94) and --display-track (-.045em). All weight 700, never heavier.
     Hay:      --marker (hay behind ink on light grounds, or under milk on dark), with --marker-y and --marker-h (where it
               sits and how thick: a band behind the words by day, a thin stroke under them at night), --hay-glow (the
               beta buttons' glow).
               Hay is text only on dark grounds; on light grounds it's a fill or a marker behind ink text.
     Glass:    --glass-bg (--glass), --glass-line, --glass-ink (tokens.css's own; the floating header and panels over
               the farm), --glass-dark (--glass-tint) and --glass-dark-line (--glass-tint-line: cards and chips on dark
               grounds)
     Depth:    --lift (product art floating over a ground), --lift-soft (smaller pieces), on top of the design
               system's one --shadow-float
     Motion:   --ease-expo (arrivals), --ease-soft (fades and blurs), --ease-pop (Cash, buttons that pop in),
               --dur-count (420ms, the design system's count), --dur-in (.9s, a reveal)

   Utilities:
     .slab           a full-bleed sheet that slides up over the section before (rounded top, -sheet-r overlap; at night a
                     lit top edge and an upward shadow). Give each slab a z-index above the one before it.
     .btn-hay        the free beta's hay button (with .cow-btn .cow-btn-primary in the hero and close, alone in the
                     header): its fill, hay-ink text and glow are in site.css (the FAQ uses it too); here, one sheen.
     .chips          glass requirement chips on dark grounds.
     .phone          an iPhone drawn in CSS around a real screenshot (.phone-screen > picture); --pw sets its width.
     .on-dark        any dark ground: focus rings turn milk (add it to a section, or use a section's own rule).

   The reveal system (region:motion): home.js marks what starts below the first screen with .will-in, then adds
   .is-in once it comes into view. A section opts in with attributes, and its function calls reveal(section):
     [data-reveal]   fades up 32px; siblings follow each other a beat apart (--d, set by home.js).
     [data-words]    a big line that rises word by word through masks (.mw > span, staggered 90ms by --i).
     .draw           an SVG path (pathLength="1") inside a revealed element draws itself.
   Anything else a section wants to stage on arrival hangs off its own .will-in / .is-in selectors, scoped to the
   section. Never hide something in CSS alone: the hidden state must need .will-in, so it never applies without JS.
   Arrival transitions go on .will-in.is-in, never on .will-in alone, so taking the before-state never animates.

   Scrubbed scenes: home.js writes --p (0 to 1) on the element; CSS turns it into motion. --p's default in CSS is the
   finished state (1), so without JS, or before the script runs, everything is in place. A piece that arrives inside a
   window of the scroll uses --t: clamp(0, (var(--p) - var(--a)) / var(--w), 1), with --a where it starts and --w how
   long it takes. latch() keeps the furthest --p, so a story plays once; the hero's --p follows the scroll both ways.

   Pinned scenes: home.js adds .is-pinned to a section only when its stage fits the screen (fits()), never on phones,
   short screens or portrait tablets; a pinned section's track is 150vh at most, and its stage is sticky. Otherwise the
   scene plays once as it comes in. Each pinned section's region also unpins it in CSS under 720px wide or 620px tall.

   The script (home.js). base: ready(), clamp(), $(), $$(), view(), money() (whole dollars, true minus), fine (a
   mouse or trackpad), onScroll(job) (one passive listener, once a frame). motion: count(from, to, draw, ms = 420)
   (eases out; returns a stop function), replay(el, class), once(el, run, threshold), below(el) (starts below the
   first screen: the only things that may get before-states), trackProgress(track, lead), riseProgress(el, to),
   passProgress(el, from, to), latch(el, measure, draw) (writes the furthest --p), fits(section, content, onUnpin)
   (adds .is-pinned when the content fits under the header; never under 720px wide or 620px tall or on a portrait
   tablet; checked again on resize, which only ever unpins, calling onUnpin), splitWords(el, class),
   reveal(section, onIn), offsetIn(el, ancestor) (layout position, ignoring transforms) and farm(box, where) (the
   drift, Cash in the hayloft at 24px or more, one peek; returns { pause(on) }). A section's script is one function
   named after it, in its own region, called once from boot in page order. It finds its own root, returns quietly if
   that's missing, registers scroll work with onScroll() or latch() and arrivals with reveal() or once(), and touches
   nothing outside its section (the header reads the hero's and close's [data-cta] buttons, which is the one
   cross-section contract: keep data-cta on the element around each beta button; it also hit-tests the section under
   the bar for [data-ground="hay"] or [data-ground="dark"] to pick its glass: mark a new dark or hay sheet). The hero's
   and header's beta buttons sheen once as they first show; the close's sheens as it arrives (its .close-act keeps
   [data-reveal] but is staged by close() with .will-in/.is-in). */
:root {
  --page-x: var(--size-page-wide);
  --top-h: calc(env(safe-area-inset-top) + 76px);
  --sheet-r: var(--radius-sheet);
  --sheet: var(--milk);
  --sheet-dim: color-mix(in oklab, var(--ink) 38%, var(--milk));
  --sheet-2: var(--milk);
  --hero-floor: color-mix(in oklab, var(--scrim) 84%, var(--pasture-deep));
  --display-hero: var(--size-display-hero);
  --display-xl: var(--size-display-statement);
  --display-l: var(--size-display-line);
  --display-m: var(--size-display-section);
  --display-price: var(--size-display-price);
  --display-lh: .94;
  --display-track: -.045em;
  --marker: color-mix(in oklab, var(--hay) 58%, var(--milk));
  --marker-y: 88%;
  --marker-h: .3em;
  --hay-glow: 0 14px 34px -12px color-mix(in oklab, var(--hay) 72%, transparent);
  --glass-bg: var(--glass);
  --glass-line: color-mix(in srgb, var(--pasture-detail) 46%, transparent);
  --glass-dark: var(--glass-tint);
  --glass-dark-line: var(--glass-tint-line);
  --lift: 0 2px 6px color-mix(in srgb, var(--scrim) 10%, transparent),
    0 36px 72px -24px color-mix(in srgb, var(--scrim) 42%, transparent);
  --lift-soft: 0 1px 2px color-mix(in srgb, var(--scrim) 8%, transparent),
    0 22px 44px -18px color-mix(in srgb, var(--scrim) 30%, transparent);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.34, 1.5, .64, 1);
  --dur-count: 420ms;
  --dur-in: .9s;
}
@media (min-width: 720px) { :root { --sheet-r: var(--radius-sheet-wide); } }
@media (min-width: 1100px) { :root { --gx: max(48px, env(safe-area-inset-left), env(safe-area-inset-right)); } }
@media (prefers-color-scheme: dark) {
  :root {
    --sheet: color-mix(in oklab, var(--pasture-deep) 38%, var(--scrim));
    --sheet-dim: color-mix(in oklab, var(--milk) 40%, var(--sheet));
    --sheet-2: var(--surface);
    /* At night the marker is a thin, bright hay stroke under the words, like the trust title's, not a band behind them. */
    --marker: var(--hay);
    --marker-y: 100%;
    --marker-h: .09em;
    --glass-line: color-mix(in srgb, var(--pasture-detail) 24%, transparent);
    --lift: 0 2px 6px color-mix(in srgb, var(--scrim) 60%, transparent), 0 36px 72px -24px color-mix(in srgb, var(--scrim) 90%, transparent);
    --lift-soft: 0 1px 2px color-mix(in srgb, var(--scrim) 50%, transparent), 0 22px 44px -18px color-mix(in srgb, var(--scrim) 80%, transparent);
  }
}

.home { background: var(--canvas); }
.home main { overflow-x: clip; }
.home .wrap { max-width: var(--page-x); }
.on-dark :focus-visible { outline-color: var(--milk); }

/* A full-bleed sheet that slides up over the section before it. At night each one gets a lit top edge and casts a soft
   shadow up onto the sheet it covers, so dark sheets still read as separate sheets. */
.slab { position: relative; margin-top: calc(-1 * var(--sheet-r)); border-radius: var(--sheet-r) var(--sheet-r) 0 0; }
@media (prefers-color-scheme: dark) {
  .slab { box-shadow: inset 0 1px 0 color-mix(in srgb, var(--milk) 12%, transparent),
    0 -26px 50px -22px color-mix(in srgb, var(--scrim) 92%, transparent); }
}

/* The free beta's button (site.css: hay with hay-ink text, the design system's primary being ink, and a soft glow); here
   a sheen crosses it once as the page opens. */
@property --sheen { syntax: "<percentage>"; inherits: false; initial-value: 150%; }
.btn-hay { box-shadow: var(--hay-glow);
  background-image: linear-gradient(110deg, transparent calc(var(--sheen) - 18%), color-mix(in srgb, var(--milk) 60%, transparent) var(--sheen),
    transparent calc(var(--sheen) + 18%)); }
.cow-btn.btn-hay { min-height: 56px; padding: 0 var(--space-32); animation: sheen 1.3s var(--ease-soft) 2.4s both; }

/* Glass chips on dark grounds: the requirements beside each beta button. */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-8); padding: 0; list-style: none; }
.chips li { padding: 6px var(--space-12); border: 1px solid var(--glass-dark-line); border-radius: var(--radius-capsule);
  background: color-mix(in srgb, var(--scrim) 36%, transparent); color: var(--milk);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* An iPhone drawn in CSS around a real screenshot. --pw is its width. */
.phone { position: relative; width: var(--pw, 300px); padding: calc(var(--pw, 300px) * .03); border-radius: calc(var(--pw, 300px) * .165);
  background: linear-gradient(150deg, color-mix(in oklab, var(--scrim), var(--milk) 26%) 0%, var(--scrim) 22%, var(--scrim) 78%,
    color-mix(in oklab, var(--scrim), var(--milk) 16%) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--milk) 24%, transparent), 0 0 0 1px color-mix(in srgb, var(--scrim) 70%, transparent),
    var(--lift); }
.phone-screen { position: relative; overflow: hidden; border-radius: calc(var(--pw, 300px) * .136); aspect-ratio: 720 / 1565; background: var(--canvas); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
/* /region:base */

/* region:motion */
/* Shared keyframes. Each one starts from a before-state and ends in the element's own (finished) styles. */
@keyframes mask-up { from { transform: translateY(112%); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } }
@keyframes blur-in { from { opacity: 0; filter: blur(10px); transform: translateY(.4em); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes bloom { from { opacity: 0; transform: scale(.55); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.7); } }
@keyframes pop { 40% { transform: scale(1.14); } }
@keyframes hop { 30% { transform: translateY(-22px); } 55% { transform: translateY(0); } 72% { transform: translateY(-7px); } 86% { transform: translateY(0); } }
@keyframes row-glow { from { background-color: color-mix(in srgb, var(--hay) 45%, var(--surface)); } }
@keyframes sheen { from { --sheen: -50%; } to { --sheen: 150%; } }
.pop { display: inline-block; animation: pop .5s cubic-bezier(.3, .7, .4, 1); }
.hop { animation: hop .9s cubic-bezier(.3, .7, .4, 1) .1s; }

/* A word in a clipping window: the hero's headline as it opens, big lines as they come into view. */
.mw { display: inline-block; overflow: clip; padding: .06em .05em .16em; margin: -.06em -.05em -.16em; vertical-align: top; }
.mw > span { display: inline-block; }

/* The reveal system (see the contract): .will-in is the before-state, taken at once (no transition, so nothing on
   screen ever animates away), and .is-in the arrival, which carries the transition. */
.will-in.is-in { transition: opacity var(--dur-in) var(--ease-expo) var(--d, 0s), translate 1s var(--ease-expo) var(--d, 0s); }
.will-in:not(.is-in) { opacity: 0; translate: 0 32px; }
[data-words].will-in:not(.is-in) { opacity: 1; translate: none; }
[data-words].will-in.is-in .mw > span { transition: translate 1.05s var(--ease-expo) calc(var(--d, 0s) + var(--i, 0) * 90ms); }
[data-words].will-in:not(.is-in) .mw > span { translate: 0 112%; }
.draw { stroke-dasharray: 1; }
.will-in.is-in .draw { transition: stroke-dashoffset .7s var(--ease-expo) calc(var(--d, 0s) + .45s + var(--i, 0) * 120ms); }
.will-in:not(.is-in) .draw { stroke-dashoffset: 1; }

/* The farm, drifting sideways like the app's welcome screen (home.js lays out the strip and moves it). Day in light
   mode, night in dark mode. */
.farm-strip { position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: url("/img/farm-day.webp") 0 50% / cover no-repeat;
  background-image: image-set(url("/img/farm-day.avif") type("image/avif"), url("/img/farm-day.webp") type("image/webp")); }
@media (prefers-color-scheme: dark) {
  .farm-strip { background-image: url("/img/farm-night.webp");
    background-image: image-set(url("/img/farm-night.avif") type("image/avif"), url("/img/farm-night.webp") type("image/webp")); }
}
/* Cash in the barn's hayloft, as in the app: placed by home.js inside the opening, which clips him. */
.loft { position: absolute; overflow: hidden; pointer-events: none; }
.loft img { position: absolute; max-width: none; transform-origin: 50% 100%; }
/* /region:motion */

/* region:header */
/* The header: one capsule that lies flat over the hero and turns to glass once the next sheet slides under it. Its hay
   "Join the free beta" (to the close) stays display: none until home.js turns it on, and then shows only while neither
   the hero's nor the close's button is on screen, so two primaries never show at once. Without JS the header sits at
   the top of the hero and scrolls away with it. */
/* Lying flat, the bar's contents line up with the page's text column (the bar's 12px inset sits in the gutter). */
.top { position: absolute; inset: 0 0 auto; z-index: 50; padding: calc(env(safe-area-inset-top) + 10px) calc(var(--gx) - 12px) 0;
  pointer-events: none; transition: padding .5s var(--ease-expo); }
.top.is-live { position: fixed; }
.top.is-floating { padding-left: max(12px, calc(var(--gx) - 12px)); padding-right: max(12px, calc(var(--gx) - 12px)); }
.top-bar { position: relative; pointer-events: auto; display: flex; align-items: center; gap: var(--space-4); max-width: calc(var(--page-x) - 2 * var(--gx) + 24px);
  min-height: 56px; margin: 0 auto; padding: 5px 6px 5px var(--space-12); border: 1px solid transparent; border-radius: var(--radius-capsule);
  color: var(--milk); isolation: isolate; transition: max-width .5s var(--ease-expo), box-shadow .3s ease; }
.top.is-floating .top-bar { max-width: 1000px; color: var(--glass-ink);
  box-shadow: var(--lift-soft); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4); }
/* The glass is two layers under the words, milk glass (::before) and dark glass (::after), each clipped to the part of
   the bar over its own ground (home.js writes --mk-t/--mk-b and --dk-t/--dk-b, insets in px). As a sheet's edge passes
   under the bar, the edge between the two glasses moves with it, so the capsule never fades through grey. Without JS
   the bar never floats, so neither shows. */
.top-bar::before, .top-bar::after { content: ""; position: absolute; z-index: -1; inset: -1px; border: 1px solid; border-radius: inherit;
  pointer-events: none; opacity: 0; transition: opacity .3s ease; }
.top-bar::before { border-color: var(--glass-line); background: color-mix(in srgb, var(--milk) 80%, transparent);
  clip-path: inset(var(--mk-t, 0px) 0 var(--mk-b, 0px) 0); }
.top-bar::after { border-color: color-mix(in srgb, var(--milk) 16%, transparent); background: color-mix(in srgb, var(--scrim) 64%, transparent);
  clip-path: inset(var(--dk-t, 0px) 0 var(--dk-b, 100%) 0); }
.top.is-floating .top-bar::before, .top.is-floating .top-bar::after { opacity: 1; }
.top:not(.is-floating) :focus-visible { outline-color: var(--milk); }
/* It settles in from above as the page opens. */
.top-bar { animation: top-in .9s var(--ease-expo) .1s both; }
@keyframes top-in { from { opacity: 0; translate: 0 -14px; } }
.top-brand { display: inline-flex; align-items: center; gap: var(--space-10); min-height: var(--size-tap); margin-right: auto; padding-right: var(--space-8);
  border-radius: var(--radius-capsule); color: inherit; text-decoration: none; white-space: nowrap; }
.top-brand img { width: 32px; height: 32px; border-radius: var(--radius-small); }
.top-nav { display: none; gap: var(--space-2); }
.top-nav a, .top-faq { display: inline-flex; align-items: center; min-height: var(--size-tap); padding: 0 var(--space-14);
  border-radius: var(--radius-capsule); color: inherit; font-weight: 500; text-decoration: none; }
.top-nav a:hover, .top-faq:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.top-faq { display: none; }
@media (min-width: 600px) and (max-width: 759px) { .top-faq { display: inline-flex; } }
/* The links sit in the middle of the bar (which stays centered as it narrows), so they never move while the beta
   button shows or hides at the bar's end. */
@media (min-width: 760px) { .top-nav { display: flex; position: absolute; left: 50%; top: 50%; translate: -50% -50%; } }
/* Hidden, it takes no room; as it shows it opens out at the bar's end. */
.top-beta { display: none; min-height: var(--size-tap); margin-left: var(--space-4); padding: 0 var(--space-18); }
.top.is-live .top-beta { display: inline-flex; overflow: hidden; max-width: 0; margin-left: 0; padding: 0;
  opacity: 0; visibility: hidden; transform: scale(.85);
  transition: max-width .5s var(--ease-expo), padding .5s var(--ease-expo), margin .5s var(--ease-expo), opacity .25s ease,
    transform .4s var(--ease-expo), visibility 0s .5s, box-shadow .3s ease; }
.top.is-live.beta-on .top-beta { max-width: 15em; margin-left: var(--space-4); padding: 0 var(--space-18);
  opacity: 1; visibility: visible; transform: none;
  transition: max-width .5s var(--ease-expo), padding .5s var(--ease-expo), margin .5s var(--ease-expo), opacity .3s ease .1s,
    transform .45s var(--ease-expo), visibility 0s, box-shadow .3s ease; }
.top.is-live.beta-on .top-beta:hover { transform: translateY(-2px); }
/* One sheen, the first time it shows (home.js adds .shone after that). */
.top.is-live.beta-on:not(.shone) .top-beta { animation: sheen 1.3s var(--ease-soft) .35s both; }
.top-beta:focus-visible { outline-color: var(--focus); }
.top:not(.is-floating) .top-beta:focus-visible { outline-color: var(--milk); }
/* The glass follows the ground under it (home.js hit-tests it): over a dark sheet ([data-ground="dark"]: the hero, the
   math, the farm's window, the Pasture band, the close) the capsule is dark glass with milk words, as it always is at
   night, since milk glass over a dark sheet turns a dull grey; over the hay price sheet ([data-ground="hay"]) it keeps
   the milk glass of light mode even at night, since dark glass over hay turns muddy. The words take the colour of the
   ground under the bar's middle, at once (a fading colour would go grey too). */
.top.is-floating.on-dark .top-bar { color: var(--milk); }
.top.is-floating.on-dark :focus-visible { outline-color: var(--milk); }
@media (prefers-color-scheme: dark) {
  .top-bar::before { border-color: color-mix(in srgb, var(--hay-ink) 12%, transparent); }
  .top.is-floating.on-hay .top-bar { color: var(--hay-ink); }
  .top.is-floating.on-hay :focus-visible { outline-color: var(--hay-ink); }
}
/* On narrow phones the wordmark steps aside (it's still read out) while the beta button shows. */
@media (max-width: 389px) {
  .top.beta-on .top-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* /region:header */

/* region:hero */
/* The farm, full-bleed and drifting, under the app's evening scrim (farm-day by day, farm-night at night); the promise
   in milk with "safe to spend" in hay; the real Home screen rising out of the farm in a CSS iPhone. As you scroll
   (--p, 0 to 1, both ways), the camera pushes into the farm, the words lift away and the phone rises. On wide screens
   the hero holds still while the statement's sheet slides over it. */
.hero { --p: 0; position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; overflow: clip;
  background: var(--scrim); color: var(--milk); }
.hero :focus-visible { outline-color: var(--milk); }
@media (min-width: 960px) and (min-height: 720px) {
  .hero { position: sticky; top: 0; height: 100vh; height: 100svh; }
}
.hero-farm { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-farm-settle { position: absolute; inset: 0; animation: hero-settle 2.4s var(--ease-expo) both, fade-in .9s ease-out both; }
@keyframes hero-settle { from { transform: scale(1.14); } }
.hero-farm-push { position: absolute; inset: -6% 0; overflow: hidden; scale: calc(1 + var(--p) * .24); translate: 0 calc(var(--p) * 12%);
  transform-origin: 30% 40%; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 46% at 74% 58%, color-mix(in oklab, var(--hay) 14%, transparent), transparent 70%),
    linear-gradient(90deg, color-mix(in oklab, var(--scrim) 86%, transparent) 0%, color-mix(in oklab, var(--scrim) 74%, transparent) 36%,
      color-mix(in oklab, var(--scrim) 24%, transparent) 60%, color-mix(in oklab, var(--scrim) 8%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--scrim) 55%, transparent), transparent 22%); }
.hero-scrim::after { content: ""; position: absolute; inset: 0; background: var(--scrim); opacity: calc(var(--p) * .6); }
.hero-mist { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 24%; pointer-events: none;
  background: linear-gradient(to top, var(--hero-floor) 0%, color-mix(in oklab, var(--hero-floor) 55%, transparent) 42%, transparent); }

.hero-inner { position: relative; padding-top: calc(env(safe-area-inset-top) + 120px);
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); column-gap: var(--space-32); align-items: center; }
.hero-copy { position: relative; z-index: 3; padding-bottom: clamp(64px, 12vh, 140px); }
.hero-pill { display: inline-flex; align-items: center; min-height: 32px; margin-bottom: var(--space-24); padding: 0 var(--space-14);
  border: 1px solid color-mix(in srgb, var(--milk) 30%, transparent); border-radius: var(--radius-capsule);
  background: color-mix(in srgb, var(--milk) 14%, transparent); font-weight: 600;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: rise-in .7s var(--ease-expo) .05s both; }
.hero-title { font-weight: 700; font-size: var(--display-hero); line-height: var(--display-lh); letter-spacing: -.04em; }
.hero-title .mw > span { animation: mask-up 1s var(--ease-expo) .12s both; }
.hero-title .mw:nth-child(2) > span { animation-delay: .2s; }
.hero-key { white-space: nowrap; }
/* The key phrase in hay (hay text on a dark ground), with a milk light that sweeps across it once. */
@property --sweep { syntax: "<percentage>"; inherits: false; initial-value: 150%; }
.hero-title .hero-key > span { color: var(--hay); animation-delay: .3s; }
@supports (background-clip: text) or (-webkit-background-clip: text) {
  .hero-title .hero-key > span {
    background-image:
      linear-gradient(100deg, transparent calc(var(--sweep) - 18%), color-mix(in srgb, var(--milk) 88%, transparent) var(--sweep), transparent calc(var(--sweep) + 18%)),
      linear-gradient(100deg, var(--hay) 0%, color-mix(in oklab, var(--hay) 62%, var(--milk)) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: mask-up 1s var(--ease-expo) .3s both, sweep 1s cubic-bezier(.3, .6, .2, 1) .7s both; }
}
@keyframes sweep { from { --sweep: -50%; } to { --sweep: 150%; } }
@media (forced-colors: active) { .hero-title .hero-key > span { background: none; color: CanvasText; } }
.hero-lede { max-width: 30ch; margin-top: var(--space-24); font-size: clamp(1.125rem, .9rem + .7vw, 1.5rem); line-height: 1.38;
  color: color-mix(in srgb, var(--milk) 92%, transparent); text-wrap: pretty; animation: blur-in .9s var(--ease-soft) .45s both; }
.hero-act { margin-top: var(--space-32); }
/* The last beat: the light that crossed "safe to spend" crosses the button. */
.hero-act > * { animation: rise-in .9s var(--ease-expo) .6s both; }
.hero-act > :nth-child(2) { animation-delay: .68s; }
.hero-act > :nth-child(3) { animation-delay: .76s; }
.hero-act > .btn-hay { animation: rise-in .9s var(--ease-expo) .6s both, sheen .85s var(--ease-soft) 1.05s both; }
.hero-note { max-width: 44ch; margin-top: var(--space-12); color: color-mix(in srgb, var(--milk) 88%, transparent); text-wrap: balance; }
.hero-reqs { margin-top: var(--space-16); }

.hero-phone { --pw: clamp(250px, 24vw, 350px); position: relative; z-index: 1; isolation: isolate; align-self: end; justify-self: center;
  display: flex; flex-direction: column; align-items: center; margin-bottom: calc(var(--pw) * -.95); }
.hero-phone::before { content: ""; position: absolute; z-index: -1; inset: -12% -60% 18%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--pasture-detail) 46%, transparent),
    color-mix(in oklab, var(--hay) 22%, transparent) 55%, transparent);
  animation: bloom 1.5s var(--ease-soft) .5s both; }
.hero-phone-rise { animation: phone-rise 1.3s var(--ease-expo) .2s both; }
@keyframes phone-rise { from { opacity: 0; transform: translateY(30%); } }
/* On a computer the phone leans a little toward the pointer (home.js sets --rx and --ry). */
.hero-phone-tilt { transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .8s var(--ease-soft); }

@media (min-width: 960px) {
  /* The words are gone before they reach the header's row. */
  .hero-copy { translate: 0 calc(var(--p) * -16vh); opacity: clamp(0, 1 - var(--p) * 1.6, 1); }
  /* The pill fades faster than the words lift, so it never passes under the flat header's wordmark. */
  .hero-pill { opacity: clamp(0, 1 - var(--p) * 4, 1); }
  .hero-phone { translate: 0 calc(var(--p) * -22vh); }
  /* The phone stands on the statement's sheet: it ends in the gap just under the Groceries envelope (the screenshot's
     1328 to 1346 of 1565, pw * 1.763 to 1.787 down the phone), right where the sheet's edge is, so the first screen
     shows the envelopes and no row is ever half covered. It's sized to the screen's height, so its top lines up with the
     headline's. The words keep their place at the top. */
  .hero-inner { min-height: 100vh; min-height: 100svh; }
  .hero-copy { align-self: start; }
  .hero-phone { --pw: clamp(220px, min(26vw, (100svh - 272px) / 1.775), 440px); z-index: 3; align-self: end; margin: 0 0 var(--sheet-r); }
  .hero-phone-rise { height: calc(var(--pw) * 1.775); clip-path: inset(-20% -60% 0 -60%); }
}
/* Phones and tablets: one column, centered. The phone comes right under the headline and lede, before the beta (the
   owner's decision, October 11, 2026), and sinks into a solid floor that holds the beta, so the farm never shows
   through the screenshot. */
@media (max-width: 959px) {
  .hero { min-height: 0; }
  .hero-title { font-size: min(12.4vw, 6rem); }
  .hero-inner { grid-template-columns: minmax(0, 1fr); padding-top: calc(env(safe-area-inset-top) + 92px); padding-bottom: calc(var(--sheet-r) + var(--space-48));
    text-align: center; justify-items: center; }
  .hero-copy { display: contents; }
  .hero-copy > * { position: relative; z-index: 3; }
  .hero-lede { margin-left: auto; margin-right: auto; }
  /* The crop: the phone shows the Safe to spend card, then Checking available and Set aside in envelopes, and sinks
     into the floor in the middle of the gap under them (the screenshot's 711 to 729 of 1565: pw * .958 to .982 down
     the phone), so no row is ever half covered. The farm beside it fades into the same floor behind the phone (::after). */
  /* Sized by the screen's height too, so on short phones the beta button still clears the first screen. */
  .hero-inner { --pw: max(150px, min(62vw, 340px, (100svh - 444px) / .97)); --sink: calc(var(--pw) * .06); }
  .hero-phone { --pw: inherit; order: 1; align-self: start; margin: var(--space-24) 0 0; overflow-x: visible; overflow-y: clip; }
  .hero-phone-rise { height: calc(var(--pw) * .97); }
  .hero-phone::before { inset: 4% -46% 16%; }
  .hero-phone::after { content: ""; position: absolute; z-index: -1; left: 50%; bottom: 0; width: 100vw; height: calc(var(--pw) * .62);
    translate: -50% 0; pointer-events: none; background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--hero-floor) 70%, transparent) 60%, var(--hero-floor)); }
  /* The floor is solid where the phone sinks into it, then lets the farm show faintly behind the beta. */
  .hero-act { order: 2; z-index: 4; display: grid; justify-items: center; margin-top: calc(-1 * var(--sink)); padding-top: calc(var(--sink) + var(--space-24));
    border-image: linear-gradient(180deg, transparent, var(--hero-floor) var(--sink), color-mix(in oklab, var(--hero-floor) 84%, transparent) calc(var(--sink) + 96px))
      fill 0 / / 0 100vw 60vh; }
  .hero-note { margin-left: auto; margin-right: auto; }
  .hero-reqs { justify-content: center; }
  .hero-scrim { background:
      linear-gradient(180deg, color-mix(in oklab, var(--scrim) 86%, transparent) 0%, color-mix(in oklab, var(--scrim) 74%, transparent) 30%,
        color-mix(in oklab, var(--scrim) 26%, transparent) 46%, color-mix(in oklab, var(--scrim) 30%, transparent) 70%,
        color-mix(in oklab, var(--hero-floor) 84%, transparent) 100%); }
  .hero-mist { display: none; }
}
@media (min-width: 600px) and (max-width: 959px) {
  .hero-inner { padding-bottom: calc(var(--sheet-r) + var(--space-24)); }
}
/* Short phones: a little less room above the phone, so the beta shows on the first screen. */
@media (max-width: 959px) and (max-height: 700px) {
  .hero-inner { padding-top: calc(env(safe-area-inset-top) + 76px); }
  .hero-pill { margin-bottom: var(--space-14); }
  .hero-lede { margin-top: var(--space-14); }
  .hero-phone { margin-top: var(--space-14); }
}
/* /region:hero */

/* region:statement */
/* "Budgeting that won't wear you out", centered at display size and lit word by word as you scroll (home.js), with hay
   markers drawing under the promise and the one number. Pinned only where its stage fits (home.js adds .is-pinned). */
.statement { position: relative; z-index: 4; background: var(--sheet); color: var(--sheet-ink); }
.statement-stage { display: grid; align-items: center; padding: clamp(104px, 15vh, 168px) 0 calc(var(--sheet-r) + clamp(96px, 14vh, 160px)); }
.statement.is-pinned { height: 150vh; }
.statement.is-pinned .statement-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: var(--top-h) 0 var(--sheet-r); }
.statement-inner { text-align: center; }
.statement-title { max-width: 11ch; margin: 0 auto; font-weight: 700; font-size: var(--display-xl); line-height: var(--display-lh);
  letter-spacing: var(--display-track); text-wrap: balance; }
.statement-line { max-width: 22ch; margin: clamp(24px, 4vh, 44px) auto 0; font-weight: 700; font-size: clamp(1.5rem, 1rem + 2.2vw, 3.1rem);
  line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
@property --mk { syntax: "<number>"; inherits: false; initial-value: 1; }
.statement .mark { background: linear-gradient(var(--marker), var(--marker)) 0 var(--marker-y) / calc(var(--mk, 1) * 100%) var(--marker-h) no-repeat;
  -webkit-box-decoration-break: slice; box-decoration-break: slice; }
.statement.is-live .mark { transition: --mk .5s var(--ease-soft); }
/* Unlit words wait a touch low and dim; each one rises into place as it lights. */
.statement .lw { display: inline-block; transition: color .4s ease, translate .6s var(--ease-expo); }
.statement.is-lighting .lw { color: var(--sheet-dim); translate: 0 .07em; }
.statement.is-lighting .lw.is-lit { color: var(--sheet-ink); translate: none; }
/* Pinned, the whole statement settles toward you as it lights (a slow push-in, kept once reached). */
.statement.is-pinned .statement-inner { scale: calc(.94 + .06 * var(--p, 1)); }
/* Never pinned on a narrow or short screen, even if the window changed after the script decided (home.js also unpins). */
@media (max-width: 719px), (max-height: 619px) {
  .statement.is-pinned { height: auto; }
  .statement.is-pinned .statement-stage { position: static; height: auto; padding: clamp(104px, 15vh, 168px) 0 calc(var(--sheet-r) + clamp(96px, 14vh, 160px)); }
}
/* /region:statement */

/* region:math */
/* "Every dollar has a job": the one number worked out at full size on scrim, with example numbers. Checking, then each
   envelope lands and takes its share while what's set aside counts up and the big glass drains, then the Safe to spend
   card arrives at $1,450 (home.js, one real state at a time). Then Try it: +$50 on each envelope. Without JS it's the
   finished equation, with no buttons. */
.math { z-index: 5; background: var(--scrim); color: var(--milk); }
.math :focus-visible { outline-color: var(--milk); }
.math-stage { display: grid; align-content: center; padding: clamp(96px, 13vh, 150px) 0 calc(var(--sheet-r) + clamp(56px, 9vh, 112px));
  border-radius: inherit;
  background:
    radial-gradient(52% 60% at 88% 14%, color-mix(in oklab, var(--pasture) 70%, transparent), transparent 72%),
    radial-gradient(40% 40% at 36% 50%, color-mix(in oklab, var(--pasture-deep) 46%, transparent), transparent 80%),
    var(--scrim);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--milk) 9%, transparent); }
.math.is-pinned { height: 150vh; }
/* The features sheet overlaps the stage's bottom by --sheet-r, so the bottom padding clears it, with room for Start
   over's focus ring (3px, 3px out) once the done line shows. fits() in home.js counts the same padding. */
.math.is-pinned .math-stage { position: sticky; top: 0; height: 100vh; height: 100svh; padding: calc(var(--top-h) + var(--space-4)) 0 calc(var(--sheet-r) + var(--space-12)); }
@media (max-width: 719px), (max-height: 619px) {
  .math.is-pinned { height: auto; }
  .math.is-pinned .math-stage { position: static; height: auto; padding: clamp(96px, 13vh, 150px) 0 calc(var(--sheet-r) + clamp(56px, 9vh, 112px)); }
}
.math-grid { display: grid; gap: var(--space-32); }
.math-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-16) var(--space-24); }
.math-title { max-width: 10ch; font-weight: 700; font-size: clamp(2.4rem, 1rem + 4.4vw, 6rem); line-height: var(--display-lh);
  letter-spacing: var(--display-track); text-wrap: balance; }
.math-job { color: var(--hay); }
/* The rule in words, under the title: what the equation beside it works out. */
.math-say { grid-column: 1 / -1; max-width: 32ch; font-size: clamp(1.125rem, .95rem + .55vw, 1.375rem); line-height: 1.38;
  color: color-mix(in srgb, var(--milk) 80%, transparent); text-wrap: pretty; }
/* Its link to the page that explains the number, on a line of its own: milk with a hay underline, the arrow nudging
   on hover. */
.math-more { display: flex; align-items: center; gap: var(--space-8); width: fit-content; min-height: var(--size-tap); margin-top: var(--space-4);
  color: var(--milk); font-weight: 600; text-decoration-color: color-mix(in oklab, var(--hay) 80%, transparent); text-decoration-thickness: 2px;
  text-underline-offset: .24em; }
.math-more .cow-icon { flex: none; width: 1.05em; height: 1.05em; color: var(--hay); stroke-width: 2.2; transition: translate .3s var(--ease-expo); }
.math-more:hover { text-decoration-color: var(--hay); }
.math-more:hover .cow-icon { translate: 3px 0; }
/* Under 960px the glass sits beside the title, and the sentence spans under both. */
.math-glass { grid-column: 2; grid-row: 1; flex: none; width: clamp(64px, 18vw, 104px); height: auto; overflow: visible;
  filter: drop-shadow(0 0 26px color-mix(in srgb, var(--pasture-detail) 34%, transparent)); }
.math-glass-milk { fill: var(--milk); }
.math-glass-outline { fill: none; stroke: var(--pasture-detail); stroke-width: 1.3; stroke-linejoin: round; }
.math-eq { position: relative; display: grid; gap: var(--space-10); }
.math-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-4) var(--space-16);
  padding-bottom: var(--space-12); border-bottom: 1px solid color-mix(in srgb, var(--milk) 14%, transparent); }
.math-label { font: var(--type-title-3); font-weight: 500; color: color-mix(in srgb, var(--milk) 80%, transparent); }
.math-num { font-weight: 700; font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); line-height: 1; letter-spacing: -.04em;
  font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
/* "Try it: tap +$50", big enough to find at a glance: milk, with "tap +$50" over a hay stroke and a hay arrow down to
   the +$50 column (the arrow nods twice as the prompt pops in). It grows with the screen, from 18px to 28px. */
.math-prompt { display: flex; align-items: center; gap: .3em; justify-self: end; margin: 0 var(--space-10) 0 0; color: var(--milk);
  font-weight: 700; font-size: clamp(1.125rem, .7rem + .9vw, 1.75rem); line-height: 1.2; letter-spacing: -.015em; }
.math-prompt > span { white-space: nowrap; }
.math-prompt-try { color: color-mix(in srgb, var(--milk) 82%, transparent); font-weight: 600; }
.math-prompt-mark { position: relative; }
.math-prompt-mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.1em; height: .13em; border-radius: var(--radius-capsule);
  background: var(--hay); box-shadow: 0 0 .5em color-mix(in oklab, var(--hay) 45%, transparent); }
.math-prompt .cow-icon { flex: none; width: 1.1em; height: 1.1em; color: var(--hay); stroke-width: 2.4; }
@keyframes math-nod { 25%, 75% { translate: 0 .22em; } 50% { translate: 0 0; } }
.math-prompt.is-open .cow-icon { animation: math-nod 1.1s var(--ease-soft) .5s; }
.math-envs { display: grid; gap: var(--space-8); padding: 0; list-style: none; }
.math-envs .cow-envelope { padding-right: var(--space-10); box-shadow: var(--lift-soft); }
.math-add { flex: none; min-width: 64px; min-height: var(--size-tap); padding: 0 var(--space-12); border: 0; border-radius: var(--radius-control);
  background: var(--mint); color: var(--green); font-weight: 600; cursor: pointer; }
.math-add:active { opacity: var(--opacity-pressed); }
.math-add:disabled { opacity: .45; cursor: default; }
.math-add:focus-visible { outline-color: var(--focus); }
@media (max-width: 379px) {
  .math-label { font: var(--type-headline); font-weight: 500; }
  /* What's set aside keeps the width of its widest real total, so its label wraps the same from the start. */
  .math-aside .math-num { min-width: 3.9em; }
  .math-envs .cow-envelope { gap: var(--space-10); padding-left: var(--space-12); }
  .math-add { min-width: 54px; padding: 0 var(--space-8); }
}
/* The sum line, then the card it adds up to. While the envelopes land, a faint outline holds the card's place, so the
   equation visibly waits for its answer. */
.math-card { position: relative; margin-top: var(--space-8); padding-top: var(--space-16); }
.math-card::after { content: ""; position: absolute; left: 0; right: 0; top: var(--space-16); bottom: 0; border: 1.5px dashed var(--glass-dark-line);
  border-radius: var(--radius-card); pointer-events: none; opacity: 0; transition: opacity .4s ease; }
.math-card.is-off::after { opacity: 1; }
.math-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--hay), color-mix(in oklab, var(--hay) 30%, transparent)); }
.math-card .cow-sts { box-shadow: 0 0 0 1px color-mix(in srgb, var(--pasture-detail) 24%, transparent),
  0 30px 70px -26px color-mix(in oklab, var(--pasture-detail) 46%, transparent); }
.math-done { padding: var(--space-10) var(--space-14); border-radius: var(--radius-control); background: var(--mint); color: var(--green);
  font-weight: 600; text-align: center; animation: rise-in .45s var(--ease-soft) both; }
.math-foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--space-12); min-height: var(--size-tap);
  color: color-mix(in srgb, var(--milk) 80%, transparent); }
.math-foot .cow-btn-quiet { padding: 0; color: var(--milk); text-decoration: underline; text-underline-offset: .18em; }
@media (min-width: 720px) {
  .math-card .cow-sts { zoom: 1.25; }
}
@media (min-width: 960px) {
  .math-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: var(--space-64); align-items: center; }
  .math-head { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: var(--space-20); }
  .math-glass { grid-column: auto; grid-row: auto; margin-top: var(--space-24); }
  .math-title { max-width: none; font-size: clamp(4rem, 1rem + 5vw, 6.5rem); }
  .math-glass { width: clamp(140px, 13vw, 224px); }
  /* The bigger prompt tucks into the rows' spacing, so the stage is no taller than before and pins where it did. */
  .math-prompt { margin: -6px var(--space-10) -2px 0; line-height: 1.1; }
}
@media (min-width: 1200px) {
  .math-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
}
/* Tall wide screens have room to spare, so the prompt gets a little air above and below. */
@media (min-width: 960px) and (min-height: 1000px) {
  .math-prompt { margin: var(--space-4) var(--space-10) var(--space-4) 0; }
}
/* Wide but short screens (most laptops): a little more compact, so the stage still fits and can pin. */
@media (min-width: 960px) and (max-height: 860px) {
  .math-num { font-size: clamp(2rem, .5rem + 3.6vh, 3.4rem); }
  .math-row { padding-bottom: var(--space-8); }
  .math-card .cow-sts { zoom: 1.1; }
  .math-glass { width: clamp(120px, 20vh, 176px); }
  .math-prompt { font-size: 1.375rem; }
}
/* The story's before-states (home.js); nothing here is off without JS. Each envelope drops into place with a hay
   ring that fades as it lands, while what's set aside ticks hay; then the sum line draws and the card rises. */
.math-envs > li { transition: opacity .12s ease, transform .8s cubic-bezier(.3, 1.3, .5, 1); }
.math-envs > li.is-off { opacity: 0; transform: translateY(-40px) scale(.96); }
.math-envs > li.is-landing { animation: math-land 1.1s var(--ease-soft); }
.math-card.is-off .cow-sts { opacity: 0; transform: translateY(32px) scale(.94); }
.math-card .cow-sts { transition: opacity .45s ease, transform .9s var(--ease-expo); }
.math-num.is-ticking { animation: math-tick .6s var(--ease-soft); transform-origin: 100% 60%; }
.math-card.is-bump .cow-sts { animation: math-bump .6s var(--ease-pop); }
@keyframes math-land { from { box-shadow: 0 0 0 2px var(--hay), 0 0 40px -6px color-mix(in oklab, var(--hay) 80%, transparent); } }
@keyframes math-tick { 30% { color: var(--hay); transform: scale(1.04); } }
@keyframes math-bump { 40% { transform: scale(1.03); } }
.math-prompt.is-later, .math-add.is-later { visibility: hidden; }
.math-prompt.is-open { animation: pop-in .45s var(--ease-pop) both; }
/* The +$50 buttons pop in one after another, and a hay ring calls each one once. */
.math-add.is-open { animation: pop-in .45s var(--ease-pop) both, math-call 1.1s var(--ease-soft) .5s; }
@keyframes math-call { 40% { box-shadow: 0 0 0 3px var(--hay), 0 0 22px color-mix(in oklab, var(--hay) 60%, transparent); } }
/* At $0 the prompt has been answered: it steps aside (keeping its place) while the done line shows. */
.math-prompt.is-spent { visibility: hidden; }
.math-envs > li:nth-child(2) .math-add.is-open { animation-delay: .07s, .62s; }
.math-envs > li:nth-child(3) .math-add.is-open { animation-delay: .14s, .74s; }
/* /region:math */

/* region:features */
/* "Less to keep up with": three app moments, each a screen of its own. No homework: the real Transactions screen
   settles flat, a rule card slides up beside it and a hay line ties it to the charge it sorted. Never quietly out of
   date: the farm opens from a window to full bleed and drifts, with the bank row and the Reconnect bank warning on
   glass. Your data stays yours: on a mint sheet, the Google Sheet slides in and a new row lands and glows. The
   scrubbed pieces use --p (latched, finished by default); the rest hang off the reveal system's .will-in / .is-in. */
.features { z-index: 6; background: var(--sheet-2); color: var(--ink); padding-top: clamp(64px, 9vh, 104px); }
.features-label { display: flex; align-items: center; gap: var(--space-12); margin-bottom: clamp(16px, 3vh, 32px); color: var(--green);
  font-weight: 600; font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); line-height: 1.2; }
.features-label::before { content: ""; width: 40px; height: 3px; border-radius: 2px; background: currentColor; }
.features .moment { position: relative; padding: clamp(64px, 11vh, 128px) 0; }
.features .moment-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-48);
  align-items: center; }
.features .moment-grid > * { min-width: 0; }
.features .big-line { font-weight: 700; font-size: var(--display-l); line-height: var(--display-lh); letter-spacing: var(--display-track);
  text-wrap: balance; }
.features .moment-say { max-width: 22ch; margin-top: var(--space-24); font-size: clamp(1.25rem, 1rem + .9vw, 1.875rem); line-height: 1.3;
  color: var(--muted); text-wrap: pretty; }
.features .moment-art { position: relative; justify-self: center; display: grid; justify-items: center; margin: 0; }
@media (max-width: 719px) {
  .features .moment-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
}

/* No homework. The phone settles flat as it comes up the page (--p), then the rule card arrives (--tc), its hay line
   draws to the phone (--tl) and a hay ring finds the Corner Market row it sorted (--tr), which glows once (.is-sorted).
   The ring sits in the row's own margins (54% to 59.7% of the screenshot), clear of its text. */
.features .moment-homework { padding-top: clamp(8px, 2vh, 32px); padding-bottom: clamp(80px, 13vh, 150px); }
.features .settle { --p: 1; --pw: clamp(240px, 22vw, 360px); --tc: clamp(0, (var(--p) - .42) / .3, 1);
  --tl: clamp(0, (var(--p) - .7) / .16, 1); --tr: clamp(0, (var(--p) - .82) / .18, 1); isolation: isolate; perspective: 1800px; }
.features .settle::before { content: ""; position: absolute; z-index: -1; inset: 2% -46% 12%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--pasture-detail) 50%, transparent),
    color-mix(in oklab, var(--hay) 16%, transparent) 62%, transparent); }
@media (prefers-color-scheme: dark) {
  .features .settle::before { background: radial-gradient(closest-side, color-mix(in oklab, var(--pasture) 70%, transparent),
    color-mix(in oklab, var(--pasture-deep) 40%, transparent) 60%, transparent); }
}
.features .settle-stage { position: relative; }
.features .settle-phone { transform-origin: 50% 85%;
  transform: translateY(calc((1 - var(--p)) * 90px)) rotateY(calc((1 - var(--p)) * -24deg)) rotateX(calc((1 - var(--p)) * 14deg))
    rotateZ(calc((1 - var(--p)) * 5deg)); }
.features .rule-ring { position: absolute; left: 2.6%; right: 2.6%; top: 54%; height: 5.7%; border: 2px solid var(--hay);
  border-radius: calc(var(--pw) * .045); pointer-events: none; opacity: var(--tr); scale: calc(1.08 - var(--tr) * .08);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hay) 26%, transparent), 0 0 18px color-mix(in srgb, var(--hay) 40%, transparent); }
.features .settle.is-sorted .rule-ring { animation: features-ring 1.8s var(--ease-soft) both; }
@keyframes features-ring {
  30% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--hay) 30%, transparent), 0 0 36px color-mix(in srgb, var(--hay) 72%, transparent); }
}
.features .rule-card { position: relative; z-index: 2; display: grid; gap: var(--space-8); padding: var(--space-14) var(--space-18);
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--ink); box-shadow: var(--lift);
  white-space: nowrap; opacity: var(--tc); }
.features .rule-card-if { color: var(--muted); }
.features .rule-card-to { display: flex; align-items: center; gap: var(--space-8); color: var(--green); }
.features .rule-card-to .cow-txn-tag { padding: 4px var(--space-10); font-weight: 600; }
@media (min-width: 1100px) {
  .features .moment-homework .moment-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .features .moment-homework .moment-art { justify-self: end; margin-right: clamp(0px, 4vw, 72px); }
  /* Beside the phone, level with the row it sorted, joined to the ring by a hay line. */
  .features .rule-card { --gap: clamp(28px, 3vw, 48px); position: absolute; right: calc(100% + var(--gap)); top: calc(var(--pw) * 1.149);
    transform: translateY(-50%); translate: calc((1 - var(--tc)) * -64px) 0; rotate: calc((1 - var(--tc)) * -6deg); }
  .features .rule-card::after { content: ""; position: absolute; left: 100%; top: 50%; width: calc(var(--gap) + var(--pw) * .054); height: 2px;
    margin-top: -1px; border-radius: 2px; background: var(--hay); transform-origin: 0 50%; scale: var(--tl) 1; }
  .features .rule-card::before { content: ""; position: absolute; z-index: 1; left: calc(100% - 6px); top: 50%; width: 12px; height: 12px;
    margin-top: -6px; border: 2px solid var(--surface); border-radius: 50%; background: var(--hay); scale: var(--tc); }
}
@media (max-width: 1099px) {
  .features .rule-card { justify-self: center; width: max-content; max-width: 100%; margin: var(--space-24) auto 0;
    translate: 0 calc((1 - var(--tc)) * 40px); }
}
@media (min-width: 720px) and (max-width: 1099px) {
  .features .settle { --pw: clamp(250px, 30vw, 300px); }
}
@media (max-width: 719px) {
  .features .settle { --pw: min(70vw, 290px); }
  .features .settle::before { inset: 0 -30% 10%; }
}

/* Never quietly out of date. The farm opens from a window to the whole screen as you scroll (--p) and drifts (home.js),
   under the app's evening scrim; the bank row sits on glass, and the warning unfolds below it as it arrives. */
.features .moment-fresh { --p: 1; display: grid; align-items: center; padding: clamp(112px, 16vh, 168px) 0 calc(var(--sheet-r) + clamp(88px, 13vh, 150px));
  background: var(--scrim); color: var(--milk); }
/* The ground under the farm is the scrim, so the words stay readable even before the farm loads; while the window is
   still opening (home.js), the features sheet shows around it instead. */
.features .moment-fresh.is-opening { background: none; }
@media (min-width: 1100px) { .features .moment-fresh { min-height: 100vh; min-height: 100svh; } }
.features .moment-fresh :focus-visible { outline-color: var(--milk); }
/* The window opens from the top and bottom; from 1100px wide its sides open too, but only within the margin beside the
   page's text, so no word ever sits outside the farm (milk on the milk sheet). */
.features .window-farm { position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(calc((1 - var(--p)) * 9%) 0 round calc((1 - var(--p)) * 56px)); }
@media (min-width: 1100px) {
  .features .window-farm { clip-path: inset(calc((1 - var(--p)) * 9%)
    calc((1 - var(--p)) * clamp(0px, max(0px, (100% - var(--page-x)) / 2) + var(--gx) - 28px, 7%)) round calc((1 - var(--p)) * 56px)); }
}
.features .window-farm-img { position: absolute; inset: -4%; overflow: hidden; scale: calc(1 + (1 - var(--p)) * .25); }
.features .window-farm::after { content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in oklab, var(--scrim) 88%, transparent) 0%, color-mix(in oklab, var(--scrim) 70%, transparent) 46%,
      color-mix(in oklab, var(--scrim) 30%, transparent) 100%),
    linear-gradient(0deg, color-mix(in oklab, var(--scrim) 40%, transparent), transparent 30%); }
.features .moment-fresh .moment-say { color: color-mix(in srgb, var(--milk) 90%, transparent); }
.features .sync-art { width: min(100%, 460px); }
.features .sync-panel { display: grid; gap: var(--space-12); width: 100%; padding: var(--space-16);
  border: 1px solid var(--glass-line); border-radius: var(--radius-panel); background: var(--glass-bg); box-shadow: var(--lift);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); }
@media (min-width: 1100px) { .features .sync-art { width: 460px; zoom: 1.14; } }
.features .bank-chip { display: flex; align-items: center; gap: var(--space-12); padding: var(--space-14) var(--space-12) var(--space-14) var(--space-14);
  border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); color: var(--ink); }
.features .bank-chip-icon { flex: none; display: grid; place-items: center; width: var(--size-icon-circle); height: var(--size-icon-circle);
  border-radius: var(--radius-capsule); background: var(--inset); }
.features .bank-chip-text { display: grid; gap: var(--space-2); min-width: 0; }
.features .bank-chip-name { font-weight: 600; }
.features .bank-chip-mask, .features .bank-chip-time { color: var(--muted); font-weight: 400; }
.features .bank-chip-go { margin-left: auto; color: var(--muted); }
.features .sync-banner { display: grid; grid-template-rows: 1fr; overflow: hidden; border-radius: var(--radius-card); }
.features .sync-banner > * { min-height: 0; }
.features .sync-art.will-in.is-in .sync-banner { transition: grid-template-rows .8s var(--ease-expo) .75s, opacity .6s ease .75s; }
.features .sync-art.will-in:not(.is-in) .sync-banner { grid-template-rows: 0fr; opacity: 0; }
@media (max-width: 859px) {
  .features .moment-fresh .moment-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-32); }
  .features .window-farm::after { background: linear-gradient(180deg, color-mix(in oklab, var(--scrim) 86%, transparent) 0%,
    color-mix(in oklab, var(--scrim) 66%, transparent) 50%, color-mix(in oklab, var(--scrim) 50%, transparent) 100%); }
  .features .sync-art { justify-self: stretch; width: auto; max-width: 460px; }
}
@media (max-width: 420px) {
  .features .sync-panel { padding: var(--space-12); }
  .features .bank-chip-go { display: none; }
}

/* Your data stays yours. On a mint sheet over the farm, the Google Sheet slides in, then City Utilities steps down a row
   and the new Corner Market row lands in its place and glows once (the Transactions screenshot's example charges). Row
   and column labels are drawn by CSS (they're not words). */
.features .moment-yours { z-index: 1; margin-top: calc(-1 * var(--sheet-r)); border-radius: var(--sheet-r) var(--sheet-r) 0 0;
  background: linear-gradient(180deg, color-mix(in oklab, var(--mint) 80%, var(--sheet-2)), var(--sheet-2) 80%);
  padding: clamp(80px, 13vh, 150px) 0 calc(var(--sheet-r) + clamp(96px, 14vh, 160px)); }
@media (min-width: 720px) {
  .features .moment-yours .moment-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .features .moment-yours .moment-art { order: -1; }
}
.features .sheet-art { width: min(100%, 560px); }
.features .gsheet { --row: 46px; width: 100%; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card);
  background: var(--surface); color: var(--ink); box-shadow: var(--lift); rotate: -2deg; }
@media (min-width: 1100px) { .features .gsheet { zoom: 1.1; } }
.features .gsheet-bar { display: flex; align-items: center; gap: var(--space-10); padding: var(--space-10) var(--space-14);
  border-bottom: 1px solid var(--border); background: var(--canvas); }
.features .gsheet-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-small);
  background: var(--green); color: var(--surface); }
.features .gsheet-bone { width: 34%; height: 10px; border-radius: var(--radius-capsule); background: var(--inset); }
.features .gsheet-bone-s { width: 14%; }
.features .gsheet-grid { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; grid-template-rows: 28px; grid-auto-rows: var(--row);
  font: var(--type-subheadline); }
.features .gsheet-grid > span { display: block; min-width: 0; padding: 0 var(--space-14); border-top: 1px solid var(--border);
  border-left: 1px solid var(--border); line-height: calc(var(--row) - 1px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.features .gsheet-grid > span:nth-child(-n+4) { border-top: 0; line-height: 28px; }
.features .gsheet-grid > span:nth-child(4n+1) { border-left: 0; }
.features .gsheet-grid .gs-ix { padding: 0; background: var(--canvas); color: var(--muted); font: var(--type-caption-2); line-height: inherit;
  text-align: center; }
.features .gsheet-grid .gs-ix::before { content: attr(data-x); }
.features .gsheet-grid .gsheet-head { background: var(--pasture); color: var(--milk); font-weight: 600; }
.features .gsheet-grid .gsheet-new { font-weight: 600; }
.features .gsheet-grid .num { text-align: right; font-variant-numeric: tabular-nums; }
.features .sheet-art.will-in.is-in .gsheet { transition: translate 1.1s var(--ease-expo) .05s, rotate 1.1s var(--ease-expo) .05s; }
.features .sheet-art.will-in:not(.is-in) .gsheet { translate: -72px 24px; rotate: -9deg; }
.features .sheet-art.will-in.is-in .gsheet-old { transition: translate .6s var(--ease-expo) .4s; }
.features .sheet-art.will-in:not(.is-in) .gsheet-old { translate: 0 calc(-1 * var(--row)); }
.features .sheet-art.will-in.is-in .gsheet-new { transition: opacity .4s ease .6s, translate .6s var(--ease-expo) .6s; }
.features .sheet-art.will-in:not(.is-in) .gsheet-new { opacity: 0; translate: 0 -14px; }
.features .sheet-art.will-in.is-in .gsheet-new { animation: row-glow 1.6s ease-out .9s both; }
/* At night a hay tint over the dark sheet turns brown, so the new row gets a faint hay tint and a hay rule at its start. */
@media (prefers-color-scheme: dark) {
  .features .sheet-art.will-in.is-in .gsheet-new { animation-name: features-row-night; }
  .features .sheet-art.will-in.is-in .gs-ix + .gsheet-new { animation-name: features-row-night-start; }
}
@keyframes features-row-night { from { background-color: color-mix(in srgb, var(--hay) 22%, var(--surface)); } }
@keyframes features-row-night-start { from { background-color: color-mix(in srgb, var(--hay) 22%, var(--surface)); box-shadow: inset 3px 0 0 var(--hay); } }
@media (max-width: 719px) {
  .features .sheet-art.will-in:not(.is-in) .gsheet { translate: 0 48px; rotate: -6deg; }
}
@media (max-width: 420px) {
  .features .gsheet { --row: 42px; }
  .features .gsheet-grid { grid-template-columns: 28px minmax(0, 1fr) auto auto; font: var(--type-footnote); }
  .features .gsheet-grid > span { padding: 0 var(--space-8); }
}
@media (max-width: 379px) {
  .features .gsheet-grid { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
  .features .gsheet-grid > span { padding: 0 6px; }
}
/* /region:features */

/* region:trust */
/* "Read-only, on purpose": the Pasture band (deeper at night), with Cash's one guide moment inside rings that draw
   around him, the title with a hay stroke under "on purpose", and what COW Money can and can't do on glass cards whose
   icons draw themselves. Cash pops in whole, his bubble follows, he tilts his head toward the title once, and hops
   when tapped. On phones he stands beside his bubble, above the title. */
.trust { --cash: clamp(120px, 11vw, 168px); --deep: color-mix(in oklab, var(--scrim) 22%, transparent); z-index: 7; overflow: clip;
  isolation: isolate; color: var(--milk); padding: clamp(96px, 13vh, 160px) 0 calc(var(--sheet-r) + clamp(88px, 11vh, 140px));
  background: linear-gradient(160deg, var(--pasture), var(--pasture-deep)); }
@media (prefers-color-scheme: dark) {
  .trust { --deep: color-mix(in oklab, var(--scrim) 30%, transparent);
    background: linear-gradient(160deg, color-mix(in oklab, var(--pasture) 84%, var(--scrim)), color-mix(in oklab, var(--pasture-deep) 70%, var(--scrim))); }
}
/* Depth: the band settles darker toward its lower right, under the cards. */
.trust::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(90% 60% at 100% 100%, var(--deep), transparent 70%); }
.trust :focus-visible { outline-color: var(--milk); }
.trust-grid { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: clamp(40px, 5vw, 80px); align-items: center; }

/* Cash, with a soft light and three rings around him (clear of him by more than a quarter of his width). */
.trust-cash { position: relative; z-index: 0; justify-self: center; }
.trust-cash::before { content: ""; position: absolute; z-index: -2; left: 50%; top: calc(var(--cash) / 2); width: calc(var(--cash) * 3.6);
  aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--pasture-detail) 24%, transparent), transparent); }
.trust-rings { position: absolute; z-index: -1; left: 50%; top: calc(var(--cash) / 2); width: calc(var(--cash) * 3.1); height: auto;
  translate: -50% -50%; overflow: visible; pointer-events: none; fill: none; stroke: var(--milk); }
.trust-rings circle { stroke-width: .9; transform: rotate(-90deg); transform-origin: 200px 200px; }
.trust-rings circle:nth-child(1) { stroke-opacity: .2; }
.trust-rings circle:nth-child(2) { stroke-opacity: .12; }
.trust-rings circle:nth-child(3) { stroke-opacity: .06; }
.trust-cash .cow-says-cash { width: var(--cash); height: auto; cursor: pointer; transform-origin: 50% 100%;
  -webkit-tap-highlight-color: transparent; user-select: none; }
.trust-cash .cow-says-bubble { max-width: 15rem; margin-top: var(--space-14); background: var(--milk); color: var(--scrim); text-align: center;
  box-shadow: var(--lift-soft); }

/* The title, with a hay stroke under "on purpose" (it sits below the letters, never behind them). */
.trust-title { font-weight: 700; font-size: var(--display-l); line-height: var(--display-lh); letter-spacing: var(--display-track); text-wrap: balance; }
.trust-mark { position: relative; display: inline-block; }
/* Deeper masks than the shared ones, so the descenders of "purpose" aren't clipped as the words rise. */
.trust-title .mw { padding-bottom: .3em; margin-bottom: -.3em; }
.trust-mark::after { content: ""; position: absolute; left: .02em; right: .04em; bottom: -.17em; height: .085em; border-radius: var(--radius-capsule);
  background: var(--hay); transform-origin: 0 50%; box-shadow: 0 0 .3em color-mix(in oklab, var(--hay) 40%, transparent); }

/* The cards: glass on Pasture, a lit edge on top, each with its badge (an eye, a lock). */
.trust-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--space-16); margin-top: clamp(36px, 6vh, 60px); }
.trust-card { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: var(--space-24) var(--space-24) var(--space-24);
  border: 1px solid var(--glass-dark-line); border-radius: var(--radius-panel); background: var(--glass-dark);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--milk) 14%, transparent), var(--lift-soft);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.trust-can { background: color-mix(in srgb, var(--milk) 13%, transparent); }
/* On a computer a soft light follows the pointer across each card (home.js sets --gx-p and --gy-p). */
.trust-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(360px circle at var(--gx-p, 50%) var(--gy-p, 0%), color-mix(in srgb, var(--milk) 14%, transparent), transparent 60%); }
.trust-card:hover::after { opacity: 1; }
.trust-card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); margin-bottom: var(--space-20); }
.trust-card h3 { color: var(--milk); }
.trust-card .trust-badge { box-sizing: border-box; width: 44px; height: 44px; padding: 10px; border: 1px solid var(--glass-dark-line);
  border-radius: var(--radius-capsule); background: color-mix(in srgb, var(--milk) 7%, transparent); color: var(--milk); stroke-width: 1.6; }
.trust-card ul { display: grid; gap: var(--space-12); padding: 0; list-style: none; }
.trust-card li { display: flex; gap: var(--space-12); align-items: flex-start; font: var(--type-body); }
.trust-card li .cow-icon { width: 22px; height: 22px; color: var(--pasture-detail); stroke-width: 2; }
/* Both cards' lists start under their heads, in one type style, so the two read as a pair. */
.trust-card li .cow-icon { margin-top: 1px; }

/* Security and privacy: a quiet glass capsule, its arrow nudging on hover. */
.trust-link { display: inline-flex; align-items: center; gap: var(--space-10); min-height: 48px; margin-top: var(--space-24);
  padding: 0 var(--space-18) 0 var(--space-24); border: 1px solid var(--glass-dark-line); border-radius: var(--radius-capsule);
  background: color-mix(in srgb, var(--milk) 7%, transparent); color: var(--milk); text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease; }
.trust-link .cow-icon { width: 20px; height: 20px; stroke-width: 2; transition: translate .3s var(--ease-expo); }
.trust-link:hover { background: color-mix(in srgb, var(--milk) 14%, transparent); border-color: color-mix(in srgb, var(--milk) 34%, transparent); }
.trust-link:hover .cow-icon { translate: 3px 0; }
.trust-link:active { opacity: var(--opacity-pressed); }

/* Arrival (home.js): before-states hang off .will-in, and the moves only off .is-in, so nothing animates away. Cash pops in whole, then his bubble, then one tilt of the head toward the title; the rings draw
   around him. The title rises word by word and its hay stroke draws. */
@keyframes trust-glance { 0%, 100% { rotate: 0deg; } 30%, 68% { rotate: 6deg; } }
.trust-cash.will-in:not(.is-in) { opacity: 1; translate: none; }
.trust-cash.is-in .cow-says-cash { transition: opacity .35s ease, transform .8s var(--ease-pop); }
.trust-cash.is-in .cow-says-bubble { transform-origin: 50% 0; transition: opacity .4s ease .45s, transform .7s var(--ease-pop) .45s; }
.trust-cash.will-in:not(.is-in) .cow-says-cash { opacity: 0; transform: translateY(28px) scale(.55); }
.trust-cash.will-in:not(.is-in) .cow-says-bubble { opacity: 0; transform: scale(.7); }
.trust-cash.is-in .cow-says-cash { animation: trust-glance 1.5s var(--ease-soft) 1.5s; }
/* A tap: the hop (region motion), which outranks the glance. */
.trust-cash .cow-says-cash.hop { animation: hop .9s cubic-bezier(.3, .7, .4, 1) .1s; }
/* Lines hide at once and draw only on arrival (the rings slowly, from the inside out). */
.trust .will-in:not(.is-in) .draw { transition: none; }
.trust-cash.is-in .trust-rings .draw { transition: stroke-dashoffset 1.8s var(--ease-expo) calc(.25s + var(--i, 0) * 160ms); }
.trust-cash.is-in::before { transition: opacity 1.4s var(--ease-soft) .2s; }
.trust-cash.will-in:not(.is-in)::before { opacity: 0; }
.trust-title.will-in:not(.is-in) { opacity: 1; translate: none; }
.trust-title.is-in .mw > span { transition: translate 1.05s var(--ease-expo) calc(var(--i, 0) * 90ms); }
.trust-title.will-in:not(.is-in) .mw > span { translate: 0 112%; }
.trust-title.is-in .trust-mark::after { transition: scale 1s var(--ease-expo) .55s; }
.trust-title.will-in:not(.is-in) .trust-mark::after { scale: 0 1; }
/* The cards' badges, checks and crosses draw as their card arrives (each card counts its own lines from 0, home.js),
   quicker than the shared .draw, so every mark is drawn while the card is still settling. */
.trust-cards.will-in.is-in .draw { transition: stroke-dashoffset .55s var(--ease-expo) calc(var(--d, 0s) + .16s + var(--i, 0) * 70ms); }

@media (max-width: 859px) {
  .trust { --cash: 104px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(28px, 5vw, 44px); }
  /* Cash beside his bubble, its tail pointing at him. */
  .trust-cash { flex-direction: row; align-items: center; justify-self: start; text-align: left; }
  .trust-cash::before, .trust-rings { left: calc(var(--cash) / 2); top: 50%; }
  .trust-cash .cow-says-bubble { margin: 0 0 0 var(--space-16); text-align: left; transform-origin: 0 50%; }
  .trust-cash .cow-says-bubble::before { top: calc(50% - 7px); left: -6px; }
  .trust-cash.is-in .cow-says-bubble { transform-origin: 0 50%; }
}
@media (max-width: 559px) {
  .trust { --cash: 84px; padding: 88px 0 calc(var(--sheet-r) + 80px); }
  .trust-cards { grid-template-columns: minmax(0, 1fr); gap: var(--space-12); }
  .trust-card { padding: var(--space-20); }
}
@media (max-width: 359px) { .trust-cash .cow-says-bubble { margin-left: var(--space-12); padding: var(--space-10) var(--space-12); } }
/* /region:trust */

/* region:price */
/* "A fair price, sharing included": a full-bleed hay sheet, ink on hay in both themes. The yearly price is the headline,
   with "a year" and the monthly price locked up beside it, and a milk marker under "sharing included" (on hay, the
   marker is milk). A soft sun rises behind the price as the sheet comes up (--p, scrubbed and kept); the title rises
   by words, the price's characters rise through their masks one after another (each is only ever its real character),
   and the two notes follow, the friends popping in one by one. */
.price { --p: 1; z-index: 8; overflow: clip; isolation: isolate; color: var(--hay-ink);
  background: linear-gradient(178deg, color-mix(in oklab, var(--hay) 86%, var(--milk)) 0%, var(--hay) 34%,
    color-mix(in oklab, var(--hay) 92%, var(--barn)) 100%);
  padding: clamp(84px, min(13vh, 11vw), 150px) 0 calc(var(--sheet-r) + clamp(84px, min(13vh, 11vw), 150px)); }
.price :focus-visible { outline-color: var(--hay-ink); }
/* At night the hay deepens toward the barn, so the sheet still reads as hay but doesn't glare between two night scenes. */
@media (prefers-color-scheme: dark) {
  .price { background: linear-gradient(178deg, color-mix(in oklab, var(--hay) 92%, var(--barn)) 0%, color-mix(in oklab, var(--hay) 85%, var(--barn)) 34%,
    color-mix(in oklab, var(--hay) 72%, var(--barn)) 100%); }
}
/* The sun: a soft milk light with faint rays, high on the sheet behind the price. */
.price-sun { position: absolute; z-index: -1; top: clamp(-260px, -18vw, -120px); right: clamp(-320px, -14vw, -140px);
  width: clamp(560px, 70vw, 1100px); aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--milk) 62%, transparent) 0%, color-mix(in oklab, var(--milk) 26%, transparent) 46%,
      transparent 100%),
    repeating-conic-gradient(from 4deg, color-mix(in oklab, var(--milk) 13%, transparent) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%); mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  translate: 0 calc((1 - var(--p)) * 38%); rotate: calc((1 - var(--p)) * -24deg); opacity: calc(.35 + .65 * var(--p)); }

.price-grid { position: relative; display: grid; }
.price-title { max-width: 15ch; font-weight: 700; font-size: var(--display-m); line-height: 1.02; letter-spacing: -.035em; text-wrap: balance; }
.price-mark { background: linear-gradient(color-mix(in oklab, var(--milk) 78%, transparent), color-mix(in oklab, var(--milk) 78%, transparent))
    0 86% / 100% .3em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* The price lockup: $64.99, then "a year" over the monthly price, bottoms on the price's baseline. */
.price-big { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-12) clamp(18px, 2.6vw, 44px);
  margin-top: clamp(28px, 5.5vh, 64px); }
.price-num { display: block; margin-left: -.045em; font-weight: 700; font-size: var(--display-price); line-height: .8; letter-spacing: -.055em;
  white-space: nowrap; }
/* The dollar sign, smaller and hung from the top of the figures, as on a price tag. */
.price-cur { display: inline-block; margin-right: .04em; font-size: .5em; vertical-align: top; translate: 0 .1em; letter-spacing: 0; }
.price-side { display: flex; flex-direction: column; gap: var(--space-8); padding-bottom: .1em; }
.price-per { font-weight: 700; font-size: clamp(1.75rem, 1rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -.035em; }
.price-month { max-width: 19ch; font-weight: 600; font-size: clamp(1.125rem, .95rem + .55vw, 1.5rem); line-height: 1.3; text-wrap: balance; }
/* What the price includes, one line under the lockup (staged by price() in home.js, after the characters). */
.price-incl { max-width: 34ch; margin-top: clamp(24px, 4.5vh, 48px); font-weight: 600; font-size: clamp(1.125rem, .95rem + .55vw, 1.5rem);
  line-height: 1.3; text-wrap: balance; }

/* The two notes, under a hairline: the demo before you pay, and the people you invite. */
.price-notes { position: relative; display: grid; gap: var(--space-24); margin-top: clamp(40px, 7vh, 80px); padding-top: clamp(24px, 4vh, 36px); }
.price-notes::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; border-radius: 1px; transform-origin: 0 50%;
  background: color-mix(in srgb, var(--hay-ink) 16%, transparent); }
.price-note { display: flex; align-items: center; gap: var(--space-16); max-width: 34rem; font: var(--type-lede); text-wrap: pretty; }
.price-note > span:last-child { min-width: 0; }
.price-ico { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-capsule);
  background: var(--hay-ink); color: var(--hay); }
.price-ico .cow-icon { width: 24px; height: 24px; stroke-width: 1.8; }
/* Friends, overlapping: each circle is cut where the next one sits, so the sheet shows through between them. */
.price .faces { display: inline-flex; flex: none; }
.price .faces span { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-capsule); background: var(--hay-ink);
  color: var(--milk); font: var(--type-headline); }
.price .faces span + span { margin-left: -12px; }
.price .faces span:not(:last-child) { -webkit-mask-image: radial-gradient(circle 27px at 60px 50%, transparent 26.5px, #000 27px);
  mask-image: radial-gradient(circle 27px at 60px 50%, transparent 26.5px, #000 27px); }
.price .faces span::before { content: attr(data-i); }
.price .faces span:nth-child(1) { background: var(--pasture-deep); }
.price .faces span:nth-child(2) { background: var(--barn); }
.price .faces span:nth-child(3) { background: var(--milk); color: var(--hay-ink); }
@media (min-width: 720px) {
  .price-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-32); }
}
@media (min-width: 1100px) { .price-notes { gap: var(--space-48); } }
/* Narrow: the demo's icon stays beside its line; the friends sit above theirs. Two columns on a tablet do the same. */
@media (max-width: 1099px) {
  .price-note { align-items: flex-start; }
  .price-share { flex-direction: column; gap: var(--space-12); }
}

/* Arrivals (home.js adds .will-in, then .is-in, only when the price starts below the first screen). The title uses the
   shared word masks; its marker draws once the words are up. */
.price-title.will-in.is-in .price-mark { transition: background-size 1.1s var(--ease-expo) 1s; }
.price-title.will-in:not(.is-in) .price-mark { background-size: 0% .3em; }
/* Each character of the price rises through its own mask, a beat after the one before. Only real characters. */
.price-big.will-in:not(.is-in) { opacity: 1; translate: none; }
.price-num .pg { display: inline-block; overflow: clip; padding: .14em .03em .12em; margin: -.14em -.03em -.12em; vertical-align: top; }
.price-num .pg > span { display: inline-block; }
/* Waiting characters sit wholly below their masks (past the mask's .12em bottom padding) and unseen, so nothing of them
   shows before they rise. */
/* They rise close behind each other (30ms), solid and sharp, with no blur; they all turn opaque together, so the mask is
   all that hides a glyph still on its way, and the number reads whole as it lands, never "$64" beside a faint ".9". */
.price-big.will-in.is-in .pg > span { transition: translate 1s var(--ease-expo) calc(var(--k, 0) * 30ms), opacity .2s ease; }
.price-big.will-in:not(.is-in) .pg > span { translate: 0 135%; opacity: 0; }
.price-big.is-done .pg { overflow: visible; }
.price-big.will-in.is-in .price-side > span { transition: opacity .7s var(--ease-soft), translate .9s var(--ease-expo); }
/* "a year" comes in with the last character, so $64.99 never stands alone; under it on phones, it comes in with the first. */
.price-big.will-in.is-in .price-side > .price-per { transition-delay: .25s; }
.price-big.will-in.is-in .price-side > .price-month { transition-delay: .35s; }
@media (max-width: 719px) {
  .price-big.will-in.is-in .price-side > .price-per { transition-delay: .1s; }
  .price-big.will-in.is-in .price-side > .price-month { transition-delay: .2s; }
}
.price-big.will-in:not(.is-in) .price-side > span { opacity: 0; translate: -18px 0; }
/* The hairline draws across, left to right, as the notes come up. */
.price-notes.will-in:not(.is-in) { opacity: 1; translate: none; }
.price-notes.will-in.is-in::before { transition: scale 1.2s var(--ease-expo); }
.price-notes.will-in:not(.is-in)::before { scale: 0 1; }
/* The friends pop in one by one after their note arrives. */
.price .price-share.will-in.is-in .faces span { transition: opacity .3s ease, transform .6s var(--ease-pop);
  transition-delay: calc(var(--d, 0s) + .35s + var(--n, 0) * 90ms); }
.price .price-share.will-in:not(.is-in) .faces span { opacity: 0; transform: scale(.4); }
.price .faces span:nth-child(2) { --n: 1; }
.price .faces span:nth-child(3) { --n: 2; }
.price .faces span:nth-child(4) { --n: 3; }
/* /region:price */

/* region:close */
/* The close, the page's last screen: the farm drifts again under the evening scrim (no Cash in its hayloft: he's here
   in person), Cash pops in and hops once, "Coming soon" gets its hay stroke, then one sentence says what COW Money is,
   the free beta and its requirements follow, and the real welcome screen rises out of the farm toward you as you reach
   it (--p, kept). Wide screens mirror the hero (words left, phone right); phones and tablets center it, as the hero
   does there. The footer slides over its bottom edge, so the phone sinks behind the footer's sheet. */
.close { --p: 1; z-index: 9; isolation: isolate; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--scrim); color: var(--milk); padding-top: clamp(112px, 16vh, 176px); }
.close :focus-visible { outline-color: var(--milk); }
.close-farm { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: inherit; }
.close-farm-box { position: absolute; inset: 0; overflow: hidden; }
.close-scrim { position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background:
    radial-gradient(34% 52% at 76% 78%, color-mix(in oklab, var(--hay) 16%, transparent), transparent 72%),
    linear-gradient(90deg, color-mix(in oklab, var(--scrim) 90%, transparent) 0%, color-mix(in oklab, var(--scrim) 78%, transparent) 40%,
      color-mix(in oklab, var(--scrim) 30%, transparent) 74%, color-mix(in oklab, var(--scrim) 16%, transparent) 100%),
    linear-gradient(180deg, color-mix(in oklab, var(--scrim) 50%, transparent), transparent 26%),
    linear-gradient(0deg, color-mix(in oklab, var(--hero-floor) 80%, transparent), transparent 34%); }
/* On wide screens it fills the last screen, so at the very bottom the farm and the footer are all there is. */
@media (min-width: 960px) { .close { min-height: 100vh; min-height: 100svh; } }
.close-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); column-gap: var(--space-48); align-items: end; }
.close-copy { display: grid; justify-items: start; padding-bottom: calc(var(--sheet-r) + clamp(40px, 7vh, 96px)); }

/* Cash, standing on his own small shadow, which shrinks as he hops. */
.close-cash { --cash: 80px; position: relative; width: var(--cash); margin: 0 0 var(--space-20) var(--space-4); transform-origin: 50% 100%; }
.close-cash img { display: block; width: var(--cash); height: var(--cash); max-width: none; transform-origin: 50% 100%; }
.close-cash::after { content: ""; position: absolute; z-index: -1; left: 16%; right: 16%; bottom: -3px; height: 12px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--scrim) 70%, transparent), transparent); }
.close-cash:has(> .hop)::after { animation: close-shade .9s cubic-bezier(.3, .7, .4, 1) .1s; }
@keyframes close-shade { 30% { scale: .55; opacity: .45; } 55% { scale: 1; opacity: 1; } 72% { scale: .85; } 86% { scale: 1; } }

.close-title { max-width: 11ch; font-weight: 700; font-size: var(--display-l); line-height: var(--display-lh); letter-spacing: var(--display-track);
  text-wrap: balance; }
@media (min-width: 860px) { .close-title { font-size: min(var(--display-l), 11.5vh); } }
/* "Coming soon" in milk over a hay stroke (hay under milk on a dark ground), drawn from the left as it arrives. */
.close-mark { position: relative; white-space: nowrap; }
.close-mark::after { content: ""; position: absolute; z-index: -1; left: .02em; right: .06em; bottom: .07em; height: .075em; border-radius: 1em;
  background: linear-gradient(90deg, var(--hay), color-mix(in oklab, var(--hay) 62%, var(--milk)));
  box-shadow: 0 0 .3em color-mix(in oklab, var(--hay) 40%, transparent); transform-origin: 0 50%; }
/* What COW Money is, in one sentence under the title: the hero's lede, a little smaller and wider, so the last screen
   still has room for Cash above the title. */
.close-lede { max-width: 48ch; margin-top: var(--space-16); font-size: clamp(1.0625rem, .9rem + .45vw, 1.3125rem); line-height: 1.38;
  color: color-mix(in srgb, var(--milk) 92%, transparent); text-wrap: pretty; }
.close-act { margin-top: clamp(28px, 4.5vh, 44px); }
.close-btns { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8) var(--space-24); }
.close-act .btn-hay { animation: none; }
.close-note { max-width: 40ch; margin-top: var(--space-12); color: color-mix(in srgb, var(--milk) 90%, transparent); text-wrap: balance; }
.close-reqs { margin-top: var(--space-20); }
.close-faq { display: inline-flex; align-items: center; min-height: var(--size-tap); color: var(--milk);
  text-decoration-color: color-mix(in srgb, var(--milk) 50%, transparent); text-underline-offset: .22em; transition: text-decoration-color .2s ease; }
.close-faq:hover { text-decoration-color: var(--hay); }

/* The welcome screen, rising out of the farm and leaning up toward you as it comes (--p, 0 to 1, kept), with a warm
   light behind it. */
.close-phone { --pw: clamp(260px, 23vw, 340px); position: relative; isolation: isolate; justify-self: center;
  margin-bottom: calc(var(--pw) * -.62); translate: 0 calc((1 - var(--p)) * 240px); }
.close-phone::before { content: ""; position: absolute; z-index: -1; inset: -16% -70% 20%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--pasture-detail) 40%, transparent),
    color-mix(in oklab, var(--hay) 20%, transparent) 55%, transparent);
  opacity: calc(.25 + var(--p) * .75); }
.close-phone .phone { transform: perspective(1500px) rotateX(calc((1 - var(--p)) * 22deg)); transform-origin: 50% 100%; }

/* Arrival (home.js adds .will-in only when the close starts below the first screen, then .is-in as it comes into view):
   Cash pops in and hops, the title rises word by word and its stroke draws, then the beta, the chips and the FAQ. */
.close .close-cash.will-in.is-in { transition: opacity .3s ease var(--d, 0s), scale .7s var(--ease-pop) var(--d, 0s); }
.close .close-cash.will-in:not(.is-in) { translate: none; scale: .4; }
.close .close-title.will-in:not(.is-in) { opacity: 1; translate: none; }
.close .close-title.will-in.is-in .mw > span { transition: translate 1.05s var(--ease-expo) calc(var(--d, 0s) + var(--i, 0) * 80ms); }
.close .close-title.will-in:not(.is-in) .mw > span { translate: 0 112%; }
.close .close-title.will-in.is-in .close-mark::after { transition: scale .9s var(--ease-expo) calc(var(--d, 0s) + .55s); }
.close .close-title.will-in:not(.is-in) .close-mark::after { scale: 0 1; }
.close .close-act.is-in .btn-hay { animation: sheen 1.3s var(--ease-soft) calc(var(--d, 0s) + .7s) both; }
.close .close-reqs li.will-in.is-in { transition: opacity .5s var(--ease-soft) var(--d, 0s), translate .8s var(--ease-expo) var(--d, 0s),
  scale .7s var(--ease-pop) var(--d, 0s); }
.close .close-reqs li.will-in:not(.is-in) { translate: 0 12px; scale: .92; }

/* Wide but short screens (most laptop windows): the sentence, the gap before the beta and Cash a little smaller, so
   Cash stays on the last screen, whole, above the title. */
@media (min-width: 860px) and (max-height: 860px) {
  .close-cash { --cash: 60px; }
  .close-lede { margin-top: var(--space-8); font-size: clamp(1rem, .9rem + .3vw, 1.125rem); }
  .close-act { margin-top: clamp(16px, 3vh, 28px); }
}

@media (max-width: 859px) {
  .close-grid { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .close-copy { justify-items: center; padding-bottom: var(--space-32); }
  .close-cash { --cash: 72px; margin: 0 0 var(--space-16); }
  .close-btns { justify-content: center; }
  .close-reqs { max-width: 34rem; }
  .close-title { margin-inline: auto; }
  .close-note { margin-inline: auto; }
  .close-lede { margin-inline: auto; }
  .close-reqs { justify-content: center; }
  .close-phone { --pw: min(66vw, 300px); margin-bottom: calc(var(--pw) * -.86); }
  .close-phone::before { inset: -6% -40% 30%; }
  .close-scrim { background:
    radial-gradient(60% 34% at 50% 100%, color-mix(in oklab, var(--hay) 14%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in oklab, var(--scrim) 90%, transparent) 0%, color-mix(in oklab, var(--scrim) 80%, transparent) 58%,
      color-mix(in oklab, var(--scrim) 36%, transparent) 100%); }
}
/* /region:close */

/* region:footer */
/* The footer (site.css, the same as the reading pages', 44px links and all), here a canvas sheet that slides over the
   close's bottom edge like the page's other sheets. */
.home .site-footer { position: relative; z-index: 10; margin-top: calc(-1 * var(--sheet-r)); border-top: 0;
  border-radius: var(--sheet-r) var(--sheet-r) 0 0; background: var(--canvas); }
/* /region:footer */
