/* Cognitudo workspace — támogatás-oldal (lila arculat)
   Egyszerű, use-case-first, magyar. Csak beágyazott/statikus CSS. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1f2937;
  background: #faf9ff;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: #7c3aed; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: #2e1065; margin-top: 0; line-height: 1.25; }
p { margin: 0 0 12px; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #2e1065;
  font-size: 17px;
}
.brand-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #5b21e6; color: #fff; border-radius: 8px;
  font-family: "Georgia", serif; font-weight: bold; font-size: 16px;
}
.brand-logo {
  height: 30px; width: auto; display: inline-block;
}
.brand-logo-full {
  height: 26px; width: auto; display: inline-block;
}
.header-links {
  display: flex; align-items: center; gap: 20px;
}
.header-links a { color: #4b5563; font-weight: 500; font-size: 14px; }
.header-cta {
  background: #2e1065;
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.header-cta:hover { background: #4c1d95; text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  padding: 56px 24px 40px;
  text-align: center;
  border-bottom: 1px solid #ece9f6;
}
.hero h1 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 12px;
}
.hero h1 em {
  font-style: italic;
  color: #7c3aed;
  font-weight: 700;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #4b5563;
  font-size: 17px;
}
.search-box {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 14px 16px 14px 46px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.search-box input:focus {
  outline: none;
  border-color: #2e1065;
  box-shadow: 0 0 0 3px rgba(91,33,230,0.15);
}
.search-box .search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

/* Section headings */
.section-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px;
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}
.section-sub {
  color: #6b7280;
  margin-bottom: 24px;
  font-size: 15px;
}

/* Cards grid */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,33,230,0.08);
  border-color: #ddd6fe;
  text-decoration: none;
}
.card-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ede9fe;
  color: #2e1065;
  border-radius: 10px;
}
.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #7c3aed;
  background: #ede9fe;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
}
.card h3 {
  font-size: 17px;
  margin: 0;
}
.card p {
  color: #4b5563;
  font-size: 14px;
  margin: 0;
  flex-grow: 1;
}
.card-cta {
  color: #7c3aed;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Onboarding block (szerep-utak) */
.onboarding {
  background: #2e1065;
  color: #f5f3ff;
  padding: 48px 24px;
}
.onboarding-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.onboarding h2 { color: #ffffff; font-size: 26px; margin-bottom: 8px; }
.onboarding .lead { color: #ddd6fe; max-width: 640px; margin-bottom: 28px; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.role-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 18px;
  color: #f5f3ff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.role-card:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.role-card .role-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #ffffff;
}
.role-card h3 { color: #ffffff; font-size: 16px; margin: 0; }
.role-card p { color: #ddd6fe; font-size: 13.5px; margin: 0; }

/* Detail page */
.detail-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  padding: 48px 24px 28px;
  border-bottom: 1px solid #ece9f6;
}
.detail-hero-inner {
  max-width: 880px;
  margin: 0 auto;
}
.breadcrumb {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
  display: flex; gap: 6px;
  align-items: center;
}
.breadcrumb a { color: #6b7280; }
.breadcrumb a:hover { color: #2e1065; }
.detail-hero h1 {
  font-size: 34px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 14px;
}
.detail-hero h1 .icon-wrap {
  width: 44px; height: 44px;
  background: #ede9fe; color: #2e1065;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
.detail-hero p.lead {
  color: #4b5563;
  font-size: 17px;
  margin: 0;
}

.detail-body {
  max-width: 880px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.block {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 20px;
}
.block h2 {
  font-size: 20px;
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.block h2 .h-ico {
  color: #7c3aed;
  display: inline-flex; align-items: center;
}

/* Step list */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 42px;
  border-bottom: 1px dashed #e5e7eb;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 10px;
  width: 28px; height: 28px;
  background: #ede9fe;
  color: #2e1065;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.kbd {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 5px;
  padding: 1px 6px;
  color: #111827;
}

/* Demo embed placeholder */
.demo-wrap {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 20px;
}
.demo-wrap h2 { margin-bottom: 6px; }
.demo-wrap .demo-hint { color: #6b7280; font-size: 14px; margin-bottom: 18px; }
.demo-frame {
  position: relative;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  background: #4c1d95;
}
.demo-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.demo-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #2e1065 0%, #7c3aed 100%);
  color: #f5f3ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.demo-placeholder .pulse {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.75; }
}
.demo-placeholder h3 { color: #fff; margin: 0; font-size: 20px; }
.demo-placeholder p { color: #ddd6fe; margin: 0; max-width: 520px; }

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 28px 24px;
  color: #6b7280;
  font-size: 13.5px;
}
.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: #4b5563; }

/* Responsive */
@media (max-width: 720px) {
  .hero { padding: 40px 20px 32px; }
  .hero h1 { font-size: 30px; }
  .detail-hero h1 { font-size: 26px; }
  .section-wrap { padding: 32px 20px; }
  .header-links { gap: 12px; }
  .header-links a:not(.header-cta) { display: none; }
}

/* Screenshot block */
.screenshot-figure { margin: 0; }
.screenshot-figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd6fe;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(46, 16, 101, 0.10);
}
.screenshot-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: #6b5e8c;
  text-align: center;
}
