/* Shared look for the Zmajko and Slovko sites. Each page sets --accent / --accent-2 on <body>. No web fonts:
   the device's rounded system font keeps the pages fast and free of third-party requests. */
:root {
  --ink: #1f2a44;
  --muted: #5a6680;
  --bg: #f6f9ff;
  --card: #ffffff;
  --line: rgba(31, 42, 68, .08);
  --sky-1: #bfe3ff;
  --sky-2: #eef7ff;
  --meadow: #d7f0c6;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(31, 42, 68, .08);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2ff;
    --muted: #aab4cc;
    --bg: #0f1424;
    --card: #182036;
    --line: rgba(255, 255, 255, .08);
    --sky-1: #16203a;
    --sky-2: #121a2e;
    --meadow: #15241c;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(12px);
       background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { margin-left: auto; display: flex; gap: 4px; }
.top nav a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); background: var(--line); }

/* hero */
.hero { background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 70%, var(--bg)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 24px; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em; }
.hero h1 span { color: var(--accent); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg);
         padding: 12px 20px; border-radius: 14px; font-weight: 800; text-decoration: none; }
.store small { display: block; font-weight: 600; opacity: .75; font-size: .75rem; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--muted);
        font-weight: 700; font-size: .9rem; box-shadow: var(--shadow); }
.phone { width: min(320px, 100%); margin: 0 auto; border-radius: 42px; box-shadow: 0 30px 60px rgba(31, 42, 68, .25);
         transform: rotate(2deg); }

/* sections */
section { padding: 56px 0; }
section h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 0 0 8px; letter-spacing: -.01em; }
section .sub { color: var(--muted); margin: 0 0 28px; font-size: 1.1rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.feature .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 28px;
                 background: color-mix(in srgb, var(--accent) 14%, transparent); margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 1.15rem; }
.feature p { margin: 0; color: var(--muted); }

/* screenshots */
.shots { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; }
.shots img { width: 220px; flex: none; border-radius: 26px; box-shadow: var(--shadow); scroll-snap-align: start; }

/* friends */
.friends { background: linear-gradient(180deg, var(--bg), var(--meadow)); }
.friend { text-align: center; }
.friend img { width: 180px; height: 180px; object-fit: contain; margin: 0 auto 8px; }
.friend h3 { margin: 0; font-size: 1.3rem; color: var(--accent); }
.friend p { margin: 4px 0 0; color: var(--muted); }

/* parents */
.parents ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.parents li { display: flex; gap: 10px; align-items: flex-start; }
.parents li::before { content: "✓"; color: var(--accent-2); font-weight: 900; }

/* text pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 24px; }
.doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 4px; }
.doc .lead { color: var(--muted); margin: 0 0 24px; }
.doc .card { margin-bottom: 20px; }
.doc h2 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
.doc h2:first-child { margin-top: 0; }
.lang { color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer nav { display: flex; gap: 16px; margin-left: auto; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; text-align: left; }
  .phone { width: 240px; transform: none; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 18px; }
  .feature .icon { width: 44px; height: 44px; font-size: 24px; }
  .feature h3 { font-size: 1rem; }
  .feature p { font-size: .92rem; }
  .friends .grid { grid-template-columns: repeat(3, 1fr); }
  .friend img { width: 100%; height: auto; max-width: 120px; }
  .friend p { font-size: .85rem; }
  .parents ul { grid-template-columns: 1fr; }
  .top nav a { padding: 8px 8px; }
}
@media (prefers-reduced-motion: no-preference) {
  .card, .shots img { transition: transform .2s ease; }
  .card:hover { transform: translateY(-2px); }
}

/* language switcher */
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--line); }
.langs a { color: var(--muted); text-decoration: none; font-weight: 800; font-size: .8rem; padding: 4px 8px; border-radius: 999px; }
.langs a[aria-current] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (max-width: 520px) {
  .brand { font-size: 1.05rem; }
  .brand img { width: 30px; height: 30px; }
  .top .wrap { gap: 6px; }
  .top nav a { padding: 6px 6px; font-size: .9rem; }
  .langs a { padding: 3px 6px; font-size: .72rem; }
}

/* the sister app */
.other { display: flex; align-items: center; gap: 20px; text-decoration: none; color: var(--ink); }
.other img { width: 72px; height: 72px; border-radius: 18px; flex: none; }
.other > span:first-of-type { display: flex; flex-direction: column; color: var(--muted); flex: 1; }
.other small { font-weight: 800; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.other strong { color: var(--ink); font-size: 1.4rem; line-height: 1.2; }
.other .go { flex: none; background: var(--accent); color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 999px; }
@media (max-width: 620px) {
  .other { flex-wrap: wrap; gap: 14px; }
  .other img { width: 60px; height: 60px; }
  .other > span:first-of-type { flex-basis: calc(100% - 80px); }
}
