/*
 * Avenrow v4 · the shared page layer for A and B: tokens for both themes, base type, the nav with the theme switch,
 * the CTA, section scaffolding, "Everything inside", the private band, plans and the ending (closing section, footer).
 * Dark: deep emerald like the live site and the onboarding, never black. Light: ivory and cream, emerald and brass as
 * accents, dark only as an accent. Every colour a component uses comes from these tokens, so both themes match.
 */
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
/* Cyrillic for /ru/: the same Onest SemiBold 2.001 (the app's own font file), subset to Cyrillic. unicode-range means
   only pages with Russian text download it. */
@font-face { font-family: "Onest"; src: url("/assets/fonts/onest-600-cyrillic.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: dark;
  --bg0: #0B3A2F; --bg1: #072A22; --bg2: #05211B; --bg3: #041A15;
  --glow: rgba(46, 160, 120, .22); --glow2: rgba(201, 154, 74, .10);
  --ink: #F3EEE3; --ink2: rgba(243, 238, 227, .74); --ink3: rgba(243, 238, 227, .5);
  --line: rgba(243, 238, 227, .13); --line2: rgba(243, 238, 227, .07);
  --surface: rgba(226, 244, 236, .055); --surface2: rgba(226, 244, 236, .09); --surface-solid: #0C3128;
  --accent: #5ECFA5; --accent-fill: #1E8566; --accent-deep: #136048; --accent-soft: rgba(61, 179, 139, .16);
  --brass: #E2C58C; --brass2: #C99A4A; --brass-soft: rgba(201, 154, 74, .16);
  --owed: #E7B25E;
  --deep: #062019;
  --shadow: 0 30px 60px -36px rgba(0, 0, 0, .7);
  --cta-bg: linear-gradient(180deg, #FFFDF8, #EDE7DA); --cta-ink: #0E1C17; --cta-edge: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .12), 0 14px 30px -14px rgba(0, 0, 0, .7);
  --glass: rgba(10, 46, 37, .55); --glass-edge: rgba(243, 238, 227, .12);
  --display: "Onest", "SF Pro Display", system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --out: cubic-bezier(.16, 1, .3, 1);
  --exit: cubic-bezier(.2, .8, .2, 1);
  --spring: linear(0, .013 .6%, .05 1.2%, .2 2.6%, .43 4.3%, .77 7%, .95 8.9%, 1.06 10.9%, 1.11 12.9%, 1.12 14.6%, 1.1 16.6%, 1.05 19.4%, 1.01 22.5%, .99 26%, .985 30%, .99 35%, 1 45%, 1);
  --pad: clamp(16px, 4.4vw, 72px);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg0: #FBF8F1; --bg1: #F7F2E8; --bg2: #F3ECDF; --bg3: #EFE7D8;
  --glow: rgba(61, 179, 139, .14); --glow2: rgba(185, 154, 91, .14);
  --ink: #1B2A27; --ink2: #52605C; --ink3: #7E8885;
  --line: rgba(92, 74, 50, .16); --line2: rgba(92, 74, 50, .08);
  --surface: rgba(255, 253, 248, .78); --surface2: #FFFDF8; --surface-solid: #FFFDF8;
  --accent: #136048; --accent-fill: #1A7A5D; --accent-deep: #0E5340; --accent-soft: rgba(26, 122, 93, .1);
  --brass: #7A6230; --brass2: #B99A5B; --brass-soft: rgba(185, 154, 91, .16);
  --owed: #965816;
  --deep: #0E3B30;
  --shadow: 0 30px 60px -38px rgba(27, 42, 39, .3);
  --cta-bg: linear-gradient(172deg, #1A7A5D 0%, #136048 54%, #0E5340 100%); --cta-ink: #FFFDF8; --cta-edge: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 0 0 1px rgba(230, 207, 156, .28), 0 14px 30px -16px rgba(27, 42, 39, .45);
  --glass: rgba(255, 253, 248, .72); --glass-edge: rgba(92, 74, 50, .12);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg3); scroll-padding-top: 80px; }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 400 17px/1.5 var(--ui); letter-spacing: -.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
  background:
    radial-gradient(90% 60% at 15% 0%, var(--glow), transparent 70%) fixed,
    radial-gradient(70% 50% at 100% 100%, var(--glow2), transparent 70%) fixed,
    linear-gradient(180deg, var(--bg0), var(--bg1) 30%, var(--bg2) 70%, var(--bg3)) fixed; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--surface2); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main { overflow-x: clip; }
.press { transition: transform 140ms var(--exit); }
.press:active { transform: scale(.96); }
.only-dark { display: var(--only-dark, initial); }
html[data-theme="light"] .only-dark { display: none; }
html:not([data-theme="light"]) .only-light { display: none; }

/* theme change: a circular wipe from the switch (View Transitions); otherwise a short cross-fade */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeWipe 720ms var(--out); }
@keyframes themeWipe { from { clip-path: circle(0 at var(--vx, 50%) var(--vy, 0)); } to { clip-path: circle(150vmax at var(--vx, 50%) var(--vy, 0)); } }
html.theme-fade body, html.theme-fade body * { transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease, fill 400ms ease, stroke 400ms ease !important; }

/* ---------- type ---------- */
.kicker { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 12.5px/1.2 var(--ui); letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.kicker .n { font-variant-numeric: tabular-nums; color: var(--ink3); letter-spacing: .1em; }
.pro { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 6px; font: 700 10.5px/1 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #1B140A; background: linear-gradient(180deg, #E7C98E, #C99A4A); vertical-align: middle; }
.h2 { margin: 0; font: 600 clamp(40px, 5.6vw, 92px)/.95 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.h2 .hl { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.h2 .hl > span { display: inline-block; }
.h3 { margin: 0; font: 600 clamp(28px, 3vw, 44px)/1 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.em { color: var(--accent); }
.br { color: var(--brass); }
.lead { margin: 22px 0 0; max-width: 36ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; color: var(--ink2); text-wrap: pretty; }
.fine { margin: 28px auto 0; max-width: 64ch; text-align: center; font-size: 14px; color: var(--ink2); }
.fine a, .more { color: var(--brass); text-underline-offset: 3px; }
.more { display: inline-block; margin-top: 20px; font-weight: 600; }

/* reveals: lines rise out of their own edge when a section comes into view (.seen comes from kit.onView) */
html.js:not(.rm) .rv .h2 .hl > span { transform: translateY(108%); transition: transform 1000ms var(--out); }
html.js:not(.rm) .rv .h2 .hl + .hl > span { transition-delay: 90ms; }
html.js:not(.rm) .rv.seen .h2 .hl > span { transform: none; }
html.js:not(.rm) .rv .fade { opacity: 0; transform: translateY(14px); transition: opacity 700ms ease 180ms, transform 900ms var(--out) 180ms; }
html.js:not(.rm) .rv.seen .fade { opacity: 1; transform: none; }

/* ---------- CTA ---------- */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 27px; text-decoration: none; white-space: nowrap;
  font: 600 16.5px/1 var(--ui); letter-spacing: -.01em; color: var(--cta-ink); background: var(--cta-bg); box-shadow: var(--cta-edge); cursor: default; }
.cta[href] { cursor: pointer; }
.cta svg { width: 18px; height: 18px; }
.cta-lg { height: 62px; padding: 0 34px; border-radius: 31px; font-size: 18px; }
.cta-nav { height: 40px; padding: 0 18px; font-size: 14.5px; border-radius: 20px; }
.cta-nav .l-short { display: none; }
/* App Store badge (build.mjs writes it into every data-cta link once the app is on the store): Apple's own artwork,
   unaltered, never below 40 px tall. White on the dark theme, black (Apple's preferred) on the light one. The link
   loses the pill so only the badge shows; the hover lifts it slightly, the focus ring follows its corners. */
.cta-store { height: auto; padding: 0; gap: 0; background: none; box-shadow: none; border-radius: 9px; transition: transform 160ms var(--out), opacity 160ms ease; }
.cta-store img { display: block; width: auto; height: 54px; }
.cta-lg.cta-store img { height: 60px; }
.cta-nav.cta-store img { height: 40px; }
.cta-store:hover { transform: translateY(-1px); opacity: .92; }
.cta-store:active { transform: none; }
html:not([data-theme="light"]) .cta-store .badge-black, html[data-theme="light"] .cta-store .badge-white { display: none; }
@media (prefers-reduced-motion: reduce) { .cta-store, .cta-store:hover { transition: none; transform: none; } }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.actions.center { justify-content: center; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink2); }
.status .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-soft); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
html.rm .status .pulse { animation: none; }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px var(--pad); pointer-events: none; }
.nav > * { pointer-events: auto; position: relative; }
.nav::before { content: ""; position: absolute; inset: 0 0 -26px; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg1) 88%, transparent), color-mix(in srgb, var(--bg1) 50%, transparent) 60%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }
.nav.scrolled::before { opacity: 1; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 30px; height: auto; }
.logo .wm { width: 104px; height: auto; }
.nav-r { display: flex; align-items: center; gap: 10px; }
.nav-links { display: flex; gap: 2px; padding: 4px; border-radius: 22px; background: var(--glass); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 .5px var(--glass-edge); }
.nav-links a { padding: 8px 14px; border-radius: 18px; font-size: 14.5px; font-weight: 500; color: var(--ink2); text-decoration: none; transition: color 160ms ease, background-color 160ms ease; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); background: var(--surface); }

/* the theme switch: two options, a thumb that slides */
.theme-sw { position: relative; display: grid; grid-template-columns: 1fr 1fr; height: 40px; padding: 4px; border-radius: 20px; background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 var(--glass-edge), inset 0 0 0 .5px var(--glass-edge); }
.theme-sw::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 16px; background: var(--surface2); box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 10px -6px rgba(0, 0, 0, .4); transition: transform 460ms var(--spring); }
html[data-theme="light"] .theme-sw::before { transform: translateX(100%); }
.theme-sw button { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; font: 500 13.5px/1 var(--ui); color: var(--ink2); transition: color 200ms ease; }
.theme-sw button[aria-pressed="true"] { color: var(--ink); }
.theme-sw svg { width: 14px; height: 14px; flex: none; }

/* ---------- sections ---------- */
.sec { position: relative; padding: clamp(96px, 13vh, 160px) var(--pad); }
.sec-head { max-width: 1180px; margin: 0 auto; }
.sec-head.center { text-align: center; display: grid; justify-items: center; }
.sec-head.center .lead { margin-left: auto; margin-right: auto; }
.sec-head .kicker { margin-bottom: 20px; }

/* ============================== EVERYTHING INSIDE ============================== */
.inside .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; }
.inside .sec-head .lead { max-width: 44ch; }
.inside .h2 { font-size: clamp(40px, 4.8vw, 80px); }
/* Who it's for (home): links to the trades and the hub */
.who .sec-head .lead { max-width: 56ch; }
.who-links { max-width: 1180px; margin: 40px auto 0; display: flex; flex-wrap: wrap; gap: 8px; }
.who-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 22px; font: 500 15.5px/1 var(--ui); color: var(--ink); text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); transition: background-color 200ms ease; }
.who-links a:hover { background: var(--surface2); }
.who-links a.all { box-shadow: inset 0 0 0 1px var(--brass2); color: var(--brass); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); position: relative; }
.filters button { position: relative; z-index: 1; height: 36px; padding: 0 15px; border-radius: 18px; font: 500 14.5px/1 var(--ui); color: var(--ink2); transition: color 200ms ease; }
.filters button[aria-pressed="true"] { color: var(--ink); }
.filters .fthumb { position: absolute; z-index: 0; top: 5px; height: 36px; border-radius: 18px; background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--line), 0 6px 14px -10px rgba(0, 0, 0, .5); transition: transform 460ms var(--spring), width 460ms var(--spring); }
html[data-theme="light"] .filters .fthumb { background: #fff; }
.grid { max-width: 1320px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; grid-auto-flow: dense; }
.tile { position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 16px 16px 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line), inset 0 1px 0 var(--line2); overflow: hidden; }
html[data-theme="light"] .tile { background: linear-gradient(180deg, #FFFEFA, #FBF6EC); box-shadow: inset 0 0 0 .5px var(--line), 0 14px 30px -26px rgba(27, 42, 39, .32); }
.tile.w2 { grid-column: span 2; }
.tile.is-out { display: none; }
.tile h3 { margin: auto 0 0; padding-top: 14px; display: flex; align-items: center; gap: 8px; font: 600 16.5px/1.2 var(--ui); letter-spacing: -.01em; }
.tile p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink2); text-wrap: pretty; }
.tile .pro { height: 18px; padding: 0 6px; font-size: 9.5px; }
.tv { position: relative; height: 112px; border-radius: 16px; background: var(--line2); overflow: hidden; display: grid; place-items: center; font-family: var(--ui); }
html[data-theme="light"] .tv { background: rgba(92, 74, 50, .05); }
/* off screen or reduced motion: every tile loop holds still */
.tile:not(.live) .tv *, .tile:not(.live) .tv *::before, .tile:not(.live) .tv *::after { animation-play-state: paused !important; }
html.rm .tv *, html.rm .tv *::before, html.rm .tv *::after { animation: none !important; }

/* shared bits inside the tile visuals */
.tv .chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 500; color: var(--ink); background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--line); white-space: nowrap; }
.tv .row { display: flex; align-items: center; gap: 8px; width: 100%; height: 30px; padding: 0 10px; border-radius: 10px; background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--line); font-size: 12.5px; white-space: nowrap; }
.tv .row b { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.tv .stack { display: grid; gap: 6px; width: calc(100% - 28px); }
.tv .m { color: var(--ink2); }

/* 1 · repeats: the rule changes, the dots on four weeks follow */
.t-rep .rule { position: absolute; top: 12px; left: 0; right: 0; height: 26px; display: grid; justify-items: center; }
.t-rep .rule .chip { grid-area: 1 / 1; opacity: 0; animation: rule 12s ease infinite; }
.t-rep .rule .chip:nth-child(2) { animation-delay: 3s; } .t-rep .rule .chip:nth-child(3) { animation-delay: 6s; } .t-rep .rule .chip:nth-child(4) { animation-delay: 9s; }
@keyframes rule { 0% { opacity: 0; transform: translateY(6px); } 4%, 22% { opacity: 1; transform: none; } 26%, 100% { opacity: 0; transform: translateY(-6px); } }
.t-rep .wks { position: absolute; bottom: 14px; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; }
.t-rep .wks i { height: 9px; border-radius: 3px; background: var(--line); }
.t-rep .wks i.a { animation: repA 12s ease infinite; } .t-rep .wks i.b { animation: repB 12s ease infinite; } .t-rep .wks i.c { animation: repC 12s ease infinite; } .t-rep .wks i.d { animation: repD 12s ease infinite; }
@keyframes repA { 0%, 24% { background: var(--accent-fill); } 26%, 100% { background: var(--line); } }
@keyframes repB { 0%, 49% { background: var(--accent-fill); } 51%, 100% { background: var(--line); } }
@keyframes repC { 0%, 74% { background: var(--accent-fill); } 76%, 100% { background: var(--line); } }
@keyframes repD { 0%, 74% { background: var(--line); } 76%, 99% { background: var(--brass2); } 100% { background: var(--line); } }
html.rm .t-rep .rule .chip:first-child { opacity: 1; }
html.rm .t-rep .wks i.a, html.rm .t-rep .wks i.b, html.rm .t-rep .wks i.c { background: var(--accent-fill); }

/* 2 · calendar import: events come in from the left and wait in Needs setup */
.t-imp .src { position: absolute; left: 14px; top: 50%; margin-top: -24px; width: 48px; height: 48px; border-radius: 12px; background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--line); display: grid; place-items: center; }
.t-imp .src svg { width: 24px; height: 24px; color: var(--ink2); }
.t-imp .evs { position: absolute; left: 72px; right: 10px; top: 18px; display: grid; gap: 6px; }
.t-imp .evs .row { height: 24px; font-size: 11.5px; opacity: 0; animation: evIn 6s var(--out) infinite; }
.t-imp .evs .row:nth-child(2) { animation-delay: .35s; } .t-imp .evs .row:nth-child(3) { animation-delay: .7s; }
.t-imp .evs .row { padding: 0 8px; gap: 4px; }
.t-imp .evs .row b { color: var(--brass); font-weight: 500; font-size: 10px; }
@keyframes evIn { 0% { opacity: 0; transform: translateX(-36px) scale(.9); } 10%, 82% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }
html.rm .t-imp .evs .row { opacity: 1; }

/* 3 · reminders: a lock-screen banner drops in */
.t-rem .lock { position: absolute; inset: 0; display: grid; justify-items: center; align-content: start; padding-top: 10px; }
.t-rem .clock { font: 300 34px/1 var(--ui); letter-spacing: -1px; color: var(--ink); opacity: .9; }
.t-rem .ban { position: absolute; left: 12px; right: 12px; bottom: 10px; display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; padding: 8px 10px; border-radius: 14px; background: var(--surface2); box-shadow: inset 0 0 0 .5px var(--line), 0 10px 20px -14px rgba(0, 0, 0, .5); font-size: 11.5px; animation: ban 5.5s var(--spring) infinite; }
.t-rem .ban i { grid-row: span 2; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(160deg, #1E8566, #0E5340); }
.t-rem .ban b { font-weight: 600; }
.t-rem .ban span { color: var(--ink2); }
@keyframes ban { 0%, 8% { opacity: 0; transform: translateY(-50px) scale(.96); } 18%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-10px); } }
html.rm .t-rem .ban { opacity: 1; }

/* 4 · photos and notes: before and after slide in, the note writes itself */
.t-photos .ph { position: absolute; top: 14px; width: 62px; height: 62px; border-radius: 12px; background: linear-gradient(150deg, #5E6F6A, #2B3633); box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .6); animation: phIn 7s var(--out) infinite; }
.t-photos .ph.b { left: 16px; } .t-photos .ph.a { left: 86px; background: linear-gradient(140deg, #D8D1BE, #9A947F); animation-delay: .4s; }
.t-photos .ph em { position: absolute; left: 5px; bottom: 5px; padding: 2px 6px; border-radius: 7px; background: rgba(255, 253, 248, .9); color: #1B2A27; font: 600 9.5px/1 var(--ui); font-style: normal; }
@keyframes phIn { 0% { opacity: 0; transform: translateY(16px) rotate(-4deg); } 10%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
.t-photos .nt { position: absolute; left: 16px; right: 16px; bottom: 10px; display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; }
.t-photos .nt span { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; animation: note 7s steps(28) infinite; }
@keyframes note { 0%, 16% { width: 0; } 50%, 90% { width: 100%; } 100% { width: 100%; } }
html.rm .t-photos .nt span { width: 100%; }

/* 5 · payment methods: the check moves through the list */
.t-methods .mlist { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: calc(100% - 28px); }
.t-methods .chip { position: relative; animation: mth 9s ease infinite; }
.t-methods .chip:nth-child(2) { animation-delay: 1.1s; } .t-methods .chip:nth-child(3) { animation-delay: 2.2s; } .t-methods .chip:nth-child(4) { animation-delay: 3.3s; }
.t-methods .chip:nth-child(5) { animation-delay: 4.4s; } .t-methods .chip:nth-child(6) { animation-delay: 5.5s; } .t-methods .chip:nth-child(7) { animation-delay: 6.6s; } .t-methods .chip:nth-child(8) { animation-delay: 7.7s; }
@keyframes mth { 0%, 1% { background: var(--surface2); color: var(--ink); } 3%, 11% { background: var(--accent-fill); color: #fff; } 13%, 100% { background: var(--surface2); color: var(--ink); } }

/* 6 · who owes you */
.t-owed .stack { gap: 5px; }
.t-owed .row { height: 34px; }
.t-owed .av { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff; flex: none; }
.t-owed .row b { color: var(--owed); }
.t-owed .row.go b span { display: grid; }
.t-owed .row.go b span i { grid-area: 1 / 1; font-style: normal; text-align: right; animation: owA 7s ease infinite; }
.t-owed .row.go b span i + i { animation-name: owB; color: var(--accent); }
@keyframes owA { 0%, 46% { opacity: 1; } 52%, 92% { opacity: 0; } 98%, 100% { opacity: 1; } }
@keyframes owB { 0%, 46% { opacity: 0; } 52%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
.t-owed .req { display: flex; gap: 6px; justify-content: flex-end; padding: 2px 4px 0; }
.t-owed .req .chip { height: 22px; font-size: 11px; color: var(--accent); }
html.rm .t-owed .row.go b span i + i { opacity: 0; }

/* 7 · records: earned, minus expenses, net */
.t-rec .stack { gap: 4px; font-size: 12.5px; }
.t-rec .ln { display: flex; justify-content: space-between; padding: 4px 10px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.t-rec .ln b { color: var(--ink); font-weight: 500; }
.t-rec .ln.net { margin-top: 2px; padding-top: 7px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.t-rec .ln.net b { color: var(--accent); font-weight: 600; }
.t-rec .ln { animation: recIn 7s var(--out) infinite; opacity: 0; }
.t-rec .ln:nth-child(2) { animation-delay: .4s; } .t-rec .ln:nth-child(3) { animation-delay: .8s; }
@keyframes recIn { 0%, 6% { opacity: 0; transform: translateX(-8px); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
html.rm .t-rec .ln { opacity: 1; }

/* 8 · invoices (Pro): the invoice assembles, the PDF goes out, the overdue reminder is for you */
.t-inv .tv { height: 112px; }
.t-inv .paper { position: absolute; left: 16px; top: 12px; width: 46%; height: 140px; padding: 10px 12px; border-radius: 10px; background: #FFFDF8; color: #1B2A27; box-shadow: 0 14px 28px -16px rgba(0, 0, 0, .55); font-size: 9.5px; line-height: 1.35; animation: invP 9s var(--out) infinite; }
.t-inv .paper .hh { display: flex; justify-content: space-between; font-weight: 600; letter-spacing: .1em; font-size: 8.5px; color: #5F6B68; }
.t-inv .paper .hh b { color: #1B2A27; letter-spacing: .04em; font-size: 10px; }
.t-inv .paper hr { border: 0; height: 1px; margin: 6px 0; background: #1A7A5D; }
.t-inv .paper .l { display: flex; justify-content: space-between; padding: 3px 0; border-top: .5px solid rgba(27, 42, 39, .2); opacity: 0; animation: invL 9s var(--out) infinite; }
.t-inv .paper .l:nth-of-type(2) { animation-delay: .3s; }
.t-inv .paper .tt { display: flex; justify-content: space-between; margin-top: 4px; font-weight: 700; font-size: 11px; }
@keyframes invP { 0% { transform: translateY(30px); opacity: 0; } 8%, 90% { transform: none; opacity: 1; } 100% { opacity: 0; } }
@keyframes invL { 0%, 10% { opacity: 0; transform: translateX(-6px); } 16%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.t-inv .side { position: absolute; right: 14px; left: 54%; top: 16px; display: grid; gap: 8px; }
.t-inv .side .chip { justify-content: center; opacity: 0; animation: invS 9s var(--spring) infinite; }
.t-inv .side .chip:first-child { background: var(--accent-fill); color: #fff; animation-delay: .9s; }
.t-inv .side .chip:nth-child(2) { animation-delay: 1.6s; }
.t-inv .side .chip:nth-child(3) { animation-delay: 3.4s; color: var(--owed); }
@keyframes invS { 0%, 12% { opacity: 0; transform: scale(.8); } 18%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; } }
html.rm .t-inv .paper .l, html.rm .t-inv .side .chip { opacity: 1; }

/* 9 · Voice (Pro): a small wave */
.t-voice .wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.t-voice .wave i { width: 3.5px; height: 100%; border-radius: 2px; background: var(--accent); transform: scaleY(.15); animation: vw 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -110ms); }
@keyframes vw { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(var(--h, .8)); } }
.t-voice .said { position: absolute; bottom: 12px; left: 14px; right: 14px; text-align: center; font-size: 12px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.rm .t-voice .wave i { transform: scaleY(var(--h, .6)); }

/* ============================== PRIVATE ============================== */
.private { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; max-width: 1240px; margin: 0 auto; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.facts li { display: grid; grid-template-columns: 30px 1fr; gap: 14px; align-items: start; padding: 18px 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); font-size: 15.5px; line-height: 1.45; color: var(--ink2); }
.facts li b { display: block; color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }
.facts .ck { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.facts .ck svg { width: 16px; height: 16px; }
.facts .ck path { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 600ms var(--out); }
.rv.seen .facts .ck path, html.rm .facts .ck path { stroke-dashoffset: 0; }
.rv.seen .facts li:nth-child(2) .ck path { transition-delay: 200ms; } .rv.seen .facts li:nth-child(3) .ck path { transition-delay: 400ms; } .rv.seen .facts li:nth-child(4) .ck path { transition-delay: 600ms; }

/* ============================== PLANS ============================== */
.plans .sec-head { margin-bottom: 40px; }
.bill { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 28px; padding: 4px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); touch-action: pan-y; }
.bill .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 20px; background: var(--surface2); box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 14px -10px rgba(0, 0, 0, .5); will-change: transform; }
html[data-theme="light"] .bill .thumb { background: #fff; }
.bill button { position: relative; z-index: 1; height: 40px; padding: 0 22px; border-radius: 20px; font: 500 15px/1 var(--ui); color: var(--ink2); transition: color 200ms ease; }
.bill button[aria-pressed="true"] { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px 30px 32px; border-radius: 28px; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--line); }
html[data-theme="light"] .plan { background: #FFFDF8; box-shadow: inset 0 0 0 .5px var(--line), 0 20px 40px -32px rgba(27, 42, 39, .35); }
.plan h3 { margin: 0; display: flex; align-items: center; gap: 10px; font: 600 26px/1 var(--display); letter-spacing: -.02em; }
.plan .tag { height: 24px; padding: 0 10px; border-radius: 12px; font: 600 12px/24px var(--ui); color: var(--brass); background: var(--brass-soft); }
.plan .price { margin: 18px 0 0; display: flex; align-items: baseline; gap: 10px; }
.plan .price b { font: 600 52px/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--ink2); }
.plan .roll { display: grid; overflow: hidden; height: 56px; }
.plan .roll b { grid-area: 1 / 1; transition: transform 520ms var(--spring), opacity 300ms ease; }
.plan .roll [data-y] { transform: translateY(100%); opacity: 0; }
.plan.y .roll [data-m] { transform: translateY(-100%); opacity: 0; }
.plan.y .roll [data-y] { transform: none; opacity: 1; }
.plan .blurb { margin: 10px 0 0; color: var(--ink2); }
.plan ul { margin: 22px 0 0; padding: 22px 0 0; border-top: .5px solid var(--line); list-style: none; display: grid; gap: 11px; }
.plan li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.4; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 4px; width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-pro { background: linear-gradient(170deg, #134A3C, #0B3328 60%, #082A21); color: #F3EEE3; box-shadow: inset 0 0 0 .5px rgba(231, 201, 142, .35), inset 0 1px 0 rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .6); }
html[data-theme="light"] .plan-pro { background: linear-gradient(170deg, #145C48, #0E4A3A 60%, #0B3E31); color: #F8F4EC; box-shadow: inset 0 0 0 .5px rgba(231, 201, 142, .5), 0 40px 80px -36px rgba(27, 42, 39, .45); }
.plan-pro .price span, .plan-pro .blurb { color: rgba(243, 238, 227, .78); }
.plan-pro ul { border-color: rgba(243, 238, 227, .16); }
.plan-pro li::before { border-color: #E7C98E; }
.plan-pro .tag { color: #1B140A; background: linear-gradient(180deg, #E7C98E, #C99A4A); }
.plan-pro .note { margin: auto 0 0; padding-top: 18px; font-size: 13.5px; color: rgba(243, 238, 227, .8); }

/* ============================== THE ENDING · closing section, footer card, legal strip ============================== */
/* One dark emerald card in both themes (the brand's own ground) with rounded bottom corners and a soft neutral shadow:
   on the home pages it starts with the closing section and the footer row continues it under a hairline; elsewhere
   the card is the footer row. Under it a near-black strip is position: sticky at the bottom and sits under the card,
   so as the page ends the card slides up and uncovers it. No script.
   Markup: web-tools/footer.mjs, written by build.mjs. Colours inside are fixed (dark in both themes); every text colour
   reads at 4.5:1 or more on its background. */
.closing, .credits { --cr-bg: #062820; --cr-ink: #F3EEE3; --cr-ink2: rgba(243, 238, 227, .76); --cr-ink3: rgba(243, 238, 227, .68); --cr-line: rgba(243, 238, 227, .14);
  --cr-in: max(var(--pad), calc((100% - 1240px) / 2));
  color: var(--cr-ink); }
.closing :focus-visible, .credits :focus-visible { outline-color: #E2C58C; }
/* always the white badge: the card is dark in both themes */
html .closing .cta-store .badge-white { display: block; }
html .closing .cta-store .badge-black { display: none; }

/* the closing section: the top of the card */
.closing { position: relative; z-index: 2; margin-top: clamp(24px, 4vw, 48px); padding: clamp(64px, 7vw, 88px) var(--pad) clamp(56px, 6vw, 72px);
  border-radius: 40px 40px 0 0; text-align: center; background: var(--cr-bg); box-shadow: inset 0 .5px 0 rgba(243, 238, 227, .1); }
.cl-h { margin: 0 auto; max-width: 18ch; font: 600 clamp(36px, 4.4vw, 64px)/1.02 var(--display); letter-spacing: -.04em; text-wrap: balance; }
.cl-h span { display: block; }
.cl-em { color: #E2C58C; }
.cl-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1080px; margin: clamp(36px, 4vw, 48px) auto 0; padding: 0; list-style: none; text-align: left; }
.cl-facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px 22px; border-radius: 20px;
  background: rgba(243, 238, 227, .045); box-shadow: inset 0 0 0 .5px var(--cr-line); }
.cl-facts svg { width: 28px; height: 28px; color: #E2C58C; }
.cl-facts p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--cr-ink2); text-wrap: pretty; }
.cl-facts b { display: block; margin: 2px 0 3px; font-size: 16.5px; font-weight: 600; color: var(--cr-ink); }
.closing .cta { margin-top: clamp(32px, 3.6vw, 44px); }

/* the footer: the card's bottom (the wordmark, the links, the language switch), then the strip it uncovers */
.credits { position: relative; margin-top: clamp(40px, 6vw, 72px); background: #020E0B; }
.credits.joined { margin-top: 0; }
.credits a { text-decoration: none; }
.cr-card { position: relative; z-index: 2; border-radius: 0 0 40px 40px; background: var(--cr-bg);
  box-shadow: inset 0 .5px 0 rgba(243, 238, 227, .1), 0 24px 40px -18px rgba(0, 0, 0, .6); }
.credits.joined .cr-card { box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .6); }
.cr-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px 40px; padding: 24px var(--cr-in) 26px; }
.credits.joined .cr-row { border-top: .5px solid var(--cr-line); margin-inline: var(--cr-in); padding-inline: 0; }
.cr-wm { display: block; border-radius: 4px; }
.cr-wm img { width: 117px; height: auto; }
.cr-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 24px; font-size: 15px; }
.cr-links a { padding: 6px 0; color: var(--cr-ink2); transition: color 160ms ease; }
.cr-links a:hover, .cr-links a[aria-current] { color: var(--cr-ink); }
.cr-en { font: 600 11.5px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #E2C58C; }
.cr-lang { display: flex; gap: 2px; padding: 3px; border-radius: 18px; box-shadow: inset 0 0 0 .5px var(--cr-line); }
.cr-lang a { display: grid; place-items: center; min-width: 40px; height: 30px; padding: 0 10px; border-radius: 15px; font: 600 12.5px/1 var(--ui); letter-spacing: .06em; color: var(--cr-ink2); }
.cr-lang a:hover { color: var(--cr-ink); }
.cr-lang a[aria-current] { color: var(--cr-ink); background: rgba(243, 238, 227, .14); }

/* the strip the card uncovers */
.cr-strip { position: sticky; bottom: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px;
  min-height: 68px; padding: 16px var(--cr-in); font-size: 13.5px; color: rgba(243, 238, 227, .66); }
.cr-strip p { margin: 0; }
.cr-strip nav { display: flex; align-items: center; gap: 10px; }
.cr-strip a { color: rgba(243, 238, 227, .8); }
.cr-strip a:hover { color: var(--cr-ink); }

/* the sticky header's badge steps aside while the closing section is on screen, so one badge shows (sections.js) */
.nav .cta-nav { transition: transform 160ms var(--out), opacity 240ms ease, visibility 0s linear 0s; }
.nav.at-end .cta-nav { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 240ms ease, visibility 0s linear 240ms; }
html.rm .nav .cta-nav { transition: none; }

@media (max-width: 900px) {
  .cl-facts { grid-template-columns: minmax(0, 1fr); max-width: 520px; gap: 10px; }
}
/* phones: the same order, tighter */
@media (max-width: 760px) {
  .closing { margin-top: 0; padding: 44px var(--pad) 32px; border-radius: 28px 28px 0 0; }
  .cl-h { max-width: none; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.06; letter-spacing: -.035em; }
  .cl-facts { margin-top: 24px; gap: 8px; }
  .cl-facts li { grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border-radius: 16px; }
  .cl-facts svg { width: 22px; height: 22px; }
  .cl-facts p { font-size: 14px; line-height: 1.4; }
  .cl-facts b { margin: 1px 0 1px; font-size: 15px; }
  .closing .cta { margin-top: 24px; }
  .closing .cta-store img { height: 48px; }
  .cr-card { border-radius: 0 0 28px 28px; }
  .cr-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 20px 22px; }
  .cr-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; font-size: 14.5px; }
  .cr-links a { padding: 5px 0; }
  .cr-en { grid-column: 1 / -1; padding: 6px 0 2px; }
  .cr-lang { justify-self: start; }
  .cr-strip { flex-direction: column; justify-content: center; gap: 2px; text-align: center; min-height: 0; padding-block: 14px; font-size: 13px; }
}

/* ============================== RESPONSIVE ============================== */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .inside .sec-head { grid-template-columns: 1fr; }
  .private { grid-template-columns: 1fr; }
  .cards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .tile { min-height: 0; padding: 12px 12px 14px; border-radius: 20px; }
  .tile.w2 { grid-column: span 2; }
  .tv { height: 96px; }
  .tile h3 { font-size: 15px; padding-top: 12px; }
  .tile p { font-size: 13px; }
  .filters { width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 0 13px; }
}
@media (max-width: 520px) {
  .cta-nav .l-long { display: none; }
  .cta-nav .l-short { display: inline; }
  .logo .wm { display: none; }
  .theme-sw button span { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .theme-sw button { padding: 0 10px; }
  .plan { padding: 26px 22px 28px; }
}

/* ============================== SITE-WIDE COLOUR RULES (owner) ============================== */
/* No mint or teal on the site. On dark, accent words are brass; emerald is for buttons, Paid and the mark.
   (Inside the phones the app keeps its own colours.) */
html:not([data-theme="light"]) { --accent: var(--brass); --accent-soft: rgba(226, 197, 140, .14); --paid: #3DB38B; }
/* light: the faintest grey reads at 4.5:1 on the ivory (was 2.97:1) */
html[data-theme="light"] { --paid: var(--accent-fill); --ink3: #5B6562; }

/* the brand mark in the nav and the footer: ivory on emerald, emerald on ivory */
.mk { fill: #F3EEE3; }
html[data-theme="light"] .mk { fill: #1A7A5D; }

/* No coloured glows anywhere on the site (owner, 2026-11-30): no light blobs behind the page, no halos, no pulse
   rings, no tinted shadows. Elevation is a plain neutral shadow, set where each shadow is declared: black on dark,
   the ink colour (27, 42, 39) on light. Only 1px edges (hairlines, the Pro card's brass edge) carry a colour. */
html:root, html[data-theme] { --glow: transparent; --glow2: transparent; }
.status .pulse { animation: none; box-shadow: none; }
.a-ground::after { display: none; }
