/* ============================================================
   AIZYL CORE — wspolny fundament: tokeny, reset, nav, footer, btn
   Uzywany przez: strona glowna (parasol) i /asystent/
   Tokeny spojne z aplikacja Aizyl Asystent.
   ============================================================ */

   :root {
    /* Kolory bazowe */
    --background: #EDEAE3;
    --card: #F8F6F1;
    --primary: #0B6951;
    --foreground: #1A1A1A;
    --muted-foreground: #6B7280;
    --border: #D4D1CB;
    --secondary: #D4D1CB;
  
    /* Promienie */
    --radius: 0.25rem;
    --radius-card: 0.75rem;
    --radius-lg: 1rem;
    --radius-pill: 999px;
  
    /* Szklo i miekkie granice */
    --card-glass: rgba(248, 246, 241, .72);
    --border-soft: rgba(212, 209, 203, .68);
  
    /* Cienie */
    --shadow-soft: 0 1px 2px rgba(26, 26, 26, .04), 0 8px 20px -12px rgba(26, 26, 26, .20);
    --shadow-lift: 0 2px 5px rgba(26, 26, 26, .05), 0 20px 40px -22px rgba(26, 26, 26, .30);
    --shadow-hero: 0 4px 10px rgba(26, 26, 26, .06), 0 32px 60px -28px rgba(26, 26, 26, .34);
  
    /* Poswiaty tla */
    --glow-green: rgba(11, 105, 81, .22);
    --glow-green-strong: rgba(11, 105, 81, .34);
    --glow-rose: rgba(198, 146, 164, .43);
    --glow-blue: rgba(138, 167, 196, .43);
    --glow-coral: rgba(252, 227, 197, .23);
  
    /* Akcenty */
    --primary-soft: #DDEBE6;
    --danger: #8C2438;
    --danger-soft: #F4DFE3;
  
    /* Powierzchnie */
    --surface-sunken: #E7E3DB;
    --surface-raised: #FBFAF6;
  
    /* Typografia */
    --font-base: 'Space Grotesk', system-ui, sans-serif;
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.375rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.25rem;
    --fs-3xl: 3rem;
    --fs-hero: 4rem;
  
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
  
    --lh-tight: 1.05;
    --lh-snug: 1.25;
    --lh-normal: 1.5;
  
    /* Odstepy */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
  }
  
  /* ── Reset ───────────────────────────────────────────────── */
  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
  
  html { font-size: 16px; scroll-behavior: smooth; scrollbar-gutter: stable; }
  
  body {
    font-family: var(--font-base);
    font-weight: var(--fw-regular);
    font-size: var(--fs-base);
    line-height: var(--lh-normal);
    color: var(--foreground);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  h1, h2, h3, h4, h5, h6 { font-weight: var(--fw-medium); line-height: var(--lh-snug); color: var(--foreground); }
  a { color: inherit; }
  img { max-width: 100%; display: block; }
  
  /* ── Container ───────────────────────────────────────────── */
  .container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
  }
  
  /* ── Przyciski ───────────────────────────────────────────── */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-base);
    font-weight: var(--fw-medium);
    font-size: var(--fs-sm);
    line-height: 1;
    padding: 0.7rem 1.4rem;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    text-decoration: none;
    transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease, color .14s ease;
  }
  .btn-primary { background-color: var(--primary); color: #fff; }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
  .btn-secondary { background: var(--secondary); color: var(--foreground); }
  .btn-secondary:hover { opacity: 0.88; }
  
  /* ── Nav (identyczny uklad na wszystkich stronach) ───────── */
  .site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--background);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s ease, background-color .2s ease;
  }
  .site-nav.scrolled { box-shadow: var(--shadow-soft); }
  .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.875rem;
    line-height: 1.2;
  }
  .nav-logo {
    font-weight: 200;
    font-size: 18px;
    letter-spacing: 0.5em;
    color: var(--foreground);
    text-decoration: none;
    flex-shrink: 0;
  }
  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
  }
  .nav-links a {
    font-size: 14px;
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color .14s ease;
  }
  .nav-links a:hover { color: var(--foreground); }
  .nav-cta { font-size: 14px; padding: 8px 16px; flex-shrink: 0; border-radius: var(--radius); }
  .nav-cta-short { display: none; }
  .nav-toggle { display: none; background: none; border: none; cursor: pointer; }
  
  /* ── Footer (identyczny uklad na wszystkich stronach) ────── */
  .site-footer {
    background-color: var(--card);
    border-top: 1px solid var(--border);
    padding: 32px 0;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .footer-left { display: flex; flex-direction: column; gap: 4px; }
  .footer-logo { font-size: 16px; font-weight: 200; letter-spacing: 0.5em; color: var(--foreground); }
  .footer-copy { font-size: 12px; color: var(--muted-foreground); }
  .footer-links { display: flex; align-items: center; gap: 24px; }
  .footer-links a { font-size: 13px; color: var(--muted-foreground); text-decoration: none; transition: color .14s ease; }
  .footer-links a:hover { color: var(--foreground); }
  
  /* ── Mobile ──────────────────────────────────────────────── */
  @media (max-width: 768px) {
    .nav-links {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: flex-start;
      gap: 1rem;
      background: var(--background);
      padding: 1.5rem;
      box-shadow: var(--shadow-soft);
    }
    .nav-links.is-open { display: flex; }
    .nav-toggle {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 28px;
      height: 28px;
    }
    .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--foreground); transition: transform .2s ease, opacity .2s ease; }
    .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
    .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .nav-cta-full { display: none; }
    .nav-cta-short { display: inline; }
    .nav-cta { padding: 6px 12px; white-space: nowrap; }
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .container { padding-inline: 20px; }
  }

/* NEWSLETTER (wspolny, 1:1 z DLP) */
#cta-final {
  background: var(--primary);
  padding: 80px 0;
  text-align: center;
}
.cta-final-heading {
  color: white;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 500;
  max-width: 640px;
  margin: 0 auto 16px;
  line-height: 1.3;
}
.cta-final-sub {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 32px;
  font-size: 15px;
}
.waitlist-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.waitlist-input {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 15px;
  font-family: var(--font-base);
  width: 300px;
  outline: none;
  color: var(--foreground);
}
.waitlist-submit {
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: 2px solid white;
  border-radius: var(--radius);
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.waitlist-submit:hover { opacity: 0.85; }

@media (max-width: 768px) {
  #cta-final { width: 100%; padding: 48px 20px; box-sizing: border-box; overflow: hidden; }
  .waitlist-form { flex-direction: column; align-items: stretch; gap: 12px; }
  .waitlist-input { width: 100%; }
  .waitlist-submit { width: 100%; }
}

/* NAV DROPDOWN */
.nav-has-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-family: inherit; font-size: 14px; color: var(--muted-foreground);
  background: transparent; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; padding: 0;
  transition: color .14s ease;
}
.nav-dropdown-toggle:hover,
.nav-has-dropdown:hover .nav-dropdown-toggle { color: var(--foreground); }
.nav-dropdown-toggle .ti { font-size: 16px; transition: transform .18s ease; }
.nav-has-dropdown:hover .nav-dropdown-toggle .ti,
.nav-dropdown-toggle[aria-expanded="true"] .ti { transform: rotate(180deg); }

.nav-dropdown {
  list-style: none;
  position: absolute; top: 100%; left: 0;
  min-width: 210px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  display: none; flex-direction: column; gap: 2px;
  margin-top: 8px;
}
.nav-dropdown::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav-has-dropdown:hover .nav-dropdown,
.nav-dropdown.is-open { display: flex; }
.nav-dropdown a {
  display: block; padding: 8px 12px; border-radius: var(--radius);
  font-size: 14px; color: var(--muted-foreground); white-space: nowrap;
  transition: background-color .14s ease, color .14s ease;
}
.nav-dropdown a:hover { background: var(--card); color: var(--foreground); }

@media (max-width: 768px) {
  .nav-dropdown {
    position: static; display: flex; margin-top: 6px;
    box-shadow: none; border: none; background: transparent;
    padding: 0 0 0 14px; min-width: 0;
  }
  .nav-dropdown::before { display: none; }
  .nav-dropdown-toggle { font-size: 14px; }
}  
.site-nav .nav-cta {  
  padding: 8px 16px;  
  border: none;  
  line-height: 1;  
  font-size: 14px;  
  border-radius: var(--radius);  
} 
.site-nav .nav-links { margin: 0; }
.site-nav .nav-dropdown { margin: 8px 0 0; }
.site-nav .nav-links li { margin: 0; padding: 0; line-height: 1; }