/* schools hero upgrade (Thero): clear menu over the photo, screen wakes, levels play on their own, depth on scroll, fade into the page, phone gets the photo */

/* 1. menu: no strip over the photo until you scroll */
body.page-schools .site-header .bar {
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    -webkit-backdrop-filter 0.35s ease,
    backdrop-filter 0.35s ease;
}

@media (min-width: 1025px) {
  /* 2. the photo settles in, the screen powers on */
  body.page-schools .hs-photo .hs-img,
  body.page-schools .hs-photo .hs-scr,
  body.page-schools .hs-photo .hs-lv {
    will-change: transform;
  }
  /* the camera starts on the iPad screen and pulls back to the desk by the window */
  body.page-schools .hs-photo .hs-stage {
    transform-origin: var(--hx-ox, 62%) var(--hx-oy, 52%);
  }
  body.page-schools .hs-photo.hx-in .hs-stage {
    animation: hx-pull 2.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  @keyframes hx-pull {
    from {
      transform: scale(1.22);
    }
    to {
      transform: none;
    }
  }
  /* Max 11-10 round 2: the photo is only 1734px wide, so the iPad's own edge went soft on a retina screen. The frame is drawn in CSS on top of it (crisp at any zoom); the stand is re-laid over the frame from the photo. */
  body.page-schools .hs-photo .hs-img .hs-dev {
    position: absolute;
    display: block;
    background: #0b0a09;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.07),
      0 0 0 1px rgba(46, 36, 26, 0.5);
  }
  body.page-schools .hs-photo .hs-img .hs-std {
    position: absolute;
    display: block;
    background-image: url(https://assets-dev.capyodev.com/images/marketing-site/2f16b230e89a07d9fc8aee264d880d757b6d25bff1b13dbd0a432ecaed50b77b.webp);
    background-repeat: no-repeat;
  }
  @media (min-resolution: 1.5dppx) {
    body.page-schools .hs-photo .hs-img .hs-std {
      background-image: url(/assets/img/schools/hero-school-desk-k@2x.webp);
    }
  }
  /* Max 11-10: no glare and no ring on the screen. The photo now has a true black screen (hero-school-desk-k.webp), so the live screen sits in the bezel with no seam. */
  body.page-schools .hs-photo .hs-scr iframe {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  body.page-schools .hs-photo .wrap {
    will-change: transform, opacity;
  }
}

/* 5. phone: the same desk photo with the live screen, level pill under it */
@media (max-width: 1024px) {
  body.page-schools .hs-photo figure.hlap.hx-ph {
    position: relative;
    width: auto;
    display: block;
    margin: 28px 0 0;
    aspect-ratio: auto;
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
  body.page-schools .hs-photo figure.hlap.hx-ph .hx-ph-shot {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    margin: 0;
  }
  body.page-schools .hs-photo figure.hlap.hx-ph .hx-ph-shot > img {
    display: block;
    width: 100%;
    height: auto;
  }
  body.page-schools .hs-photo figure.hlap.hx-ph .hlap-lid {
    position: absolute;
    margin: 0;
    padding: 0;
    border: 0;
    background: #0c0b09;
    box-shadow: none;
    border-radius: 1.45%/2.05%;
    overflow: hidden;
    transform: none;
  }
  body.page-schools .hs-photo figure.hlap.hx-ph .hlap-lid::before,
  body.page-schools .hs-photo figure.hlap.hx-ph .hlap-lid::after,
  body.page-schools .hs-photo figure.hlap.hx-ph .hlap-cam,
  body.page-schools .hs-photo figure.hlap.hx-ph .hlap-base {
    display: none;
  }
  body.page-schools .hs-photo figure.hlap.hx-ph .hlap-scr {
    position: absolute;
    inset: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-schools .hs-photo .hs-stage {
    animation: none !important;
  }
}
@media (max-width: 1024px) {
  body.page-schools .hs-photo figure.hlap.hx-ph .hlap-scr::after {
    display: none;
  }
}

/* ---- Max 11-10 quality pass: header, hero type, level selector ---- */

/* header over the photo: no strip, no line, no glow; the frosted bar comes back on scroll */
body.page-schools .site-header:not(.scrolled) .bar {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

@media (min-width: 1025px) {
  /* one type size across the menu, so left, middle and right weigh the same */
  body.page-schools .site-header .nav-link,
  body.page-schools .site-header .nav-su {
    font-size: 16px;
    padding: 10px 12px;
  }
  body.page-schools .site-header .nav-cta {
    font-size: 15.5px;
    padding: 12px 20px;
    margin-left: 10px;
  }
  /* Max 11-10 (Tc981): the switcher is part of the name, not a chip. "Capyo for schools" on one baseline, plain ink, small arrow; a soft tint only on hover and when open */
  body.page-schools .site-header .bar > .lft:not(#_) {
    gap: 2px;
    align-items: baseline;
    position: relative;
    top: 0.5px;
  }
  body.page-schools .site-header .world-btn {
    margin: 0;
    height: auto;
    padding: 4px 7px 5px 5px;
    gap: 8px;
    border-radius: 9px;
    font-size: 30px;
    font-weight: 360;
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: lowercase;
    color: rgba(18, 24, 21, 0.66);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    transition:
      background-color 0.2s ease,
      color 0.2s ease;
  }
  body.page-schools .site-header .world-btn:hover,
  body.page-schools .site-header .world-dd.open .world-btn {
    color: rgba(18, 24, 21, 0.9);
  }
  body.page-schools .site-header .world-btn:hover,
  body.page-schools .site-header .world-dd.open .world-btn {
    background: rgba(18, 24, 21, 0.07);
  }
  body.page-schools .site-header.scrolled .world-btn {
    background: transparent;
    box-shadow: none;
  }
  body.page-schools .site-header.scrolled .world-btn:hover,
  body.page-schools .site-header.scrolled .world-dd.open .world-btn {
    background: rgba(18, 24, 21, 0.07);
  }
  body.page-schools .site-header .world-btn .chev {
    width: 11px;
    height: 11px;
    stroke-width: 1.7;
    opacity: 0.8;
    position: relative;
    top: 3px;
  }
  /* language: same ink as its neighbours, just compact */
  body.page-schools .site-header .lang-btn {
    height: 40px;
    padding: 0 10px;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--ink);
    border-radius: 10px;
  }
  body.page-schools .site-header .lang-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
  }
  body.page-schools .site-header .lang-btn .chev {
    width: 9px;
    height: 9px;
  }

  /* Max 11-10 (Tc981): hero words on one system. Label, headline, body, actions and proof share the left edge; the body ends at the headline's right edge; one solid button, the demo is a quiet play link */
  body.page-schools .band-hero.side.hs-photo .hs-col {
    position: relative;
    top: 4px;
  }
  body.page-schools .band-hero.side.hs-photo.tx-7 .label {
    font-size: 12.5px;
    letter-spacing: 0.16em;
    font-weight: 650;
    color: #a84300;
    margin-bottom: 16px;
  }
  body.page-schools .band-hero.side.hs-photo.tx-7 h1 {
    text-wrap: balance;
  }
  body.page-schools .band-hero.side.hs-photo.tx-7 .lede {
    margin-top: 22px;
    max-width: none;
    font-size: clamp(15.5px, 1.24vw, 20px);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.005em;
    color: #3a2c20;
    text-wrap: pretty;
  }
  /* the two actions are one pair: same height, radius and type; solid for the main one, a clean outline with a play mark for the demo */
  body.page-schools .band-hero.side.hs-photo .actions {
    margin-top: 32px;
    gap: 12px;
    align-items: stretch;
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_) {
    gap: 10px;
    border: 1.5px solid rgba(18, 24, 21, 0.82);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--ink);
    transition:
      background-color 0.2s ease,
      border-color 0.2s ease;
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_):hover {
    background: rgba(18, 24, 21, 0.07);
    border-color: var(--ink);
    transform: none;
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_) svg {
    order: -1;
    width: 15px;
    height: 15px;
    margin-left: -2px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
    transform: none;
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_):hover svg {
    transform: none;
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn:active {
    transform: scale(0.97);
  }
  /* the proof line belongs to the actions: tucked under them, quieter */
  body.page-schools .band-hero.side.hs-photo.tx-7 .proof-line {
    margin-top: 16px;
    font-weight: 450;
    color: #5a4534;
  }

  /* level selector: a small dark control on the desk, the same black as the iPad */
  body.page-schools .band-hero.side.hs-photo .hs-lv {
    padding: 4px;
    background: rgba(24, 19, 15, 0.88);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    backdrop-filter: blur(14px) saturate(1.4);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.09),
      0 1px 1px rgba(40, 18, 4, 0.35),
      0 14px 28px -12px rgba(40, 18, 4, 0.6);
    opacity: 0;
    transition: opacity 0.6s ease 0.7s;
  }
  body.page-schools .band-hero.side.hs-photo.hx-in .hs-lv {
    opacity: 1;
  }
  body.page-schools .band-hero.side.hs-photo .hs-lv i {
    left: 4px;
    top: 4px;
    bottom: 4px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
  body.page-schools .band-hero.side.hs-photo .hs-lv button {
    font-size: 13.5px;
    font-weight: 550;
    padding: 9px 16px;
    color: rgba(255, 255, 255, 0.68);
  }
  body.page-schools .band-hero.side.hs-photo .hs-lv button:hover {
    color: #fff;
  }
  body.page-schools .band-hero.side.hs-photo .hs-lv button[aria-pressed='true'],
  body.page-schools .band-hero.side.hs-photo .hs-lv button[aria-pressed='true']:hover {
    color: #17120d;
  }
  body.page-schools .band-hero.side.hs-photo .hs-lv button:active {
    transform: scale(0.96);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-schools .band-hero.side.hs-photo .hs-lv {
    opacity: 1;
    transition: none;
  }
}
/* phone: the same dark selector under the photo */
@media (max-width: 1024px) {
  body.page-schools .band-hero.side.hs-photo .hlap .hero-levels {
    margin: 16px auto 0;
    width: max-content;
    padding: 4px;
    background: rgba(24, 19, 15, 0.9);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 10px 22px -12px rgba(40, 18, 4, 0.55);
  }
  body.page-schools .band-hero.side.hs-photo .hlap .hero-levels button {
    font-size: 13px;
    font-weight: 550;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.7);
  }
  body.page-schools .band-hero.side.hs-photo .hlap .hero-levels button[aria-pressed='true'] {
    background: #fff;
    color: #17120d;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
}
/* phone header: same lowercase name as desktop */
@media (max-width: 1024px) {
  body.page-schools .site-header .world-btn {
    text-transform: lowercase;
    font-weight: 450;
  }
}

/* Max 11-10 (Tc981) round 3: phone hero on the same system as desktop */
@media (max-width: 1024px) {
  /* one wordmark: "for schools" at the logo's size, light, beside it on its baseline */
  body.page-schools .site-header .bar > .lft:not(#_) {
    gap: 2px;
    align-items: baseline;
  }
  body.page-schools .site-header .world-btn:not(#_) {
    margin: 0;
    height: auto;
    padding: 3px 5px 4px 4px;
    gap: 6px;
    border-radius: 8px;
    font-size: 28px;
    font-weight: 360;
    letter-spacing: -0.045em;
    line-height: 1;
    text-transform: lowercase;
    color: rgba(18, 24, 21, 0.66);
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  body.page-schools .site-header .world-btn:not(#_) .chev {
    width: 10px;
    height: 10px;
    stroke-width: 1.7;
    opacity: 0.8;
    position: relative;
    top: 2px;
  }
  /* second headline line in brand orange, like desktop */
  body.page-schools .band-hero.side.hs-photo h1 span:last-child {
    color: #c44e00;
  }
  body.page-schools .band-hero.side.hs-photo.tx-7 .lede:not(#_) {
    font-size: 16.5px;
    line-height: 1.5;
    color: #3a2c20;
    text-wrap: balance;
  }
  body.page-schools .band-hero.side.hs-photo .lede .br-desk {
    display: none;
  }
  /* the pair: same height, demo has its play mark first */
  body.page-schools .band-hero.side.hs-photo .actions {
    gap: 10px;
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn {
    min-height: 52px;
    font-size: 17px;
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_) {
    gap: 10px;
    border: 1.5px solid rgba(18, 24, 21, 0.82);
    background: transparent;
    box-shadow: none;
    color: var(--ink);
  }
  body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_) svg {
    order: -1;
    width: 14px;
    height: 14px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linejoin: round;
  }
  /* proof line: quiet ink, tucked under the buttons */
  body.page-schools .band-hero.side.hs-photo .proof-line {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 450;
    color: #5a4534;
    text-wrap: balance;
  }
}

/* The active teaching screen is usable within the hero. */
@media (min-width: 1025px) {
  body.page-schools .hs-photo .wrap {
    pointer-events: none;
  }
  body.page-schools .hs-photo .hs-col {
    pointer-events: auto;
  }
  body.page-schools .hs-photo .hs-scr iframe.on {
    pointer-events: auto;
  }
}
body.page-schools .hs-photo .hlap-scr iframe.is-on {
  pointer-events: auto !important;
}

/* Max 11-10: second headline line a deeper rust (the bright orange went muddy on the tan photo); body in regular weight, relaxed tracking */
body.page-schools .band-hero.side.hs-photo h1 span:last-child:not(#_) {
  color: inherit;
}
body.page-schools .band-hero.side.hs-photo h1 span.hl-learn:last-child:not(#_) {
  color: var(--orange);
  display: inline;
}
body.page-schools .band-hero.side.hs-photo h1 > span:last-child:not(#_) {
  white-space: nowrap;
}
body.page-schools .band-hero.side.hs-photo.tx-7 .lede:not(#_) {
  font-weight: 400;
  letter-spacing: 0;
  color: #2a1f16;
}
body.page-schools .band-hero.side.hs-photo.tx-7 .proof-line:not(#_) {
  font-weight: 400;
  letter-spacing: 0;
  color: #4a3828;
}

/* Max 11-10 final pass: header keeps one look on scroll (no colour change), hero never moves */
body.page-schools .site-header.scrolled,
body.page-schools .site-header.scrolled .bar {
  background: transparent;
  box-shadow: none;
}
body.page-schools .site-header.scrolled .bar {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
/* Max 11-10: feature list rows sit closer together; Teaching assistant line stays on one line */
@media (min-width: 1025px) {
  html body.page-schools #students.v-a .sx-list {
    justify-content: center;
    gap: 14px;
  }
  html body.page-schools #students.v-a .sx-list .sx-it span {
    white-space: nowrap;
  }
}
/* Hero actions with weight (Max 11-15, "so flat"): orange primary with a soft lift, cream filled secondary like the header Log in, darker proof line */
body.page-schools .band-hero.side.hs-photo .actions .btn:not(.ghost):not(#_) {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 1px 2px rgba(90, 40, 5, 0.28),
    0 6px 16px -6px rgba(150, 60, 0, 0.45);
}
body.page-schools .band-hero.side.hs-photo .actions .btn:not(.ghost):not(#_):hover {
  background: color-mix(in oklab, var(--orange) 88%, #000);
  border-color: color-mix(in oklab, var(--orange) 88%, #000);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 2px 3px rgba(90, 40, 5, 0.3),
    0 10px 20px -8px rgba(150, 60, 0, 0.5);
}
body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_) {
  border: 1px solid rgba(60, 35, 10, 0.22);
  background: rgba(251, 240, 222, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 1px 2px rgba(60, 35, 10, 0.1);
}
body.page-schools .band-hero.side.hs-photo .actions .btn.ghost:not(#_):not(#_):hover {
  background: rgba(251, 240, 222, 0.97);
  border-color: rgba(60, 35, 10, 0.32);
}
body.page-schools .band-hero.side.hs-photo.tx-7 .proof-line:not(#_) {
  color: #2d1b0c;
  font-weight: 500;
}
