/* ─────────────────────── Business page ───────────────────────
   For-teachers landing: HugeScreen demo up top, an interactive
   classroom-suite tour, and the coming-soon pricing strip.
   Calm + flat, scoped to .business-page. */

.business-page .biz-hero {
  text-align: center;
  padding-bottom: 30px;
}

.business-page .biz-hero .eyebrow {
  margin-inline: auto;
}

.business-page .biz-hero h1 {
  margin-inline: auto;
  max-width: 17ch;
}

.business-page .biz-lede {
  max-width: 58ch;
  margin: 18px auto 0;
  color: var(--ink-soft, #5b5566);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.6;
}

.business-page .biz-demo-hint {
  margin: 26px auto 6px;
  color: #7a7387;
  font-size: 0.9rem;
  font-weight: 600;
}

/* The TV frame styles come from styles.css (.bigscreen-screen etc.). We just
   give the section breathing room. */
.business-page .biz-demo {
  padding-top: 0;
}

/* ── Classroom tour ── */
.biz-tour {
  text-align: center;
}

.biz-tour .section-heading p {
  margin-inline: auto;
}

.biz-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px auto 0;
}

.biz-tab {
  appearance: none;
  border: 1px solid rgba(106, 28, 246, 0.16);
  background: #ffffff;
  color: #4b10be;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font: 800 0.92rem "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0.01em;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.biz-tab:hover {
  transform: translateY(-1px);
}

.biz-tab.is-active {
  background: var(--purple, #6a1cf6);
  border-color: var(--purple, #6a1cf6);
  color: #ffffff;
}

.biz-panels {
  position: relative;
  margin-top: 30px;
}

.biz-panel {
  display: none;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3.4vw, 54px);
  align-items: center;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(31, 17, 66, 0.08);
  border-radius: 26px;
  box-shadow: 0 16px 40px rgba(31, 17, 66, 0.07);
  padding: clamp(24px, 3vw, 44px);
}

.biz-panel.is-active {
  display: grid;
  animation: biz-panel-in 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes biz-panel-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .biz-panel.is-active { animation: none; }
}

.biz-panel h3 {
  margin: 0;
  font: 800 clamp(1.35rem, 2vw, 1.7rem) "Plus Jakarta Sans", Inter, sans-serif;
  color: #1f1142;
  letter-spacing: -0.01em;
}

.biz-panel p {
  margin: 12px 0 0;
  color: #5b5566;
  line-height: 1.65;
}

/* ── Mocks: flat, animated, no imagery ──
   Each panel replays its sequence whenever it becomes active (JS adds
   .is-playing). Everything is transform/opacity so it stays smooth. */
.biz-mock {
  border: 1px solid rgba(31, 17, 66, 0.09);
  border-radius: 18px;
  background: #faf8fd;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 352px;
  justify-content: center;
}

.biz-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(31, 17, 66, 0.07);
  border-radius: 14px;
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(10px);
}

.biz-panel.is-playing .biz-row {
  animation: biz-row-in 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 130ms);
}

@keyframes biz-row-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.biz-av {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 800 0.82rem "Plus Jakarta Sans", Inter, sans-serif;
  color: #ffffff;
}

.biz-nm {
  font-weight: 800;
  color: #1f1142;
  font-size: 0.94rem;
  min-width: 64px;
  white-space: nowrap;
}

.biz-nm.is-flex { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; }

.biz-sub {
  color: #7a7387;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.biz-sub.is-flex { flex: 1; }
.biz-sub b { color: #4b10be; font-weight: 800; font-variant-numeric: tabular-nums; }

/* progress bars */
.biz-track {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(106, 28, 246, 0.1);
  overflow: hidden;
}

.biz-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #6a1cf6, #9b4dff);
}

.biz-panel.is-playing .biz-fill {
  animation: biz-fill 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 130ms + 220ms);
}

@keyframes biz-fill {
  from { width: 0; }
  to   { width: var(--to, 50%); }
}

.biz-pct {
  font: 800 0.84rem "Plus Jakarta Sans", Inter, sans-serif;
  color: #4b10be;
  min-width: 44px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* pills */
.biz-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  font: 800 0.72rem "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.biz-pill svg { width: 11px; height: 11px; }

.biz-pill.is-type {
  background: rgba(106, 28, 246, 0.1);
  color: #4b10be;
}

.biz-pill.is-ok {
  background: rgba(47, 143, 106, 0.14);
  color: #196b4d;
}

/* "sent" confirmation lands a beat after its row */
.biz-pill.is-late { opacity: 0; transform: scale(0.86); }

.biz-panel.is-playing .biz-pill.is-late {
  animation: biz-pop 460ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--d, 0) * 340ms + 700ms);
}

@keyframes biz-pop {
  0%   { opacity: 0; transform: scale(0.86); }
  60%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}

/* CEFR level badge */
.biz-level {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(106, 28, 246, 0.1);
  color: #4b10be;
  font: 800 0.8rem "Plus Jakarta Sans", Inter, sans-serif;
  opacity: 0;
  transform: scale(0.86);
}

.biz-panel.is-playing .biz-level {
  animation: biz-pop 460ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--d, 0) * 130ms + 900ms);
}

/* ── Joining: a phone scans the real QR, then the student joins ── */
.biz-scan {
  position: relative;
  align-self: center;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.biz-qr {
  position: relative;
  width: 80px;
  height: 80px;
  padding: 6px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid rgba(31, 17, 66, 0.1);
  opacity: 0;
  transform: scale(0.94);
}

.biz-qr svg { display: block; width: 100%; height: 100%; }

.biz-panel.is-playing .biz-qr {
  animation: biz-qr-in 560ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes biz-qr-in {
  from { opacity: 0; transform: scale(0.94); }
  to   { opacity: 1; transform: none; }
}

/* The phone: bezel only, screen transparent, so the real QR shows through
   it like a live camera view. */
.biz-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 118px;
  height: 242px;
  margin: -121px 0 0 -59px;
  border: 3px solid #1f1142;
  border-radius: 28px;
  box-shadow: 0 14px 30px rgba(31, 17, 66, 0.18);
  opacity: 0;
  transform: translateY(46px) rotate(-5deg) scale(0.96);
  pointer-events: none;
}

.biz-phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 30px;
  height: 5px;
  margin-left: -15px;
  border-radius: 999px;
  background: #1f1142;
}

.biz-phone-view {
  position: absolute;
  inset: 20px 8px 18px;
  border-radius: 12px;
  overflow: hidden;
}

/* viewfinder corner brackets */
.biz-c {
  position: absolute;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(106, 28, 246, 0.9);
}
.biz-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 5px 0 0 0; }
.biz-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 5px 0 0; }
.biz-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 5px; }
.biz-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; border-radius: 0 0 5px 0; }

.biz-phone-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 18px;
  background: linear-gradient(180deg, rgba(106, 28, 246, 0) 0%, rgba(106, 28, 246, 0.34) 50%, rgba(106, 28, 246, 0) 100%);
  opacity: 0;
}

/* bright core of the scan line */
.biz-phone-beam::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 999px;
  background: rgba(106, 28, 246, 0.75);
}

/* home indicator, so the bezel reads as a real handset */
.biz-phone::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 38px;
  height: 3px;
  margin-left: -19px;
  border-radius: 999px;
  background: rgba(31, 17, 66, 0.28);
}

.biz-phone-ok {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  opacity: 0;
  transform: scale(0.6);
}

/* sequence: phone rises in → beam sweeps twice → brackets go green + check →
   phone slides away → the join row lands → approve is tapped */
.biz-panel.is-playing .biz-phone {
  animation:
    biz-phone-in 620ms cubic-bezier(0.22, 1, 0.36, 1) 620ms forwards,
    biz-phone-out 560ms cubic-bezier(0.55, 0, 0.85, 0.5) 3500ms forwards;
}

@keyframes biz-phone-in {
  from { opacity: 0; transform: translateY(46px) rotate(-5deg) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); }
}
@keyframes biz-phone-out {
  from { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); }
  to   { opacity: 0; transform: translateY(38px) rotate(-7deg) scale(0.94); }
}

.biz-panel.is-playing .biz-phone-beam {
  animation: biz-beam 1150ms ease-in-out 1280ms 2;
}

@keyframes biz-beam {
  0%   { opacity: 0; transform: translateY(-24px); }
  18%  { opacity: 1; }
  82%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(200px); }
}

.biz-panel.is-playing .biz-c {
  animation: biz-lock 460ms cubic-bezier(0.34, 1.56, 0.64, 1) 3080ms forwards;
}

@keyframes biz-lock {
  from { border-color: rgba(106, 28, 246, 0.9); transform: scale(1); }
  55%  { transform: scale(0.86); }
  to   { border-color: #34d399; transform: scale(1); }
}

.biz-panel.is-playing .biz-phone-ok {
  animation: biz-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) 3160ms forwards;
}

/* the join request only appears once the scan has landed */
.biz-panel[data-biz-panel="join"].is-playing .biz-row {
  animation-delay: 4000ms;
}

.biz-approve {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--purple, #6a1cf6);
  color: #ffffff;
  font: 800 0.72rem "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.biz-approve-ic {
  position: absolute;
  width: 15px;
  height: 15px;
  opacity: 0;
}

.biz-panel.is-playing .biz-approve {
  animation: biz-approve-press 900ms cubic-bezier(0.22, 1, 0.36, 1) 5000ms forwards;
}
.biz-panel.is-playing .biz-approve-txt {
  animation: biz-fade-out 300ms ease-out 5300ms forwards;
}
.biz-panel.is-playing .biz-approve-ic {
  animation: biz-fade-in 320ms ease-out 5480ms forwards;
}

@keyframes biz-approve-press {
  0%   { transform: none; }
  22%  { transform: scale(0.94); }
  55%  { transform: scale(1); background: #2f8f6a; }
  100% { transform: scale(1); background: #2f8f6a; min-width: 44px; padding: 0 12px; }
}
@keyframes biz-fade-out { to { opacity: 0; transform: scale(0.9); } }
@keyframes biz-fade-in  { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

/* ── HugeScreen TV mock ── */
.biz-tv {
  align-self: stretch;
  border-radius: 16px;
  background: linear-gradient(155deg, #2a1657 0%, #1f1142 100%);
  color: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.biz-tv-q {
  font: 800 1.05rem "Plus Jakarta Sans", Inter, sans-serif;
  opacity: 0;
  transform: translateY(6px);
}

.biz-panel.is-playing .biz-tv-q {
  animation: biz-row-in 460ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.biz-tv-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.biz-opt {
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(8px);
}

.biz-panel.is-playing .biz-opt {
  animation: biz-row-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 260ms);
}

/* the correct answer lights up after everyone has "answered" */
.biz-panel.is-playing .biz-opt.is-right {
  animation:
    biz-row-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards,
    biz-reveal 700ms cubic-bezier(0.34, 1.56, 0.64, 1) 1850ms forwards;
  animation-delay: 260ms, 1850ms;
}

@keyframes biz-reveal {
  0%   { background: rgba(255, 255, 255, 0.12); color: #fff; transform: none; }
  40%  { transform: scale(1.04); }
  100% { background: #34d399; color: #0b3d2c; transform: none; }
}

.biz-tv-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.biz-tv-dots { display: inline-flex; gap: 6px; }

.biz-tv-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  transform: scale(0.6);
  opacity: 0;
}

.biz-panel.is-playing .biz-tv-dots i {
  animation: biz-dot-in 420ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: calc(var(--i, 0) * 160ms + 700ms);
}

@keyframes biz-dot-in {
  from { opacity: 0; transform: scale(0.6); background: rgba(255, 255, 255, 0.22); }
  to   { opacity: 1; transform: scale(1); background: #34d399; }
}

.biz-tv-score {
  font: 800 0.94rem "Plus Jakarta Sans", Inter, sans-serif;
  color: #34d399;
  font-variant-numeric: tabular-nums;
  opacity: 0;
}

.biz-panel.is-playing .biz-tv-score {
  animation: biz-fade-in 420ms ease-out 2100ms forwards;
}

@media (prefers-reduced-motion: reduce) {
  .biz-row, .biz-qr, .biz-tv-q, .biz-opt, .biz-tv-score { opacity: 1; transform: none; }
  .biz-phone { opacity: 1; transform: rotate(-3deg); }
  .biz-phone-beam, .biz-phone-ok { display: none; }
  .biz-pill.is-late, .biz-level, .biz-tv-dots i { opacity: 1; transform: none; }
  .biz-panel.is-playing * { animation: none !important; }
  .biz-fill { width: var(--to, 50%); }
  .biz-approve-ic { display: none; }
}

/* ── Pricing strip ── */
.biz-pricing {
  text-align: center;
}

.biz-price-card {
  max-width: 620px;
  margin: 30px auto 0;
  background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
  border: 2px solid var(--purple, #6a1cf6);
  border-radius: 26px;
  box-shadow: 0 22px 54px rgba(106, 28, 246, 0.14);
  padding: clamp(26px, 3vw, 40px);
}

.biz-price-amounts {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.biz-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 2px 26px;
}

/* divider between the two prices; becomes a top rule when they stack */
.biz-amount + .biz-amount {
  border-left: 1px solid rgba(31, 17, 66, 0.12);
}

.biz-amount b {
  font: 800 clamp(1.9rem, 3vw, 2.6rem) "Plus Jakarta Sans", Inter, sans-serif;
  color: #1f1142;
  letter-spacing: -0.02em;
}

.biz-amount em {
  font-style: normal;
  font-weight: 700;
  font-size: 0.98rem;
  color: #7a7387;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .biz-amount { padding: 10px 0; }
  .biz-amount + .biz-amount {
    border-left: 0;
    border-top: 1px solid rgba(31, 17, 66, 0.12);
    width: 100%;
    justify-content: center;
  }
  .biz-amount:first-child { width: 100%; justify-content: center; }
}

.biz-price-soon {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #1f1142;
  color: #ffffff;
  font: 800 0.72rem "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.biz-price-note {
  margin: 14px auto 0;
  max-width: 46ch;
  color: #7a7387;
  font-size: 0.92rem;
  line-height: 1.6;
}

.biz-ghost-button {
  display: inline-grid;
  min-height: 48px;
  place-items: center;
  padding: 0 24px;
  border: 1.5px solid rgba(106, 28, 246, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: var(--purple, #6a1cf6);
  font: 900 0.9rem "Plus Jakarta Sans", Inter, sans-serif;
  transition: border-color 200ms ease, background 200ms ease,
    transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.biz-ghost-button:hover {
  border-color: var(--purple, #6a1cf6);
  background: #faf7ff;
  transform: translateY(-1px);
}

.biz-price-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.biz-fineprint {
  margin: clamp(34px, 4vw, 50px) auto 0;
  max-width: 64ch;
  text-align: center;
  color: #9a93a8;
  font-size: 0.84rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 860px) {
  .biz-panel {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .biz-panel h3, .biz-panel p { text-align: center; }
  .biz-mock { min-height: 0; }
}
