/* Content-first visual explainers for the marketing site. */
.section-intro {
  max-width: 720px;
  margin: -30px auto 38px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}
.hero-proof span {
  padding: 7px 11px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #334155;
  font-size: 12px;
  font-weight: 750;
}
.centered-note { justify-content: center; text-align: center; }

.feature-grid-rich article { min-height: 330px; gap: 24px; }
.workflow-grid { grid-template-columns: repeat(4, 1fr); }
.workflow-grid article { min-height: 250px; }
.workflow-grid article > p:last-child { margin-top: 22px; }
.workflow-grid a { color: var(--indigo); font-weight: 750; text-decoration: none; }
.workflow-grid a:hover { text-decoration: underline; }

.mini-ui,
.mini-profile-stack,
.mini-mode-grid {
  margin-top: 20px;
}
.mini-ui {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgb(15 23 42 / 5%);
}
.mini-ui-label {
  margin-bottom: 9px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.mini-word-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-word-row span,
.mini-vocab div span {
  padding: 5px 8px;
  border-radius: 8px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 700;
}
.mini-ui-button {
  margin-top: 13px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.mini-ui-button.purple { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.mini-ui-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-ui-split span {
  padding: 9px;
  border-radius: 10px;
  background: #f8fafc;
}
.mini-ui-split small,
.mini-ui-split strong { display: block; }
.mini-ui-split small { color: #94a3b8; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.mini-ui-split strong { margin-top: 3px; color: #1e293b; font-size: 11px; }
.mini-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.mini-mode-grid span {
  padding: 10px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.mini-vocab > strong { display: inline-block; color: #0f172a; font-size: 17px; }
.mini-vocab > small { margin-left: 7px; color: #64748b; }
.mini-vocab > p { margin: 8px 0 11px; color: #475569; font-size: 11px; line-height: 1.5; }
.mini-vocab div { display: flex; gap: 6px; }
.mini-profile-stack { display: grid; gap: 8px; }
.mini-profile-stack > div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.mini-profile-stack strong { font-size: 12px; }
.mini-profile-stack em { color: #047857; font-size: 11px; font-style: normal; font-weight: 800; }
.mini-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 11px;
  font-weight: 850;
}
.mini-avatar.alt { background: #dcfce7; color: #047857; }
.mini-hindi { text-align: center; }
.mini-hindi > small { display: block; color: #64748b; font-weight: 750; }
.mini-hindi > strong { display: block; margin-top: 7px; color: #0f172a; font-size: 28px; line-height: 1.25; }
.mini-hindi > span { display: block; margin-top: 2px; color: #64748b; font-size: 11px; }

.recall-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.recall-grid article {
  padding: 20px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  text-align: center;
}
.recall-grid b,
.loop-step > span,
.visual-flow-step > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0 auto 11px;
  border-radius: 50%;
  background: #eef2ff;
  color: #4f46e5;
  font-size: 12px;
  font-weight: 850;
}
.recall-grid h3 { margin: 0 0 6px; font-size: 14px; }
.recall-grid p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.45; }

.challenge-demos { background: #fff; }
.challenge-demos .recall-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.challenge-demos .challenge-card {
  min-width: 0;
  min-height: 260px;
  padding: 20px;
  border-color: #dbeafe;
  box-shadow: 0 10px 28px rgb(15 23 42 / 5%);
  text-align: left;
}
.challenge-card-heading { display: flex; align-items: flex-start; gap: 12px; min-height: 58px; }
.challenge-card-heading > b { flex: 0 0 30px; margin: 0; }
.challenge-card-heading h3 { margin: 3px 0 5px; color: #111827; font-size: 16px; }
.challenge-card-heading p { color: #64748b; font-size: 12px; }
.challenge-demo {
  min-height: 148px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.challenge-demo > button:not(.build-tiles button) {
  min-height: 38px;
  margin: 5px 4px 0 0;
  padding: 8px 12px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.challenge-demo > button:hover { border-color: #818cf8; background: #eef2ff; }
.challenge-demo input {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 10px 0 5px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 14px;
}
.challenge-demo input:focus { outline: 3px solid #c7d2fe; border-color: #6366f1; }
.letter-bank { margin: 7px 0 10px; color: #4338ca; font-size: 22px; font-weight: 850; letter-spacing: .04em; text-align: center; }
.letter-bank i { padding: 0 4px; color: #cbd5e1; font-style: normal; }
.context-sentence { margin: 2px 0 12px !important; color: #334155 !important; font-size: 13px !important; }
.context-sentence strong { color: #4f46e5; }
.audio-demo-button { color: #4338ca !important; background: #eef2ff !important; }
.build-answer {
  min-height: 38px;
  margin-bottom: 10px;
  padding: 6px 10px;
  border: 1px dashed #a5b4fc;
  border-radius: 10px;
  background: #fff;
  color: #312e81;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .18em;
}
.build-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.build-tiles button {
  width: 34px;
  height: 34px;
  border: 1px solid #c7d2fe;
  border-radius: 9px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}
.build-tiles button:disabled { opacity: .38; cursor: default; }
.challenge-demo .demo-reset { padding-inline: 9px; }
.challenge-feedback { min-height: 18px; margin: 9px 0 0 !important; font-size: 12px !important; font-weight: 700; }
.challenge-feedback.is-correct { color: #047857; }
.challenge-feedback.is-incorrect { color: #b45309; }
.demo-section-note { margin: 25px 0 0; text-align: center; color: #64748b; font-size: 14px; }
.demo-section-note a { color: #4f46e5; font-weight: 750; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.learning-loop {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
  max-width: 1040px;
  margin: 0 auto;
}
.learning-loop > i,
.visual-flow > i {
  align-self: center;
  color: #94a3b8;
  font-style: normal;
  font-weight: 800;
}
.loop-step {
  padding: 22px 18px;
  border: 1px solid #dbeafe;
  border-radius: 18px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 22px rgb(15 23 42 / 4%);
}
.loop-step strong,
.loop-step small { display: block; }
.loop-step strong { color: #0f172a; font-size: 14px; }
.loop-step small { margin-top: 6px; color: #64748b; font-size: 11px; line-height: 1.45; }

.visual-explainer {
  margin-top: 26px;
  margin-bottom: 26px;
  padding: 38px;
  border: 1px solid #dbe4f0;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 36px rgb(15 23 42 / 5%);
}
.visual-explainer > .eyebrow { text-align: left; margin-bottom: 9px; }
.visual-explainer > .section-title.small { margin-left: 0; }
.visual-intro { max-width: 720px; margin: 0 0 26px !important; }
.visual-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.visual-flow-step {
  flex: 1 1 0;
  min-width: 0;
  padding: 18px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.visual-flow-step strong,
.visual-flow-step small { display: block; }
.visual-flow-step strong { color: #0f172a; font-size: 13px; }
.visual-flow-step small { margin-top: 5px; color: #64748b; font-size: 11px; line-height: 1.4; }

.subject-example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.subject-example-grid article {
  min-height: 170px;
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}
.subject-example-grid strong { display: block; margin-top: 15px; color: #0f172a; font-size: 18px; }
.subject-example-grid p { margin-top: 7px; font-size: 13px; line-height: 1.5; }
.subject-mark {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: #eef2ff;
}
.subject-mark::before,
.subject-mark::after { content: ""; position: absolute; border-radius: 999px; }
.subject-mark::before { width: 22px; height: 22px; left: 16px; top: 16px; background: #6366f1; }
.subject-mark::after { width: 36px; height: 12px; left: 9px; top: 21px; border: 2px solid #8b5cf6; transform: rotate(-28deg); }
.mark-2 { background: #ecfdf5; }
.mark-2::before { background: #10b981; }
.mark-2::after { border-color: #34d399; transform: rotate(28deg); }
.mark-3 { background: #fff7ed; }
.mark-3::before { background: #f97316; }
.mark-3::after { border-color: #fb923c; transform: rotate(0deg); }

.mode-explainer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode-explainer-grid article {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #fff;
}
.mode-explainer-grid strong,
.mode-explainer-grid small { display: block; }
.mode-explainer-grid strong { color: #0f172a; font-size: 15px; }
.mode-explainer-grid small { margin-top: 4px; color: #64748b; font-size: 11px; }

.hindi-demo {
  display: grid;
  grid-template-columns: .75fr 1.25fr 1fr;
  overflow: hidden;
  border: 1px solid #dbe4f0;
  border-radius: 18px;
  background: #fff;
}
.hindi-demo > div { padding: 22px; border-right: 1px solid #e2e8f0; }
.hindi-demo > div:last-child { border-right: 0; }
.hindi-demo small,
.hindi-demo strong,
.hindi-demo span { display: block; }
.hindi-demo small { color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hindi-demo strong { margin-top: 8px; color: #0f172a; font-size: 17px; }
.hindi-demo > div:nth-child(2) strong { font-size: 32px; }
.hindi-demo span { margin-top: 4px; color: #64748b; font-size: 12px; }
.audio-orb {
  display: grid !important;
  place-items: center;
  margin-top: 9px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ecfdf5;
  font-size: 18px;
}

.fit-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fit-summary article {
  padding: 23px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
}
.fit-summary span {
  display: inline-block;
  margin-bottom: 8px;
  color: #4f46e5;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.fit-summary p { color: #334155; font-weight: 600; }

@media (max-width: 1000px) {
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .recall-grid { grid-template-columns: repeat(3, 1fr); }
  .challenge-demos .recall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learning-loop { grid-template-columns: 1fr; }
  .learning-loop > i { transform: rotate(90deg); text-align: center; }
  .visual-flow { flex-direction: column; }
  .visual-flow > i { transform: rotate(90deg); text-align: center; }
}

@media (max-width: 700px) {
  .hero-proof { justify-content: center; }
  .section-intro { margin-top: -24px; }
  .feature-grid-rich article,
  .workflow-grid article { min-height: auto; }
  .workflow-grid,
  .recall-grid,
  .subject-example-grid,
  .mode-explainer-grid,
  .fit-summary,
  .hindi-demo { grid-template-columns: 1fr; }
  .challenge-demos .recall-grid { grid-template-columns: 1fr; }
  .hindi-demo > div { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .hindi-demo > div:last-child { border-bottom: 0; }
  .visual-explainer { width: min(100% - 32px, 880px); padding: 26px 20px; }
}

/* Match the app question cards: theme.ts and JumbleQuestionCard slots/tiles. */
.challenge-demos .challenge-demo { background: #F5F3FF; border-color: #EDE9FE; border-radius: 20px; padding: 20px; }
.challenge-demos .challenge-card { border-radius: 24px; }
.challenge-demos .challenge-card-heading > b { background: #EDE9FE; color: #7C3AED; }
.challenge-demo[data-challenge="choose"] > button,
.challenge-demo[data-challenge="context"] > button,
.challenge-demo[data-challenge="guess"] > button { display: block; width: 100%; min-height: 48px; margin: 8px 0; border: 2px solid #E2E8F0; border-radius: 14px; background: #fff; text-align: left; font-size: 15px; padding: 12px 16px; }
.challenge-demo > button[data-check] { background: #7C3AED; color: #fff; border-color: #7C3AED; min-height: 44px; padding-inline: 22px; }
.challenge-demo input { border: 2px dashed #A78BFA; border-radius: 12px; min-height: 48px; text-align: center; color: #5B21B6; font-weight: 800; }
.challenge-demo .audio-demo-button { display: block; margin: 0 auto 16px; min-height: 52px; border-radius: 16px; background: #7C3AED !important; color: #fff !important; }
.build-tiles { justify-content: center; padding: 10px; border-radius: 16px; background: #EDE9FE; }
.build-tiles button { width: 38px; height: 44px; border-radius: 12px; background: #7C3AED; color: #fff; font-size: 18px; box-shadow: 0 3px 0 #5B21B6; }
.build-answer { min-height: 48px; border: 2px dashed #A78BFA; background: #EDE9FE; text-align: center; }
.challenge-feedback.is-correct { padding: 10px; border-radius: 12px; background: #D1FAE5; }
.challenge-feedback.is-incorrect { padding: 10px; border-radius: 12px; background: #FEF3C7; }

.homepage-routine { padding-bottom: 76px; margin-bottom: 40px; }
.audience-shortcuts { padding-top: 44px; padding-bottom: 44px; margin-bottom: 48px; background: #f8fafc; }
.audience-shortcuts h2 { margin: 0 0 20px; text-align: center; font-size: 24px; color: #0f172a; }
.audience-shortcuts nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.audience-shortcuts a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; color: #5b21b6; text-decoration: none; font-size: 15px; font-weight: 750; }
.audience-shortcuts a:hover { border-color: #a78bfa; background: #f5f3ff; }
.audience-shortcuts a:focus-visible { outline: 3px solid #a78bfa; outline-offset: 3px; }
@media (max-width: 700px) { .audience-shortcuts nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } .audience-shortcuts a { padding: 16px 12px; font-size: 14px; } }

/* Link the step centers without drawing through the text below them. */
.homepage-routine .steps { position: relative; }
.homepage-routine .steps::before { content: ""; position: absolute; top: 25px; left: calc((100% - 120px) / 6); right: calc((100% - 120px) / 6); height: 2px; background: #c4b5fd; }
.homepage-routine .steps article { position: relative; }
.homepage-routine .steps b { position: relative; z-index: 1; }
@media (max-width: 900px) { .homepage-routine .steps::before { display: none; } }
@media (max-width: 600px) { .homepage-routine { margin-bottom: 24px; padding-bottom: 56px; } .audience-shortcuts { margin-bottom: 32px; padding-top: 32px; padding-bottom: 32px; } }

/* Keep the transition into the Pro offer inside the homepage’s soft surfaces. */
.homepage-routine { margin-bottom: 0; padding-bottom: 76px; }
.audience-shortcuts { margin-bottom: 0; padding-bottom: 76px; }
.audience-shortcuts + .pro { width: min(calc(100% - 48px), 1240px); margin: 0 auto 48px; }
@media (max-width: 600px) {
  .homepage-routine { padding-bottom: 56px; }
  .audience-shortcuts { padding-bottom: 48px; }
  .audience-shortcuts + .pro { width: calc(100% - 32px); margin-bottom: 32px; }
}
