/* === tansinh home2 F1 BEGIN: base, header, hero, app demo === */
/* home2.css is loaded by index.html only. Every class here starts with "h2-",
   so nothing in style.css (shared with the other pages) is changed. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The old top block is hidden: its two links now live in the new header (Học viên / Giáo viên). */
#homeHero { display: none !important; }
/* The small logout dot would sit on the new logo: it moves to the bottom-left corner. */
.logout-icon { top: auto; bottom: 16px; left: 16px; }

.h2 {
  --h2-ink: #0f172a;
  --h2-body: #334155;
  --h2-muted: #475569;
  --h2-line: #e3e8f0;
  --h2-blue: #2f6fe4;
  --h2-blue-d: #1d5fc2;
  --h2-navy: #1e3a8a;
  --h2-green: #15803d;
  --h2-orange: #c2410c;
  font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--h2-ink);
  text-align: left;
  width: 100%;
  justify-self: stretch;   /* body becomes a grid while the login box is open */
}
.h2 *, .h2 *::before, .h2 *::after { box-sizing: border-box; }
.h2 a:focus-visible, .h2 button:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.h2-wrap { max-width: 1180px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---------- buttons ---------- */
.h2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border: 1.5px solid transparent; border-radius: 12px;
  font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}
.h2-btn:active { transform: translateY(1px); }
.h2-btn--primary { background: var(--h2-blue); color: #fff; }
.h2-btn--primary:hover { background: var(--h2-blue-d); }
.h2-btn--learner { background: #eef8f1; border-color: #bbe5c8; color: #14532d; }
.h2-btn--learner:hover { background: #dff3e6; }
.h2-btn--teacher { background: #fff4eb; border-color: #fbd3b3; color: #7c2d12; }
.h2-btn--teacher:hover { background: #ffe8d6; }
.h2-btn--lg { min-height: 60px; padding: 0 34px; border-radius: 16px; font-size: 19px; font-weight: 800; }

/* ---------- header ---------- */
.h2-header { background: #fff; border-bottom: 1px solid var(--h2-line); }
.h2-header .h2-wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 16px; padding-top: 14px; padding-bottom: 14px;
}
.h2-logo {
  font-family: 'Sora', 'Be Vietnam Pro', system-ui, sans-serif;
  font-size: 28px; font-weight: 800; letter-spacing: .2px; line-height: 1.2; text-decoration: none;
  background-image: linear-gradient(90deg, #5b8dff, #22d3ee, #10b981);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 15px; font-weight: 600; }
.h2-nav a { color: var(--h2-body); text-decoration: none; padding: 10px 0; }
.h2-nav a:hover { color: var(--h2-blue-d); }
.h2-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- hero ---------- */
.h2-hero .h2-wrap { padding-top: 56px; padding-bottom: 56px; }
.h2-hero__top { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.h2-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid #dce4f2;
  font-size: 15px; line-height: 1.4; color: var(--h2-body);
}
.h2-pill::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--h2-blue); }
.h2-h1 {
  margin: 0; max-width: 900px;
  font-size: clamp(34px, 5.2vw, 64px); line-height: 1.08; font-weight: 800; letter-spacing: -1.5px;
}
.h2-h1 em { font-style: normal; color: var(--h2-blue); white-space: nowrap; }
.h2-lead { margin: 0; max-width: 640px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--h2-muted); }
.h2-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 8px; }
.h2-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.h2-facts li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; background: #fff; border: 1px solid #dce4f2;
  font-size: 15px; font-weight: 600; color: var(--h2-body);
}
.h2-facts i { color: var(--h2-green); font-size: 13px; }

/* ---------- app demo (a drawn picture of the learner apps) ---------- */
.h2-demo { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 20px; padding-top: 48px; }
.h2-demo__side { flex: 1 1 220px; max-width: 250px; display: flex; flex-direction: column; gap: 20px; }
.h2-demo__side--l { margin-top: 72px; }
.h2-demo__side--r { margin-top: 24px; }
.h2-demo__main { flex: 2 1 460px; max-width: 620px; min-width: 0; }
.h2-panel {
  background: #fff; border: 1px solid var(--h2-line); border-radius: 20px; padding: 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}
.h2-panel p { margin: 0; }
.h2-panel__title { font-size: 15px; font-weight: 800; padding-bottom: 12px; }
.h2-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h2-row small { font-size: 13px; font-weight: 400; color: var(--h2-muted); }

.h2-apps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; color: var(--h2-body); }
.h2-apps li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border-radius: 12px; }
.h2-apps li i { width: 20px; text-align: center; }
.h2-apps li.is-on { background: #eff5ff; color: var(--h2-blue-d); }

.h2-streak { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; color: #9a3412; }
.h2-days { display: flex; gap: 6px; margin: 12px 0; }
.h2-days span { flex: 1; height: 28px; border-radius: 8px; background: #e2e8f0; }
.h2-days span.is-on { background: var(--h2-green); }
.h2-note { font-size: 13px; color: var(--h2-muted); }

.h2-win { background: #fff; border: 1px solid var(--h2-line); border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .12); }
.h2-win__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--h2-line); font-size: 14px; color: var(--h2-muted); }
.h2-chip { padding: 4px 10px; border-radius: 999px; background: #eef8f1; color: #14532d; font-size: 13px; font-weight: 700; }
.h2-win__body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.h2-win__title { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; line-height: 1.3; }
.h2-win__meta { margin: 6px 0 0; font-size: 14px; color: var(--h2-muted); }
.h2-win__video {
  aspect-ratio: 16 / 9; border-radius: 16px; background: var(--h2-navy); color: #dbeafe; font-size: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
}
.h2-play { width: 64px; height: 64px; border-radius: 50%; background: #fff; color: var(--h2-navy); display: flex; align-items: center; justify-content: center; font-size: 22px; padding-left: 4px; }
.h2-play--sm { flex: none; width: 44px; height: 44px; background: var(--h2-blue); color: #fff; font-size: 15px; padding-left: 3px; }
.h2-tabs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; font-weight: 700; }
.h2-tabs span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #f1f5f9; color: var(--h2-body); }
.h2-tabs span.is-on { background: var(--h2-ink); color: #fff; }

.h2-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.h2-todo li { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.h2-todo b { display: block; font-size: 14px; font-weight: 700; }
.h2-todo small { display: block; font-size: 13px; color: var(--h2-muted); }
.h2-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--h2-blue); display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.h2-todo li.is-done .h2-tick { background: var(--h2-green); border-color: var(--h2-green); }
.h2-todo li.is-next small { color: var(--h2-blue-d); font-weight: 600; }

.h2-voice { display: flex; align-items: center; gap: 10px; }
.h2-wave { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; gap: 3px; overflow: hidden; }
.h2-wave span { flex: none; width: 4px; height: var(--h, 20px); border-radius: 2px; background: #94a3b8; }
.h2-wave span.is-on { background: var(--h2-blue); }
.h2-score { display: flex; align-items: center; justify-content: space-between; margin-top: 14px !important; padding: 10px 12px; border-radius: 12px; background: #eff5ff; font-size: 14px; }
.h2-score b { font-size: 18px; color: var(--h2-navy); }

/* ---------- narrow screens ---------- */
@media (max-width: 1100px) {
  .h2-nav { order: 3; width: 100%; }
}
@media (max-width: 900px) {
  .h2-demo__side { max-width: none; margin-top: 0; flex-direction: row; flex-wrap: wrap; flex-basis: 100%; }
  .h2-demo__side > .h2-panel { flex: 1 1 240px; }
  .h2-demo__main { order: -1; max-width: none; flex-basis: 100%; }
}
@media (max-width: 720px) {
  .h2-wrap { padding-left: 16px; padding-right: 16px; }
  .h2-header .h2-wrap { justify-content: center; }
  .h2-nav { order: 3; width: 100%; justify-content: center; }
  .h2-hero .h2-wrap { padding-top: 32px; padding-bottom: 40px; }
  .h2-h1 { letter-spacing: -.8px; }
  .h2-pill { font-size: 14px; text-align: left; }
  .h2-btn--lg { min-height: 56px; padding: 0 24px; font-size: 17px; width: 100%; }
  .h2-cta-row { width: 100%; }
  .h2-demo { padding-top: 32px; gap: 16px; }
  .h2-win__bar { padding: 12px 16px; }
  .h2-win__body { padding: 16px; }
}
@media (max-width: 520px) {
  .h2-hide-sm { display: none; }
  .h2-logo { font-size: 24px; }
}
/* === tansinh home2 F1 END === */
/* === tansinh home2 F3 BEGIN: logo, brand colours, apps board, two blocks === */
/* The colours now come from the logo: red #EF252A, yellow #FCB61A, blue #0171CE.
   Red is for the one main action (học thử). Yellow is the highlight. Blue is for links and small accents.
   The slanted shapes with a small tail are the logo's speech bubbles. */
.h2 {
  --h2-blue: #0171ce;
  --h2-blue-d: #015ba7;
  --h2-navy: #0b3566;
  --h2-red: #e11d23;        /* the logo red, one step deeper: white text on it is easy to read */
  --h2-red-d: #c1151b;
  --h2-red-logo: #ef252a;
  --h2-yellow: #fcb61a;
  --h2-yellow-soft: #fff3d1;
  --h2-tilt: -4deg;
}

/* ---------- the logo replaces the word in the header ---------- */
.h2-logo {
  flex: none; display: block; width: 90px; height: 60px;
  background: url("./tansinh-logo.svg?v=1") center / contain no-repeat;
  -webkit-background-clip: border-box; background-clip: border-box;
  font-size: 0; line-height: 0; letter-spacing: 0; color: transparent;
}
.h2-header .h2-wrap { padding-top: 6px; padding-bottom: 6px; }

/* ---------- the main action is red, like the logo ---------- */
.h2-btn--primary { background: var(--h2-red); }
.h2-btn--primary:hover { background: var(--h2-red-d); }

/* ---------- the headline's second line sits on the logo's yellow speech tag ---------- */
.h2-h1 em {
  display: inline-block; position: relative; z-index: 0;
  margin-top: .12em; padding: 0 .24em .08em;
  color: var(--h2-blue-d);
  transform: skewY(var(--h2-tilt));
}
.h2-h1 em::before {
  content: ""; position: absolute; z-index: -1; top: .1em; right: 0; bottom: 0; left: 0;
  background: var(--h2-yellow);
}
.h2-h1 em::after {
  content: ""; position: absolute; z-index: -1; right: .7em; top: calc(100% - 1px);
  width: .42em; height: .36em; background: var(--h2-yellow);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- sections ---------- */
.h2-sec .h2-wrap { padding-top: 64px; padding-bottom: 64px; }
.h2-sec--duo .h2-wrap { padding-top: 24px; padding-bottom: 56px; }
.h2-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.h2-h2 { margin: 0; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.8px; text-wrap: balance; }
.h2-sub { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--h2-muted); }

/* ---------- the apps board: one panel, six apps ---------- */
.h2-board {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--h2-line); border: 1px solid var(--h2-line); border-radius: 24px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06);
}
.h2-board li { display: flex; align-items: flex-start; gap: 16px; padding: 28px 24px; background: #fff; }
.h2-ico {
  flex: none; width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff;
}
.h2-ico--blue { background: var(--h2-blue); }
.h2-ico--red { background: var(--h2-red-logo); }
.h2-ico--yellow { background: var(--h2-yellow); color: var(--h2-ink); }
.h2-board__txt { min-width: 0; }
.h2-board__txt b { display: block; font-size: 20px; font-weight: 800; line-height: 1.3; }
.h2-board__txt span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--h2-muted); }

/* ---------- a block: a drawn scene on one side, words on the other ---------- */
.h2-duo { display: flex; flex-wrap: wrap; align-items: center; gap: 40px 56px; }
.h2-duo--flip { flex-wrap: wrap-reverse; }
.h2-duo__txt { flex: 1 1 380px; min-width: 0; }
.h2-duo__txt .h2-h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -1px; }
.h2-duo__txt .h2-sub { margin-top: 16px; }

/* the small yellow speech tag above a block's headline */
.h2-tag {
  position: relative; display: inline-block; margin: 0 0 22px; padding: 6px 14px;
  background: var(--h2-yellow); color: var(--h2-ink); font-size: 15px; font-weight: 700; line-height: 1.4;
  transform: skewY(var(--h2-tilt));
}
.h2-tag::after {
  content: ""; position: absolute; left: 14px; top: calc(100% - 1px); width: 12px; height: 10px;
  background: var(--h2-yellow); clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.h2-scene { flex: 1 1 420px; min-width: 0; max-width: 620px; position: relative; height: 420px; }
.h2-scene p { margin: 0; }
/* the big slanted speech bubble behind the cards: upright sides, slanted top and bottom, one tail */
.h2-shape {
  position: absolute; top: 0; bottom: 0; width: 64%;
  clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 100px), 34% calc(100% - 60px), 34% 100%, 14% calc(100% - 48px), 0 calc(100% - 40px));
}
.h2-shape--yellow { left: 0; background: var(--h2-yellow); }
.h2-shape--blue {
  right: 0; background: var(--h2-blue);
  clip-path: polygon(0 60px, 100% 0, 100% calc(100% - 100px), 86% calc(100% - 92px), 66% 100%, 66% calc(100% - 80px), 0 calc(100% - 40px));
}

.h2-scard {
  position: absolute; top: 44px; width: 58%;
  display: flex; flex-direction: column; gap: 12px; padding: 22px;
  background: #fff; border: 1px solid var(--h2-line); border-radius: 20px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .14);
}
.h2-scene--speak .h2-scard { right: 0; }
.h2-scene--parent .h2-scard { left: 0; width: 54%; gap: 0; }
.h2-scard__meta { font-size: 13px; color: var(--h2-muted); }
.h2-scard__title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.h2-scard__line { font-size: 16px; line-height: 1.75; }
.h2-ok, .h2-fix { padding: 2px 6px; border-radius: 6px; font-weight: 700; }
.h2-ok { background: #d7f2e1; }
.h2-fix { background: #ffe3cc; text-decoration: underline; }
.h2-scard__note { padding: 12px; border-radius: 12px; background: #f6f8fc; font-size: 14px; line-height: 1.5; color: var(--h2-body); }
.h2-scard__note b { color: var(--h2-ink); }
.h2-scene--parent .h2-scard__title { margin: 4px 0 12px; }
.h2-scene--parent .h2-scard__note { margin-top: 12px; }
.h2-sample { padding: 2px 8px; border-radius: 999px; background: #f1f5f9; color: var(--h2-body); font-size: 12px; font-weight: 700; }
.h2-kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--h2-line); font-size: 15px; }
.h2-kv b { font-weight: 700; }
.h2-up { color: var(--h2-green); }

/* the recording, drawn on the yellow bubble */
.h2-rec { position: absolute; left: 7%; top: 112px; width: 30%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.h2-rec__btn {
  width: 76px; height: 76px; border-radius: 50%; background: #fff; color: var(--h2-red-logo); font-size: 30px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(255, 255, 255, .4);
}
.h2-bars { display: flex; align-items: center; gap: 4px; height: 56px; margin-top: 6px; }
.h2-bars span { flex: none; width: 5px; height: var(--h, 20px); border-radius: 3px; background: var(--h2-ink); }
.h2-rec__time { font-size: 14px; font-weight: 700; color: var(--h2-ink); white-space: nowrap; }

.h2-scorechip {
  position: absolute; left: 36%; bottom: 20px; display: inline-flex; align-items: baseline; gap: 10px;
  padding: 12px 18px; border-radius: 14px; background: var(--h2-navy); color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 12px 28px rgba(11, 53, 102, .35);
}
.h2-scorechip b { font-size: 18px; font-weight: 800; }

/* the reminder a parent gets, drawn on the blue bubble */
.h2-msg {
  position: absolute; right: 3%; top: 132px; width: 39%;
  padding: 14px 16px; border-radius: 16px 16px 4px 16px; background: #fff; box-shadow: 0 12px 28px rgba(11, 53, 102, .3);
  font-size: 15px; line-height: 1.45; color: var(--h2-ink);
}
.h2-msg__from { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; font-size: 13px; font-weight: 700; color: var(--h2-blue-d); }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .h2-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .h2-sec .h2-wrap { padding-top: 40px; padding-bottom: 40px; }
  .h2-sec--duo .h2-wrap { padding-top: 8px; padding-bottom: 40px; }
  .h2-head { margin-bottom: 28px; }
  .h2-sub { font-size: 17px; }
  .h2-board { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .h2-board li { align-items: center; padding: 16px; }
  .h2-ico { width: 48px; height: 48px; border-radius: 14px; font-size: 19px; }
  .h2-board__txt b { font-size: 18px; }
  .h2-board__txt span { margin-top: 2px; font-size: 15px; }
  .h2-duo { gap: 28px; }
  /* on a phone the card is in the flow, so the scene grows with its words; the chip and the reminder sit under it */
  .h2-scene { flex-basis: 100%; height: auto; min-height: 380px; padding: 40px 0 72px; }
  .h2-scard { position: relative; top: auto; width: 66%; margin-left: auto; padding: 18px; }
  .h2-scene--parent { padding: 30px 0 150px; }
  .h2-scene--parent .h2-scard { width: 72%; margin-left: 0; }
  .h2-rec { left: 2%; width: 30%; top: 104px; }
  .h2-rec__btn { width: 64px; height: 64px; font-size: 26px; }
  .h2-rec__time { white-space: normal; text-align: center; }
  .h2-bars span:nth-child(n+8) { display: none; }
  .h2-scorechip { left: 28%; bottom: 14px; white-space: nowrap; }
  .h2-msg { top: auto; bottom: 30px; right: 0; width: 64%; }
}
@media (max-width: 520px) {
  .h2-logo { width: 72px; height: 48px; }
}
/* === tansinh home2 F3 END === */
/* === tansinh home2 F4 BEGIN: programmes, quick answers, company, trial banner, footer === */

/* words for screen readers only (a link that opens a new tab says so) */
.h2-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- programmes and tuition: a white band with two big doors ---------- */
.h2-band { background: #fff; border-top: 1px solid var(--h2-line); border-bottom: 1px solid var(--h2-line); }
.h2-band .h2-wrap { padding-top: 64px; padding-bottom: 64px; }
.h2-band .h2-h2 { text-align: center; }
.h2-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.h2-door {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  min-height: 250px; padding: 32px; border-radius: 24px; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.h2-door:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(15, 23, 42, .18); }
.h2-door--blue { background: var(--h2-blue); color: #fff; }
.h2-door--yellow { background: var(--h2-yellow); color: var(--h2-ink); }
.h2-door__art { position: absolute; right: 16px; bottom: 0; font-size: 140px; line-height: 1; opacity: .16; transform: rotate(-12deg); pointer-events: none; }
.h2-door__title { position: relative; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.2; letter-spacing: -.4px; }
.h2-door__desc { position: relative; max-width: 340px; font-size: 17px; line-height: 1.55; }
.h2-door__go {
  position: relative; margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 16px; font-weight: 700;
}
.h2-door__go i { font-size: 13px; }
.h2-door--blue .h2-door__go { background: #fff; color: var(--h2-blue-d); }
.h2-door--yellow .h2-door__go { background: var(--h2-ink); color: #fff; }

.h2-readrow {
  display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 20px 24px;
  border: 1px solid var(--h2-line); border-radius: 20px; background: #f6f8fc; color: var(--h2-ink); text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.h2-readrow:hover { border-color: #b6c4d8; background: #eef3fa; }
.h2-readrow__txt { flex: 1 1 auto; min-width: 0; }
.h2-readrow__txt b { display: block; font-size: 19px; font-weight: 800; line-height: 1.3; }
.h2-readrow__txt span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--h2-muted); }
.h2-readrow__go { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--h2-blue-d); white-space: nowrap; }
.h2-readrow__go i { font-size: 13px; }

/* ---------- quick answers + company details ---------- */
.h2-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; }
.h2-faq { flex: 1 1 520px; min-width: 0; }
.h2-qa { margin-top: 24px; padding: 4px 24px; background: #fff; border: 1px solid var(--h2-line); border-radius: 24px; }
.h2-qa > div { padding: 20px 0; border-top: 1px solid var(--h2-line); }
.h2-qa > div:first-child { border-top: 0; }
.h2-qa h3 { margin: 0 0 6px; font-size: 18px; font-weight: 800; line-height: 1.35; }
.h2-qa p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--h2-body); }
.h2-company { flex: 1 1 380px; min-width: 0; padding: 28px; background: #fff; border: 1px solid var(--h2-line); border-radius: 24px; }
.h2-company__title { margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.25; }
.h2-info { list-style: none; margin: 0; padding: 0; }
.h2-info li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--h2-line); }
.h2-info li:first-child { border-top: 0; }
.h2-info__ico {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e3f0fd; color: var(--h2-blue-d);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.h2-info__txt { min-width: 0; }
.h2-info__txt small { display: block; font-size: 13px; font-weight: 700; color: var(--h2-muted); }
.h2-info__txt b { display: block; font-size: 17px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; }
.h2-info a { color: var(--h2-blue-d); text-decoration: none; }
.h2-info a:hover { text-decoration: underline; }
.h2-company__more { margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--h2-yellow-soft); font-size: 15px; line-height: 1.55; color: var(--h2-ink); }

/* ---------- the closing banner: the logo's red speech bubble, with its yellow tag underneath ---------- */
.h2-sec--trial .h2-wrap { padding-top: 16px; padding-bottom: 64px; }
.h2-trial { position: relative; --h2-rise: 64px; --h2-tail: 56px; }
.h2-trial::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--h2-red);
  clip-path: polygon(0 var(--h2-rise), 100% 0, 100% calc(100% - var(--h2-tail) - var(--h2-rise)),
    22% calc(100% - var(--h2-tail) - var(--h2-rise) * .22), 22% 100%,
    9% calc(100% - var(--h2-tail) - var(--h2-rise) * .09), 0 calc(100% - var(--h2-tail)));
}
.h2-trial__in {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: #fff;
  padding: calc(var(--h2-rise) + 36px) 32px calc(var(--h2-tail) + var(--h2-rise) + 44px);
}
.h2-trial .h2-h2 { font-size: clamp(30px, 3.8vw, 46px); letter-spacing: -.8px; }
.h2-trial__lead { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.6; }
.h2-trial__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.h2-btn--white { background: #fff; color: var(--h2-red-d); }
.h2-btn--white:hover { background: #fff1f1; }
.h2-btn--line { background: transparent; border-color: rgba(255, 255, 255, .75); color: #fff; }
.h2-btn--line:hover { background: rgba(255, 255, 255, .14); }
.h2-trial__btns .h2-btn--line { padding: 0 24px; font-size: 17px; font-weight: 700; }
.h2-trial a:focus-visible { outline-color: #fff; }
.h2-trial__note { margin: 4px 0 0; font-size: 15px; line-height: 1.6; }
.h2-trial__note a { color: #fff; font-weight: 700; text-underline-offset: 3px; }
.h2-trial__tag {
  position: absolute; right: 5%; bottom: 50px; padding: 9px 22px 10px;
  background: var(--h2-yellow); color: var(--h2-blue-d); font-size: 22px; font-weight: 800; line-height: 1.3; white-space: nowrap;
  transform: skewY(-3.2deg);
}
.h2-trial__tag::after {
  content: ""; position: absolute; right: 18px; top: calc(100% - 1px); width: 20px; height: 16px;
  background: var(--h2-yellow); clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* ---------- footer ---------- */
.h2-footer { background: #082548; color: #d5e2f2; }
.h2-footer .h2-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; padding-top: 44px; padding-bottom: 60px; }
.h2-footer p { margin: 0; font-size: 15px; line-height: 1.7; }
.h2-footer a { color: #fff; }
.h2-footer__brand { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 28px; }
.h2-footer__logo { flex: none; display: block; width: 126px; height: 84px; }
.h2-footer__work { flex: 0 1 auto; display: flex; flex-direction: column; gap: 12px; }
.h2-footer__label { font-weight: 700; color: #fff; }
.h2-footer__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.h2-btn--learner-solid { background: #15803d; color: #fff; }
.h2-btn--learner-solid:hover { background: #126c33; }
.h2-btn--teacher-solid { background: #c2410c; color: #fff; }
.h2-btn--teacher-solid:hover { background: #a6370a; }
.h2-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px !important; }
.h2-footer__links a { display: inline-block; padding: 8px 0; color: #d5e2f2; text-underline-offset: 3px; }
.h2-footer__links a:hover { color: #fff; }

/* ---------- the phone popup of "Đặt lịch học thử": the old popup of script.js, in the new clothes ---------- */
#trialModal .ts-modal__box { margin-left: auto; margin-right: auto; width: calc(100% - 32px); border-radius: 24px; padding: 36px 24px 28px; font-family: 'Be Vietnam Pro', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
#trialModal .ts-modal__icon { background: #e11d23; box-shadow: none; }
#trialModal h3 { margin: 0 0 8px; font-size: 24px; font-weight: 800; line-height: 1.25; }
#trialModal p { margin: 0; font-size: 16px; line-height: 1.6; color: #334155; }
#trialModal .ts-modal__phones { gap: 10px; margin-top: 20px; }
#trialModal .ts-call {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 14px;
  background: #e11d23; box-shadow: none; font-size: 17px;
}
#trialModal .ts-call:hover { background: #c1151b; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .h2-door, .h2-readrow { transition: none; }
  .h2-door:hover { transform: none; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 720px) {
  .h2-band .h2-wrap { padding-top: 40px; padding-bottom: 40px; }
  .h2-doors { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 24px; }
  .h2-door { min-height: 210px; padding: 24px; border-radius: 20px; }
  .h2-door__art { font-size: 120px; }
  .h2-readrow { flex-wrap: wrap; padding: 16px; gap: 12px 14px; }
  .h2-readrow__txt { flex-basis: calc(100% - 70px); }
  .h2-readrow__go { margin-left: 62px; }
  .h2-split { gap: 28px; }
  .h2-qa { padding: 2px 18px; border-radius: 20px; }
  .h2-company { padding: 20px; border-radius: 20px; }
  .h2-sec--trial .h2-wrap { padding-top: 8px; padding-bottom: 48px; }
  .h2-trial { --h2-rise: 26px; --h2-tail: 40px; }
  .h2-trial__in { padding: calc(var(--h2-rise) + 30px) 20px calc(var(--h2-tail) + var(--h2-rise) + 64px); }
  .h2-trial__btns { width: 100%; }
  .h2-trial__btns .h2-btn--line { font-size: 16px; }
  .h2-trial__tag { right: 6%; bottom: 16px; padding: 7px 16px 8px; font-size: 17px; transform: skewY(-4deg); }
  .h2-trial__tag::after { right: 14px; width: 16px; height: 13px; }
  .h2-footer .h2-wrap { padding-top: 36px; padding-bottom: 64px; }
}
/* === tansinh home2 F4 END === */
/* === tansinh home2 F5 BEGIN: one red button, three facts, how it works, the teacher-led blocks === */
/* F5 (25 Nov 2026). Each thing is said once on the first screen, and the pictures show a teacher,
   not a machine score. Only new classes: nothing above this line was changed.
   Undo: homepage-home2-f5.py undo. */

/* ---------- hero: three facts in one bar (they replace the paragraph and the four chips) ---------- */
.h2-trio {
  list-style: none; margin: 4px 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--h2-line); border: 1px solid var(--h2-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05); text-align: left;
}
.h2-trio li { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; }
.h2-trio__ico {
  flex: none; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.h2-trio__ico--blue { background: #e3f0fd; color: var(--h2-blue-d); }
.h2-trio__ico--yellow { background: var(--h2-yellow-soft); color: #8a5a00; }
.h2-trio__ico--red { background: #fde8e8; color: var(--h2-red-d); }
.h2-trio b { display: block; font-size: 16px; font-weight: 800; line-height: 1.3; text-wrap: balance; }
.h2-trio small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--h2-muted); }

/* ---------- how online learning works: a title above the app picture, three steps under it ---------- */
.h2-how { margin: 76px auto 0; }
.h2-how + .h2-demo { padding-top: 36px; }
.h2-heard {
  display: flex; align-items: center; gap: 10px; margin-top: 14px !important; padding: 10px 12px;
  border-radius: 12px; background: #eef8f1; color: #14532d;
}
.h2-heard i { font-size: 16px; color: var(--h2-green); }
.h2-heard b { display: block; font-size: 14px; font-weight: 700; }
.h2-heard small { display: block; font-size: 13px; }
.h2-steps {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px;
}
.h2-steps li { display: flex; align-items: flex-start; gap: 14px; }
.h2-steps__n {
  flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--h2-blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 800;
}
.h2-steps li:nth-child(2) .h2-steps__n { background: var(--h2-red-logo); }
.h2-steps li:nth-child(3) .h2-steps__n { background: var(--h2-yellow); color: var(--h2-ink); }
.h2-steps__txt { min-width: 0; }
.h2-steps__txt b { display: block; font-size: 19px; font-weight: 800; line-height: 1.3; }
.h2-steps__txt > span { display: block; margin-top: 4px; font-size: 16px; line-height: 1.55; color: var(--h2-muted); }

/* ---------- three promises: the same board as before, one row, the icon above the words ---------- */
.h2-board--trio li { flex-direction: column; gap: 18px; padding: 30px 28px 32px; }
.h2-board--trio .h2-board__txt b { text-wrap: balance; }
.h2-board--trio .h2-board__txt span { margin-top: 6px; }
/* the last words of a two-line headline stay together (wide screens only) */
@media (min-width: 721px) { .h2-nw { white-space: nowrap; } }

/* ---------- speaking: a lesson window with a teacher and a student, on the yellow speech bubble ---------- */
.h2-scene--tutor { height: auto; display: flex; flex-direction: column; align-items: flex-end; padding: 56px 0 88px 8%; }
.h2-call {
  position: relative; width: 100%; background: #fff; border: 1px solid var(--h2-line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 20px 48px rgba(15, 23, 42, .14);
}
.h2-call__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 16px;
  border-bottom: 1px solid var(--h2-line); font-size: 14px; font-weight: 700; color: var(--h2-ink);
}
.h2-call__bar > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.h2-call__bar i { color: var(--h2-blue); }
.h2-live {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: #fde8e8; color: var(--h2-red-d); font-size: 12px; font-weight: 700; white-space: nowrap;
}
.h2-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--h2-red-logo); }
.h2-call__stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.h2-tile { position: relative; aspect-ratio: 1 / 1.04; border-radius: 14px; overflow: hidden; }
.h2-tile svg { display: block; width: 100%; height: 100%; }
.h2-tile__name {
  position: absolute; left: 8px; bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5;
}
.h2-tile__say {
  position: absolute; top: 8px; right: 8px; max-width: 62%; padding: 5px 10px; border-radius: 12px 12px 4px 12px;
  background: #fff; color: var(--h2-ink); font-size: 13px; font-weight: 700; line-height: 1.45;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .14);
}
.h2-tile__say--teacher { right: auto; left: 8px; border-radius: 12px 12px 12px 4px; background: var(--h2-yellow); }
.h2-tile__say .h2-fix { padding: 1px 5px; }
.h2-scene .h2-fixnote {
  position: relative; z-index: 2; width: min(80%, 380px); margin: -20px 4% 0 0; padding: 12px 14px;
  border-radius: 14px; background: #fff; border: 1px solid var(--h2-line); box-shadow: 0 12px 28px rgba(15, 23, 42, .14);
  font-size: 14px; line-height: 1.5; color: var(--h2-body);
}
.h2-fixnote b { color: var(--h2-ink); }
.h2-scene .h2-fixchip {
  position: absolute; left: 4%; bottom: 30px; z-index: 2; display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 16px; border-radius: 14px; background: var(--h2-navy); color: #fff; font-size: 15px; font-weight: 700;
  box-shadow: 0 12px 28px rgba(11, 53, 102, .35); white-space: nowrap;
}
.h2-fixchip i { font-size: 14px; color: var(--h2-yellow); }

/* ---------- parents: the weekly call, in words and as a second card on the blue bubble ---------- */
.h2-weekcall {
  display: flex; align-items: flex-start; gap: 14px; max-width: 560px; margin: 22px 0 0; padding: 16px 18px;
  border-radius: 16px; background: var(--h2-yellow-soft); font-size: 17px; line-height: 1.55; color: var(--h2-ink);
}
.h2-weekcall__ico {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--h2-red-logo); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.h2-weekcall b { font-weight: 800; }
.h2-msg--call { top: 240px; border-radius: 16px 4px 16px 16px; }
.h2-msg--call .h2-msg__from { color: var(--h2-red-d); }

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .h2-trio li { flex-direction: column; align-items: flex-start; gap: 10px; }
  .h2-board--trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .h2-board--trio li { padding: 24px 20px 26px; }
  .h2-board--trio .h2-board__txt b { font-size: 18px; }
}
@media (max-width: 720px) {
  .h2-trio { grid-template-columns: minmax(0, 1fr); border-radius: 16px; }
  .h2-trio li { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; }
  .h2-trio__ico { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
  .h2-trio b { font-size: 15px; }
  .h2-trio small { font-size: 13px; }
  .h2-how { margin-top: 48px; }
  .h2-how + .h2-demo { padding-top: 28px; }
  .h2-steps { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 28px; }
  .h2-steps__txt b { font-size: 18px; }
  .h2-board--trio { grid-template-columns: minmax(0, 1fr); }
  .h2-board--trio li { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px 16px; }
  .h2-scene--tutor { min-height: 0; padding: 36px 0 78px 5%; }
  .h2-call__bar { padding: 9px 12px; font-size: 13px; }
  .h2-call__stage { gap: 8px; padding: 8px; }
  .h2-tile { border-radius: 12px; }
  .h2-tile__say { top: 6px; right: 6px; padding: 3px 7px; font-size: 11.5px; }
  .h2-tile__say--teacher { right: auto; left: 6px; }
  .h2-tile__name { left: 6px; bottom: 6px; padding: 2px 8px; font-size: 11px; }
  .h2-scene .h2-fixnote { width: 86%; margin-top: -14px; }
  .h2-scene .h2-fixchip { bottom: 20px; font-size: 14px; padding: 10px 14px; }
  .h2-weekcall { margin-top: 18px; padding: 14px; font-size: 16px; }
  .h2-scene--parent { padding-bottom: 250px; }
  .h2-msg { bottom: 134px; }
  .h2-msg--call { top: auto; bottom: 30px; }
}
/* === tansinh home2 F5 END === */
/* === tansinh home2 F6 BEGIN: the contact box in the red banner: call here, Zalo, phone === */
/* F6 (25 Nov 2026). A white box inside the red speech bubble. Left: the call button that works on
   this page (the logic of ringts.tansinh.info). Right: Zalo and the two phone numbers.
   Undo: homepage-home2-f6.py undo. */
.h2-reach {
  width: 100%; max-width: 900px; margin-top: 12px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  background: #fff; color: var(--h2-ink); border-radius: 24px; overflow: hidden; text-align: left;
  box-shadow: 0 24px 60px rgba(90, 8, 12, .35);
}
.h2-reach [hidden] { display: none !important; }
.h2-reach p { margin: 0; }
.h2-reach__call { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.h2-reach__other { display: flex; flex-direction: column; gap: 10px; padding: 28px; background: #f6f8fc; border-left: 1px solid var(--h2-line); }
.h2-reach__title { display: flex; align-items: center; gap: 12px; font-size: 21px; font-weight: 800; line-height: 1.25; }
.h2-reach__title--sm { padding-bottom: 4px; font-size: 16px; font-weight: 700; color: var(--h2-muted); }
.h2-reach__ico {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--h2-red-logo); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.h2-reach__notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.5; color: var(--h2-body); }
.h2-reach__notes li { display: flex; align-items: flex-start; gap: 10px; }
.h2-reach__notes i { flex: none; margin-top: 5px; font-size: 12px; color: var(--h2-green); }

/* a call in progress */
.h2-reach__live { padding: 2px 0; text-align: center; }
.h2-reach__who { font-size: 15px; color: var(--h2-muted); }
.h2-reach__timer { margin: 4px 0 12px !important; font-size: 42px; font-weight: 800; line-height: 1.1; letter-spacing: 1px; font-variant-numeric: tabular-nums; color: var(--h2-navy); }
.h2-reach__mute {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--h2-line); border-radius: 999px; background: #fff; color: var(--h2-ink);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.h2-reach__mute.is-on { background: var(--h2-yellow-soft); border-color: var(--h2-yellow); }

.h2-reach__verify { display: flex; justify-content: center; min-height: 66px; }
.h2-reach__status { min-height: 23px; font-size: 15px; line-height: 1.5; color: var(--h2-muted); }
.h2-reach__status:empty { display: none; }
.h2-reach__status.is-err { color: var(--h2-red-d); font-weight: 600; }
.h2-reach__status.is-ok { color: var(--h2-green); font-weight: 600; }
.h2-reach__status.is-warn { color: #8a5a00; font-weight: 600; }
.h2-reach__btn { width: 100%; margin-top: auto; border: 0; background: var(--h2-red); color: #fff; font-family: inherit; }
.h2-reach__btn:hover:not(:disabled) { background: var(--h2-red-d); }
.h2-reach__btn:disabled { background: #c5cdd8; cursor: not-allowed; }
.h2-reach__btn.is-hang, .h2-reach__btn.is-hang:hover:not(:disabled) { background: var(--h2-ink); }
.h2-reach__fine { font-size: 14px; line-height: 1.55; color: var(--h2-muted); }
.h2-reach__fine a { color: var(--h2-blue-d); font-weight: 700; text-underline-offset: 3px; }

/* the other ways: one row each */
.h2-way {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  border: 1px solid var(--h2-line); border-radius: 16px; background: #fff; color: var(--h2-ink); text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.h2-way:hover { border-color: #b6c4d8; box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.h2-way__ico {
  flex: none; width: 40px; height: 40px; border-radius: 12px; background: #e3f0fd; color: var(--h2-blue-d);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.h2-way__ico--zalo { background: var(--h2-blue); color: #fff; }
.h2-way__txt { flex: 1 1 auto; min-width: 0; }
.h2-way__txt b { display: block; font-size: 18px; font-weight: 800; line-height: 1.3; }
.h2-way__txt small { display: block; font-size: 13px; line-height: 1.4; color: var(--h2-muted); }
.h2-way__go { flex: none; font-size: 13px; color: var(--h2-muted); }
.h2-trial .h2-reach a:focus-visible, .h2-trial .h2-reach button:focus-visible { outline-color: #93c5fd; }

@media (prefers-reduced-motion: reduce) { .h2-way { transition: none; } }
@media (max-width: 720px) {
  .h2-reach { grid-template-columns: minmax(0, 1fr); border-radius: 20px; }
  .h2-reach__call, .h2-reach__other { padding: 20px 16px; }
  .h2-reach__other { border-left: 0; border-top: 1px solid var(--h2-line); }
  .h2-reach__title { font-size: 19px; }
  .h2-reach__ico { width: 44px; height: 44px; font-size: 18px; }
  .h2-reach__timer { font-size: 36px; }
}
/* === tansinh home2 F6 END === */
/* === tansinh home2 F7 BEGIN: the message box in the contact box === */
/* F7 (25 Nov 2026). The white box of the red banner now has two equal halves: the call box (F6) and a
   small form. Zalo and the two phone numbers sit in a strip under both. Undo: homepage-home2-f7.py undo. */
.h2-reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.h2-reach__msg { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 28px; border-left: 1px solid var(--h2-line); }
.h2-reach__ico--blue { background: var(--h2-blue); }
.h2-fields { display: flex; flex-direction: column; gap: 12px; }
.h2-field label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--h2-ink); }
.h2-field label small { font-size: 13px; font-weight: 400; color: var(--h2-muted); }
.h2-field input, .h2-field textarea {
  display: block; width: 100%; min-height: 48px; margin: 0; padding: 11px 14px;
  border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; color: var(--h2-ink);
  font: inherit; font-size: 16px; line-height: 1.45;      /* 16px: an iPhone does not zoom in on focus */
}
.h2-field textarea { min-height: 92px; resize: vertical; }
.h2-field input::placeholder, .h2-field textarea::placeholder { color: #94a3b8; }
.h2-field input:focus-visible, .h2-field textarea:focus-visible { outline: 3px solid #93c5fd; outline-offset: 1px; border-color: var(--h2-blue); }
/* the trap: a field a person never sees. A program that fills it is answered "ok" and nothing is kept. */
.h2-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h2-reach__btn--blue { background: var(--h2-blue); }
.h2-reach__btn--blue:hover:not(:disabled) { background: var(--h2-blue-d); }
/* the other ways: one strip under both halves */
.h2-reach__ways {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  padding: 18px 28px 22px; background: #f6f8fc; border-top: 1px solid var(--h2-line);
}
.h2-reach__ways .h2-reach__title { grid-column: 1 / -1; padding-bottom: 0; }
@media (max-width: 720px) {
  .h2-reach { grid-template-columns: minmax(0, 1fr); }
  .h2-reach__msg { padding: 20px 16px; border-left: 0; border-top: 1px solid var(--h2-line); }
  .h2-reach__ways { grid-template-columns: minmax(0, 1fr); padding: 18px 16px 20px; }
}
/* === tansinh home2 F7 END === */
/* === tansinh home2 F8 BEGIN: the call half: "Gọi TANSINH", and a drawing of the teacher who answers === */
/* F8 (25 Nov 2026). The empty space between the lines and the call button is now a drawing of the
   teacher who picks up. It grows with the box, so the call button lines up with "Gửi lời nhắn".
   Undo: homepage-home2-f8.py undo. */
.h2-reach__info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.h2-callart {
  position: relative; flex: 1 1 auto; min-height: 150px; overflow: hidden;
  border-radius: 16px; background: #fff3d1;          /* the same colour as the drawing's own background */
}
.h2-callart svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: block; }
.h2-callart__say {
  position: absolute; top: 14px; left: 14px; max-width: 56%; padding: 8px 13px;
  border-radius: 14px 14px 4px 14px; background: #fff; color: var(--h2-ink);
  font-size: 15px; font-weight: 700; line-height: 1.4; box-shadow: 0 6px 16px rgba(120, 80, 0, .16);
}
/* during a call, the timer sits in the middle of the same space */
.h2-reach__live { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* on a tablet the line under "Gửi lời nhắn" takes two lines: both halves keep two lines there, so the buttons stay level */
@media (min-width: 721px) and (max-width: 1100px) {
  .h2-reach__mic, .h2-reach__msg > .h2-reach__fine { min-height: 3.1em; }
}
@media (max-width: 720px) {
  .h2-callart { flex: none; height: 150px; min-height: 0; }
  .h2-callart__say { font-size: 14px; max-width: 60%; }
}
/* === tansinh home2 F8 END === */
