/* SolisCME landing page
   Brand: black and white (from the SolisCME logo) with a warm "sun" accent.
   Change the colours in :root to restyle the whole page. */

:root {
  --ink: #0b0b0c;
  --ink-soft: #3d3d42;
  --muted: #6b6b72;
  --line: #e4e2dd;
  --paper: #ffffff;
  --paper-warm: #f7f5f0;
  --accent: #f5a524;
  --accent-deep: #d8860b;
  --accent-soft: #fff3dc;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 20px 50px rgba(11, 11, 12, 0.12);
  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.has-plan {
  padding-bottom: 120px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 800;
}

h3 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin: 0;
}

.container {
  width: min(var(--container), 100% - 40px);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(72px, 9vw, 120px) 0;
}

.section-lede {
  max-width: 560px;
  margin-top: 16px;
  color: var(--ink-soft);
}

/* ---- Buttons ---------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-accent {
  background: var(--accent);
  color: var(--ink);
}

.button-accent:hover {
  background: #ffb73f;
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-dark:hover {
  background: #26262a;
}

.button-outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  background: var(--ink);
  color: #fff;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.button-ghost:hover {
  border-color: #fff;
}

.button-ghost-light {
  border-color: rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
}

.button.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ---- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand img {
  width: 140px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a:not(.button) {
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:not(.button):hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.nav-toggle span[aria-hidden],
.nav-toggle span[aria-hidden]::before,
.nav-toggle span[aria-hidden]::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  content: '';
  transition: transform 0.2s ease;
}

.nav-toggle span[aria-hidden]::before {
  transform: translateY(-7px);
}

.nav-toggle span[aria-hidden]::after {
  transform: translateY(5px);
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(245, 165, 36, 0.28), transparent 42%),
    var(--ink);
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(64px, 8vw, 110px) 0;
}

.hero .eyebrow {
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.lede {
  max-width: 560px;
  margin-top: 24px;
  color: #d6d6da;
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin: 44px 0 0;
  padding: 28px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
}

.hero-stats li {
  display: grid;
}

.hero-stats strong {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-stats li > span {
  color: #a9a9b0;
  font-size: 14px;
}

.hero-media {
  position: relative;
  margin: 0;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  border-radius: 22px;
  object-fit: cover;
  object-position: 70% center;
}

.hero-badge {
  position: absolute;
  left: -18px;
  bottom: 28px;
  display: grid;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.hero-badge-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-badge-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ---- How it works ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-number {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent-deep);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.steps p {
  margin-top: 12px;
  color: var(--ink-soft);
}

/* ---- Catalogue ------------------------------------------------------------ */

.catalogue {
  background: var(--paper-warm);
}

.catalogue-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.filter:hover {
  border-color: var(--ink);
}

.filter[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 44px;
}

.cert-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 11, 12, 0.05);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cert-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.cert-card.is-selected {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), #fff 46%);
}

.cert-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.cert-category {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cert-credits {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

.cert-credits strong {
  color: var(--accent);
  font-size: 15px;
}

.cert-audience {
  margin-top: 8px;
  color: var(--accent-deep);
  font-size: 14px;
  font-weight: 600;
}

.cert-description {
  margin-top: 12px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 15px;
}

.cert-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cert-link {
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.cert-link::after {
  content: ' ↗';
}

.cert-toggle {
  padding: 10px 18px;
  font-size: 14px;
}

.noscript {
  margin-top: 32px;
  padding: 20px;
  border-radius: var(--radius-small);
  background: #fff;
}

/* ---- About the education -------------------------------------------- */

.trust-inner,
.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
}

.trust-copy p + p {
  margin-top: 18px;
}

.trust-copy p {
  color: var(--ink-soft);
  font-size: 18px;
}

/* ---- FAQ ------------------------------------------------------------------- */

.faq {
  padding-top: 0;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  color: var(--accent-deep);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  content: '+';
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: '–';
}

.faq-list details p {
  padding: 0 44px 24px 0;
  color: var(--ink-soft);
}

/* ---- Footer --------------------------------------------------------------- */

.site-footer {
  padding: 64px 0;
  background: var(--ink);
  color: #c9c9ce;
}

.footer-inner {
  display: grid;
  gap: 18px;
}

.footer-inner img {
  width: 150px;
}

.footer-inner p {
  max-width: 620px;
  font-size: 15px;
}

.footer-small {
  color: #85858c;
  font-size: 13px !important;
}

/* ---- Plan bar --------------------------------------------------------------- */

.plan-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 16px 0;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(11, 11, 12, 0.2);
}

.plan-bar[hidden] {
  display: none;
}

.plan-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.plan-summary {
  flex: 1;
  max-width: 560px;
}

.plan-count {
  font-size: 16px;
}

.plan-count strong {
  color: var(--accent);
  font-size: 22px;
}

.plan-certs {
  color: #a9a9b0;
  font-size: 14px;
}

.plan-meter {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.plan-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 0.3s ease;
}

.plan-note {
  margin-top: 8px;
  color: #ffd18a;
  font-size: 14px;
}

.plan-note:empty {
  display: none;
}

.plan-actions {
  display: flex;
  gap: 10px;
}

/* ---- Responsive ------------------------------------------------------------ */

@media (max-width: 1024px) {
  .cert-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav ul {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .site-nav ul.is-open {
    display: flex;
  }

  .site-nav li a:not(.button) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav li .button {
    width: 100%;
    margin-top: 16px;
  }

  .hero-inner,
  .trust-inner,
  .faq-inner {
    grid-template-columns: 1fr;
  }

  .hero-badge {
    left: 16px;
  }

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

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

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

  .plan-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .plan-actions .button {
    flex: 1;
  }

  body.has-plan {
    padding-bottom: 170px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
