:root {
  /* Look A: the same tokens as the app */
  --ink: #111214;
  --ink-soft: #5F646C;
  --leaf: #111214;          /* primary actions are ink */
  --leaf-deep: #000000;
  --mint: #FFFFFF;
  --paper: #F1F2F4;
  --white: #FFFFFF;
  --hero: #141517;
  --hero-tile: #2A2C30;
  --hero-muted: #A3A8AF;
  --marigold: #1D4ED8;      /* focus ring */
  --line: #DDE0E4;
  --hair: #ECEEF0;
  --pos: #15803D;
  --radius-lg: 24px;
  --radius-sm: 14px;
  --shadow: none;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #EDEDED; --ink-soft: #9AA0A8; --leaf: #EDEDED; --leaf-deep: #FFFFFF; --mint: #161719;
    --paper: #0A0A0B; --white: #161719; --hero: #1A1B1E; --line: #2A2C30; --hair: #222428; --marigold: #60A5FA; --pos: #4ADE80;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 17px; line-height: 1.55; font-variant-numeric: tabular-nums;
}
a { color: var(--leaf); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } body { font-size: 17px; } }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.top nav { display: flex; gap: 22px; font-size: 16px; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .top nav { display: none; } }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 40px 0 88px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 44px; padding: 16px 0 64px; } }
h1 { font-size: clamp(42px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 22px; max-width: 12ch; }
.lede { font-size: 21px; color: var(--ink-soft); max-width: 34ch; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  background: var(--leaf); color: #fff; font: inherit; font-weight: 700; font-size: 18px; text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover { background: var(--leaf-deep); }
@media (prefers-color-scheme: dark) { .btn { color: #0A0A0B; } }
.btn svg { width: 20px; height: 20px; }
.btn-quiet { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--white); box-shadow: inset 0 0 0 1px var(--ink-soft); }
.fine { font-size: 15px; color: var(--ink-soft); }

/* the SMS → payment moment */
.demo { position: relative; min-height: 400px; display: grid; place-items: center; }
.phone {
  width: min(360px, 100%); background: var(--white); border-radius: 36px; padding: 22px 18px 26px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.phone .when { font-size: 13px; color: var(--ink-soft); text-align: center; margin-bottom: 12px; }
.sms {
  background: var(--paper); border-radius: 20px 20px 20px 6px; padding: 14px 16px; font-size: 15px; line-height: 1.45;
  color: var(--ink); border: 1px solid var(--line);
}
.sms b { font-weight: 600; }
.sender { font-size: 13px; color: var(--ink-soft); margin: 0 0 6px 4px; }
.arrow-down { display: block; margin: 14px auto; width: 28px; height: 28px; color: var(--leaf); }
.card {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
}
.card .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--leaf); }
.card .ico svg { width: 22px; height: 22px; }
.card .who { font-weight: 700; }
.card .meta { font-size: 14px; color: var(--ink-soft); }
.card .amt { font-weight: 700; font-size: 20px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chip { font-size: 14px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); }
.chip.on { background: var(--leaf); border-color: var(--leaf); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .chip.on { color: #0A0A0B; } }

@media (prefers-reduced-motion: no-preference) {
  .sms { animation: sms-in 0.6s ease-out both 0.2s; }
  .arrow-down { animation: fade 0.4s ease-out both 1.5s; }
  .card { animation: card-in 0.7s cubic-bezier(.2,.8,.2,1) both 1.8s; }
  .chip.on { animation: tag 0.5s ease-out both 2.9s; }
  @keyframes sms-in { from { opacity: 0; transform: translateY(10px); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes card-in { from { opacity: 0; transform: translateY(-18px) scale(0.96); } }
  @keyframes tag { 0% { background: transparent; color: var(--ink-soft); border-color: var(--line); } 100% { } }
}

/* sections */
section { padding: 72px 0; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 800; max-width: 20ch; }
.sub { color: var(--ink-soft); max-width: 58ch; margin: 0 0 40px; }

.features { display: grid; gap: 56px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature:nth-child(even) .feature-art { order: -1; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; gap: 24px; } .feature:nth-child(even) .feature-art { order: 0; } }
.feature h3 { font-size: 28px; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.01em; }
.feature p { color: var(--ink-soft); margin: 0; max-width: 44ch; }
.feature-art { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }

.split-sum { display: grid; grid-template-columns: 1fr 1px 1fr; background: var(--paper); border-radius: 18px; padding: 18px 8px; text-align: center; }
.split-sum .v { font-size: 26px; font-weight: 800; }
.split-sum .l { font-size: 14px; color: var(--ink-soft); }
.split-sum .rule { background: var(--line); }
.owed { color: var(--leaf); }
.person { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px 0; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.person .n { font-weight: 600; }
.person .s { font-size: 14px; color: var(--ink-soft); }

.bill { font-size: 15px; }
.bill .line { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.bill .line:last-child { border-bottom: 0; }
.bill .who { font-size: 13px; color: var(--ink-soft); }
.tag-m { color: var(--marigold); font-weight: 700; }

/* privacy */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.box { border-radius: var(--radius-lg); padding: 28px; background: var(--white); }
.box.stay { background: var(--hero); color: #FFFFFF; }
.box.stay li { color: var(--hero-muted); }
.box .tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 10px; margin-bottom: 14px; }
.box.stay .tag { background: rgba(74,222,128,.14); color: #4ADE80; }
.box:not(.stay) .tag { background: var(--paper); color: var(--ink-soft); }
.box h3 { margin: 0 0 12px; font-size: 22px; }
.box ul { margin: 0; padding-left: 20px; }
.box li { margin: 6px 0; }

/* install steps */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 18px; max-width: 760px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
ol.steps li::before {
  content: counter(s); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 20px; background: var(--ink); color: var(--paper);
}
ol.steps h3 { margin: 10px 0 4px; font-size: 21px; }
ol.steps p { margin: 0; color: var(--ink-soft); }
.note { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--white); max-width: 760px; }

.faq { background: var(--white); border-radius: var(--radius-lg); padding: 4px 22px; max-width: 760px; }
details { border-bottom: 1px solid var(--hair); padding: 16px 0; }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { color: var(--ink-soft); margin: 10px 0 0; }

footer { padding: 40px 0 56px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 15px; }
footer .row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
code.hash { font-family: inherit; font-size: 13px; word-break: break-all; }

/* simple text pages */
.page { max-width: 720px; padding: 24px 0 80px; }
.page h1 { font-size: clamp(36px, 5vw, 54px); max-width: none; }
.page h2 { font-size: 26px; margin-top: 36px; }
.page p, .page li { color: var(--ink-soft); }

/* utility replacements for inline styles (CSP: no inline style attributes) */
.gap-10 { height: 10px; }
.mt-18 { margin-top: 18px; }
.mt-40 { margin-top: 40px; }
.cta-block { margin: 28px 0; }

/* the app's own screens, drawn in HTML (look A) */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .screens { grid-template-columns: 1fr; max-width: 420px; } }
.screen-card { background: var(--white); border-radius: 28px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.screen-card h3 { font-size: 18px; margin: 4px 6px 0; }
.screen-card p { font-size: 15px; color: var(--ink-soft); margin: 0 6px 6px; }
.mini-hero { background: var(--hero); color: #fff; border-radius: 22px; padding: 16px; display: grid; gap: 10px; }
.mini-hero .lbl { font-size: 13px; color: var(--hero-muted); }
.mini-hero .big { font-size: 38px; font-weight: 800; letter-spacing: -1.4px; line-height: 1; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.tile { background: var(--hero-tile); border-radius: 12px; padding: 8px 8px 10px; display: grid; gap: 4px; min-width: 0; }
.tile.all { background: transparent; box-shadow: inset 0 0 0 1px #3A3D42; }
.tile .k { font-size: 11px; color: var(--hero-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .v { font-size: 13px; font-weight: 700; }
.bar { height: 4px; border-radius: 2px; background: #3A3D42; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 2px; }
.srow { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 8px 6px; }
.srow + .srow { border-top: 1px solid var(--hair); }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.ico.dash { border: 1.5px dashed #B5BAC1; color: var(--ink-soft); }
.srow .n { font-weight: 600; font-size: 15px; }
.srow .m { font-size: 13px; color: var(--ink-soft); }
.srow .a { font-weight: 700; font-size: 15px; text-align: right; }
.srow .a small { display: block; font-size: 11px; font-weight: 600; }
.pills { display: flex; gap: 6px; padding: 0 6px; flex-wrap: wrap; }
.pill { font-size: 13px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.pill.on { background: var(--ink); color: var(--paper); box-shadow: none; font-weight: 600; }
.owe { color: #B91C1C; } .lent { color: var(--pos); }
@media (prefers-color-scheme: dark) { .owe { color: #F87171; } }
.balance { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; padding: 6px; }
.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; }
.balance .big { font-size: 30px; font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.act-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.act-btns span { text-align: center; padding: 12px 0; border-radius: 999px; font-weight: 600; font-size: 14px; }
.act-btns .p { background: var(--ink); color: var(--paper); }
.act-btns .s { box-shadow: inset 0 0 0 1px var(--line); }
.b-g { width: 42%; background: #FB923C; } .b-b { width: 27%; background: #60A5FA; } .b-f { width: 17%; background: #C084FC; }
.mini-hero .ok { color: #4ADE80; }
.av-a { background: #9A3412; }
.ic-groc { background: rgba(194,65,12,.12); color: #C2410C; } .ic-food { background: rgba(21,128,61,.12); color: #15803D; }
.qty { background: var(--paper); color: var(--ink); font-size: 13px; }

/* two-column sections on wide screens: heading stays put while the content scrolls */
@media (min-width: 1000px) {
  .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .split .lead { position: sticky; top: 104px; }
  .split .sub { margin-bottom: 0; }
  .split .faq, .split ol.steps, .split .note { max-width: none; }
}

/* questions: quiet + / − instead of the browser triangle */
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; color: var(--ink-soft); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
details[open] summary::after { content: "−"; }

/* closing call to action */
.closing { margin: 24px 0 72px; padding: 56px 48px; border-radius: 32px; background: var(--hero); color: #fff; display: grid; justify-items: start; gap: 14px; }
.closing h2 { color: #fff; margin: 0; max-width: 18ch; }
.closing p { color: var(--hero-muted); margin: 0 0 14px; max-width: 46ch; font-size: 18px; }
.btn-light { background: #fff; color: #111214; }
.btn-light:hover { background: #E6E8EB; }
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #3A3D42; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { .btn-light { color: #111214; } .closing { box-shadow: inset 0 0 0 1px var(--line); } }
@media (max-width: 520px) { .closing { padding: 36px 22px; border-radius: 24px; } }

/* footer */
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--ink); text-decoration: underline; }
