:root {
  color-scheme: light;
  /* Professional education color palette */
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-primary-light: #dbeafe;
  --color-accent: #f59e0b;
  --color-accent-dark: #d97706;
  --color-success: #10b981;
  --color-text: #1f2937;
  --color-text-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg-alt);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header Styles */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 0;
}

/* Brand: logo + text */
.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

/* Keep your colorful title */
.brand strong,
.brand-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.brand small,
.brand-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nav: conventional, underline active */
.nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  padding: 0.25rem 0;
  border-radius: 0;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  color: var(--color-text);
  background: transparent;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.nav a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Mobile: keep brand tidy */
@media (max-width: 768px) {
  .brand-icon {
    width: 36px;
    height: 36px;
  }

  .brand strong,
  .brand-title {
    font-size: 1.05rem;
  }

  .brand small,
  .brand-tagline {
    font-size: 0.8rem;
  }
}

/* Hamburger toggle button */
.nav-toggle {
  display: none; /* stays hidden on desktop */
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);

  /* Force bars to stack vertically */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 0;
}

.nav-toggle:hover {
  border-color: var(--color-primary);
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;

  /* no margins; we use gap on the parent */
  margin: 0;

  /* Smooth animation */
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Animate hamburger -> X when open */
html.nav-open .nav-toggle .nav-toggle-bar:nth-child(2) {
  transform: translateY(7px) rotate(45deg);
}

html.nav-open .nav-toggle .nav-toggle-bar:nth-child(3) {
  opacity: 0;
  transform: scaleX(0);
}

html.nav-open .nav-toggle .nav-toggle-bar:nth-child(4) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main Content */
main {
  padding: 2rem 0 4rem;
  background: var(--color-bg-alt);
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, #ffffff 100%);
  border-radius: var(--radius-xl);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '📚';
  position: absolute;
  bottom: -20px;
  right: 5%;
  font-size: 8rem;
  opacity: 0.15;
  pointer-events: none;
  transform: rotate(-15deg);
}

.hero > * {
  position: relative;
  padding: 0 2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.15rem;
  margin: 0 0 1.75rem;
  max-width: 65ch;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero--image {
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.85) 0%, rgba(255, 255, 255, 0.92) 55%),
    var(--hero-image, none);
  background-size: cover;
  background-position: center;
}

.hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 85%, rgba(245, 158, 11, 0.10), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 0 2rem;
}

.section {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.section h2 {
  margin-top: 0;
}

.list-check {
  margin: 0;
  padding-left: 1.25rem;
}

.list-check li {
  margin: 0.5rem 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(245, 158, 11, 0.08) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn.primary {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.btn.primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn:not(.primary) {
  background: white;
  color: var(--color-primary);
}

.btn:not(.primary):hover {
  background: var(--color-primary-light);
}

/* Section Styles */
section {
  margin-bottom: 4rem;
}

section h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin: 0 0 2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 0.75rem;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 2px;
}

/* Grid Layout */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Card Styles */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
  text-decoration: none;
}

.card:hover::before {
  transform: scaleX(1);
}

.card h3 {
  font-size: 1.25rem;
  margin: 0.25rem 0 0.75rem;
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card h3::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.card p {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Blog post cards - special styling */
a.card h3::before {
  content: '📝';
  background: transparent;
  font-size: 1.25rem;
}

/* Utility Classes */
.muted {
  color: var(--color-text-muted);
}

.prose {
  line-height: 1.75;
}

.prose h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin: 0 0 1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 1.75rem;
  margin: 2rem 0 1rem;
  font-weight: 600;
  color: var(--color-text);
}

.prose h3 {
  font-size: 1.375rem;
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
  color: var(--color-text);
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.75rem;
}

.prose li {
  margin: 0.5rem 0;
}

.post-meta {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-meta::before {
  content: '📅';
  font-size: 1rem;
}

/* Footer Styles */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.site-footer strong {
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 700;
}

.site-footer p {
  margin: 1rem 0 0;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: nowrap; /* IMPORTANT: no wrapping */
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0; /* allows ellipsis */
  }

  .brand small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Show hamburger on mobile (button already column via your base .nav-toggle styles) */
  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    margin-left: auto;
  }

  /* Dropdown menu BELOW the header row */
  .nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;

    display: none; /* closed by default */
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;

    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 200;
  }

  .nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-lg);
  }

  html.nav-open .nav {
    display: flex;
  }

  .hero {
    padding: 3rem 0 2rem;
  }

  .hero > * {
    padding: 0 1.5rem;
  }

  .cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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

/* Loading Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card {
  animation: fadeIn 0.5s ease-out backwards;
}

.card:nth-child(1) {
  animation-delay: 0.1s;
}

.card:nth-child(2) {
  animation-delay: 0.2s;
}

.card:nth-child(3) {
  animation-delay: 0.3s;
}

.card:nth-child(4) {
  animation-delay: 0.4s;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Print Styles */
@media print {
  .site-header,
  .site-footer,
  .cta {
    display: none;
  }
}

/* Forms (Grav Form plugin) */
.form-wrap {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 1.25rem;
  width: 60vw;
}

/* Success (Thank You) Card */
.success-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  align-items: start;

  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.success-card::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 56px;
  height: 56px;
  border-radius: 999px;

  background: rgba(16, 185, 129, 0.18);
  color: rgb(5, 150, 105);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.success-card__title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0.1rem 0 0.35rem;
}

.success-card__text {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.7;
}

.success-card__sub {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .success-card {
    grid-template-columns: 44px 1fr;
    padding: 1.05rem;
  }
  .success-card::before {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
  .success-card__title {
    font-size: 1.2rem;
  }
}

.grav-form,
form {
  margin: 0;
}

.form-field {
  margin: 0 0 1rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 0.5rem;
}

.form-label .required,
.form-field .required {
  color: #dc2626; /* red */
  font-weight: 700;
  margin-left: 0.25rem;
}

/* Inputs */
.form-data input[type="text"],
.form-data input[type="email"],
.form-data input[type="tel"],
.form-data input[type="number"],
.form-data select,
.form-data textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--color-text);
  font: inherit;
  line-height: 1.4;
  box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.0);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-data textarea {
  resize: vertical;
  min-height: 110px;
}

.form-data select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%),
    linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.25rem;
}

.form-data input:focus,
.form-data select:focus,
.form-data textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

/* Checkbox / radio */
.form-data input[type="checkbox"],
.form-data input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0.65rem 0 0;
  vertical-align: top;
  accent-color: var(--color-primary);
}

.form-data .checkboxes,
.form-data .radios {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-data .checkboxes label,
.form-data .radios label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--color-text);
}

/* Help / messages */
.form-field .form-extra-wrapper,
.form-field .form-help {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-top: 0.35rem;
}

.alert,
.form-message {
  border-radius: var(--radius-lg);
  padding: 0.85rem 1rem;
  margin: 0 0 1rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.alert.success,
.form-message.success {
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.08);
}

.alert.error,
.form-message.error {
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
}

/* Validation errors */
.form-field.error .form-data input,
.form-field.error .form-data select,
.form-field.error .form-data textarea {
  border-color: rgba(220, 38, 38, 0.7);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.inline-errors,
.form-errors {
  margin: 0.5rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  color: var(--color-text);
  font-size: 0.95rem;
}

.inline-errors ul,
.form-errors ul {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
}

/* Buttons (make Grav submit match your .btn styles) */
.buttons,
.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.buttons button,
.buttons input[type="submit"],
.form-actions button,
.form-actions input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  background: var(--color-primary);
  color: #fff;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.buttons button:hover,
.buttons input[type="submit"]:hover,
.form-actions button:hover,
.form-actions input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .form-wrap {
    padding: 1.1rem;
    width: 90vw;
  }

  .buttons,
  .form-actions {
    flex-direction: column;
  }

  .buttons button,
  .buttons input[type="submit"],
  .form-actions button,
  .form-actions input[type="submit"] {
    width: 100%;
  }
}

.lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 1.25rem;
  line-height: 1.75;
  max-width: 75ch;
}

.kicker {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.rich p {
  margin: 0 0 1rem;
}
.rich h2,
.rich h3 {
  margin-top: 1.5rem;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: center;
}

.split--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.split--reverse .split-text {
  order: 2;
}
.split--reverse .split-media {
  order: 1;
}

.split-media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  margin: 0 0 0.75rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
  }
  .split--reverse .split-text {
    order: 1;
  }
  .split--reverse .split-media {
    order: 2;
  }
}

.proof-strip {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.proof-strip__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.proof-pill {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
}

.proof-pill__icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  border-radius: 999px;
  font-size: 0.95rem;
}

.proof-pill__text {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.steps__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.steps__item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
}

.steps__title {
  font-weight: 800;
  margin-bottom: 0.25rem;
}

/* Home: anchor pills */
.hero-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.anchor-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--color-text);
}

.anchor-pill:hover {
  text-decoration: none;
  border-color: var(--color-primary);
}

/* Logo cloud */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  align-items: center;
}

.logo-cloud__item {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
}

.logo-cloud__item img {
  max-width: 140px;
  max-height: 34px;
  width: auto;
  height: auto;
  opacity: 0.9;
}

/* Sticky CTA (mobile only) */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--color-border);
  backdrop-filter: blur(10px);
  display: none;
  gap: 0.75rem;
  z-index: 500;
}

@media (max-width: 768px) {
  .sticky-cta {
    display: flex;
  }
  main.container {
    padding-bottom: 6rem; /* avoid overlap with sticky CTA */
  }
}


/* ===== URAP TABLE: hard override (beats inline styles) ===== */
/* ===== Clean, consistent tables (global for blog content) ===== */

/* Wrapper: gives border + radius without border-seam artifacts */
.prose .table-wrap{
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

/* Base tables inside content */
.prose table{
  width: 100%;
  border-collapse: collapse;   /* key: eliminates “weird seam” lines */
  border-spacing: 0;
  background: var(--color-bg);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* If wrapped, remove the table’s own border (wrapper owns it) */
.prose .table-wrap > table{
  border: 0;
}

/* Cells */
.prose table th,
.prose table td{
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--color-border);
  word-break: break-word;
  white-space: normal;
}

/* No right border on last column */
.prose table th:last-child,
.prose table td:last-child{
  border-right: 0;
}

/* Header */
.prose table thead th{
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  border-top: 0;
}

/* Body zebra */
.prose table tbody tr:nth-child(even) td{
  background: #f8fafc;
}

/* Optional: tighter first column */
.prose table td:first-child{
  font-weight: 700;
  color: #111827;
}

/* Fix themes that “responsive-break” tables into blocks */
.prose table thead,
.prose table tbody{ display: table-row-group !important; }
.prose table tr{ display: table-row !important; }
.prose table th,
.prose table td{ display: table-cell !important; }

