/* === Snackbar Toast === */

#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #1e293b;
  color: #f1f5f9;
  text-align: center;
  border-radius: 6px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#snackbar.show {
  visibility: visible;
  -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}

/* === Landing Page === */

/* Hero — stays dark, but warmer */
.ck-hero {
  background: #1e293b;
  color: #f8fafc;
  text-align: center;
  padding: 5rem 2rem 4rem;
}

.ck-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.ck-hero__subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: #94a3b8;
  margin: 0 0 0.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.ck-hero__tagline {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0 0 2.5rem;
}

.ck-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ck-hero__actions .pf-v6-c-button {
  font-size: 1rem;
  padding: 0.6rem 2rem;
}

.ck-hero__code-preview {
  margin: 2.5rem auto 0;
  max-width: 420px;
}

.ck-hero__code-preview pre {
  margin: 0;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  font-size: 0.9rem;
  color: #cbd5e1;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Ecosystem Badges */
.ck-ecosystem {
  padding: 1.5rem 2rem;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ck-ecosystem__pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.ck-ecosystem__pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Selling Points (3 pillars) */
.ck-pillars {
  padding: 3.5rem 2rem;
  background: #fff;
}

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

.ck-pillar {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.ck-pillar__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #2563eb;
  font-weight: 700;
}

.ck-pillar h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
  color: #1e293b;
}

.ck-pillar p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Feature Sections */
.ck-features-heading {
  text-align: center;
  padding: 3rem 2rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.ck-features-heading h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem;
}

.ck-features-heading p {
  color: #64748b;
  font-size: 0.95rem;
}

.ck-feature-section {
  padding: 3rem 2rem;
  background: #fff;
}

.ck-feature-section--alt {
  background: #f8fafc;
}

.ck-feature {
  max-width: 1100px;
  margin: 0 auto;
}

.ck-feature h3 {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 0.5rem;
  color: #1e293b;
}

.ck-feature__desc {
  text-align: center;
  color: #64748b;
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ck-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.ck-feature__grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0 auto;
}

/* Code Blocks — dark insets on light page */
.ck-code-block {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.ck-code-block__tab {
  background: #f1f5f9;
  color: #64748b;
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  border-bottom: 1px solid #e2e8f0;
}

.ck-code-block pre {
  margin: 0;
  padding: 1rem;
  flex: 1;
  background: #1e293b;
  color: #e2e8f0;
  font-size: 0.8rem;
  line-height: 1.5;
  overflow-x: auto;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* CTA Banner */
.ck-cta {
  background: #1e293b;
  color: #f8fafc;
  text-align: center;
  padding: 3.5rem 2rem;
}

.ck-cta h2 {
  font-size: 2rem;
  font-weight: 300;
  margin: 0 0 1.5rem;
}

.ck-cta__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ck-cta .pf-v6-c-button {
  font-size: 1.1rem;
  padding: 0.7rem 2.5rem;
}

/* Highlight Cards */
.ck-highlights-section {
  padding: 3.5rem 2rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ck-highlights {
  max-width: 1100px;
  margin: 0 auto;
}

.ck-highlights__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ck-highlight-card {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.ck-highlight-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  color: #2563eb;
  font-weight: 700;
}

.ck-highlight-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1e293b;
}

.ck-highlight-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

/* Detail Sections */
.ck-detail-section {
  padding: 4rem 2rem;
  background: #fff;
}

.ck-detail-section--alt {
  background: #f8fafc;
}

.ck-detail {
  max-width: 1100px;
  margin: 0 auto;
}

.ck-detail h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #1e293b;
}

.ck-detail > p {
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 2rem;
  max-width: 800px;
  font-size: 0.95rem;
}

.ck-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Getting Started */
.ck-getting-started-section {
  padding: 4rem 2rem;
  background: #f8fafc;
}

.ck-getting-started {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.ck-getting-started h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1e293b;
}

.ck-getting-started > p {
  color: #64748b;
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.ck-getting-started__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.ck-getting-started .pf-v6-c-button {
  font-size: 1rem;
  padding: 0.6rem 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .ck-hero {
    padding: 3rem 1.5rem 2.5rem;
  }

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

  .ck-hero__subtitle {
    font-size: 1.05rem;
  }

  .ck-pillars__grid {
    grid-template-columns: 1fr;
  }

  .ck-feature__grid,
  .ck-detail__grid,
  .ck-getting-started__grid {
    grid-template-columns: 1fr;
  }

  .ck-highlights__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .ck-highlights__grid {
    grid-template-columns: 1fr;
  }
}

/* === Demo Playground === */

.demo-playground {
    margin-top: 20px;
    padding: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.demo-playground .pf-v6-c-form__label {
    display: block;
    margin-bottom: 6px;
    color: #475569;
    font-size: 0.85rem;
    font-weight: 500;
}

.demo-playground input[disabled].pf-v6-c-form-control {
    opacity: 1;
    color: #1e293b;
}

.demo-playground .pf-v6-c-form-control {
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.demo-playground .pf-v6-c-button {
    margin-top: 8px;
    margin-right: 6px;
}

.demo-result {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    min-height: 20px;
    color: #334155;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
}

textarea.demo-result {
    resize: vertical;
    background: #fff;
    color: #334155;
}

/* === Inner-page code blocks (prettyprint / Prism) === */

pre.prettyprint,
pre[class*="language-"] {
    margin: 0 0 1rem;
    padding: 1rem;
    background: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #e2e8f0;
    font-size: 0.8rem;
    line-height: 1.55;
    overflow-x: auto;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.pf-v6-c-content h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* 404 Page */
.ck-notfound {
  text-align: center;
  padding: 6rem 2rem;
}

.ck-notfound__code {
  font-size: 8rem;
  font-weight: 700;
  color: #cbd5e1;
  line-height: 1;
  margin-bottom: 1rem;
}

.ck-notfound h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem;
}

.ck-notfound p {
  color: #64748b;
  margin: 0 0 2rem;
  font-size: 1rem;
}
