/* The site's other pages (the scam check, privacy, health letters, not found), in the home page's look:
   the app's Google Sans Flex, white, one column, pill buttons. The home page carries its own styles. */

@font-face { font-family: 'Sans'; font-weight: 400; src: url('/fonts/GoogleSansFlex_400Regular.ed66f316b0.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sans'; font-weight: 500; src: url('/fonts/GoogleSansFlex_500Medium.5390d31139.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sans'; font-weight: 700; src: url('/fonts/GoogleSansFlex_700Bold.cdf0bfd1d1.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Sans'; font-weight: 800; src: url('/fonts/GoogleSansFlex_800ExtraBold.04a3f7d526.woff2') format('woff2'); font-display: swap; }

:root {
  --bg: #ffffff;
  --tint-blue: #eef3fc;
  --tint-blush: #fff1ee;
  --ink: #1c2433;
  --muted: #444d5b;
  --line: #e7e1da;
  --blue: #345da9;
  --blue-deep: #1f4e9c;
  --blue-night: #163a78;
  --blue-soft: #dbe5fb;
  --blue-mark: #84aafc;
  --blush: #ffe0d8;
  --blush-ink: #7a3b2e;
  --red: #c62f2b;
  --red-bg: #fde4e1;
  --red-ink: #7d1b18;
  --amber: #94600f;
  --green: #25753a;
  --radius: 28px;
  --col: min(100% - 40px, max(66vw, 600px), 660px);
  --spring: cubic-bezier(0.34, 1.45, 0.64, 1);
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font: 400 18px/1.6 'Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; }
a { color: var(--blue-deep); }
svg.i { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { width: var(--col); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Top bar */
.bar { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); background: color-mix(in srgb, var(--bg) 80%, transparent); }
.bar .wrap { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.home { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.mark { width: 38px; height: 38px; position: relative; display: grid; place-items: center; color: #002a63; }
.mark svg.s { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--blue-mark); }
.mark svg.i { position: relative; width: 21px; height: 21px; }
.brand { font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.bar .cta-sm { margin-inline-start: auto; }

/* Buttons stay pills in every state; hover lifts, press sinks. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px; background: var(--blue-deep); color: #fff; font: 700 18px/1 'Sans', sans-serif; padding: 19px 28px; min-height: 56px; white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -12px rgb(31 78 156 / 0.75); transition: transform 0.25s var(--spring), box-shadow 0.25s var(--ease), background 0.2s; }
.btn:active { transform: scale(0.96); }
.btn:focus-visible, .sample:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; }
.cta-sm { padding: 11px 18px; min-height: 44px; font-size: 15px; box-shadow: none; background: var(--blue-soft); color: var(--blue-night); }
/* The quieter pill beside a main button: the bar's colours, the main button's height. */
.btn-tonal { padding: 19px 22px 19px 18px; font-size: 17px; box-shadow: none; background: var(--blue-soft); color: var(--blue-night); }
.btn:disabled, .sample:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* A page: a pill, a big heading, a short introduction, then the body. */
.page { padding-block: 40px 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--blush); color: var(--blush-ink); border-radius: 999px; padding: 7px 15px; font-weight: 500; font-size: 15px; margin: 0; }
.page h1 { font-weight: 800; font-size: clamp(38px, 7vw, 56px); margin: 16px 0 14px; }
.intro { font-size: 20px; color: var(--muted); margin: 0 0 30px; }
.prose h2 { font-size: 26px; font-weight: 800; margin: 38px 0 10px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.3em; }
.prose li { margin: 8px 0; }
.prose strong { color: var(--ink); }
.small, .prose .small { color: var(--muted); font-size: 15px; margin-top: 34px; }
.center-note { text-align: center; }
.soft-card { background: #fff; border-radius: var(--radius); padding: 28px 26px; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -32px rgb(20 30 60 / 0.45); }
.page .soft-card + .soft-card { margin-top: 20px; }
.page .soft-card h2 { margin-top: 0; }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; margin: 0; }
.check-list li::before { content: ''; position: absolute; left: 0; top: 0.35em; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.icon-bubble { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--tint-blue); color: var(--blue-deep); }
.icon-bubble svg { width: 34px; height: 34px; }
.icon-bubble.warm { background: var(--blush); color: var(--blush-ink); }

/* The scam check */
.check-card { padding: 30px 26px; }
.check-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.check-steps li { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.check-steps .n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blush); color: var(--blush-ink); font: 800 16px/32px 'Sans', sans-serif; text-align: center; }
.pick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.photo-btn { position: relative; }
.photo-btn input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.photo-btn:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.check-card.is-busy .photo-btn { opacity: 0.55; transform: none; pointer-events: none; }

/* Reading: a page with a line sweeping down it, the words, and a bar that fills over about half a minute. */
.reading { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; margin-top: 18px; padding: 18px; background: var(--tint-blue); border-radius: 20px; scroll-margin: 90px; }
.reading[hidden] { display: none; }
.reading-page { position: relative; width: 56px; height: 70px; background: #fff; border-radius: 6px; box-shadow: 0 6px 14px -8px rgb(20 30 60 / 0.5); padding: 12px 9px; display: grid; align-content: start; gap: 7px; overflow: hidden; }
.reading-page i { display: block; height: 5px; border-radius: 3px; background: #dcd6cc; }
.reading-page i:first-child { width: 60%; background: var(--blue-mark); }
.scan-line { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--blue); box-shadow: 0 0 10px 2px rgb(52 93 169 / 0.45); animation: sweep 1.6s ease-in-out infinite alternate; }
@keyframes sweep { to { top: calc(100% - 3px); } }
.reading-title { margin: 0; font-weight: 800; font-size: 20px; }
.reading-sub { margin: 2px 0 0; color: var(--muted); font-size: 16px; }
.reading-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: #d3def5; overflow: hidden; }
.reading-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--blue); animation: fill 30s cubic-bezier(0.1, 0.6, 0.3, 1) forwards; }
@keyframes fill { to { width: 94%; } }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 92px)); gap: 12px; margin-top: 18px; }
.thumb { position: relative; aspect-ratio: 1; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--line); border-radius: 14px; background: #fff; }
.thumb-remove { position: absolute; top: -10px; right: -10px; width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; background: var(--ink); color: #fff; font: 700 17px/1 'Sans', sans-serif; cursor: pointer; padding: 0; }
.thumb-remove:disabled { opacity: 0.4; cursor: not-allowed; }
#go { margin-top: 22px; min-width: 200px; }
#go:disabled { opacity: 1; background: #a9b6cc; box-shadow: none; }
/* Busy: the button stays blue, spins and says Checking…, so the tap visibly took. */
#go.is-busy { cursor: progress; transform: none; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 3px solid rgb(255 255 255 / 0.35); border-top-color: #fff; animation: turn 0.8s linear infinite; }
#go.is-busy .spinner { display: block; }
@keyframes turn { to { rotate: 1turn; } }
.status-line { min-height: 1.5em; margin: 14px 0 0; color: var(--blue); font-weight: 700; }
.check-note { margin: 14px 0 0; color: var(--muted); font-size: 16px; }
#answer:focus { outline: none; }
.samples-card { margin-top: 20px; }
.samples-title { margin: 0 0 12px; font-weight: 700; }
.sample-row { display: grid; gap: 12px; }
.sample { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 8px 16px 8px 8px; text-align: left; cursor: pointer; background: var(--tint-blue); border: 2px solid transparent; border-radius: 18px; font: 700 16px/1.35 'Sans', sans-serif; color: var(--ink); transition: transform 0.25s var(--spring), border-color 0.2s; }
.sample img { width: 48px; height: 60px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); flex: none; }
.samples-note { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.phone-hand { display: none; }
@media (min-width: 760px) {
  .sample-row { grid-template-columns: repeat(3, 1fr); }
  .phone-hand { display: flex; gap: 18px; align-items: center; margin-top: 18px; padding: 16px 18px; background: var(--tint-blush); border-radius: 20px; }
  .phone-hand img { flex: none; border-radius: 10px; background: #fff; padding: 4px; }
  .phone-hand p { margin: 0; color: var(--muted); }
}
@media (max-width: 420px) {
  .check-card { padding: 24px 18px; }
  .pick-row .btn { padding-inline: 20px 22px; }
  .reading { grid-template-columns: 44px 1fr; gap: 14px; padding: 16px; }
  .reading-page { width: 44px; height: 56px; padding: 10px 7px; gap: 6px; }
  .reading-title { font-size: 18px; }
}

/* The answer: the app's own card, a coloured band with the verdict, then what looks wrong and what to do. */
.answer-card { margin-top: 28px; border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 24px 40px -30px rgb(20 30 60 / 0.5); padding: 0 26px 26px; }
.answer-card.v-scam { --band: var(--red); --wash: var(--red-bg); }
.answer-card.v-unsure { --band: var(--amber); --wash: #fcf0cc; }
.answer-card.v-normal { --band: var(--green); --wash: #ddf2e1; }
.answer-head { display: flex; align-items: center; gap: 12px; margin: 0 -26px; padding: 14px 26px; background: var(--band); color: #fff; }
.answer-head .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / 0.2); display: grid; place-items: center; }
.answer-head .ic svg { width: 26px; height: 26px; }
.verdict-word { font: 800 26px/1.2 'Sans', sans-serif; margin: 0; }
.answer-sender { font-weight: 700; margin: 20px 0 0; }
.answer-summary { margin: 6px 0 0; color: var(--muted); font-size: 19px; }
.answer-label { margin: 22px 0 8px; font: 800 18px/1.3 'Sans', sans-serif; }
.answer-reasons, .answer-advice { margin: 0; padding-left: 1.3em; }
.answer-reasons li { margin: 6px 0; }
.answer-advice li { margin: 6px 0; font-weight: 700; }
.never-safe-line { margin: 22px 0 0; padding: 14px 16px; background: var(--wash, var(--tint-blue)); border-radius: 16px; font-weight: 500; }
.pitch-box { margin-top: 18px; padding: 20px; background: var(--tint-blue); border-radius: 20px; }
.pitch-box p { margin: 0 0 14px; }
.checks-left { margin: 16px 0 0; color: var(--muted); font-size: 16px; }
.error-line { margin-top: 24px; padding: 16px 18px; background: var(--red-bg); border-radius: 18px; color: var(--red-ink); font-weight: 700; }

footer { padding-block: 30px 40px; text-align: center; font-size: 17px; color: var(--ink); display: grid; gap: 8px; }
footer p { margin: 0; }
footer a { color: var(--ink); font-weight: 700; }

/* Hover only where there is a mouse: on a phone a tapped button would keep its hover look. */
@media (hover: hover) {
  .btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.03); background: var(--blue-night); }
  .cta-sm:hover:not(:disabled) { background: #c8d7f8; }
  .btn-tonal:hover:not(:disabled) { background: #c8d7f8; }
  .thumb-remove:hover:not(:disabled) { background: var(--red); }
  .sample:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-2px); }
  .btn:active:not(:disabled) { transform: scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  /* A progress spinner is the one motion kept: without it the busy button looks frozen. */
  #go .spinner { animation-duration: 1.6s !important; }
}
