/* Blue hero: the voice CTA precedes the robot in DOM and mobile layout. */
.ai-hero.lesson-home { padding-top: 20px; padding-bottom: 20px; }
.ai-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; max-width: 1160px; margin-inline: auto; padding: 38px 40px; border: 1px solid #a9d8fa; border-radius: 20px; background: radial-gradient(ellipse at 2% 0%, #e0f4ff 0, transparent 62%), linear-gradient(120deg, #c5e9ff, #80c1f7); }
.ai-hero .home-product-intro { min-width: 0; padding: 0; }
.ai-hero-eyebrow { margin: 0 0 13px; color: #355d82; font-size: 10px; font-weight: 750; letter-spacing: .8px; line-height: 1.5; }
.ai-hero #home-title { margin: 0; color: #102f51; font-size: clamp(38px, 4vw, 53px); font-weight: 800; line-height: 1.13; letter-spacing: -1.6px; max-width: 570px; }
.ai-hero #home-title > span { display: block; margin-top: 3px; }
.ai-hero-description { max-width: 450px; margin: 21px 0 0; color: #244867; font-size: 18px; line-height: 1.6; }
.ai-hero-actions { display: flex; align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 26px; }
.ai-hero-actions > .ai-hero-primary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; max-width: 100%; padding: 14px 24px; border: 1px solid #084da1; border-radius: 12px; background: linear-gradient(110deg, #1265cb, #084699); color: #fff; font: 700 17px/1.4 Manrope, Arial, sans-serif; box-shadow: 0 6px 16px #12529c20; cursor: pointer; text-align: center; }
.ai-hero-primary > svg { width: 22px; height: 22px; flex: none; }
.ai-hero-actions > .ai-hero-primary:hover { background: #084699; box-shadow: 0 7px 20px #12529c30; }
.ai-hero-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px; color: #0754ad; font-size: 15px; font-weight: 700; text-decoration: none; }
.ai-hero-secondary:hover { color: #063c7c; text-decoration: underline; text-underline-offset: 4px; }
.ai-hero-note { margin: 2px 0 0; color: #3b5c79; font-size: 12px; line-height: 1.6; }
.ai-voice-preview { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, .98fr) minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; min-height: 320px; }
.ai-voice-preview::before { content: ''; position: absolute; z-index: -1; right: -8px; top: 50%; transform: translateY(-50%); width: 78%; aspect-ratio: 1; border-radius: 50%; background: #ffffff38; pointer-events: none; }
.ai-preview-dialogue { display: grid; gap: 12px; min-width: 0; }
.ai-example-label { margin: 0; color: #244f74; font-size: 11px; line-height: 1.5; font-weight: 650; letter-spacing: 0; }
.ai-dialogue { min-width: 0; padding: 13px 15px; border: 1px solid #ffffffbf; border-radius: 14px; background: #ffffffef; box-shadow: 0 5px 18px #285c9910; }
.ai-dialogue-label { display: block; color: #1761b2; font-size: 11px; font-weight: 750; line-height: 1.4; }
.ai-dialogue > p { margin: 5px 0; color: #183f62; font: 500 21px/1.45 'Noto Sans Hebrew', Arial, sans-serif; overflow-wrap: anywhere; }
.ai-dialogue-translation { display: block; color: #405e79; font-size: 13px; line-height: 1.5; }
.ai-dialogue-learner { background: #f0f8ff; }
.ai-hero-robot { display: block; position: static; min-width: 0; width: 100%; height: auto; max-width: 300px; max-height: 330px; object-fit: contain; margin: 0; align-self: end; }
.ai-preview-wave { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 15px; min-width: 0; color: #1766b6; }
.ai-preview-wave > svg { display: block; width: 104px; height: 24px; flex: none; }
.ai-preview-wave > span { font-size: 11px; color: #2e5273; line-height: 1.5; }
.home-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1160px; margin: 20px auto 0; }
.ai-hero .home-quick-card { display: flex; align-items: center; gap: 15px; min-width: 0; min-height: 104px; padding: 20px 22px; border: 1px solid #d6e6f5; border-radius: 13px; background: #fff; color: #173a5c; font: inherit; text-align: left; text-decoration: none; box-shadow: none; }
.ai-hero .home-quick-card:hover { border-color: #83b9e7; background: #f3f9ff; }
.home-quick-card > svg { width: 31px; height: 31px; flex: none; color: #176cdc; }
.home-quick-card > span { min-width: 0; }
.home-quick-card strong { display: block; font-size: 16px; line-height: 1.4; font-weight: 750; }
.home-quick-card small { display: block; margin-top: 6px; color: #577089; font-size: 13px; line-height: 1.5; }
.home-quick-card .home-quick-arrow { margin-left: auto; color: #457caa; font-size: 20px; flex: none; }
.ai-hero :is(button, a):focus-visible { outline: 3px solid #103f8c; outline-offset: 4px; }
@media (min-width: 1440px) { .ai-hero.lesson-home { padding-top: 24px; } .ai-hero-grid { gap: 36px; padding: 42px 44px; } }
@media (max-width: 1100px) {
  .ai-hero-grid { padding: 30px; gap: 22px; }
  .ai-hero #home-title { font-size: 43px; letter-spacing: -1.1px; }
  .ai-hero-description { font-size: 17px; }
  .ai-voice-preview { gap: 9px; min-height: 300px; }
  .ai-dialogue { padding: 11px 12px; }
  .ai-dialogue > p { font-size: 20px; }
  .ai-hero .home-quick-card { gap: 12px; padding: 17px; }
  .home-quick-card strong { font-size: 15px; }
  .home-quick-card .home-quick-arrow { display: none; }
}
@media (max-width: 780px) {
  .ai-hero.lesson-home { padding-top: 14px; padding-bottom: 15px; }
  .ai-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 540px; padding: 25px 22px 18px; border-radius: 16px; }
  .ai-hero-eyebrow { font-size: 9px; letter-spacing: .45px; margin-bottom: 10px; }
  .ai-hero #home-title { font-size: clamp(30px, 8.2vw, 41px); line-height: 1.14; letter-spacing: -.85px; }
  .ai-hero #home-title > span { margin-top: 1px; }
  .ai-hero-description { max-width: none; margin-top: 13px; font-size: 16px; line-height: 1.55; }
  .ai-hero-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; margin-top: 19px; }
  .ai-hero-actions > .ai-hero-primary { width: 100%; min-height: 50px; padding: 12px 14px; font-size: 16px; gap: 10px; }
  .ai-hero-secondary { min-height: 40px; font-size: 14px; }
  .ai-hero-note { font-size: 11px; line-height: 1.5; margin: 0; text-align: center; }
  .ai-voice-preview { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); gap: 8px 10px; min-height: 0; max-width: 420px; width: 100%; margin-inline: auto; }
  .ai-voice-preview::before { right: 0; width: 64%; }
  .ai-preview-dialogue { gap: 8px; }
  .ai-example-label { font-size: 10px; line-height: 1.4; }
  .ai-dialogue { padding: 9px 10px; border-radius: 10px; }
  .ai-dialogue-label { font-size: 10px; }
  .ai-dialogue > p { margin: 3px 0; font-size: 18px; line-height: 1.35; }
  .ai-dialogue-translation { font-size: 12px; line-height: 1.4; }
  .ai-hero-robot { max-height: 170px; align-self: center; }
  .ai-preview-wave { gap: 10px; }
  .ai-preview-wave > svg { width: 75px; height: 20px; }
  .ai-preview-wave > span { font-size: 10px; }
  .home-quick-actions { grid-template-columns: minmax(0, 1fr); gap: 9px; max-width: 540px; margin-top: 12px; }
  .ai-hero .home-quick-card { min-height: 82px; gap: 15px; padding: 14px 17px; border-radius: 11px; }
  .home-quick-card > svg { width: 27px; height: 27px; }
  .home-quick-card strong { font-size: 15px; }
  .home-quick-card small { margin-top: 4px; font-size: 13px; }
  .home-quick-card .home-quick-arrow { display: block; }
}
@media (max-width: 360px) {
  .ai-hero-grid { padding-inline: 17px; }
  .ai-hero #home-title { font-size: 28px; }
  .ai-hero-actions > .ai-hero-primary { font-size: 15px; padding-inline: 10px; }
  .ai-voice-preview { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 8px; }
  .ai-hero-robot { max-height: 140px; }
}

/* Practical first example: a phrase fits differently from one large letter/word. */
.home-practical-demo > .screen-label {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .4px;
  color: #1468d3;
}
.home-preview-levels {
  margin: 4px 0 0;
  color: #58718b;
  font-size: 13px;
  line-height: 1.5;
}
.home-practical-demo > h2 {
  margin-top: 11px;
}
.home-preview-context {
  margin-top: 9px;
  color: #486581;
  font-size: 16px;
  line-height: 1.55;
}
.home-practical-demo .home-word-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: 15px;
  padding: 12px 10px 11px;
  border: 1px solid #d9e9f8;
  border-radius: 8px;
  background: #f4f9ff;
}
.home-practical-demo .home-hebrew {
  padding-inline: 3px;
}
.home-practical-demo .home-hebrew > span {
  font-size: 36px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.home-practical-demo .home-pronunciation {
  margin-top: 3px;
  color: #52677e;
  font-size: 17px;
  line-height: 1.55;
}
.home-practical-demo .home-demo-actions {
  margin-top: 16px;
}
.home-practical-demo .home-answer-list button {
  text-align: left;
}
@media (max-width: 780px) {
  .home-practical-demo > .screen-label,
  .home-preview-levels {
    font-size: 12px;
  }
  .home-preview-context {
    font-size: 16px;
    margin-top: 6px;
  }
  .home-practical-demo .home-word-row {
    margin-top: 11px;
    padding: 9px 8px;
  }
  .home-practical-demo .home-hebrew > span {
    font-size: 30px;
  }
  .home-practical-demo .home-pronunciation {
    font-size: 16px;
  }
  .home-practical-demo .home-demo-actions {
    margin-top: 12px;
  }
}
@media (max-width: 360px) {
  .home-practical-demo .home-hebrew > span {
    font-size: 27px;
  }
}
