/* Lunaris web — shared layout (OAuth / Search Console safe: keep core URLs & privacy links) */
:root {
  --bg: #050814;
  --bg-elevated: #0c1224;
  --card: rgba(77, 216, 232, 0.06);
  --card-border: rgba(77, 216, 232, 0.22);
  --text: #f2f7ff;
  --muted: rgba(242, 247, 255, 0.78);
  --dim: rgba(242, 247, 255, 0.55);
  --accent: #4dd8e8;
  --accent-soft: rgba(77, 216, 232, 0.18);
  --violet: #8b84ff;
  --radius: 18px;
  --font: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
  --header-bg: linear-gradient(180deg, rgba(5, 8, 20, 0.96), rgba(5, 8, 20, 0.88));
  --body-gradient: radial-gradient(ellipse 120% 80% at 10% -10%, rgba(77, 216, 232, 0.12), transparent 45%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(139, 132, 255, 0.1), transparent 42%);
}

body.theme-light {
  --bg: #eef2fb;
  --bg-elevated: #ffffff;
  --card: rgba(12, 18, 40, 0.04);
  --card-border: rgba(12, 24, 48, 0.12);
  --text: #0c1228;
  --muted: rgba(12, 18, 40, 0.78);
  --dim: rgba(12, 18, 40, 0.52);
  --accent: #0d8a9a;
  --accent-soft: rgba(13, 138, 154, 0.14);
  --violet: #5c54c4;
  --header-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.94));
  --body-gradient: radial-gradient(ellipse 120% 80% at 10% -10%, rgba(77, 216, 232, 0.18), transparent 45%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(139, 132, 255, 0.12), transparent 42%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--body-gradient), var(--bg);
  min-height: 100vh;
}

body.has-sticky-cta {
  padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 520px) {
  body.has-sticky-cta {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
}

body.lang-en .cs-only,
body.lang-cs .en-only {
  display: none !important;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  margin: 0 -20px 24px;
  padding: 12px 20px 14px;
}

.site-header__row {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  opacity: 0.92;
}
.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--card-border);
  flex-shrink: 0;
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand__name {
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.brand__tag {
  font-size: 0.78rem;
  color: var(--dim);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.lang-toggle button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.lang-toggle button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.lang-toggle button:not(.active):hover {
  color: var(--text);
}

.site-header__controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.theme-toggle button {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle button.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.theme-toggle button:not(.active):hover {
  color: var(--text);
}

.nav {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid rgba(77, 216, 232, 0.12);
  margin-top: 8px;
}
.nav a {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}
.nav a:hover {
  color: var(--accent);
}
.nav a.is-active {
  color: var(--accent);
  font-weight: 700;
}

/* Hero — „panel“ sjednocuje vzhled se stránkou Zásady (rámeček + gradient) */
.hero {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
.hero.hero--panel {
  margin-bottom: 36px;
  padding: 22px 20px 24px;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: linear-gradient(155deg, rgba(77, 216, 232, 0.1), rgba(139, 132, 255, 0.06));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}
body.theme-light .hero.hero--panel {
  box-shadow: 0 12px 36px rgba(12, 24, 48, 0.08);
  background: linear-gradient(155deg, rgba(77, 216, 232, 0.14), rgba(139, 132, 255, 0.08));
}
@media (min-width: 720px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero.hero--panel {
    padding: 26px 24px 28px;
  }
}
.hero__copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero__kicker {
  margin: -2px 0 14px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 36rem;
}
.hero__lead {
  margin: 0 0 18px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 36rem;
}
.hero__visual {
  position: relative;
  border-radius: 22px;
  border: 1px solid var(--card-border);
  background: linear-gradient(145deg, rgba(77, 216, 232, 0.1), rgba(139, 132, 255, 0.06));
  padding: 20px;
  text-align: center;
}
.hero.hero--panel .hero__visual {
  background: linear-gradient(145deg, rgba(77, 216, 232, 0.14), rgba(139, 132, 255, 0.08));
}
.hero__visual img {
  max-width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.45));
}
body.theme-light .hero__visual img {
  filter: drop-shadow(0 10px 28px rgba(12, 24, 48, 0.12));
}
.hero.hero--panel .hero__visual img {
  max-height: 300px;
}
body.theme-light .pill {
  background: rgba(12, 18, 40, 0.06);
}
.hero__legal {
  margin-top: 16px;
  font-size: 0.92rem;
  color: var(--dim);
}
.hero__legal a {
  font-weight: 600;
}

/* Odznaky obchodů — Google Play odkaz; App Store skrytý dokud není iOS. */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px 18px;
}
a.store-badges__visual {
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.store-badges__visual:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
a.store-badges__visual:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.store-badges--hero {
  margin-top: 18px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: linear-gradient(160deg, rgba(77, 216, 232, 0.12), rgba(12, 18, 40, 0.45));
}
.store-badges__title {
  flex-basis: 100%;
  margin: 0 0 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.store-badges__visual {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
  background: #ffffff;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}
body.theme-light .store-badges__visual {
  box-shadow: 0 6px 20px rgba(12, 24, 48, 0.12);
}
.store-badges__visual img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}
.store-badges__visual--play img {
  height: 48px;
}
.store-badges__caption {
  flex-basis: 100%;
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.content-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.content-stack > .card {
  height: auto;
}

/* Notice strip — stejný „karetní“ rám jako jinde, jen zvýrazněný okrajem */
.card.card--notice {
  border-left: 3px solid var(--accent);
  background: linear-gradient(90deg, rgba(77, 216, 232, 0.14), rgba(77, 216, 232, 0.05));
  padding: 18px 20px 20px;
}
.card.card--notice p {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}
.card.card--notice p:last-child {
  margin-bottom: 0;
}
.card.card--notice strong {
  color: var(--text);
}

.card.page-card {
  height: auto;
  text-align: left;
}
.card.page-card h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.card.page-card p,
.card.page-card li {
  font-size: 0.96rem;
  color: var(--muted);
  line-height: 1.65;
}
.card.page-card ul {
  margin: 0;
  padding-left: 1.2rem;
}
.card.page-card li {
  margin-bottom: 8px;
}
.card.page-card p {
  margin: 0 0 12px;
}
.card.page-card p:last-child {
  margin-bottom: 0;
}
.card.page-card ul:last-child {
  margin-bottom: 0;
}

.page-next {
  margin-top: 24px;
}
.page-next a {
  font-weight: 600;
}

/* Sections */
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.section-lead {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 46rem;
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 20px 20px 22px;
  height: 100%;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--accent);
}
.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.55;
}
.card .link-more {
  display: inline-block;
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.9rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
}

.legal-note {
  border-left: 3px solid var(--accent);
  padding: 12px 16px;
  margin-bottom: 24px;
  background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--dim);
}
.site-footer__links {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}
.site-footer__links a {
  font-weight: 600;
  color: var(--accent);
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--dim);
  max-width: 52rem;
  margin: 20px auto 0;
  line-height: 1.5;
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Legal document panels (privacy, terms, deletion) — lze kombinovat s .card.page-card */
.legal-panel {
  margin-top: 0;
  padding: 22px 22px 26px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
}
.card.page-card.legal-panel {
  padding: 20px 20px 22px;
  height: auto;
}
/* nadpisy v právních kartách (delete account apod.) */
.card.page-card.legal-panel h2 {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
}
.card.page-card.legal-panel h2:first-child {
  margin-top: 0;
}
.legal-panel h1 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text);
}
.legal-panel--tight h1 {
  font-size: 1.35rem;
}
.legal-panel .meta {
  color: var(--dim);
  font-size: 0.88rem;
  margin-bottom: 14px;
}
.legal-panel h2 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
}
.legal-panel p,
.legal-panel li {
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.96rem;
}
.legal-panel ul {
  padding-left: 1.2rem;
}
.legal-panel li {
  margin-bottom: 6px;
}
.legal-panel strong {
  color: var(--text);
}

/* Sticky store CTA — pouze domovská stránka */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 8, 20, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--card-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}
body.theme-light .sticky-cta {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -6px 24px rgba(12, 24, 48, 0.08);
}
.sticky-cta__inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}
.sticky-cta__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  width: 100%;
  text-align: center;
  margin: 0;
}
@media (min-width: 640px) {
  .sticky-cta__label {
    width: auto;
    text-align: left;
    margin-right: 4px;
  }
  .sticky-cta__inner {
    justify-content: center;
  }
}
.sticky-cta a.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.sticky-cta a.store-badge:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}
.sticky-cta a.store-badge img {
  display: block;
  max-height: 40px;
  width: auto;
  height: auto;
}
.sticky-cta a.store-badge--play img {
  max-height: 48px;
}

.sticky-cta .store-badges--sticky {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}
.sticky-cta .store-badges--sticky .store-badges__visual img {
  height: 36px;
}
.sticky-cta .store-badges--sticky .store-badges__visual--play img {
  height: 44px;
}
