/* Landing page */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 48px;
  align-items: center;
  padding-top: clamp(32px, 6vw, 80px);
  padding-bottom: 72px;
}
.hero__copy { display: flex; flex-direction: column; gap: 28px; }
.hero__title { font-size: clamp(48px, 6.4vw, 88px); letter-spacing: -1.5px; margin: 0; }
.hero__lead { max-width: 540px; }
/* "AI-assisted Arabic learning", with a dot */
.hero__eyebrow { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 0; }
.hero__eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }
.hero__note { margin: -12px 0 0; font-size: 14px; color: var(--text-muted); }

.hero__sample {
  margin: 40px 0 0;
  padding: 36px 32px 32px;
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero__sample-meta { font-size: 13px; color: var(--text-muted); }
.hero__sample-text { font-size: 34px; line-height: 2.1; padding-top: 64px; position: relative; margin: 0; }
.hero__word {
  position: relative;
  background: var(--clay-soft);
  border-radius: 6px;
  padding: 0 4px;
  box-shadow: inset 0 -2px 0 var(--clay);
}

/* The hero's tutor demo: a sentence, a question about it and the tutor's
   answer; the chips switch between three (tutor_demo_controller). */
.hero__tutor { margin: 0; padding: 28px 28px 24px; gap: 18px; }
.hero__tutor .hero__sample-text { padding-top: 0; line-height: 2; }
.tutor-demo { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.tutor-demo__exchange { display: flex; flex-direction: column; gap: 10px; }
.tutor-demo__exchange[hidden] { display: none; }
.tutor-demo__ask {
  align-self: flex-end;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px 16px 4px 16px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 85%;
}
.tutor-demo__reply { display: flex; gap: 10px; align-items: flex-start; }
.tutor-demo__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tutor-demo__bubble {
  background: var(--sand);
  border-radius: 4px 16px 16px 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.tutor-demo__label { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--green); }
.tutor-demo__answer { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.tutor-demo__answer .ar, .tutor-demo__ask .ar { font-size: 1.2em; }
.tutor-demo__questions { padding-top: 4px; }
.tutor-demo__question { padding: 7px 13px; font-size: 13px; font-weight: 600; }

/* A section's heading above the feature grid */
.section-intro { padding-top: 56px; display: flex; flex-direction: column; gap: 10px; }
.section-intro .eyebrow { font-weight: 700; margin: 0; }
.section-intro__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  margin: 0;
  max-width: 820px;
  text-wrap: balance;
}
.section-intro + .features { padding-top: 40px; }

/* Our approach: three principles */
.approach { padding-bottom: 80px; }
.approach__card {
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 32px;
}
.approach__head { display: flex; flex-direction: column; gap: 10px; }
.approach__head .eyebrow { color: var(--green); font-weight: 700; margin: 0; }
.approach__title { font-family: var(--font-serif); font-weight: 400; font-size: 40px; line-height: 1.05; margin: 0; text-wrap: balance; }
.approach__point { display: flex; flex-direction: column; gap: 8px; border-top: 2px solid var(--green); padding-top: 16px; }
.approach__point-title { font-family: var(--font-sans); font-size: 17px; font-weight: 700; margin: 0; }
.approach__point-text { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-body); text-wrap: pretty; }

/* Dark gloss bubble above a word (also used by the reader). */
.gloss {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: 210px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 5;
}
.gloss strong { font-size: 16px; }
.gloss > span { color: var(--text-on-dark-muted); }

.features {
  padding-top: 80px;
  padding-bottom: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc((100% - 80px) / 3))), 1fr));
  gap: 40px;
}
.feature { border-top: 2px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.feature__number { font-family: var(--font-serif); font-size: 18px; color: var(--clay); }
.feature__title { font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.1; margin: 0; }
.feature__text { margin: 0; color: var(--text-body); font-size: 16px; line-height: 1.55; text-wrap: pretty; }

.cta-band {
  background: var(--ink);
  color: var(--paper);
  padding: 80px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}
.cta-band__ar { font-size: 56px; color: var(--peach); }
.cta-band__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0;
  max-width: 760px;
  line-height: 1.05;
}

/* For teachers: the example class in the hero */
.teachers__sample { gap: 16px; }
.teachers__sample-reading { margin: 0; font-size: 16px; }
.teachers__sample-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.teachers__sample-rows li { display: grid; grid-template-columns: 70px minmax(0, 1fr) 84px; align-items: center; gap: 12px; font-size: 15px; }
.teachers__sample-rows .progress, .teachers__sample-rows .progress__bar { display: block; }
