/* =====================================================
   Kadry Mini — strona internetowa
   Custom CSS uzupełniający Tailwind via CDN. Kolory
   identyczne z apką Flutter (lib/theme/app_colors.dart).
   ===================================================== */

:root {
  --cream: #FBFAF7;
  --paper: #F5F1E8;
  --paper-strong: #EAE3D4;
  --emerald: #2E7D5B;
  --emerald-dark: #1F6B4D;
  --emerald-light: #5E9C5A;
  --terracotta: #C15D2E;
  --terracotta-dark: #A94732;
  --honey: #E3B23C;
  --ink: #1A1A17;
  --ink-soft: #4A4A47;
  --ink-mute: #6B6E71;
  --ink-faint: #9B9B97;
  --border: #E7E1D8;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3, h4 {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { letter-spacing: -0.035em; }

/* ===== Hero gradient blobs ===== */
.blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.45;
  pointer-events: none;
  z-index: -1;
}
.blob-emerald { background: var(--emerald); }
.blob-terracotta { background: var(--terracotta); }
.blob-honey { background: var(--honey); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: white;
  box-shadow: 0 1px 2px rgba(46, 125, 91, 0.15), 0 4px 12px rgba(46, 125, 91, 0.18);
}
.btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(46, 125, 91, 0.2), 0 8px 16px rgba(46, 125, 91, 0.22);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--paper);
  border-color: var(--paper-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  padding: 0.5rem 0.875rem;
}
.btn-ghost:hover {
  color: var(--ink);
  background: var(--paper);
}
.btn-disabled {
  background: var(--paper);
  color: var(--ink-faint);
  cursor: not-allowed;
}
.btn-disabled:hover {
  transform: none;
}

/* ===== Cards ===== */
.card {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.card:hover {
  border-color: var(--paper-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 26, 23, 0.06);
}
.card-feature {
  background: white;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ===== Nav ===== */
.nav-link {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: all 0.15s ease;
  text-decoration: none;
}
.nav-link:hover {
  color: var(--ink);
  background: var(--paper);
}
.nav-link.active {
  color: var(--emerald);
}

/* ===== Section spacing ===== */
.section { padding: 6rem 0; }
.section-tight { padding: 4rem 0; }

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}
.float { animation: float 6s ease-in-out infinite; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fade-up 0.6s ease-out backwards; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Device mockup (hero) ===== */
.device {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #1A1A17;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 0 0 4px #2a2a26,
    0 24px 48px rgba(26, 26, 23, 0.18),
    0 12px 24px rgba(26, 26, 23, 0.12);
}
.device-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
}
.device-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 18px;
  background: #1A1A17;
  border-radius: 999px;
  z-index: 2;
}

/* ===== FAQ accordion ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--ink-mute);
  transition: transform 0.2s;
}
.faq-item[open] summary::after {
  content: '–';
}
.faq-answer {
  padding: 0 0 1.25rem 0;
  color: var(--ink-soft);
}

/* ===== Pricing card highlight ===== */
.pricing-popular {
  position: relative;
  border: 2px solid var(--emerald);
  box-shadow: 0 12px 32px rgba(46, 125, 91, 0.12);
}
.pricing-popular::before {
  content: 'Najczęściej wybierany';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--emerald);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ===== Tag / pill ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--paper);
  color: var(--ink-soft);
}
.tag-emerald { background: rgba(46, 125, 91, 0.1); color: var(--emerald); }
.tag-terracotta { background: rgba(193, 93, 46, 0.1); color: var(--terracotta); }
.tag-honey { background: rgba(227, 178, 60, 0.15); color: #8a6c1a; }

/* ===== Step numbers ===== */
.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
}

/* ===== Prose (legal pages) ===== */
.prose {
  max-width: 720px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 1rem;
}
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: var(--ink);
}
.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.5rem;
  color: var(--ink);
}
.prose p { margin: 0 0 1rem; }
.prose ul {
  margin: 0 0 1rem 1.25rem;
  list-style: disc;
}
.prose li { margin-bottom: 0.5rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--emerald); text-decoration: underline; }

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
}
footer h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
footer a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover {
  color: white;
}

/* ===== Responsive tweaks ===== */
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .device { width: 240px; }
  h1 { font-size: 2.5rem !important; }
}

/* ===== Mobile menu ===== */
#mobile-menu {
  display: none;
}
#mobile-menu.open {
  display: block;
}
