/* BillRadar landing page. Plain ledger direction: Apple-style, system font, light. */

:root {
  --ink: #1d1d1f;
  --ink-2: #424245;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e5e5ea;
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --link: #0b6bcb;
  --teal: #087a72;
  --blue: #0b6bcb;
  --new: #c2410c;
  --radius-card: 28px;
  --wrap: 1080px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; }

/* ---------- Nav ---------- */

.site-nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(250, 250, 252, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line-soft);
}
.site-nav .wrap {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.site-nav nav { display: flex; align-items: center; gap: 24px; }
.site-nav nav a { color: var(--ink-2); }
.site-nav nav a.get {
  background: var(--blue); color: #fff; padding: 0 16px; min-height: 32px; border-radius: 999px;
  display: inline-flex; align-items: center; font-weight: 500;
}
.site-nav nav a.get:hover { text-decoration: none; background: #0a5bb0; }
@media (max-width: 520px) { .site-nav nav a:not(.get) { display: none; } }

/* ---------- Hero ---------- */

.hero { padding: 88px 0 0; text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.hero-icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.new-link { font-size: 15px; margin-top: 4px; }
.new-link b { color: var(--new); font-weight: 600; }
.hero h1 { font-size: clamp(44px, 6.4vw, 88px); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; max-width: 14ch; }
.hero .lede { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: var(--muted); max-width: 36ch; }

.get-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px; margin-top: 8px; }
.badge { display: inline-flex; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.badge:hover { opacity: 0.82; }

.qr-inline { display: flex; align-items: center; gap: 12px; padding-left: 24px; border-left: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.35; color: var(--muted); }
.qr-inline img { width: 64px; height: 64px; }

.facts-strip {
  list-style: none; margin: 12px 0 0; padding: 14px 8px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  font-size: 15px; color: var(--ink-2);
}
.facts-strip li { display: flex; align-items: center; gap: 8px; }
.facts-strip b { font-weight: 600; color: var(--ink); }
.facts-strip svg { flex: none; width: 18px; height: 18px; stroke: var(--teal); }

/* phones + floating bill cards */
.phones {
  position: relative; width: 100%; margin-top: 48px;
  display: flex; justify-content: center; align-items: flex-start; gap: 28px;
}
.phone {
  position: relative; z-index: 1; width: 300px; flex: 0 1 300px; min-width: 0;
  border: 9px solid var(--ink); border-radius: 48px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.14); background: #f2f2f7;
}
.phone img { display: block; width: 100%; height: auto; }
.phones .phone + .phone { margin-top: 80px; }
@media (max-width: 640px) {
  .phones { gap: 14px; }
  .phone { border-width: 6px; border-radius: 30px; }
  .phones .phone + .phone { margin-top: 40px; }
}

.bill {
  position: absolute; z-index: 2; width: 288px;
  background: #fff; border-radius: 20px; padding: 14px;
  display: flex; align-items: center; gap: 12px; text-align: left;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.14);
}
.bill-icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.bill-icon svg { width: 20px; height: 20px; }
.bill-body { flex: 1; min-width: 0; }
.bill-body b { display: block; font-weight: 600; font-size: 16px; }
.bill-body span { color: var(--muted); font-size: 13px; }
.bill-amt { text-align: right; }
.bill-amt b { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }
.chip-soon { background: #fff1e5; color: #b54708; }
.chip-later { background: #e6f0ff; color: #1d5bd6; }
.bill-1 { left: -70px; top: 120px; transform: rotate(-5deg); }
.bill-2 { left: -30px; top: 430px; transform: rotate(4deg); }
.bill-3 { right: -70px; top: 260px; transform: rotate(5deg); }
@media (max-width: 1000px) { .bill { display: none; } }

/* ---------- Lock Screen / Live Activity ---------- */

.lock { margin-top: 96px; background: #000; color: #f5f5f7; padding: 120px 0; text-align: center; }
.lock .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.eyebrow-new { font-size: 17px; font-weight: 600; color: #ff9f43; }
.lock h2 { font-size: clamp(40px, 5.6vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; max-width: 14ch; }
.lock .lede { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.4; color: #a1a1a6; max-width: 38ch; }
.lock-demo { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 48px; }
.lock-points { margin: 0; display: flex; flex-direction: column; gap: 28px; text-align: left; max-width: 280px; }
.lock-points dt { font-size: 21px; font-weight: 600; }
.lock-points dd { margin: 6px 0 0; color: #a1a1a6; }

.la { width: 360px; max-width: 100%; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.seg { display: flex; gap: 2px; padding: 3px; background: #e5e5ea; border-radius: 12px; }
.seg button {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 14px -apple-system, BlinkMacSystemFont, sans-serif; background: transparent; color: #48484a;
}
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }

.la-phone {
  position: relative; width: 360px; max-width: 100%; aspect-ratio: 360 / 700; overflow: hidden;
  border: 11px solid #111314; border-radius: 58px; color: #fff;
  background: linear-gradient(170deg, #a8e3d6 0%, #5fa9c9 38%, #2f5f9e 72%, #1b2f5e 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); text-align: left;
}
.la-pill { position: absolute; top: 14px; left: 50%; width: 112px; height: 32px; margin-left: -56px; background: #000; border-radius: 20px; }
.la-clock { position: absolute; top: 11%; left: 0; right: 0; text-align: center; }
.la-clock .date { font-size: 18px; font-weight: 600; opacity: 0.92; }
.la-clock .time { font-size: 96px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; opacity: 0.96; }
.la-card {
  position: absolute; left: 12px; right: 12px; bottom: 19%;
  background: rgba(246, 246, 248, 0.92); color: var(--ink);
  border-radius: 26px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.la-row { display: flex; align-items: flex-start; gap: 12px; }
.la-row svg { flex: none; width: 28px; height: 28px; }
.la-name { flex: 1; min-width: 0; }
.la-name b { display: block; font-size: 17px; font-weight: 600; }
.la-name span { font-size: 15px; color: rgba(29, 29, 31, 0.7); }
.la-amt { font-size: 21px; font-weight: 600; font-variant-numeric: tabular-nums; }
.la-actions { display: flex; justify-content: flex-end; gap: 8px; }
.la-actions button {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px -apple-system, BlinkMacSystemFont, sans-serif; display: inline-flex; align-items: center; gap: 6px;
}
.la-skip { background: rgba(10, 108, 219, 0.12); color: #0a6cdb; }
.la-pay { background: #0a6cdb; color: #fff; }
.la-pay svg { width: 15px; height: 15px; }
.la-done { min-height: 44px; display: flex; justify-content: flex-end; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.la-done svg { width: 22px; height: 22px; }
.la-tool { position: absolute; bottom: 6.3%; width: 50px; height: 50px; border-radius: 50%; background: rgba(0, 0, 0, 0.28); display: flex; align-items: center; justify-content: center; }
.la-tool svg { width: 20px; height: 20px; }
.la-tool.left { left: 40px; }
.la-tool.right { right: 40px; }
.la-home { position: absolute; left: 50%; bottom: 10px; width: 130px; height: 5px; margin-left: -65px; border-radius: 3px; background: rgba(255, 255, 255, 0.9); }

.la-island-dim { position: absolute; inset: 0; background: rgba(10, 20, 40, 0.28); }
.la-island {
  position: absolute; top: 10px; left: 10px; right: 10px;
  background: #000; color: #fff; border-radius: 44px; padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.la-island .la-name { text-align: center; }
.la-island .la-name span { font-size: 13px; color: rgba(235, 235, 245, 0.7); }
.la-island .la-amt { font-size: 17px; padding-right: 6px; }
.la-island .la-skip { background: rgba(59, 139, 255, 0.22); color: #6aa8ff; }
.la-island-note { position: absolute; left: 0; right: 0; bottom: 9%; text-align: center; font-size: 15px; color: rgba(255, 255, 255, 0.85); padding: 0 32px; }

.la-replay {
  min-height: 44px; padding: 0 18px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: transparent; color: inherit; font: 500 14px -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer;
}
[hidden] { display: none !important; }

@media (max-width: 400px) {
  .la-clock .time { font-size: 72px; }
  .la-tool { display: none; }
}

/* ---------- Facts bento ---------- */

.facts { background: var(--bg-soft); padding: 120px 0; }
.facts h2, .everything h2 { font-size: clamp(34px, 4.2vw, 56px); font-weight: 700; line-height: 1.08; max-width: 18ch; }
.facts h2 { margin-bottom: 44px; }
.bento { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bento + .bento-row { margin-top: 20px; }
.tile {
  border-radius: var(--radius-card); padding: 36px; min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px; background: #fff;
}
.tile-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.tile-big { font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.tile-big .dim { color: var(--muted); }
.tile.teal { background: var(--teal); color: #fff; }
.tile.teal .tile-label, .tile.blue .tile-label { color: rgba(255, 255, 255, 0.85); }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark .tile-label, .tile.dark .tile-sub { color: #a1a1a6; }
.tile.blue { background: var(--blue); color: #fff; }
.price { font-size: 64px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tile-sub { display: block; margin-top: 8px; font-size: 17px; }

.bento-row { display: flex; flex-wrap: wrap; gap: 20px; }
.tile-cal { flex: 2 1 560px; min-width: 0; padding: 36px 36px 0; justify-content: flex-start; gap: 12px; overflow: hidden; }
.tile-cal h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.015em; }
.tile-cal p { font-size: 17px; color: var(--muted); max-width: 44ch; }
.tile-cal .crop {
  margin: 28px auto 0; width: 320px; max-width: 100%; height: 360px;
  border: 9px solid var(--ink); border-bottom: 0; border-radius: 46px 46px 0 0; overflow: hidden;
}
.tile-cal .crop img { display: block; width: 100%; height: auto; }
.tile-stack { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tile-stack .tile { flex: 1; min-height: 200px; padding: 32px; }
.tile-mid { font-size: 30px; font-weight: 700; line-height: 1.1; }
.tile-mid .dim { color: var(--muted); }

/* ---------- Everything ---------- */

.everything { padding: 120px 0; }
.everything .wrap { display: flex; flex-wrap: wrap; gap: 56px; }
.everything-head { flex: 1 1 300px; min-width: 0; }
.everything-head p { margin-top: 16px; font-size: 19px; color: var(--muted); max-width: 30ch; }
.feature-list { flex: 2 1 520px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; }
.feature-list div { padding: 20px 0; border-top: 1px solid var(--line); }
.feature-list dt { font-weight: 600; font-size: 17px; }
.feature-list dd { margin: 6px 0 0; color: var(--muted); }

/* ---------- Final CTA ---------- */

.final { padding: 0 0 120px; }
.final-card {
  background: var(--bg-soft); border-radius: 32px; padding: 72px 32px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px;
}
.final-card h2 { font-size: clamp(30px, 3.8vw, 48px); font-weight: 700; line-height: 1.1; }
.qr-card { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; background: #fff; border-radius: 20px; padding: 18px 22px; font-size: 13px; color: var(--muted); }
.qr-card img { width: 120px; height: 120px; }

/* QR codes are for people browsing on a computer */
@media (max-width: 900px) { .qr-inline, .qr-card { display: none; } }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line-soft); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--ink-2); }

/* ---------- Utilities ---------- */

.bg-red { background: #ff3b47; }
.bg-orange { background: #ff9233; }
.bg-teal { background: #12c2b5; }
.amt-due { color: #d92d20; }
.la-row.center { align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Keep anchored sections clear of the sticky nav */
section[id] { scroll-margin-top: 56px; }

@media (max-width: 640px) {
  .facts, .everything { padding: 80px 0; }
  .tile { min-height: 0; padding: 28px; }
  .tile-big { font-size: 38px; }
  .price { font-size: 56px; }
  .tile-cal { padding: 28px 28px 0; }
  .lock { padding: 88px 0; }
}
