/* Scam Checkup: large text, phone first, light and dark. Teal, cream and soft yellow. */
/* Self-hosted fonts (SIL OFL 1.1): Atkinson Hyperlegible, Nunito. Latin subset. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/nunito-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/nunito-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #fdf8ec; --fg: #1f3a3a; --muted: #46605d; --card: #fffdf7; --line: rgba(31,58,58,0.2);
  --accent: #1f6b66; --accent-hover: #17534f; --accent-fg: #ffffff; --sun: #f7d774; --sun-soft: #fbeebb; --teal-soft: #d6ece8;
  --risky: #a3261e; --risky-bg: #fbe8e4; --careful: #765000; --careful-bg: #fcefc4; --none: #1b6340; --none-bg: #e2f2e8;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #142423; --fg: #f6efdc; --muted: #c4d2cd; --card: #1c3231; --line: rgba(246,239,220,0.22);
    --accent: #7fd0c6; --accent-hover: #a3e0d8; --accent-fg: #0f1f1e; --sun: #f7d774; --sun-soft: #3b3518; --teal-soft: #1f3e3c;
    --risky: #ff9e93; --risky-bg: #3c201d; --careful: #f7d774; --careful-bg: #3a3215; --none: #95dcae; --none-bg: #17331f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.25rem; line-height: 1.55; }
header.top, main, footer.foot { max-width: 40rem; margin: 0 auto; padding: 0 1rem; }
header.top { padding-top: 1.4rem; }
h1 { font-size: 2.1rem; margin: 0 0 0.4rem; line-height: 1.2; }
.lede { margin: 0 0 1.2rem; }
a { color: var(--accent); }
.biglabel { display: block; font-weight: 700; font-size: 1.3rem; margin-bottom: 0.2rem; }
.smalllabel { display: block; font-weight: 700; margin-top: 1rem; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin: 0 0 0.5rem; color: var(--muted); font-size: 1.05rem; }
textarea, input[type=text] { width: 100%; font: inherit; color: var(--fg); background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 0.7rem 0.8rem; }
textarea { min-height: 11rem; resize: vertical; }
textarea:focus, input[type=text]:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.count { margin: 0.2rem 0 0; min-height: 1.4em; font-size: 1rem; color: var(--muted); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.buttons { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.2rem 0; }
button { font: inherit; cursor: pointer; border-radius: 10px; min-height: 3.2rem; padding: 0.6rem 1.4rem; }
button.primary { background: var(--accent); color: var(--accent-fg); border: 0; font-weight: 700; flex: 1 1 12rem; font-size: 1.35rem; }
button.secondary { background: transparent; color: var(--fg); border: 2px solid var(--line); flex: 0 1 auto; }
button:focus-visible { outline: 3px solid var(--fg); outline-offset: 2px; }
button:disabled { opacity: 0.7; cursor: wait; }
.error { color: var(--risky); font-weight: 700; }
.result { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.1rem 0.4rem; margin: 1.5rem 0; }
.result:focus { outline: none; }
.verdict { display: flex; align-items: center; gap: 0.8rem; border-radius: 10px; padding: 0.7rem 0.9rem; }
.verdict h2 { margin: 0; font-size: 1.7rem; line-height: 1.2; }
.verdict.risky { background: var(--risky-bg); color: var(--risky); }
.verdict.careful { background: var(--careful-bg); color: var(--careful); }
.verdict.none { background: var(--none-bg); color: var(--none); }
.shape { flex: 0 0 2.2rem; width: 2.2rem; height: 2.2rem; background: currentColor; }
.verdict.risky .shape { clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }  /* stop-sign octagon */
.verdict.careful .shape { clip-path: polygon(50% 0, 100% 100%, 0 100%); }                                         /* warning triangle */
.verdict.none .shape { border-radius: 50%; }                                                                       /* circle */
.sure { margin: 1rem 0 0.2rem; font-size: 1.25rem; }
.sure-q { font-weight: 700; }
.dots { letter-spacing: 0.12em; font-size: 1.4rem; margin: 0 0.3rem; }
.sure-why { margin: 0 0 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.result h3, .nextsteps h3 { font-size: 1.3rem; margin: 1.2rem 0 0.4rem; }
.noticed, .links, .notes, .nextsteps ul { padding-left: 1.3rem; margin: 0.3rem 0; }
.noticed li, .nextsteps li { margin-bottom: 0.6rem; }
.links > li { margin-bottom: 0.6rem; word-break: break-all; }
.links > li ul { word-break: normal; padding-left: 1.1rem; }
.links li.listed > strong { color: var(--risky); }
.notes { color: var(--muted); }
.none-note { font-weight: 700; }
.nextsteps { border-top: 1px solid var(--line); margin-top: 1rem; }
.google-attr { font-size: 1rem; color: var(--muted); }
footer.foot { padding-bottom: 2rem; color: var(--muted); font-size: 1.1rem; }
.linklike { background: none; border: 0; padding: 0; min-height: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; font-weight: 700; }
dialog { max-width: 36rem; width: calc(100% - 1.5rem); max-height: calc(100% - 1.5rem); border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--fg); padding: 1.2rem 1.3rem; font-size: 1.15rem; }
dialog::backdrop { background: rgba(0,0,0,0.5); }
dialog h2 { margin: 0 0 0.6rem; font-size: 1.5rem; }
dialog h3 { margin: 1rem 0 0.3rem; font-size: 1.2rem; }
dialog ul { padding-left: 1.2rem; }
dialog li { margin-bottom: 0.5rem; }
.credits { font-size: 1rem; color: var(--muted); }
.actions { text-align: right; }
.actions button { min-width: 8rem; }
.px { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* Branding */
h1, h2, h3, .biglabel, button.primary { font-family: "Nunito", "Atkinson Hyperlegible", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
h1, h2 { font-weight: 800; letter-spacing: -0.005em; }
h3 { font-weight: 700; }
body { background-image: linear-gradient(180deg, var(--teal-soft) 0, var(--bg) 18rem); background-repeat: no-repeat; }
.brand { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 0.6rem; }
.brand img { width: 84px; height: 84px; flex: 0 0 auto; border-radius: 50%; box-shadow: 0 3px 12px rgba(31,58,58,0.18); }
.brand h1 { margin: 0; color: var(--fg); }
.tagline { display: block; font-family: "Atkinson Hyperlegible", sans-serif; font-weight: 400; font-size: 1.05rem; color: var(--muted); letter-spacing: 0; margin-top: 0.15rem; }
@media (min-width: 40rem) { .brand img { width: 112px; height: 112px; } h1 { font-size: 2.4rem; } }
.lede { background: var(--sun-soft); border-left: 5px solid var(--sun); border-radius: 0 10px 10px 0; padding: 0.7rem 0.9rem; }
form#checkform { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1rem 0.2rem; box-shadow: 0 2px 10px rgba(31,58,58,0.06); }
textarea, input[type=text] { background: var(--bg); }
textarea:focus, input[type=text]:focus { outline-color: var(--accent); box-shadow: 0 0 0 6px var(--sun-soft); }
button.primary { border-radius: 999px; box-shadow: 0 2px 0 rgba(0,0,0,0.12); }
button.primary:hover { background: var(--accent-hover); }
button.secondary { border-radius: 999px; }
button.secondary:hover { border-color: var(--accent); }
.result { border-radius: 16px; box-shadow: 0 2px 10px rgba(31,58,58,0.06); }
.verdict { border: 2px solid currentColor; }
.nextsteps h3::before { content: ""; display: inline-block; width: 0.55rem; height: 1.1rem; background: var(--sun); border-radius: 3px; margin-right: 0.5rem; vertical-align: -0.1rem; }
footer.foot { border-top: 1px solid var(--line); margin-top: 1.5rem; padding-top: 0.6rem; }
dialog { border-top: 6px solid var(--accent); }

/* Tighter How this works box and service line (2026-11-04) */
dialog { font-size: 1rem; line-height: 1.45; padding: 1rem 1.15rem; }
dialog p, dialog ul { color: var(--muted); margin: 0 0 0.6rem; }
dialog strong { color: var(--fg); }
dialog h2 { font-size: 1.35rem; margin: 0 0 0.45rem; }
dialog h3 { font-size: 1.1rem; margin: 0.75rem 0 0.25rem; }
dialog ul { padding-left: 1.1rem; }
dialog li { margin-bottom: 0.2rem; }
dialog .credits { font-size: 0.95rem; }
dialog .actions { margin-top: 0.6rem; }
.tagline.service { font-size: 1.05rem; margin-top: 0.05rem; }
.tagline.service a { color: var(--accent); }
