:root {
  --brand-red: #c81e3a;
  --brand-red-dark: #a5142e;
  --brand-red-soft: #fbe4e8;
  --brand-border: #efc7cf;
  --surface-soft: #f3f4f6;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: #1f2937;
  background: #f8fafc;
}
a { color: inherit; text-decoration: none; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
}
.site-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
}
.brand-logo { height: 42px; width: auto; display: block; }
.brand-text { color: #1f2937; }
.site-nav { display: flex; gap: 18px; color: #475569; font-weight: 600; }
.page { max-width: 1100px; margin: 0 auto; padding: 32px 20px 56px; }
.hero {
  background: linear-gradient(135deg, #1f2937, var(--brand-red));
  color: white;
  border-radius: 24px;
  padding: 56px;
  margin-top: 24px;
}
.eyebrow { text-transform: uppercase; letter-spacing: .08em; opacity: .8; font-size: 12px; }
.eyebrow.dark { color: var(--brand-red); opacity: 1; }
h1 { font-size: 44px; line-height: 1.05; margin: 12px 0 18px; }
.lead { font-size: 18px; max-width: 720px; opacity: .92; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.hero-badges span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 600;
}
.search-form, .filters { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.active-filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 14px 0 4px;
}
.active-filters-label {
  color: #64748b;
  font-weight: 600;
}
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--brand-border);
  color: #334155;
  font-weight: 600;
}
.chip small { color: #64748b; }
.chip.active {
  background: var(--brand-red);
  color: white;
  border-color: var(--brand-red);
}
.chip.active small { color: rgba(255,255,255,.82); }
.suggestions-row { margin-top: 10px; }
.suggestion-chip { background: var(--brand-red-soft); border-color: var(--brand-border); }
.active-filter-chip {
  background: var(--brand-red-soft);
  border-color: var(--brand-border);
}
.active-filter-chip strong {
  color: #0f172a;
}
input,
select {
  flex: 1;
  min-width: 220px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  background: white;
  color: #1f2937;
}
.category-select {
  max-width: 320px;
}
.helper-text {
  color: #64748b;
  margin: 10px 0 0;
}
button, .button {
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  background: var(--brand-red);
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.button.secondary, .button.ghost {
  background: white;
  color: #0f172a;
  border: 1px solid var(--brand-border);
}
.hero-search-button {
  background: #e5e7eb;
  color: var(--brand-red);
  border: 1px solid #d1d5db;
}
.hero-quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.hero-quick-searches span {
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.hero-helper {
  color: rgba(255,255,255,.82);
}
.hero-actions { margin-top: 16px; display: flex; gap: 12px; }
.quick-proof-strip,
.stats-strip,
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.proof-card,
.stats-strip article,
.benefits-strip article {
  background: white;
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.proof-card strong,
.stats-strip strong,
.benefits-strip strong {
  display: block;
  font-size: 28px;
  color: var(--brand-red);
}
.proof-card p,
.stats-strip span,
.benefits-strip span {
  color: #475569;
}
.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.highlights article, .card, .detail-card, .featured-card, .cta-band {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.page-header { margin: 16px 0 24px; }
.back-link { color: var(--brand-red); font-weight: 600; }
.results-meta { margin: 12px 0 20px; color: #475569; }
.demo-note {
  margin-top: 8px;
  color: var(--brand-red-dark);
  background: var(--brand-red-soft);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 10px 12px;
}
.empty-state {
  background: white;
  border-radius: 18px;
  padding: 24px;
  color: #475569;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
}
.empty-state ul {
  margin: 14px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.budget-builder {
  display: grid;
  gap: 16px;
}
.budget-toolbar {
  position: sticky;
  top: 88px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--brand-border);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}
.budget-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.budget-toolbar-actions .button {
  min-width: 180px;
}
.budget-toolbar-label {
  margin: 0 0 4px;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.budget-toolbar-text {
  margin: 0;
  color: #334155;
  font-weight: 600;
}
.budget-toolbar .button[disabled],
.budget-toolbar-actions .button[disabled] {
  opacity: .55;
  cursor: not-allowed;
}
.selection-tray {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff5f7 0%, #ffffff 100%);
  border: 1px solid var(--brand-border);
}
.selection-tray-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.selection-tray-text {
  margin: 4px 0 0;
  color: #475569;
  font-weight: 500;
}
.selection-tray-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.selection-pill {
  border: 1px solid var(--brand-border);
  background: white;
  color: #0f172a;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
}
.selection-pill::after {
  content: '×';
  margin-left: 8px;
  color: var(--brand-red);
  font-weight: 800;
}
.selection-pill:hover {
  border-color: var(--brand-red);
  box-shadow: 0 8px 20px rgba(200, 30, 58, 0.10);
}
.cards { display: grid; gap: 14px; }
.selectable-cards {
  margin-top: 2px;
}
.card { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding: 24px 30px; }
.selectable-card {
  border: 2px solid transparent;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.selectable-card.is-selected {
  border-color: var(--brand-red);
  box-shadow: 0 16px 34px rgba(200, 30, 58, 0.14);
  transform: translateY(-2px);
}
.course-select-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
}
.course-select-label input {
  min-width: auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--brand-red);
}
.card-body {
  width: 100%;
}
.card-category { color: var(--brand-red); font-weight: 700; margin: 0 0 4px; font-size: 14px; }
.card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin-bottom: 12px;
}
.card-title-row h2 {
  flex: 1 1 auto;
  min-width: 0;
}
.card h2 { font-size: 18px; line-height: 1.25; margin: 0; }
.card-inline-button {
  white-space: nowrap;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 10px;
}
.meta { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; color: #475569; font-size: 14px; }
.meta.vertical { display: grid; gap: 10px; }
.card-actions, .detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-note { margin-top: 24px; color: #475569; }
.budget-lead {
  color: #475569;
  max-width: 760px;
}
.budget-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  gap: 20px;
  align-items: start;
}
.budget-side-column {
  display: grid;
  gap: 18px;
}
.budget-summary-card,
.budget-totals-card,
.budget-company-card {
  padding: 28px;
}
.budget-summary-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}
.budget-summary-head h2,
.budget-line-item h3 {
  margin: 0;
}
.budget-summary-list {
  display: grid;
  gap: 14px;
}
.budget-line-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid #e5e7eb;
}
.budget-line-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.budget-line-meta {
  margin: 8px 0 0;
  color: #475569;
}
.budget-line-amount {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-red);
  white-space: nowrap;
}
.budget-total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #334155;
}
.budget-total-row strong {
  color: #0f172a;
}
.budget-total-row-final {
  margin-top: 8px;
  padding-top: 18px;
  font-size: 18px;
  border-top: 2px solid var(--brand-border);
  border-bottom: 0;
}
.budget-total-row-final strong {
  color: var(--brand-red);
  font-size: 28px;
}
.budget-company-form {
  display: grid;
  gap: 14px;
}
.budget-company-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  color: #334155;
  font-weight: 600;
}
.budget-company-actions {
  margin-top: 6px;
}
.budget-company-actions .button {
  flex: 1 1 220px;
}
.pagination-row,
.course-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.course-nav-row .button {
  max-width: 48%;
  text-align: center;
}
.featured-section, .trust-section, .review-section, .faq-section, .process-section, .usecases-section, .signals-section, .release-section, .ops-section, .milestones-section { margin-top: 32px; }
.section-heading { margin-bottom: 16px; }
.section-heading h2 { margin: 8px 0 0; font-size: 30px; }
.featured-grid,
.related-grid,
.faq-grid,
.all-categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.featured-card h3 { margin-top: 0; }
.related-section { margin-top: 32px; }
.all-categories-section { margin-top: 32px; }
.category-tile {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-height: 122px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.category-tile::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--brand-red), #e8798d);
  opacity: .9;
}
.category-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
  border-color: var(--brand-border);
}
.category-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff1f3 0%, var(--brand-red-soft) 100%);
  border: 1px solid var(--brand-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.category-tile-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.category-tile span {
  font-weight: 700;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.12;
  font-size: 15px;
}
.category-tile small {
  color: #64748b;
  font-size: 13px;
}
.text-link { color: var(--brand-red); font-weight: 700; }
.review-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.highlights-card { margin-top: 16px; }
.review-card ul {
  margin: 0;
  padding-left: 20px;
  color: #475569;
  display: grid;
  gap: 10px;
}
.cta-band {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.status-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-page {
  max-width: 1240px;
}
.admin-auth-card,
.admin-panel {
  padding: 32px;
}
.admin-auth-card {
  max-width: 940px;
  margin: 40px auto 0;
}
.admin-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
}
.admin-auth-copy h1 {
  margin: 6px 0 10px;
  font-size: 54px;
  line-height: 0.98;
}
.admin-auth-copy .helper-text {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.45;
}
.admin-auth-form-wrap {
  width: 100%;
}
.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.admin-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}
.admin-panel-wide,
.admin-panel-full {
  width: 100%;
}
.admin-panel-wide {
  max-width: 860px;
}
.admin-panel-full {
  margin-top: 10px;
}
.admin-export-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.admin-stat-card {
  padding: 20px;
}
.admin-stat-card strong {
  display: block;
  font-size: 28px;
  color: var(--brand-red);
  margin-bottom: 6px;
}
.admin-stat-card span {
  color: #64748b;
  font-size: 14px;
}
.admin-panel-heading {
  margin-bottom: 18px;
}
.admin-panel-heading h2 {
  margin: 0 0 8px;
  font-size: 26px;
}
.admin-panel-heading .helper-text {
  margin: 0;
  max-width: 520px;
}
.admin-form-stack,
.admin-form-grid {
  display: grid;
  gap: 14px;
}
.admin-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-form-stack label,
.admin-form-grid label {
  display: grid;
  gap: 5px;
  font-size: 13px;
}
.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.admin-success,
.admin-error {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.admin-note-box {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
}
.admin-note-box strong {
  display: block;
  margin-bottom: 6px;
}
.admin-note-box p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.admin-note-box code {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 12px;
}
.admin-success {
  background: #ecfdf5;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.admin-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.admin-list-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e5e7eb;
}
.admin-list-toolbar-copy h2 {
  margin: 4px 0 6px;
}
.admin-list-toolbar-copy .helper-text {
  margin: 0;
}
.admin-search-input {
  width: 100%;
  max-width: 420px;
}
.admin-search-panel {
  margin-bottom: 18px;
}
.admin-inline-filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.admin-inline-filter-form-full {
  margin: 0;
}
.admin-search-input-compact {
  max-width: 420px;
}
.admin-search-input-full {
  max-width: none;
  flex: 1 1 560px;
}
.admin-cards-list {
  display: grid;
  gap: 18px;
}
.admin-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}
.admin-pagination span {
  color: #475569;
}
.admin-course-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}
.admin-course-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.admin-course-head h3 {
  margin: 4px 0 4px;
  font-size: 17px;
  line-height: 1.2;
}
.admin-course-code {
  margin: 0;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.admin-course-meta {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.admin-status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-status-pill.is-active {
  background: #ecfdf5;
  color: #166534;
}
.admin-status-pill.is-inactive {
  background: #fef2f2;
  color: #991b1b;
}
.admin-edit-form {
  margin-top: 10px;
}
.admin-inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.admin-actions-row {
  grid-column: 1 / -1;
}
@media (max-width: 760px) {
  .site-header-inner { flex-direction: column; align-items: flex-start; }
  .site-nav { flex-wrap: wrap; gap: 12px; }
  .active-filters-row { align-items: flex-start; }
  .status-actions { width: 100%; }
  .status-actions .button { flex: 1; }
  .hero-actions { flex-wrap: wrap; }
  .hero-quick-searches { align-items: flex-start; }
  .filters .button { width: 100%; }
  .filters a.button { width: auto; }
  .hero { padding: 32px 24px; }
  h1 { font-size: 34px; }
  .budget-toolbar {
    top: 76px;
    flex-direction: column;
    align-items: stretch;
  }
  .budget-toolbar-actions,
  .selection-tray-head {
    flex-direction: column;
    align-items: stretch;
  }
  .budget-toolbar-actions .button,
  .budget-toolbar .button {
    width: 100%;
  }
  .budget-summary-grid {
    grid-template-columns: 1fr;
  }
  .budget-summary-head,
  .budget-line-item,
  .budget-total-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .budget-line-amount {
    white-space: normal;
  }
  .card { flex-direction: column; }
  .course-select-label {
    min-width: auto;
  }
  .card-title-row { flex-direction: column; align-items: flex-start; }
  .card-inline-button { white-space: normal; width: 100%; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .admin-topbar,
  .admin-list-toolbar,
  .admin-course-head { flex-direction: column; align-items: flex-start; }
  .admin-auth-layout { grid-template-columns: 1fr; }
  .admin-auth-copy h1 { font-size: 40px; line-height: 1.02; }
  .admin-search-input,
  .admin-search-input-compact { max-width: 100%; width: 100%; }
  .admin-inline-filter-form { align-items: stretch; }
  .admin-form-grid { grid-template-columns: 1fr; }
}
