/* That's AI - Phase 1 styles. Palette: ink #14213D, coral #FF5A36, real #1E9E63, ai #6C4DFF, amber #F2A900, cloud #F6F7FB */
:root {
  --ink: #14213D;
  --ink-soft: #4A5672;
  --coral: #FF5A36;
  --coral-dark: #D9431F;
  --real: #1E9E63;
  --ai: #6C4DFF;
  --amber: #F2A900;
  --cloud: #F6F7FB;
  --line: #E3E6EF;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(20, 33, 61, 0.06);
  --font: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--cloud); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--coral); text-underline-offset: 3px; }
a:hover { color: var(--coral-dark); }
:focus-visible { outline: 3px solid var(--ai); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Layout */
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
header.site { background: var(--white); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
nav.main { display: flex; gap: 6px; flex-wrap: wrap; }
nav.main a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 0.95rem; }
nav.main a:hover, nav.main a[aria-current="page"] { background: var(--cloud); color: var(--ink); }
main { padding: 32px 0 56px; }
footer.site { border-top: 1px solid var(--line); background: var(--white); padding: 28px 0; font-size: 0.9rem; color: var(--ink-soft); }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }

/* Type */
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 12px; }
h2 { font-size: 1.5rem; margin: 32px 0 12px; }
h3 { font-size: 1.15rem; margin: 20px 0 8px; }
.lead { font-size: 1.2rem; color: var(--ink-soft); margin: 0 0 24px; }
.eyebrow { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--coral-dark); margin: 0 0 8px; }
.muted { color: var(--ink-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; border: 0; border-radius: 999px; padding: 14px 24px; cursor: pointer; text-decoration: none; min-height: 52px; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-real { background: var(--real); color: var(--white); }
.btn-ai { background: var(--ai); color: var(--white); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card h3 { margin-top: 0; }
.card a.stretch { text-decoration: none; }

/* Hero */
.hero { padding: 24px 0 8px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 28px; }
.badge { display: inline-block; background: var(--white); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; font-size: 0.85rem; font-weight: 700; }

/* Notice */
.notice { border-left: 5px solid var(--amber); background: #FFF8E6; padding: 14px 16px; border-radius: 10px; margin: 20px 0; }
.notice.info { border-color: var(--ai); background: #F1EEFF; }

/* Game */
.game { max-width: 640px; margin: 0 auto; }
.game-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 700; color: var(--ink-soft); }
.progress { display: flex; gap: 6px; }
.progress span { width: 28px; height: 8px; border-radius: 4px; background: var(--line); }
.progress span.done-right { background: var(--real); }
.progress span.done-wrong { background: var(--coral); }
.progress span.current { background: var(--ink); }
.item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.item-media { aspect-ratio: 4 / 3; background: var(--cloud); display: flex; align-items: center; justify-content: center; }
.item-media img, .item-media video { width: 100%; height: 100%; object-fit: cover; }
.item-media audio { width: 90%; }
.item-text { padding: 24px; font-size: 1.1rem; white-space: pre-wrap; }
.placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--white); font-weight: 800; font-size: 1.3rem; }
.placeholder small { font-weight: 700; font-size: 0.9rem; opacity: .9; margin-top: 6px; }
.item-caption { padding: 12px 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 0.95rem; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.choices .btn { font-size: 1.15rem; min-height: 60px; }
.reveal { margin-top: 16px; }
.verdict { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; color: var(--white); font-weight: 800; font-size: 0.95rem; }
.tag.real { background: var(--real); }
.tag.ai { background: var(--ai); }
.clues { margin: 8px 0 12px; padding-left: 20px; }
.lesson { background: var(--cloud); border-radius: 10px; padding: 10px 14px; font-weight: 700; }
.result { text-align: center; }
.score-big { font-size: 3.5rem; font-weight: 800; margin: 8px 0; }
.share-box { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--cloud); border-radius: 10px; padding: 14px; white-space: pre-wrap; text-align: left; margin: 16px auto; max-width: 320px; }
.stats { display: flex; justify-content: center; gap: 24px; margin: 12px 0 20px; }
.stats div { text-align: center; }
.stats strong { display: block; font-size: 1.6rem; }
.row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Prose */
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 20px 0; }
.summary h2 { margin-top: 0; font-size: 1.1rem; }
.tool-list .card p { margin: 6px 0; }
.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.signup input { flex: 1 1 220px; font: inherit; padding: 12px 16px; border: 2px solid var(--line); border-radius: 999px; min-height: 52px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  nav.main a { padding: 6px 10px; }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
