/* Mathilo — site public */
:root { --bg: #EEF3FF; --ink: #1B2340; --muted: #4A5578; --blue: #2F5BEA; --blue-dark: #1E3FB0; --soft: #DCE5FF; --orange: #FFB547; --line: #DCE4FA; --night: #1B2340; --display: 'Fredoka', system-ui, sans-serif; --body: 'Nunito', system-ui, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 22px; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 10; }

.nav { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.navin { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.nav nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; }
.nav nav a:hover { color: var(--blue); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--ink); text-decoration: none; }

.cta { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 26px; border-radius: 999px; background: var(--blue); color: #fff !important; font-family: var(--display); font-weight: 600; font-size: 20px; text-decoration: none; box-shadow: 0 5px 0 var(--blue-dark); }
.cta:hover { background: var(--blue-dark); }
.cta.small { min-height: 44px; font-size: 16px; padding: 0 18px; box-shadow: none; }
.ghost { display: inline-flex; align-items: center; min-height: 54px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--line); color: var(--ink); font-weight: 800; text-decoration: none; }
.ghost:hover { border-color: var(--blue); }

.hero { background: var(--bg); padding: 56px 0 64px; }
.heroin { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; font-size: 14px; margin: 0 0 10px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-weight: 700; font-size: 16px; color: var(--muted); }
.ticks li::before { content: "✓ "; color: #1F7A4D; font-weight: 800; }
.ticks.col { flex-direction: column; gap: 8px; font-size: 18px; color: var(--ink); }
.mock { background: #fff; border-radius: 28px; padding: 22px; box-shadow: 0 10px 0 var(--line); display: flex; flex-direction: column; gap: 16px; }
.mockbar { display: flex; justify-content: space-between; font-size: 14px; font-weight: 800; color: var(--muted); }
.mockq { text-align: center; font-family: var(--display); font-weight: 600; font-size: 64px; }
.mockq em { font-style: normal; color: var(--blue); }
.mockc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mockc span { text-align: center; padding: 14px 0; border-radius: 16px; border: 3px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 30px; }
.mockc .ok { background: #DDF5E7; border-color: #1F7A4D; color: #145C37; }
.mockfb { background: #DDF5E7; color: #145C37; border-radius: 16px; padding: 12px 16px; font-weight: 800; }

.block { padding: 56px 24px; }
.summary { font-size: 20px; }
.box { background: var(--bg); border-left: 0; border-radius: 20px; padding: 18px 22px; margin: 0 0 28px; }
.box strong { display: block; font-family: var(--display); font-size: 20px; margin-bottom: 4px; }
.box p { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.stats div { background: var(--bg); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; }
.stats strong { font-family: var(--display); font-size: 42px; color: var(--blue); line-height: 1.1; }
.stats span { font-weight: 700; color: var(--muted); }
.games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.game { border: 2px solid var(--line); border-radius: 22px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.game h3 { margin: 4px 0 0; }
.game p { margin: 0; color: var(--muted); font-size: 16px; }
.game a { margin-top: auto; font-weight: 800; font-size: 15px; text-decoration: none; }
.wicon { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; flex: none; vertical-align: middle; }
.more { margin-top: 18px; font-weight: 800; }
.band { background: var(--bg); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: s; background: #fff; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; font-size: 28px; color: #fff; background: var(--blue); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.steps strong { font-family: var(--display); font-size: 22px; }
.steps span { color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.domains { padding-left: 20px; }
.faq details { border: 2px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 10px 0; }
.faq details p { margin: 0 0 12px; color: var(--muted); }
.final { background: var(--night); color: #fff; text-align: center; padding: 64px 0; }
.final p { color: #C9D5F5; font-size: 20px; }

.crumbs { font-size: 15px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.article { padding-top: 24px; padding-bottom: 56px; max-width: 900px; }
.article section { margin-bottom: 32px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--bg); font-weight: 800; }
.scroll { overflow-x: auto; }
.tbl.wide { min-width: 820px; font-size: 14px; }
.notions { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
.notions li { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.code { flex: none; min-width: 42px; text-align: center; padding: 1px 6px; border-radius: 8px; background: var(--soft); color: var(--blue); font-weight: 800; font-size: 13px; }
.count { font-family: var(--body); font-size: 16px; font-weight: 800; color: var(--muted); }
.playbox { display: flex; align-items: center; gap: 18px; background: #FFF3DC; border-radius: 22px; padding: 20px 22px; margin: 24px 0; flex-wrap: wrap; }
.playbox div { flex: 1; min-width: 220px; }
.playbox p { margin: 2px 0 0; color: var(--muted); }
.gamedetail h2 { display: flex; align-items: center; gap: 12px; }
.related { font-size: 16px; color: var(--muted); }
.todo { background: #FFE6D6; color: #8A2D07; border-radius: 12px; padding: 12px 16px; font-weight: 800; }

.foot { background: var(--bg); padding: 40px 0 24px; margin-top: 0; }
.footin { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.foot nav { display: flex; flex-direction: column; gap: 6px; font-size: 16px; }
.foot nav a { color: var(--ink); text-decoration: none; }
.foot nav a:hover { color: var(--blue); }
.foot p { color: var(--muted); font-size: 16px; }
.updated { font-size: 14px !important; margin-top: 24px; }

@media (max-width: 860px) {
  .heroin, .two, .footin { grid-template-columns: minmax(0, 1fr); }
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav nav a:not(.cta) { display: none; }
}
@media (max-width: 560px) { .games, .steps, .notions { grid-template-columns: minmax(0, 1fr); } }
.mockq { font-size: clamp(40px, 9vw, 64px); white-space: nowrap; }
main > .wrap:first-child { max-width: 900px; }
.legal .updated { color: var(--muted, #5B6478); font-size: 15px; margin-top: -8px; }
.legal mark { background: #FFE6D6; color: #8A2D07; padding: 0 4px; border-radius: 4px; }
.legal .summary ul { margin: 8px 0 0; padding-left: 20px; }
.legal .summary h2 { font-size: 22px; margin: 0; }
.table-wrap { overflow-x: auto; }
.legal table { font-size: 15px; min-width: 640px; }
.legal td { vertical-align: top; }
.legal .tbl th { text-align: left; } .legal .tbl td, .legal .tbl th { border-bottom: 1px solid #E3E8F5; padding: 10px 8px; }

.notions li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.notions li .nt { flex: 1; min-width: 200px; }
.notions .per { font-size: 13px; font-weight: 800; color: #2F4BB5; white-space: nowrap; }
.notions .per abbr { text-decoration: none; background: #EEF3FF; border-radius: 999px; padding: 1px 7px; }
.notions .per.bonus { color: #9A5B00; background: #FFF0DC; border-radius: 999px; padding: 1px 8px; }
.notions .per .off { color: #1F7A4D; }
