/* ===== SMRTscan marketing site ===== */
:root {
  --emerald: #10B981;
  --emerald-d: #059669;
  --violet: #8B5CF6;
  --violet-d: #7C3AED;
  --indigo: #4F46E5;
  --ink: #0b1020;
  --ink-2: #141a2e;
  --slate: #5b6378;
  --slate-2: #8a92a6;
  --line: #e7e9f0;
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 12px 40px -12px rgba(16, 24, 64, .18);
  --shadow-soft: 0 6px 24px -10px rgba(16, 24, 64, .12);
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", var(--font);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }

.grad-text {
  background: linear-gradient(100deg, var(--emerald), var(--indigo) 60%, var(--violet));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  padding: 14px 22px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s;
  cursor: pointer; border: 0; white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 30px; font-size: 1.08rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--emerald), var(--indigo));
  box-shadow: 0 10px 30px -8px rgba(79, 70, 229, .5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(79, 70, 229, .6); }
.btn-ghost { color: var(--ink); background: transparent; border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--indigo); color: var(--indigo); }
.btn-light { color: var(--ink); background: #fff; box-shadow: var(--shadow-soft); }
.btn-light:hover { transform: translateY(-2px); }

/* ===== Join Program — premium shimmer ===== */
.btn-join {
  position: relative;
  overflow: hidden;
  color: #3a2600;
  background: linear-gradient(120deg, #fcd667 0%, #f7b733 50%, #fcd667 100%);
  font-weight: 700;
  border: 0;
  box-shadow: 0 8px 24px -8px rgba(247, 183, 51, .6), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-join::after {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .75) 50%, transparent 100%);
  transform: skewX(-22deg);
  animation: btn-shimmer 3s ease-in-out infinite;
  pointer-events: none;
}
.btn-join:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -8px rgba(247, 183, 51, .85), inset 0 1px 0 rgba(255, 255, 255, .65);
}
@keyframes btn-shimmer {
  0%       { left: -150%; }
  55%, 100% { left: 150%; }
}

/* ===== Store badges (official artwork — App Store now, Google Play later) ===== */
/* A flex row so a Google Play badge can sit beside the App Store badge.
   Apple's guidelines: don't recreate the badge, keep clear space around it,
   and keep the App Store badge >= the size of any other store badge. */
.store-badges { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.store-badge { display: inline-flex; transition: transform .18s ease, opacity .18s ease; }
.store-badge img { height: 44px; width: auto; display: block; }
.store-badge:hover { transform: translateY(-2px); opacity: .92; }
.store-badges--sm .store-badge img { height: 38px; }
/* Header badges must never stack — the nav bar has a fixed height */
.nav .store-badges--sm { flex-wrap: nowrap; flex-shrink: 0; }
.store-badges--lg .store-badge img { height: 52px; }
@media (max-width: 600px) { .store-badge img { height: 40px; } }

@media (prefers-reduced-motion: reduce) {
  .btn-join::after { animation: none; }
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 2px 16px -8px rgba(16,24,64,.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { border-radius: 8px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-accent { color: var(--emerald); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: .95rem; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

/* ===== Hero ===== */
.hero { position: relative; padding: clamp(56px, 9vw, 110px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.mesh { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5; }
.mesh-1 { width: 520px; height: 520px; background: radial-gradient(circle, var(--emerald), transparent 70%); top: -140px; right: -80px; }
.mesh-2 { width: 560px; height: 560px; background: radial-gradient(circle, var(--violet), transparent 70%); top: 40px; left: -160px; opacity: .35; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo); background: #eef0ff; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.lede { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--slate); margin: 22px 0 30px; max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-foot { margin-top: 22px; font-size: .9rem; color: var(--slate-2); }

/* Phone visual */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 290px; height: 590px; border-radius: 44px;
  background: linear-gradient(160deg, #1b2236, #0b1020);
  padding: 14px; box-shadow: 0 40px 80px -30px rgba(16,24,64,.5), inset 0 0 0 2px rgba(255,255,255,.06);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
.phone-notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #0b1020; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 32px; background: linear-gradient(170deg, #f3f5fb, #e9edf7); overflow: hidden; }
.receipt {
  position: absolute; top: 64px; left: 28px; right: 28px;
  background: #fff; border-radius: 14px; padding: 22px 20px;
  box-shadow: var(--shadow); font-size: .82rem; overflow: hidden;
}
.r-logo { font-family: var(--display); font-weight: 700; font-size: 1rem; text-align: center; letter-spacing: .05em; margin-bottom: 14px; }
.r-line { display: flex; justify-content: space-between; padding: 5px 0; color: #333; }
.r-line.muted { color: var(--slate-2); }
.r-line.total { font-weight: 700; border-top: 1.5px dashed var(--line); margin-top: 8px; padding-top: 10px; font-size: .95rem; }
.scanline {
  position: absolute; left: 0; right: 0; height: 40px;
  background: linear-gradient(180deg, transparent, rgba(16,185,129,.28), transparent);
  border-top: 2px solid var(--emerald); box-shadow: 0 0 18px 2px rgba(16,185,129,.5);
  animation: scan 3.4s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes scan { 0% { top: -40px } 55% { top: 100% } 100% { top: 100% } }
.chip {
  position: absolute; right: 14px; font-size: .72rem; font-weight: 600; color: var(--ink);
  background: #fff; padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow-soft);
  opacity: 0; animation: pop .5s ease forwards;
}
.chip-1 { top: 150px; animation-delay: 1.2s; }
.chip-2 { top: 230px; animation-delay: 1.7s; }
.chip-3 { top: 310px; animation-delay: 2.2s; }
@keyframes pop { from { opacity: 0; transform: translateX(12px) scale(.9) } to { opacity: 1; transform: none } }

/* ===== Trust strip ===== */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; padding: 18px 24px; font-size: .92rem; color: var(--slate); text-align: center; }
.trust-inner strong { color: var(--ink); }
.trust .dot { color: var(--slate-2); }

/* ===== Sections ===== */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.section-head p { color: var(--slate); font-size: 1.1rem; margin-top: 14px; }
.kicker { font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald-d); }
.kicker.light { color: rgba(255,255,255,.85); }

/* ===== Bento features ===== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card-feature.span-2 { grid-column: span 2; }
.ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 20px -8px var(--c2);
}
.card-feature p { color: var(--slate); margin-top: 8px; }

/* ===== Split (accounting) ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy p { color: var(--slate); font-size: 1.08rem; margin: 16px 0 22px; }
.split-copy h2 { margin-top: 10px; }
.ticks { list-style: none; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: .72rem; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--emerald-d));
}
.ticks.light li { color: rgba(255,255,255,.92); }
.ticks.light li::before { background: rgba(255,255,255,.25); }
.split-cards { display: grid; gap: 16px; }
.mini { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-soft); }
.mini-ic { font-size: 1.6rem; line-height: 1; }
.mini strong { font-family: var(--display); font-size: 1.05rem; }
.mini p { color: var(--slate); font-size: .94rem; margin-top: 4px; }

/* ===== Workspace banner ===== */
.workspace-banner {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(125deg, var(--ink), #20284a 55%, var(--violet-d));
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); color: #fff;
  box-shadow: var(--shadow);
}
.wb-copy h2 { color: #fff; margin: 12px 0 14px; }
.wb-copy p { color: rgba(255,255,255,.82); margin-bottom: 24px; font-size: 1.06rem; }
.wb-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(6px); }
.wb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.wb-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.wb-tag { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--emerald); padding: 5px 11px; border-radius: 999px; }
.wb-divider { height: 1px; background: rgba(255,255,255,.16); margin: 20px 0; }
.wb-expand p { color: rgba(255,255,255,.72); font-size: .92rem; margin-top: 6px; }
.wb-price { display: flex; align-items: baseline; gap: 8px; }
.wb-price .amt { font-family: var(--display); font-size: 2.2rem; font-weight: 800; }
.wb-price .per { color: rgba(255,255,255,.7); font-size: .92rem; }

/* ===== Pricing tiers ===== */
.tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; align-items: start; }
.tier-cta { margin-top: 16px; display: inline-flex; width: 100%; justify-content: center; }
.tier { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; box-shadow: var(--shadow-soft); }
.tier h3 { font-size: 1.3rem; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 2px; }
.tier-price .amt { font-family: var(--display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; }
.tier-price .per { color: var(--slate-2); font-size: .9rem; }
.tier-cad { margin-top: 0; }
.tier-annual { color: var(--slate-2); font-size: .82rem; margin: 4px 0 0; }
.tier-scans { color: var(--emerald-d); font-weight: 600; margin: 2px 0 18px; }
.tier ul { list-style: none; display: grid; gap: 9px; }
.tier ul li { position: relative; padding-left: 22px; color: var(--slate); font-size: .94rem; }
.tier ul li::before { content: "✓"; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }
.tier-feature { border-color: transparent; box-shadow: 0 20px 50px -20px rgba(79,70,229,.5); outline: 2px solid var(--indigo); transform: translateY(-6px); }
.tier-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(120deg, var(--emerald), var(--indigo)); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.pricing-foot { text-align: center; margin-top: 32px; color: var(--slate); }
.pricing-foot a { color: var(--indigo); font-weight: 600; }

/* ===== Privacy ===== */
.privacy { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.privacy-copy p { color: var(--slate); font-size: 1.1rem; margin-top: 16px; }
.privacy-copy em { color: var(--ink); font-style: normal; font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { text-align: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 10px; }
.stat-num { display: block; font-family: var(--display); font-size: 2.1rem; font-weight: 800; }
.stat-label { color: var(--slate); font-size: .86rem; }

/* ===== Final CTA ===== */
.cta { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(135deg, var(--ink), #1a2240); color: #fff; text-align: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(16,185,129,.25), transparent 70%); top: -200px; left: 50%; transform: translateX(-50%); }
.cta-inner { position: relative; max-width: 620px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.82); font-size: 1.15rem; margin: 16px 0 30px; }

/* ===== Footer ===== */
.footer { background: #0b1020; color: rgba(255,255,255,.7); padding: 54px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand p { margin-top: 8px; font-size: .92rem; max-width: 28ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.footer-links a { font-size: .94rem; transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-legal { padding-top: 22px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ===== Legal pages ===== */
.legal-page { max-width: 820px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) 24px 80px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 14px; }
.legal-meta { color: var(--slate); font-size: .95rem; margin-bottom: 8px; }
.legal-content { color: #2b3147; }
.legal-content h2 { font-size: 1.5rem; margin: 38px 0 12px; }
.legal-content h3 { font-size: 1.12rem; margin: 24px 0 8px; color: var(--ink); }
.legal-content p { margin: 12px 0; color: #3b4257; }
.legal-content ul, .legal-content ol { margin: 12px 0 12px 22px; display: grid; gap: 7px; }
.legal-content li { color: #3b4257; }
.legal-content a { color: var(--indigo); font-weight: 600; }
.legal-content hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .92rem; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal-content th { background: var(--bg-soft); font-family: var(--display); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--indigo); font-weight: 600; margin-bottom: 24px; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { order: -1; }
  .lede { max-width: none; }
  .split, .privacy { grid-template-columns: 1fr; gap: 36px; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-feature.span-2 { grid-column: span 2; }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .workspace-banner { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  /* Two store badges don't fit mid-width headers at full size */
  .nav .store-badges--sm .store-badge img { height: 30px; width: auto; }
}
@media (max-width: 560px) {
  .bento, .tiers { grid-template-columns: 1fr; }
  .card-feature.span-2 { grid-column: span 1; }
  .tier-feature { transform: none; }
  .stats { grid-template-columns: 1fr; }
  .phone { width: 250px; height: 510px; }
  /* Stop the brand + Join Program/Download buttons from squishing together */
  .nav-inner { height: 60px; gap: 10px; }
  .brand { gap: 8px; min-width: 0; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark { width: 28px; height: 28px; }
  .btn-sm { padding: 8px 10px; font-size: .78rem; white-space: nowrap; }
  /* Phones: keep BOTH store badges in the header — the logo mark alone carries
     the brand, freeing the width the badges need on one line */
  .brand-name { display: none; }
  .nav .store-badges--sm { gap: 6px; }
  .nav .store-badges--sm .store-badge img { height: 28px; width: auto; }
}
@media (max-width: 370px) {
  .nav .store-badges--sm .store-badge img { height: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .phone, .scanline, .chip { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ===== Blog ===== */
.legal-content blockquote { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--indigo); background: var(--bg-soft); border-radius: 0 8px 8px 0; color: #3b4257; font-size: .95rem; }
.legal-content blockquote p { margin: 0; }
.legal-content pre { margin: 14px 0; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; font-size: .9rem; }
.legal-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.blog-cta { margin: 34px 0 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.blog-cta p { margin: 0 0 14px; }
.blog-disclaimer { margin-top: 34px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--slate); font-size: .85rem; }
.post-list { display: grid; gap: 18px; margin-top: 28px; }
.post-card { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 24, 44, .08); }
.post-card h2 { font-size: 1.25rem; margin: 0 0 8px; color: var(--ink); }
.post-card p { margin: 0; color: #3b4257; font-size: .95rem; }
.post-card .post-meta { display: block; margin-top: 10px; color: var(--slate); font-size: .85rem; font-weight: 500; }
