/* Same faces as the app (assets/fonts, SIL OFL). Self-hosted: the page makes no third-party requests. */
@font-face { font-family: Zetta; src: url(./fonts/LexendZetta.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Outfit; src: url(./fonts/Outfit.ttf) format("truetype"); font-weight: 100 900; font-display: swap; }

/* Colours from lib/ui/design/tokens.dart (_C). */
:root {
  --bg: #1e1e1e; --hero: #d7dbdb; --paper: #f5f5f3; --tile: #262626; --chip: #232323; --scan: #0b0b0c;
  --ink: #111112; --ink-2: #4a4e4e; --muted: #8c8c8c; --note: #d1d1d6; --line: #e6e6e6;
  --orange: #f27e46; --teal: #172e2a;
  --gutter: clamp(18px, 5vw, 64px);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: #fff; font: 400 17px/1.55 Outfit, system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
a { color: inherit; text-underline-offset: 3px; }
p, dd { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.wrap { max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* Type: wide face for numbers, titles and keys; tracked tight, as in the app. */
.wide { font-family: Zetta, sans-serif; font-weight: 300; letter-spacing: -.045em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.title { font-family: Zetta, sans-serif; font-weight: 380; letter-spacing: -.1em; line-height: 1.02; }
h2.title { font-size: clamp(34px, 5.4vw, 68px); }
.caption { font-size: 14px; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--orange); border-radius: 1px; }
.swatch { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 2px; font: 500 12px Outfit, sans-serif; color: #fff; }

/* Motion: one staggered entrance, then reveals on scroll. */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 90ms + 80ms); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }

/* Glow: the app's two blurred discs, orange with teal over its right side. The only gradient. */
.glow { position: absolute; pointer-events: none; filter: blur(var(--blur, 40px)); }
.glow i { position: absolute; border-radius: 50%; width: calc(var(--r) * 2); aspect-ratio: 1; translate: -50% -50%; }
.glow i:first-child { background: var(--orange); left: 0; top: 0; }
.glow i:last-child { background: var(--teal); width: calc(var(--r) * 1.6); left: calc(var(--r) * .22); top: calc(var(--r) * .03); }

/* Receipt tear: a row of teeth, like the bottom of the app icon's receipt. */
.tear { position: relative; }
.tear::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; background: inherit; z-index: 1;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; }
.tear-top::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; background: inherit;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 20px 100%; }

/* ─── Hero ─── */
.hero { overflow-x: clip; background: var(--hero); color: var(--ink); padding-bottom: clamp(64px, 9vw, 120px); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 19px; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 28px; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: clamp(28px, 6vw, 88px); }
.hero h1 { font-size: clamp(54px, 8.4vw, 118px); margin-bottom: 34px; }
.hero h1 span { display: block; }
.hero .eyebrow { color: var(--ink-2); }
.lede { font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); max-width: 31em; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.soon { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 20px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 15px; border-radius: 3px; }
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.more { font-weight: 500; }

/* Try-a-split card: a dark app screen sitting in the glow. */
.try { position: relative; justify-self: end; width: 100%; max-width: 430px; }
.try .glow { --r: 280px; --blur: 46px; left: 88%; top: 45%; }
.card { position: relative; background: var(--bg); color: #fff; padding: 24px 22px 22px; border-radius: 3px; }
.card-top { display: flex; align-items: center; gap: 12px; }
.card-top .wide { font-size: 16px; font-weight: 400; letter-spacing: -.1em; }
.amount { display: flex; align-items: baseline; gap: 6px; margin: 30px 0 4px; padding-bottom: 10px; border-bottom: 1px solid #3a3a3a; transition: border-color .2s; }
.amount:focus-within { border-color: var(--orange); }
.amount .rupee { font-size: 26px; color: var(--orange); }
.amount input { all: unset; flex: 1; width: 0; font-family: Zetta, sans-serif; font-weight: 300; font-size: clamp(34px, 3.4vw, 44px); letter-spacing: -.045em; color: var(--orange); caret-color: var(--orange); font-variant-numeric: tabular-nums; }
.err { color: #ff8a80; min-height: 22px; }
.people { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 22px; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { all: unset; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; background: var(--chip); border-radius: 2px; font-size: 22px; transition: background .15s, transform .1s; }
.stepper button:hover { background: #2e2e2e; }
.stepper button:active { transform: scale(.94); }
.stepper button:focus-visible { outline: 2px solid var(--orange); }
.stepper button:disabled { opacity: .3; cursor: default; }
.stepper output { min-width: 2.2ch; text-align: center; font-size: 20px; }
.divider { display: flex; align-items: center; color: #fff; font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1.4px; background: var(--line); }
.divider span { width: 50px; text-align: center; }
.shares { list-style: none; margin: 10px 0 14px; transition: opacity .2s; }
.shares li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; animation: rise .35s cubic-bezier(.2, .7, .2, 1) both; }
.shares .wide { font-size: 15px; }
.shares small { margin-left: 8px; padding: 2px 6px; background: #171717; color: var(--muted); font-size: 12px; border-radius: 2px; }
.invalid .shares, .invalid .note { opacity: .25; }
.note { color: var(--note); }
