/* Clearchecker web funnel — design tokens mirror lib/theme.dart in the app
   ("Clinical Trust": Inter, white, navy ink, medical blue; only pressable
   things look raised). Keep the two in step. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/Inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/Inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/Inter-Bold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(/fonts/Inter-ExtraBold.woff2) format("woff2"); }

:root {
  --paper: #eef3f9; --card: #ffffff; --surface: #f4f7fb;
  --ink: #0f1b2d; --muted: #44546b; --hint: #64708a; --line: #e3e8ef;
  --primary: #0b57d0; --primary-hi: #1d6ae5; --primary-edge: #083f97; --primary-soft: #e8f0fe;
  --scam: #c0362c; --scam-hi: #d34a40; --scam-edge: #8f2820; --scam-soft: #fbe9e7;
  --safe: #0e7a4e; --safe-hi: #13935f; --safe-edge: #09553a; --safe-soft: #e6f3ed;
  --caution: #b45309; --accent: #d97706; --accent-soft: #fdf0dc;
  --radius-btn: 39px; --edge: 5px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--paper);
  font-size: 19px; line-height: 1.4; -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: var(--primary); }
/* One column, phone-first, laid out like the Chorefriend funnel: brand,
   back + thin progress bar, the question in a card, compact answer rows
   right under it; Continue and Yes/No pinned to the bottom. */
.app { min-height: 100dvh; max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; }
.top { padding: 14px 16px 0; }
.logo { display: flex; align-items: center; justify-content: center; gap: 7px; font-weight: 800; font-size: 17px; letter-spacing: -.2px; }
.logo img { width: 22px; height: 22px; border-radius: 6px; }
.progrow { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.back { color: var(--ink); width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.back[hidden] { visibility: hidden; display: grid; }
.track { flex: 1; display: flex; gap: 4px; }
.track i { flex: 1; height: 6px; border-radius: 99px; background: #d6deea; overflow: hidden; }
.track i b { display: block; height: 100%; background: var(--primary); transition: width .3s ease; }
.content { flex: 1; padding: 16px 16px 150px; }
.footer { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 480px; background: linear-gradient(to top, var(--paper) 70%, rgba(238,243,249,0)); padding: 32px 16px calc(14px + env(safe-area-inset-bottom)); z-index: 5; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.lead { font-size: 19px; margin-top: 12px; font-weight: 500; }
.big-lead { font-size: 21px; font-weight: 700; margin-top: 10px; }
.red { color: var(--scam); }
/* The question card. */
.qcard { background: var(--card); border-radius: 18px; padding: 16px 18px; text-align: center; box-shadow: 0 1px 0 #d6deea; }
.qcard h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; }
.qcard p { font-size: 16px; color: var(--muted); margin-top: 6px; font-weight: 500; }
.qcard.info { padding: 20px 18px; }
.qcard.info .ill { margin: 14px auto 0; }
.eyebrow { font-size: 14px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--primary); }
.display { font-weight: 800; letter-spacing: -.022em; line-height: 1.08; }
.h1 { font-size: 40px; } .h2 { font-size: 30px; } .h3 { font-size: 23px; }
.muted { color: var(--muted); } .small { font-size: 16px; }

/* Raised pill: gradient face on a darker bottom edge; press sinks it. */
.btn {
  position: relative; display: block; width: 100%; min-height: 64px;
  border-radius: var(--radius-btn); font-weight: 800; font-size: 21px; color: #fff;
  background: linear-gradient(var(--primary-hi), var(--primary));
  box-shadow: 0 var(--edge) 0 var(--primary-edge), 0 10px 18px rgba(11,87,208,.22);
  transition: transform .08s ease, box-shadow .08s ease; margin-bottom: var(--edge);
  padding: 14px 22px; text-align: center; text-decoration: none;
}
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--primary-edge); }
.btn.scam { background: linear-gradient(var(--scam-hi), var(--scam)); box-shadow: 0 var(--edge) 0 var(--scam-edge), 0 10px 18px rgba(192,54,44,.2); }
.btn.safe { background: linear-gradient(var(--safe-hi), var(--safe)); box-shadow: 0 var(--edge) 0 var(--safe-edge), 0 10px 18px rgba(14,122,78,.2); }
.btn.outline { background: var(--card); min-height: 58px; color: var(--primary); border: 2px solid var(--primary); box-shadow: 0 var(--edge) 0 rgba(11,87,208,.35); }
.btn.quiet { background: var(--card); color: var(--muted); border: 2px solid var(--muted); box-shadow: 0 var(--edge) 0 rgba(68,84,107,.35); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.linkbtn { display: block; width: 100%; min-height: 52px; font-weight: 700; color: var(--muted); font-size: 18px; }
/* Familiar chrome: the scenarios look like Messages and Mail on purpose. */
.shell { border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; background: #fff; }
.shell-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f7f8fa; border-bottom: 1.5px solid var(--line); font-size: 16px; }
.shell-head .nav { color: #0a7cff; } .shell-head .who { font-weight: 700; }
.bubble { margin: 16px; padding: 12px 15px; background: #e9e9eb; border-radius: 20px; max-width: 88%; font-size: 17px; line-height: 1.35; }
.mail { padding: 14px 16px 16px; }
.mail .subj { font-weight: 800; font-size: 19px; }
.mail .from { font-weight: 700; font-size: 14px; margin-top: 4px; }
.mail .meta { color: var(--hint); font-size: 13px; border-bottom: 1.5px solid var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.mail p + p { margin-top: 8px; } .mail p { font-size: 17px; }

.verdict-badge { width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 10px; display: grid; place-items: center; color: #fff; font-size: 44px; font-weight: 800; }
.verdict-badge.scam { background: var(--scam); } .verdict-badge.safe { background: var(--safe); }
.verdict-word { text-align: center; font-weight: 800; font-size: 44px; letter-spacing: -1px; margin-top: 2px; }
.verdict-word.scam { color: var(--scam); } .verdict-word.safe { color: var(--safe); }
.signs { list-style: none; margin-top: 8px; text-align: left; }
.signs li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1.5px solid var(--line); font-weight: 600; font-size: 18px; }
.signs li:last-child { border-bottom: 0; }
.signs .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; flex: none; }
.signs.scam .dot { background: var(--scam-soft); color: var(--scam); } .signs.safe .dot { background: var(--safe-soft); color: var(--safe); }
.rule { margin-top: 16px; padding: 14px 16px; border-radius: 16px; font-weight: 700; text-align: center; }
.rule.scam { background: var(--scam-soft); color: #8f2820; } .rule.safe { background: var(--safe-soft); color: #09553a; }
/* Answer rows: full width, left-aligned, compact; an emoji or a round
   portrait on the left, a check circle on the right for multi-choice. */
.rows { margin-top: 16px; }
.row { width: 100%; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 58px; text-align: left; margin-bottom: 10px; }
.row:active { transform: scale(.98); }
.row .label { flex: 1; font-size: 18px; font-weight: 600; line-height: 1.25; }
.row .emoji { font-size: 22px; width: 28px; text-align: center; flex: none; }
.row .face { width: 44px; height: 44px; flex: none; }
.row .face .ill { width: 44px; height: 44px; margin: 0; max-height: none; }
.row .face .ill img { object-fit: cover; }
.row .tick { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #b8c3d4; flex: none; display: grid; place-items: center; color: #fff; font-size: 15px; }
.row.on { border-color: var(--primary); background: var(--primary-soft); }
.row.on .tick { background: var(--primary); border-color: var(--primary); }
/* Statement in its own card, under "Is this true for you?". */
.statement { background: var(--card); border-radius: 18px; padding: 22px 20px; margin-top: 12px; font-size: 24px; font-weight: 600; line-height: 1.3; }
/* Yes/No and Scam/Real: two pills pinned to the bottom. */
.pills { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pill { min-height: 58px; border-radius: 99px; font-weight: 800; font-size: 20px; color: #fff; }
.pill.no { background: var(--scam); box-shadow: 0 4px 0 var(--scam-edge); }
.pill.yes { background: var(--safe); box-shadow: 0 4px 0 var(--safe-edge); }
.pill:active { transform: translateY(2px); box-shadow: none; }
.linkbtn { display: block; width: 100%; min-height: 48px; margin-top: 6px; font-weight: 700; color: var(--muted); font-size: 18px; }
.sender-ico { font-size: 56px; margin-bottom: 6px; }
.shell { margin-top: 12px; }
/* The demo answer (mockup screen) and the checkout spinner. */
.answer { border: 1.5px solid var(--line); border-radius: 6px 20px 20px 20px; background: var(--surface); padding: 14px 16px; margin-top: 12px; }
.answer .hl { font-weight: 800; font-size: 21px; color: var(--scam); }
.answer p { color: var(--muted); font-weight: 600; font-size: 17px; margin-top: 6px; }
.answer .todo { margin-top: 10px; background: var(--scam-soft); color: #8f2820; font-weight: 700; padding: 10px 13px; border-radius: 13px; display: inline-block; font-size: 16px; }
.you { margin-left: auto; max-width: 88%; background: var(--primary-soft); border-radius: 20px 20px 6px 20px; padding: 12px 15px; font-size: 17px; }
/* Illustration slot: real image when present, labelled dashed box until
   the artwork exists. */
.ill { position: relative; margin: 18px auto; width: 100%; aspect-ratio: 4 / 3; max-height: 34dvh; border-radius: 22px; overflow: hidden; }
.ill img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ill.hero { aspect-ratio: 16 / 11; }
.ill.round { border-radius: 50%; aspect-ratio: 1; }
.ill > span { display: none; }
/* Placeholders show only in review mode (?review); live, a missing picture
   just collapses. */
.ill.missing { display: none; }
.review .ill.missing { background: repeating-linear-gradient(45deg, #e3eaf4, #e3eaf4 10px, #eaf0f8 10px, #eaf0f8 20px); border: 2px dashed #b8c3d4; display: grid; place-items: center; }
.ill.missing > span { display: block; font-size: 12px; font-weight: 700; color: var(--hint); padding: 4px; text-align: center; word-break: break-all; }
/* FBI fact: sits where Control+ puts its press quote or user count. */
.fact { background: var(--card); border-radius: 20px; padding: 16px 18px; margin-top: 16px; text-align: center; box-shadow: 0 1px 0 #d6deea; }
.fact b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.8px; color: var(--scam); }
.fact span { display: block; font-weight: 600; font-size: 17px; margin-top: 2px; }
.fact i { display: block; font-style: normal; color: var(--hint); font-size: 13px; font-weight: 700; margin-top: 6px; letter-spacing: .4px; }
.badge { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0; font-size: 15px; font-weight: 700; color: var(--safe-edge); background: var(--safe-soft); border-radius: 99px; padding: 9px 14px; width: fit-content; }
.landing .content { display: flex; flex-direction: column; }
.loadbar { height: 8px; background: #d6deea; border-radius: 99px; overflow: hidden; margin: 22px 0 8px; }
.loadbar i { display: block; height: 100%; width: 0; background: var(--primary); animation: fillbar 2.4s ease-out forwards; }
@keyframes fillbar { to { width: 100%; } }
/* Mockup of a real check. */
.phone { background: var(--card); border-radius: 26px; padding: 16px; margin-top: 18px; box-shadow: 0 2px 0 #d6deea, 0 12px 30px rgba(15,27,45,.08); }
.checklist { margin-top: 10px; text-align: left; }
.checklist div { display: flex; gap: 14px; align-items: center; padding: 14px 0; font-weight: 700; font-size: 18px; border-bottom: 1.5px solid var(--line); }
.checklist div:last-child { border-bottom: 0; }
.checklist span { width: 32px; height: 32px; border-radius: 50%; background: var(--safe-soft); color: var(--safe); display: grid; place-items: center; flex: none; }
/* Loader with pop-up questions. */
.bars { margin-top: 22px; }
.barrow + .barrow { margin-top: 18px; }
.barrow.dim { opacity: .45; }
.bl { display: flex; justify-content: space-between; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.bt { height: 10px; background: #d6deea; border-radius: 99px; overflow: hidden; }
.bt i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.modal { position: fixed; inset: 0; background: rgba(15,27,45,.45); display: grid; place-items: end center; z-index: 10; padding: 16px; }
.mbox { background: var(--card); border-radius: 26px; padding: 22px 18px 18px; width: 100%; max-width: 448px; }
.mbox h3 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; text-align: center; margin-bottom: 18px; }

/* Result. */
.riskcard { background: var(--card); border-radius: 24px; padding: 18px; margin-top: 18px; border: 2px solid var(--scam-soft); box-shadow: 0 2px 0 #f1c9c4; }
.riskcard .tag { display: inline-block; background: var(--scam); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 1px; padding: 6px 12px; border-radius: 99px; text-transform: uppercase; }
.riskcard .num { font-size: 64px; font-weight: 800; letter-spacing: -2px; color: var(--scam); margin-top: 8px; line-height: 1; }
.riskcard .num small { font-size: 24px; color: var(--hint); letter-spacing: 0; }
.riskcard .bandline { font-weight: 800; font-size: 20px; color: var(--scam-edge); margin-top: 4px; }
.riskcard .lbl { font-size: 13px; font-weight: 800; letter-spacing: 1.2px; color: var(--hint); text-transform: uppercase; margin: 16px 0 4px; }
.exp { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1.5px solid var(--line); }
.exp b { font-size: 18px; padding-right: 10px; } .exp span { flex: none; white-space: nowrap; color: var(--scam); font-weight: 800; font-size: 15px; background: var(--scam-soft); padding: 4px 10px; border-radius: 99px; }
.riskcard .more { font-weight: 700; color: var(--muted); margin-top: 12px; font-size: 16px; }
/* Price. */
.pricebox { background: var(--card); border-radius: 26px; padding: 22px; margin-top: 22px; text-align: center; border: 2.5px solid var(--primary); }
.pricebox .only { font-weight: 700; color: var(--muted); }
.pricebox .amt { font-size: 62px; font-weight: 800; letter-spacing: -2px; color: var(--primary-edge); line-height: 1.05; }
.pricebox .amt small { font-size: 24px; letter-spacing: 0; color: var(--muted); }
.pricebox .cancel { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--safe); font-weight: 700; margin-top: 8px; }
.feedback { text-align: center; font-weight: 800; font-size: 16px; }
.feedback.right { color: var(--safe); } .feedback.wrong { color: var(--caution); }
/* Scene art is painted on a pale field close to the page colour; fade its
   edges so no rectangle shows. */
.qcard > .ill:not(.round) img, .content > .ill:not(.round) img { -webkit-mask-image: radial-gradient(ellipse at center, #000 62%, transparent 77%); mask-image: radial-gradient(ellipse at center, #000 62%, transparent 77%); }
.marks { display: flex; justify-content: center; gap: 12px; margin: 18px 0 12px; }
.marks span { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; }
.marks .ok { background: var(--safe-soft); color: var(--safe); } .marks .bad { background: var(--scam-soft); color: var(--scam); }
.why { margin-top: 16px; font-size: 17px; color: var(--muted); }
.why b { color: var(--ink); }
.goal { margin: 14px auto 0; text-align: center; background: var(--primary-soft); color: var(--primary-edge); border-radius: 16px; padding: 10px 14px; font-size: 17px; }
