/* myabc.app — shared styles for the home page and /sukromie/.
   No framework, no third-party request. Fonts are self-hosted (fonts.css). */

:root {
  --bg: #FFF8EC;
  --paper: #FFFDF8;
  --ink: #2E2A3B;
  --ink-2: #5B5468;
  --ink-3: #6E6779;
  --line: #EADFCB;
  --red: #E5533D;
  --yellow: #F2A93B;
  --green: #3FA36B;
  --blue: #3B7DD8;
  --red-ink: #B9371F;     /* text-safe shades (≥ 4.5:1 on --bg) */
  --green-ink: #23774A;
  --blue-ink: #2559A8;
  --radius: 22px;
  --shadow: 0 2px 0 rgba(46, 42, 59, .06), 0 10px 28px rgba(46, 42, 59, .08);
  --head: 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 8px;
}
h1, h2, h3 { font-family: var(--head); font-weight: 800; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 5.5vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top { padding: 14px 0; }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.top__logo { display: block; line-height: 0; }
.top__logo img { width: 168px; height: auto; }
.top__nav { display: flex; gap: 4px 16px; flex-wrap: wrap; font-weight: 700; font-size: .98rem; }
.top__nav a { color: var(--ink-2); text-decoration: none; padding: 6px 2px; }
.top__nav a:hover { color: var(--ink); text-decoration: underline; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { padding: 28px 0 40px; }
.hero h1 { font-size: clamp(2rem, 8vw, 3.5rem); max-width: 17ch; letter-spacing: -.5px; }
.hero h1 .u { background: linear-gradient(transparent 62%, rgba(242, 169, 59, .45) 62%); padding: 0 .08em; }
.hero .lead { font-size: clamp(1.1rem, 3.6vw, 1.3rem); color: var(--ink-2); max-width: 36ch; }
.hero__trio { display: flex; gap: 14px; margin: 26px 0 26px; flex-wrap: wrap; }
.hero__trio a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-family: var(--head); font-size: 1.15rem;
  background: var(--paper); border: 2px solid var(--line); border-radius: 18px; padding: 6px 14px 6px 6px; }
.hero__trio a:hover { border-color: var(--ink-3); }
.hero__trio img { width: 44px; height: 44px; border-radius: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.facts li { background: #fff; border: 2px dashed var(--line); border-radius: 999px; padding: 4px 14px; font-weight: 700; font-size: .95rem; color: var(--ink-2); }

/* ── sections ───────────────────────────────────────────────────────────── */
.band { padding: 44px 0; }
.band--paper { background: var(--paper); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.kicker { font-family: var(--head); font-weight: 700; color: var(--red-ink); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; margin-bottom: .4em; }

/* story */
.story p { font-size: 1.1rem; }
.story .sig { font-family: var(--head); font-weight: 700; font-size: 1.25rem; color: var(--ink-2); margin-top: 1.4em; }
.story .why { border-left: 5px solid var(--yellow); padding: 4px 0 4px 16px; margin: 1.6em 0; }
.story .why p:last-child { margin-bottom: 0; }

/* app cards */
.apps { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .apps { grid-template-columns: repeat(3, 1fr); } }
.app { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; border-top-width: 8px; }
.app--slovko { border-top-color: var(--red); }
.app--rrr { border-top-color: var(--green); }
.app--reddy { border-top-color: var(--blue); }
.app__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.app__head img { width: 72px; height: 72px; border-radius: 18px; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(46, 42, 59, .15); }
.app__head h3 { margin: 0; font-size: 1.6rem; }
.app__head .age { display: block; font-family: var(--body); font-weight: 700; font-size: .88rem; color: var(--ink-3); }
.app p { color: var(--ink-2); }
.app__more { font-weight: 800; margin-top: auto; margin-bottom: 14px; }
.app__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Google Play badge. Self-drawn while the apps are in review ("čoskoro"); when an
   app goes live tools/sync-apps.py rewrites every data-play anchor to the store. */
.play { display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none;
  border-radius: 12px; padding: 8px 16px 8px 12px; min-height: 48px; line-height: 1.1; }
.play svg { width: 22px; height: 24px; flex: 0 0 auto; }
.play span { display: flex; flex-direction: column; font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.play small { font-family: var(--body); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.play--soon { background: #fff; color: var(--ink); border: 2px dashed var(--ink-3); }
.play:hover { filter: brightness(1.08); }

/* teachers + support */
.two { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .two { grid-template-columns: 1fr 1fr; } }
.box { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; }
.box--support { background: #FFF1D6; border-color: #F3D59C; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 14px; font-weight: 800;
  text-decoration: none; background: var(--blue-ink); color: #fff; border: 0; font-size: 1rem; font-family: var(--body); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink-3); }
.btn[aria-disabled="true"] { background: #fff; color: var(--ink-2); border: 2px dashed var(--ink-3); cursor: default; }
.tiers { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 8px; }
.tiers li { display: flex; justify-content: space-between; gap: 12px; background: #fff; border-radius: 12px; padding: 8px 14px; }
.tiers b { font-family: var(--head); }
.tiers span { color: var(--ink-2); font-size: .95rem; text-align: right; }

/* faq */
.faq details { background: var(--paper); border: 2px solid var(--line); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 800; list-style: none; position: relative; padding-right: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 9px; font: 800 1.5rem var(--head); color: var(--ink-3); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 4px; color: var(--ink-2); }

/* footer */
.foot { padding: 32px 0 44px; color: var(--ink-3); font-size: .95rem; border-top: 2px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.foot img { width: 120px; height: auto; }
.foot a { color: var(--ink-2); }
.foot p { margin: 0; }

/* ── privacy policy ─────────────────────────────────────────────────────── */
.doc { padding: 16px 0 48px; }
.doc h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
.doc h2 { font-size: clamp(1.35rem, 4.5vw, 1.7rem); margin-top: 1.6em; }
.doc h3 { margin-top: 1.2em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--ink-3); font-weight: 700; }
.doc .summary { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.doc .summary ul { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: .97rem; margin: .5em 0 1em; }
.doc th, .doc td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-family: var(--head); }
.tablewrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
