/* 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;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}

/* 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)}

/* Responsive */
@media (max-width:760px){
  section{padding:60px 0}
  .hero-grid{grid-template-columns:1fr;gap:32px}
  .checklist,.cites{grid-template-columns:1fr}
  .checklist li::after{animation:none;opacity:1}
  .loop-media{grid-template-columns:1fr}
  .cmp-side-phone{border-right:0;border-bottom:1px solid var(--line)}
  .cmp-badge{border-bottom:1px solid var(--line)}
  .cmp-side-canary{padding-left:26px}
  .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}
  .nav-actions{gap:8px}
}
