/* ===== FONTS =====
   Inter is self-hosted rather than loaded from fonts.googleapis.com. A page whose
   whole argument is "nothing leaves your device" should not hand every visitor's IP
   address to Google before the first paragraph renders. Self-hosting is also what
   lets the privacy policy's website section make a flat claim instead of a hedged one.

   Inter v20 ships as a variable font, so one file covers every weight the site uses
   (400/500/600/700/800) — hence the `font-weight: 100 900` range rather than five
   separate @font-face blocks. latin-ext is here for the Slovak diacritics in the
   company name. Files came from Google's own CDN and are SIL Open Font License 1.1. */
@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+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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-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-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Palette lifted from the app's own asset catalog (Sources/Resources/Colors.xcassets),
   dark appearance — so the page and the screenshots on it are the same product. The
   previous purple was from the pre-1.1 design and no longer exists anywhere in the app.

   --accent vs --accent-light mirrors the app's .primaryApp / .textAccent split: the
   first is a FILL (borders, button backgrounds), the second is what text and links use.
   Do not swap them — .primaryApp as text measures ~3.1:1, under WCAG AA. */
:root {
  --bg: #0b1826;              /* BgPrimary      dark */
  --bg-card: #102436;         /* BgSecondary    dark */
  --bg-card-hover: #13303f;   /* Card           dark */
  --surface: #13303f;
  --border: rgba(255, 255, 255, 0.14);  /* GlassBorder dark, eased back for large areas */
  --text: #eaf4fb;            /* TextPrimary    dark */
  --text-dim: #a2bed2;        /* TextSecondary  dark */
  --accent: #0c8599;          /* PrimaryApp     dark — fill only */
  --accent-light: #1bb4cc;    /* TextAccent     dark — text and links */
  --accent-glow: rgba(34, 211, 238, 0.25);  /* OrbCyan */
  --gradient-1: #0ea5a8;      /* OrbTeal   */
  --gradient-2: #22d3ee;      /* OrbCyan   */
  --gradient-3: #6366f1;      /* OrbIndigo */
  --radius: 16px;
  --radius-sm: 10px;
  --max-w: 1120px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }

img { max-width: 100%; display: block; }

/* ===== UTILITY ===== */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 24, 38, .82);   /* --bg at 82% */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  display: flex; align-items: center; justify-content: center;
  font-size: .95rem;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: #fff; }

/* ===== HERO ===== */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 16px 6px 8px;
  font-size: .82rem; color: var(--text-dim); margin-bottom: 28px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em; margin-bottom: 24px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.2rem; color: var(--text-dim);
  max-width: 600px; margin: 0 auto 40px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #fff; font-weight: 600; font-size: 1.05rem;
  padding: 16px 36px; border-radius: 999px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px var(--accent-glow);
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 50px var(--accent-glow);
  color: #fff;
}
.hero-cta svg { width: 20px; height: 20px; }

/* ===== SECTION COMMON ===== */
section { padding: 100px 0; }
.section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-dim); max-width: 560px;
  margin: 0 auto 56px;
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: background .25s, border-color .25s, transform .25s;
}
.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 1.15rem; font-weight: 600; margin-bottom: 8px;
}
.feature-card p {
  font-size: .92rem; color: var(--text-dim); line-height: 1.55;
}

/* ===== GALLERY ===== */
/* Appearance switch — deliberately CSS only.
   The privacy policy's website section states that this site runs no script at all, so
   the toggle is a hidden checkbox driving sibling selectors rather than a click handler.
   Both image sets are in the DOM and both are fetched, which costs about 75 KB extra but
   makes the switch instant with no flash of a half-loaded screenshot. */
.appearance-switch { display: flex; justify-content: center; margin-bottom: 40px; }
.appearance-switch label {
  display: inline-flex; cursor: pointer; user-select: none;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); padding: 4px;
}
.appearance-switch .opt {
  padding: 6px 18px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; color: var(--text-dim);
  transition: background .2s, color .2s;
}
.appearance-switch .opt-dark { background: var(--accent); color: #fff; }
#appearance:checked ~ .appearance-switch .opt-dark { background: transparent; color: var(--text-dim); }
#appearance:checked ~ .appearance-switch .opt-light { background: var(--accent); color: #fff; }
#appearance:focus-visible ~ .appearance-switch label {
  outline: 2px solid var(--accent-light); outline-offset: 3px;
}

.shot { display: block; }
.shot-light { display: none; }
#appearance:checked ~ .gallery-grid .shot-light { display: block; }
#appearance:checked ~ .gallery-grid .shot-dark { display: none; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 4px solid var(--surface);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  background: var(--surface);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
  pointer-events: none;
}
.gallery-item:nth-child(2n) {
  transform: translateY(32px);
}
.gallery-item:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 10;
  border-color: var(--accent);
  box-shadow: 0 30px 60px var(--accent-glow);
}
.gallery-item:nth-child(2n):hover {
  transform: translateY(24px) scale(1.02);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px; counter-reset: step;
}
.step {
  position: relative; padding: 32px 24px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #fff; font-weight: 700; font-size: 1rem;
  margin: 0 auto 18px;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--text-dim); }

/* ===== PRIVACY BANNER ===== */
.privacy-banner {
  background: linear-gradient(135deg, rgba(14, 165, 168, .10), rgba(34, 211, 238, .06));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 40px; text-align: center;
}
.privacy-banner h2 { margin-bottom: 16px; }
.privacy-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 28px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 10px 20px;
  font-size: .88rem; font-weight: 500;
}
.pill .emoji { font-size: 1.1rem; }

/* ===== PRICING ===== */
.pricing-card {
  max-width: 420px; margin: 0 auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 36px; text-align: center;
  position: relative; overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gradient-1), var(--gradient-2), var(--gradient-3));
}
.pricing-card .price {
  /* Scales with the card instead of overflowing it. A long price string — a three-digit
     amount, or a currency written out like "1 290 Kč" — used to run straight off the
     rounded corner. */
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 800; letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.pricing-card .price-sub { color: var(--text-dim); font-size: .92rem; margin-bottom: 28px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li {
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: .92rem; display: flex; align-items: center; gap: 10px;
}
.pricing-features li::before { content: '\2713'; color: var(--accent-light); font-weight: 700; }
.pricing-features li:last-child { border-bottom: none; }
.btn-primary {
  display: inline-block; width: 100%;
  background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
  color: #fff; font-weight: 600; font-size: 1rem;
  padding: 14px 0; border-radius: 999px; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--accent-glow);
  color: #fff;
}

/* ===== FOOTER ===== */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center; color: var(--text-dim); font-size: .85rem;
}
footer .links { display: flex; justify-content: center; gap: 24px; margin-bottom: 16px; }
footer .links a { color: var(--text-dim); }
footer .links a:hover { color: #fff; }

/* ===== LEGAL PAGES ===== */
.legal-page { padding: 120px 0 80px; }
.legal-page h1 {
  font-size: 2.2rem; font-weight: 700; margin-bottom: 8px;
}
.legal-page .updated { color: var(--text-dim); font-size: .9rem; margin-bottom: 48px; }
.legal-page h2 {
  font-size: 1.3rem; font-weight: 600; margin-top: 40px; margin-bottom: 12px;
  color: var(--accent-light);
}
.legal-page p, .legal-page li {
  font-size: .95rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px;
}
.legal-page ul { padding-left: 24px; margin-bottom: 16px; }
.legal-page strong { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  section { padding: 72px 0; }
  .hero { padding: 130px 0 72px; }
  /* Gallery Responsive */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .gallery-item:nth-child(2n) {
     transform: none;
  }
  .gallery-item:nth-child(2n):hover {
    transform: translateY(-8px) scale(1.02);
  }
  
  .privacy-banner { padding: 36px 20px; }
  .pricing-card { padding: 32px 24px; }
}
@media (max-width: 500px) {
  .gallery-grid {
      grid-template-columns: 1fr;
      padding: 0 20px;
  }
}
