/* === städnu Design System v1 — Minimal Premium === */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(79,70,229,0.12); color: #1e293b; }

/* Scroll reveals */
[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22,1,0.36,1), transform 0.6s cubic-bezier(0.22,1,0.36,1); }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* Section eyebrow */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 0.75rem;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.section-eyebrow::before {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #818cf8, #34d399);
  box-shadow: 0 0 0 3px rgba(129,140,248,0.15);
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: white;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  color: #1e293b;
  outline: none;
}
.form-input:focus { border-color: #4f46e5; box-shadow: 0 0 0 4px rgba(79,70,229,0.08); }
.form-input::placeholder { color: #94a3b8; }
.form-input:hover { border-color: #cbd5e1; }

/* Category card selection */
.cat-card { cursor: pointer; }
.cat-card.selected {
  border-color: #4f46e5 !important;
  background: rgba(79,70,229,0.06) !important;
  box-shadow: 0 0 0 2px rgba(79,70,229,0.25), 0 8px 24px rgba(79,70,229,0.12);
}

/* Sub-option buttons */
.sub-option-btn {
  width: 100%;
  text-align: left;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  border: 1.5px solid #e2e8f0;
  background: white;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  font-size: 0.875rem;
}
.sub-option-btn:hover {
  border-color: #a5b4fc;
  background: rgba(79,70,229,0.03);
  transform: scale(1.01);
}
.sub-option-btn.selected {
  border-color: #4f46e5;
  background: rgba(79,70,229,0.06);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(79,70,229,0.08);
}

/* Steps */
.step-tab { cursor: pointer; }
.step-tab.active {
  color: #4f46e5 !important;
  border-color: #4f46e5 !important;
}
.step-tab.inactive {
  color: #94a3b8 !important;
  border-color: transparent !important;
}

/* Step transitions */
.step-panel {
  animation: stepIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile drawer */
#mobile-drawer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
#mobile-drawer.open { max-height: 400px; }

/* Nav links */
.nav-link { transition: all 0.2s ease; }

/* Header shadow on scroll */
#main-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.04); }

/* FAQ details marker */
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: #4f46e5;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }

/* Service card hover */
.service-card {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
}
.service-card:hover {
  box-shadow: 0 12px 36px rgba(0,0,0,0.06);
  transform: translateY(-3px) scale(1.01);
}
.service-card:active {
  transform: translateY(-1px) scale(0.99);
}
.service-card.active {
  background: #fff !important;
  color: #1e293b !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15), 0 0 0 2px #6366f1 !important;
  transform: scale(1.02);
}
.service-card.active h3 { color: #1e293b !important; }
.service-card.active p { color: #475569 !important; }
.service-card.active .icon-wrap { background: rgba(79,70,229,0.1) !important; color: #4f46e5 !important; }

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Counter animation */
@keyframes countUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
[data-counter-target] { animation: countUp 0.5s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

@media (max-width: 640px) {
  .form-input { padding: 0.7rem 0.875rem; }
  .cat-card { padding: 1rem; }
}

/* Sticky Mobile CTA */
#sticky-cta { transition: transform 0.3s cubic-bezier(0.4,0,0.2,1); }
#sticky-cta.hidden-cta { transform: translateY(100%); }
.safe-area-bottom { padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Step panel stagger */
.step-panel {
  animation: stepIn 0.35s cubic-bezier(0.22,1,0.36,1) both;
}
.step-panel.step-enter { animation: stepIn 0.4s cubic-bezier(0.22,1,0.36,1) both; }
.step-panel.step-leave { animation: stepOut 0.25s ease-in both; }
@keyframes stepOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-8px); }
}

/* Cookie banner */
#cookie-banner { animation: fadeInUp 0.5s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* Privacy modal */
#privacy-modal { transition: opacity 0.3s ease; }
#privacy-modal > div:last-child { animation: scaleIn 0.3s cubic-bezier(0.22,1,0.36,1) both; }
@keyframes scaleIn { from { opacity:0; transform:scale(0.95) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }

/* Min height for touch targets */
button, a, .cat-card, .sub-option-btn, .service-card { min-height: 44px; }
.form-input { min-height: 48px; }
