/* Luli – úvodní stránka. Noc a svítání: akvarelové nebe, Rytmus dne jako hlavní prvek.
   Barvy záznamů drží appku (spánek, kojení, lahev, plenka). Bez build kroku. */

/* Písma hostovaná u nás (žádné požadavky na cizí servery). Baloo 2 a Nunito: SIL Open Font License 1.1. */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/baloo2-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: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/baloo2-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; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; 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-style: normal; font-weight: 200 1000; 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; }

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

:root {
  --paper: #FFF8F1;
  --paper-2: #FBEFE6;
  --ink: #2B2740;
  --ink-2: #57526B;
  --line: rgba(43, 39, 64, .13);
  --cta: #4A55B5;
  --cta-ink: #FFFFFF;
  --cta-hover: #3D479F;
  --focus: #4A55B5;
  --frame: #2B2740;
  --sleep: #5F6FD1;
  --feed: #D9667C;
  --bottle: #D99528;
  --diaper: #2F9C8F;
  --sleep-ink: #4651B0;
  --feed-ink: #B44760;
  --diaper-ink: #217A70;
  --track: rgba(255, 255, 255, .55);
  --moon: #FFF7EE;
  --moon-face: #7A4A3A;
  --star: rgba(255, 255, 255, .95);
  --shadow-phone: 0 30px 60px -28px rgba(70, 50, 110, .45), 0 10px 22px -12px rgba(150, 90, 70, .25);
  --night-band: #1E2150;
  --night-ink: #EDE8F7;
  --night-ink-2: #BDB7D6;
  /* noční pás: shora soumrak do noci, dole svítání zpět do papíru */
  --night-bg: linear-gradient(180deg, var(--paper) 0, #F1DCE0 40px, #B9A6CF 85px, #5B5A9A 130px, #2A2D66 175px, var(--night-band) 220px, var(--night-band) calc(100% - 230px), #33356E calc(100% - 175px), #8C7BAE calc(100% - 120px), #EDBBA6 calc(100% - 60px), var(--paper) 100%);

  /* nebe (hero) – mění se podle denní doby návštěvníka, výchozí svítání */
  --sky: linear-gradient(180deg, #C6C9F1 0%, #E3D3EE 34%, #F9DCD2 66%, var(--paper) 100%);
  --sky-glow: radial-gradient(70% 45% at 18% 78%, rgba(255, 214, 180, .7), rgba(255, 214, 180, 0) 70%);
  --stars: 0;

  --font-head: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1140px;
  --gutter: 20px;
}
:root[data-sky="day"]   { --sky: linear-gradient(180deg, #CBE3F6 0%, #E4EEF8 45%, #FBF1EA 75%, var(--paper) 100%); --sky-glow: radial-gradient(60% 40% at 80% 20%, rgba(255, 246, 220, .8), rgba(255, 246, 220, 0) 70%); }
:root[data-sky="dusk"]  { --sky: linear-gradient(180deg, #CDBFEA 0%, #EBC9DE 38%, #FAD5C8 68%, var(--paper) 100%); --sky-glow: radial-gradient(70% 45% at 85% 80%, rgba(255, 200, 170, .65), rgba(255, 200, 170, 0) 70%); }
:root[data-sky="night"] { --sky: linear-gradient(180deg, #AEB4E6 0%, #CFCDEF 40%, #EADDEB 72%, var(--paper) 100%); --sky-glow: none; --stars: .9; }

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15173A;
    --paper-2: #1C1F48;
    --ink: #EEE9F6;
    --ink-2: #BAB4D2;
    --line: rgba(238, 233, 246, .14);
    --cta: #B4BCFF;
    --cta-ink: #15173A;
    --cta-hover: #C9CEFF;
    --focus: #C9CEFF;
    --frame: #0B0C24;
    --sleep: #9AA6F0;
    --feed: #F08DA0;
    --bottle: #F0B654;
    --diaper: #5FC7B9;
    --sleep-ink: #AEB8FF;
    --feed-ink: #F6A3B3;
    --diaper-ink: #7AD6CA;
    --track: rgba(255, 255, 255, .07);
    --moon: #FFF1DF;
    --moon-glow: rgba(255, 236, 214, .32);
    --shadow-phone: 0 30px 60px -26px rgba(0, 0, 0, .6);
    --night-band: #0F1130;
    --night-bg: linear-gradient(180deg, var(--paper) 0, var(--night-band) 140px, var(--night-band) calc(100% - 160px), #2A2350 calc(100% - 70px), var(--paper) 100%);
    --sky: linear-gradient(180deg, #0D0F2C 0%, #1A1D4A 45%, #262553 75%, var(--paper) 100%);
    --sky-glow: radial-gradient(70% 40% at 18% 85%, rgba(214, 140, 130, .35), rgba(214, 140, 130, 0) 70%);
    --stars: .9;
  }
  :root[data-sky="day"]   { --sky: linear-gradient(180deg, #1C2456 0%, #263068 45%, #222656 75%, var(--paper) 100%); --sky-glow: radial-gradient(60% 40% at 80% 20%, rgba(170, 190, 255, .25), rgba(170, 190, 255, 0) 70%); --stars: .35; }
  :root[data-sky="dusk"]  { --sky: linear-gradient(180deg, #14153A 0%, #2A2257 45%, #3A2A58 75%, var(--paper) 100%); --sky-glow: radial-gradient(70% 40% at 85% 85%, rgba(230, 140, 130, .35), rgba(230, 140, 130, 0) 70%); --stars: .6; }
  :root[data-sky="night"] { --sky: linear-gradient(180deg, #080920 0%, #12143A 45%, #1B1D48 75%, var(--paper) 100%); --sky-glow: none; --stars: 1; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--sleep-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(2.35rem, 9.6vw, 4.4rem); }
h2 { font-size: clamp(1.75rem, 6.4vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
p { max-width: 36em; text-wrap: pretty; }

/* ---------- tlačítko ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 56px; padding: 0 30px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; line-height: 1;
  color: var(--cta-ink); background: var(--cta);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 14px 26px -14px rgba(74, 85, 181, .8);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn img { width: 26px; height: 26px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--sky); padding: 0 0 64px; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--sky-glow); z-index: -1; }
.stars { position: absolute; top: 0; left: 42%; right: 0; height: 112px; z-index: -1; opacity: var(--stars); pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--star); box-shadow: 0 0 6px var(--star); }

.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: 1.7rem; letter-spacing: -.01em; line-height: 1; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 6px 14px -8px rgba(138, 63, 38, .6); }
.top-link { font-weight: 700; font-size: .98rem; color: var(--ink); text-decoration: none; padding: 10px 2px; }
.top-link:hover { text-decoration: underline; }

.moon { position: absolute; z-index: -1; right: 8px; top: 8px; width: 104px; height: 104px; pointer-events: none; }
.moon::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(closest-side, var(--moon-glow, rgba(255, 244, 228, .85)), rgba(255, 244, 228, 0)); }
:root[data-sky="day"] .moon { opacity: .55; }
.moon svg { position: relative; width: 100%; height: 100%; }

.hero-text { position: relative; padding-top: 58px; }
.top-link { display: none; }
.hero h1 { max-width: 9.5em; }
/* příběh: psaný jako krátký dopis od táty */
.letter { margin-top: 20px; max-width: 34em; }
.lead { font-size: 1.15rem; line-height: 1.6; color: var(--ink); }
.lead + .lead { margin-top: .7em; }
.sign { margin-top: 12px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.3; color: var(--ink-2); }
.what { margin-top: 22px; font-weight: 700; color: var(--ink); max-width: 30em; }
.cta-row { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.free { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; line-height: 1.2; color: var(--diaper-ink); background: rgba(47, 156, 143, .14); }
.free::before { content: ""; width: 9px; height: 5px; margin: -3px 2px 0 4px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); }
.soon { margin-top: 16px; font-size: .95rem; color: var(--ink-2); max-width: 30em; line-height: 1.45; }

/* ---------- Rytmus dne ---------- */
.rhythm { margin-top: 40px; }
.rhythm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rhythm-head h2, .rhythm-head h3 { font-size: 1.35rem; font-weight: 600; }
.rhythm-sm { margin-top: 30px; }
.rhythm-sm .rhythm-head h3 { font-size: 1.15rem; }
.rhythm-sm .chart { --row: 12px; --gap: 10px; }
.rhythm-sm .legend { font-size: .85rem; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; padding: 0; font-size: .9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 18px; height: 9px; border-radius: 6px; background: var(--sleep); opacity: .85; }
.legend .lf { width: 5px; height: 14px; background: var(--feed); border-radius: 3px; }
.legend .lb { width: 5px; height: 14px; background: var(--bottle); border-radius: 3px; }

.chart { --row: 15px; --gap: 11px; --lab: 2.9em; position: relative; }
.axis { position: relative; height: 1.3em; margin-left: var(--lab); font-size: .78rem; color: var(--ink-2); }
.axis span { position: absolute; transform: translateX(-50%); }
.axis span:first-child { transform: none; }
.axis small { font-size: 1em; }
@media (max-width: 379px) { .axis small { display: none; } }
.axis span:last-child { transform: translateX(-100%); }
.row { display: flex; align-items: center; height: var(--row); margin-top: var(--gap); }
.row b { flex: 0 0 var(--lab); font-weight: 600; font-size: .78rem; color: var(--ink-2); line-height: 1; }
.track { position: relative; flex: 1; height: 100%; border-radius: 999px; background: var(--track); }
.bars { position: absolute; inset: 0; filter: url(#wc); }
.row.today .bars { -webkit-clip-path: inset(-60% var(--rest, 0%) -60% 0); clip-path: inset(-60% var(--rest, 0%) -60% 0); }
.bars i { position: absolute; top: 0; bottom: 0; left: var(--l); }
.bars .s {
  width: var(--w);
  background:
    radial-gradient(80% 90% at 40% 45%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 70%),
    var(--sleep);
  opacity: .78;
  border-radius: 6px 9px 7px 10px / 8px 6px 9px 7px;
  box-shadow: inset 0 0 0 1.5px rgba(60, 70, 170, .28), inset 0 0 6px rgba(60, 70, 170, .25);
}
.bars .s:nth-child(3n) { border-radius: 9px 6px 10px 7px / 7px 9px 6px 8px; opacity: .72; }
.bars .s:nth-child(4n+1) { opacity: .88; }
.bars .f, .bars .b { width: 4px; margin-left: -2px; top: -28%; bottom: -28%; border-radius: 3px; background: var(--feed); opacity: .92; }
.bars .b { background: var(--bottle); }
.now { position: absolute; top: 50%; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: var(--sleep); box-shadow: 0 0 0 3px var(--paper), 0 0 14px 4px rgba(95, 111, 209, .55); left: calc(100% - var(--rest, 0%)); }
.row:not(.today) .now, .no-js .now { display: none; }
.chart-note { margin-top: 14px; font-size: .88rem; color: var(--ink-2); }

/* jednorázové „vykreslení“ noci zleva doprava */
@media (prefers-reduced-motion: no-preference) {
  /* kreslí se, až když graf doroluje na obrazovku (třída .in z luli.js) */
  .js .row .track { -webkit-clip-path: inset(-60% 100% -60% 0); clip-path: inset(-60% 100% -60% 0); }
  .js .rhythm.in .row .track { animation: draw 1s cubic-bezier(.45, .05, .2, 1) forwards; animation-delay: calc(var(--i, 0) * .12s + .1s); }
  .js .row.today .now { opacity: 0; }
  .js .rhythm.in .row.today .now { animation: appear .5s ease forwards; animation-delay: 1.3s; }
}
@keyframes draw { to { -webkit-clip-path: inset(-60% 0 -60% 0); clip-path: inset(-60% 0 -60% 0); } }
@keyframes appear { to { opacity: 1; } }

/* ---------- příběhy ---------- */
.story { padding: 72px 0 8px; overflow: hidden; }
.story .wrap { display: grid; gap: 34px; align-items: center; }
.story h2 { max-width: 13em; }
.story p { margin-top: 14px; color: var(--ink); }
.points { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 26px; color: var(--ink); }
.points li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 50% 45% 55% 50%; background: var(--dot, var(--sleep)); opacity: .85; }

.phone {
  position: relative; width: min(270px, 74vw); margin: 0 auto;
  padding: 9px; border-radius: 46px; background: var(--frame);
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; height: auto; border-radius: 38px; }
@media (max-width: 719px) {
  .phone { width: min(300px, 82vw); }
  .phone-wrap { max-height: min(500px, 136vw); overflow: hidden; padding-top: 4px;
    -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
}
.phone-wrap { position: relative; isolation: isolate; }
.phone-wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 125%; max-width: 440px; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 48% 52% 46% 54% / 55% 45% 55% 45%;
  background: radial-gradient(closest-side, var(--blob, rgba(95, 111, 209, .22)), rgba(255, 255, 255, 0));
}
.story-tummy { --dot: var(--bottle); }
.story-tummy .phone-wrap { --blob: rgba(217, 149, 40, .22); }
.story-tap { --dot: var(--feed); }
.story-tap .phone-wrap { --blob: rgba(217, 102, 124, .2); }
.story-stats .phone-wrap { --blob: rgba(47, 156, 143, .2); }
.story-stats { --dot: var(--diaper); }

/* noční příběh – tmavý pás v obou režimech */
.story-night { background: var(--night-bg); padding: 170px 0 170px; margin-top: 30px; color: var(--night-ink); }
.story-night h2, .story-night p, .story-night .points li { color: var(--night-ink); }
.story-night .lede-2 { color: var(--night-ink-2); }
.story-night { --dot: #9AA6F0; }
@media (prefers-color-scheme: dark) { .story:not(.story-night) .phone img { filter: brightness(.9); } }
.story-night .phone { background: #08091F; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); }
.story-night .phone-wrap { --blob: rgba(184, 130, 110, .25); }
.story-night a { color: #C9CEFF; }

/* ---------- ukázka „ťukni a zapiš“ ---------- */
.demo { margin-top: 6px;
  --m-bg: #FBF7F2; --m-card: #FFFFFF; --m-ink: #2E2A26; --m-ink-2: #75695F; --m-track: #EDE6DD; --m-new: #E6E9FB; }
.demo-phones { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 420px; margin: 0 auto; padding-top: 40px; }
.demo-arc { position: absolute; top: 0; left: 25%; width: 50%; height: auto; overflow: visible; pointer-events: none; }
.demo-arc path { fill: none; stroke: var(--sleep); stroke-width: 2; stroke-dasharray: 1 7; stroke-linecap: round; opacity: .55; }
.demo-arc circle { fill: var(--sleep); opacity: 0; }
.demo-arc circle.go { opacity: 1; }
.demo-col { min-width: 0; }
.story .demo-who { text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; line-height: 1.1; margin: 0 auto 10px; }
.demo-who small { display: block; font-family: var(--font-body); font-weight: 600; font-size: .78rem; color: var(--ink-2); margin-top: 2px; }
.mini { position: relative; padding: 7px; border-radius: 30px; background: var(--frame); box-shadow: var(--shadow-phone); }
.mini-screen { position: relative; overflow: hidden; border-radius: 24px; background: var(--m-bg); color: var(--m-ink); min-height: 236px; padding: 16px 10px 12px; }
.story .mini-screen p { margin: 0; color: inherit; }
.mini-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; font-size: .72rem; color: var(--m-ink-2); }
.story .mini-screen .mini-bar { color: var(--m-ink-2); }
.mini-bar b { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--m-ink); }
.mini-strip { position: relative; height: 12px; margin: 10px 0 10px; border-radius: 99px; background: var(--m-track); }
.mini-strip i { position: absolute; top: 0; bottom: 0; left: var(--l); }
.mini-strip .s { width: var(--w); background: var(--sleep); opacity: .85; border-radius: 99px; }
.mini-strip .f { width: 3px; margin-left: -1.5px; top: -3px; bottom: -3px; background: var(--feed); border-radius: 2px; }
.mini-strip .d { width: 6px; height: 6px; top: 3px; margin-left: -3px; background: var(--diaper); border-radius: 50%; }
.mini-list { list-style: none; padding: 0; display: grid; gap: 6px; font-size: .76rem; line-height: 1.25; }
.mini-list li { display: grid; grid-template-columns: 2.7em 1fr; gap: 4px; align-items: start; background: var(--m-card); border-radius: 10px; padding: 6px 7px; }
.mini-list time { font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-list span { min-width: 0; }
.mini-list em { display: block; font-style: normal; color: var(--m-ink-2); font-size: .7rem; }
.mini-list .new { box-shadow: 0 0 0 2px rgba(95, 111, 209, .5); }
.mini-note {
  position: absolute; left: 5px; right: 5px; top: 5px; z-index: 2;
  padding: 7px 8px; border-radius: 14px; background: rgba(255, 255, 255, .97); color: #2E2A26;
  box-shadow: 0 10px 22px -8px rgba(40, 30, 60, .5); font-size: .72rem; line-height: 1.25;
  display: grid; grid-template-columns: 22px 1fr; gap: 7px; align-items: center;
}
.mini-note img { width: 22px; height: 22px; border-radius: 6px; }
.mini-note b { display: block; font-weight: 800; }
.mini-note[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .mini-note { animation: drop .35s cubic-bezier(.2, .8, .2, 1); }
  .mini-list .new { animation: glow 1.2s ease; }
}
@media (max-width: 359px) {
  .mini-list li { display: block; }
  .mini-list time { margin-right: 5px; }
}
@keyframes drop { from { transform: translateY(-120%); opacity: 0; } }
@keyframes glow { from { background: var(--m-new); } }
.story .demo-ask { text-align: center; margin: 22px auto 12px; font-weight: 700; max-width: 20em; }
.demo-btns { display: flex; justify-content: center; gap: 8px; }
.demo-btns button {
  flex: 1 1 0; max-width: 132px; min-height: 52px; min-width: 0; padding: 4px 8px; border: 0; cursor: pointer; line-height: 1.15;
  font-weight: 700; font-size: 1rem; border-radius: 18px;
  background: var(--bg); color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05);
  transition: transform .1s ease;
}
.demo-btns [data-k="sleep"] { --bg: #ECEEFB; --fg: #3B47A8; }
.demo-btns [data-k="feed"] { --bg: #FCEBEE; --fg: #A63B55; }
.demo-btns [data-k="diaper"] { --bg: #E2F3F0; --fg: #1F7068; }
.demo-btns button:active { transform: scale(.96); }
.demo-btns button:disabled { opacity: .45; cursor: default; }
.demo-btns .reset { flex: 0 0 auto; --bg: transparent; --fg: var(--ink-2); min-width: 0; text-decoration: underline; text-underline-offset: .18em; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .demo { --m-bg: #1E2148; --m-card: #2A2E5C; --m-ink: #EEE9F6; --m-ink-2: #B3ADD0; --m-track: #33376A; --m-new: #3A4290; }
  .demo-btns [data-k="sleep"] { --bg: rgba(154, 166, 240, .16); --fg: #C6CDFF; }
  .demo-btns [data-k="feed"] { --bg: rgba(240, 141, 160, .16); --fg: #F8B5C2; }
  .demo-btns [data-k="diaper"] { --bg: rgba(95, 199, 185, .16); --fg: #8FE0D5; }
  .demo-btns button { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
}

/* ---------- a k tomu ---------- */
.more { padding: 88px 0 20px; }
.more h2 { max-width: 14em; }
.more-list { list-style: none; padding: 0; margin-top: 30px; display: grid; gap: 26px 40px; }
.more-list li { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; align-items: start; }
.more-list svg { width: 44px; height: 44px; grid-row: span 2; }
.more-list h3 { padding-top: 2px; }
.more-list p { color: var(--ink-2); margin-top: 3px; font-size: 1rem; }
.ico-bg { fill: var(--ib); opacity: .2; }
.ico-ln { fill: none; stroke: var(--il); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- soukromí ---------- */
.fair { padding: 84px 0 30px; }
.fair-box { position: relative; border-radius: 34px 40px 32px 44px / 40px 34px 44px 32px; background: var(--paper-2); padding: 36px 22px 30px; overflow: hidden; isolation: isolate; }
.fair-box::after { content: ""; position: absolute; z-index: -1; right: -80px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(closest-side, rgba(95, 111, 209, .18), rgba(95, 111, 209, 0)); }
.fair-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 16px; }
.fair-list li { padding-left: 34px; position: relative; }
.fair-list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%; background: var(--diaper); opacity: .18; }
.fair-list li::after { content: ""; position: absolute; left: 6px; top: calc(.15em + 6px); width: 9px; height: 5px; border-left: 2.5px solid var(--diaper-ink); border-bottom: 2.5px solid var(--diaper-ink); transform: rotate(-45deg); }
.fair-list b { font-weight: 700; }
.medical { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 1rem; }

/* ---------- FAQ ---------- */
.faq { padding: 80px 0 30px; }
.faq-list { margin-top: 22px; max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 2px; font-weight: 700; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: 0 0 auto; width: 10px; height: 10px; border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 2px 20px; color: var(--ink-2); }

/* ---------- závěr a patička ---------- */
.end { padding: 70px 0 80px; text-align: center; }
.end .wrap { display: flex; flex-direction: column; align-items: center; }
.end-moon { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 14px 28px -14px rgba(138, 63, 38, .7); }
.end h2 { margin-top: 20px; max-width: 12em; }
.end p { margin: 12px auto 0; color: var(--ink-2); }
.end .btn { margin-top: 26px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: .95rem; color: var(--ink-2); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--ink-2); }
.foot a:hover { color: var(--ink); }
.lang { display: flex; gap: 4px; list-style: none; padding: 0; }
.lang a, .lang span { display: inline-block; padding: 6px 12px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.lang [aria-current] { background: var(--paper-2); color: var(--ink); }

/* ---------- větší displeje ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 1.125rem; }
  .moon { width: 250px; height: 250px; right: 6%; top: 70px; }
  .top-link { display: inline-block; }
  .hero-text { padding-top: 90px; }
  .chart { --row: 22px; --gap: 14px; --lab: 3em; }
  .axis, .row b { font-size: .85rem; }
  .lead { font-size: 1.3rem; }
  .rhythm-sm .chart { --row: 16px; --gap: 12px; }
  .story { padding-top: 110px; }
  .story .wrap { grid-template-columns: 1fr 1fr; gap: 56px; }
  .story-flip .phone-wrap, .story-flip .demo { order: -1; }
  .stars { left: 52%; height: 360px; }
  .phone { width: 290px; }
  .story-night { padding: 220px 0 220px; }
  .more-list { grid-template-columns: 1fr 1fr; }
  .fair-box { padding: 54px 56px 46px; }
  .fair-list { grid-template-columns: 1fr 1fr; gap: 18px 40px; }
  .demo-phones { gap: 22px; }
  .mini-screen { min-height: 330px; padding: 32px 12px 14px; }
}
@media (min-width: 1040px) {
  .hero h1 { font-size: 4.6rem; }
  .moon { width: 300px; height: 300px; right: 10%; top: 60px; }
  .more-list { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
