/* 11 Nov 2026: Home card as in the app now (amount, "N payments", 7-day line)
   and the "See the app" section: Home, History and Check drawn in code
   (sample data only). Uses the site's own colours, so light/dark follow the site. */

/* ---------- Incoming payments card (hero phone and the Home screen) ---------- */
.sum-row { display: flex; align-items: flex-end; gap: 8px; }
.sum-row .app-amount { flex: 1; margin-bottom: 0; }
.sum-count { font-size: 10.5px; color: var(--muted); padding-bottom: 7px; white-space: nowrap; }
.wk { position: relative; height: 64px; margin-top: 8px; }
.wk-line { display: block; width: 100%; height: 64px; overflow: visible; }
.wk-fill { fill: color-mix(in srgb, var(--accent) 22%, transparent); }
.wk-stroke { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wk-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent); box-sizing: border-box; }
.wk-days { display: flex; margin-top: 5px; }
.wk-days span { flex: 1; text-align: center; font-size: 9.5px; font-weight: 600; color: var(--muted); }
.wk-days span.on { color: var(--ink); }

/* ---------- See the app ---------- */
.sc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.sc-fig { margin: 0; }
.sc-fig .phone { width: min(290px, 100%); }
.sc-fig .screen { height: 590px; }
.sc-fig figcaption { text-align: center; margin-top: 18px; }
.sc-fig figcaption b { display: block; font-size: 18px; }
.sc-fig figcaption span { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) {
  .sc-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; padding: 4px 20px 16px; margin: 0 -20px; scrollbar-width: none; }
  .sc-row::-webkit-scrollbar { display: none; }
  .sc-fig { flex: 0 0 min(290px, 80vw); scroll-snap-align: center; }
}

/* Home extras */
.sc-det { padding: 10px 12px; }
.sc-det-top { display: flex; align-items: center; gap: 10px; }
.sc-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.sc-ic svg { width: 18px; height: 18px; }
.sc-grow { flex: 1; min-width: 0; }
.sc-det b { display: block; font-size: 12.5px; }
.sc-on { font-size: 10.5px; color: var(--green); font-weight: 600; }
.sc-sw { width: 34px; height: 20px; border-radius: 999px; background: var(--accent); position: relative; flex: none; }
.sc-sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.sc-chs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--outline); margin-top: 9px; padding-top: 8px; }
.sc-chs > div { display: flex; align-items: center; gap: 7px; }
.sc-chs > div + div { border-left: 1px solid var(--outline); padding-left: 10px; }
.sc-chs b { display: block; font-size: 11.5px; }
.sc-tg { color: var(--ink); display: grid; }
.sc-tg svg { width: 16px; height: 16px; }

/* History */
.sc-hh { display: flex; align-items: center; gap: 4px; }
.sc-hh > div { flex: 1; }
.sc-hb { width: 30px; height: 30px; display: grid; place-items: center; color: var(--ink); }
.sc-hb svg { width: 19px; height: 19px; }
.sc-tabs { display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--outline); }
.sc-tabs span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; line-height: 26px; border-radius: 999px; color: var(--muted); }
.sc-tabs span.on { background: var(--accent); color: #fff; }
.sc-rat { display: flex; justify-content: space-between; margin-top: 9px; font-size: 9.5px; color: var(--muted); }
.sc-rat span:first-child { font-weight: 600; letter-spacing: .06em; }
.sc-bars { display: flex; gap: 6px; align-items: flex-end; }
.sc-bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; }
.sc-bars i { display: block; width: 100%; border-radius: 6px; background: var(--accent-soft); }
.sc-bars i.on { background: linear-gradient(#4675F5, #2A55D8); }
.sc-bars span { margin-top: 4px; font-size: 9px; font-weight: 600; color: var(--muted); padding: 1px 3px; border-radius: 999px; }
.sc-bars span.on { background: var(--accent); color: #fff; }
.sc-line { display: flex; gap: 4px; }
.sc-line i { height: 6px; border-radius: 3px; }
.sc-nums { display: flex; margin-top: 8px; }
.sc-nums > div { flex: 1; text-align: center; }
.sc-nums b { display: block; font-size: 15px; }
.sc-nums span { font-size: 9px; color: var(--muted); white-space: nowrap; }
.sc-nums span i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 3px; }
.sc-day { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 0; }
.sc-day b { font-size: 13.5px; }
.sc-day span { font-size: 11.5px; font-weight: 600; }
.sc-group { padding: 0; }
.sc-group .pay-row + .pay-row { border-top: 1px solid var(--outline); }

/* Check */
.sc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sc-pick span { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 4px; border-radius: 13px; border: 1px solid var(--outline); font-size: 11px; font-weight: 600; }
.sc-pick span.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.sc-pick svg { width: 20px; height: 20px; }
.sc-or { text-align: center; font-size: 10px; color: var(--muted); margin: 9px 0 7px; }
.sc-field { border: 1px solid var(--outline); border-radius: 11px; padding: 8px 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.sc-btn { margin-top: 8px; border-radius: 999px; background: var(--accent); color: #fff; text-align: center; font-size: 12px; font-weight: 600; line-height: 34px; }
.sc-ok { text-align: center; border-color: color-mix(in srgb, var(--green) 55%, var(--outline)); }
.sc-tick { width: 34px; height: 34px; margin: 2px auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.sc-tick svg { width: 22px; height: 22px; }
.sc-okt { color: var(--green); font-size: 12.5px; }
.sc-ok .app-amount { margin: 0 0 6px; }
.sc-kv { display: flex; justify-content: space-between; font-size: 11px; padding: 4px 2px; border-top: 1px solid var(--outline); }
.sc-kv span { color: var(--muted); }

/* ---------- v2 (11 Nov 2026): the app's own icons, logo and bottom bar ---------- */
.sc-screen { padding-bottom: 76px; }
.sc-screen svg { flex: none; }
.sc-sb { display: flex; align-items: center; gap: 5px; }
.sc-bat { font-size: 8.5px; font-weight: 700; line-height: 12px; padding: 0 4px; border-radius: 6px; background: var(--ink); color: var(--bg); }
.sc-tb { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--outline); color: var(--muted); }
.sc-tb svg { width: 17px; height: 17px; }
.sc-hb svg { width: 20px; height: 20px; }
.sc-ic { background: var(--accent); }
.sc-ic svg { width: 19px; height: 19px; color: #fff; }
.sc-on { display: inline-flex; align-items: center; gap: 4px; }
.sc-on i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.sc-tg { width: 22px; height: 22px; place-items: center; color: var(--ink); }
.sc-tg svg { width: 18px; height: 18px; }
.sc-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 1px var(--outline); }
.sc-logo svg { width: 22px; height: 22px; }
.sc-chev { color: var(--muted); display: grid; }
.sc-chev svg { width: 13px; height: 13px; }
.sc-screen .pay-row { gap: 9px; }
.sc-pick svg { width: 21px; height: 21px; }
.sc-tick svg { width: 26px; height: 26px; }
.sc-ft { position: relative; margin: 4px 0 6px; padding-left: 14px; text-align: left; }
.sc-ft::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1.5px; background: var(--green); }
.sc-ft > div { position: relative; display: flex; justify-content: space-between; font-size: 11px; padding: 3px 2px; }
.sc-ft i { position: absolute; left: -13px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.sc-ft span { color: var(--muted); }
.sc-nav {
  position: absolute; left: 10px; right: 10px; bottom: 12px; height: 54px; border-radius: 27px; z-index: 4;
  display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 4px;
  background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--outline);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 -8px 18px color-mix(in srgb, var(--bg) 90%, transparent);
}
.sc-nav span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 46px; border-radius: 23px; color: var(--muted); }
.sc-nav span.on { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); }
:root:not([data-theme="dark"]) .sc-nav span.on { color: var(--accent-ink); }
.sc-nav svg { width: 18px; height: 18px; }
.sc-nav b { font-size: 9px; font-weight: 600; }
.sc-screen::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: var(--bg); z-index: 3; }
.sc-sun, .sc-moon { display: grid; }
:root[data-theme="dark"] .sc-moon, :root:not([data-theme="dark"]) .sc-sun { display: none; }
.hero .sc-hh { display: flex; align-items: center; }
.hero .sc-hh > div { flex: 1; }

/* ---------- Download area (11 Nov 2026): card + two phones ---------- */
.dl-grid { display: grid; gap: 28px; align-items: center; }
.dl-grid .download { margin: 0; max-width: 560px; }
.dl-art { position: relative; height: 470px; width: min(380px, 100%); margin: 0 auto; }
.dl-art .phone { position: absolute; width: 236px; padding: 8px; border-radius: 38px; }
.dl-art .screen { height: 480px; border-radius: 30px; transform-origin: 0 0; }
.dl-back .phone { right: 0; top: 0; transform: rotate(7deg); opacity: .96; }
.dl-front .phone { left: 0; top: 34px; transform: rotate(-5deg); z-index: 2; box-shadow: 0 30px 60px rgba(17, 24, 39, .28); }
.dl-art .screen { zoom: .8; height: 600px; }
@media (min-width: 900px) {
  .dl-grid { grid-template-columns: 1fr 380px; gap: 56px; max-width: 1000px; margin: 0 auto; }
  .dl-grid .download { justify-self: end; width: 100%; }
}
@media (max-width: 899px) {
  .dl-grid .dl-art { order: -1; height: 420px; width: 300px; }
  .dl-art .phone { width: 180px; border-radius: 30px; }
  .dl-art .screen { zoom: .61; }
}

/* ---------- 11 Nov 2026 (later): the 3 screens live in the Download area ---------- */
#download .sc-row { margin-bottom: 36px; }
#download .download { max-width: 640px; margin: 0 auto; }

/* Home: Payment detection card sized like the real app (owner Implement, 12 Nov 2026).
   Measured from the owner's phone screenshot and the app code (1dp = 0.745px here):
   48dp icon tile, 27dp icons, 7dp/6dp status dots, 76dp and 64dp rows, small status text. */
.sc-det { padding: 0 12px; }
.sc-det-top { min-height: 72px; gap: 9px; }
.sc-ic { width: 36px; height: 36px; border-radius: 10.5px; }
.sc-ic svg { width: 20px; height: 20px; }
.sc-det b { font-size: 12.4px; font-weight: 600; }
.sc-det .sc-on { font-size: 8.8px; font-weight: 500; gap: 4.5px; margin-top: 4px; }
.sc-det-top .sc-on i { width: 5.2px; height: 5.2px; }
.sc-sw { width: 30px; height: 18px; }
.sc-sw::after { width: 13px; height: 13px; top: 2.5px; right: 2.5px; }
.sc-chs { margin-top: 0; padding-top: 0; }
.sc-chs > div { min-height: 48px; gap: 6px; }
.sc-chs > div + div { border-left: 0; position: relative; padding-left: 8px; }
.sc-chs > div + div::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 1px; background: var(--outline); }
.sc-chs .sc-tg { width: 36px; height: 36px; }
.sc-chs .sc-tg svg { width: 20px; height: 20px; }
.sc-chs b { font-size: 11.4px; font-weight: 600; }
.sc-chs .sc-on { margin-top: 3px; }
.sc-chs .sc-on i { width: 4.5px; height: 4.5px; }
.sc-det .sc-grow, .sc-chs > div > div { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; }
.sc-det .sc-on { font-size: 9.6px; margin-top: 3px; line-height: 1.2; }
.sc-chs .sc-on { margin-top: 3px; }
/* Home: Telegram / SMS icons like the app: blue by day, white at night (owner Implement, 12 Nov 2026). */
.sc-chs .sc-tg { color: var(--accent); }
:root[data-theme="dark"] .sc-chs .sc-tg { color: #fff; }
