/* ========================================
   Autevia — Global Styles
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-deep: #0a0e1a;
  --bg-dark: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.6);
  --teal-dark: #0d9488;
  --teal: #14b8a6;
  --cyan: #06b6d4;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --navy: #1a365d;
  --glow-teal: rgba(20, 184, 166, 0.4);
  --glow-cyan: rgba(6, 182, 212, 0.3);
  --border-glass: rgba(148, 163, 184, 0.12);

  /* Rose-gold: reserved for primary "start using the app" CTAs only.
     Matches the panel accent at salon.autevia.com so the jump feels deliberate. */
  --rose-gold: #D4A574;
  --rose-gold-hover: #E0B588;
  --rose-gold-text: #4A3728;
  --glow-rose: rgba(212, 165, 116, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   Background Effects
   ======================================== */

.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(13, 148, 136, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(26, 54, 93, 0.1) 0%, transparent 50%),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ========================================
   Navbar
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0.85rem 0;
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--cyan));
  transition: width 0.3s ease;
}

.navbar-links a:hover::after {
  width: 100%;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: flex;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.lang-switch button {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lang-switch button.active {
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
  color: white;
}

.btn-cta-nav {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--glow-teal);
}

.btn-cta-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px var(--glow-teal), 0 0 60px var(--glow-cyan);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Section
   ======================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--teal);
  border-radius: 50%;
  opacity: 0;
  animation: particleFade 4s infinite;
}

@keyframes particleFade {
  0%, 100% { opacity: 0; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-30px); }
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 2rem;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* The h1 is a container for two lines: a small brand mark and the slogan.
   The gradient text-clip lives on .hero-slogan only - if it stayed on the h1 the
   inherited transparent text-fill would make .brand-line invisible. */
.hero h1 {
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero h1 .brand-line {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.85rem;
}

.hero h1 .hero-slogan {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--teal) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .hero-fineprint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 1.5rem auto 0;
  line-height: 1.6;
}

/* ========================================
   Trust Bar
   ======================================== */

.trust-bar {
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.25rem 1.5rem;
}

.trust-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2.5rem;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--glow-teal);
  flex-shrink: 0;
}

.btn-primary {
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 25px var(--glow-teal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--glow-teal), 0 0 80px var(--glow-cyan);
}

.btn-secondary {
  font-family: 'DM Sans', sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.25);
  transform: translateY(-2px);
}

/* ========================================
   Rose-gold CTA
   Only for the primary "start using the app" actions
   (Wypróbuj za darmo / Zacznij za darmo). Everything else stays teal.
   Applied as a modifier: .btn-primary.btn-rose or .btn-cta-nav.btn-rose
   ======================================== */

.btn-rose {
  background: var(--rose-gold);
  color: var(--rose-gold-text);
  box-shadow: 0 0 22px var(--glow-rose);
}

.btn-rose:hover {
  background: var(--rose-gold-hover);
  color: var(--rose-gold-text);
  box-shadow: 0 0 34px var(--glow-rose), 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ========================================
   Focus visibility
   ======================================== */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.btn-rose:focus-visible {
  outline-color: var(--rose-gold);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 1100;
  padding: 0.7rem 1.2rem;
  background: var(--rose-gold);
  color: var(--rose-gold-text);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus target for the skip link - never draw a ring around the whole page */
main:focus,
main:focus-visible {
  outline: none;
}

/* ========================================
   Sections
   ======================================== */

.section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--teal);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   Glass Cards
   ======================================== */

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.08), 0 8px 32px rgba(0, 0, 0, 0.3);
  transform: translateY(-4px);
}

.glass-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(20, 184, 166, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.glass-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.glass-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.glass-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--teal);
  transition: gap 0.3s ease;
}

.glass-card:hover .card-link {
  gap: 0.75rem;
}

/* ========================================
   Problem Stats
   ======================================== */

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
}

.stat-card .stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--teal), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-left img {
  height: 40px;
  width: auto;
  display: block;
}

.footer-center {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--teal);
}

/* Reopening the cookie panel is an action, not navigation, so it is a real
   button styled to sit inline with the footer links. */
.footer-link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
}

.footer-link-btn:hover {
  color: var(--teal);
}

/* ========================================
   Legal Documents (privacy.html, terms.html)
   Shared by both pages rather than duplicated inline. Replaces the standalone
   inline <style> blocks those pages used to carry, whose bare body/h1/h2/p/a
   selectors would have collided with the rules above.
   ======================================== */

.legal-page {
  max-width: 720px;          /* readable measure */
  margin: 0 auto;
  padding: 7.5rem 1.5rem 4rem; /* top clears the fixed navbar */
}

.legal-page h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

/* Each language lives in its own container; main.js toggles .is-active.
   The Polish container ships with .is-active in the markup so there is no
   flash of empty document before the script runs. */
[data-lang-content] {
  display: none;
}

[data-lang-content].is-active {
  display: block;
}

.legal-content {
  line-height: 1.85;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 2.75rem 0 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-glass);
  scroll-margin-top: 6rem;   /* anchor targets clear the fixed navbar */
}

.legal-content h2:first-of-type {
  margin-top: 1.5rem;
  padding-top: 0;
  border-top: 0;
}

.legal-content h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.75rem 0 0.6rem;
}

.legal-content p {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.legal-content ul {
  margin: 0 0 1.15rem 1.35rem;
}

.legal-content li {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.legal-content a {
  color: var(--teal);
  text-decoration: underline;
}

.legal-content a:hover {
  color: var(--cyan);
}

/* Tables scroll rather than squash on a narrow screen. */
.legal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
}

.legal-content table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-content th,
.legal-content td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.legal-content th {
  color: var(--text-primary);
  font-weight: 600;
  background: rgba(148, 163, 184, 0.06);
  white-space: nowrap;
}

.legal-content tbody tr:last-child td {
  border-bottom: 0;
}

/* Table of contents */
.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.legal-toc h2 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--teal);
  margin: 0 0 0.85rem;
  padding-top: 0;
  border-top: 0;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.35rem;
}

.legal-toc li {
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
}

.legal-toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--teal);
  text-decoration: underline;
}

.legal-back {
  display: inline-block;
  margin-top: 2.75rem;
  font-size: 0.9rem;
  color: var(--teal);
}

.legal-back:hover {
  color: var(--cyan);
}

@media (max-width: 480px) {
  .legal-page {
    padding: 6.5rem 1.25rem 3rem;
  }

  .legal-toc {
    padding: 1.1rem 1.15rem;
  }
}

/* ========================================
   Scroll Animations
   ======================================== */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ========================================
   Product Page — Hero
   ======================================== */

.product-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 1.5rem 4rem;
  position: relative;
}

.product-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--teal) 60%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.product-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* ========================================
   Features Grid
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ========================================
   How It Works
   ======================================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-dark), var(--cyan), var(--teal-dark));
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 0 30px var(--glow-teal);
}

.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.step-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   Pricing
   ======================================== */

.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.billing-toggle span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.billing-toggle span.active {
  color: var(--text-primary);
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s ease;
  border: none;
}

.toggle-switch.active {
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.toggle-switch.active::after {
  transform: translateX(22px);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card .pricing-features {
  flex: 1;
}

.pricing-card.popular {
  border-color: rgba(20, 184, 166, 0.4);
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.1);
  padding-top: 3.25rem;
}

.popular-badge {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--teal-dark), var(--cyan));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1.2rem;
  border-radius: 0 0 8px 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* Absolutely positioned with left:50% and no width, the shrink-to-fit width is
     only half the card, which wraps longer labels. Keep it on one line. */
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
  background: linear-gradient(135deg, var(--text-primary), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Solid fill rather than inheriting the parent's clipped gradient - opacity on a
   background-clip:text child can drop out entirely in some engines. */
.pricing-card .price-period {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted);
}

.pricing-card .price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 0.75rem;
}

.pricing-card .plan-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Yearly saving. Hidden by default; main.js puts .is-yearly on .pricing-grid
   at the same moment it swaps the amounts, so the two can never disagree. */
.pricing-card .plan-saving {
  display: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: -0.25rem;
  margin-bottom: 0.9rem;
}

.pricing-grid.is-yearly .pricing-card .plan-saving {
  display: block;
}

.pricing-footnote {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ========================================
   FAQ
   ======================================== */

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(20, 184, 166, 0.2);
}

/* The button is wrapped in a heading for document outline; the heading itself
   must not introduce any of its own typography or spacing. */
.faq-heading {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  color: var(--teal);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

/* main.js sets an exact inline max-height from scrollHeight so long answers never
   clip. This is the fallback if that inline style is absent. */
.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-answer p {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */

.cta-section {
  text-align: center;
  padding: 5rem 1.5rem;
  margin: 4rem auto;
  max-width: 1200px;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(20, 184, 166, 0.05) 0%, transparent 50%);
  animation: cta-glow 6s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 1; }
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
  position: relative;
}

.cta-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-section .btn-primary {
  position: relative;
}

/* ========================================
   Mobile Responsive
   ======================================== */

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.mobile-nav a:hover {
  color: var(--teal);
}

@media (max-width: 900px) {
  .problem-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .navbar-links,
  .btn-cta-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Tighter chrome so the 40px logo + lang switch + burger still fit on a 375px
     viewport without the navbar pushing a horizontal scrollbar. */
  .navbar .container {
    padding: 0 1rem;
    gap: 0.5rem;
  }

  .navbar-right {
    gap: 0.5rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
    min-height: 90vh;
  }

  .hero h1 .hero-slogan {
    font-size: 2.2rem;
  }

  .trust-bar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    max-width: 400px;
  }

  .problem-stats {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-grid::before {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    padding: 0;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .product-hero {
    padding: 8rem 1.5rem 3rem;
    min-height: 60vh;
  }
}

@media (max-width: 480px) {
  .hero h1 .hero-slogan {
    font-size: 1.8rem;
  }

  .hero h1 .brand-line {
    font-size: 1.15rem;
    letter-spacing: 0.1em;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-card.popular {
    padding-top: 3rem;
  }

  .navbar-logo img,
  .footer-left img {
    height: 34px;
  }

  /* "Trzy kanały" / "Three channels" is a word rather than a short numeral, so at
     2.5rem it sits within a few pixels of the card's inner width on a 375px screen.
     Stepping this one tile down keeps it on a single line with margin to spare;
     "24/7" and "0 zł" are unaffected. */
  .stat-card .stat-number-text {
    font-size: 2rem;
  }

  .billing-toggle {
    gap: 0.75rem;
  }

  .billing-toggle span {
    font-size: 0.85rem;
  }

  .faq-question {
    padding: 1.1rem 1.15rem;
    font-size: 0.95rem;
  }

  .faq-answer p {
    padding: 0 1.15rem 1.1rem;
  }
}

/* ========================================
   Reduced Motion
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-particles {
    display: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
