/* The public site: landing page, sign-in page, and the "can't sign in" page. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --ink: #1B2420; --muted: #56615B; --soft-ink: #3E4A44;
  --ground: #F4F6F2; --surface: #FFFFFF; --line: #E1E6DF;
  --accent: #2E6B4F; --accent-deep: #1F4D3A; --accent-soft: #E3EFE8; --on-deep: #D6E7DD; --deep-num: #9BD3B5;
  --warm-bg: #FFF4E6; --warm-ink: #8A4300; --warm-line: #F1D7B5;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--surface); line-height: 1.5; }
a { color: var(--accent); }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: Manrope, Inter, sans-serif; letter-spacing: -0.5px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand .mark { color: var(--accent); }
.brand span { font-family: Manrope, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -0.5px; }
.brand b { color: var(--accent); font-weight: 800; }

.site-head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.86); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); }
.site-head .wrap { display: flex; align-items: center; gap: 12px 28px; padding-top: 14px; padding-bottom: 14px; }
.site-head .brand { margin-right: auto; }
.site-nav { display: flex; gap: 4px 24px; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 10px 0; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid #C9D1C7; background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn path { transition: transform 0.2s, opacity 0.2s; transform-origin: center; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { opacity: 0; }
.menu-btn[aria-expanded="true"] .l3 { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 760px) {
  .site-head .wrap { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .brand span { font-size: 23px; }
  .menu-btn { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(27,36,32,0.08); }
  .site-nav.open { display: flex; animation: drop 0.18s ease-out; }
  .site-nav a { padding: 14px 0; font-size: 17px; border-top: 1px solid var(--line); }
  .site-nav a:first-child { border-top: none; }
}
@media (max-width: 480px) {
  .site-head .signin { display: none; }
  .site-nav .nav-signin { display: block; font-weight: 700; color: var(--accent); }
}
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 10px; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: #C9D1C7; font-weight: 600; }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn-small { padding: 10px 16px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-signin { display: none; }

.hero { background: var(--ground); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-size: clamp(36px, 5vw, 52px); line-height: 1.08; font-weight: 800; letter-spacing: -1.2px; }
.hero p.big { margin: 0; font-size: 19px; line-height: 1.55; color: var(--soft-ink); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .fine { font-size: 14px; color: var(--muted); margin: 0; }
.hero-art { flex: 1 1 360px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card .row { display: flex; align-items: center; gap: 12px; padding-top: 10px; margin-top: 10px; border-top: 1px solid #ECEFEA; font-weight: 600; }
.pill { display: inline-block; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--accent-soft); color: var(--accent-deep); white-space: nowrap; }
.pill.warm { background: var(--warm-bg); color: var(--warm-ink); }
.duo { display: flex; gap: 14px; }
.duo .card { flex: 1 1 0; display: flex; flex-direction: column; gap: 4px; }
.eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); }
.eyebrow.warm { color: var(--warm-ink); }
.card.warm { border-color: var(--warm-line); }

section.band { padding: 72px 0; }
section.band h2 { margin: 0 0 28px; font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
.pains { display: flex; flex-wrap: wrap; gap: 20px; }
.pains p { flex: 1 1 260px; margin: 0; font-size: 17px; padding: 22px; border-radius: 12px; background: var(--ground); }
.dark { background: var(--accent-deep); color: #fff; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.steps li { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.steps .num { font-family: Manrope, sans-serif; font-size: 40px; font-weight: 800; color: var(--deep-num); }
.steps b { font-size: 20px; }
.steps span { color: var(--on-deep); font-size: 16px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.features div { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.features b { display: block; font-size: 18px; margin-bottom: 6px; }
.features span { color: var(--soft-ink); font-size: 15px; }
.privacy { background: var(--ground); }
.privacy .wrap { display: flex; flex-wrap: wrap; gap: 40px; }
.privacy .wrap > div { flex: 1 1 340px; }
.privacy ul { flex: 1 1 440px; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.privacy li { padding: 16px 18px; background: var(--surface); border-radius: 10px; border: 1px solid var(--line); }
.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.faq summary { padding: 18px 20px; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--soft-ink); }
.closer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.closer h2 { margin: 0 !important; color: #fff; }
.closer .btn { background: #fff; color: var(--accent-deep); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.site-foot .wrap span { margin-right: auto; }
.site-foot a { color: var(--muted); }

/* Sign-in and notice pages */
body.login { min-height: 100vh; display: grid; place-items: center; background: var(--ground); padding: 24px; }
.login-card { width: 100%; max-width: 30rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; display: flex; flex-direction: column; gap: 14px; }
.login-card h1 { margin: 8px 0 0; font-size: 26px; }
.login-card .lead { margin: 0; color: var(--soft-ink); }
.login-card .fine { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.google { display: inline-flex; justify-content: center; align-items: center; padding: 14px 18px; border-radius: 10px; background: var(--accent); color: #fff !important; text-decoration: none; font-weight: 700; }
.google:hover { background: var(--accent-deep); }
form.code { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
form.code label { font-weight: 600; font-size: 14px; }
form.code .row { display: flex; flex-wrap: wrap; gap: 8px; }
form.code input { flex: 1 1 180px; padding: 12px; border: 1px solid #C9D1C7; border-radius: 8px; font: inherit; text-transform: uppercase; }
form.code button { padding: 12px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--surface); color: var(--accent-deep); font: inherit; font-weight: 700; cursor: pointer; }

@media (prefers-color-scheme: dark) {
  body.login { --ground: #111513; --surface: #1A1F1C; --line: #2E3531; --ink: #E8ECE9; --soft-ink: #C2CAC4; --muted: #A7B0AA; color: var(--ink); color-scheme: dark; }
  body.login .brand .mark, body.login .brand b { color: #7CC9A1; }
  body.login form.code input { background: #111513; color: var(--ink); border-color: #3A423D; }
  body.login form.code button { color: #7CC9A1; border-color: #7CC9A1; }
}
@media (max-width: 560px) { .duo { flex-direction: column; } }

/* ---------- the livelier bits ---------- */

/* Soft color drifting behind the hero. */
.hero { position: relative; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; }
.blobs { position: absolute; inset: 0; pointer-events: none; }
.blobs span { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.blobs span:nth-child(1) { background: #B9DCC8; top: -180px; left: -140px; }
.blobs span:nth-child(2) { background: #F6D9B4; bottom: -220px; right: 8%; animation-duration: 22s; animation-delay: -6s; }
.blobs span:nth-child(3) { background: #C9DDF0; top: 20%; right: -200px; width: 420px; height: 420px; animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.08); } 100% { transform: translate(-40px, 70px) scale(0.95); } }

.eyebrow-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,0.8); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--accent-deep); }
.eyebrow-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(46,107,79,0.5); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46,107,79,0.45); } 70% { box-shadow: 0 0 0 10px rgba(46,107,79,0); } 100% { box-shadow: 0 0 0 0 rgba(46,107,79,0); } }
.hero h1 { position: relative; z-index: 0; isolation: isolate; }
.hl { position: relative; white-space: nowrap; color: var(--accent); }
.hl::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.16em; border-radius: 4px; background: #F2C58F; z-index: -1; transform-origin: left; animation: underline 1s 0.4s cubic-bezier(.2,.8,.2,1) both; }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.btn-glow { box-shadow: 0 8px 24px rgba(46,107,79,0.28); transition: transform 0.15s, box-shadow 0.15s, background 0.15s; }
.btn-glow:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(46,107,79,0.34); }

/* The receipt that reads and files itself. Loops every 8 seconds. */
.scan { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 8px 0; }
.receipt { position: relative; width: min(320px, 100%); background: #fff; border-radius: 6px; padding: 22px 22px 26px; box-shadow: 0 18px 40px rgba(27,36,32,0.14); transform: rotate(-2deg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #2c3530; overflow: hidden;
  -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 6px, #000 7px) 0 0 / 18px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 6px, #000 7px) 0 0 / 18px 100% repeat-x; }
.r-store { font-weight: 700; font-size: 15px; text-align: center; }
.r-sub { text-align: center; color: #7a847e; font-size: 11.5px; margin-bottom: 14px; }
.r-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.r-rule { border-top: 1px dashed #c8cfca; margin: 10px 0 6px; }
.r-total { font-weight: 700; font-size: 14px; }
.r-note { margin-top: 10px; font-size: 11.5px; color: #7a847e; text-align: center; }
.beam { position: absolute; left: 0; right: 0; height: 56px; top: -60px; background: linear-gradient(180deg, rgba(124,201,161,0) 0%, rgba(124,201,161,0.45) 70%, rgba(46,107,79,0.9) 100%); animation: beam 8s ease-in-out infinite; }
@keyframes beam { 0% { top: -60px; opacity: 0; } 4% { opacity: 1; } 30% { top: 100%; opacity: 1; } 34%, 100% { top: 100%; opacity: 0; } }
.results { width: min(340px, 100%); display: flex; flex-direction: column; gap: 10px; }
.chip-card { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 20px rgba(27,36,32,0.08); opacity: 0; transform: translateY(10px) scale(0.98); animation: pop 8s infinite; }
.chip-card div { display: flex; flex-direction: column; line-height: 1.3; }
.chip-card b { font-size: 14px; }
.chip-card div span { font-size: 13px; color: var(--muted); }
.tick { flex: 0 0 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; }
.c1 { animation-name: pop1; } .c2 { animation-name: pop2; } .c3 { animation-name: pop3; }
@keyframes pop1 { 0%, 33% { opacity: 0; transform: translateY(10px) scale(0.98); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes pop2 { 0%, 41% { opacity: 0; transform: translateY(10px) scale(0.98); } 46%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }
@keyframes pop3 { 0%, 49% { opacity: 0; transform: translateY(10px) scale(0.98); } 54%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-4px); } }

/* Scrolling strip of things you can track. */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 12px; width: max-content; animation: slide 40s linear infinite; }
.marquee span { padding: 8px 16px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--soft-ink); }
.marquee span:nth-child(3n) { background: var(--accent-soft); color: var(--accent-deep); border-color: transparent; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Cards lift a little under the pointer. */
.features div, .pains p, .privacy li { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.features div:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(27,36,32,0.08); border-color: #C5DCCE; }
.steps .num { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(155,211,181,0.14); border: 1px solid rgba(155,211,181,0.35); font-size: 28px; }
.dark { background: radial-gradient(1200px 400px at 10% 0%, #2A6A4E 0%, transparent 60%), var(--accent-deep); }

/* Slide in on scroll (only when the script is running). */
.reveal.ready { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.ready.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .hero .wrap { padding-top: 40px; padding-bottom: 48px; gap: 36px; }
  .blobs span { width: 340px; height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .blobs span, .beam, .marquee .track, .eyebrow-pill .dot, .hl::after { animation: none !important; }
  .chip-card { animation: none !important; opacity: 1; transform: none; }
}
