/*
 * Tlapkovník – web. Vizuální jazyk převzatý z tlapkyvycvik.cz (kurzy-app):
 * barvy brand-* (Tailwind green, logo #15803d ≈ brand-700), amber-*, gray-*, písmo Inter,
 * zaoblení rounded-xl/2xl/3xl, ikony Lucide. Tokeny měnit jen tady.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, 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: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

:root {
  --brand-50: oklch(98.2% 0.018 155.826);
  --brand-100: oklch(96.2% 0.044 156.743);
  --brand-200: oklch(92.5% 0.084 155.995);
  --brand-300: oklch(87.1% 0.15 154.449);
  --brand-600: oklch(62.7% 0.194 149.214);
  --brand-700: oklch(52.7% 0.154 150.069);
  --brand-800: oklch(44.8% 0.119 151.328);
  --brand-900: oklch(39.3% 0.095 152.535);
  --amber-100: #fef3c7;
  --amber-700: #b45309;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --max: 64rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Inter", "Inter Fallback", system-ui, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--brand-700);
  outline-offset: 2px;
}

.hero :focus-visible {
  outline-color: #fff;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon-lg {
  width: 1.25rem;
  height: 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  background: var(--brand-700);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ── Hlavička (stejná jako Navbar na tlapkyvycvik.cz) ───────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.brand img {
  width: 2rem;
  height: 2rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.025em;
  color: var(--brand-700);
}

.brand-sub {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.15s;
}

.nav-link:hover {
  color: var(--brand-700);
}

.nav-link--desktop {
  display: none;
}

.nav-ext {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-700);
  padding: 0.5rem 0;
}

.nav-ext:hover {
  color: var(--brand-800);
}

.nav-cta {
  display: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-700);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-lg);
  transition: background-color 0.15s;
}

.nav-cta:hover {
  background: var(--brand-800);
}

@media (min-width: 768px) {
  .nav-link--desktop,
  .nav-cta {
    display: inline-block;
  }
}

/* ── Tlačítka ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer;
}

.btn-white {
  background: #fff;
  color: var(--brand-800);
  box-shadow: 0 10px 15px -3px rgb(20 83 45 / 0.3), 0 4px 6px -4px rgb(20 83 45 / 0.3);
}

.btn-white:hover {
  background: var(--brand-50);
}

.btn-ghost {
  color: #fff;
  border-color: rgb(255 255 255 / 0.4);
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: rgb(255 255 255 / 0.7);
}

.btn-primary {
  background: var(--brand-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-800);
}

.btn-outline {
  color: var(--brand-700);
  border-color: var(--brand-200);
  font-weight: 600;
}

.btn-outline:hover {
  color: var(--brand-800);
  border-color: var(--brand-300);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .btn-row {
    flex-direction: row;
  }
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(to bottom right, var(--brand-800), var(--brand-700), var(--brand-600));
}

.hero::before {
  content: "";
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  background: rgb(255 255 255 / 0.05);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgb(255 255 255 / 0.15);
  color: rgb(255 255 255 / 0.95);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  text-wrap: balance;
}

.hero-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgb(255 255 255 / 0.9);
  margin-bottom: 2rem;
}

.hero .btn-row {
  justify-content: center;
}

.hero-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: rgb(255 255 255 / 0.9);
}

.hero-art {
  display: flex;
  justify-content: center;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  color: var(--gray-900);
  border-radius: var(--radius-3xl);
  padding: 1.75rem 2.5rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(20 83 45 / 0.45);
  outline: 1px solid rgb(255 255 255 / 0.2);
}

.app-card img {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 2rem;
}

.app-card-name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-700);
}

.app-card-sub {
  margin-top: -0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

@media (min-width: 768px) {
  .hero-inner {
    grid-template-columns: 3fr 2fr;
    text-align: left;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero .btn-row {
    justify-content: flex-start;
  }

  .app-card img {
    width: 11rem;
    height: 11rem;
  }
}

/* ── Pruh výhod (TRUST BAR) ─────────────────────────────────────────────── */
.trust {
  background: rgb(249 250 251 / 0.6);
  border-bottom: 1px solid var(--gray-100);
}

.trust ul {
  list-style: none;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust .icon {
  color: var(--brand-600);
}

/* ── Sekce ──────────────────────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}

.section--tint {
  background: rgb(240 253 244 / 0.6);
  border-top: 1px solid var(--brand-100);
  border-bottom: 1px solid var(--brand-100);
}

.section--gray {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}

@media (min-width: 768px) {
  .section {
    padding: 5rem 0;
  }
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-700);
  margin-bottom: 0.5rem;
}

.section h2 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--gray-900);
  text-wrap: balance;
}

.section-lead {
  margin-top: 0.75rem;
  max-width: 42rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.section-head {
  margin-bottom: 2.5rem;
}

/* ── Karty funkcí ───────────────────────────────────────────────────────── */
.cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.icon-box {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ── Stažení ────────────────────────────────────────────────────────────── */
.download {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .download {
    grid-template-columns: 1fr 1fr;
  }
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.625rem;
  border-radius: 9999px;
  background: var(--amber-100);
  color: var(--amber-700);
  vertical-align: middle;
}

.download-text p {
  margin-top: 1rem;
  color: var(--gray-700);
  line-height: 1.65;
}

.download-text .btn {
  margin-top: 1.75rem;
  width: 100%;
}

@media (min-width: 640px) {
  .download-text .btn {
    width: auto;
  }
}

.apk-status {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  min-height: 1.5em;
}

.apk-status[data-state="error"] {
  color: var(--amber-700);
}

.steps-card h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.steps li::before {
  content: counter(step);
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  background: var(--brand-700);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.note .icon {
  margin-top: 0.2rem;
  color: var(--brand-700);
}

/* ── O Psích Tlapkách ───────────────────────────────────────────────────── */
.about {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.about-logo {
  width: 8rem;
  height: 8rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .about {
    grid-template-columns: 12rem 1fr;
  }

  .about-logo {
    width: 11rem;
    height: 11rem;
  }
}

.about .btn-row {
  margin-top: 2rem;
}

/* ── Patička (stejná jako Footer na tlapkyvycvik.cz) ────────────────────── */
.footer {
  border-top: 1px solid var(--gray-100);
  background: var(--gray-50);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-about {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.footer-mail {
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-700);
  padding: 0.25rem 0;
}

.footer-mail:hover {
  color: var(--brand-800);
}

.footer h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-500);
}

.footer ul {
  list-style: none;
  padding: 0;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.25rem;
}

.footer li a {
  display: inline-block;
  padding: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
  transition: color 0.15s;
}

.footer li a:hover {
  color: var(--brand-700);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
}

.footer-bottom p {
  padding-top: 1rem;
  padding-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ── 404 ────────────────────────────────────────────────────────────────── */
.notfound {
  padding: 5rem 0;
  text-align: center;
}

.notfound h1 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.notfound p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --- Pozvánka a hlídání (0.5.0, #37 #39): samostatné stránky s jedním sloupcem --- */
.page { padding: 2rem 0 3rem; background: var(--gray-50); min-height: 70vh; }
.page-inner { max-width: 40rem; display: grid; gap: 1.25rem; }
.page h1 { font-size: 1.875rem; font-weight: 800; color: var(--gray-900); line-height: 1.2; }
.page .section-lead { margin-top: 0; }
.pill--light { background: var(--brand-50); color: var(--brand-800); margin-bottom: 0; justify-self: start; }
.card-title { font-size: 1.125rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.75rem; }
.invite-card { display: grid; gap: 0.75rem; }
.btn-block { width: 100%; }
.btn-small { padding: 0.5rem 0.875rem; font-size: 0.9375rem; }
.code-label { margin-top: 0.5rem; font-size: 0.875rem; font-weight: 600; color: var(--gray-600); }
.code-box {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-align: center;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--brand-300);
  border-radius: var(--radius-xl);
  background: var(--brand-50);
  color: var(--gray-900);
  user-select: all;
}
.invite-card .note, .steps-card .note { margin-top: 0.25rem; }
.steps-card { display: grid; gap: 1rem; }
.steps-card .btn { justify-self: start; }
.footer--slim .footer-bottom p { padding-top: 1rem; padding-bottom: 1rem; font-size: 0.875rem; color: var(--gray-600); }
.footer--slim a { color: var(--brand-700); text-decoration: underline; }
.muted { color: var(--gray-500); }

.sitter-status { font-size: 1.0625rem; color: var(--gray-700); padding: 1rem 0; }
.sitter-head { display: flex; gap: 1.25rem; align-items: center; }
.sitter-head > div { display: grid; gap: 0.5rem; }
.sitter-photo { width: 7.5rem; height: 7.5rem; border-radius: 9999px; object-fit: cover; border: 3px solid var(--brand-200); flex-shrink: 0; }
.sitter-photo-empty { width: 5rem; height: 5rem; border-radius: 9999px; margin: 0; flex-shrink: 0; }
.sitter-notice { padding: 0.75rem 1rem; border-radius: var(--radius-xl); background: var(--amber-100); color: var(--amber-700); font-weight: 600; }
.sitter-notes { white-space: pre-wrap; line-height: 1.65; color: var(--gray-700); }
.routine, .contacts { list-style: none; padding: 0; margin: 0; }
.routine { display: grid; }
.routine-row {
  display: grid;
  grid-template-columns: 4.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  border-top: 1px solid var(--gray-100);
}
.routine-row:first-child { border-top: 0; }
.routine-time { font-weight: 700; color: var(--brand-800); font-variant-numeric: tabular-nums; white-space: nowrap; font-size: 0.9375rem; }
.routine-title { font-weight: 600; color: var(--gray-900); }
.routine-row.is-done .routine-title { color: var(--gray-500); text-decoration: line-through; }
.routine-done { display: inline-flex; align-items: center; gap: 0.25rem; color: var(--brand-700); font-weight: 600; font-size: 0.9375rem; }
.check-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--brand-200);
  background: #fff;
  color: var(--brand-700);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.check-btn .icon { opacity: 0.35; }
.check-btn.is-done { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.check-btn.is-done .icon { opacity: 1; }
.check-btn:disabled { cursor: default; opacity: 0.75; }
.contacts { display: grid; gap: 0.75rem; }
.contact { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label btn" "name btn"; column-gap: 0.75rem; align-items: center; }
.contact-label { grid-area: label; font-size: 0.875rem; font-weight: 600; color: var(--gray-500); }
.contact-name { grid-area: name; font-weight: 600; color: var(--gray-900); }
.contact .btn { grid-area: btn; }
@media (max-width: 30rem) {
  .sitter-head { flex-direction: column; align-items: flex-start; }
  .routine-row { grid-template-columns: 4.5rem 1fr; }
  .routine-row .check-btn, .routine-row .routine-done { grid-column: 2; justify-self: start; margin-bottom: 0.5rem; }
}.steps a { color: var(--brand-700); text-decoration: underline; }
