/* The landing page, the sign-in pages and the legal pages. The same tokens, font and cards as the app (style.css),
   in the default palette (Základná, ocean). The app's own stylesheet is not loaded here: it is the layout of the app. */
@font-face { font-family: "Playwrite CZ"; font-weight: 100 400; font-display: swap; src: url(fonts/playwrite-cz.woff2) format("woff2"); }
@font-face { font-family: "Playwrite SK"; font-weight: 100 400; font-display: swap; src: url(fonts/playwrite-sk.woff2) format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 500 900; font-display: swap; src: url(fonts/nunito-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-weight: 500 900; font-display: swap; src: url(fonts/nunito-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ================================================================ tokens ================================================================ */
:root {
  --pal: #4F7399;
  --bg: color-mix(in srgb, var(--pal) 6%, #F6F5F2); --card: #FFFFFF; --raised: #ECEAE5; --stroke: rgba(0, 0, 0, .14);
  --field: rgba(0, 0, 0, .42);
  --text: #1A1A1C; --muted: #5F5E65;
  --accent: var(--pal); --on-accent: #FFFFFF; --speak: #7DB7FF; --on-speak: #000000; --shadow: rgba(0, 0, 0, .06);
  --danger: #B3261E;
  --m1: #7C5CE0; --m2: #E6CC70; --m3: #9DC4DE; --m4: #E58E8E; --board: #B08968;
  --radius: 22px;
  --font: "Nunito", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

/* ================================================================ base ================================================================ */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 600; font-size: 1.0625rem; line-height: 1.55; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 800; line-height: 1.12; text-wrap: balance; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 10px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.skip:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ================================================================ buttons ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 18px;
  font-weight: 800; font-size: 1.0625rem; line-height: 1.2; text-align: center; text-decoration: none; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:active:not(:disabled) { transform: translateY(2px); }
.btn-secondary { background: var(--card); color: var(--accent); border-color: var(--accent); }
.btn-secondary:active:not(:disabled) { transform: translateY(2px); }
.btn:disabled { opacity: .55; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 1rem; border-radius: 16px; }
.btn-block { width: 100%; }

/* ================================================================ header ================================================================ */
.site-head { padding: 14px 0; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 1.5rem; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.head-actions { display: flex; align-items: center; gap: 14px; }
.head-actions .link { color: var(--text); font-weight: 800; padding: 10px 2px; }
.lang { display: flex; gap: 4px; padding: 3px; border-radius: 14px; background: var(--raised); }
.lang button { min-width: 44px; min-height: 38px; padding: 0 8px; border-radius: 11px; font-weight: 800; font-size: .9375rem; }
.lang button.on { background: var(--accent); color: var(--on-accent); }
@media (max-width: 559px) { .head-actions .btn { display: none; } .head-actions { gap: 8px; } }
@media (max-width: 359px) { .brand span { display: none; } }

/* ================================================================ the hero ================================================================ */
.hero { padding: 36px 0 64px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(2.25rem, 6.2vw, 3.75rem); font-weight: 900; letter-spacing: -.015em; line-height: 1.04; max-width: 17ch; }
.hero-sub { margin-top: 14px; max-width: 33rem; font-size: 1.1875rem; }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero-actions a:not(.btn) { color: var(--text); font-weight: 800; padding: 10px 0; }
@media (min-width: 900px) { .hero { padding: 56px 0 88px; } .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; } }

.ico { width: 1em; height: 1em; display: inline-block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* The picture of the app in a tablet (landscape, the way the app is meant to be used). */
.device { margin: 0; min-width: 0; }
.tablet { padding: clamp(8px, 1.6vw, 14px); border-radius: clamp(18px, 3vw, 30px); background: #1F2024; box-shadow: 0 18px 40px rgba(0, 0, 0, .22), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tablet img { width: 100%; height: auto; border-radius: clamp(10px, 1.8vw, 18px); background: #F6F5F2; }
/* Two tablets, one for children and one for adults, staggered so the second overlaps the first; the tag names each one. */
.device { display: grid; }
.tablet { position: relative; width: 84%; }
.tablet-kids { justify-self: start; }
.tablet-adults { justify-self: end; margin-top: -17%; box-shadow: 0 22px 48px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tablet-tag { position: absolute; z-index: 1; left: clamp(14px, 3vw, 28px); top: clamp(-18px, -2vw, -14px); padding: 3px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: .9375rem; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }

/* ================================================================ sections ================================================================ */
.section { padding: 56px 0; border-top: 2px solid var(--stroke); }
.section h2 { font-size: clamp(1.7rem, 3.4vw, 2.25rem); font-weight: 900; letter-spacing: -.01em; margin-bottom: 28px; }
@media (min-width: 900px) { .section { padding: 72px 0; } }

.about { display: grid; gap: 20px; }
.about-row { --c: var(--m1); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: center;
  background: var(--card); border: 2px solid var(--stroke); border-radius: 28px; padding: 22px 32px; }
.about-row:nth-child(2) { --c: var(--m2); } .about-row:nth-child(3) { --c: var(--m3); }
.about-card { margin: 0; width: 132px; display: grid; gap: 6px; justify-items: center; padding: 10px 10px 8px; background: #FFFFFF;
  border: 6px solid var(--c); border-radius: 22px; }
.about-card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.about-card figcaption { font-weight: 900; font-size: 1.125rem; line-height: 1.1; }
.about-text { display: grid; gap: 12px 40px; align-content: center; }
@media (min-width: 900px) {
  .about-text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-text h2 { grid-column: 1 / -1; }
  .about-text p:only-of-type { grid-column: 1 / -1; max-width: 80ch; }
}
.about-text h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.875rem); }
.about-text p { color: var(--muted); }
@media (max-width: 599px) { .about-row { grid-template-columns: minmax(0, 1fr); padding: 20px; } .about-card { width: 108px; } }

.steps { list-style: none; padding: 0; display: grid; gap: 20px; counter-reset: step; }
.step { --c: var(--m1); display: grid; gap: 12px; align-content: start; }
.step-pic { height: 128px; border-radius: 22px; border: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--card)); display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px; }
.step-shot { padding: 0; overflow: hidden; }
.step-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.step:nth-child(1) { --c: var(--m1); --on-c: #FFFFFF; } .step:nth-child(2) { --c: var(--m2); } .step:nth-child(3) { --c: var(--m3); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--c); color: var(--on-c, #1A1A1C); font-weight: 900; margin-right: 10px; flex: none; }
.step h3 { font-size: 1.25rem; display: flex; align-items: center; }
.step p { color: var(--muted); }
.mini-chip { height: 64px; padding: 4px 10px; border-radius: 14px; background: var(--raised); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mini-chip img { width: 40px; height: 40px; border-radius: 8px; background: #FFFFFF; padding: 2px; }
.mini-speak { width: 100%; max-width: 190px; height: 56px; border-radius: 18px; background: var(--speak); color: var(--on-speak); border: 2px solid rgba(0, 0, 0, .28); display: flex; align-items: center; justify-content: center; font-size: 28px; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.can { display: grid; gap: 22px 56px; }
.can dt { font-weight: 800; font-size: 1.125rem; }
.can dd { color: var(--muted); }
@media (min-width: 800px) { .can { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


.faq { max-width: 46rem; }
.faq details { border-top: 2px solid var(--stroke); }
.faq details:last-of-type { border-bottom: 2px solid var(--stroke); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 800; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--muted); border-bottom: 3px solid var(--muted); transform: rotate(45deg) translate(-3px, -3px); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 2px 20px; color: var(--muted); max-width: 40rem; }
.faq-more { margin-top: 24px; }

/* ================================================================ footer ================================================================ */
.site-foot { border-top: 2px solid var(--stroke); padding: 28px 0 40px; color: var(--muted); font-size: .9375rem; }
.foot-row { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.foot-row a { color: var(--text); padding: 8px 0; }
.foot-row .copy { margin-left: auto; }

/* ================================================================ sign-in pages ================================================================ */
.auth-main { padding: 12px 20px 56px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.auth-card { width: 100%; max-width: 26rem; background: var(--card); border: 3px solid var(--accent); border-radius: var(--radius); padding: 28px 24px 26px; display: grid; gap: 18px; }
.auth-card h1 { font-size: 1.625rem; font-weight: 900; }
.auth-card .intro { color: var(--muted); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; }
.field .hint { color: var(--muted); font-size: .9375rem; }
.field input {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 2px solid var(--field); background: var(--bg); color: var(--text);
  font: inherit; font-weight: 700; font-size: 1.0625rem;
}
.field input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.pw { position: relative; }
.pw input { padding-right: 96px; }
.pw-toggle { touch-action: manipulation; position: absolute; right: 4px; top: 4px; bottom: 4px; min-width: 84px; padding: 0 12px; border-radius: 10px; color: var(--accent); font-weight: 800; }
.msg { padding: 12px 14px; border-radius: 14px; font-weight: 700; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); }
.msg.error { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, var(--card)); color: var(--text); }
.auth-links { display: grid; gap: 4px; }
.auth-links a { padding: 6px 0; font-weight: 800; }
.auth-links .plain { color: var(--muted); font-weight: 600; }
.fine { color: var(--muted); font-size: .9375rem; line-height: 1.45; }
.auth-done { display: grid; gap: 14px; }
.auth-done h1 { font-size: 1.625rem; font-weight: 900; }

/* ================================================================ legal pages ================================================================ */
.legal { max-width: 44rem; padding: 24px 20px 64px; margin: 0 auto; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 900; }
.legal .draft { margin: 18px 0 8px; }
.legal .updated { color: var(--muted); }
.legal section { margin-top: 30px; }
.legal h2 { font-size: 1.25rem; margin-bottom: 8px; }
.legal p { color: var(--text); }

.contents { display: contents; }
.stack { display: grid; gap: 12px; }

