/* Krokuj — krokuj.sk. The app's own picture-book palette and fonts, served locally
   (no third-party requests, no tracking). */

@font-face { font-family: "Fredoka"; src: url("fonts/Fredoka-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Andika"; src: url("fonts/Andika-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Andika"; src: url("fonts/Andika-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --sky: #DDF1FB;
  --sky-deep: #BFE4F7;
  --card: #FFFFFF;
  --ink: #22314A;
  --ink-2: #5B6B85;
  --line: #D3E3EF;
  --shade: #C3D4E4;
  --grape: #7C5CE8;
  --grape-soft: #EEE9FF;
  --grape-dash: #B9A8F5;
  --sun: #FFC93C;
  --sun-d: #E0A400;
  --tomato: #FF6B57;
  --grass: #6CBF5B;
  --grass-d: #4E9A45;
  --good-soft: #E1F5E4;
  --think: #E57A12;
  --think-soft: #FFF0DF;
  --sand: #F6DDA8;
  --sand-d: #D9B26A;
  --fun: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --read: "Andika", "Trebuchet MS", system-ui, sans-serif;
  --radius: 28px;
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sky); color: var(--ink); font: 18px/1.55 var(--read); -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: var(--grape); }
h1, h2, h3 { font-family: var(--fun); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 700; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 700; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.eyebrow { font-family: var(--fun); font-weight: 600; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--grape); }
.lead { font-size: clamp(19px, 2.1vw, 23px); color: var(--ink-2); max-width: 40ch; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }
:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 8px; }

/* Picture-book cards: a solid shade under the card, like the app. */
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 6px 0 var(--shade); }
.btn { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--fun); padding: 15px 24px; border-radius: 18px; border: 0; cursor: pointer; text-decoration: none; color: var(--ink); background: #fff; box-shadow: 0 5px 0 var(--shade); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--shade); }
.btn.sun { background: var(--sun); box-shadow: 0 5px 0 var(--sun-d); }
.btn.sun:active { box-shadow: 0 2px 0 var(--sun-d); }
.btn .apple { width: 22px; height: 22px; }
.btn small { display: block; font-size: 12px; font-weight: 500; opacity: .75; line-height: 1; }
.btn .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(221, 241, 251, .86); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
header.top .wrap { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 26px var(--fun); color: var(--ink); text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 0 var(--shade); }
nav.links { display: flex; gap: 22px; margin-left: auto; font: 600 16px var(--fun); }
nav.links a { color: var(--ink-2); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
.lang { display: flex; background: #fff; border-radius: 12px; padding: 4px; box-shadow: 0 3px 0 var(--shade); }
.lang button { font: 600 14px var(--fun); border: 0; background: transparent; color: var(--ink-2); padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
@media (max-width: 860px) { nav.links { display: none; } .lang { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 .hl { background: linear-gradient(transparent 62%, rgba(255, 201, 60, .55) 62%); padding-inline: 4px; }
.hero .lead { margin-top: 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font: 600 15px var(--fun); color: var(--ink-2); }
.hero .trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero .trust i { width: 22px; height: 22px; border-radius: 50%; background: var(--good-soft); display: grid; place-items: center; font-style: normal; color: var(--grass-d); font-size: 13px; }
.hero .stage { position: relative; height: 620px; }
.hero .ground { position: absolute; inset: auto 0 0 0; height: 150px; }
.phone { position: absolute; width: 270px; border-radius: 46px; padding: 11px; background: #1d2638; box-shadow: 0 30px 60px rgba(34, 49, 74, .25), 0 0 0 2px #394561 inset; }
.phone img { border-radius: 36px; }
.phone.a { left: 4%; top: 10px; transform: rotate(-5deg); z-index: 2; }
.phone.b { right: 2%; top: 70px; transform: rotate(6deg); }
.hero .mascot { position: absolute; width: 170px; left: 36%; bottom: 60px; z-index: 3; filter: drop-shadow(0 8px 0 rgba(34, 49, 74, .08)); animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-2deg); } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 170px; }
@media (max-width: 960px) {
  .hero { padding-bottom: 80px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero .stage { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
  .phone { width: 225px; }
}
@media (max-width: 520px) {
  .hero .stage { height: 440px; }
  .phone { width: 185px; border-radius: 36px; padding: 8px; }
  .phone img { border-radius: 29px; }
  .hero .mascot { width: 120px; left: 34%; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
section.white { background: #fff; }
section.sand { background: #FFF7E3; }
.section-head { margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { padding: 30px; }
.pillar .ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 18px; }
.pillar p { color: var(--ink-2); margin-top: 10px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.world { padding: 18px 16px 22px; text-align: center; }
.world .pic { height: 96px; border-radius: 20px; display: grid; place-items: center; margin-bottom: 14px; }
.world .pic svg { width: 96px; height: 60px; }
.world h3 { font-size: 19px; }
.world p { font-size: 15px; color: var(--ink-2); margin-top: 6px; line-height: 1.4; }
@media (max-width: 960px) { .worlds { grid-template-columns: repeat(2, 1fr); } .world:last-child { grid-column: span 2; } }

/* ---------- demo ---------- */
.demo { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.demo .copy ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.demo .copy li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.demo .copy li b { font-family: var(--fun); color: var(--ink); font-weight: 600; }
.demo .copy li i { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--grape-soft); color: var(--grape); display: grid; place-items: center; font: 700 15px var(--fun); font-style: normal; margin-top: 1px; }
@media (max-width: 960px) { .demo { grid-template-columns: 1fr; } }

.play { padding: 18px; background: var(--sky); border-radius: 34px; box-shadow: 0 6px 0 var(--shade), inset 0 0 0 2px #fff; }
.play .tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.play .tabs button { flex: 1; font: 600 16px var(--fun); padding: 11px 10px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--shade); }
.play .tabs button[aria-selected="true"] { background: var(--sun); box-shadow: 0 4px 0 var(--sun-d); }
.talk { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 12px; }
.talk .mini { width: 70px; flex: none; }
.bubble { position: relative; flex: 1; background: #fff; border-radius: 20px; padding: 12px 16px; min-height: 64px; display: flex; align-items: center; font-size: 17px; line-height: 1.35; box-shadow: 0 4px 0 var(--shade); margin-bottom: 8px; transition: background .2s; }
.bubble::before { content: ""; position: absolute; left: -12px; bottom: 14px; border-style: solid; border-width: 9px 13px 9px 0; border-color: transparent var(--bub, #fff) transparent transparent; }
.bubble.ok { --bub: var(--good-soft); background: var(--good-soft); color: #23793D; font-weight: 700; }
.bubble.bad { --bub: var(--think-soft); background: var(--think-soft); color: #9A4A00; }
.bubble.hint { --bub: #FFF6D4; background: #FFF6D4; }
.scene { background: #fff; border-radius: 24px; box-shadow: 0 5px 0 var(--shade); overflow: hidden; }
.tile { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font: 600 27px var(--fun); font-variant-numeric: tabular-nums; flex: none; }
.tile.given { background: var(--sand); border: 2px solid var(--sand-d); box-shadow: 0 4px 0 var(--sand-d); }
.tile.cell { background: #fff; color: var(--grape); border: 3px dashed var(--grape-dash); cursor: pointer; padding: 0; font-family: var(--fun); }
.tile.cell.has { border-style: solid; border-color: var(--grape); }
.tile.cell.sel { border-style: solid; border-color: var(--grape); background: var(--grape-soft); box-shadow: 0 0 0 5px rgba(124, 92, 232, .22); }
.tile.bad { border: 3px solid var(--think) !important; background: var(--think-soft) !important; color: var(--think) !important; box-shadow: none; }
.pyr { background: linear-gradient(#CFEAF8, #EAF7FD 78%); padding-top: 12px; display: flex; flex-direction: column; align-items: center; }
.pyr .row { display: flex; align-items: center; gap: 0; margin-bottom: 8px; }
.pyr .plus { width: 16px; text-align: center; font: 700 17px var(--fun); color: #B08A4A; }
.pyr .ground { align-self: stretch; height: 26px; background: var(--grass); border-top: 4px solid var(--grass-d); margin-top: -4px; }
.flag { width: 46px; height: 60px; margin-bottom: -2px; }
.flag .cloth { transform: translateY(28px); transition: transform .9s cubic-bezier(.3, 1.4, .5, 1); }
.flag.up .cloth { transform: none; }
.path { background: linear-gradient(#CFEAF8, #EAF7FD 78%); padding: 14px 10px 0; }
.stones { position: relative; display: flex; justify-content: center; gap: 5px; padding-top: 54px; }
.stone { width: 34px; height: 30px; border-radius: 9px; background: var(--sand); border: 2px solid var(--sand-d); box-shadow: 0 3px 0 var(--sand-d); display: grid; place-items: center; font: 600 15px var(--fun); }
.walker { position: absolute; top: 4px; width: 50px; transition: left .22s cubic-bezier(.3, 1.3, .5, 1); }
.path .ground { height: 20px; background: var(--grass); border-top: 4px solid var(--grass-d); margin: -2px -10px 0; }
.commands { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 10px; padding: 16px 12px 18px; }
.commands .lbl { font: 600 12px var(--fun); color: var(--ink-2); text-align: center; margin-bottom: 4px; }
.chip { display: flex; align-items: center; gap: 2px; padding: 12px 10px; border-radius: 14px; font: 800 22px var(--fun); box-shadow: 0 3px 0 var(--shade); }
.chip.f { background: var(--good-soft); color: #2F8A45; }
.chip.b { background: #FFF0DF; color: #D06A08; }
.chip.bad { outline: 3px solid var(--think); }
.eq { font: 700 24px var(--fun); color: var(--ink-2); padding-bottom: 14px; }
.actions { display: flex; gap: 10px; margin-top: 12px; }
.actions .btn { flex: 1; justify-content: center; font-size: 16px; padding: 12px; }
.pad { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.pad button { font: 600 24px var(--fun); padding: 10px 0; border: 0; border-radius: 14px; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 4px 0 var(--shade); font-variant-numeric: tabular-nums; }
.pad button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--shade); }
.pad .del { grid-row: span 2; grid-column: 6; grid-row-start: 1; background: #FFE6E1; color: var(--tomato); box-shadow: 0 4px 0 #F2B6AA; }
.demo-note { font-size: 14px; color: var(--ink-2); margin-top: 12px; text-align: center; }

/* ---------- rewards ---------- */
.rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.rewards .shots { display: flex; gap: 22px; justify-content: center; }
.rewards .shots .phone { position: static; width: 240px; transform: rotate(-3deg); }
.rewards .shots .phone + .phone { transform: rotate(3deg) translateY(40px); }
.rewards ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.rewards li { display: flex; gap: 14px; }
.rewards li .dot { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; font-size: 22px; }
.rewards li b { display: block; font: 600 19px var(--fun); }
.rewards li span { color: var(--ink-2); }
.promise { margin-top: 26px; padding: 16px 18px; border-radius: 18px; background: var(--good-soft); color: #23793D; font-weight: 700; }
@media (max-width: 960px) { .rewards { grid-template-columns: 1fr; } .rewards .shots .phone { width: 42%; max-width: 230px; } }

/* ---------- parents ---------- */
.parents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fact { padding: 26px; }
.fact .big { font: 700 34px var(--fun); color: var(--grape); }
.fact h3 { margin-top: 6px; font-size: 20px; }
.fact p { color: var(--ink-2); margin-top: 8px; font-size: 16px; }
@media (max-width: 860px) { .parents { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { padding: 30px; display: flex; flex-direction: column; }
.plan .tag { font: 600 14px var(--fun); color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.plan .price { font: 700 40px var(--fun); margin: 10px 0 4px; }
.plan .per { color: var(--ink-2); font-size: 15px; }
.plan ul { padding: 0; margin: 20px 0 0; list-style: none; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--grass-d); font: 700 18px var(--fun); }
.plan.featured { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #0f1726; }
.plan.featured .tag, .plan.featured .per { color: #b8c3d8; }
.plan.featured li::before { color: var(--sun); }
.plan .ribbon { align-self: flex-start; font: 600 13px var(--fun); background: var(--sun); color: var(--ink); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
details { background: #fff; border-radius: 20px; box-shadow: 0 4px 0 var(--shade); padding: 4px 22px; }
summary { cursor: pointer; font: 600 19px var(--fun); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--grape); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); padding-bottom: 20px; }

/* ---------- cta + footer ---------- */
.final { text-align: center; }
.final .card { padding: 56px 28px; background: var(--grape); color: #fff; box-shadow: 0 8px 0 #5A3FC0; position: relative; overflow: hidden; }
.final .lead { color: #E6DEFF; margin: 16px auto 0; }
.final .btn { margin-top: 28px; }
footer { padding: 48px 0 60px; color: var(--ink-2); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 48px 24px 80px; }
.legal .card { padding: 40px clamp(22px, 5vw, 48px); }
.legal h1 { font-size: clamp(34px, 5vw, 48px); }
.legal h2 { font-size: 24px; margin: 34px 0 10px; }
.legal p, .legal li { color: #34425b; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .updated { color: var(--ink-2); margin-top: 8px; font-size: 15px; }
.legal .todo { background: #FFF6D4; border-radius: 10px; padding: 2px 6px; }

[hidden] { display: none !important; }
[data-lang-block] { display: none; }
html[lang="sk"] [data-lang-block="sk"], html[lang="en"] [data-lang-block="en"] { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
