/* Loopr site — plain CSS, no build step. Palette mirrors the app ("Loopr Blue"). */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jakarta-vietnamese.woff2) format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jakarta-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(fonts/jakarta-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --purple: #005fea; --purple-light: #4c8df0; --purple-deep: #0e2d6c;
  --tint-1: #e5effc; --tint-2: #d3e3fa; --tint-3: #b7cff5;
  --ink: #0e2d6c; --paper: #f5f8fd; --panel: #fff; --panel-2: #eef2f8;
  --hairline: rgba(14, 45, 108, .08); --muted: #5b6b8c; --muted-2: #8593ae;
  --green: #0f7a52; --green-tint: #e2f6ee; --red: #c9362a; --red-tint: #fdebe9;
  --amber: #a86a00; --amber-tint: #fff4dc; --blue: #0083b8; --blue-tint: #e0f6fd;
  --coral: #f0564a; --sun: #f2a516; --mint: #17a673;
  --shadow-card: 0 1px 2px rgba(14,45,108,.04), 0 8px 24px rgba(14,45,108,.06);
  --shadow-float: 0 2px 6px rgba(14,45,108,.06), 0 24px 48px -12px rgba(0,61,160,.28);
  --shadow-cta: 0 10px 24px -8px rgba(0,95,234,.5);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
main { flex: 1; }
section[id] { scroll-margin-top: 5rem; }

/* ── Header / footer ─────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--hairline);
  background: rgba(245,248,253,.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.site-header .wrap { display: flex; height: 64px; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; font-weight: 800; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; }
.nav { display: none; gap: 28px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.nav a:hover, .footer-nav a:hover, .link:hover { color: var(--purple); }
@media (min-width: 768px) { .nav { display: flex; } }

.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap { display: flex; flex-direction: column; gap: 24px; padding-top: 40px; padding-bottom: 40px; font-size: .875rem; color: var(--muted); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand svg { width: 28px; height: 28px; }
.footer-brand strong { display: block; color: var(--ink); }
.footer-brand small { font-size: .75rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
@media (min-width: 768px) { .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ── Buttons ─────────────────────────────────────── */
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 12px 24px; border-radius: 999px;
  background: var(--ink); color: #fff; transition: transform .15s, background .15s; }
.store-btn:hover { transform: translateY(-1px); background: rgba(14,45,108,.9); }
.store-btn:focus-visible, .link:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; }
.store-btn .small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; line-height: 1; }
.store-btn .big { display: block; margin-top: 4px; font-size: 1.125rem; font-weight: 700; line-height: 1; }
.store-btn.sm { padding: 8px 16px; gap: 8px; font-size: .875rem; font-weight: 700; }
.store-btn.sm svg { width: 16px; height: 16px; }
.store-btn.light { background: #fff; color: var(--ink); }
.store-btn.light:hover { background: rgba(255,255,255,.9); }
.link { font-size: .875rem; font-weight: 700; color: var(--purple); transition: color .15s; }

/* ── Type helpers ────────────────────────────────── */
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); }
.h2 { margin-top: 12px; font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.lead { margin-top: 16px; font-size: 1.125rem; line-height: 2rem; color: var(--muted); }
.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }
@media (min-width: 640px) { .h2 { font-size: 2.6rem; line-height: 1.1; } }
.section { padding: 80px 20px; }
@media (min-width: 768px) { .section { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .section { padding-top: 112px; padding-bottom: 112px; } }

/* ── Hero ────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 80px; }
.hero-copy { text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--tint-1); color: var(--purple); font-size: .75rem; font-weight: 700; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); }
h1 { margin-top: 24px; font-size: 2.75rem; font-weight: 800; line-height: 1.04; letter-spacing: -.03em; }
h1 span { color: var(--purple); }
.hero .lead { max-width: 36rem; margin-left: auto; margin-right: auto; margin-top: 24px; }
.cta-row { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.checks { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; font-size: .875rem; font-weight: 600; color: var(--muted); }
.checks li { display: flex; align-items: center; gap: 8px; }
.tick { width: 14px; height: 14px; color: var(--green); flex: none; }
.hero-art { position: relative; display: flex; justify-content: center; width: 100%; max-width: 480px; margin: 0 auto; }
.hero-glow { position: absolute; inset: -64px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,95,234,.2), transparent 70%), radial-gradient(closest-side at 70% 70%, rgba(0,194,250,.18), transparent 70%); }
.hero-ring { position: absolute; right: -40px; top: -24px; z-index: -1; width: 288px; height: 288px; color: var(--tint-2); }
.hero-art .toast { position: absolute; right: -16px; top: -40px; display: none; }
.hero-art .month { position: absolute; left: -8px; bottom: 104px; display: none; }
@media (min-width: 640px) {
  h1 { font-size: 3.75rem; }
  .cta-row { flex-direction: row; justify-content: center; }
  .hero-art .toast { display: block; } .hero-art .month { display: flex; }
}
@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: 1.05fr 1fr; gap: 32px; padding-top: 80px; padding-bottom: 112px; }
  .hero-copy { text-align: left; }
  .hero .lead { margin-left: 0; }
  .cta-row { justify-content: flex-start; } .checks { justify-content: flex-start; }
  h1 { font-size: 3.4rem; }
  .hero-art .toast { right: -64px; } .hero-art .month { left: -64px; }
}
@media (min-width: 1280px) { h1 { font-size: 3.6rem; } .hero-art .toast { right: -96px; } }

/* ── Cards ───────────────────────────────────────── */
.steps { max-width: 72rem; margin: 56px auto 0; display: grid; gap: 20px; }
.card { border-radius: 28px; background: var(--panel); padding: 28px; box-shadow: var(--shadow-card); min-width: 0; }
.step-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 16px; background: var(--purple); color: #fff; font-size: 1.125rem; font-weight: 800; box-shadow: var(--shadow-cta); }
.card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.step-num + h3 { margin-top: 24px; }
.card > p, .feature-text p { margin-top: 8px; line-height: 1.75; color: var(--muted); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.features-bg { background: rgba(238,242,248,.6); }
.features { max-width: 72rem; margin: 56px auto 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
.feature { display: flex; flex-direction: column; gap: 24px; padding: 24px; }
.feature > .demo { margin-top: auto; }
.well { border-radius: 24px; background: var(--paper); padding: 16px; }
.well.row { display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 20px; }
@media (min-width: 640px) { .feature { padding: 28px; } .well.row { flex-direction: row; } }
@media (min-width: 1024px) {
  .features { grid-template-columns: repeat(6, 1fr); }
  .features .span-3 { grid-column: span 3; } .features .span-2 { grid-column: span 2; }
}
.extras { max-width: 72rem; margin: 20px auto 0; display: grid; gap: 20px; }
.extra { border: 1px solid var(--hairline); border-radius: 24px; background: rgba(255,255,255,.7); padding: 24px; }
.extra h3 { font-weight: 800; } .extra p { margin-top: 6px; font-size: .875rem; line-height: 1.5rem; color: var(--muted); }
@media (min-width: 640px) { .extras { grid-template-columns: repeat(3, 1fr); } }

/* ── Privacy block ───────────────────────────────── */
.privacy-grid { max-width: 72rem; margin: 0 auto; display: grid; gap: 48px; align-items: center; }
.privacy-list { display: grid; gap: 16px; }
.privacy-list li { border-radius: 24px; background: var(--panel); padding: 24px; box-shadow: var(--shadow-card); }
.privacy-list .ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.privacy-list .ico svg { width: 16px; height: 16px; }
.privacy-list h3 { margin-top: 16px; font-weight: 800; }
.privacy-list p { margin-top: 6px; font-size: .875rem; line-height: 1.5rem; color: var(--muted); }
@media (min-width: 640px) { .privacy-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }

/* ── FAQ ─────────────────────────────────────────── */
.faq-section { border-top: 1px solid var(--hairline); }
.faq { max-width: 48rem; margin: 48px auto 0; border-radius: 28px; background: var(--panel); box-shadow: var(--shadow-card); }
.faq details { padding: 20px 24px; border-top: 1px solid var(--hairline); }
.faq details:first-child { border-top: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq .plus { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tint-1); color: var(--purple); transition: transform .2s; }
.faq .plus svg { width: 16px; height: 16px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { margin-top: 12px; line-height: 1.75; color: var(--muted); }
@media (min-width: 640px) { .faq details { padding: 20px 32px; } }

/* ── Download band ───────────────────────────────── */
.download { padding: 0 20px 80px; }
.download-band { position: relative; overflow: hidden; max-width: 72rem; margin: 0 auto; border-radius: 36px; padding: 64px 24px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep)); box-shadow: var(--shadow-float); }
.download-band h2 { font-size: 1.875rem; font-weight: 800; letter-spacing: -.02em; }
.download-band p { max-width: 36rem; margin: 16px auto 0; font-size: 1.125rem; color: rgba(255,255,255,.8); }
.download-band .store-btn { margin-top: 36px; }
.download-band .inner { position: relative; }
.band-ring { position: absolute; color: rgba(255,255,255,.1); }
.band-ring.a { left: -64px; top: -64px; width: 256px; height: 256px; }
.band-ring.b { right: -40px; bottom: -96px; width: 320px; height: 320px; transform: rotate(180deg); }
@media (min-width: 640px) { .download-band { padding: 80px 48px; } .download-band h2 { font-size: 3rem; } }
@media (min-width: 768px) { .download { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .download { padding-bottom: 112px; } }

/* ── Phone + app mockups ─────────────────────────── */
.phone { position: relative; width: 300px; border-radius: 48px; background: var(--ink); padding: 10px; box-shadow: var(--shadow-float); }
.screen { position: relative; height: 620px; overflow: hidden; border-radius: 38px; background: var(--paper); }
.island { position: absolute; left: 50%; top: 10px; z-index: 10; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 999px; background: var(--ink); }
.statusbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px 4px; font-size: 13px; font-weight: 700; }
.battery { width: 16px; height: 10px; border: 1px solid rgba(14,45,108,.8); border-radius: 3px; padding: 1px; }
.battery i { display: block; width: 75%; height: 100%; border-radius: 1px; background: var(--ink); }
@media (min-width: 640px) { .phone { width: 320px; } .screen { height: 660px; } }

.tile { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 12px; font-size: .875rem; font-weight: 800; }
.chip { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.chip.green { background: var(--green-tint); color: var(--green); }
.chip.amber { background: var(--amber-tint); color: var(--amber); }
.chip.purple { background: var(--tint-1); color: var(--purple); }
.chip.red { background: var(--red-tint); color: var(--red); }

.review { padding: 12px 16px 0; }
.review-nav { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; }
.review-nav .back { color: var(--purple); } .review-nav .sp { width: 48px; }
.scan-card { margin-top: 16px; display: flex; gap: 12px; border-radius: 20px; background: var(--panel); padding: 12px; box-shadow: var(--shadow-card); }
.receipt-thumb { position: relative; flex: none; width: 70px; height: 92px; overflow: hidden; border-radius: 12px; background: var(--panel-2); padding: 8px; }
.receipt-thumb i { display: block; height: 4px; margin-bottom: 6px; border-radius: 2px; background: rgba(133,147,174,.4); }
.receipt-thumb i.d { height: 6px; background: rgba(14,45,108,.7); }
.scan-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--purple); box-shadow: 0 0 12px 2px var(--purple); }
.scan-info { display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.scan-info .name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; }
.scan-info .name .tile { width: 32px; height: 32px; border-radius: 10px; }
.scan-info .meta { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.scan-info .chip { width: fit-content; }
.fields { margin-top: 12px; border-radius: 20px; background: var(--panel); box-shadow: var(--shadow-card); }
.field { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--hairline); }
.field:first-child { border-top: 0; }
.field small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.field b { display: block; margin-top: 2px; font-size: 14px; }
.save { position: absolute; left: 16px; right: 16px; bottom: 24px; display: grid; place-items: center; height: 48px; border-radius: 16px; background: var(--purple); color: #fff; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-cta); }

.toast { width: 270px; border: 1px solid rgba(255,255,255,.6); border-radius: 22px; background: rgba(255,255,255,.85); padding: 14px;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: var(--shadow-float); animation: float 7s ease-in-out infinite; }
.toast-head { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.toast-head svg { width: 20px; height: 20px; }
.toast-head span { margin-left: auto; text-transform: none; letter-spacing: 0; }
.toast b { display: block; margin-top: 8px; font-size: 13.5px; }
.toast p { font-size: 12.5px; color: var(--muted); }

.month { align-items: center; gap: 12px; border-radius: 22px; background: var(--panel); padding: 14px 20px 14px 14px; box-shadow: var(--shadow-float); animation: float 9s ease-in-out -3s infinite; }
.month small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.month b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.month .delta { color: var(--green); }

.ring { position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring .track { stroke: var(--panel-2); }
.ring-total { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-total small { font-size: 11px; font-weight: 600; color: var(--muted); }
.ring-total b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.legend { flex: 1; width: 100%; }
.legend li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .875rem; }
.legend i { width: 10px; height: 10px; border-radius: 50%; }
.legend b:last-child { margin-left: auto; }

.alerts { display: grid; gap: 10px; }
.alerts li { display: flex; align-items: center; gap: 12px; border-radius: 16px; background: var(--panel); padding: 12px; box-shadow: var(--shadow-card); }
.alerts div { min-width: 0; }
.alerts b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.alerts small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.alerts .chip { margin-left: auto; }

.unused { border: 1px solid rgba(168,106,0,.2); border-radius: 16px; background: var(--amber-tint); padding: 16px; color: var(--amber); }
.unused b { display: block; font-size: 13.5px; }
.unused div { margin-top: 4px; display: flex; align-items: center; justify-content: space-between; }
.unused small { font-size: 12px; opacity: .8; }
.unused span { border-radius: 999px; background: var(--amber); padding: 4px 12px; font-size: 11px; font-weight: 700; color: #fff; }

.receipts { border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-card); }
.receipts li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--hairline); }
.receipts li:first-child { border-top: 0; }
.receipts .kind { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--blue-tint); color: var(--blue); font-size: 9.5px; font-weight: 800; }
.receipts b { display: block; font-size: 13px; }
.receipts small { display: block; font-size: 11.5px; color: var(--muted); }
.receipts .amt { margin-left: auto; font-size: 13px; font-weight: 700; }

.heat { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.heat i { aspect-ratio: 1; border-radius: 6px; background: var(--panel-2); }
.heat .l1 { background: var(--tint-2); } .heat .l2 { background: var(--tint-3); }
.heat .l3 { background: var(--purple-light); } .heat .l4 { background: var(--purple); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .toast, .month { animation: none; } }

/* ── Legal / support pages ───────────────────────── */
.doc { width: 100%; max-width: 42rem; margin: 0 auto; padding: 64px 20px 80px; }
.doc h1 { margin: 0; font-size: 1.875rem; line-height: 1.15; letter-spacing: -.02em; }
.doc .updated { margin-top: 8px; font-size: .875rem; color: var(--muted); }
.doc .summary { margin-top: 32px; border-radius: 20px; background: var(--panel); padding: 20px 24px; box-shadow: var(--shadow-card); color: var(--muted); }
.doc .summary strong { color: var(--ink); }
.doc h2 { margin-top: 36px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; }
.doc p, .doc li { margin-top: 12px; color: var(--muted); line-height: 1.75; }
.doc ul { padding-left: 1.25rem; list-style: disc; }
.doc li { margin-top: 6px; }
.doc strong { color: var(--ink); }
.doc a { color: var(--purple); }
.doc a:hover { text-decoration: underline; }
@media (min-width: 640px) { .doc h1 { font-size: 2.25rem; } }
@media (min-width: 768px) { .doc { padding-left: 32px; padding-right: 32px; } }
