/* Stop Model Scams · design system (direction D "Companion", tokens agreed 2026-08-18).
   Custom properties first; every component reads them. No em dashes anywhere in copy. */
:root {
  --ground: #F2EFF5;
  --surface: #FFFFFF;
  --ink: #493758;
  --accent: #7111C0;
  --accent-ink: #FFFFFF;
  --accent-soft: #DDCBEC;
  --danger: #C7412B;
  --danger-soft: #EBD3D5;
  --danger-ink: #8B2D1E;
  --muted: #90849A;
  --line: #DAD5DF;
  --hi: #FFDA24;
  --hi-ink: #6B4E00;   /* dark amber: a darker version of the highlight yellow, for text and icons on it */
  --hi-soft: #FDF3C4;
  --fd: "Fraunces", Georgia, "Times New Roman", serif;
  --fb: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --fm: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 13px;
  --sp: 1.3;
  --wrap: 1180px;
  --nav-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--fb); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--fd); margin: 0; text-wrap: balance; font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); z-index: 100; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 calc(40px * var(--sp)); }
.ic { flex: none; vertical-align: -0.15em; }
[dir="rtl"] .ic.flip, [dir="rtl"] .btn .ic { transform: scaleX(-1); }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.kicker { font-family: var(--fm); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kicker--light { color: inherit; opacity: .8; }

/* Buttons: global radius, uppercase small text, 1px darker bottom edge, icon on content buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: var(--r); border: 1px solid transparent; border-bottom-color: rgba(0,0,0,.28); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; background: var(--surface); line-height: 1.2; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--highlight { background: var(--hi); color: var(--hi-ink); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--nav { border-radius: 999px; padding: 9px 16px; }
.btn:hover { filter: brightness(1.05); }
.btn .ic { width: 16px; height: 16px; }

/* Floating menu bar */
.nav-sentinel { height: 1px; }
.nav { position: sticky; top: 12px; z-index: 30; padding-top: 12px; }
.nav__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--nav-h); background: var(--surface); border: 0; border-radius: 999px; padding: 0 13px 0 12px; box-shadow: none; transition: box-shadow .25s; }
.nav.is-scrolled .nav__bar { box-shadow: 0 12px 34px -14px rgba(113, 17, 192, .38); }
.nav__logo { text-decoration: none; display: flex; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--fb); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent); }
.logo--big { justify-content: center; }
.logo__mark { display: block; flex: none; }
.nav__links ul { display: flex; gap: calc(20px * var(--sp)); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav__links a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav__links a[aria-current="page"], .nav__links a:hover { border-bottom-color: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.nav__burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; align-items: center; justify-content: center; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: var(--fm); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 6px; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 16px 40px -20px rgba(40,20,60,.45); padding: 8px; display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 2px; z-index: 40; }
.lang-menu li a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.lang-menu li a:hover, .lang-menu li a[aria-current="true"] { background: var(--accent-soft); }

/* Sections */
.section { padding: calc(72px * var(--sp)) 0; }
.section--surface { background: var(--surface); }
.section-head { max-width: 720px; margin-bottom: calc(36px * var(--sp)); }
.section-title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 12px; }
.section-title em, .hero__title em, .page-title em { font-style: italic; color: var(--accent); font-weight: 500; }
.section-intro, .page-intro { color: var(--muted); font-size: 17px; max-width: 58ch; }
.section__cta { margin-top: calc(28px * var(--sp)); }
.closing { margin-top: calc(32px * var(--sp)); padding: 22px 26px; border-inline-start: 4px solid var(--accent); background: var(--ground); border-radius: 0 var(--r) var(--r) 0; font-size: 17px; max-width: 70ch; }
.note { color: var(--muted); font-size: 15px; max-width: 70ch; margin-bottom: calc(24px * var(--sp)); }
.notice { display: inline-flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--hi-soft); border: 1px solid var(--hi); color: var(--hi-ink); font-weight: 500; font-size: 15px; max-width: 70ch; margin-bottom: calc(24px * var(--sp)); }
.notice .ic { flex: none; margin-top: 2px; }
.closing + .notice { margin-top: calc(24px * var(--sp)); margin-bottom: 0; }
.lede { font-size: 19px; line-height: 1.5; max-width: 62ch; }
.page-head { padding: calc(56px * var(--sp)) 0 calc(20px * var(--sp)); }
.section--first { padding-top: calc(20px * var(--sp)); }
.page-title { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 14px; }

/* Hero */
.hero { padding: calc(56px * var(--sp)) 0 calc(80px * var(--sp)); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: calc(72px * var(--sp)); align-items: center; }
.hero__grid > * { min-width: 0; }
/* Copy on one side, chat carousel on the other (home hero layout reused on inner pages) */
.duo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: calc(72px * var(--sp)); align-items: center; }
.duo > * { min-width: 0; }
.duo .section-head { margin-bottom: 0; }
.hero__title { font-size: clamp(38px, 4.6vw, 60px); line-height: 1.08; font-weight: 700; font-variation-settings: "SOFT" 40, "opsz" 72; }
.hero__title em { font-style: normal; color: var(--accent); font-weight: 700; }
.hero__lede { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 52ch; }
.hero__actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }

/* Chat carousel */
.chats { min-width: 0; position: relative; }
.chats__track { display: flex; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.chats__track::-webkit-scrollbar { display: none; }
.chats__track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.chat { flex: 0 0 100%; scroll-snap-align: start; background: var(--surface); border-radius: calc(var(--r) * 1.4); border: 1px solid var(--line); display: flex; flex-direction: column; max-height: 520px; overflow: hidden; position: relative; }
.chat::before, .chat::after { content: ""; position: absolute; left: 0; right: 0; height: 64px; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .25s; }
.chat::before { top: 0; background: linear-gradient(to bottom, var(--surface), transparent); }
.chat::after { bottom: 0; background: linear-gradient(to top, var(--surface), transparent); }
.chat.can-up::before, .chat.can-down::after { opacity: 1; }
.chat__log { overflow-y: auto; overflow-x: hidden; padding: 22px 20px 20px; display: grid; gap: 4px; align-content: start; overscroll-behavior: auto; }
.chat__row { display: flex; align-items: flex-end; gap: 8px; max-width: 90%; padding-bottom: 14px; }
.chat__row--them { justify-self: start; }
.chat__row--me { justify-self: end; flex-direction: row-reverse; }
.chat__avatar { flex: none; width: 28px; height: 28px; margin-bottom: -14px; border-radius: 50%; background: var(--ground); color: color-mix(in srgb, var(--ground) 82%, var(--ink)); display: grid; place-items: center; }
.chat__row--me .chat__avatar { background: var(--accent-soft); color: var(--surface); }
.chat__msg { position: relative; min-width: 0; padding: 11px 15px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.chat__msg--them { background: var(--ground); border: 1px solid var(--line); border-bottom-left-radius: 0; }
.chat__msg--me { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 0; }
[dir="rtl"] .chat__msg--them { border-bottom-left-radius: 14px; border-bottom-right-radius: 0; }
[dir="rtl"] .chat__msg--me { border-bottom-right-radius: 14px; border-bottom-left-radius: 0; }
.chat__tell { position: absolute; top: -12px; inset-inline-end: -12px; width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; cursor: help; box-shadow: 0 0 0 3px var(--surface); }
.chat__tip { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: var(--danger); color: #fff; font-family: var(--fm); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity .15s, transform .15s; z-index: 2; }
.chat__tip::after { content: ""; position: absolute; bottom: 100%; inset-inline-end: 8px; border: 6px solid transparent; border-bottom-color: var(--danger); }
.chat__tell:hover .chat__tip, .chat__tell:focus-visible .chat__tip { opacity: 1; transform: none; }
.chat__verdict { margin-top: 4px; display: grid; gap: 8px; justify-items: start; }
.chat__pill { display: inline-flex; align-items: center; gap: 8px; background: var(--danger); color: #fff; font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s ease, transform .45s cubic-bezier(.2,.9,.3,1.3); }
.chat__verdict.is-shown .chat__pill, .no-js .chat__pill { opacity: 1; transform: none; }
.chat__verdict p { font-size: 13.5px; color: var(--muted); }
.chats__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; z-index: 4; box-shadow: 0 6px 18px -8px rgba(40,20,60,.35); transition: opacity .2s; }
.chats__arrow--prev { inset-inline-start: -46px; }
.chats__arrow--next { inset-inline-end: -46px; }
.chats__arrow--prev .ic { transform: scaleX(-1); }
[dir="rtl"] .chats__arrow--prev .ic { transform: none; }
[dir="rtl"] .chats__arrow--next .ic { transform: scaleX(-1); }
.chats__arrow[disabled] { opacity: 0; pointer-events: none; }
.chats__dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.chats__dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.chats__dots button[aria-pressed="true"] { background: var(--accent); width: 22px; border-radius: 4px; }
.chats__note { text-align: center; font-family: var(--fm); font-size: 11px; color: var(--muted); margin-top: 10px; }
.chats-wide .chat { max-height: 560px; }
.chats-wide .chats__track { gap: 40px; }

/* Split blocks with a full-side photo */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; align-items: stretch; }
.split--photo-left { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split--photo-right { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split__body { min-width: 0; padding: calc(72px * var(--sp)) calc(40px * var(--sp)); }
.split--photo-left .split__body { padding-inline-start: calc(48px * var(--sp)); }
.split--photo-right .split__body { padding-inline-end: calc(48px * var(--sp)); }
.split__photo { margin: 0; min-height: 420px; position: relative; background-size: cover; background-position: 50% 25%; }
.split__photo--hands { background-image: url("../images/photos/hands-qZDmomR.jpg"); background-position: 50% 22%; }
.split__photo--silhouette { background-image: url("../images/photos/blur-7aDP0KU.jpg"); background-position: 50% 35%; filter: grayscale(1) contrast(1.05) brightness(1.1); }
.split__photo--silhouette::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent), var(--ink)); mix-blend-mode: screen; opacity: .7; }

/* Red flag cards */
.flag-grid { display: grid; gap: calc(18px * var(--sp)); }
.flag-grid--2 { grid-template-columns: 1fr 1fr; }
.flag-grid--1 { grid-template-columns: 1fr; }
.flag-grid--2 > :last-child:nth-child(odd), .flag-grid--detailed > :last-child:nth-child(odd) { grid-column: 1 / -1; } /* an odd seventh card spans the row */
.flag-grid--detailed { grid-template-columns: 1fr 1fr; }
.flag-card { background: var(--surface); border-radius: calc(var(--r) * 1.2); padding: calc(24px * var(--sp)); border: 1px solid var(--line); scroll-margin-top: 110px; }
.flag-card__label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fm); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--danger); margin-bottom: 14px; }
.flag-card__title { font-size: 18px; margin-bottom: 6px; line-height: 1.25; }
.flag-card--link { display: block; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.flag-card--link:hover, .flag-card--link:focus-visible { transform: translateY(-3px); border-color: var(--danger); box-shadow: 0 14px 30px -18px rgba(199, 65, 43, .45); }
@media (prefers-reduced-motion: reduce) { .flag-card--link:hover { transform: none; } }
.flag-card__text { font-size: 14.5px; color: var(--muted); }
.flag-card__details { margin-top: 14px; display: grid; gap: 10px; font-size: 15px; }
.section--surface .flag-card { background: var(--surface); }

/* Scam type cards */
.type-grid { display: grid; gap: calc(18px * var(--sp)); }
.type-grid--2 { grid-template-columns: 1fr 1fr; }
.type-grid--1 { grid-template-columns: 1fr; }
.type-card { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: calc(24px * var(--sp)); border-radius: calc(var(--r) * 1.2); background: var(--surface); border: 1px solid var(--line); }
.section--surface .type-card { background: var(--surface); }
.type-card__glyph { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.type-card__glyph--lg { width: 72px; height: 72px; margin-bottom: 20px; }
.type-card__title { font-size: 20px; margin-bottom: 6px; }
.type-card--link { color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.type-card--link:hover, .type-card--link:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(113, 17, 192, .45); }
@media (prefers-reduced-motion: reduce) { .type-card--link:hover { transform: none; } }
.type-card__body { display: block; min-width: 0; }
.type-card__text { font-size: 14.5px; color: var(--muted); }
.type-card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent); }

/* Moves (numbered arrow chips) */
.moves { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(24px * var(--sp)); }
.moves::before { content: ""; position: absolute; left: 24px; right: 24px; top: 21px; height: 2px; background: var(--line); }
.moves--stacked { grid-template-columns: 1fr 1fr; gap: calc(18px * var(--sp)); align-items: stretch; }
.moves--stacked::before { display: none; }
.moves--stacked .move { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.2); padding: calc(26px * var(--sp)) calc(26px * var(--sp)) calc(28px * var(--sp)); }
.moves--stacked .move__chip { background: transparent; padding: 0; }
.moves--stacked .move__title { margin-top: 14px; }
.move__chip { display: inline-block; position: relative; background: var(--ground); padding-inline-end: 10px; }
.section--surface .move__chip { background: var(--surface); }
.move__chip svg { display: block; }
[dir="rtl"] .move__chip svg path { transform: scaleX(-1); transform-origin: center; }
.move__chip text { font-family: var(--fd); font-weight: 700; font-size: 21px; }
.move__title { font-size: 18px; margin: 16px 0 6px; }
.moves--stacked .move__title { font-size: 24px; }
.move__text { font-size: 14.5px; color: var(--muted); max-width: 70ch; }
.moves--stacked .move__text { font-size: 16.5px; color: var(--ink); }
.move__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.move__items { margin-top: 12px; display: grid; gap: 8px; padding-inline-start: 0; }
.move__items li { position: relative; padding-inline-start: 22px; font-size: 15.5px; }
.move__items li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }

/* Help panel */
.help { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: calc(48px * var(--sp)); align-items: start; }
.help__panel { background: var(--accent); color: var(--accent-ink); border-radius: calc(var(--r) * 1.4); padding: calc(32px * var(--sp)); }
.help__panel h2 { font-size: clamp(28px, 3vw, 40px); }
.help__panel p { color: var(--accent-ink); font-size: 16px; margin: 12px 0 20px; }
.help__list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.help__list li:last-child { border-bottom: 1px solid var(--line); }
.help__ck { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.help__list h3 { font-size: 17px; margin-bottom: 4px; }
.help__list p { font-size: 14.5px; color: var(--muted); }

/* References */
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(18px * var(--sp)); }
.ref-card { background: var(--surface); border-radius: calc(var(--r) * 1.2); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.ref-card__thumb { display: grid; aspect-ratio: 16/9; background: var(--accent-soft); place-items: center; position: relative; color: var(--accent); }
.ref-card--documentary .ref-card__thumb { background: var(--danger-soft); color: var(--danger-ink); }
.ref-card--service .ref-card__thumb, .ref-card--article .ref-card__thumb { background: var(--surface); border-bottom: 1px solid var(--line); }
.ref-card__thumb--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ref-card__thumb--image .ref-card__play { position: relative; z-index: 1; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.ref-card__thumb--image .ref-card__tag { z-index: 1; }
.ref-card__play { width: 50px; height: 50px; border-radius: 50%; background: currentColor; display: grid; place-items: center; }
.ref-card__play .ic { color: #fff; }
.ref-card--documentary .ref-card__play .ic { color: #fff; }
.ref-card__tag { position: absolute; inset-inline-start: 12px; bottom: 10px; font-size: 12px; font-weight: 600; background: var(--surface); padding: 3px 9px; border-radius: 999px; color: var(--ink); }
.ref-card__body { display: block; padding: 16px 18px 20px; }
.ref-card__title { font-size: 17px; margin-bottom: 4px; }
.ref-card--link { color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.ref-card--link:hover, .ref-card--link:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 14px 30px -18px rgba(113, 17, 192, .45); }
@media (prefers-reduced-motion: reduce) { .ref-card--link:hover { transform: none; } }
.ref-card__text { font-size: 13.5px; color: var(--muted); }

/* Boxes */
.stack { display: grid; gap: calc(18px * var(--sp)); }
.box { padding: calc(32px * var(--sp)); border-radius: calc(var(--r) * 1.4); background: var(--surface); border: 1px solid var(--line); }
.box h2 { font-size: 28px; }
.box p { color: var(--muted); font-size: 15.5px; margin: 8px 0 18px; }
.box__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.box--brand { background: var(--ink); color: var(--ground); border-color: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; padding: calc(56px * var(--sp)) calc(32px * var(--sp)); }
.box--brand h2 { color: inherit; max-width: 20ch; }
.box--brand p { color: inherit; opacity: .85; max-width: 62ch; }
.box--brand .logo { margin-bottom: 18px; }

/* Article (scam type page) */
.article { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: calc(56px * var(--sp)); align-items: start; }
.article__main h2 { font-size: 26px; margin: calc(36px * var(--sp)) 0 14px; }
.tells { display: grid; gap: 10px; }
.tells li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.tells__flag { width: 26px; height: 26px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; }
.advice { counter-reset: adv; display: grid; gap: 12px; }
.advice li { counter-increment: adv; position: relative; padding-inline-start: 44px; font-size: 16px; }
.advice li::before { content: counter(adv); position: absolute; inset-inline-start: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--fb); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.article__aside { position: sticky; top: 100px; }
.article__aside h2 { font-size: 20px; margin-bottom: 14px; }
.article__aside .flag-card { padding: 18px; }
.article__aside > p { margin-top: 18px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 26px; margin: calc(32px * var(--sp)) 0 12px; }
.prose p { font-size: 17px; margin-bottom: 12px; }
.prose a { color: var(--accent); }
.logo-preview { padding: 24px; background: var(--ground); border-radius: var(--r); display: inline-block; }
/* Generic two-column white panels (about page and similar) */
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: calc(18px * var(--sp)); align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.2); padding: calc(26px * var(--sp)); scroll-margin-top: 110px; }
.panel h2 { font-size: 24px; margin-bottom: 10px; }
.panel p { font-size: 16px; margin-bottom: 12px; }
.panel p:last-child { margin-bottom: 0; }
.panel a { color: var(--accent); }
.panel .btn { color: var(--hi-ink); }
.panel--outline { background: transparent; grid-column: 1 / -1; color: var(--muted); font-size: 15px; }

/* Checker */
.checker { display: grid; gap: 22px; }
.checker__intro { color: var(--ink); font-size: 15px; }
.checker__questions { display: grid; gap: 14px; counter-reset: none; }
.checker__q fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; background: var(--surface); margin: 0; }
.checker__q legend { float: left; width: 100%; padding: 0; margin: 0 0 6px; font-family: var(--fb); font-size: 17px; font-weight: 600; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.checker__q fieldset > * { clear: both; }
.checker__n { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-top: 1px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--fb); font-weight: 700; font-size: 13px; }
.checker__q legend { line-height: 1.5; }
.checker__hint { color: var(--ink); opacity: .8; margin: 6px 0 12px; }
.checker__hint, .checker__answers { padding-inline-start: 36px; } /* aligned under the question text, past the number circle */
.checker__answers { display: flex; gap: 8px; flex-wrap: wrap; }
.checker__opt { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 500; font-size: 14.5px; background: var(--ground); transition: background .15s, color .15s; }
.checker__opt:hover { background: color-mix(in srgb, var(--accent) 12%, var(--ground)); }
.checker__opt input { accent-color: var(--accent); margin: 0; }
.checker__opt:has(input:checked) { background: var(--accent-soft); color: var(--accent); }
.checker__opt:has(input:checked):hover { background: color-mix(in srgb, var(--accent) 22%, var(--ground)); }
.checker__opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.checker__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.checker__result:empty { display: none; }
/* Wizard mode (JavaScript): one question at a time, progress with clickable steps */
.checker.is-wizard .checker__q { display: none; }
.checker.is-wizard .checker__q.is-current { display: block; }
.checker.is-wizard .checker__actions .btn--highlight, .checker.is-wizard .checker__actions .btn[type="submit"] { display: none; }
.checker.is-wizard.is-done .checker__q, .checker.is-wizard.is-done .checker__progress, .checker.is-wizard.is-done .checker__intro, .checker.is-wizard.is-done .checker__back, .checker.is-wizard.is-done .checker__next { display: none; }
.checker.is-wizard.is-done .checker__nav { order: 7; }
.checker.is-wizard .checker__actions { display: none; }
.checker__nav-left { display: flex; gap: 10px; flex-wrap: wrap; }
.ic--flip { transform: scaleX(-1); }
[dir="rtl"] .checker__nav .ic { transform: scaleX(-1); }
[dir="rtl"] .checker__nav .ic--flip { transform: none; }
.checker__progress { display: flex; align-items: flex-end; gap: 4px; }
.checker__step { --c: var(--line); flex: 1 1 24px; min-width: 0; border: 0; padding: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; color: var(--ink); }
.checker__step-n { width: 24px; height: 20px; border-radius: 12px 12px 0 0; background: var(--c); font-family: var(--fb); font-weight: 700; font-size: 12px; line-height: 1; display: grid; place-items: center; padding-top: 3px; transition: background .2s, color .2s; }
.checker__step-bar { width: 100%; height: 8px; border-radius: 0; background: var(--c); transition: background .2s; }
.checker__step:first-child .checker__step-bar { border-start-start-radius: 4px; border-end-start-radius: 4px; }
.checker__step:last-child .checker__step-bar { border-start-end-radius: 4px; border-end-end-radius: 4px; }
.checker__step.is-answered { --c: color-mix(in srgb, var(--accent) 55%, var(--line)); color: #fff; }
.checker__step.is-current { --c: var(--accent); color: var(--accent-ink); }
.checker__nav { display: flex; justify-content: space-between; gap: 10px; }
.checker.is-wizard .checker__nav .btn { justify-content: center; }
.checker.is-wizard.is-done .checker__actions .btn--highlight { display: none; }
.checker__result { order: 5; }
.checker__actions { order: 6; }
.checker--modal .checker__q fieldset { background: var(--surface); }
.checker-page { max-width: 820px; }
.checker__result--page { margin-bottom: 28px; }
.verdict { border-radius: calc(var(--r) * 1.2); padding: 22px 24px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 10px; }
.verdict--scam { border-color: var(--danger); background: var(--danger-soft); }
.verdict--caution { border-color: var(--hi); background: var(--hi-soft); }
.verdict--no_flags { border-color: var(--accent); background: var(--accent-soft); }
.verdict__pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--fm); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: #fff; justify-self: start; }
.verdict--scam .verdict__pill { background: var(--danger); }
.verdict--no_flags .verdict__pill { background: var(--accent); }
.verdict__text { font-size: 16px; }
.verdict__label { font-family: var(--fm); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); opacity: .8; margin-top: 6px; }
.verdict__flags li a { display: inline-flex; align-items: center; gap: 8px; color: var(--danger-ink); font-weight: 600; text-decoration: none; padding: 4px 0; }
.verdict__unsure li { font-size: 14.5px; padding: 3px 0; color: var(--ink); }
.verdict__note { font-size: 14px; color: var(--ink); opacity: .85; }
.verdict__urgent { font-weight: 600; font-size: 15px; line-height: 1.5; }
.verdict__urgent .ic { vertical-align: -3px; margin-inline-end: 6px; }
.verdict__urgent a { color: var(--danger-ink); }
.verdict__links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; max-width: min(760px, calc(100vw - 32px)); width: 100%; margin: auto; }
.has-modal { overflow: hidden; scrollbar-gutter: stable; } /* page does not scroll under an open modal */
.modal::backdrop { background: rgba(40, 20, 60, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
/* Open animation: the box rises and fades in, the backdrop fades and blurs in */
.modal[open] { animation: modal-in .32s cubic-bezier(.2, .8, .2, 1) both; }
.modal[open]::backdrop { animation: backdrop-in .32s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.modal[open].is-closing { animation: modal-out .24s ease-in both; }
.modal[open].is-closing::backdrop { animation: backdrop-out .24s ease-in both; }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .modal[open], .modal[open]::backdrop, .modal[open].is-closing, .modal[open].is-closing::backdrop { animation: none; } }
.modal__box { background: var(--ground); border-radius: calc(var(--r) * 1.4); overflow: hidden; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--surface); }
.modal__title { font-size: 22px; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; }
.modal__body { padding: 22px; overflow-y: auto; }

/* Footer */
.footer { padding: calc(40px * var(--sp)) 0 calc(60px * var(--sp)); border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 40px; }
.footer__brand a { text-decoration: none; }
.footer__brand p { margin-top: 12px; }
.footer__brand p a { color: var(--ink); }
.footer__col li { padding: 4px 0; }
.footer__col a { text-decoration: none; color: var(--ink); }
.footer__col a:hover { text-decoration: underline; }
.langs { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.langs a { text-decoration: none; }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }

/* Responsive */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .article__aside { position: static; }
  .ref-grid { grid-template-columns: 1fr 1fr; }
  .chats__arrow { display: none; }
}
@media (max-width: 900px) {
  .nav__links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--r) * 1.4); padding: 12px; box-shadow: 0 16px 40px -20px rgba(40,20,60,.45); }
  .nav.is-open .nav__links { display: block; }
  .nav__links ul { flex-direction: column; gap: 4px; }
  .nav__links a { display: block; padding: 10px 12px; border-radius: 10px; border-bottom: 0; }
  .nav__links a[aria-current="page"], .nav__links a:hover { background: var(--accent-soft); }
  .nav__burger { display: inline-flex; }
  .nav .lang-menu { display: none; }
  .nav { position: relative; top: 0; }
  .nav__bar { position: relative; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav__bar { height: 56px; padding: 0 9px 0 10px; gap: 8px; }
  .nav__logo .logo { font-size: 16px; gap: 8px; }
  .nav__logo .logo__mark { width: 34px; height: 34px; }
  .btn--nav { padding: 8px 11px; font-size: 11px; letter-spacing: .04em; }
  .hero { padding: 28px 0 44px; }
  .hero__grid, .duo, .help, .split, .split--photo-left, .split--photo-right { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .hero__title { font-size: 36px; }
  .hero__lede { font-size: 17px; }
  .section { padding: 44px 0; }
  .split__body { padding: 40px 20px; }
  .split__photo { order: -1; min-height: 0; aspect-ratio: 4/3; }
  .flag-grid--2, .flag-grid--detailed, .type-grid--2, .ref-grid, .footer__grid, .panels { grid-template-columns: 1fr; }
  .moves, .moves--stacked { grid-template-columns: 1fr; gap: 20px; }
  .moves::before { display: none; }
  .type-card { grid-template-columns: 52px 1fr; gap: 14px; }
  .type-card__glyph { width: 52px; height: 52px; }
  .page-head { padding: 32px 0 12px; }
  .section--first { padding-top: 12px; }
  .chat { max-height: 480px; }
  .lang-menu ul { grid-template-columns: 1fr 1fr; }
}

/* Script-specific font stacks: the brand webfonts carry no CJK or Arabic glyphs, so those
   languages use the system's fonts (with the same sizes and weights). */
@media (max-width: 480px) {
  .nav__logo .logo__word { display: none; }
}

html[lang="ja"] { --fd: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Noto Serif CJK JP", serif; --fb: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif; }
html[lang="zh-Hans"] { --fd: "Songti SC", "Noto Serif SC", "Noto Serif CJK SC", serif; --fb: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", sans-serif; }
html[lang="ko"] { --fd: "Apple SD Gothic Neo", "Noto Serif KR", "Noto Serif CJK KR", serif; --fb: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", "Noto Sans CJK KR", sans-serif; }
html[lang="ar"] { --fd: "Noto Naskh Arabic", "Geeza Pro", "Segoe UI", serif; --fb: "Noto Sans Arabic", "Segoe UI", "Geeza Pro", sans-serif; }
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="zh-Hans"] h1, html[lang="zh-Hans"] h2, html[lang="ko"] h1, html[lang="ko"] h2 { letter-spacing: 0; }

/* Language nudge toast (top centre, dismissable, shown once) */
.nudge { position: fixed; top: calc(24px + var(--nav-h) / 2); left: 50%; transform: translate(-50%, calc(-50% - 16px)); opacity: 0; z-index: 50; width: min(560px, calc(100vw - 24px)); transition: transform .3s ease, opacity .3s ease; }
.nudge.is-shown { transform: translate(-50%, -50%); opacity: 1; }
.nudge__item[hidden] { display: none; }
.nudge__item { display: flex; align-items: center; gap: 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 12px 12px 18px; box-shadow: 0 18px 44px -18px rgba(40,20,60,.5); }
.nudge__text { flex: 1; font-size: 15px; line-height: 1.4; }
.nudge__cta { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nudge__close { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.nudge__close:hover { background: var(--ground); }
@media (max-width: 900px) { .nudge { top: calc(12px + var(--nav-h) / 2); } }
@media (max-width: 760px) { .nudge { top: calc(12px + 56px / 2); } }
@media (prefers-reduced-motion: reduce) { .nudge { transition: none; } }

/* Error pages (404 / 5xx) */
.error { padding-top: calc(36px * var(--sp)); max-width: 760px; }
.error__code { font-family: var(--fd); font-weight: 700; font-size: clamp(72px, 12vw, 128px); line-height: 1; color: var(--accent); opacity: .18; margin-bottom: 8px; font-variation-settings: "SOFT" 60, "opsz" 144; }
