/* CircuitBytes landing page. Scoped to avoid changing CodeBytes or the theme. */
.circuitbytes-template { overflow: clip; }
.circuitbytes-page { color: #14253e; background: #fff; font-size: 16px; line-height: 1.6; }
.circuitbytes-page * { box-sizing: border-box; }
.circuitbytes-page .cb-container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.circuitbytes-page h1, .circuitbytes-page h2, .circuitbytes-page h3 { color: #152b46; line-height: 1.2; margin-block: 0; }
.circuitbytes-page p { margin-block: 0; }
.circuitbytes-page a { text-decoration: none; }
.circuitbytes-page .cb-eyebrow { font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .12em; color: #167b69; }

/* Hero */
.circuitbytes-page .cb-hero { padding: 64px 0; background: linear-gradient(110deg, #e8f5fb, #f9fcff 66%, #e9f8f3); }
.circuitbytes-page .cb-hero__layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr); align-items: center; gap: 50px; }
.circuitbytes-page .cb-hero__copy { min-width: 0; }
.circuitbytes-page .cb-hero h1 { font-size: clamp(3rem, 6vw, 5rem); letter-spacing: -.045em; margin: 9px 0 6px; }
.circuitbytes-page .cb-hero h1 span { color: #168269; }
.circuitbytes-page .cb-hero h2 { font-size: clamp(1.35rem, 2.4vw, 2rem); margin-bottom: 16px; }
.circuitbytes-page .cb-hero__copy > p:not(.cb-eyebrow) { max-width: 610px; color: #40516a; line-height: 1.6; font-size: 17px; }
.circuitbytes-page .cb-hero__media { display: grid; place-items: center; min-width: 0; }
.circuitbytes-page .cb-hero__media img { display: block; max-width: 100%; width: min(310px, 100%); max-height: 320px; object-fit: contain; filter: drop-shadow(0 14px 20px rgba(21,43,70,.17)); }
.circuitbytes-page .cb-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border-radius: 999px; padding: 13px 24px; font-weight: 750; line-height: 1.3; transition: background-color .2s, transform .2s; }
.circuitbytes-page .cb-button:hover { transform: translateY(-2px); }
.circuitbytes-page .cb-button--primary { background: #087f65; color: white !important; margin-top: 24px; }
.circuitbytes-page .cb-button--primary:hover { background: #066b56; }

/* Section headings and steps */
.circuitbytes-page .cb-section-intro { text-align: center; margin-bottom: 26px; }
.circuitbytes-page .cb-section-intro h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-top: 6px; }
.circuitbytes-page .cb-section-intro > p:last-child:not(.cb-eyebrow) { margin-top: 9px; color: #546478; }
.circuitbytes-page .cb-how { padding-block: 52px 24px; }
.circuitbytes-page .cb-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #f0f7fb; border: 1px solid #dcecf3; border-radius: 20px; overflow: hidden; }
.circuitbytes-page .cb-step { padding: 25px 22px; min-width: 0; }
.circuitbytes-page .cb-step + .cb-step { border-left: 1px solid #d2e3ed; }
.circuitbytes-page .cb-step__number { display: inline-block; color: #087f65; font-size: 24px; font-weight: 800; line-height: 1; margin-bottom: 12px; }
.circuitbytes-page .cb-step h3 { font-size: 17px; margin-bottom: 7px; }
.circuitbytes-page .cb-step p { font-size: 14px; color: #526178; line-height: 1.55; }

/* Project cards */
.circuitbytes-page .cb-library { padding-block: 45px 65px; scroll-margin-top: 30px; }
.circuitbytes-page .cb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.circuitbytes-page .cb-card { display: flex; flex-direction: column; overflow: hidden; min-width: 0; border: 1px solid #e0e8ef; border-radius: 17px; box-shadow: 0 8px 23px rgba(21,43,70,.07); background: white; }
.circuitbytes-page .cb-card__image-link { display: block; background: #e6f3f8; }
.circuitbytes-page .cb-card__image-link img { display: block; width: 100%; height: 210px; object-fit: contain; padding: 14px; }
.circuitbytes-page .cb-card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 21px 22px; }
.circuitbytes-page .cb-card__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.circuitbytes-page .cb-tag { font-size: 12px; background: #dff4e6; color: #17654c; padding: 4px 12px; border-radius: 999px; font-weight: 700; }
.circuitbytes-page .cb-level { font-size: 12px; color: #637188; }
.circuitbytes-page .cb-card h3 { font-size: 20px; margin-bottom: 10px; }
.circuitbytes-page .cb-card__body > p { color: #4a5b70; line-height: 1.55; font-size: 15px; margin-bottom: 22px; }
.circuitbytes-page .cb-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; font-weight: 800; color: #087f65 !important; }
.circuitbytes-page .cb-card__link:hover { text-decoration: underline; }
.circuitbytes-page .cb-card__pending { margin-top: auto; color: #748095; font-weight: 650; font-size: 13px; }
.circuitbytes-page .cb-card__placeholder { height: 210px; display: grid; place-items: center; }
.circuitbytes-page .cb-card__placeholder span { font-size: 100px; line-height: 1; opacity: .8; }
.circuitbytes-page .cb-card__placeholder--lights { background: linear-gradient(130deg,#e7e0ff,#f7f1ff); color: #7b4ed2; }
.circuitbytes-page .cb-card__placeholder--motion { background: linear-gradient(130deg,#d8f1f2,#eaf9f1); color: #168269; }

/* Audience and closing CTA */
.circuitbytes-page .cb-audience { display: flex; align-items: center; gap: 24px; padding: 26px 35px; border-radius: 18px; background: #eef7fb; margin-bottom: 54px; }
.circuitbytes-page .cb-audience__icon { color: #087f65; font-size: 62px; line-height: 1; flex-shrink: 0; }
.circuitbytes-page .cb-audience h2 { font-size: clamp(1.4rem,2.4vw,1.8rem); margin-bottom: 7px; }
.circuitbytes-page .cb-audience p { color: #526178; }
.circuitbytes-page .cb-footer-cta { background: #152b46; color: white; text-align: center; padding: 54px 0 58px; }
.circuitbytes-page .cb-footer-cta .cb-eyebrow { color: #80e2c5; }
.circuitbytes-page .cb-footer-cta h2 { color: white; font-size: clamp(1.8rem,3.4vw,2.4rem); margin: 8px 0 12px; }
.circuitbytes-page .cb-footer-cta p:not(.cb-eyebrow) { max-width: 650px; margin-inline: auto; color: #e0ebf7; }
.circuitbytes-page .cb-button--light { color: #152b46 !important; background: white; margin-top: 24px; }
.circuitbytes-page .cb-button--light:hover { background: #e1f6ee; }

@media (max-width: 900px) {
  .circuitbytes-page .cb-hero__layout { gap: 22px; grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr); }
  .circuitbytes-page .cb-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .circuitbytes-page .cb-step:nth-child(3) { border-left: 0; }
  .circuitbytes-page .cb-step:nth-child(n+3) { border-top: 1px solid #d2e3ed; }
  .circuitbytes-page .cb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .circuitbytes-page .cb-container { width: calc(100% - 32px); }
  .circuitbytes-page .cb-hero { padding: 38px 0 42px; }
  .circuitbytes-page .cb-hero__layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .circuitbytes-page .cb-hero__media img { width: min(210px, 75%); }
  .circuitbytes-page .cb-hero__copy > p:not(.cb-eyebrow) { font-size: 16px; line-height: 1.5; }
  .circuitbytes-page .cb-steps, .circuitbytes-page .cb-grid { grid-template-columns: minmax(0, 1fr); }
  .circuitbytes-page .cb-step + .cb-step { border-left: 0; border-top: 1px solid #d2e3ed; }
  .circuitbytes-page .cb-how { padding-top: 38px; }
  .circuitbytes-page .cb-library { padding-block: 35px 45px; }
  .circuitbytes-page .cb-card__image-link img, .circuitbytes-page .cb-card__placeholder { height: 185px; }
  .circuitbytes-page .cb-audience { padding: 22px; gap: 15px; align-items: flex-start; margin-bottom: 35px; }
  .circuitbytes-page .cb-audience__icon { font-size: 40px; }
  .circuitbytes-page .cb-footer-cta { padding: 43px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .circuitbytes-page .cb-button { transition: none; }
  .circuitbytes-page .cb-button:hover { transform: none; }
}