/* Homepage: the showcase. Same palette as styles.css (BRAND.md): ink, white, one sky accent, signal
   colors only on verdicts. Motion is quick and forward (180-280 ms), and all of it stops under
   Reduce Motion. */

@property --caught {
  syntax: "<integer>";
  initial-value: 23;
  inherits: false;
}

.home { overflow-x: hidden; }
.home::before { display: none; }

.sky-text {
  background: linear-gradient(100deg, #62A4FD 0%, #8EC5FF 55%, #62A4FD 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }

/* Glass bar, the one place glass belongs */
.nav-glass { position: sticky; top: 0; z-index: 30; background: rgba(10, 10, 11, 0.72); backdrop-filter: saturate(1.4) blur(18px); -webkit-backdrop-filter: saturate(1.4) blur(18px); }

/* Hero */
.hero-band { position: relative; overflow: hidden; }
.aurora {
  position: absolute; inset: -20% -10% auto -10%; height: 900px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(40% 50% at 70% 30%, rgba(98, 164, 253, 0.28), transparent 70%),
    radial-gradient(35% 45% at 20% 10%, rgba(31, 111, 229, 0.22), transparent 70%),
    radial-gradient(30% 40% at 55% 70%, rgba(142, 197, 255, 0.12), transparent 70%);
  filter: blur(10px);
  animation: drift 14s ease-in-out infinite alternate;
}
.aurora.small { height: 520px; inset: auto -10% -30% -10%; }
@keyframes drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 4%, 0) scale(1.08); } }

.hero { position: relative; z-index: 1; grid-template-columns: 1.1fr 0.9fr; padding: 72px 0 56px; }
.hero h1 { font-size: clamp(52px, 8vw, 96px); line-height: 0.98; letter-spacing: -0.045em; }
.hero .lede { font-size: 20px; max-width: 540px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 32px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 11px 20px 11px 16px; border-radius: 14px;
  background: #000; border: 1px solid rgba(255, 255, 255, 0.22); color: #fff; font-weight: 600; font-size: 19px; line-height: 1.1;
}
.store-badge small { display: block; font-size: 11px; font-weight: 500; color: var(--steel); letter-spacing: 0.01em; }
.ghost-button {
  display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15.5px;
  color: #0A0A0B; background: var(--sky); transition: transform 180ms ease, box-shadow 180ms ease;
}
.ghost-button:hover { text-decoration: none; transform: translateX(3px); box-shadow: 0 8px 30px rgba(98, 164, 253, 0.35); }

.promise-row { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.promise-row li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ink-3); background: rgba(22, 22, 26, 0.7); font-size: 14px; color: #C9CBD1; }
.promise-row b { color: var(--sky); font-weight: 700; margin-right: 2px; }

/* Phones, drawn in CSS */
.hero-phone, .split-art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; z-index: 1; width: 300px; height: 620px; border-radius: 50px; padding: 10px;
  background: linear-gradient(160deg, #3A3A40, #1C1C20 40%, #2C2C31);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero-phone .phone { transform: rotate(-3deg); animation: bob 7s ease-in-out infinite; }
.split-art .phone { height: 560px; }
@keyframes bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }
.phone-glow { position: absolute; z-index: 0; width: 380px; height: 380px; top: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(98, 164, 253, 0.35), transparent 65%); filter: blur(30px); }
.island { position: absolute; z-index: 3; top: 20px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 20px; background: #000; }
.screen { position: relative; height: 100%; border-radius: 41px; overflow: hidden; background: var(--ink); font-size: 13px; line-height: 1.35; }
.status-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 0 30px; height: 46px; font-size: 13px; font-weight: 600; }
.status-bar .bars { width: 38px; height: 11px; border-radius: 3px; background: linear-gradient(90deg, #EDEDEF 70%, #46464C 70%); opacity: 0.9; }
.app-title { padding: 8px 18px 2px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.status-line { display: flex; align-items: center; gap: 6px; padding: 2px 18px 10px; color: var(--steel); font-size: 12px; }
.status-line img { width: 11px; height: auto; }
.count-up::after { counter-reset: caught var(--caught); content: counter(caught) " caught"; color: var(--text); font-weight: 600; }
.hero-phone .count-up { animation: tally 9s steps(1) infinite; }
@keyframes tally { 0%, 33% { --caught: 21; } 34%, 70% { --caught: 22; } 71%, 100% { --caught: 23; } }

.mail-list, .sender-list { list-style: none; margin: 0; padding: 0; }
.mail, .sender-list li {
  display: flex; gap: 10px; padding: 10px 18px; border-top: 1px solid #1B1B20; max-height: 80px; overflow: hidden; background: var(--ink);
}
.mail-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mail-top { display: flex; justify-content: space-between; gap: 8px; }
.mail-top b, .sender-list b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-top time { color: var(--steel); font-size: 11px; flex: none; }
.subject { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview { color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.verdict { display: inline-flex; align-items: center; gap: 6px; color: var(--steel); font-size: 12px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.phish { background: #FF4D5E; box-shadow: 0 0 10px rgba(255, 77, 94, 0.6); }
.dot.scam { background: #FF9A3D; box-shadow: 0 0 10px rgba(255, 154, 61, 0.5); }

.avatar { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 700; font-size: 14px; }
.avatar.big { width: 42px; height: 42px; font-size: 17px; }
.tint-blue { background: #1E3A5F; color: #8EC5FF; }
.tint-teal { background: #173F3A; color: #6FE0C8; }
.tint-green { background: #24402A; color: #8FDB9A; }
.tint-violet { background: #352A55; color: #BBA8FF; }
.tint-pink { background: #4A2440; color: #F5A3D6; }
.tint-cyan { background: #20384A; color: #7FD3F5; }

/* The shoo: junk leaves fast to the trailing edge, the list closes up, a toast slides in. */
.hero-phone .shoo-out { animation: shoo 9s cubic-bezier(0.5, 0, 0.2, 1) infinite; }
.hero-phone .shoo-out.late { animation-name: shoo-late; }
@keyframes shoo {
  0%, 28% { transform: translateX(0); opacity: 1; max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
  31% { transform: translateX(110%); opacity: 0; max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
  34%, 94% { transform: translateX(110%); opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; }
  100% { transform: translateX(0); opacity: 1; max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
}
@keyframes shoo-late {
  0%, 64% { transform: translateX(0); opacity: 1; max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
  67% { transform: translateX(110%); opacity: 0; max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
  70%, 94% { transform: translateX(110%); opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-top-width: 0; }
  100% { transform: translateX(0); opacity: 1; max-height: 80px; padding-top: 10px; padding-bottom: 10px; }
}
.toast {
  position: absolute; left: 14px; right: 14px; bottom: 74px; z-index: 4; display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-radius: 14px; background: rgba(38, 38, 44, 0.92); border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  transform: translateX(120%); opacity: 0;
}
.hero-phone .toast { animation: toast 9s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
@keyframes toast {
  0%, 31% { transform: translateX(120%); opacity: 0; }
  34%, 50% { transform: translateX(0); opacity: 1; }
  53%, 66% { transform: translateX(120%); opacity: 0; }
  69%, 85% { transform: translateX(0); opacity: 1; }
  88%, 100% { transform: translateX(120%); opacity: 0; }
}
.tab-bar { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 50px; border-radius: 25px; display: flex; justify-content: space-around; align-items: center; background: rgba(38, 38, 44, 0.75); border: 1px solid rgba(255, 255, 255, 0.07); }
.tab-bar span { width: 20px; height: 20px; border-radius: 6px; background: #4A4A52; }
.tab-bar span.on { background: var(--sky); }

/* Provider marquee */
.marquee { position: relative; z-index: 1; overflow: hidden; border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track span { font-size: 20px; font-weight: 600; color: #6F727A; letter-spacing: -0.01em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Showcase sections */
.showcase { position: relative; padding: 110px 0; }
.showcase.alt { background: linear-gradient(180deg, rgba(22, 22, 26, 0.6), rgba(10, 10, 11, 0)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split.reverse .split-art { order: 1; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sky); }
.split-copy h2, .section-head h2 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; margin: 14px 0 18px; }
.section-lede { font-size: 18.5px; color: var(--body); max-width: 600px; }
.split-copy .checks { margin-top: 26px; }
.section-head.center { text-align: center; margin: 0 auto 52px; max-width: 760px; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .section-lede { margin: 0 auto; }

/* Open message with its verdict note */
.msg-head { display: flex; gap: 10px; align-items: center; padding: 10px 18px 6px; }
.msg-head b { display: block; font-size: 14px; }
.addr { display: block; color: var(--steel); font-size: 11.5px; }
.msg-subject { padding: 6px 18px 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.verdict-note { margin: 0 14px; padding: 12px 14px; border-radius: 12px; background: #16161A; border: 1px solid #26262C; }
.verdict-note.phish-edge { border-left: 3px solid #FF4D5E; }
.note-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; }
.verdict-note p { color: var(--body); font-size: 12.5px; margin-top: 4px; }
.why { margin: 10px 0 0; padding-left: 18px; color: var(--steel); font-size: 11.5px; display: grid; gap: 5px; }
.why code { font-size: 10.5px; }
.msg-lines { padding: 18px 18px 0; display: grid; gap: 9px; }
.msg-lines span { height: 9px; border-radius: 5px; background: #1D1D22; }
.msg-lines span.short { width: 62%; }

/* Floating cards (pictures and languages) */
.stack { position: relative; width: min(440px, 100%); display: grid; gap: 22px; }
.float-card { padding: 20px 22px; border-radius: 20px; background: rgba(22, 22, 26, 0.9); border: 1px solid var(--ink-3); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.float-card p { color: var(--body); font-size: 15px; margin-top: 6px; }
.qr-card { display: flex; gap: 18px; align-items: center; transform: rotate(-2deg) translateX(-12px); animation: float-a 8s ease-in-out infinite; }
.lang-card { transform: rotate(1.5deg) translateX(18px); animation: float-b 9s ease-in-out infinite; }
@keyframes float-a { 0%, 100% { transform: rotate(-2deg) translate(-12px, 0); } 50% { transform: rotate(-2deg) translate(-12px, -8px); } }
@keyframes float-b { 0%, 100% { transform: rotate(1.5deg) translate(18px, 0); } 50% { transform: rotate(1.5deg) translate(18px, 8px); } }
.qr { flex: none; width: 86px; height: 86px; border-radius: 8px; box-shadow: 0 0 0 2px rgba(255, 154, 61, 0.9); animation: scan 2.4s ease-in-out infinite; }
@keyframes scan { 0%, 100% { box-shadow: 0 0 0 2px rgba(255, 154, 61, 0.25); } 50% { box-shadow: 0 0 0 2px rgba(255, 154, 61, 0.95), 0 0 18px rgba(255, 154, 61, 0.35); } }
.tag-translated { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--sky); border: 1px solid rgba(98, 164, 253, 0.45); border-radius: 6px; padding: 2px 7px; }
.lang-card .orig { color: var(--steel); font-style: italic; text-decoration: line-through; text-decoration-color: rgba(142, 145, 153, 0.5); }
.lang-card .trans { color: var(--text); font-weight: 500; margin-bottom: 10px; }

/* Cleanup */
.sender-list li { align-items: center; }
.sender-list .preview { font-size: 11.5px; }
.check { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #4A4A52; }
.check.on { background: var(--sky); border-color: var(--sky); box-shadow: inset 0 0 0 4px var(--ink); }
.big-button { margin: 16px 18px 0; padding: 13px; border-radius: 14px; text-align: center; font-weight: 700; color: #0A0A0B; background: var(--sky); animation: press 7s ease-in-out infinite; }
@keyframes press { 0%, 40%, 50%, 100% { transform: scale(1); } 45% { transform: scale(0.96); } }
.toast-loop { bottom: 22px; animation: toast-loop 7s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
@keyframes toast-loop { 0%, 46% { transform: translateX(120%); opacity: 0; } 50%, 86% { transform: translateX(0); opacity: 1; } 90%, 100% { transform: translateX(120%); opacity: 0; } }

/* Numbers band */
.numbers { border-top: 1px solid var(--ink-3); border-bottom: 1px solid var(--ink-3); background: linear-gradient(90deg, rgba(31, 111, 229, 0.10), rgba(98, 164, 253, 0.04), rgba(31, 111, 229, 0.10)); }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 48px 0; }
.numbers-grid div { display: flex; flex-direction: column; gap: 4px; }
.numbers-grid b { font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.numbers-grid span { color: var(--steel); font-size: 15px; }

/* Feature bento */
.features { padding: 110px 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; padding: 26px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--ink-3);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 220ms ease;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(98, 164, 253, 0.16), transparent 60%);
}
.tile:hover { transform: translateY(-4px); border-color: rgba(98, 164, 253, 0.45); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); }
.tile:hover::before { opacity: 1; }
.tile.wide { grid-column: span 2; }
.tile.sky { background: linear-gradient(160deg, rgba(98, 164, 253, 0.14), rgba(98, 164, 253, 0.03) 60%), var(--ink-2); border-color: rgba(98, 164, 253, 0.35); }
.tile h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 16px 0 8px; }
.tile p { color: var(--body); font-size: 15.5px; }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(98, 164, 253, 0.12); border: 1px solid rgba(98, 164, 253, 0.3); }
.tile-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Privacy ledger */
.privacy-band { background: radial-gradient(60% 80% at 20% 50%, rgba(31, 111, 229, 0.12), transparent 70%); }
.ledger { width: min(460px, 100%); padding: 6px 0; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.ledger-head { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--ink-3); }
.ledger-head span { color: var(--steel); font-size: 14px; }
.ledger-row { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; padding: 12px 20px; border-bottom: 1px solid #1F1F24; }
.ledger-row code { font-size: 13.5px; color: var(--text); }
.ledger-row span { grid-row: 2; color: var(--steel); font-size: 13px; }
.ledger-row b { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--sky); font-weight: 600; }
.ledger-foot { display: flex; align-items: center; gap: 8px; padding: 14px 20px 10px; color: var(--steel); font-size: 14px; }

/* Plans */
.plans { padding: 110px 0; }
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.plan { padding: 30px; border-radius: 22px; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 24px; letter-spacing: -0.02em; margin-bottom: 18px; }
.plan.sky { box-shadow: 0 30px 80px rgba(31, 111, 229, 0.18); }

/* Google */
.google { padding: 96px 0; }

/* Closing */
.closing { position: relative; overflow: hidden; padding: 120px 0 130px; border-top: 1px solid var(--ink-3); text-align: center; }
.closing-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.closing-icon { width: 120px; height: auto; border-radius: 22.37%; box-shadow: 0 20px 60px rgba(98, 164, 253, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.closing h2 { font-size: clamp(56px, 9vw, 110px); line-height: 1; letter-spacing: -0.05em; font-weight: 700; }

/* Scroll reveal (site.js adds .js to <html>; without it everything simply shows) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 280ms ease-out, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 40px; }
  .hero-phone { margin-top: 12px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-copy, .split.reverse .split-art { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .numbers-grid { grid-template-columns: 1fr 1fr; }
  .showcase, .features, .plans { padding: 80px 0; }
}
@media (max-width: 640px) {
  .bento, .plan-grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; }
  .nav nav a:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .phone { transform: scale(0.92); }
  .hero-phone .phone { animation: none; transform: rotate(-2deg) scale(0.92); }
  .qr-card, .lang-card { transform: none; animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .toast { transform: none; opacity: 1; }
}
