/* c.css: core styles inherited from lab C (tokens use, nav, hero, type, buttons, sections, footer, page layouts); E-only rules live in e.css.
 * Demo styles live in demo-<name>.css, loaded by the page (subpages) or just before the demo mounts (home). */
:root { --ink: var(--brand-navy); --muted: #566176; --faint: #8a94a6; --accent: var(--link); --accent-soft: #eef4fd; --wash: #f5f6f8; --fill: #f5f6f8; --wash-blue: #f2f6fc; --wash-violet: #f6f4fc; --wash-green: #f1f8f4; --pos: #047857; --neg: #b91c1c; --amber: #b45309; --r-xl: 28px; --gutter: 20px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* E's one type scale (7 steps) and one corner scale (3 + pill + circle; 3px for bars). Nothing else. */
  --t-xs: 13px; --t-sm: 15px; --t-md: 17px; --t-lg: 19px; --t-xl: 26px; --t-2xl: 34px; --t-display: 42px;
  --text-body: var(--t-md); --text-small: var(--t-sm);
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --radius-xs: 3px; --radius-sm: var(--r-sm); --radius-control: var(--r-sm); --radius-card: var(--r-md); --radius-window: var(--r-lg); --radius-xl: var(--r-lg); --r-xl: var(--r-lg);
  /* people: the same colours everywhere (js/data.js PEOPLE matches these) */
  --p-you: var(--ink); --p-maya: #0f766e; --p-jordan: #b45309; --p-sam: #7c3aed; --p-alex: #be185d; --p-priya: #2461bd;
  /* one elevation for the whole site: the hero card */
  --lift: 0 24px 60px -18px rgba(22, 45, 89, .22), 0 2px 6px rgba(22, 45, 89, .06);
}
/* Dark theme: every colour E paints reads one of these tokens. Light values are exactly the literals they
   replaced; the dark values are at the end of this file. */
:root {
  --page: #fff; --card: #fff; --ink-fill: var(--ink); --ink-fill-hover: #1b3260; --on-fill: #fff; --on-fill-2: #b8c4da;
  --text-2: #4b5563; --text-3: #5f6878; --text-4: #6b7280; --placeholder: #7b8494;
  --line-2: #dde1e7; --line-3: #cdd3dc; --line-4: #b9c2d0; --line-5: #b9c4d4; --line-6: #cfd6e1; --bar-off: #b9c3d3; --cat-rest: #cbd2dc;
  --accent-line: #c8dafa; --accent-rgb: 36 97 189; --selection: #d8e6fb;
  --pos-soft: #ecfdf5; --pos-soft-2: #d1fae5; --pos-ink: #065f46; --amber-soft: #fffbeb; --amber-ink: #78350f; --amber-dot: #d97706; --mark: #fdf0b8;
  --teal-ink: #0f766e; --recurring-fill: var(--recurring); --av-default: #64748b; --av-you: #162d59; --bezel: #0f1f3d;
  --hover-wash: rgba(255, 255, 255, .6); --att-wash: rgba(255, 255, 255, .12); --sh: 15 31 61; --sh-2: 22 45 89;
  --paper-hl: 36 97 189; /* the read-line wash on the paper receipt: paper stays paper in both themes */
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23047857' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --i-check-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%23047857' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
/* E r4: the scale resolves to whole pixels at every width (stepped, never a vw multiplier) */
@media (min-width: 600px) {
  :root { --t-display: 49px; }
}
@media (min-width: 980px) {
  :root { --t-xl: 30px; --t-2xl: 48px; --t-display: 66px; }
}
@media (min-width: 1200px) {
  :root { --t-lg: 22px; --t-xl: 36px; --t-2xl: 56px; --t-display: 74px; }
}
html { scroll-padding-top: 80px; }
[hidden] { display: none !important; }
body { background: var(--page); color: var(--text); overflow-x: clip; }
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink-fill); color: var(--on-fill); padding: 10px 14px; border-radius: var(--r-sm); text-decoration: none; }
.skip:focus { top: 12px; }
::selection { background: var(--selection); }
.display { font-size: var(--t-display); line-height: 1.02; letter-spacing: -0.042em; font-weight: 700; }
h2 { font-size: var(--t-xl); letter-spacing: -0.036em; line-height: 1.04; font-weight: 700; }
h3 { font-size: var(--t-xl); letter-spacing: -0.028em; line-height: 1.1; font-weight: 700; }
.lede { font-size: var(--t-lg); color: var(--muted); line-height: 1.4; letter-spacing: -0.01em; }
.money { font-variant-numeric: tabular-nums; }
.c-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.c-link:hover { text-decoration: underline; }
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); border: 1px solid transparent; font-weight: 600; font-size: var(--t-md); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); }
.c-btn:active { transform: scale(.98); }
.c-btn-primary { background: var(--ink-fill); color: var(--on-fill); box-shadow: 0 1px 2px rgb(var(--sh) / .2), inset 0 1px 0 rgba(255, 255, 255, .08); }
.c-btn-primary:hover { background: var(--ink-fill-hover); }
.c-btn-quiet { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.c-btn-quiet:hover { border-color: var(--line-5); background: var(--fill); }
.c-btn-quiet:disabled { opacity: .45; cursor: default; }
.c-btn-lg { min-height: 52px; padding: 0 24px; font-size: var(--t-md); border-radius: var(--r-md); }
.c-btn-sm { padding: 0 14px; font-size: var(--t-sm); border-radius: var(--r-sm); }
.c-link-btn { color: var(--accent); font-weight: 600; font-size: var(--t-sm); display: inline-flex; gap: 6px; align-items: center; min-height: 44px; }
.c-link-btn:hover { text-decoration: underline; }
.nav { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 700; font-size: var(--t-lg); letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: none; gap: 4px; margin-left: 24px; }
.nav-links a, .nav-login { color: var(--text); text-decoration: none; font-size: var(--t-sm); font-weight: 500; padding: 10px 12px; border-radius: var(--r-sm); }
.nav-links a:hover, .nav-login:hover { background: var(--wash); }
.nav-links a[aria-current] { color: var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 4px; }
@media (min-width: 860px) {
  .nav-links { display: flex; }
}
.anim .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.anim .rv.in { opacity: 1; transform: none; }
.hero { padding: clamp(32px, 6.5vh, 72px) 0 clamp(48px, 7vw, 88px); text-align: center; }
.hero .display { max-width: 12ch; margin-inline: auto; }
@media (min-width: 700px) {
  .hero .display { max-width: none; }
}
.hero .lede { margin: 20px auto 0; max-width: 30ch; }
@media (min-width: 700px) {
  .hero .lede { max-width: none; }
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.micro { margin-top: 16px; font-size: var(--t-sm); color: var(--muted); }
.ink-mark { position: relative; white-space: nowrap; display: inline-block; }
.ink-line { position: absolute; left: -1%; right: 0; bottom: -0.1em; width: 102%; height: .2em; overflow: visible; }
.ink-line path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (max-width: 600px) {
  .ink-line path { stroke-width: 4; }
}
.anim .ink-line path { stroke-dashoffset: 1; animation: ink-draw .9s .35s var(--ease) forwards; }
@keyframes ink-draw { to { stroke-dashoffset: 0; } }
.hero-viz { margin: clamp(36px, 4.4vw, 56px) auto 0; max-width: 1000px; text-align: left; display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; justify-items: center; }
@media (min-width: 900px) {
  .hero-viz { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1.08fr); justify-items: stretch; }
}
.bank, .tzc { width: 100%; max-width: 460px; }
.bank { border-radius: var(--r-md); background: var(--fill); border: 1px solid var(--line); padding: 18px 18px 16px; }
.bank figcaption { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.bank-i { width: 18px; height: 14px; border-radius: 3px; border: 1.6px solid currentColor; position: relative; }
.bank-i::after { content: ''; position: absolute; left: 0; right: 0; top: 3px; height: 2px; background: currentColor; }
.hero-join { width: 40px; height: 56px; color: var(--accent); }
.hero-join svg { width: 100%; height: 100%; overflow: visible; transform: rotate(90deg); }
@media (min-width: 900px) {
  .hero-join { width: 96px; height: 40px; }
  .hero-join svg { transform: none; }
}
.hero-join path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.tzc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px 18px; box-shadow: var(--lift); }
.tzc-head { display: flex; align-items: center; gap: 10px; }
.tzc-head span { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.tzc-head b { color: var(--ink); font-size: var(--t-md); }
.tzc-head small { color: var(--muted); font-size: var(--t-sm); }
.tzc-label { margin-top: 16px; font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.tzc-amt { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.tzc-amt b { font-size: var(--t-2xl); line-height: 1; letter-spacing: -0.04em; color: var(--ink); }
.tzc-amt span { color: var(--muted); font-size: var(--t-md); }
ul.tzc-cats { margin-top: 14px; display: grid; gap: 2px; }
.tzc-cats li { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tzc-cats li + li { border-top: 1px solid var(--divider); }
.tzc-cats i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.tzc-cats span { display: grid; line-height: 1.3; min-width: 0; }
.tzc-cats span b { font-size: var(--t-md); color: var(--text); font-weight: 600; }
.tzc-cats small { font-size: var(--t-sm); color: var(--muted); }
.tzc-cats > li > b { font-size: var(--t-md); color: var(--ink); }
.tzc-owe { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 10px; padding: 12px 14px; background: var(--pos-soft); border-radius: var(--r-sm); color: var(--pos-ink); font-size: var(--t-sm); font-weight: 500; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.tzc-owe b { font-size: var(--t-md); color: var(--pos); }
.anim .hero-viz:not(.s1) .hero-join path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.anim .hero-viz .tzc { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.anim .hero-viz .hero-join path { stroke-dasharray: 1; transition: stroke-dashoffset .6s .1s var(--ease); }
.verbs { padding: clamp(80px, 11vw, 144px) 0 clamp(40px, 6vw, 80px); }
.verb-n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: var(--t-sm); }
#split .verb-demo { background: var(--wash-violet); }
#understand .verb-demo { background: var(--wash-green); }
.demo-frame { background: var(--card); border-radius: var(--r-lg); border: 1px solid rgb(var(--sh) / .07); box-shadow: 0 1px 2px rgb(var(--sh) / .04), 0 18px 48px -24px rgb(var(--sh-2) / .25); padding: clamp(14px, 2.4vw, 28px); margin-inline: auto; }
.nojs { color: var(--muted); }
.av { --av: var(--av-default); display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--av); color: var(--on-fill); font-size: var(--t-sm); font-weight: 700; flex: none; letter-spacing: -0.02em; }
.av-sm { width: 28px; height: 28px; font-size: var(--t-xs); }
.scan { position: relative; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 12px 8px 8px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--card); transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.pick:hover { border-color: var(--line-strong); }
.pick img { width: 30px; height: 43px; object-fit: cover; object-position: top; border-radius: 3px; box-shadow: 0 1px 3px rgb(var(--sh) / .2); flex: none; }
.pick span { display: grid; line-height: 1.2; }
.pick b { font-size: var(--t-sm); font-weight: 600; color: var(--ink); }
.pick small { font-size: var(--t-sm); color: var(--muted); }
.pick[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
@keyframes beam-pulse { 50% { opacity: .4; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.split.arrive { animation: arrive .7s var(--ease); }
@keyframes arrive { 0% { box-shadow: 0 0 0 0 rgb(var(--accent-rgb) / .5); } 100% { box-shadow: 0 0 0 18px rgb(var(--accent-rgb) / 0); } }
ul.sp-people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  ul.sp-people { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
}
.sp-person { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px; border-radius: var(--r-md); background: var(--wash); transition: background-color .4s var(--ease); }
.sp-person .av { grid-row: 1 / 3; }
.sp-pn { font-size: var(--t-sm); color: var(--muted); font-weight: 600; line-height: 1.2; }
.sp-pa { font-size: var(--t-lg); color: var(--ink); letter-spacing: -0.02em; line-height: 1.15; }
.sp-person[data-p='you'] { background: var(--ink-fill); }
.sp-person[data-p='you'] .sp-pn { color: var(--on-fill-2); }
.sp-person[data-p='you'] .sp-pa { color: var(--on-fill); }
.sp-person[data-p='you'] .av { box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.anim .sp-person.flash { animation: flash .6s var(--ease); }
@keyframes flash { 30% { transform: scale(1.035); } }
.seg { display: inline-flex; background: var(--wash); border-radius: var(--r-sm); padding: 3px; }
.seg button { padding: 0 14px; border-radius: var(--r-sm); font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.seg button[aria-checked='true'] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(var(--sh) / .12); }
.who { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 4px 8px 4px 5px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--card); text-align: left; transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .15s var(--ease); }
.who:hover { border-color: var(--line-strong); }
.who .av { background: var(--card); color: var(--text-4); box-shadow: inset 0 0 0 1.5px var(--line-6); transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.who[aria-pressed='true'] { background: color-mix(in srgb, var(--av-c, var(--accent)) 8%, var(--card)); border-color: color-mix(in srgb, var(--av-c, var(--accent)) 30%, var(--card)); }
.who[aria-pressed='true'] .av { background: var(--av); color: var(--on-fill); box-shadow: none; }
.who:active { transform: scale(.97); }
@media (min-width: 860px) {
  .who { flex-wrap: wrap; }
  .who > span:not(.av) { display: block; }
  .who { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 7px; }
  .who .av { grid-row: 1 / 3; }
}
@keyframes nope { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.sp-check { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--muted); }
.sp-check b { color: inherit; }
.ledger { display: grid; gap: 28px; }
@media (min-width: 880px) {
  .ledger { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.ai { background: var(--wash); }
.ai-grid { display: grid; gap: 36px; }
@media (min-width: 980px) {
  .ai-grid { gap: 64px; }
}
.ai-copy h2 { text-wrap: balance; }
ul.trust { margin: 26px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.trust li { display: flex; align-items: center; gap: 10px; font-size: var(--t-md); color: var(--text); }
.trust li::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--pos-soft) var(--i-check) center / 18px no-repeat; }
.ai-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 28px; }
.msg.enter { animation: rise .38s var(--ease) both; }
.msg.u { align-self: flex-end; max-width: 88%; }
.msg.a { max-width: 92%; font-size: var(--t-md); line-height: 1.5; color: var(--text); }
.msg.a b { color: var(--ink); }
.msg.tool { display: flex; align-items: center; gap: 8px; font-size: var(--t-sm); color: var(--muted); }
.msg.tool small { font-size: var(--t-sm); }
@keyframes spin { to { transform: rotate(360deg); } }
.msg.card { max-width: 100%; }
@media (min-width: 640px) {
  .msg.card { max-width: 86%; }
}
.tc-k.rec { color: var(--recurring); }
.close { text-align: center; }
.close-sub { margin-top: 22px; font-size: var(--t-lg); color: var(--muted); }
.foot { background: var(--wash); border-top: 1px solid var(--line); padding: 48px 0 40px; font-size: var(--t-sm); }
.foot-top { display: grid; gap: 28px; }
@media (min-width: 760px) {
  .foot-top { grid-template-columns: 1fr 2fr; align-items: start; }
}
.foot nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 20px; }
.foot nav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; align-content: start; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { color: var(--accent); }
.foot-legal { color: var(--muted); font-size: var(--t-sm); margin-top: 10px; }
.foot-legal:first-of-type { margin-top: 36px; }
.foot-legal a { color: inherit; }
.sc-hero { padding: clamp(28px, 6vh, 64px) 0 clamp(40px, 6vw, 72px); }
.sc-hero h1 { font-size: var(--t-display); letter-spacing: -0.042em; line-height: 1.03; font-weight: 700; max-width: 16ch; }
.sc-hero .lede { margin-top: 18px; max-width: 40ch; }
.sc-demo .verb-demo { background: var(--wash-blue); }
.phone { position: relative; justify-self: center; width: min(300px, 78vw); aspect-ratio: 390 / 720; border-radius: 40px; padding: 10px; background: var(--bezel); box-shadow: 0 40px 80px -30px rgb(var(--sh) / .45), inset 0 0 0 1.5px rgba(255, 255, 255, .12); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 31px; background: var(--card); }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font-size: var(--t-sm); color: var(--muted); }
.next { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); }
.next h2 { font-size: var(--t-xl); margin-bottom: 20px; }
.next ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
@media (min-width: 700px) {
  .next ul { grid-template-columns: repeat(4, 1fr); }
}
.next a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-md); background: var(--wash); text-decoration: none; color: inherit; min-height: 96px; transition: background-color .2s var(--ease); }
.next a:hover { background: var(--line); }
.next a b { color: var(--ink); font-size: var(--t-md); }
.next a span { color: var(--muted); font-size: var(--t-sm); }
.next a[aria-current] { box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--card); }
.trip { display: grid; gap: 22px; }
@media (min-width: 900px) {
  .trip { gap: 36px; }
}
.trip-bills { margin: 0; padding: 0; list-style: none; }
.trip-bills li { display: grid; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--divider); }
.trip-bills b { color: var(--ink); }
.trip-bills small { display: block; color: var(--muted); font-size: var(--t-sm); }
.settle { border-radius: var(--r-md); padding: 16px; }
.settle h3 { font-size: var(--t-md); letter-spacing: -0.01em; margin-bottom: 8px; }
.settle ul { margin: 0; padding: 0; list-style: none; }
.settle li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: var(--t-sm); }
.settle li b { margin-left: auto; color: var(--ink); }
.settle .arrow { color: var(--faint); }
.connect { padding: clamp(56px, 8vw, 104px) 0; }
.connect-grid { display: grid; gap: 14px; }
@media (min-width: 820px) {
  .connect-grid { grid-template-columns: repeat(2, 1fr); }
}
.cn-card { border-radius: var(--r-lg); background: var(--wash); padding: 24px; }
.cn-card h3 { font-size: var(--t-lg); margin-bottom: 12px; }
.cn-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: var(--t-md); color: var(--text); }
.url-box { flex-wrap: wrap; margin-top: 18px; padding: 10px 10px 10px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--card); }
.url-box code { font-family: 'Receipt Mono', var(--font-mono); color: var(--ink); flex: 1; }
.ai-page .ai { background: var(--page); padding-top: clamp(24px, 4vw, 48px); }
@media (max-width: 859px) {
  .who { flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 6px 2px; text-align: center; }
  .who .av { width: 26px; height: 26px; font-size: var(--t-xs); }
}
@media (max-width: 899px) {
  .bank { padding: 12px 12px 10px; border-radius: var(--r-md); }
  .bank figcaption { margin-bottom: 6px; padding-left: 4px; }
  .hero-join { height: 44px; }
  .hero .c-btn-lg { min-height: 48px; }
}
.cats { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); min-height: 40px; }
.cats:empty { display: none; }
.cats-in { display: grid; gap: 22px; align-items: center; }
@media (min-width: 720px) {
  .cats-in { grid-template-columns: auto 1fr; gap: 40px; }
}
.cats-in.enter { animation: rise .45s var(--ease) both; }
.cats-chart { position: relative; justify-self: center; width: 148px; height: 148px; }
.cats-chart p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.2; }
.cats-chart b { font-size: var(--t-lg); color: var(--ink); letter-spacing: -0.02em; }
.cats-chart small { font-size: var(--t-xs); color: var(--muted); }
.donut circle { transition: stroke-dasharray .6s var(--ease); }
.cats-t { font-weight: 700; color: var(--ink); margin-bottom: 8px; }
ul.cat-list { display: grid; gap: 4px 28px; }
@media (min-width: 720px) {
  ul.cat-list { grid-template-columns: 1fr 1fr; }
}
.cat-g { padding: 8px 0; border-top: 1px solid var(--divider); }
.cat-h { display: flex; align-items: center; gap: 8px; }
.cat-h i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.cat-h b:last-child { margin-left: auto; color: var(--ink); }
.cat-items { color: var(--muted); font-size: var(--t-sm); padding-left: 18px; }
.cats-note { color: var(--muted); }
.trip-h { font-weight: 700; color: var(--ink); font-size: var(--t-lg); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.trip-h span { font-weight: 400; color: var(--muted); font-size: var(--t-sm); }
.trip-bills li { grid-template-columns: 44px 1fr auto; transition: opacity .25s var(--ease); }
.trip-bills li.off { opacity: .45; }
.trip-bills li.off b.money { text-decoration: line-through; }
.tb-on { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.tb-on input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { width: 24px; height: 24px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--card); display: grid; place-items: center; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.tb-on input:checked + span + .tick, .tb-on input:checked ~ .tick { background: var(--ink-fill); border-color: var(--ink-fill); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 18px; background-position: center; background-repeat: no-repeat; }
.tb-on input:focus-visible ~ .tick { box-shadow: var(--focus-ring); }
.trip-side { display: grid; gap: 14px; align-content: start; }
.trip-you { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trip-you p { background: var(--wash); border-radius: var(--r-md); padding: 12px 14px; display: grid; }
.trip-you span { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.trip-you b { font-size: var(--t-lg); color: var(--ink); letter-spacing: -0.02em; }
.trip-you p:last-child { background: var(--ink-fill); }
.trip-you p:last-child span { color: var(--on-fill-2); }
.trip-you p:last-child b { color: var(--on-fill); }
.settle { background: var(--card); border: 1px solid var(--line); }
.settle-n { font-size: var(--t-sm); color: var(--muted); margin-top: 6px; }
.rec-side { display: grid; gap: 14px; align-content: start; }
.cta-left { justify-content: flex-start; }
.url-l { font-size: var(--t-sm); font-weight: 600; color: var(--muted); }
.connect-more { margin-top: 14px; color: var(--muted); font-size: var(--t-md); }
@media (min-width: 1000px) {
  .sc-hero .wrap { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); column-gap: 72px; align-items: start; }
  .sc-hero .wrap > :not(.beats) { grid-column: 1; }
}
.trip { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .trip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
}
.settle li { flex-wrap: nowrap; }
@media (max-width: 719px) {
  .pick { gap: 8px; padding-right: 8px; }
  .pick img { width: 24px; height: 36px; }
}
.tzc-amt span { transition: opacity .4s var(--ease); }
.rec-side, .trip > * { min-width: 0; }
.verb { scroll-margin-top: 80px; }
.ai-grid { grid-template-columns: minmax(0, 1fr); }
.ai-demo, .ai-copy { min-width: 0; }
@media (min-width: 980px) {
  .ai-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
@media (max-width: 859px) {
  ul.sp-people { position: sticky; top: 64px; z-index: 5; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-inline: -6px; padding: 8px 6px; }
  .sp-person { grid-template-rows: auto auto; justify-items: center; text-align: center; padding: 8px 4px; }
  .sp-person .av { grid-row: auto; }
  .sp-pa { font-size: var(--t-md); }
  .sp-person[data-p='you'] .av { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
}
@media (max-width: 400px) {
  .sp-person { padding: 8px 2px; }
  .sp-pa { font-size: var(--t-md); }
}
@media (max-width: 719px) {
  .pick { flex: none; scroll-snap-align: start; }
  .pick b { white-space: nowrap; }
}
.sc-hero .wrap { display: block; }
.sc-hero { padding-bottom: clamp(20px, 3vw, 36px); }
.sc-hero .cta-row { margin-top: 24px; }
.ai-hero .trust { margin-top: 28px; }
@media (max-width: 1023px) {
  .ai-hero .wrap { display: flex; flex-direction: column; }
  .ai-hero-copy { display: contents; }
  .ai-hero-demo { order: 1; margin-top: 28px; }
  .ai-hero .trust { order: 2; }
}
@media (min-width: 1024px) {
  .ai-hero .wrap { display: grid; gap: 56px; align-items: start; }
  .ai-hero .wrap > .ai-hero-copy { grid-column: 1; }
  .ai-hero .wrap > .ai-hero-demo { grid-column: 2; grid-row: 1; margin-top: 24px; }
}
.hero { padding-top: clamp(16px, 3.4vh, 40px); }
.hero .display { font-size: var(--t-display); }
.hero .lede { margin-top: 16px; }
.hero .cta-row { margin-top: 24px; }
.hero-viz { margin-top: 32px; }
@media (min-width: 900px) {
  .tzc-cats li { padding: 7px 0; }
  .tzc-label { margin-top: 12px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 12px; }
  .hero .cta-row { margin-top: 20px; }
  .hero-viz { margin-top: 12px; }
  .tzc { padding-top: 14px; }
  .tzc-label { margin-top: 10px; }
}
.verbs { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(24px, 3vw, 40px); }
.c-btn-sm { min-height: 44px; }
.seg button { min-height: 44px; }
.foot .brand { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 639px) {
  .foot-legal a { display: inline-block; padding: 12px 4px; margin: -12px -4px; }
}
@media (max-width: 879px) {
  .ledger.compact { gap: 14px; }
}
@media (max-width: 719px) {
  .pick { min-height: 48px; padding: 6px 8px 6px 6px; }
}
.cats-in.pending { opacity: .15; }
.cats-in { transition: opacity .3s var(--ease); }
#rent-help { color: var(--text-2); }
.sc-hero-demo .sc-side { margin-top: 28px; }
.sc-hero-demo .split { container: split / inline-size; }
@media (min-width: 1000px) {
  .sc-hero-demo .wrap { display: grid; align-items: start; }
  .sc-hero-demo .wrap > .sc-copy { grid-column: 1; grid-row: 1; position: sticky; }
  .sc-hero-demo .wrap > .sc-side { grid-column: 2; grid-row: 1; }
}
.nav { -webkit-backdrop-filter: none; backdrop-filter: none; }
.sh { display: grid; gap: 10px; max-width: 760px; margin-bottom: clamp(20px, 2.6vw, 32px); text-align: left; }
.sh h2 { font-size: var(--t-xl); letter-spacing: -0.035em; line-height: 1.06; font-weight: 700; text-wrap: balance; }
.sh p { color: var(--muted); font-size: var(--t-lg); line-height: 1.45; max-width: none; text-wrap: pretty; }
@media (min-width: 900px) {
  .hero-viz { align-items: center; }
  .bank { margin-top: 0; }
  .hero-join { margin-top: 0; }
}
@media (max-width: 480px) {
  .hero .cta-row { flex-direction: column; align-items: center; }
  .hero .cta-row .c-btn, .close .cta-row .c-btn { width: 100%; max-width: 340px; }
  .tzc-cats small { display: none; }
  ul.tzc-cats { margin-top: 8px; }
  .tzc-cats li { padding: 6px 0; }
  .tzc-owe { margin-top: 6px; padding: 10px 12px; font-size: var(--t-sm); }
  .tzc-amt b { font-size: var(--t-2xl); }
}
p { text-wrap: pretty; }
.verb-demo { background: none !important; padding: 0; border-radius: 0; }
.demo-frame { max-width: none; }
@media (min-width: 980px) {
  .ai-copy { top: 96px; padding-top: 8px; }
}
.ai-copy h2 { letter-spacing: -0.035em; line-height: 1.06; }
.sc-hero-demo h1 { max-width: 14ch; }
.sc-demo { padding: clamp(16px, 3vw, 40px) 0 clamp(48px, 6vw, 80px); }
.sc-demo + .sc-demo { padding-top: clamp(32px, 5vw, 64px); }
.sc-hero { padding-top: clamp(24px, 5vh, 56px); }
.sc-hero-demo .sc-side { padding: 0; }
@media (min-width: 1000px) {
  .sc-hero-demo .wrap > .sc-side { margin-top: 0; }
}
.rec-compact { grid-template-columns: minmax(0, 1fr) !important; }
.cn-card a { color: var(--accent); font-weight: 600; }
.url-box { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 10px; }
.url-box code { grid-column: 1 / -1; grid-row: 2; white-space: nowrap; overflow-x: auto; overflow-wrap: normal; min-width: 0; font-size: var(--t-sm); padding: 2px 0 4px; scrollbar-width: thin; }
.url-box .url-l { grid-column: 1; grid-row: 1; }
.url-box button { grid-column: 2; grid-row: 1; }
@media (max-width: 420px) {
  .url-box code { font-size: var(--t-xs); }
}
@media (min-width: 720px) {
  .url-box { grid-template-columns: auto minmax(0, 1fr) auto; }
  .url-box code { grid-column: 2; grid-row: 1; }
  .url-box button { grid-column: 3; }
}
#rent-demo { max-width: 820px; }
.rec-compact { max-width: none; }
@media (max-width: 480px) {
  .tzc { padding-bottom: 14px; }
  .tzc-amt { margin-top: 0; }
}
.c-btn:focus-visible, .pick:focus-visible, .seg button:focus-visible, .who:focus-visible, .ways a:focus-visible { box-shadow: var(--focus-ring); }
.pick[aria-pressed='true']:focus-visible { box-shadow: 0 0 0 1px var(--accent) inset, var(--focus-ring); }
.seg button[aria-checked='true']:focus-visible { box-shadow: 0 1px 3px rgb(var(--sh) / .12), var(--focus-ring); }
.nav { background: var(--page); }
.pick span { min-width: 0; }
.pick b { overflow-wrap: anywhere; }
ul.ways { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  ul.ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  ul.ways { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.ways a { position: relative; height: 100%; display: grid; gap: 6px; align-content: start; padding: 20px 52px 20px 20px; border-radius: var(--r-md); background: var(--wash); border: 1px solid transparent; color: inherit; text-decoration: none; transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.ways a:hover { background: var(--card); border-color: var(--line); box-shadow: 0 14px 32px -22px rgb(var(--sh-2) / .35); }
@media (min-width: 1000px) {
  .ways a { padding: 22px 22px 52px; min-height: 150px; }
}
.ai { padding: clamp(56px, 7vw, 104px) 0; }
.split:not([data-sample]) > * { visibility: hidden; }
@media (max-width: 639px) {
  .foot { padding: 36px 0 32px; }
  .foot nav li { min-width: 0; }
  .foot-legal:first-of-type { margin-top: 24px; }
}
#rent-demo { min-height: 746px; }
.sc-demo #scan-demo { min-height: 694px; }
#cat-demo { min-height: 506px; }
@media (min-width: 600px) {
  #rent-demo { min-height: 694px; }
}
@media (min-width: 720px) {
  .sc-demo #scan-demo { min-height: 537px; }
  #cat-demo { min-height: 195px; }
}
@media (max-width: 639px) {
  .ways a { padding: 14px 46px 14px 16px; gap: 2px; border-radius: var(--r-md); }
  ul.ways { gap: 8px; }
}
.sp-person { min-width: 0; }
.sp-pa { font-variant-numeric: tabular-nums; }
@container split (max-width: 720px) {
  .sp-person { justify-items: center; text-align: center; padding: 8px 4px; }
  .sp-person .av { grid-row: auto; }
  .sp-pa { font-size: var(--t-lg); }
  .sp-person[data-p='you'] .av { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .5); }
}
.sc-hero-demo h1 { text-wrap: balance; }
@media (min-width: 1000px) {
  .sc-hero-demo h1 { font-size: var(--t-display); max-width: none; }
  .sc-hero-demo .wrap > .sc-copy { top: 96px; }
}
.sc-hero-demo + .sc-demo { padding-top: clamp(32px, 4vw, 56px); }
.sc-demo .rec-compact { max-width: 820px; }
.bal { margin-top: 16px; max-width: 820px; border-radius: var(--r-md); background: var(--wash); padding: 16px 18px 10px; }
.bal-t { font-weight: 700; color: var(--ink); font-size: var(--t-md); }
ul.bal-list { margin: 8px 0 0; padding: 0; list-style: none; }
.bal-list li { align-items: center; gap: 10px; font-size: var(--t-md); }
.bal-list li + li { border-top: 1px solid var(--line); }
.bal-list b { margin-left: auto; color: var(--ink); font-size: var(--t-md); letter-spacing: -0.01em; }
.bal-list li.pos b { color: var(--pos); }
.close { padding-bottom: clamp(56px, 6vw, 88px); }
.close .close-sub { margin-top: 18px; font-size: var(--t-md); }
.foot-h { font-size: var(--t-xs); font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.foot nav a { font-size: var(--t-sm); padding: 0; }
@media (max-width: 639px) {
  .foot nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
  .foot nav ul { display: grid; }
  .foot nav a { padding: 0; }
}
#rent-demo { max-width: 820px; margin-inline: 0; }
.bal { margin-inline: 0; }
#rent-demo { min-height: 694px; }
@media (min-width: 1024px) {
  .ai-hero .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
}
@media (max-width: 859px) {
  .nav-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; }
}
.brand { min-height: 44px; }
.bank-rows, .url-box code { font-family: var(--font-mono); }
@media (min-width: 880px) {
  .ledger { grid-template-areas: 'sum find'; }
}
.ai { margin-top: clamp(16px, 2vw, 24px); }
#rent-help.warn { color: var(--amber); font-weight: 600; }
.trip > .trip-h, .trip > .trip-you { grid-column: 1 / -1; }
.trip > .trip-h { margin-bottom: -8px; }
@media (min-width: 900px) {
  .trip > .trip-you { max-width: 520px; }
}
.trip-bills li.nope { animation: nope .4s; }
.tb-on input[aria-disabled='true'] ~ .tick { cursor: not-allowed; }
.settle-n.warn { color: var(--amber); font-weight: 600; }
@media print {
  .rv { opacity: 1 !important; transform: none !important; }
  .nav { position: static; }
}
#rec-side { min-height: 708px; }
.av .av-you { width: 62%; height: 62%; display: block; }
.who .av .av-you { color: inherit; }
.bal-list li.neg b { color: var(--ink); }
.bal-note { margin: 4px 0 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 859px) {
  .sp-person { grid-template-columns: auto auto; justify-content: center; column-gap: 5px; row-gap: 1px; }
  .sp-person .av { width: 20px; height: 20px; font-size: var(--t-xs); }
  .sp-pn { display: block; font-size: var(--t-xs); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sp-pa { grid-column: 1 / -1; }
}
@container split (max-width: 720px) {
  .sp-person { grid-template-columns: auto auto; justify-content: center; column-gap: 6px; row-gap: 1px; }
  .sp-person .av { width: 22px; height: 22px; font-size: var(--t-xs); }
  .sp-pn { display: block; font-size: var(--t-sm); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sp-pa { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .sc-hero-demo .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 56px; }
  .sc-hero-demo .wrap > .sc-copy { padding-top: 24px; }
}
.ai-chip { display: inline-flex; align-items: center; border-radius: 999px; font-size: var(--t-sm); text-decoration: none; transition: background-color .2s var(--ease); }
.ai-chip svg { flex: none; }
@media (max-width: 480px) {
  .ai-chip { font-size: var(--t-sm); padding-inline: 10px 12px; }
}
@media (max-width: 400px) {
  .sp-person { column-gap: 4px; }
  .sp-person .av { width: 18px; height: 18px; font-size: var(--t-xs); }
  .sp-pn { font-size: var(--t-xs); }
}
html { scroll-behavior: auto; }
[id] { scroll-margin-top: 80px; }
@media (max-width: 480px) {
  .hero-join { height: 20px; }
}
@media (max-width: 859px) {
  ul.sp-people { background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; box-shadow: 0 1px 0 var(--line); }
}
.month { margin: clamp(28px, 4vw, 44px) auto 0; max-width: 520px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 20px 0; box-shadow: 0 1px 2px rgb(var(--sh) / .04), 0 8px 24px -12px rgb(var(--sh) / .12); }
.month + .cta-row { margin-top: clamp(28px, 4vw, 40px); }
@media (max-width: 480px) {
  .month { padding: 4px 16px 0; }
}
.verb-demo #ledger-demo.ledger { align-content: start; }
@media (max-width: 859px) {
  .nav-links { display: flex; margin-left: auto; gap: 0; }
  .nav-links a:not(.nav-rm) { display: none; }
  .nav-links .nav-rm { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
  .nav-cta { margin-left: 0; }
}
@media (max-width: 379px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}
.sh h2 { font-size: var(--t-xl); letter-spacing: -0.03em; line-height: 1.1; }
.close { padding: clamp(64px, 9vw, 128px) 0; }
.verb { padding-top: clamp(48px, 6vw, 88px); }
.verb:first-of-type { padding-top: 0; }
.verb-demo .demo-frame { box-shadow: none; border-color: var(--line); }
.verb-more { margin: 0; }
.verb-more a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 600; font-size: var(--t-md); text-decoration: none; }
.verb-more a:hover { text-decoration: underline; }
.close-cta { padding: clamp(8px, 2vw, 24px) 0 clamp(64px, 8vw, 104px); background: none; text-align: center; }
.close-cta .cta-row { margin-top: 0; }
.close-cta .close-sub { margin-top: 14px; font-size: var(--t-md); }
.ai-copy h2 { font-size: var(--t-xl); }
@media (min-width: 980px) {
  .ai-grid { align-items: center; }
  .ai-copy { position: static; }
}
@media (min-width: 1024px) {
  .ai-hero h1 { font-size: var(--t-2xl); }
}
@media (min-width: 1000px) {
  .rent-h { grid-area: head; margin-top: 24px; }
  .rent-card { grid-area: card; }
  .rent-bal { grid-area: bal; }
}
.bal-list li { display: block; padding: 0; }
.bal-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 0; background: none; border: 0; text-align: left; font: inherit; font-size: var(--t-md); color: inherit; cursor: pointer; }
.bal-row > b { margin-left: auto; color: var(--ink); font-size: var(--t-md); letter-spacing: -0.01em; }
.bal-list li.pos .bal-row > b { color: var(--pos); }
.bal-chev { flex: none; width: 8px; height: 8px; margin: -4px 2px 0 6px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.bal-row[aria-expanded='true'] .bal-chev { transform: rotate(-135deg); margin-top: 4px; }
ul.bal-why { margin: 0 0 10px 32px; padding: 0; list-style: none; font-size: var(--t-sm); }
.bal-list .bal-why li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
.bal-list .bal-why b { margin: 0; font-size: var(--t-sm); font-weight: 600; color: var(--text) !important; }
.bal-why small { color: var(--muted); font-size: var(--t-sm); }
.bal-why .money { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 859px) {
  .nav-in { gap: 8px; }
  .nav-links .nav-rm, .nav-login { white-space: nowrap; padding: 0 8px; }
}
@media (max-width: 400px) {
  .nav-in { gap: 4px; }
  .nav-links .nav-rm, .nav-login { padding: 0 6px; font-size: var(--t-sm); }
}
@media (min-width: 1000px) {
  .rent-bal { align-self: start; }
}
@media (max-width: 480px) {
  .hero .cta-row .c-btn { max-width: none; }
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid transparent !important; outline-offset: 2px; }
.ai-chip { background: none; padding: 0; min-height: 44px; color: var(--muted); font-weight: 500; gap: 6px; }
.ai-chip:hover { background: none; color: var(--accent); text-decoration: underline; }
.hero .micro { margin-top: 8px; }
.hero { padding-bottom: clamp(24px, 3vw, 32px); }
.how-t { text-align: center; letter-spacing: -0.04em; line-height: 1.04; font-weight: 700; text-wrap: balance; margin: 0 auto clamp(4px, 1vw, 12px); }
.how-t span { color: var(--accent); }
.close-end .close-sub { margin-top: 14px; font-size: var(--t-md); }
@keyframes nope { 33% { transform: translateX(-3px); } 66% { transform: translateX(3px); } }
@media (min-width: 1024px) {
  .sc-hero-demo .wrap > .sc-copy { position: sticky; top: 112px; align-self: start; }
  .rent-bal { position: sticky; top: 112px; align-self: start; }
}
.nav-links a, .nav-login { min-height: 44px; display: inline-flex; align-items: center; }
.foot nav a { display: inline-flex; align-items: center; line-height: 1.2; }
.foot-h { margin-bottom: 0; }
.how-t + .verb { padding-top: clamp(28px, 4vw, 56px); }
button.tzc-owe { width: 100%; border: 0; font: inherit; font-size: var(--t-sm); font-weight: 500; text-align: left; cursor: pointer; }
button.tzc-owe b { margin-left: auto; }
.tzc-chev { flex: none; width: 7px; height: 7px; margin: -3px 2px 0 2px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--ease); }
.tzc-owe[aria-expanded='true'] .tzc-chev { transform: rotate(-135deg); margin-top: 3px; }
button.tzc-owe:hover { background: var(--pos-soft-2); }
button.tzc-owe:focus-visible { box-shadow: var(--focus-ring); }
.tzc-who { padding: 6px 14px 2px; }
.tzc-who ul { margin: 0; padding: 0; list-style: none; }
.tzc-who li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: var(--t-sm); color: var(--text); }
.tzc-who li b { margin-left: auto; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tzc-who .av-sm { width: 24px; height: 24px; font-size: var(--t-xs); }
.tzc-who p { margin-top: 4px; font-size: var(--t-sm); color: var(--muted); }
@media (max-width: 599px) {
  .hero .micro { display: block; margin-top: 4px; }
}
@media (max-width: 599px) {
  .nav-links .nav-rm { display: none; }
}
.how-t { color: var(--ink); max-width: none; }
.close-end { padding: clamp(32px, 4vw, 56px) 0 clamp(40px, 5vw, 64px); }
.close-h { font-size: var(--t-xl); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; color: var(--ink); margin: 0 auto 22px; text-wrap: balance; }
@media (max-width: 480px) {
  .close .cta-row .c-btn { max-width: none; }
}
.pick small { display: none; }
#split .demo-frame, #understand .demo-frame { border: 0; box-shadow: none; border-radius: 0; padding: 0; background: none; }
@keyframes lgflash { 0%, 40% { background: var(--accent-soft); box-shadow: 0 0 0 6px var(--accent-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@media (max-width: 720px) {
  .foot nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
  .foot nav a { font-size: var(--t-sm); }
}
.rm-hero .bal { margin-top: 20px; }
@media (min-width: 1000px) {
  .rm-hero .wrap { grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); grid-template-rows: min-content 1fr; grid-template-areas: 'copy card' 'bal card'; column-gap: 56px; }
  .rm-hero.sc-hero-demo .wrap > .sc-copy { grid-area: copy; position: static; }
  .rm-hero.sc-hero-demo .wrap > .sc-side { grid-area: card; }
  .rm-hero.sc-hero-demo .wrap > .rent-bal { grid-area: bal; position: sticky; top: 96px; align-self: start; }
  .rm-hero .bal { margin-top: 28px; }
}
@media (max-width: 999px) {
  .rm-hero .sc-side { margin-top: 24px; }
}
.close-sub { text-wrap: balance; }
@media (min-width: 1000px) {
  .rm-hero h1 { font-size: var(--t-2xl); }
}
@media (min-width: 480px) {
    }
@media (min-width: 600px) {
  }
@media (min-width: 640px) {
  }
@media (min-width: 720px) {
  }
@media (min-width: 860px) {
  }
@media (min-width: 880px) {
  }
@media (min-width: 1000px) {
  }
.how-t { font-size: var(--t-xl); }
@media (min-width: 900px) {
  .hero-viz.pinned { align-items: start; }
}
.foot nav a { min-height: 44px; }
.ai-hero-demo#chat-demo { min-height: 767px; }
@media (min-width: 350px) {
  .ai-hero-demo#chat-demo { min-height: 722px; }
}
@media (min-width: 360px) {
  .ai-hero-demo#chat-demo { min-height: 708px; }
}
@media (min-width: 390px) {
  .ai-hero-demo#chat-demo { min-height: 693px; }
}
@media (min-width: 460px) {
  .ai-hero-demo#chat-demo { min-height: 669px; }
}
@media (min-width: 480px) {
  .ai-hero-demo#chat-demo { min-height: 774px; }
}
@media (min-width: 540px) {
  .ai-hero-demo#chat-demo { min-height: 701px; }
}
@media (min-width: 640px) {
  .ai-hero-demo#chat-demo { min-height: 709px; }
}
#chat-demo.chat:not(.ai-hero-demo) { min-height: 0; }
.tzc-label, .tzc-amt b { transition: opacity .18s var(--ease); }
#cat-demo { container: cats / inline-size; }
.cats-in > * { min-width: 0; }
@container cats (max-width: 640px) {
  ul.cat-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .hero-viz { grid-template-columns: minmax(0, 1fr); }
}
.tzc-amt span { min-width: 0; overflow: hidden; white-space: nowrap; }
@media (min-width: 721px) {
  .foot nav { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}

/* E r1: printed receipts use the type scale too (the kit sizes them in em) */
.tz-receipt .tz-r-store { font-size: var(--t-md); }
.tz-receipt .tz-r-total { font-size: var(--t-sm); }


/* ======================================================================================
   E r1: one system. Every demo sits in the same frame (white, 1px line, 22px corners, no shadow);
   the hero card is the only lifted object; one selected state (white, 1.5px ink line); the page stays
   white from hero to close. Type and corners come only from the tokens in c.css :root.
   ====================================================================================== */
.demo-frame, .verb-demo > .demo-frame, #split .demo-frame, #understand .demo-frame {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: none; padding: 24px;
}
@media (max-width: 599px) {
  .demo-frame, .verb-demo > .demo-frame, #split .demo-frame, #understand .demo-frame { padding: 16px; }
}
.ai, .ai-page .ai { background: var(--page); }
.tzc { box-shadow: var(--lift); }
.pick[aria-pressed='true'] { border-color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 .5px var(--ink); }
.pick[aria-pressed='true']:focus-visible { box-shadow: inset 0 0 0 .5px var(--ink), var(--focus-ring); }
/* the step titles, the AI title and the close share one rhythm */
.ai { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); }
.ai-copy h2 { font-size: var(--t-xl); letter-spacing: -0.03em; line-height: 1.1; }
/* nav: below 1024 only Log in and Sign up (no stray single link) */
@media (max-width: 1023px) {
  .nav-links, .nav-links .nav-rm { display: none !important; }
  .nav-cta { margin-left: auto; }
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}
/* footer: tight, like the rest */
.foot { padding: 28px 0 28px; }
.foot nav a { min-height: 28px; }
.foot nav ul { gap: 0; }
.foot-h { margin-bottom: 4px; }
.foot-legal:first-of-type { margin-top: 20px; }
.foot-legal { margin-top: 4px; }
.cat-bar { display: flex; gap: 3px; height: 10px; margin: 10px 0 6px; }
.cat-bar i { flex: var(--w) 1 0; min-width: 6px; background: var(--c); border-radius: 3px; }
/* just-me: the sorted receipt is a total and a horizontal bar, like the hero (no donut) */
.cats-in { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
.cats-chart { position: static; width: auto; height: auto; justify-self: start; }
.cats-chart p { position: static; display: flex; align-items: baseline; gap: 8px; text-align: left; }

/* ======================================================================================
   E r2: one palette, one easing, one content edge.
   People are round, categories are square, and no person shares a hue with the accent or a category.
   Every grey fill is --fill (cool), every hairline --line. Filled ink is for primary buttons and your
   own chat bubbles only; "this one is you" is always the white tile with the 1.5px ink line.
   ====================================================================================== */
:root {
  --p-priya: #0e7490;
  --cat-groceries: #059669; --cat-household: #475569; --cat-health: #dc2626; --cat-personal-care: #a21caf;
  --cat-gifts: #db2777; --cat-dining: #ea580c; --cat-other: #94a3b8;
}
.tzc-cats i, .tg-cat, .tc-k .dot, .so-mine i, .so-leg i, .cat-h i, .sp-yours i, .sp-meta i { width: 8px; height: 8px; border-radius: 2px; }
.tzc-cats li { grid-template-columns: 8px 1fr auto; }
/* subpage titles share one size; the display size is for the home hero and the closing line only */
.sc-hero h1, .sc-hero-demo h1, .tour-hero h1 { font-size: var(--t-2xl) !important; max-width: 18ch; }
@media (min-width: 1000px) {
  .sc-hero-demo h1 { max-width: none; }
}
/* "You" is the selected state, never a navy block */
.trip-you p:last-child { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--ink); }
.trip-you p:last-child span { color: var(--ink); }
.trip-you p:last-child b { color: var(--ink); }
/* people read like the grid's header everywhere: avatar, name, amount, stacked in one row */
.sp-person, .sp-person[data-p='you'] { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto auto auto; justify-items: center; text-align: center; row-gap: 2px; padding: 6px 2px; background: none; box-shadow: none; }
.sp-person .av { grid-row: auto; box-shadow: none !important; margin-bottom: 2px; }
.sp-person .sp-pn { color: var(--muted); font-size: var(--t-xs); }
.sp-person[data-p='you'] .sp-pn { color: var(--ink); font-weight: 600; }
.sp-person[data-p='you'] .sp-pa, .sp-person .sp-pa { color: var(--ink); }
/* home: the three steps and the AI section share one content edge */
.verbs .verb-demo, .ai .ai-grid { max-width: 960px; margin-inline: auto; }
/* E r3: the step heading, in one place (it used to be redefined nine times, which let step 2 drift 68px left) */
.verb-copy { max-width: 960px; margin: 0 auto clamp(16px, 2vw, 24px); text-align: left; }
.verb-copy h3 { --h3: var(--t-xl); display: flex; align-items: flex-start; gap: 14px; font-size: var(--h3); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; text-wrap: balance; }
.verb-copy h3 .verb-n { flex: none; width: 30px; height: 30px; font-size: var(--t-sm); font-weight: 700; color: var(--accent); letter-spacing: 0; margin-top: calc((1.1 * var(--h3) - 30px) / 2); }
@media (max-width: 719px) {
  .verb-copy h3 { gap: 10px; }
  .verb-copy h3 .verb-n { width: 26px; height: 26px; font-size: var(--t-xs); margin-top: calc((1.1 * var(--h3) - 26px) / 2); }
}
@media (min-width: 980px) {
  /* the AI headline is level with the chat's top and stays in view while the chat plays */
  .ai-grid { align-items: start; }
  .ai-copy { position: sticky; top: 96px; align-self: start; padding-top: 4px; }
}
.ai { padding-top: clamp(24px, 3vw, 44px); }
.ai .trust { margin-top: 14px; }
/* phones: the hero's second line is the honest one only (the AI section and the nav carry the AI) */
@media (max-width: 599px) {
  .hero .micro .ai-chip { display: none; }
}
/* the close is the headline and one button */
.close-end { padding: clamp(24px, 3vw, 40px) 0 clamp(28px, 3.5vw, 44px); }
.close-end .close-h { margin-bottom: 22px; }


/* ======================================================================================
   E r3: one voice per source, one meaning per colour.
   - Mono is one face (the receipt's), for every outside document: bank lines, statements, receipts.
   - Saturated hues are people only. Categories are one ink ramp; their marks stay square.
   - Grey fill (--fill) means "what your bank or statement shows". Everything Trezzit says is white.
   ====================================================================================== */
@font-face { font-family: 'Receipt Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../_kit/fonts/plex-mono-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Receipt Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('../../_kit/fonts/plex-mono-600-latin.woff2') format('woff2'); }
:root {
  --font-mono: 'Receipt Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --cat-1: var(--ink); --cat-2: color-mix(in srgb, var(--ink) 70%, var(--card)); --cat-3: color-mix(in srgb, var(--ink) 45%, var(--card)); --cat-4: color-mix(in srgb, var(--ink) 25%, var(--card));
  --cat-groceries: var(--cat-1); --cat-health: var(--cat-2); --cat-dining: var(--cat-2); --cat-personal-care: var(--cat-3);
  --cat-household: var(--cat-3); --cat-gifts: var(--cat-4); --cat-other: var(--cat-4);
}
/* "You spent", drawn one way: a muted label on its own line, a bold tabular number, then a muted "of $X" */
.spent { display: grid; justify-items: start; gap: 2px; margin: 0; }
.spent > span { font-size: var(--t-sm); color: var(--muted); font-weight: 500; }
.spent > b { font-size: var(--t-lg); color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.15; }
.spent > b s { color: var(--faint); font-weight: 500; font-size: var(--t-sm); margin-right: 6px; text-decoration-thickness: 1px; }
.spent > small { font-size: var(--t-sm); color: var(--muted); }
/* /trips: the weekend's two figures sit over the settle-up (right column), the bills fill the left; "You paid"
   is the bank's view (grey), "You spent" is Trezzit's (white, hairline): no selected outline where nothing is selectable */
.trip-side .trip-you { max-width: none; }
.trip-you p:last-child { box-shadow: inset 0 0 0 1px var(--line); }
.trip-you p:last-child span { color: var(--muted); }
.trip-you span { font-weight: 500; }
/* the apartment's balance, /ai's setup cards and the subpage link cards are Trezzit's, not the bank's: white, hairline */
.bal, .cn-card, .next a, .ways a { background: var(--card); border: 1px solid var(--line); }
.next a:hover, .ways a:hover { background: var(--card); border-color: var(--line-strong); }
.bal-sub { margin: -2px 0 6px; font-size: var(--t-sm); color: var(--muted); }

/* E r3: subpage reserved heights (re-measured 320-1920: /trips grid and weekend, /just-me scan and month) */
#split-demo.res-trips { min-height: 892px; }
@media (min-width: 330px) { #split-demo.res-trips { min-height: 854px; } }
@media (min-width: 350px) { #split-demo.res-trips { min-height: 835px; } }
@media (min-width: 370px) { #split-demo.res-trips { min-height: 828px; } }
@media (min-width: 400px) { #split-demo.res-trips { min-height: 811px; } }
@media (min-width: 410px) { #split-demo.res-trips { min-height: 761px; } }
@media (min-width: 420px) { #split-demo.res-trips { min-height: 763px; } }
@media (min-width: 600px) { #split-demo.res-trips { min-height: 762px; } }
@media (min-width: 640px) { #split-demo.res-trips { min-height: 725px; } }
#trip-demo { min-height: 847px; }
@media (min-width: 330px) { #trip-demo { min-height: 798px; } }
@media (min-width: 350px) { #trip-demo { min-height: 774px; } }
@media (min-width: 360px) { #trip-demo { min-height: 748px; } }
@media (min-width: 370px) { #trip-demo { min-height: 701px; } }
@media (min-width: 410px) { #trip-demo { min-height: 674px; } }
@media (min-width: 450px) { #trip-demo { min-height: 651px; } }
@media (min-width: 600px) { #trip-demo { min-height: 667px; } }
@media (min-width: 900px) { #trip-demo { min-height: 390px; } }
@media (min-width: 1200px) { #trip-demo { min-height: 394px; } }
@media (min-width: 1440px) { #trip-demo { min-height: 395px; } }
.res-jm { min-height: 1214px; }
@media (min-width: 490px) { .res-jm { min-height: 1225px; } }
@media (min-width: 600px) { .res-jm { min-height: 1241px; } }
@media (min-width: 720px) { .res-jm { min-height: 870px; } }
@media (min-width: 740px) { .res-jm { min-height: 811px; } }
@media (min-width: 1000px) { .res-jm { min-height: 869px; } }
@media (min-width: 1100px) { .res-jm { min-height: 830px; } }
@media (min-width: 1440px) { .res-jm { min-height: 839px; } }
.sc-demo #ledger-demo { min-height: 712px; }
@media (min-width: 336px) { .sc-demo #ledger-demo { min-height: 693px; } }
@media (min-width: 342px) { .sc-demo #ledger-demo { min-height: 673px; } }
@media (min-width: 380px) { .sc-demo #ledger-demo { min-height: 679px; } }
@media (min-width: 395px) { .sc-demo #ledger-demo { min-height: 662px; } }
@media (min-width: 445px) { .sc-demo #ledger-demo { min-height: 645px; } }
@media (min-width: 600px) { .sc-demo #ledger-demo { min-height: 661px; } }
@media (min-width: 880px) { .sc-demo #ledger-demo { min-height: 395px; } }
@media (min-width: 980px) { .sc-demo #ledger-demo { min-height: 399px; } }
@media (min-width: 1200px) { .sc-demo #ledger-demo { min-height: 405px; } }

/* E r4: in a chat thread, everything the assistant hands you (a card, the row it added, the result) spans the
   thread to the same right edge as your own bubbles; only text bubbles shrink to their words. */
.msg.card, .msg.act, .msg.proof { align-self: stretch; max-width: none; width: auto; }
@media (min-width: 640px) {
  .msg.card { max-width: none; }
}
/* /trips: the settle-up note only speaks when a tap is refused; it keeps its line so nothing moves when it does */
.settle-n { min-height: 1.45em; }
.settle-n:empty { margin-top: 0; }

/* E r4: /just-me scans one receipt (the pharmacy), so its frame reserves the pharmacy's height, not the
   taller shared receipt's (re-measured 320-1920) */
#cat-demo { min-height: 261px; }
@media (min-width: 740px) { #cat-demo { min-height: 166px; } }
@media (min-width: 1000px) { #cat-demo { min-height: 261px; } }
.res-jm { min-height: 891px; }
@media (min-width: 481px) { .res-jm { min-height: 902px; } }
@media (min-width: 600px) { .res-jm { min-height: 918px; } }
@media (min-width: 720px) { .res-jm { min-height: 793px; } }
@media (min-width: 740px) { .res-jm { min-height: 698px; } }
@media (min-width: 1000px) { .res-jm { min-height: 788px; } }
@media (min-width: 1044px) { .res-jm { min-height: 762px; } }
@media (min-width: 1064px) { .res-jm { min-height: 753px; } }

/* E r4: /ai chat and /roommates rent card reserve exactly what they mount to (re-measured 320-1920) */
.ai-hero-demo#chat-demo { min-height: 847px; }
@media (min-width: 337px) { .ai-hero-demo#chat-demo { min-height: 825px; } }
@media (min-width: 340px) { .ai-hero-demo#chat-demo { min-height: 808px; } }
@media (min-width: 356px) { .ai-hero-demo#chat-demo { min-height: 781px; } }
@media (min-width: 360px) { .ai-hero-demo#chat-demo { min-height: 731px; } }
@media (min-width: 371px) { .ai-hero-demo#chat-demo { min-height: 709px; } }
@media (min-width: 381px) { .ai-hero-demo#chat-demo { min-height: 716px; } }
@media (min-width: 469px) { .ai-hero-demo#chat-demo { min-height: 691px; } }
@media (min-width: 480px) { .ai-hero-demo#chat-demo { min-height: 783px; } }
@media (min-width: 546px) { .ai-hero-demo#chat-demo { min-height: 733px; } }
@media (min-width: 550px) { .ai-hero-demo#chat-demo { min-height: 708px; } }
@media (min-width: 640px) { .ai-hero-demo#chat-demo { min-height: 716px; } }
#rent-demo { min-height: 802px; }
@media (min-width: 361px) { #rent-demo { min-height: 779px; } }
@media (min-width: 370px) { #rent-demo { min-height: 725px; } }
@media (min-width: 401px) { #rent-demo { min-height: 727px; } }
@media (min-width: 560px) { #rent-demo { min-height: 717px; } }
@media (min-width: 600px) { #rent-demo { min-height: 733px; } }
@media (min-width: 860px) { #rent-demo { min-height: 735px; } }
@media (min-width: 1000px) { #rent-demo { min-height: 719px; } }
@media (min-width: 1120px) { #rent-demo { min-height: 735px; } }
@media (min-width: 1200px) { #rent-demo { min-height: 739px; } }

/* ---------- E r5: reserved heights re-measured 320-1920 after this round (each frame mounts into exactly
   its final height: home without the sample tiles and payer rows, /ai without chips, /just-me without the
   item list, the inline rent row, the one-line rent history) ---------- */
.ai-hero-demo#chat-demo { min-height: 631px; }
@media (min-width: 360px) { .ai-hero-demo#chat-demo { min-height: 604px; } }
@media (min-width: 380px) { .ai-hero-demo#chat-demo { min-height: 583px; } }
@media (min-width: 390px) { .ai-hero-demo#chat-demo { min-height: 588px; } }
@media (min-width: 480px) { .ai-hero-demo#chat-demo { min-height: 598px; } }
@media (min-width: 560px) { .ai-hero-demo#chat-demo { min-height: 573px; } }
@media (min-width: 640px) { .ai-hero-demo#chat-demo { min-height: 581px; } }
.demo-frame.res-jm { min-height: 616px; }
@media (min-width: 600px) { .demo-frame.res-jm { min-height: 632px; } }
@media (min-width: 720px) { .demo-frame.res-jm { min-height: 510px; } }
@media (min-width: 1000px) { .demo-frame.res-jm { min-height: 470px; } }
.sc-demo #ledger-demo { min-height: 712px; }
@media (min-width: 340px) { .sc-demo #ledger-demo { min-height: 693px; } }
@media (min-width: 350px) { .sc-demo #ledger-demo { min-height: 673px; } }
@media (min-width: 380px) { .sc-demo #ledger-demo { min-height: 679px; } }
@media (min-width: 400px) { .sc-demo #ledger-demo { min-height: 662px; } }
@media (min-width: 460px) { .sc-demo #ledger-demo { min-height: 646px; } }
@media (min-width: 600px) { .sc-demo #ledger-demo { min-height: 662px; } }
@media (min-width: 880px) { .sc-demo #ledger-demo { min-height: 396px; } }
@media (min-width: 980px) { .sc-demo #ledger-demo { min-height: 399px; } }
@media (min-width: 1200px) { .sc-demo #ledger-demo { min-height: 406px; } }
#rent-demo { min-height: 680px; }
@media (min-width: 390px) { #rent-demo { min-height: 657px; } }
@media (min-width: 410px) { #rent-demo { min-height: 659px; } }
@media (min-width: 600px) { #rent-demo { min-height: 675px; } }
@media (min-width: 860px) { #rent-demo { min-height: 677px; } }
@media (min-width: 1000px) { #rent-demo { min-height: 661px; } }
@media (min-width: 1199px) { #rent-demo { min-height: 677px; } }
@media (min-width: 1200px) { #rent-demo { min-height: 682px; } }
#rec-side { min-height: 691px; }
@media (min-width: 340px) { #rec-side { min-height: 668px; } }
@media (min-width: 350px) { #rec-side { min-height: 616px; } }
@media (min-width: 380px) { #rec-side { min-height: 587px; } }
@media (min-width: 390px) { #rec-side { min-height: 564px; } }
@media (min-width: 420px) { #rec-side { min-height: 541px; } }
@media (min-width: 490px) { #rec-side { min-height: 510px; } }
@media (min-width: 600px) { #rec-side { min-height: 526px; } }
/* sweep: /trips grid hint has its own line below 420 (re-measured per pixel 320-700) */
#split-demo.res-trips { min-height: 844px; }
@media (min-width: 324px) { #split-demo.res-trips { min-height: 827px; } }
@media (min-width: 340px) { #split-demo.res-trips { min-height: 871px; } }
@media (min-width: 350px) { #split-demo.res-trips { min-height: 852px; } }
@media (min-width: 364px) { #split-demo.res-trips { min-height: 847px; } }
@media (min-width: 398px) { #split-demo.res-trips { min-height: 831px; } }
@media (min-width: 404px) { #split-demo.res-trips { min-height: 814px; } }
@media (min-width: 407px) { #split-demo.res-trips { min-height: 797px; } }
@media (min-width: 408px) { #split-demo.res-trips { min-height: 780px; } }
@media (min-width: 420px) { #split-demo.res-trips { min-height: 805px; } }
@media (min-width: 422px) { #split-demo.res-trips { min-height: 789px; } }
@media (min-width: 425px) { #split-demo.res-trips { min-height: 772px; } }
@media (min-width: 426px) { #split-demo.res-trips { min-height: 763px; } }
@media (min-width: 445px) { #split-demo.res-trips { min-height: 746px; } }
@media (min-width: 600px) { #split-demo.res-trips { min-height: 762px; } }
@media (min-width: 640px) { #split-demo.res-trips { min-height: 725px; } }


/* ======================================================================================
   Dark theme. Follows the OS (prefers-color-scheme) unless the nav toggle stored a choice: the inline script
   in each page's <head> sets html[data-theme] before first paint. Values are the app's Graphite dark
   (Trezzit_Frontend src/theme: colors.js darkVariants.graphite and darkShared, darkPalette.js). The two
   blocks below hold the same declarations: keep them identical. The paper receipt stays paper.
   ====================================================================================== */
.theme-tg { display: none; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-sm); color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.js .theme-tg { display: inline-grid; }
.theme-tg svg { width: 20px; height: 20px; }
.theme-tg .i-sun { display: none; }
@media (hover: hover) { .theme-tg:hover { background: var(--wash); color: var(--ink); } }
.theme-tg:focus-visible { box-shadow: var(--focus-ring); }
@media (max-width: 400px) { .theme-tg { margin-right: -4px; } }
@media (max-width: 339px) { .nav-cta .nav-login { padding: 0 4px; } }
:root[data-theme='dark'] {
  color-scheme: dark;
  /* grounds: the app's Graphite dark (Trezzit_Frontend src/theme/colors.js darkVariants.graphite) */
  --page: #151517; --canvas: #151517; --card: #1b1b1e; --surface: #1b1b1e; --surface-subtle: #1f1f22;
  --fill: #242427; --wash: #242427; --surface-muted: #242427; --fill-soft: #242427; --wash-blue: #242427; --wash-violet: #242427; --wash-green: #242427;
  --divider: #26262a; --line: #2f2f34; --line-strong: #3d3d43; --line-2: #3d3d43; --line-3: #45454b; --line-4: #707079; --line-5: #52525a; --line-6: #52525a;
  /* ink: ink 900 for text and headlines; the brand fill (darkShared.brandFill) wherever ink is a fill under white */
  --brand-navy: #ededf0; --ink: #ededf0; --text: #ededf0; --ink-fill: #3b6fb6; --ink-fill-hover: #32609f; --on-fill: #fff; --on-fill-2: #e6eefa;
  --muted: #9d9da6; --text-secondary: #9d9da6; --text-2: #b4b4bc; --text-3: #9d9da6; --text-4: #9d9da6; --faint: #8e8e97; --text-tertiary: #83838c; --placeholder: #83838c;
  /* accent: darkShared.brandText for text, links, rings; the selected wash is the brand fill at 24% over the surface */
  --link: #8ab4f8; --accent: #8ab4f8; --action-blue: #8ab4f8; --accent-rgb: 138 180 248; --accent-soft: #232f42; --accent-line: #2d4972; --selection: #284267;
  /* money and meaning: darkShared; soft panels are the hue at 14% over the surface */
  --pos: #34d399; --positive: #34d399; --positive-text: #34d399; --pos-ink: #34d399; --pos-soft: #19312c; --pos-soft-2: #193e34;
  --neg: #f87171; --negative: #f87171; --amber: #fbbf24; --amber-dot: #fbbf24; --amber-ink: #fcd34d; --amber-soft: #3a2d1b; --warning-soft: #3a2d1b; --mark: #5c4218;
  --recurring: #2dd4bf; --recurring-soft: #1a3434; --recurring-fill: #0d9488; --teal-ink: #2dd4bf;
  /* people: same hues, each a fill white initials read on (>= 4.8:1) that reads on every dark ground (>= 3.1:1) */
  --av-you: #3b6fb6; --p-you: #3b6fb6; --p-maya: #0e7f74; --p-jordan: #ac5d0e; --p-sam: #8556d7; --p-alex: #ce3077; --p-priya: #137b9e; --av-default: #6c6c75;
  /* categories: the same one-ink ramp, stepped down from ink 900 (lowest step 3.3:1 on the bank fill) */
  --cat-1: #ededf0; --cat-2: #b4b4bc; --cat-3: #8e8e97; --cat-4: #74747d; --bar-off: #55555d; --cat-rest: #55555d;
  /* depth: black shadows (a navy one vanishes on a dark ground); the hero card keeps the one lift */
  --sh: 0 0 0; --sh-2: 0 0 0; --hover-wash: rgba(255, 255, 255, .04); --att-wash: rgba(0, 0, 0, .16); --bezel: #2c2c30;
  --lift: 0 24px 60px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 4px 12px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
  --focus-ring: 0 0 0 2px var(--card), 0 0 0 4px var(--link);
  --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%2334D399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --i-check-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%2334D399' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
:root[data-theme='dark'] .theme-tg .i-moon { display: none; }
:root[data-theme='dark'] .theme-tg .i-sun { display: block; }
:root[data-theme='dark'] img[src$="brand/trezzit-mark.svg"] { filter: brightness(0) invert(.93); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    /* grounds: the app's Graphite dark (Trezzit_Frontend src/theme/colors.js darkVariants.graphite) */
    --page: #151517; --canvas: #151517; --card: #1b1b1e; --surface: #1b1b1e; --surface-subtle: #1f1f22;
    --fill: #242427; --wash: #242427; --surface-muted: #242427; --fill-soft: #242427; --wash-blue: #242427; --wash-violet: #242427; --wash-green: #242427;
    --divider: #26262a; --line: #2f2f34; --line-strong: #3d3d43; --line-2: #3d3d43; --line-3: #45454b; --line-4: #707079; --line-5: #52525a; --line-6: #52525a;
    /* ink: ink 900 for text and headlines; the brand fill (darkShared.brandFill) wherever ink is a fill under white */
    --brand-navy: #ededf0; --ink: #ededf0; --text: #ededf0; --ink-fill: #3b6fb6; --ink-fill-hover: #32609f; --on-fill: #fff; --on-fill-2: #e6eefa;
    --muted: #9d9da6; --text-secondary: #9d9da6; --text-2: #b4b4bc; --text-3: #9d9da6; --text-4: #9d9da6; --faint: #8e8e97; --text-tertiary: #83838c; --placeholder: #83838c;
    /* accent: darkShared.brandText for text, links, rings; the selected wash is the brand fill at 24% over the surface */
    --link: #8ab4f8; --accent: #8ab4f8; --action-blue: #8ab4f8; --accent-rgb: 138 180 248; --accent-soft: #232f42; --accent-line: #2d4972; --selection: #284267;
    /* money and meaning: darkShared; soft panels are the hue at 14% over the surface */
    --pos: #34d399; --positive: #34d399; --positive-text: #34d399; --pos-ink: #34d399; --pos-soft: #19312c; --pos-soft-2: #193e34;
    --neg: #f87171; --negative: #f87171; --amber: #fbbf24; --amber-dot: #fbbf24; --amber-ink: #fcd34d; --amber-soft: #3a2d1b; --warning-soft: #3a2d1b; --mark: #5c4218;
    --recurring: #2dd4bf; --recurring-soft: #1a3434; --recurring-fill: #0d9488; --teal-ink: #2dd4bf;
    /* people: same hues, each a fill white initials read on (>= 4.8:1) that reads on every dark ground (>= 3.1:1) */
    --av-you: #3b6fb6; --p-you: #3b6fb6; --p-maya: #0e7f74; --p-jordan: #ac5d0e; --p-sam: #8556d7; --p-alex: #ce3077; --p-priya: #137b9e; --av-default: #6c6c75;
    /* categories: the same one-ink ramp, stepped down from ink 900 (lowest step 3.3:1 on the bank fill) */
    --cat-1: #ededf0; --cat-2: #b4b4bc; --cat-3: #8e8e97; --cat-4: #74747d; --bar-off: #55555d; --cat-rest: #55555d;
    /* depth: black shadows (a navy one vanishes on a dark ground); the hero card keeps the one lift */
    --sh: 0 0 0; --sh-2: 0 0 0; --hover-wash: rgba(255, 255, 255, .04); --att-wash: rgba(0, 0, 0, .16); --bezel: #2c2c30;
    --lift: 0 24px 60px -18px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .45);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow-md: 0 4px 12px rgba(0, 0, 0, .4); --shadow-lg: 0 18px 40px rgba(0, 0, 0, .5);
    --focus-ring: 0 0 0 2px var(--card), 0 0 0 4px var(--link);
    --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%2334D399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --i-check-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%2334D399' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-tg .i-moon { display: none; }
  :root:not([data-theme='light']) .theme-tg .i-sun { display: block; }
  :root:not([data-theme='light']) img[src$="brand/trezzit-mark.svg"] { filter: brightness(0) invert(.93); }
}
