@layer page-layout {
/* Shared course-page components for Python and computer literacy. */
:is(.python-page, .literacy-page) { background: #fff; }
:is(.python-page, .literacy-page) main h3 { letter-spacing: -.025em; }
:is(.python-page, .literacy-page) main p { text-wrap: pretty; }
:is(.python-page, .literacy-page) :focus-visible { outline: 3px solid #8160e9; outline-offset: 4px; }
:is(.python-page, .literacy-page) .site-nav { gap: 20px; }
:is(.python-page, .literacy-page) .btn { min-height: 48px; }
:is(.python-page, .literacy-page) [id] { scroll-margin-top: 22px; }
.py-hero { padding: 24px 0 64px; background: linear-gradient(120deg, #fff 35%, #f5f2ff 100%); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; gap: 10px; align-items: center; margin-bottom: 38px; color: #797381; font-size: 12px; }
.breadcrumbs a { color: #665581; }
.breadcrumbs a:hover { text-decoration: underline; }
.py-hero__grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); align-items: center; gap: 66px; }
/* Font-size/weight/line-height/letter-spacing mirror .hero h1 in styles.css so every first-screen heading reads as one size. */
.py-hero h1 { max-width: 760px; margin: 0; font-size: clamp(39px, 2.95vw, 46px); line-height: 1.075; letter-spacing: -.035em; font-weight: 500; color: #221b36; }
.py-hero__lead { max-width: 650px; margin: 23px 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
/* .hero-facts-strip / .hero-fact in design-system.css style the fact chips; this file only handles the rest of the hero. */
.py-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.py-hero__note { max-width: 550px; color: #78717e; font-size: 12px; line-height: 1.55; margin: 15px 0 0; }
.py-demo { width: 100%; margin: 0; border-radius: 20px; background: #211a35; box-shadow: 0 20px 64px rgba(59, 31, 122, .15); overflow: hidden; transform: rotate(1deg); }
.py-demo__bar { display: flex; align-items: center; gap: 6px; padding: 19px 22px; border-bottom: 1px solid #3c344e; }
.py-demo__bar > span { width: 8px; height: 8px; border-radius: 50%; background: #8b799f; }
.py-demo__bar > span:first-child { background: #b993cf; }
.py-demo__bar > span:nth-child(2) { background: #d6bd81; }
.py-demo__bar > span:nth-child(3) { background: #86b6a1; }
.py-demo__bar strong { flex: 1; text-align: right; font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; color: #c3b7d5; }
.py-demo__code { display: grid; gap: 9px; padding: 29px 20px 25px; color: #e6e0ef; font: 13px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.py-demo__code > span { display: block; white-space: nowrap; }
.py-demo__code i { display: inline-block; width: 26px; color: #8e7ea4; font-style: normal; }
.py-demo__code b { color: #c7a9fd; font-weight: 500; }
.py-demo__code em { color: #e8c578; font-style: normal; }
.py-demo__code q { color: #8ad4b5; quotes: '"' '"'; }
.py-demo__terminal { display: grid; gap: 7px; padding: 20px 24px; background: #19132a; font: 12px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; color: #b9adc9; }
.py-demo__terminal strong { color: #aadebc; font-weight: 500; }
.py-demo__terminal i { font-style: normal; }
.py-demo__caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 22px; color: #f1eafb; }
.py-demo__caption span { max-width: 155px; font-size: 10px; line-height: 1.45; text-transform: uppercase; letter-spacing: .08em; color: #bdb0ce; }
.py-demo__caption strong { font-size: 16px; font-weight: 700; }
.py-fit, .py-results, .py-program, .py-projects, .py-how { padding: 80px 0; }
.py-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 70px; align-items: end; margin-bottom: 36px; }
.py-section-head > p { color: var(--muted); margin: 0; font-size: 16px; line-height: 1.6; max-width: 540px; }
.py-fit { background: #fff; }
.py-fit__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.py-fit__grid article { padding: 28px; border: 1px solid var(--line); border-radius: 20px; background: #fbfaff; }
.py-fit__grid article > span { color: #8164c4; font-size: 13px; font-weight: 700; }
.py-fit__grid h3 { font-size: 22px; margin: 28px 0 12px; line-height: 1.2; }
.py-fit__grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.py-results { background: #f5f2fb; }
.py-results__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 100px; align-items: start; }
.py-results__copy > p:last-child { margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.py-checklist { display: grid; gap: 26px; list-style: none; padding: 0; margin: 0; }
.py-checklist li { display: flex; align-items: start; gap: 18px; }
.py-checklist li > span { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e7defb; color: #5b36b5; font-size: 17px; }
.py-checklist strong { display: block; font-size: 18px; line-height: 1.5; font-weight: 700; }
.py-checklist p { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.py-program { background: #fff; }
.py-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.py-step { border: 1px solid #e4ddef; border-radius: 22px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.py-step__number { display: flex; justify-content: space-between; align-items: end; padding: 22px 26px; background: #f4f0fc; color: #72529e; }
.py-step__number span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.py-step__number strong { font-size: 40px; font-weight: 700; letter-spacing: -.06em; line-height: 1; }
.py-step--2 .py-step__number { background: #ece5fa; color: #6b469b; }
.py-step--3 .py-step__number { background: #5b36b5; color: #fff; }
.py-step__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.py-step__eyebrow { font-size: 11px; color: #78698c; margin: 0 0 12px; line-height: 1.5; }
.py-step__duration { display: block; width: fit-content; padding: 6px 10px; margin: 0 0 16px; border-radius: 7px; background: #f1ebfa; color: #60408e; font-size: 12px; font-weight: 700; }
.py-program__duration { margin: -12px 0 28px; color: #685879; font-size: 14px; }
.py-step h3 { font-size: 26px; line-height: 1.12; font-weight: 700; margin: 0 0 16px; min-height: 88px; }
.py-step__body > p:not(.py-step__eyebrow) { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; min-height: 90px; }
.py-step__outcomes { padding: 0 0 0 16px; margin: 0 0 22px; color: #51465f; display: grid; gap: 9px; font-size: 13px; line-height: 1.5; min-height: 102px; }
.py-step__outcomes li::marker { color: #7e53c2; }
.py-step details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.py-step summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; font-size: 13px; color: #5a3c8c; font-weight: 700; }
.py-step summary::-webkit-details-marker { display: none; }
.py-step summary > span { font-size: 22px; font-weight: 400; }
.py-step details[open] summary > span { transform: rotate(45deg); }
.py-step__topics { display: grid; gap: 10px; padding: 4px 0 18px; color: #6a5e77; font-size: 13px; line-height: 1.4; }
.py-step__project { margin-top: auto; margin-bottom: 25px; min-height: 97px; }
.py-step__project > span { display: block; font-size: 11px; color: #73667f; margin-bottom: 8px; }
.py-step__project strong { font-size: 16px; line-height: 1.5; font-weight: 700; }
.py-step .btn { width: 100%; font-size: 13px; padding-inline: 14px; }
.py-program__help { display: flex; justify-content: space-between; gap: 32px; align-items: center; padding: 28px 30px; margin-top: 24px; background: #f6f3fd; border-radius: 18px; }
.py-program__help strong { font-size: 18px; font-weight: 700; }
.py-program__help p { margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 700px; }
.py-program__help .btn { flex-shrink: 0; }
.py-projects { background: #faf9fc; border-block: 1px solid #eeeaf5; }
.py-projects__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.py-project-card { padding: 34px; border-radius: 22px; background: #302244; color: #fff; }
.py-project-card--space { background: #483078; }
.py-project-card--data { background: #3c285c; }
.py-project-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: #cbbcdc; }
.py-project-card h3 { margin: 55px 0 18px; font-size: 32px; line-height: 1.15; font-weight: 700; }
.py-project-card p { max-width: 470px; font-size: 16px; line-height: 1.6; color: #ddd3e8; margin: 0; }
.py-project-card > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.py-project-card > div span { padding: 7px 10px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); border-radius: 6px; font-size: 11px; color: #e7dff0; }
.py-projects__note { margin: 20px 0 0; max-width: 900px; color: #7a7182; font-size: 12px; line-height: 1.6; }
.py-how { background: #fff; }
.py-how__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.py-how__grid article { padding-top: 20px; border-top: 1px solid #ddd4ea; }
.py-how__grid article > span { display: grid; place-items: center; width: 30px; height: 30px; background: #ede7f8; color: #674897; font-size: 13px; border-radius: 8px; }
.py-how__grid h3 { font-size: 18px; line-height: 1.4; margin: 18px 0 12px; font-weight: 700; }
.py-how__grid p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; }
.py-parent { margin-top: 56px; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: #faf9fd; }
.py-parent__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 40px; padding: 30px; align-items: end; }
.py-parent__head h3 { font-size: 28px; line-height: 1.15; margin: 0; font-weight: 700; }
.py-parent__head > p { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 0; }
.py-parent figure { margin: 0; }
.py-parent figure a { display: block; cursor: zoom-in; border-block: 1px solid var(--line); }
.py-parent figure img { width: 100%; height: auto; aspect-ratio: 2048 / 891; }
.py-parent figcaption { color: #7b7184; font-size: 11px; line-height: 1.5; padding: 12px 30px 0; }
.py-parent__points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 26px 30px 30px; }
.py-parent__points strong { font-size: 15px; color: #4f3675; }
.py-parent__points p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 8px 0 0; }
.py-next { background: #f6f3fc; padding: 52px 0; }
.py-next__box { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.py-next__box > div { max-width: 850px; }
.py-next__box p:last-child { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 20px 0 0; }
.py-next__box .btn { flex-shrink: 0; }
.py-teacher { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: center; gap: 40px; padding: 30px; background: #f7f4fb; border: 1px solid #e8e0ef; border-radius: 24px; margin-top: 54px; }
.py-teacher > img { width: 250px; height: 250px; object-fit: cover; border-radius: 18px; }
.py-teacher h3 { font-size: 30px; line-height: 1.15; margin: 12px 0 8px; font-weight: 700; }
.py-teacher__areas { color: #8058a6; font-size: 13px; }
.py-teacher p:not(.py-teacher__areas) { margin: 18px 0 20px; max-width: 700px; color: var(--muted); font-size: 15px; line-height: 1.6; }
:is(.python-page, .literacy-page) .pricing { padding: 80px 0; background: #fcfbff; }
:is(.python-page, .literacy-page) .pricing__heading { display: block; max-width: 720px; margin-bottom: 32px; }
:is(.python-page, .literacy-page) .pricing__heading > .section-kicker { font-size: 13px; color: var(--brand-600); margin-bottom: 12px; }
:is(.python-page, .literacy-page) .pricing__heading > p:last-child { margin-top: 18px; }
:is(.python-page, .literacy-page) .pricing__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
:is(.python-page, .literacy-page) .price-card { padding: 32px; position: relative; }
:is(.python-page, .literacy-page) .price-card--featured { border-color: #a48bd3; background: #fff; }
.price-card__badge { align-self: flex-start; background: #eee7fa; color: #614489; border-radius: 6px; font-size: 10px; padding: 5px 8px; margin-bottom: 13px; }
:is(.python-page, .literacy-page) .price-card:not(.price-card--featured) { padding-top: 65px; }
:is(.python-page, .literacy-page) .price-card__price strong { font-size: 42px; }
:is(.python-page, .literacy-page) .price-card__label { font-size: 12px; }
:is(.python-page, .literacy-page) .price-card li, :is(.python-page, .literacy-page) .price-card__package { font-size: 15px; }
:is(.python-page, .literacy-page) .trial__box { grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr); align-items: start; }
:is(.python-page, .literacy-page) .trial__copy { padding-top: 35px; }
:is(.python-page, .literacy-page) .trial__benefits span { font-size: 14px; }
:is(.python-page, .literacy-page) .trial-form__selection { font-size: 12px; padding: 12px; }
:is(.python-page, .literacy-page) .trial-form__selection strong { display: block; margin: 4px 0 0; }
:is(.python-page, .literacy-page) [data-course-reset] { display: block; min-height: 44px; padding: 6px 0 0; background: none; border: 0; cursor: pointer; color: #715395; text-decoration: underline; font-size: 12px; }
:is(.python-page, .literacy-page) [data-course-reset][hidden] { display: none; }
:is(.python-page, .literacy-page) .trial-form__field input { font-size: 16px; }
:is(.python-page, .literacy-page) .trial-form__consent, :is(.python-page, .literacy-page) .trial-form__privacy { font-size: 12px; line-height: 1.55; }
:is(.python-page, .literacy-page) .faq__heading p:not(.section-kicker) { font-size: 15px; }
:is(.python-page, .literacy-page) .faq-item summary { font-size: 16px; min-height: 56px; }
:is(.python-page, .literacy-page) .faq-item > div { font-size: 14px; line-height: 1.65; }
@media (max-width: 1180px) {
  :is(.python-page, .literacy-page) .site-nav { gap: 12px; }
  :is(.python-page, .literacy-page) .site-nav a { font-size: 11px; }
  .py-hero__grid { gap: 38px; }
  .py-demo__code { font-size: 11px; padding-inline: 16px; }
  .py-step__body { padding: 22px; }
  .py-step h3 { font-size: 23px; min-height: 82px; }
  .py-section-head, .py-results__grid { gap: 44px; }
}
@media (max-width: 980px) {
  .py-projects__grid { grid-template-columns: 1fr; }
  .py-hero__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .py-hero h1 { font-size: clamp(42px, 6.5vw, 58px); line-height: 1.035; }
  .py-hero__lead { font-size: 15px; margin-block: 20px; }
  .py-hero__actions { flex-direction: column; align-items: flex-start; }
  .py-hero__actions .btn { min-width: 240px; }
  .py-demo__code { font-size: 10px; padding-inline: 12px; }
  .py-demo__code i { width: 20px; }
  .py-demo__caption { display: grid; gap: 7px; }
  .py-fit, .py-results, .py-program, .py-projects, .py-how { padding-block: 64px; }
  .py-section-head { grid-template-columns: 1fr; gap: 20px; }
  .py-section-head > p { max-width: 760px; }
  .py-fit__grid { gap: 12px; }
  .py-fit__grid article { padding: 22px; }
  .py-fit__grid h3 { font-size: 20px; }
  .py-steps { grid-template-columns: 1fr; }
  .py-step { display: grid; grid-template-columns: 110px minmax(0, 1fr); }
  .py-step__number { flex-direction: column; align-items: center; justify-content: start; padding: 28px 16px; gap: 12px; }
  .py-step__body { padding: 28px; }
  .py-step h3 { min-height: 0; max-width: 480px; font-size: 26px; margin-bottom: 14px; }
  .py-step__body > p:not(.py-step__eyebrow), .py-step__outcomes, .py-step__project { min-height: 0; }
  .py-step__outcomes { margin-bottom: 18px; }
  .py-step__project { margin-bottom: 22px; }
  .py-step .btn { width: auto; align-self: flex-start; padding-inline: 24px; }
  .py-program__help { align-items: start; flex-direction: column; gap: 20px; }
  .py-how__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .py-teacher { grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
  .py-teacher > img { width: 200px; height: 240px; }
  .py-next__box { align-items: start; flex-direction: column; gap: 24px; }
  :is(.python-page, .literacy-page) .trial__box { grid-template-columns: 1fr; gap: 32px; }
  :is(.python-page, .literacy-page) .trial__copy { padding-top: 0; }
}
@media (max-width: 680px) {
  :is(.python-page, .literacy-page) .section-kicker { font-size: 11px; line-height: 1.45; }
  .py-hero { padding: 18px 0 40px; }
  .breadcrumbs { margin-bottom: 28px; font-size: 11px; }
  .py-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .py-hero__content { display: flex; flex-direction: column; }
  .py-hero h1 { font-size: clamp(30px, 8.5vw, 45px); line-height: 1.1; max-width: 560px; }
  .py-hero__lead { font-size: 15px; line-height: 1.55; margin: 19px 0; }
  .py-hero__actions { order: 3; gap: 9px; align-items: stretch; }
  .py-hero__actions .btn { width: 100%; min-width: 0; font-size: 13px; }
  .py-hero__note { order: 5; font-size: 11px; margin-top: 12px; }
  .py-demo { max-width: 480px; justify-self: center; transform: none; border-radius: 16px; }
  .py-demo__bar { padding: 15px 18px; }
  .py-demo__code { font-size: clamp(9.5px, 2.65vw, 13px); gap: 7px; padding: 21px 16px; }
  .py-demo__code i { width: 25px; }
  .py-demo__terminal { font-size: 11px; padding: 16px 20px; }
  .py-demo__caption { display: flex; padding: 15px 18px; }
  .py-demo__caption span { font-size: 9px; max-width: 130px; }
  .py-demo__caption strong { font-size: 14px; }
  .py-fit, .py-results, .py-program, .py-projects, .py-how { padding-block: 48px; }
  .py-section-head { gap: 18px; margin-bottom: 26px; }
  .py-section-head > p { font-size: 15px; line-height: 1.6; }
  .py-fit__grid { grid-template-columns: 1fr; }
  .py-fit__grid article { padding: 22px; }
  .py-fit__grid h3 { margin-top: 16px; }
  .py-fit__grid p { font-size: 14px; }
  .py-results__grid { grid-template-columns: 1fr; gap: 32px; }
  .py-results__copy > p:last-child { font-size: 15px; margin-top: 18px; }
  .py-checklist { gap: 24px; }
  .py-checklist strong { font-size: 17px; }
  .py-checklist p { font-size: 14px; }
  .py-step { display: flex; }
  .py-step__number { flex-direction: row; justify-content: space-between; align-items: center; padding: 18px 22px; }
  .py-step__number strong { font-size: 32px; }
  .py-step__body { padding: 22px; }
  .py-step h3 { font-size: 25px; }
  .py-step__body > p:not(.py-step__eyebrow) { font-size: 14px; }
  .py-step__outcomes, .py-step__topics { font-size: 13px; }
  .py-step .btn { width: 100%; }
  .py-program__help { padding: 24px 22px; }
  .py-program__help .btn { width: 100%; font-size: 12px; }
  .py-projects__grid { grid-template-columns: 1fr; gap: 14px; }
  .py-project-card { padding: 26px; border-radius: 18px; }
  .py-project-card h3 { margin-top: 34px; font-size: 28px; }
  .py-project-card p { font-size: 14px; }
  .py-project-card > div { margin-top: 24px; }
  .py-projects__note { font-size: 11px; }
  .py-how__grid { gap: 28px 22px; }
  .py-how__grid h3 { font-size: 17px; }
  .py-how__grid p { font-size: 13px; }
  .py-parent { margin-top: 36px; }
  .py-parent__head { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .py-parent__head h3 { font-size: 25px; }
  .py-parent__head > p { font-size: 14px; }
  .py-parent figure a { position: relative; overflow: hidden; width: 100%; max-width: 480px; margin-inline: auto; aspect-ratio: 470 / 178; }
  .py-parent figure img { position: absolute; width: 435.745%; max-width: none; height: auto; left: -111.702%; top: -208.989%; }
  .py-parent__points { grid-template-columns: 1fr; gap: 18px; padding: 24px; }
  .py-parent figcaption { padding: 12px 24px 0; }
  .py-next { padding: 40px 0; }
  .py-next__box .btn { width: 100%; }
  .py-teacher { grid-template-columns: 1fr; padding: 22px; gap: 24px; margin-top: 38px; }
  .py-teacher > img { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; object-fit: cover; }
  .py-teacher h3 { font-size: 28px; }
  .py-teacher p:not(.py-teacher__areas) { font-size: 14px; }
  :is(.python-page, .literacy-page) .pricing { padding-block: 48px; }
  :is(.python-page, .literacy-page) .pricing__grid { grid-template-columns: 1fr; gap: 14px; }
  :is(.python-page, .literacy-page) .price-card, :is(.python-page, .literacy-page) .price-card:not(.price-card--featured) { padding: 26px; }
  :is(.python-page, .literacy-page) .price-card__price strong { font-size: 38px; }
  :is(.python-page, .literacy-page) .price-card li, :is(.python-page, .literacy-page) .price-card__package { font-size: 14px; }
  :is(.python-page, .literacy-page) .trial { padding-block: 48px; }
  :is(.python-page, .literacy-page) .trial-form { padding: 22px; }
  :is(.python-page, .literacy-page) .trial-form__consent, :is(.python-page, .literacy-page) .trial-form__privacy { font-size: 11px; }
  :is(.python-page, .literacy-page) .faq-item summary { font-size: 15px; line-height: 1.5; }
  :is(.python-page, .literacy-page) .faq-item > div { font-size: 14px; }
}
@media (max-width: 360px) {
  .py-how__grid { grid-template-columns: 1fr; }
  .py-step__body, .py-fit__grid article, .py-project-card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  :is(.python-page, .literacy-page) *, :is(.python-page, .literacy-page) *::before, :is(.python-page, .literacy-page) *::after { transition: none !important; animation: none !important; }
}
}
