/* Home page hero: real teacher and student screens inside the laptop and phone
   frames, changing every few seconds (hero-carousel.js). The frames themselves
   are styled in octodecks.css. */

/* A tighter hero above the carousel, so the devices show without scrolling
   on a laptop screen (this file is only loaded by the home page) */
.hero { padding-top: calc(68px + 3rem); }
.hero .hero-byline { margin-bottom: 1.25rem; }
.hero h1 { margin-bottom: 1.25rem; }
.hero .hero-sub-short { font-size: 1.1rem; line-height: 1.6; max-width: 620px; margin: 0 auto 1.75rem; color: var(--text-2); }
.hero .hero-ctas { margin-bottom: 0.9rem; }
.hero .hero-google-notice { margin-top: 0; margin-bottom: 2.25rem; }
@media (max-width: 720px) {
  .hero { padding-top: calc(68px + 2rem); }
  .hero .hero-sub-short { font-size: 1rem; }
}

/* Screens hold a stack of pictures; only the current one is visible */
.hc .laptop-screen.hc-screen { position: relative; padding: 0; min-height: 0; aspect-ratio: 16 / 10; background: #f4f3ef; }
.hc .phone-screen-wrap.hc-phone { position: relative; padding: 0; min-height: 0; aspect-ratio: 520 / 1056; background: #f4f3ef; }
.hc-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
  opacity: 0; transition: opacity .7s ease;
}
.hc-img.is-on { opacity: 1; }

/* Three devices on one stage: the teacher's laptop at the back, a student's
   Chromebook in front on the left and a student's phone in front on the right */
/* Wider than the page's 1100px column on big screens (the hero hides overflow) */
.hc { position: relative; width: min(1240px, calc(100vw - 2.5rem)); left: 50%; transform: translateX(-50%); }
.hc .hero-devices { display: block; position: relative; max-width: none; margin: 0 auto; padding-bottom: 3%; }
.hc .hero-devices::before { display: none; }   /* the old fade-out band looked like a white strip over real screenshots */
.hc .mockup-laptop { width: 70%; max-width: none; margin: 0 auto; }
.hc .mockup-cb { position: absolute; left: 0; bottom: 0; width: 36%; z-index: 3; }
.hc .mockup-phone { position: absolute; right: 1%; bottom: 0; width: 15%; margin: 0; z-index: 4; }

/* Chromebook: dark lid with a thin bezel, no window buttons, a wide silver base */
.cb-lid {
  position: relative; background: #2b2d33; border-radius: 10px 10px 4px 4px; padding: 3.2% 3.2% 4%;
  box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 18px 48px rgba(0,0,0,.4);
}
.cb-cam { position: absolute; top: 1.2%; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #4a4d55; }
.cb-screen { position: relative; aspect-ratio: 1100 / 619; overflow: hidden; border-radius: 2px; background: #f4f3ef; }
.cb-base {
  height: 9px; margin: 0 -5%; border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, #d7d9de 0%, #b9bcc3 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* Caption and controls under the devices */
.hc-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  max-width: 1100px; margin: 1.5rem auto 0; padding: 0 0.25rem; text-align: left;
}
.hc-caps { flex: 1; min-height: 3.2em; }
.hc-cap { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--text-2, #5f6670); }
.hc-cap strong { color: var(--text, #1d1f23); font-weight: 700; }
.hc-cap[hidden] { display: none; }
.hc-cap.is-on { animation: hc-in .5s ease; }
@keyframes hc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hc-controls { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.hc-dots { display: flex; gap: 0.15rem; }
.hc-dot {
  /* 32px tap target around a small visible dot */
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%;
}
.hc-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--border, #d3d7dd); transition: background .2s, transform .2s;
}
.hc-dot:hover::before { background: var(--text-2, #5f6670); }
.hc-dot[aria-current="true"]::before { background: var(--brand, #086bb5); transform: scale(1.25); }
.hc-pause {
  width: 36px; height: 36px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1.5px solid var(--border, #d3d7dd); background: var(--bg-card, #fff); color: var(--text, #1d1f23);
  display: inline-flex; align-items: center; justify-content: center;
}
.hc-pause:hover { border-color: var(--brand, #086bb5); color: var(--brand, #086bb5); }
.hc-pause svg { width: 16px; height: 16px; fill: currentColor; }
.hc-pause .hc-i-play { display: none; }
.hc.is-paused .hc-pause .hc-i-play { display: block; }
.hc.is-paused .hc-pause .hc-i-pause { display: none; }
.hc-dot:focus-visible, .hc-pause:focus-visible { outline: 3px solid var(--brand, #086bb5); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .hc-img { transition: none; }
  .hc-cap.is-on { animation: none; }
}

/* Phones and small tablets: bigger front devices so the student screens stay readable */
@media (max-width: 720px) {
  .hc .hero-devices { padding-bottom: 14%; }
  .hc .mockup-laptop { width: 82%; margin: 0 0 0 4%; }
  .hc .mockup-cb { width: 52%; }
  .hc .mockup-phone { width: 27%; max-width: none; right: 0; bottom: 0; }
  .hc .phone-chrome { border-radius: 22px; padding: 5px; }
  .hc .phone-notch-row { padding: 3px 0 4px; }
  .hc .phone-pill { width: 34px; height: 5px; }
  .hc .phone-screen-wrap.hc-phone { border-radius: 17px; }
  .cb-base { height: 6px; }
  .hc-bar { flex-direction: column; align-items: stretch; gap: 0.75rem; text-align: center; }
  .hc-caps { min-height: 4.8em; }
  .hc-cap { font-size: 0.95rem; }
  .hc-controls { justify-content: center; }
}
