/* Nezlob tátu — společné styly pro celý web.
   Barvy jsou vytažené z ikony aplikace, aby web a appka vypadaly jako jedna věc. */

:root {
  --sky:    #b3c5e8;   /* podklad ikony */
  --sky-dp: #8fa9d8;
  --ink:    #1b0640;   /* oči a ústa postavy */
  --grass:  #6dbb58;   /* tričko postavy */
  --grass-dp: #4d9439;
  --skin:   #e5a07e;
  --bark:   #4a3728;   /* vlasy postavy */
  --paper:  #f4f7fc;
  --card:   #ffffff;
  --line:   #d9e1f2;
  --muted:  #55648a;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Instrument Sans", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1080px;
  --gap: clamp(1.5rem, 3.5vw, 2.75rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #2f4fbf; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--grass-dp);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.prose { max-width: 62ch; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

/* Očko nad nadpisem — drží drobné popisky ve stejném hlase jako appka. */
.eyebrow {
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .75rem;
}

/* ---------- hlavicka ---------- */

.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 247, 252, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 1.25rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.site-nav a:hover { color: var(--grass-dp); }
.lang { font-family: var(--mono); font-size: .8rem; color: var(--muted); text-decoration: none; letter-spacing: .06em; }
.lang:hover { color: var(--ink); }
@media (max-width: 900px) { .site-nav { display: none; } .lang { margin-left: auto; } }

/* ---------- tlacitka ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--grass); color: #0b2606;
  font-family: var(--display); font-weight: 700; font-size: 1.02rem;
  padding: .85rem 1.5rem; border-radius: 999px;
  text-decoration: none; border: 2px solid var(--grass-dp);
  box-shadow: 0 2px 0 var(--grass-dp);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 var(--grass-dp); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--grass-dp); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); box-shadow: none; }
.btn-ghost:hover { background: var(--sky); box-shadow: none; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; box-shadow: none; }

/* ---------- sekce ---------- */

section { padding: var(--gap) 0; }
.section-head { margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); max-width: 58ch; }

/* ---------- hero ---------- */

.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 em { font-style: normal; color: var(--grass-dp); }
/* Druhá věta nadpisu je menší — v plné velikosti by zabrala půl úvodní obrazovky. */
.hero h1 .h1-sub { display: block; font-size: .47em; font-weight: 700; color: var(--muted); line-height: 1.25; margin-top: .7rem; letter-spacing: -.01em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 46ch; margin-bottom: 1.75rem; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.hero-note { font-size: .9rem; color: var(--muted); margin-top: 1.1rem; }

/* Dvojice telefonu — jedna appka, dve strany. Prerusovana cara mezi nimi je to sparovani. */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; position: relative; }
.pair figure { margin: 0; }
.pair figcaption::after { content: ""; display: block; width: 28px; height: 2px; background: var(--sky-dp); margin: .45rem auto 0; }
.pair figcaption {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-align: center; margin-bottom: .6rem;
}
.shot { border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(27, 6, 64, .45); background: var(--card); }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .pair { max-width: 420px; margin-inline: auto; }
}

/* ---------- tri hlavni veci ---------- */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trio > div { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; }
.trio h3 { margin-bottom: .5rem; }
.trio p { color: var(--muted); font-size: .98rem; }
.trio .mark { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; color: var(--grass-dp); display: block; margin-bottom: .9rem; }
@media (max-width: 780px) { .trio { grid-template-columns: 1fr; } }

/* ---------- pribeh ---------- */

.story { background: var(--sky); border-radius: 28px; padding: clamp(2rem, 5vw, 3.25rem); }
.story .prose { font-size: 1.1rem; }
.story .sign { font-family: var(--display); font-weight: 700; margin-top: 1.25rem; }

/* ---------- mrizka funkci ---------- */

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.75rem 1.25rem; }
.features figure { margin: 0; }
/* Náhledy se ořezávají zespodu na stejnou výšku — jinak se řádky rozjedou,
   protože rodičovské a dětské telefony mají různý poměr stran. */
.features img { border-radius: 14px; border: 1px solid var(--line); background: var(--card); width: 100%; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; }
.features h3 { font-size: 1.02rem; margin: .9rem 0 .3rem; }
.features p { font-size: .92rem; color: var(--muted); }
.who { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--bark); background: #ece2d8; padding: .12rem .45rem; border-radius: 4px; white-space: nowrap; }
/* I na mobilu zůstávají dva sloupce. V jednom by osm telefonů pod sebou
   natáhlo stránku o několik obrazovek a k funkci mluví hlavně popisek. */
@media (max-width: 920px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { gap: 1.5rem .9rem; } .features h3 { font-size: .95rem; } .features p { font-size: .87rem; } }

/* ---------- jak to funguje ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 1rem; border-top: 3px solid var(--ink); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--sky-dp); display: block; margin-bottom: .5rem; }
.steps h3 { margin-bottom: .35rem; }
.steps p { color: var(--muted); font-size: .96rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- kde ochrana konci ---------- */

.limits { background: var(--ink); color: #e8ecf7; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem); }
.limits h2 { color: #fff; }
.limits .eyebrow { color: var(--sky); }
.limits > p { color: #b9c2dc; max-width: 60ch; margin-top: 1.1rem; }
.limits table { width: 100%; border-collapse: collapse; margin-top: 2rem; font-size: .95rem; }
.limits th { text-align: left; font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); font-weight: 400; padding-bottom: .6rem; border-bottom: 1px solid #3c2a63; }
.limits td { padding: .95rem 1.25rem .95rem 0; border-bottom: 1px solid #33245a; vertical-align: top; }
.limits td:last-child { padding-right: 0; color: #b9c2dc; }
.limits tr td:first-child { font-weight: 600; color: #fff; width: 34%; }
/* Odliší situace, které v běžné rodině nenastanou, od těch každodenních. */
.limits .rare { display: inline-block; font-family: var(--mono); font-size: .62rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--sky); border: 1px solid #4b3878; border-radius: 4px; padding: .1rem .4rem; margin-left: .5rem; vertical-align: 2px; white-space: nowrap; }
@media (max-width: 660px) {
  .limits table, .limits tbody, .limits tr, .limits td { display: block; width: 100%; }
  .limits thead { display: none; }
  .limits tr { padding: 1rem 0; border-bottom: 1px solid #33245a; }
  .limits td { border: 0; padding: 0; }
  .limits tr td:first-child { width: auto; margin-bottom: .3rem; }
}

/* ---------- soukromi ---------- */

.privacy-list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }
.privacy-list li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.privacy-list li::before { content: "✓"; position: absolute; left: 0; color: var(--grass-dp); font-weight: 700; }
.privacy-list b { color: var(--ink); font-weight: 600; }
@media (max-width: 660px) { .privacy-list { grid-template-columns: 1fr; } }

/* ---------- cena ---------- */

.price { background: var(--card); border: 2px solid var(--ink); border-radius: 28px; padding: clamp(2rem, 5vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.price .tag { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5.5vw, 3.4rem); line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.price .tag span { display: block; font-family: var(--mono); font-size: .78rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .6rem; white-space: normal; }
.price ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.price li { padding-left: 1.6rem; position: relative; margin-bottom: .4rem; }
.price li::before { content: "•"; position: absolute; left: .4rem; color: var(--grass-dp); }
.price .fine { font-size: .85rem; color: var(--muted); margin-top: 1rem; }
@media (max-width: 720px) { .price { grid-template-columns: 1fr; } }

/* ---------- otazky ---------- */

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--display); font-weight: 700; font-size: 1.08rem; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.5rem; font-weight: 400; color: var(--sky-dp); }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > div { padding: 0 2rem 1.3rem 0; color: var(--muted); max-width: 68ch; }

/* ---------- vyzva a paticka ---------- */

.closing { text-align: center; }
.closing h2 { margin-bottom: 1rem; }
.closing p { color: var(--muted); max-width: 48ch; margin-inline: auto; margin-bottom: 1.75rem; }

.site-foot { background: var(--ink); color: #b9c2dc; padding: 3rem 0 2rem; font-size: .93rem; }
.site-foot a { color: #dbe3f5; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.foot-grid h4 { font-family: var(--display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sky); margin: 0 0 .8rem; font-weight: 700; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: .45rem; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #33245a; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .85rem; color: #8b97b8; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- textove stranky (navod, soukromi) ---------- */

.doc { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.doc h1 { margin-bottom: .5rem; }
.doc h2 { margin: 2.75rem 0 .75rem; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.doc h3 { margin: 1.75rem 0 .4rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .95rem; }
.doc th, .doc td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--sky); font-family: var(--display); font-weight: 700; }
.doc figure { margin: 1.5rem 0; }
.doc figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.doc .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 2rem; }
.doc .muted { color: var(--muted); font-size: .92rem; }
.doc .note { background: var(--sky); border-radius: 16px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.doc code { font-family: var(--mono); font-size: .9em; background: #e7ecf7; padding: .1rem .35rem; border-radius: 4px; }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: .45rem; }
.doc > .wrap { max-width: 780px; }

/* Obsah stránky — u dlouhého návodu je to jediná rozumná navigace. */
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.5rem; margin: 1.5rem 0 2.5rem; }
.toc h2 { font-size: .8rem; font-family: var(--mono); font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .75rem; }
.toc ol { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2rem; }
.toc li { margin-bottom: .3rem; break-inside: avoid; }
@media (max-width: 560px) { .toc ol { columns: 1; } }

/* Snímky obrazovky v návodu — vedle sebe, ať stránka není nekonečná. */
/* Horní hranice 240 px je schválně: přes celou šířku textu by jeden telefon
   zabral dvě obrazovky a návod by se nedal rolovat. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 240px)); justify-content: center; gap: 1.5rem; margin: 1.75rem 0; }
.shots figure { margin: 0; }
.shots img { border-radius: 12px; border: 1px solid var(--line); }
.shots figcaption { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
