body.cbc-home {
  color: #2c2a29;
  background: #f9f6f0;
}

.cbc-home .site-header {
  background: rgba(249,246,240,.95);
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 15px;
  color: #17613f;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.home-kicker::before {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  content: "";
  background: #d4a72c;
}

.home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(58px,6.5vw,86px) 0 clamp(62px,7vw,92px);
  background:
    radial-gradient(circle at 85% 18%,rgba(212,167,44,.2),transparent 25rem),
    radial-gradient(circle at 7% 88%,rgba(138,154,130,.17),transparent 24rem),
    linear-gradient(135deg,#fcfaf5,#eef6f1 58%,#fff8e8);
}

.home-hero::after {
  position: absolute;
  right: -160px;
  bottom: -220px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(12,65,41,.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 70px rgba(212,167,44,.035);
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.16fr) minmax(340px,.84fr);
  align-items: center;
  gap: clamp(45px,7vw,92px);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  color: #0c4129;
  font-size: clamp(3rem,5.1vw,4.85rem);
  line-height: 1.01;
  text-wrap: balance;
}

.home-hero-copy > p {
  max-width: 680px;
  color: #4d6258;
  font-size: clamp(1.04rem,1.55vw,1.2rem);
  line-height: 1.75;
}

.home-search {
  display: grid;
  width: min(100%,700px);
  min-height: 64px;
  margin-top: 29px;
  padding: 7px;
  grid-template-columns: 44px minmax(0,1fr) auto;
  align-items: center;
  border: 1px solid rgba(12,65,41,.15);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(12,65,41,.13);
}

.home-search-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #17613f;
}

.home-search-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.home-search input {
  min-width: 0;
  height: 48px;
  padding: 0 8px;
  border: 0;
  color: #173228;
  background: transparent;
  font: inherit;
  outline: 0;
}

.home-search input::placeholder {
  color: #6a7971;
}

.home-search:focus-within {
  border-color: #d4a72c;
  box-shadow: 0 18px 46px rgba(12,65,41,.13),0 0 0 4px rgba(212,167,44,.14);
}

.home-search .btn {
  min-height: 48px;
  padding-inline: 24px;
}

.home-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
  align-items: center;
  color: #68786f;
  font-size: .78rem;
}

.home-search-suggestions a {
  padding: 4px 9px;
  border: 1px solid #dce5df;
  border-radius: 999px;
  color: #315345;
  background: rgba(255,255,255,.72);
  font-weight: 750;
}

.home-search-suggestions a:hover {
  border-color: #d4a72c;
  background: #fff9e8;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 27px;
}

.home-hero-visual {
  position: relative;
  min-height: 470px;
}

.home-hero-visual img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 38px rgba(12,65,41,.15));
}

.home-visual-orbit {
  position: absolute;
  inset: 8% 4% 5%;
  border: 1px solid rgba(212,167,44,.3);
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.home-visual-card {
  position: absolute;
  z-index: 3;
  min-width: 160px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 36px rgba(12,65,41,.14);
  backdrop-filter: blur(10px);
}

.home-visual-card strong,
.home-visual-card span {
  display: block;
}

.home-visual-card strong {
  color: #0c4129;
  font-family: Georgia,"Times New Roman",serif;
  font-size: 1.65rem;
}

.home-visual-card span {
  color: #65766d;
  font-size: .75rem;
  font-weight: 750;
}

.home-visual-card-top { top: 13%; right: -2%; }
.home-visual-card-bottom { bottom: 7%; left: -3%; }

.home-proof {
  position: relative;
  z-index: 4;
  border-block: 1px solid #dfe8e2;
  background: #fffdf9;
}

.home-proof-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}

.home-proof-grid > div {
  padding: 27px 20px;
  text-align: center;
}

.home-proof-grid > div + div {
  border-left: 1px solid #e1e8e3;
}

.home-proof strong,
.home-proof span {
  display: block;
}

.home-proof strong {
  color: #0c4129;
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(1.65rem,3vw,2.25rem);
}

.home-proof span {
  margin-top: 3px;
  color: #687870;
  font-size: .82rem;
  font-weight: 700;
}

.home-section {
  padding: clamp(72px,8vw,108px) 0;
}

.home-section-heading {
  display: grid;
  grid-template-columns: minmax(0,1.1fr) minmax(280px,.72fr);
  margin-bottom: 38px;
  align-items: end;
  gap: 40px;
}

.home-section-heading h2 {
  max-width: 750px;
  margin: 0;
  color: #0c4129;
  font-size: clamp(2.25rem,4.5vw,4rem);
  line-height: 1.08;
  text-wrap: balance;
}

.home-section-heading > p {
  margin: 0;
  color: #586a61;
  line-height: 1.75;
}

.home-section-heading.centered {
  display: block;
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}

.home-section-heading.centered .home-kicker {
  justify-content: center;
}

.home-section-heading.centered > p {
  max-width: 650px;
  margin: 14px auto 0;
}

.home-audiences { background: #fffdf9; }

.home-audience-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.home-audience-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 270px;
  padding: 30px;
  grid-template-rows: auto 1fr;
  border: 1px solid #dde6e0;
  border-radius: 18px;
  color: #2c2a29;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24,45,35,.07);
  transition: .28s ease;
}

.home-audience-card::after {
  position: absolute;
  right: -35px;
  bottom: -45px;
  width: 130px;
  height: 130px;
  border-radius: 42px;
  content: "";
  background: rgba(12,65,41,.04);
  transform: rotate(18deg);
}

.home-audience-card:hover {
  border-color: #d4a72c;
  box-shadow: 0 22px 48px rgba(24,45,35,.13);
  transform: translateY(-5px);
}

.home-audience-card.teacher { background: linear-gradient(145deg,#eff7f2,#fff); }
.home-audience-card.learner { background: linear-gradient(145deg,#fff8e5,#fff); }
.home-audience-card.books { background: linear-gradient(145deg,#f2f1f8,#fff); }

.home-card-code {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: #0c4129;
  font-size: .76rem;
  font-weight: 900;
}

.home-audience-card h3 {
  margin-bottom: 9px;
  color: #0c4129;
  font-size: 1.55rem;
}

.home-audience-card p {
  color: #56685f;
  line-height: 1.7;
}

.home-audience-card div > strong {
  position: relative;
  z-index: 2;
  color: #17613f;
  font-size: .84rem;
}

.home-library {
  background: linear-gradient(180deg,#f0f6f2,#f9f6f0);
}

.home-collection-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 17px;
}

.home-collection-grid a {
  min-height: 215px;
  padding: 26px;
  border: 1px solid #dce5df;
  border-radius: 16px;
  background: #fffdf9;
  box-shadow: 0 9px 26px rgba(24,45,35,.055);
  transition: .28s ease;
}

.home-collection-grid a:hover {
  border-color: #d4a72c;
  box-shadow: 0 18px 40px rgba(24,45,35,.11);
  transform: translateY(-4px);
}

.home-collection-grid span {
  display: inline-block;
  margin-bottom: 23px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #6e5717;
  background: #fff3ce;
  font-size: .69rem;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-collection-grid h3 {
  margin-bottom: 8px;
  color: #0c4129;
  font-size: 1.3rem;
}

.home-collection-grid p {
  margin: 0;
  color: #5b6b63;
  line-height: 1.65;
}

.home-library-action {
  margin-top: 30px;
  text-align: center;
}

.home-tools {
  color: #f4faf7;
  background:
    radial-gradient(circle at 85% 15%,rgba(212,167,44,.18),transparent 24rem),
    linear-gradient(135deg,#082f1f,#0c4129 58%,#164e37);
}

.home-tools-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(360px,.88fr);
  align-items: center;
  gap: clamp(45px,7vw,90px);
}

.home-tools .home-kicker { color: #f0d88f; }
.home-tools h2 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.35rem,4.6vw,4.2rem);
  text-wrap: balance;
}
.home-tools-copy > p,
.home-tools-copy li {
  color: #d1e4da;
}
.home-tools-copy > p {
  max-width: 680px;
  font-size: 1.06rem;
  line-height: 1.75;
}
.home-tools-copy ul {
  display: grid;
  margin: 26px 0 0;
  padding: 0;
  gap: 12px;
  list-style: none;
}
.home-tools-copy li {
  position: relative;
  padding-left: 28px;
}
.home-tools-copy li::before {
  position: absolute;
  left: 0;
  color: #f0ce67;
  content: "✓";
  font-weight: 900;
}

.home-tool-stack {
  display: grid;
  gap: 13px;
}

.home-tool-stack a {
  display: grid;
  padding: 20px;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  color: #fff;
  background: rgba(255,255,255,.07);
  transition: .25s ease;
}

.home-tool-stack a:hover {
  border-color: rgba(212,167,44,.7);
  background: rgba(255,255,255,.12);
  transform: translateX(5px);
}

.home-tool-stack a > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 13px;
  color: #2f2608;
  background: #f0ce67;
  font-weight: 900;
}

.home-tool-stack strong,
.home-tool-stack small {
  display: block;
}
.home-tool-stack strong { color: #fff; }
.home-tool-stack small {
  margin-top: 3px;
  color: #c9ddd2;
  line-height: 1.5;
}

.home-insights { background: #fffdf9; }
.home-insights-heading {
  grid-template-columns: 1fr auto;
}
.home-heading-link {
  padding-bottom: 4px;
  border-bottom: 2px solid #d4a72c;
  color: #17613f;
  font-weight: 850;
}

.home-blog-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}

.home-blog-grid .blog-card {
  display: flex;
  min-width: 0;
  border-radius: 16px;
  flex-direction: column;
}
.home-blog-grid .blog-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.home-blog-grid .article-preview { display: none; }
.home-blog-grid .text-link { margin-top: 16px; }

.home-closing {
  padding-top: 0;
  background: #fffdf9;
}

.home-closing-card {
  position: relative;
  overflow: hidden;
  padding: clamp(42px,7vw,78px);
  border-radius: 25px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0,rgba(212,167,44,.22),transparent 24rem),
    linear-gradient(135deg,#0c4129,#17613f);
  box-shadow: 0 24px 58px rgba(12,65,41,.19);
}

.home-closing-card .home-kicker {
  justify-content: center;
  color: #f0d88f;
}
.home-closing-card h2 {
  max-width: 800px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(2.3rem,4.8vw,4.3rem);
  text-wrap: balance;
}
.home-closing-card p {
  max-width: 650px;
  margin: 0 auto 27px;
  color: #d5e7dd;
  font-size: 1.04rem;
}
.home-closing-card > div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 11px;
}

@media (prefers-reduced-motion:no-preference) {
  .home-hero-copy > * {
    animation: homeFadeUp .65s ease both;
  }
  .home-hero-copy h1 { animation-delay: .08s; }
  .home-hero-copy > p { animation-delay: .15s; }
  .home-search { animation-delay: .22s; }
  .home-hero-actions { animation-delay: .3s; }
  .home-hero-visual { animation: homeFadeIn .8s .15s ease both; }
  @keyframes homeFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes homeFadeIn {
    from { opacity: 0; transform: translateX(18px); }
    to { opacity: 1; transform: none; }
  }
}

@media (max-width: 980px) {
  .home-hero-grid,
  .home-tools-grid {
    grid-template-columns: 1fr;
  }
  .home-hero-copy {
    margin-inline: auto;
    text-align: center;
  }
  .home-hero-copy > p { margin-inline: auto; }
  .home-search { margin-inline: auto; }
  .home-search-suggestions,
  .home-hero-actions { justify-content: center; }
  .home-hero-visual {
    width: min(100%,620px);
    min-height: 440px;
    margin-inline: auto;
  }
  .home-section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .home-audience-grid,
  .home-collection-grid,
  .home-blog-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 680px) {
  .home-hero {
    padding: 62px 0 66px;
  }
  .home-hero h1 {
    font-size: clamp(2.65rem,12.8vw,4rem);
  }
  .home-search {
    min-height: 0;
    padding: 8px;
    grid-template-columns: 38px minmax(0,1fr);
  }
  .home-search-icon {
    width: 38px;
  }
  .home-search .btn {
    width: 100%;
    margin-top: 6px;
    grid-column: 1 / -1;
  }
  .home-search-suggestions span { width: 100%; }
  .home-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .home-hero-actions .btn { width: 100%; }
  .home-hero-visual {
    display: none;
  }
  .home-visual-card {
    min-width: 130px;
    padding: 10px 12px;
  }
  .home-visual-card strong { font-size: 1.3rem; }
  .home-proof-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .home-proof-grid > div:nth-child(3) {
    border-left: 0;
    border-top: 1px solid #e1e8e3;
  }
  .home-proof-grid > div:nth-child(4) {
    border-top: 1px solid #e1e8e3;
  }
  .home-audience-grid,
  .home-collection-grid,
  .home-blog-grid {
    grid-template-columns: 1fr;
  }
  .home-section-heading h2,
  .home-tools h2 {
    font-size: clamp(2rem,10vw,3rem);
  }
  .home-insights-heading {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  .home-audience-card,
  .home-collection-grid a {
    padding: 23px 20px;
  }
  .home-tool-stack a {
    grid-template-columns: 42px 1fr;
    padding: 16px;
  }
  .home-tool-stack a > span {
    width: 42px;
    height: 42px;
  }
}
