/* REALITYGAP_LEARN_PAGE_LAYOUT_AND_CTA_MATURITY_V1 */

:root {
  color-scheme: light;
  --rg-bg: #f6f4ef;
  --rg-panel: #ffffff;
  --rg-panel-soft: #fbfaf7;
  --rg-text: #151515;
  --rg-muted: #5f5f5f;
  --rg-border: #ded8cc;
  --rg-strong-border: #bbb2a3;
  --rg-accent: #111111;
  --rg-radius-lg: 24px;
  --rg-radius-md: 16px;
  --rg-shadow: 0 18px 50px rgba(20, 20, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--rg-bg);
}

body.learn-body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 34rem),
    linear-gradient(180deg, #f8f6f1 0%, #eee9df 100%);
  color: var(--rg-text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

.learn-shell {
  width: min(100% - 32px, 960px);
  margin: 0 auto;
  padding: 28px 0 64px;
}

.learn-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
  padding: 14px 16px;
  border: 1px solid var(--rg-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
}

.learn-brand,
.learn-top-nav a {
  color: var(--rg-text);
  text-decoration: none;
}

.learn-brand {
  font-weight: 800;
  letter-spacing: -0.03em;
}

.learn-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--rg-muted);
  font-size: 0.94rem;
}

.learn-nav-links a {
  color: var(--rg-muted);
}

.learn-nav-links a:hover,
.learn-brand:hover {
  text-decoration: underline;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid var(--rg-border);
  border-radius: 999px;
  background: var(--rg-panel-soft);
  color: var(--rg-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 860px;
  margin: 0 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.32rem, 2.4vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

p,
li {
  font-size: 1.04rem;
}

.lede {
  max-width: 780px;
  margin: 0 0 18px;
  color: #333;
  font-size: clamp(1.12rem, 1.7vw, 1.32rem);
  line-height: 1.55;
}

.guardrail {
  max-width: 780px;
  margin: 20px 0 26px;
  padding: 14px 16px;
  border: 1px solid var(--rg-strong-border);
  border-radius: var(--rg-radius-md);
  background: #fffdf8;
  font-weight: 700;
}

.learn-cta-panel,
.learn-bottom-cta,
.learn-page section,
.learn-card {
  border: 1px solid var(--rg-border);
  border-radius: var(--rg-radius-lg);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--rg-shadow);
}

.learn-page section,
.learn-card {
  margin: 22px 0;
  padding: 24px;
}

.learn-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 28px 0 30px;
  padding: 24px;
  background:
    linear-gradient(135deg, #111111 0%, #2b2b2b 100%);
  color: #ffffff;
}

.learn-cta-panel h2,
.learn-cta-panel p {
  color: #ffffff;
}

.learn-cta-panel h2 {
  margin-bottom: 8px;
}

.learn-cta-panel p {
  margin: 0;
  opacity: 0.86;
}

.learn-cta-kicker {
  margin: 0 0 8px !important;
  color: #d8d8d8 !important;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.learn-primary-cta,
.learn-secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.learn-primary-cta {
  border: 1px solid #ffffff;
  background: #ffffff;
  color: #111111;
}

.learn-primary-cta:hover {
  background: #f0f0f0;
}

.learn-secondary-cta {
  border: 1px solid var(--rg-accent);
  background: var(--rg-accent);
  color: #ffffff;
}

.learn-secondary-cta:hover {
  background: #2a2a2a;
}

.learn-bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  background: #fffdf8;
}

.learn-bottom-cta p {
  max-width: 620px;
  margin: 0;
  color: var(--rg-muted);
}

.learn-bottom-cta strong {
  display: block;
  margin-bottom: 5px;
  color: var(--rg-text);
  font-size: 1.12rem;
}

a {
  color: #111111;
  font-weight: 700;
}

a:hover {
  text-decoration-thickness: 2px;
}

ul {
  padding-left: 1.2rem;
}

li + li {
  margin-top: 7px;
}

.learn-page section ul {
  margin-bottom: 0;
}

.learn-page section:has(ul) {
  background: var(--rg-panel-soft);
}

@media (max-width: 760px) {
  .learn-shell {
    width: min(100% - 22px, 960px);
    padding-top: 18px;
  }

  .learn-top-nav,
  .learn-bottom-cta,
  .learn-cta-panel {
    align-items: stretch;
    border-radius: 18px;
  }

  .learn-top-nav,
  .learn-bottom-cta {
    flex-direction: column;
  }

  .learn-cta-panel {
    grid-template-columns: 1fr;
  }

  .learn-nav-links {
    justify-content: space-between;
    width: 100%;
  }

  .learn-primary-cta,
  .learn-secondary-cta {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
  }

  .learn-page section,
  .learn-card,
  .learn-cta-panel,
  .learn-bottom-cta {
    padding: 20px;
  }
}
