/* Lift or Not. One stylesheet for every page. Navy ink and the checkout red match the Stripe page the
   deposit opens; green marks profit and nothing else; grey marks what a dashboard says.
   Layout: a fluid container up to 80rem, rows on thirds (5fr / 7fr) from 60rem, centered heads over
   full-width rows, and one fluid spacing scale. Type, gaps and grids all move with the window; only
   running paragraphs are capped, at --measure. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --panel: #f3f5f9;
  --heading: #0f1218;
  --ink: #14203a;
  --on-ink: #ffffff;
  --muted: #525d73;
  --dash: #646e83;
  --dash-bar: #7f899d;
  --profit: #08754d;
  --loss: #c93838;
  --line: #dce1ea;
  --field: #7a8499;
  --radius: 0.75rem;
  --measure: 65ch;
  --wide: 80rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --s0: 0.5rem;
  --s1: 0.75rem;
  --s2: 1rem;
  --s3: clamp(1.25rem, 0.9rem + 0.9vw, 1.75rem);
  --s4: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
  --s5: clamp(2rem, 1.2rem + 2.4vw, 3.5rem);
  --col-gap: clamp(2rem, 4vw, 4.5rem);
  --section: clamp(3.5rem, 8vw, 7rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1322;
    --panel: #152038;
    --heading: #f6f8fb;
    --ink: #e7ebf3;
    --on-ink: #0c1322;
    --muted: #a6b0c3;
    --dash: #9aa4b8;
    --dash-bar: #6c7790;
    --profit: #44c896;
    --loss: #f47f7f;
    --line: #26324c;
    --field: #77839d;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 clamp(1rem, 0.95rem + 0.2vw, 1.0625rem)/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
svg { display: block; }
code { font-size: 0.9em; }
p, li { text-wrap: pretty; }
/* Short lines (ledes, notes, captions, card text) balance so they never end on a lone word.
   `pretty` alone still leaves orphans in narrow cards and isn't supported everywhere. */
.lede, .small, .note, .after, .more, .fee-note, caption, figcaption, .section-head p, .center p,
.card p, .card li { text-wrap: balance; }
/* "Lift or Not" inside a sentence: brand weight with a highlighter stroke in the profit green */
.lon {
  font-weight: 750;
  color: var(--heading);
  white-space: nowrap;
  padding-inline: 0.1em;
  border-radius: 0.15em;
  /* The stroke is an inset shadow, not a background gradient, so contrast checkers read the page behind the text */
  box-shadow: inset 0 -0.5em 0 color-mix(in srgb, var(--profit) 24%, transparent);
}
a .lon { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nw { white-space: nowrap; }

/* Frame */
.top, main, footer { width: min(100% - 2 * var(--gutter), var(--wide)); margin-inline: auto; }
.top { padding-top: var(--s3); display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s0);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand svg { width: 1.6rem; height: 1.6rem; }
.status {
  margin: 0;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--field);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
main p { max-width: var(--measure); }
main > .head { padding-top: clamp(2.5rem, 6vw, 5rem); }
main > .hero { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
main > section, main > .duo { padding-top: var(--section); }
/* Footer: who makes it and how to reach us on top, the small print below. Each item wraps as a whole
   unit onto its own row; nothing breaks mid-sentence in a narrow column. */
footer {
  margin-top: var(--section);
  padding-block: var(--s4) var(--s5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  display: grid;
  gap: var(--s3);
}
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s2) var(--s5); }
footer p { margin: 0; text-wrap: balance; }
footer a { color: inherit; }
.foot-brand { font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.foot-brand a { white-space: nowrap; }
.foot-contact { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); }
.foot-contact a { display: inline-flex; align-items: center; gap: 0.55rem; padding-block: 0.2rem; font-size: 0.9375rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.foot-contact svg { flex: none; width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foot-meta { font-size: 0.8125rem; }
.foot-links { display: flex; gap: var(--s3); }
@media (min-width: 40rem) {
  footer p { white-space: nowrap; }
}

/* Type: every size has a viewport term, so it moves with the window */
h1 {
  margin: 0 0 var(--s3);
  color: var(--heading);
  font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  text-wrap: balance;
}
h2 {
  margin: 0 0 var(--s3);
  color: var(--heading);
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.032em;
  font-weight: 800;
  text-wrap: balance;
}
/* Section heads: a kicker names the topic, the h2 states what the numbers show. The pair sits on the
   same grid as its visual and just above it. */
hgroup { margin: 0 0 var(--s4); }
hgroup h2 { margin: 0; }
.kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 var(--s1);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; flex: none; width: 1.75rem; height: 3px; border-radius: 2px; background: var(--ink); }
.section-head .kicker, .center .kicker { justify-content: center; }
/* An h2 that shares the page head with the h1 steps down a size */
.head section h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem); }
h3 { margin: 0 0 var(--s0); font-size: 1rem; font-weight: 700; }
.lede { margin: 0; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4rem); color: var(--muted); }
.small { font-size: 0.875rem; color: var(--muted); }
.big {
  margin: 0;
  font-size: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Composition: thirds, centered heads, two-up */
.center { text-align: center; }
.center p, p.center { margin-inline: auto; }
.center .ctas, .center .chips { justify-content: center; }
.section-head { margin-bottom: var(--s4); text-align: center; }
.section-head p { margin-inline: auto; }
.section-head .chips { justify-content: center; margin: 0; }
.section-head > hgroup:not(:last-child) { margin-bottom: var(--s3); }
.split, .duo { display: grid; gap: var(--s4) var(--col-gap); }
.split > *, .duo > * { min-width: 0; }
.split h1 { font-size: clamp(2.2rem, 0.5rem + 3vw, 3.2rem); }
@media (min-width: 60rem) {
  .split { grid-template-columns: 5fr 7fr; align-items: center; }
  .split.start { align-items: start; }
}
@media (min-width: 56rem) {
  .duo { grid-template-columns: 1fr 1fr; align-items: start; }
}
.cq { container-type: inline-size; }

/* Buttons and links */
.ctas { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s4); }
.button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 3.25rem;
  padding: 0.65rem 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 0.5rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.button small { font-size: 0.8125rem; font-weight: 600; opacity: 0.85; }
.button.primary { background: var(--ink); color: var(--on-ink); }
.button:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.hero .ctas .button { flex: 0 0 auto; }
@media (min-width: 60rem) { .hero .ctas .button { flex: 1 1 auto; } }
@media (max-width: 30rem) { .hero .ctas .button { flex: 1 1 100%; } }
.more { display: inline-block; margin-top: var(--s3); font-weight: 650; }

/* The gap: each bar ends where its number starts, so the distance between them is the point */
.hero h1 { font-size: clamp(2.2rem, 0.5rem + 3.4vw, 3.6rem); }
.hero .lede { margin-top: var(--s2); }
.gap { margin: 0; padding: clamp(1.25rem, 3.5vw, 2.75rem); background: var(--panel); border-radius: var(--radius); container-type: inline-size; }
.gap-row + .gap-row { margin-top: var(--s4); }
.gap-label { margin: 0 0 var(--s0); font-size: 0.9375rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.gap-track {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.25em;
  font-size: clamp(2.25rem, 13cqi, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
main .gap-track { max-width: none; }
.gap-bar { flex: none; width: calc((100% - 3.2em) * var(--f)); min-width: 0.4rem; height: 0.42em; border-radius: 0.08em; }
.gap-num { white-space: nowrap; }
.is-dash .gap-num { color: var(--dash); }
.is-dash .gap-bar { background: var(--dash-bar); }
.is-profit .gap-num { color: var(--profit); }
.is-profit .gap-bar { background: var(--profit); }
.gap figcaption { margin-top: var(--s4); font-size: 0.875rem; color: var(--muted); }
.gap figcaption a { color: inherit; }
.gap.compact .gap-track { font-size: clamp(2.25rem, 10cqi, 3.75rem); }

/* Three steps; the middle one carries the shoppers and the share-you-pick control. Three-up when the row is wide enough */
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 30rem; display: grid; gap: var(--s4); }
.steps li { display: grid; grid-template-columns: 3.5rem 1fr; align-items: center; gap: var(--s2); }
.steps .shoppers { grid-template-columns: 1fr; gap: var(--s1); }
.steps p { margin: 0; font-size: 1.0625rem; font-weight: 650; line-height: 1.3; }
.steps .icon { width: 3.5rem; height: auto; }
/* Fixed height, width from the viewBox, capped in rem so 1 in 20 shrinks its shoppers instead of widening the column */
.glyphs { width: auto; height: 3.5rem; max-width: 15rem; }
.seg { display: inline-flex; justify-self: start; gap: 0.15rem; padding: 0.2rem; border: 1.5px solid var(--field); border-radius: 999px; background: var(--bg); }
.seg button {
  padding: 0.3rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.seg button:focus-visible { outline-offset: 1px; }
.readout { display: flex; gap: var(--s3); margin: 0; }
.readout div { display: flex; flex-direction: column-reverse; }
.readout dt { font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.readout dd { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.steps .readout-note { font-size: 0.8125rem; font-weight: 400; color: var(--muted); }
@container (min-width: 56rem) {
  .steps { max-width: none; grid-template-columns: minmax(max-content, 1fr) minmax(max-content, 1.3fr) minmax(max-content, 1fr); align-items: start; position: relative; }
  .steps::before { content: ""; position: absolute; top: 2rem; left: 16%; right: 16%; border-top: 2px dashed var(--field); }
  .steps li, .steps .shoppers { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: var(--s2); position: relative; z-index: 1; }
  .steps p { white-space: nowrap; font-size: clamp(1rem, 1.9cqi, 1.25rem); }
  .seg { justify-self: center; }
  .readout { justify-content: center; }
  .readout div { align-items: center; }
  .steps .icon, .steps .glyphs { background: var(--bg); padding: 0 var(--s1); box-sizing: content-box; height: 4rem; }
  .steps .icon { width: 4rem; }
  .steps .shoppers .glyphs { max-width: 15rem; }
}

/* Chips name things: apps, example inputs */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s0); }
.chips li { padding: 0.45rem 1rem; border: 1.5px solid transparent; border-radius: 999px; background: var(--panel); font-weight: 650; white-space: nowrap; }
/* Four apps in a card cell: two by two, so no chip is left alone on a line */
.chips.mini { display: grid; grid-template-columns: repeat(2, max-content); gap: 0.3rem; }
.chips.mini li { padding: 0.1rem 0.5rem; font-size: 0.75rem; font-weight: 600; }

/* Free or founding: one comparison card on the wide two thirds, the waitlist form beside it */
.choose { display: grid; gap: var(--s4) var(--col-gap); }
.choose > * { min-width: 0; }
.choose > hgroup { margin-bottom: 0; }
@media (min-width: 60rem) {
  .choose { grid-template-columns: 7fr 5fr; align-items: start; }
  .choose > hgroup { grid-column: 1 / -1; }
  .choose .signup { grid-template-columns: 1fr; }
}
.plans-card { padding: clamp(0.5rem, 2vw, 1.5rem); border: 1.5px solid var(--line); border-radius: var(--radius); }
.plans { table-layout: fixed; border-collapse: separate; border-spacing: 0; font-variant-numeric: normal; }
.plans thead td { width: 21%; }
.plans thead th:not(.pick) { width: 34%; }
.plans th, .plans td { padding: 0.7rem 0.75rem; vertical-align: middle; border-bottom: 1px solid var(--line); text-wrap: balance; }
.plans thead th { padding-block: 0.9rem; font-size: 1.0625rem; font-weight: 800; color: var(--heading); border-bottom: 1.5px solid var(--field); white-space: nowrap; }
.plans tbody th { font-size: 0.875rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.plans .plan-price { display: block; margin-top: 0.1rem; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.plans tbody tr:last-child > * { border-bottom: 0; }
/* The founding column is tinted, top to bottom */
.plans .pick { background: var(--panel); }
.plans thead .pick { border-radius: var(--radius) var(--radius) 0 0; }
.plans tbody tr:last-child .pick { border-radius: 0 0 var(--radius) var(--radius); }
/* A check or a dash leads each cell; wrapped lines hang under the text, not the mark */
.plans .yes, .plans .no { padding-left: calc(0.75rem + 1.15em); text-indent: -1.15em; }
.plans .yes::before, .plans .no::before { display: inline-block; width: 1.15em; text-indent: 0; font-weight: 800; }
.plans .yes::before { content: "\2713"; content: "\2713" / ""; color: var(--ink); }
.plans .no::before { content: "\2013"; content: "\2013" / ""; color: var(--muted); }
.plans .no { color: var(--muted); }
/* Each plan's action sits under its own column */
.plans-cta { display: grid; grid-template-columns: 21% 34% 45%; align-items: center; margin-top: var(--s2); }
.plans-cta .more { grid-column: 2; margin: 0; padding-left: 0.75rem; }
.plans-cta .button { grid-column: 3; justify-self: stretch; margin-inline: 0.4rem; padding-inline: 1rem; }
@container (max-width: 28rem) {
  .plans thead td { width: 24%; }
  .plans thead th:not(.pick) { width: 34%; }
  .plans th, .plans td { padding-inline: 0.3rem; }
  .plans .yes, .plans .no { padding-left: calc(0.3rem + 1.15em); }
  .plans tbody th { font-size: 0.8125rem; }
  .plans thead th { font-size: 0.875rem; letter-spacing: -0.01em; }
  .chips.mini { grid-template-columns: max-content; }
  .plans-cta { grid-template-columns: 1fr; gap: var(--s2); justify-items: center; }
  .plans-cta .button { grid-column: 1; grid-row: 1; justify-self: stretch; margin: 0; }
  .plans-cta .more { grid-column: 1; padding: 0; }
}

/* Forms */
.signup { padding: clamp(1.25rem, 3.5vw, 2.25rem); background: var(--panel); border-radius: var(--radius); display: grid; gap: var(--s2) var(--s3); }
.field label { display: block; font-size: 0.9375rem; font-weight: 650; }
.field input, .field select {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.7rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--field);
  border-radius: 0.5rem;
}
.field input:focus-visible, .field select:focus-visible { outline-offset: 1px; }
.signup .button { width: 100%; }
@media (min-width: 40rem) {
  .signup { grid-template-columns: 1fr 1fr; }
  .signup .form-error, .signup .button { grid-column: 1 / -1; }
}
.field-error, .form-error { color: var(--loss); font-size: 0.9rem; margin: 0.35rem 0 0; }
.field-error:empty { display: none; }
/* The form error is a role="alert" live region: empty, it leaves the grid but stays rendered, so screen readers
   announce the message when one arrives. */
.form-error:empty { position: absolute; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Short answers: one column, two from 60rem */
.faq { display: grid; column-gap: var(--col-gap); border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 1.1rem 2.5rem 1.1rem 0; font-size: 1.0625rem; font-weight: 650; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; content: "+" / ""; position: absolute; right: 0.3rem; top: 0.9rem; font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.faq summary:hover { color: var(--ink); }
.faq summary:hover::after { color: var(--ink); }
.faq details p { margin: 0 0 1.2rem; color: var(--muted); }
@media (min-width: 60rem) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { padding: 0.65rem 0.75rem 0.65rem 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); text-wrap: balance; }
th { font-weight: 650; }
thead th { font-size: 0.8125rem; color: var(--muted); border-bottom: 1.5px solid var(--field); white-space: nowrap; }
.num { text-align: right; white-space: nowrap; }
td.up { font-weight: 750; }
.is-dash-text { color: var(--dash); }
.is-profit-text { color: var(--profit); }
caption { caption-side: bottom; padding-top: var(--s1); text-align: left; font-size: 0.8125rem; color: var(--muted); }
.vs { table-layout: fixed; }
.vs td:first-child { color: var(--muted); }
.vs td, .vs th { position: relative; padding-left: 1.5rem; }
.vs td::before { position: absolute; left: 0; font-weight: 800; }
.vs td:first-child::before { content: "\2715"; content: "\2715" / ""; color: var(--loss); }
.vs td:last-child::before { content: "\2713"; content: "\2713" / ""; color: var(--ink); }
@media (max-width: 39.99rem) {
  table { font-size: 0.9375rem; }
  th, td { padding-right: 0.5rem; }
  thead th, thead .num { white-space: normal; }
}

/* Charts drawn in SVG pick their colors from here, so both themes work; they size from their container */
.packs { width: 100%; height: auto; }
.c-dash { fill: var(--dash-bar); }
.c-ink { fill: var(--ink); }
.c-profit { fill: var(--profit); }
.c-gap { stroke: var(--bg); }
.c-hollow { fill: none; stroke: var(--field); }
.c-line { fill: none; stroke: var(--ink); }
.c-on { fill: var(--bg); }

/* From the dashboard's credit to profit: one row per step, every bar on one scale from $0 to $336.
   Label over bar on narrow screens; label, bar and amount in a row once there's room. */
.wf { margin: 0; container-type: inline-size; }
.wf ol { list-style: none; padding: 0; margin: 0; }
.wf li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label val" "track track"; align-items: baseline; column-gap: var(--s2); padding-block: 0.45rem; }
.wf-label { grid-area: label; font-weight: 600; line-height: 1.25; }
.wf .is-down .wf-label { font-weight: 500; color: var(--muted); }
.wf .is-sum .wf-label { font-weight: 800; color: var(--heading); }
.wf .is-sum .wf-label::before { content: "= "; content: "= " / ""; color: var(--muted); font-weight: 600; }
.wf-val { grid-area: val; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.wf-track { grid-area: track; position: relative; height: 1.25rem; margin-top: 0.35rem; border-radius: 3px; background: var(--panel); }
.wf-bar { position: absolute; inset-block: 0; left: calc(var(--a) * 100%); width: calc((var(--b) - var(--a)) * 100%); border-radius: 0 3px 3px 0; }
.wf .is-dash .wf-bar { background: var(--dash-bar); }
.wf .is-dash .wf-val { color: var(--dash); }
.wf .is-down .wf-bar { background: var(--loss); border-radius: 3px; }
.wf .is-down .wf-val { color: var(--loss); }
.wf .is-rev .wf-bar { background: var(--ink); }
.wf .is-profit .wf-bar { background: var(--profit); }
.wf .is-profit .wf-val { color: var(--profit); }
@container (min-width: 34rem) {
  .wf li { grid-template-columns: minmax(10.5rem, 1.3fr) 2fr 4.5rem; grid-template-areas: "label track val"; align-items: center; height: 3.5rem; padding: 0; }
  .wf-track { align-self: stretch; height: auto; margin: 0; border-radius: 0; background: none; border-left: 2px solid var(--field); }
  .wf-bar { inset-block: 0.8rem; }
  /* A dashed step joins each bar to the one above it, at the amount they share */
  .wf li + li .wf-track::before { content: ""; position: absolute; left: calc(var(--b) * 100% - 1px); top: -0.8rem; height: 1.6rem; border-left: 1.5px dashed var(--field); }
}

/* The worked example's arithmetic, folded away: fixed columns, and every cell wraps inside its column */
.arith { margin-top: var(--s3); border-top: 1px solid var(--line); }
.arith summary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 0; font-weight: 650; cursor: pointer; list-style: none; }
.arith summary::-webkit-details-marker { display: none; }
.arith summary::after { content: "+"; content: "+" / ""; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.arith[open] summary::after { content: "\2212"; content: "\2212" / ""; }
.arith .table-wrap + .table-wrap { margin-top: var(--s3); }
table.fixed { table-layout: fixed; }
.fixed thead th:first-child { width: 34%; }
.fixed th, .fixed td, .fixed .num, .fixed thead th { white-space: normal; overflow-wrap: break-word; }
.fixed tr.sum th, .fixed tr.sum td { border-top: 1.5px solid var(--field); font-weight: 750; }
@media (max-width: 39.99rem) {
  /* The arithmetic tables: a narrower label column, so each two-word header fits on one line */
  .fixed thead th:first-child { width: 30%; }
  .fixed th, .fixed td { padding-right: 0.4rem; }
  .fixed tbody th { font-size: 0.8125rem; }
  .fixed thead th, .fixed thead .num { font-size: 0.75rem; white-space: nowrap; }
}

/* Where the twelve two-packs came from */
.legend { list-style: none; padding: 0; margin: var(--s3) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s0) var(--s4); }
.legend li { display: flex; align-items: baseline; gap: 0.6rem; white-space: nowrap; }
.legend li::before { content: ""; flex: none; width: 0.9rem; height: 0.9rem; border-radius: 3px; transform: translateY(0.12rem); }
.legend .k-dash::before { background: var(--dash-bar); }
.legend .k-ink::before { background: var(--ink); }
.legend .k-profit::before { background: var(--profit); }
@media (max-width: 30rem) { .legend { justify-content: flex-start; flex-direction: column; } }

/* What the app's fee leaves */
.fee { margin: 0; display: grid; gap: var(--s4); }
.fee-row p { margin: 0; }
.fee-head { font-size: 1.125rem; font-weight: 700; white-space: nowrap; }
.fee-head span { color: var(--profit); }
.fee-track { display: flex; height: clamp(1.5rem, 1rem + 1vw, 2.25rem); margin: var(--s0) 0; }
.fee-track span { width: var(--w); }
.fee-track .kept { background: var(--profit); border-radius: 4px 0 0 4px; }
.fee-track .cost { background: var(--loss); border-radius: 0 4px 4px 0; }
.fee-note { color: var(--muted); }
.fee-note b { color: var(--loss); font-weight: 700; }

/* Cards with one big number: 1, 2 or 3 across, by room */
.cards { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.card { padding: clamp(1.25rem, 3vw, 2rem); border: 1.5px solid var(--line); border-radius: var(--radius); }
.card p { margin: var(--s1) 0 0; }
.card .big { margin: 0; }
.after { margin-top: var(--s4); }

/* Profit per visitor, written as the sum it is */
.formula {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--panel);
  border-radius: var(--radius);
  font-size: clamp(1.15rem, 0.9rem + 1vw, 1.6rem);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
main .formula { max-width: none; }
.formula span { white-space: nowrap; }
.formula .over { display: block; margin-top: var(--s0); padding-top: var(--s0); border-top: 2px solid var(--ink); }
@media (max-width: 30rem) { .formula span { white-space: normal; } }

/* Deposit: pay, get, refund. One column, then two with Refund across, then three in a row */
.flow { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s4); text-align: left; }
.flow > li { position: relative; padding: clamp(1.25rem, 2.5vw, 1.75rem); border: 1.5px solid var(--line); border-radius: var(--radius); }
.flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.4rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2px solid var(--field);
  border-bottom: 2px solid var(--field);
  transform: translateX(-50%) rotate(45deg);
}
.flow h2 { font-size: 1rem; color: var(--muted); letter-spacing: 0; margin: 0 0 var(--s0); }
.flow .big { font-size: clamp(1.9rem, 1.2rem + 1.8vw, 2.6rem); margin-bottom: var(--s2); }
.flow ul { margin: 0; padding-left: 1.1rem; list-style: disc; }
/* The founding perks, checked like the landing card's founding column */
.flow .ticks { padding-left: 0; list-style: none; }
.flow .ticks li { margin-bottom: 0.3rem; padding-left: 1.4em; text-indent: -1.4em; }
.flow .ticks li::before { content: "\2713"; content: "\2713" / ""; display: inline-block; width: 1.4em; text-indent: 0; font-weight: 800; }
.flow .ticks + .small { margin-top: var(--s1); }
.flow li li { margin-bottom: var(--s0); }
.flow p { margin: 0; }
.flow .refund { border: 2px solid var(--ink); }
@container (min-width: 40rem) {
  .flow { grid-template-columns: 1fr 1fr; }
  .flow .refund { grid-column: 1 / -1; }
  .flow > li:not(:last-child)::after { display: none; }
}
@container (min-width: 60rem) {
  .flow { grid-template-columns: 1fr 1fr 1.35fr; }
  .flow .refund { grid-column: auto; }
  .flow > li:not(:last-child)::after { display: block; left: auto; right: -1.6rem; top: 2.2rem; bottom: auto; transform: rotate(-45deg); }
}

/* Refund timeline, drawn to scale in business days from 0 to 15: our 5 days, then the bank's 5 to 10.
   It runs down the page on narrow screens and across once there's room; each day is a segment of the bar. */
.rt { margin-top: 0; margin-bottom: 0; container-type: inline-size; }
.rt-chart { --bar: 0.875rem; --node: 1.25rem; --dir: to bottom; position: relative; display: grid; grid-template-rows: 1fr 2fr; height: 22rem; margin: 0.6rem 0 0 2.5rem; }
.rt-band { position: relative; padding-left: calc(var(--bar) + 1.1rem); }
.rt-band p { margin: -0.85rem 0 0; max-width: 22rem; color: var(--muted); }
.rt-band b { display: block; font-size: 1.125rem; color: var(--heading); }
.rt-bar { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bar); }
.rt-ours .rt-bar { background: repeating-linear-gradient(var(--dir), var(--ink) 0 calc(20% - 2px), var(--bg) calc(20% - 2px) 20%); }
.rt-bank .rt-bar { background: repeating-linear-gradient(var(--dir), var(--dash-bar) 0 calc(10% - 2px), var(--bg) calc(10% - 2px) 10%); }
/* The day marks and the nodes at day 0, 5 and 15 ride thin strips along the bar, so they never sit over a label */
.rt-axis, .rt-nodes { position: absolute; left: 0; top: 0; bottom: 0; width: var(--bar); list-style: none; padding: 0; margin: 0; }
.rt-nodes span {
  position: absolute;
  z-index: 1;
  left: calc((var(--bar) - var(--node)) / 2);
  top: calc(var(--d) / 15 * 100% - var(--node) / 2);
  width: var(--node);
  height: var(--node);
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--bg);
  box-sizing: border-box;
}
.rt-axis li { position: absolute; right: calc(100% + 0.75rem); top: calc(var(--d) / 15 * 100%); transform: translateY(-50%); font-size: 0.8125rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.rt figcaption { margin-top: var(--s4); font-size: 0.875rem; color: var(--muted); }
@container (min-width: 34rem) {
  .rt-chart { --dir: to right; grid-template-rows: none; grid-template-columns: 1fr 2fr; height: auto; margin: 1.6rem 0 0; }
  .rt-band { padding: calc(var(--bar) + 1rem) var(--s2) 0 0; }
  .rt-band p { margin: 0; }
  .rt-bar { right: 0; bottom: auto; width: auto; height: var(--bar); }
  .rt-axis, .rt-nodes { right: 0; bottom: auto; width: auto; height: var(--bar); }
  .rt-nodes span { top: calc((var(--bar) - var(--node)) / 2); left: calc(var(--d) / 15 * 100% - var(--node) / 2); }
  .rt-axis li { right: auto; left: calc(var(--d) / 15 * 100%); top: -1.6rem; transform: translateX(-50%); }
}

/* What we receive from Stripe */
.receive { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); align-items: start; }
.receive > div { padding: var(--s3); background: var(--panel); border-radius: var(--radius); }
.receive ul { margin: 0; padding-left: 1.1rem; }

/* Privacy: one row per thing we keep */
.data th[scope="row"] { font-weight: 500; }
.data td:last-child { white-space: nowrap; }
@media (max-width: 39.99rem) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data tr { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .data th, .data td { display: block; padding: 0.1rem 0; border: 0; white-space: normal; }
  .data td::before { content: attr(data-label) ": "; font-weight: 650; color: var(--muted); }
}
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.plain li { padding-left: 1.75rem; position: relative; }
.plain li::before { content: ""; position: absolute; left: 0.2rem; top: 0.75rem; width: 0.7rem; height: 2px; background: var(--ink); }

/* Thanks */
.pair { display: grid; gap: var(--s3); margin-top: var(--s4); text-align: left; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.pair section { padding: clamp(1.25rem, 3vw, 2rem); background: var(--panel); border-radius: var(--radius); }
.pair h2 { font-size: 1.25rem; margin-bottom: var(--s0); }
.pair p { margin: 0 0 var(--s0); }
/* site.js hides the card that doesn't apply; the one left keeps a card's width, centered under the head. */
.pair:has(> [hidden]) { max-width: 40rem; margin-inline: auto; }
.note { margin-top: var(--s5); font-size: 0.875rem; color: var(--muted); }

/* A visual under a centered head keeps to a centered measure, so head and visual share one axis. Last, so
   it wins over a component's own margin and width. */
.narrow, main .narrow { max-width: 46rem; margin-inline: auto; }

/* Hover and focus: a border or color shift with no motion; the lift itself only when motion is welcome */
.card:hover, .flow > li:hover, .chips li:hover { border-color: var(--field); }
.flow .refund:hover { border-color: var(--ink); }

/* Motion, all of it optional. Each element's resting state is its final state, so nothing waits on it. */
@media (prefers-reduced-motion: no-preference) {
  .gap-bar { transform-origin: left center; animation: grow-x 0.7s var(--ease) both; }
  .is-profit .gap-bar { animation-delay: 0.25s; }
  .button, .card, .chips li, .flow > li, .faq summary { transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease; }
  .button:hover, .card:hover, .chips li:hover, .flow > li:hover { transform: translateY(-2px); }
  .faq summary:hover { transform: translateX(2px); }
  /* The waterfall builds row by row on load: each bar grows from the end it starts at */
  .wf-bar { transform-origin: left center; animation: grow-x 0.6s var(--ease) both; }
  .wf .is-down .wf-bar { transform-origin: right center; }
  .wf li:nth-child(2) .wf-bar { animation-delay: 0.12s; }
  .wf li:nth-child(3) .wf-bar { animation-delay: 0.24s; }
  .wf li:nth-child(4) .wf-bar { animation-delay: 0.36s; }
  .wf li:nth-child(5) .wf-bar { animation-delay: 0.48s; }
  @supports (animation-timeline: view()) {
    .packs { transform-origin: left center; animation: grow-x linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    /* The refund bars fill in day order as the timeline scrolls into view */
    /* Entry ranges only, so both bars are full once the timeline is fully on screen, however tall the window */
    .rt-bar { transform-origin: 0 0; animation: grow-y linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .rt-bank .rt-bar { animation-range: entry 45% entry 100%; }
    @container (min-width: 34rem) {
      .rt-bar { animation-name: grow-x; }
    }
  }
  [data-holdout-row].swap { animation: fade-in 0.3s var(--ease); }
  @keyframes fade-in { from { opacity: 0; } }
  @keyframes grow-x { from { transform: scaleX(0); } }
  @keyframes grow-y { from { transform: scaleY(0); } }
}
