/*
 * onlinEd — styles for content this build ADDS on top of the faithful clone:
 * the text pricing table, the FAQ page, and the custom 404 / unauthorized
 * pages. Namespaced under .ol-* so it never collides with the builder's
 * scoped classes. Uses the original design tokens (see tokens.css) so the
 * additions stay on-brand until the neobrutalist redesign replaces everything.
 */

.ol-section {
  font-family: "Raleway", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-meteorite-dark, #2f1c6a);
  padding: 48px 16px;
}
.ol-section__inner {
  max-width: 960px;
  margin: 0 auto;
}
.ol-section h1,
.ol-section h2 {
  font-family: "Caudex", Georgia, serif;
  color: var(--color-meteorite-dark, #2f1c6a);
  line-height: 1.2;
}
.ol-section h2 { font-size: 2rem; margin: 0 0 .5rem; }
.ol-muted { color: #5b5670; }
.ol-small { font-size: .85rem; }

/* ---- pricing table ---- */
.ol-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 4px 24px rgba(47, 28, 106, .08);
  border-radius: 12px;
  overflow: hidden;
}
.ol-table th[scope="col"] {
  background: var(--color-primary, #673de6);
  color: #fff;
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
}
.ol-table th[scope="row"] {
  text-align: left;
  font-weight: 600;
  background: var(--color-primary-light, #ebe4ff);
  color: var(--color-meteorite-dark, #2f1c6a);
}
.ol-table td,
.ol-table th[scope="row"] {
  padding: 12px 16px;
  border-top: 1px solid #ece9f6;
}
.ol-table tbody tr:nth-child(even) td { background: #faf9ff; }
.ol-rate { color: #6f6a85; font-size: .82em; white-space: nowrap; }

/* ---- FAQ ---- */
.ol-faq { display: grid; gap: 1rem; margin-top: 1.5rem; }
.ol-faq__item {
  background: #fff;
  border: 1px solid #ece9f6;
  border-radius: 12px;
  padding: 18px 20px;
}
.ol-faq__q {
  font-family: "Caudex", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 .4rem;
  color: var(--color-primary-dark, #5025d1);
}
.ol-faq__a { margin: 0; line-height: 1.6; }

/* ---- minimal branded chrome for added pages (faq / errors) ---- */
.ol-chrome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  max-width: 960px; margin: 0 auto; padding: 18px 16px;
  font-family: "Raleway", sans-serif;
}
.ol-chrome img { height: 44px; width: auto; }
.ol-chrome nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.ol-chrome a { color: var(--color-meteorite-dark, #2f1c6a); text-decoration: none; font-weight: 500; }
.ol-chrome a:hover { color: var(--color-primary, #673de6); }
.ol-footer {
  text-align: center; padding: 28px 16px; color: #5b5670;
  font-family: "Raleway", sans-serif; font-size: .9rem;
  border-top: 1px solid #ece9f6; margin-top: 24px;
}

/* ---- blog cards ---- */
.ol-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.ol-card {
  background: #fff;
  border: 1px solid #ece9f6;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(47, 28, 106, .06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.ol-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(47, 28, 106, .12); }
.ol-card__link { text-decoration: none; color: inherit; display: block; }
.ol-card__img { width: 100%; height: 180px; object-fit: cover; display: block; }
.ol-card__body { padding: 18px 20px; }
.ol-card__title {
  font-family: "Caudex", Georgia, serif;
  font-size: 1.2rem; margin: 0 0 .35rem;
  color: var(--color-meteorite-dark, #2f1c6a);
}
.ol-card__date { color: #8a85a0; font-size: .8rem; margin: 0 0 .5rem; }
.ol-card__excerpt { margin: 0 0 .75rem; line-height: 1.55; color: #4b465f; }
.ol-card__more { color: var(--color-primary, #673de6); font-weight: 600; }

/* ---- error / centered pages ---- */
.ol-center { text-align: center; min-height: 50vh; display: grid; place-content: center; gap: .5rem; }
.ol-center h1 { font-size: clamp(2.5rem, 8vw, 5rem); margin: 0; }
.ol-btn {
  display: inline-block; margin-top: 1rem; padding: 12px 24px;
  background: var(--color-primary, #673de6); color: #fff !important;
  border-radius: 999px; text-decoration: none; font-weight: 600;
  font-family: "Raleway", sans-serif;
}
.ol-btn:hover { background: var(--color-primary-dark, #5025d1); }
