/* Veřejný web Tevonio – společný styl stránek (index, zpracovatelé, podmínky) */
  :root { --navy: #1f2a44; --navy2: #2c3a5c; --fur: #c8742c; --furDark: #7a3d10; --muzzle: #e7a865; --nose: #2a1a12;
          --collar: #2f6fd6; --tag: #f2c230; --cream: #fff3e6; --bg: #fbf8f4; --text: #2a2f3a; --muted: #5f6675; }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 -apple-system, "Segoe UI", Roboto, sans-serif; }
  h1, h2, h3, .brand { font-family: Nunito, sans-serif; font-weight: 800; color: var(--navy); line-height: 1.2; }
  h2 { font-size: 32px; margin: 0 0 12px; text-align: center; }
  .lead { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
  section { padding: 72px 0; }
  a { color: var(--collar); }
  .btn { display: inline-block; padding: 14px 22px; border-radius: 12px; font-weight: 700; text-decoration: none; }
  .btn-primary { background: var(--collar); color: #fff; }
  .btn-ghost { color: var(--navy); border: 2px solid #d5d9e2; }
  .todo { background: #fff2a8; padding: 0 4px; border-radius: 4px; }

  /* záhlaví */
  header { position: sticky; top: 0; background: rgba(251,248,244,.92); backdrop-filter: blur(8px); z-index: 10; border-bottom: 1px solid #eee5da; }
  header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
  .brand { display: flex; align-items: center; gap: 8px; font-size: 26px; text-decoration: none; }
  nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
  nav a { color: var(--text); text-decoration: none; }
  nav .btn { padding: 9px 14px; font-size: 15px; }
  /* Demo a Přihlásit se zvýrazněné obrysem; od hlavní výzvy odděleny mezerou a svislou čarou */
  nav .nav-strong { font-weight: 700; color: var(--navy); border: 2px solid #d5d9e2; border-radius: 10px; padding: 7px 12px; }
  nav .nav-strong:hover { border-color: var(--collar); color: var(--collar); }
  nav .btn-primary { position: relative; margin-left: 18px; }
  nav .btn-primary::before { content: ""; position: absolute; left: -21px; top: 18%; height: 64%; border-left: 1px solid #ddd2c4; }
  @media (max-width: 760px) { nav a:not(.btn) { display: none; } }

  /* úvod */
  .hero { padding: 64px 0 48px; }
  .hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: center; }
  .hero h1 { font-size: 46px; margin: 0 0 16px; }
  .hero p { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
  .hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .hero small { display: block; margin-top: 12px; color: var(--muted); }
  @media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero h1 { font-size: 36px; } }

  /* náhled aplikace (ilustrace z vymyšlených dat) */
  .mock { background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(31,42,68,.14); overflow: hidden; font-size: 13px; }
  .mock-bar { background: var(--navy); color: #fff; padding: 10px 14px; display: flex; gap: 6px; align-items: center; }
  .mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ffffff55; }
  .mock-bar span { margin-left: 10px; opacity: .85; }
  .mock table { width: 100%; border-collapse: collapse; }
  .mock th, .mock td { text-align: left; padding: 8px 8px; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
  .mock th { color: var(--muted); font-weight: 600; background: #fafbfc; }
  .pill { padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
  .ok { background: #e3f5e6; color: #217a35; } .warn { background: #fff1d6; color: #9a6400; } .bad { background: #fde2e2; color: #b42323; }
  .mock-wrap { overflow-x: auto; }

  /* problémy */
  .cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .card { background: #fff; border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(31,42,68,.06); }
  .card .q { color: #b4561a; font-weight: 700; margin-bottom: 8px; }
  @media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } }

  /* funkce */
  .features { background: #fff; }
  .grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .feat { padding: 20px; border-radius: 16px; background: var(--bg); }
  .feat .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; font-size: 22px; margin-bottom: 10px; }
  .feat h3 { font-size: 18px; margin: 0 0 6px; }
  .feat p { margin: 0; font-size: 15px; color: var(--muted); }
  @media (max-width: 960px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 520px) { .grid4 { grid-template-columns: 1fr; } }

  /* asistent */
  .ai .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .ai h2 { text-align: left; }
  .chat { background: #fff; border-radius: 16px; padding: 18px; box-shadow: 0 12px 34px rgba(31,42,68,.1); display: grid; gap: 10px; font-size: 15px; }
  .msg { padding: 10px 14px; border-radius: 14px; max-width: 88%; }
  .me { background: var(--collar); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
  .bot { background: #f2f4f8; border-bottom-left-radius: 4px; display: flex; gap: 10px; }
  .bot svg { flex: none; }
  @media (max-width: 860px) { .ai .wrap { grid-template-columns: 1fr; } }

  /* kroky */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
  .step { background: #fff; border-radius: 16px; padding: 24px; position: relative; }
  .step::before { counter-increment: s; content: counter(s); position: absolute; top: -16px; left: 24px; width: 36px; height: 36px; border-radius: 50%;
                  background: var(--fur); color: #fff; font: 800 18px/36px Nunito, sans-serif; text-align: center; }
  .step h3 { margin: 8px 0 6px; font-size: 19px; }
  .step p { margin: 0; color: var(--muted); font-size: 15px; }
  .dog-line { display: block; margin: 0 auto 36px; max-width: 100%; }
  @media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

  /* ceník */
  .price { background: #fff; }
  .price-box { max-width: 560px; margin: 0 auto; border: 2px solid var(--cream); border-radius: 20px; padding: 28px; text-align: center; }
  .price-box ul { text-align: left; display: inline-block; margin: 8px 0 20px; padding-left: 20px; }
  .price-tag { display: inline-block; background: var(--cream); color: #8a4a12; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 99px; margin: 0 0 10px; }
  .price-main { font-size: 20px; margin: 0 0 8px; }
  .price-main b { font-family: Nunito, sans-serif; font-size: 34px; color: var(--navy); }
  .price-or, .price-note { color: var(--muted); font-size: 15px; }

  /* reference */
  blockquote { max-width: 720px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 28px 32px; font-size: 19px; border-left: 6px solid var(--fur); }
  blockquote footer { margin-top: 12px; font-size: 15px; color: var(--muted); }

  /* otázky */
  .faq { max-width: 760px; margin: 0 auto; }
  details { background: #fff; border-radius: 12px; padding: 16px 20px; margin-bottom: 10px; }
  summary { cursor: pointer; font-weight: 700; color: var(--navy); }
  details p { margin: 10px 0 0; color: var(--muted); }

  /* závěr a patička */
  .final { background: var(--navy); color: #fff; text-align: center; }
  .final h2 { color: #fff; }
  .final p { color: #c9d0e0; }
  footer.site { background: #161f33; color: #aab3c7; font-size: 14px; padding: 32px 0; }
  footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; }
  footer.site a { color: #dfe5f2; }

  /* oživení */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
  .card, .feat, .step { transition: transform .2s ease, box-shadow .2s ease; }
  .card:hover, .feat:hover, .step:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31,42,68,.12); }
  .feat:hover .ic { animation: bounce .5s ease; }
  @keyframes bounce { 40% { transform: translateY(-6px) rotate(-8deg); } 70% { transform: translateY(1px); } }
  .hero { position: relative; overflow: hidden; }
  .blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .45; z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
  .blob.b1 { width: 420px; height: 420px; background: #ffd9b0; top: -120px; right: -80px; }
  .blob.b2 { width: 360px; height: 360px; background: #cfe0ff; bottom: -160px; left: -100px; animation-delay: -6s; }
  @keyframes drift { to { transform: translate(40px, 30px) scale(1.1); } }
  .hero .wrap > *, .hero .mock { position: relative; }
  .btn-primary { transition: transform .15s, box-shadow .15s; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(47,111,214,.35); }

  /* náhled: živá platba */
  .mock { position: relative; }
  .mock tr.flash td { animation: flash 1.2s ease; }
  @keyframes flash { 0% { background: #d9f2de; } 100% { background: transparent; } }
  .toast { position: absolute; right: 12px; bottom: 12px; background: var(--navy); color: #fff; padding: 9px 14px; border-radius: 10px;
           font-size: 13px; box-shadow: 0 8px 20px rgba(0,0,0,.2); transform: translateY(20px); opacity: 0; transition: all .35s ease; }
  .toast.show { transform: none; opacity: 1; }

  /* jezevčík v krocích se natáhne */
  .dog-line .grow-body { transform-box: fill-box; transform-origin: left center; transform: scaleX(.12); transition: transform 1.6s cubic-bezier(.3,.7,.3,1); }
  .dog-line .front { transform: translateX(-560px); transition: transform 1.6s cubic-bezier(.3,.7,.3,1); }
  .dog-line.go .grow-body { transform: none; }
  .dog-line.go .front { transform: none; }
  .dog-line .tail { transform-box: fill-box; transform-origin: right bottom; }
  .dog-line.go .tail { animation: wag .25s ease-in-out 8 alternate 1.4s; }
  @keyframes wag { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }

  /* vykukující jezevčík – pomalu zpoza pravého okraje, jako zpoza dveří */
  .peek { position: fixed; right: 0; top: 58vh; width: 130px; z-index: 50; cursor: pointer;
          transform-origin: right center; transform: translateX(110%) rotate(-10deg);
          transition: transform 1.6s cubic-bezier(.4,0,.2,1); }
  .peek.look { transform: translateX(50%) rotate(-10deg); transition-duration: 2.2s; }
  .peek.lean { transform: translateX(20%) rotate(-3deg); transition-duration: .7s; }
  .peek .happy-face, .peek .tongue { opacity: 0; transition: opacity .25s; }
  .peek.happy .happy-face, .peek.happy .tongue { opacity: 1; }
  .peek.happy .open-eye { opacity: 0; }
  .peek .ear { transform-box: fill-box; transform-origin: top center; }
  .peek.happy .ear { animation: earflap .3s ease-in-out 4 alternate; }
  @keyframes earflap { to { transform: rotate(-14deg); } }
  .peek .blink { animation: blink 3s infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes blink { 0%, 90%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
  .bubble { position: absolute; right: 100%; top: 4%; margin-right: 6px; width: max-content; max-width: 210px; background: #fff;
            color: var(--navy); font: 700 15px/1.35 Nunito, sans-serif; padding: 10px 14px; border-radius: 14px;
            box-shadow: 0 8px 24px rgba(31,42,68,.18); opacity: 0; transform: rotate(10deg) scale(.8); transform-origin: right bottom;
            transition: all .25s ease; pointer-events: none; }
  .bubble::after { content: ""; position: absolute; right: -8px; bottom: 12px; border: 8px solid transparent; border-left-color: #fff; border-right: 0; }
  .peek.talk .bubble { opacity: 1; transform: rotate(3deg); }
  @media (max-width: 600px) { .peek { width: 96px; } .bubble { font-size: 13px; max-width: 160px; } }
  @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .peek, .blob { display: none; }
    .dog-line .grow-body, .dog-line .front { transform: none; transition: none; } }

  /* právní stránky (zpracovatelé, podmínky) */
  .legal { padding: 48px 0 72px; }
  .legal h1 { font-size: 34px; margin: 0 0 12px; }
  .video { display: block; width: 100%; max-width: 880px; margin: 0 auto; border-radius: 16px; background: #000;
           box-shadow: 0 4px 16px rgba(31,42,68,.12); }
  .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
  .lead-left { color: var(--muted); max-width: 760px; }
  .legal-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden;
                 box-shadow: 0 4px 16px rgba(31,42,68,.06); margin: 20px 0; font-size: 15px; }
  .legal-table th, .legal-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid #f0ebe4; vertical-align: top; }
  .legal-table th { background: var(--cream); color: var(--navy); }
  @media (max-width: 640px) { .legal-table th, .legal-table td { padding: 10px; font-size: 14px; } }

/* právní stránky: nadpisy kapitol vlevo a menší než nadpisy sekcí hlavní stránky */
.legal h2 {
  text-align: left;
  font-size: 1.3rem;
  margin: 1.75rem 0 0.5rem;
}
.legal p, .legal li {
  line-height: 1.6;
}
.legal table {
  display: block;
  overflow-x: auto;
}
