/* canaryscanner.com — light, canary-forward, GYR accents. Plain CSS, no build step. */

:root{
  --bg:#ffffff;
  --bg-soft:#f6f8fb;
  --sky:#e8f4fd;            /* app icon background */
  --ink:#1c1c1e;
  --muted:#6b6b70;
  --line:#e7e9ee;
  --green:#1f9d57;
  --yellow:#e8a90a;
  --red:#e5484d;
  --amber:#f59e0b;          /* Color.canaryAmber */
  --radius:16px;
  --maxw:1080px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:var(--font);color:var(--ink);background:var(--bg);
  line-height:1.55;-webkit-font-smoothing:antialiased;
}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 24px}
.wrap.narrow{max-width:760px}
h1,h2,h3{line-height:1.15;letter-spacing:-0.015em;margin:0 0 .5em}
h1{font-size:clamp(2rem,5vw,3.4rem);font-weight:800}
h2{font-size:clamp(1.6rem,3.4vw,2.4rem);font-weight:800}
h3{font-size:1.25rem;font-weight:700}
p{margin:0 0 1em}
.accent{color:var(--amber);font-size:1.1em}
.sub{font-size:1.2rem;color:var(--muted);max-width:34ch}
section{padding:84px 0}

/* Buttons */
.btn{display:inline-block;border-radius:999px;font-weight:700;text-decoration:none;white-space:nowrap;padding:14px 26px;transition:transform .12s ease,opacity .12s ease}
.btn:hover{transform:translateY(-1px)}
.btn-app{background:var(--ink);color:#fff}
.btn-small{background:transparent;color:var(--ink);border:1.5px solid var(--ink);padding:9px 18px}
.link{color:var(--ink);text-decoration:none;border-bottom:2px solid var(--amber);padding-bottom:1px}
.link strong{color:var(--amber)}

/* Official Apple "Download on the App Store" badge — artwork used unmodified per Apple guidelines */
.appstore-badge{display:inline-block;line-height:0}
.appstore-badge img{height:54px;width:auto;display:block}
.appstore-badge:hover{opacity:.88}
.hero-copy .appstore-badge{margin-top:16px}
.sees .appstore-badge{margin-top:4px}
/* Mobile-only duplicate of the hero App Store badge — shown after the phones on small screens
   so the CTA follows the proof (desktop keeps the badge in the copy column). */
.hero-badge-m{display:none}

/* Nav */
.nav{position:sticky;top:0;z-index:10;display:flex;align-items:center;justify-content:space-between;
  padding:14px 24px;background:rgba(255,255,255,.85);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.15rem;color:var(--ink);text-decoration:none}
/* Bigger bird that overflows the banner downward without growing it (negative margins keep nav height) */
.brand-mark{width:60px;height:60px;object-fit:contain;margin:-8px 0 -22px;position:relative;z-index:1}

/* Hero */
.hero{background:linear-gradient(180deg,var(--sky),#fff);padding-top:64px}
.hero h1{font-size:clamp(1.8rem,4vw,2.3rem);line-height:1.18}
.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.hero-copy .btn-app{margin-top:14px}
/* Phone pair — opposing tilt, Canary rising above and in front */
.phones{display:flex;align-items:center;justify-content:center;gap:30px;padding:12px 0}
/* Shared iPhone bezel — both shots are real, content-only screencaps wrapped in one frame */
.shot{margin:0;width:42%;position:relative;background:#0f1012;border-radius:30px;padding:7px;box-shadow:0 18px 44px rgba(20,30,60,.20)}
.shot img{width:100%;height:auto;display:block;border-radius:24px}
.shot-camera{transform:rotate(-7deg) translateY(16px)}
.shot-canary{transform:rotate(7deg) translateY(-16px);z-index:2;box-shadow:0 24px 56px rgba(20,30,60,.28)}
.phones-tagline{display:flex;justify-content:center;gap:30px;margin-top:14px}
.phones-tagline span{width:42%;text-align:center;font-size:1.2rem;font-weight:700;color:var(--ink)}

/* Badges */
.badge{display:inline-block;font-weight:800;font-size:.72rem;letter-spacing:.06em;padding:5px 12px;border-radius:999px;color:#fff}
.badge-red{background:var(--red)}
.badge-yellow{background:var(--yellow)}
.badge-green{background:var(--green)}

/* §3 — What your phone sees vs. what Canary sees (loops + coverage checklist) */
.seen{background:var(--bg)}
.intro{font-size:1.05rem;color:var(--muted);max-width:none;text-align:center;margin:46px auto 6px}
.checks-head{font-size:1.45rem;text-align:center;margin:0 0 .3em}
.checklist{list-style:none;padding:0;margin:24px auto 0;display:grid;grid-template-columns:auto auto;gap:12px 40px;width:max-content;max-width:100%}
.checklist li{position:relative;padding-left:34px;font-size:1.05rem}
/* neutral empty checkbox — green would imply "good" (wrong for phishing) */
.checklist li::before{content:"";position:absolute;left:0;top:1px;width:21px;height:21px;border:2px solid rgba(28,28,30,.25);border-radius:5px;background:transparent}
/* grey check, column-sequenced: fill column 1 top→bottom, then column 2, hold, then clear all, loop.
   All share one 9s timeline (no per-item delay) so the clear at 91% is simultaneous; the stagger is
   in each keyframe's reveal %. Grid is row-major, so column 1 = odd items, column 2 = even items. */
.checklist li::after{content:"✓";position:absolute;left:0;top:1px;width:21px;height:21px;line-height:20px;text-align:center;font-size:.78rem;font-weight:800;color:var(--muted);opacity:0}
.checklist li:nth-child(1)::after{animation:k1 9s linear infinite}
.checklist li:nth-child(3)::after{animation:k2 9s linear infinite}
.checklist li:nth-child(5)::after{animation:k3 9s linear infinite}
.checklist li:nth-child(7)::after{animation:k4 9s linear infinite}
.checklist li:nth-child(9)::after{animation:k5 9s linear infinite}
.checklist li:nth-child(11)::after{animation:k6 9s linear infinite}
.checklist li:nth-child(2)::after{animation:k7 9s linear infinite}
.checklist li:nth-child(4)::after{animation:k8 9s linear infinite}
.checklist li:nth-child(6)::after{animation:k9 9s linear infinite}
.checklist li:nth-child(8)::after{animation:k10 9s linear infinite}
.checklist li:nth-child(10)::after{animation:k11 9s linear infinite}
.checklist li:nth-child(12)::after{animation:k12 9s linear infinite}
@keyframes k1{0%{opacity:0;transform:scale(.4)}1%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k2{0%,2%{opacity:0;transform:scale(.4)}4%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k3{0%,5%{opacity:0;transform:scale(.4)}7%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k4{0%,8%{opacity:0;transform:scale(.4)}10%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k5{0%,11%{opacity:0;transform:scale(.4)}13%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k6{0%,14%{opacity:0;transform:scale(.4)}16%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k7{0%,17%{opacity:0;transform:scale(.4)}19%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k8{0%,20%{opacity:0;transform:scale(.4)}22%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k9{0%,23%{opacity:0;transform:scale(.4)}25%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k10{0%,26%{opacity:0;transform:scale(.4)}28%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k11{0%,29%{opacity:0;transform:scale(.4)}31%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@keyframes k12{0%,32%{opacity:0;transform:scale(.4)}34%{opacity:1;transform:scale(1)}88%{opacity:1;transform:scale(1)}91%,100%{opacity:0;transform:scale(.4)}}
@media (prefers-reduced-motion:reduce){.checklist li::after{animation:none;opacity:1}}
.curious{display:block;width:max-content;max-width:100%;margin:30px auto 0}

/* Problem */
.problem{background:var(--bg-soft)}
/* Supporting citations under the problem statement (pull-quote style, not big-number) */
.cites{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:32px}
.cite{margin:0;background:#fff;border:1px solid var(--line);border-left:3px solid var(--amber);border-radius:12px;padding:20px 22px}
.cite blockquote{margin:0;font-size:1.08rem;font-weight:600;line-height:1.4;color:var(--ink)}
.cite figcaption{margin-top:12px;font-size:.82rem;color:var(--muted);font-style:italic}
/* §3 tiles — each card is its own A/B: iPhone (muted, left) | Canary (rich, right), split by a divider */
.loops{display:grid;grid-template-columns:1fr;gap:20px}
.loop{margin:0}
.loop-media{display:grid;grid-template-columns:230px auto 1fr;align-items:stretch;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 4px 14px rgba(20,30,60,.05);overflow:hidden}
.cmp-side{padding:22px 26px;display:flex;flex-direction:column}
.cmp-side-phone{align-items:center;text-align:center;background:var(--bg-soft);border-right:1px solid var(--line)}
.cmp-badge{display:flex;align-items:center;justify-content:center;padding:22px 26px;background:#fff}
.cmp-side-canary{padding-left:12px;justify-content:center}
.cmp-head{font-size:.72rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.cmp-side-phone .vs-camera-img{margin-top:auto;margin-bottom:auto}
.vs-camera-img{display:block;width:100%;max-width:180px;height:auto;border-radius:10px}
.vs-verdict{font-weight:600;font-size:1.08rem;line-height:1.4;margin:0 0 14px}
.vs-detail{display:block;width:100%;max-width:500px;height:auto;border-radius:12px;border:1px solid var(--line)}

/* §4 — the wrap: a badge + the context, then the ask (centered conversion close) */
.sees{background:var(--bg-soft);text-align:center}
.verdicts{display:flex;justify-content:center;gap:28px;margin:12px 0 26px}
.round-badge{width:96px;height:96px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:.86rem;letter-spacing:.05em;box-shadow:0 8px 20px rgba(20,30,60,.16)}
.rb-green{background:var(--green)}
.rb-amber{background:var(--amber)}
.rb-red{background:var(--red)}
.close{font-size:1.15rem;color:var(--muted);margin:0 0 1.1em}
.get-line{font-size:1.05rem;color:var(--ink);font-weight:600;margin:0 0 18px}
.sees .btn-app{margin-top:2px}

/* §5 — privacy, deliberately an afterthought (quiet sign-off after the ask) */
.privacy{background:var(--bg);padding-top:52px;padding-bottom:60px}
.privacy h2{font-size:1.35rem;color:var(--muted);font-weight:700}
.privacy p{font-size:.95rem;color:var(--muted);max-width:70ch}

/* Share — nav pill + bottom block, both opening one pop-down (mini QR + options) */
.nav-actions{display:flex;align-items:center;gap:12px}
.share-pill{display:inline-flex;align-items:center;gap:8px;cursor:pointer;font-family:inherit;
  font-weight:700;font-size:1rem;color:#fff;background:var(--ink);border:1.5px solid var(--ink);
  border-radius:999px;padding:9px 18px;transition:transform .12s ease,opacity .12s ease}
.share-pill:hover{transform:translateY(-1px)}
.share-ico{flex:none}

/* pop-down panel — position set by JS (fixed, floats over content) */
.share-pop{position:fixed;z-index:50;width:232px;background:#fff;border:1px solid var(--line);
  border-radius:16px;box-shadow:0 16px 40px rgba(20,30,60,.18);padding:14px}
.share-pop[hidden]{display:none}
.share-pop-qr{display:block;width:148px;height:148px;margin:0 auto 12px;background:#fff;padding:8px;
  border:1px solid var(--line);border-radius:12px}
.share-opts{display:flex;flex-direction:column}
.share-opt{display:flex;align-items:center;gap:13px;width:100%;text-align:left;border:0;background:none;
  cursor:pointer;font-family:inherit;font-size:1rem;font-weight:500;color:var(--ink);text-decoration:none;
  padding:10px;border-radius:9px}
.share-opt svg{width:20px;height:20px;flex:none}
.share-opt:hover{background:var(--bg-soft)}

/* bottom block — copy + two equal squares (QR | share) side by side */
.share{background:var(--bg-soft)}
.share-grid{display:grid;grid-template-columns:1fr auto;gap:48px;align-items:center}
.share-copy h2{font-size:clamp(1.5rem,3vw,2rem)}
.share-copy p{font-size:1.1rem;color:var(--muted);max-width:42ch;margin:0}
.share-squares{display:flex;gap:18px}
.share-qr{margin:0}
.share-qr img{display:block;width:148px;height:148px;background:#fff;padding:12px;border-radius:16px;
  box-shadow:0 8px 22px rgba(20,30,60,.12)}
.share-square{width:148px;height:148px;display:flex;flex-direction:column;align-items:center;
  justify-content:center;gap:10px;border:0;cursor:pointer;font-family:inherit;font-weight:700;
  font-size:1.02rem;color:#fff;background:var(--ink);border-radius:16px;
  box-shadow:0 8px 22px rgba(20,30,60,.12);transition:transform .12s ease}
.share-square:hover{transform:translateY(-2px)}

/* Footer */
.footer{padding:40px 0;border-top:1px solid var(--line);color:var(--muted)}
.footer-bird{display:block;width:320px;max-width:72%;margin:4px auto 30px}
.footer-row{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}
.footer nav{display:flex;gap:22px}
.footer a{color:var(--muted);text-decoration:none}
.footer a:hover{color:var(--ink)}

/* Stats — live anonymous community counters + breakdowns (populated by assets/stats.js;
   the section is hidden until data loads). Brand-tinted band to set it apart. */
.stats{background:var(--sky);text-align:center}
.stats-sub{font-size:1.05rem;color:var(--muted);max-width:46ch;margin:0 auto}
.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:28px;max-width:560px;margin:34px auto 40px}
.stat{display:flex;flex-direction:column;gap:6px}
.stat-num{font-size:clamp(2.4rem,6vw,3.6rem);font-weight:800;letter-spacing:-0.02em;line-height:1;
  color:var(--ink);font-variant-numeric:tabular-nums}
.stat-num.danger{color:var(--red)}
.stat-label{font-size:1rem;color:var(--muted);font-weight:600}

.breakdowns{display:grid;grid-template-columns:1fr 1fr;gap:40px;text-align:left;
  max-width:900px;margin:0 auto 32px}
.bd-head{font-size:1rem;font-weight:700;color:var(--muted);text-transform:uppercase;
  letter-spacing:.06em;margin:0 0 16px}
/* threat level — stacked GYR bar + legend */
.threat-bar{display:flex;height:26px;border-radius:999px;overflow:hidden;background:#fff;
  box-shadow:inset 0 0 0 1px var(--line)}
.seg{width:0;transition:width .9s cubic-bezier(.22,.61,.36,1)}
.seg-safe{background:var(--green)}
.seg-confirm{background:var(--amber)}
.seg-danger{background:var(--red)}
/* threat legend — three centered columns under the bar: label over count (no dots; the
   bar already carries the colour). Scales cleanly to 6+ digit counts. */
.threat-legend{list-style:none;padding:0;margin:18px 0 0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.tl-item{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.tl-label{font-size:.74rem;font-weight:800;letter-spacing:.07em}
.tl-count{font-size:clamp(1.3rem,3vw,1.8rem);font-weight:800;color:var(--ink);font-variant-numeric:tabular-nums;line-height:1}
.tl-safe .tl-label{color:var(--green)}
.tl-confirm .tl-label{color:var(--amber)}
.tl-danger .tl-label{color:var(--red)}
/* scan type — horizontal bars */
.type-bars{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:9px}
.type-row{display:grid;grid-template-columns:130px 1fr auto;align-items:center;gap:12px;font-size:.9rem}
.type-label{color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.type-track{height:9px;border-radius:999px;background:#fff;box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.type-fill{display:block;height:100%;width:0;background:var(--amber);border-radius:999px;
  transition:width .9s cubic-bezier(.22,.61,.36,1)}
.type-count{color:var(--muted);font-weight:700;font-variant-numeric:tabular-nums;min-width:3ch;text-align:right}
.stat-note{font-size:.9rem;color:var(--muted);max-width:60ch;margin:0 auto}
@media (prefers-reduced-motion:reduce){.seg,.type-fill{transition:none}}

/* Street team — grassroots sticker recruiting */
.street{background:var(--bg)}
.street-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.street-copy p{font-size:1.1rem;color:var(--muted);max-width:48ch}
.street-how{font-size:1rem}
.street-actions{display:flex;gap:14px;flex-wrap:wrap;margin:24px 0 14px}
.street-note{font-size:.86rem;color:var(--muted);margin:0}
.street-share{margin-top:18px}
.street-visual{display:flex;justify-content:center;padding:20px}
/* Real sticker artwork preview (assets/canary-sticker.webp) — small + tilted, just representative */
.sticker-img{width:190px;max-width:66%;height:auto;border-radius:11px;
  box-shadow:0 14px 34px rgba(20,30,60,.20);transform:rotate(-4deg)}

/* Responsive */
@media (max-width:760px){
  section{padding:60px 0}

  /* Stats — stack headline pair; breakdowns single-column */
  .stat-grid{gap:18px;margin:26px auto 30px}
  .breakdowns{grid-template-columns:1fr;gap:30px}
  .type-row{grid-template-columns:110px 1fr auto}

  /* Street team — stack + center */
  .street-grid{grid-template-columns:1fr;gap:32px;text-align:center}
  .street-copy p{margin-left:auto;margin-right:auto}
  .street-actions{justify-content:center}
  .sticker-img{transform:none}


  /* Nav — declutter so nothing wraps: drop the share pill (the share block lives lower
     on the page), shrink the bird so the wordmark has room, keep "Get the app" on one line. */
  .nav{padding:10px 16px}
  .nav .share-pill{display:none}
  .brand-mark{width:46px;height:46px;margin:-6px 0 -16px}
  .nav-actions{gap:8px}
  .nav-actions .btn-small{padding:8px 14px}

  /* Hero — stack, and move the CTA below the phones (proof before the ask). */
  .hero-grid{grid-template-columns:1fr;gap:28px}
  .hero-copy .appstore-badge{display:none}
  .hero-badge-m{display:block;width:max-content;margin:34px auto 0}

  /* §2 citations — same swipe-carousel treatment, tightened. */
  .cites{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;margin:24px -24px 0;
    padding:2px 24px 12px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .cites::-webkit-scrollbar{display:none}
  .cite{flex:0 0 84%;scroll-snap-align:center;padding:15px 18px}
  .cite blockquote{font-size:.98rem}
  .cite figcaption{margin-top:8px}

  /* §3 — horizontal swipe carousel (CSS scroll-snap, no JS). Each comparison is one
     full-width slide; the next card peeks to signal there's more. Internals stack. */
  .loops{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;
    margin:0 -24px;padding:4px 24px 16px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .loops::-webkit-scrollbar{display:none}
  .loop{flex:0 0 84%;scroll-snap-align:center}
  /* lift + a verdict-colored top edge so adjacent cards read as distinct while swiping */
  .loop-media{grid-template-columns:1fr;height:100%;border-top:4px solid var(--line);
    box-shadow:0 8px 24px rgba(20,30,60,.12)}
  .loop:has(.rb-red) .loop-media{border-top-color:var(--red)}
  .loop:has(.rb-amber) .loop-media{border-top-color:var(--amber)}
  .loop:has(.rb-green) .loop-media{border-top-color:var(--green)}
  /* ~10% tighter cards */
  .cmp-side{padding:16px 18px}
  .cmp-side-phone{border-right:0;border-bottom:1px solid var(--line)}
  .cmp-badge{padding:14px;border-bottom:1px solid var(--line)}
  .cmp-badge .round-badge{width:62px;height:62px;font-size:.66rem}
  .cmp-side-canary{padding-left:18px}
  .vs-verdict{font-size:1rem;margin-bottom:10px}
  .vs-camera-img{max-width:112px}

  /* §4 — coverage list 2-up, tight enough that each item fits two lines. */
  .checklist{grid-template-columns:1fr 1fr;gap:9px 16px;width:auto}
  .checklist li{font-size:.86rem;line-height:1.3;padding-left:24px}
  .checklist li::before,.checklist li::after{width:17px;height:17px}
  .checklist li::after{line-height:16px;animation:none;opacity:1}
  .checks-head{font-size:1.25rem}

  /* §4 badges + share block */
  .verdicts{gap:16px}
  .round-badge{width:78px;height:78px;font-size:.74rem}
  .share-grid{grid-template-columns:1fr;gap:30px;text-align:center}
  .share-copy p{margin-left:auto;margin-right:auto}
  .share-squares{justify-content:center}
}
