/* =========================================================
   English Mastery: style.css
   Edit the colors, fonts and spacing in the :root block below.
   ========================================================= */

:root {
  /* Color */
  --navy: #0B1F44;
  --navy-deep: #081733;
  --royal: #2456E5;
  --royal-dark: #1A43BD;
  --royal-tint: #E8EEFD;
  --ink: #15233F;
  --muted: #525E77;
  --mist: #F3F5F9;
  --line: #DCE2EE;
  --white: #FFFFFF;
  --accent: #F2A93B;          /* warm accent: use as a fill, with navy text on top */
  --accent-strong: #E39A1E;
  --on-navy: #C5CFE3;
  --danger: #B42318;
  --success: #067647;

  /* Shape */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 68, .06), 0 6px 18px rgba(11, 31, 68, .06);
  --shadow-md: 0 18px 40px rgba(11, 31, 68, .14);

  /* Layout */
  --header-h: 72px;
  --container: 1160px;

  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: inherit;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.2; color: var(--navy); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
section[id] { scroll-margin-top: calc(var(--header-h) - 1px); }
[tabindex="-1"]:focus { outline: none; }

:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--accent); }

.icon {
  width: 1.4em; height: 1.4em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: .5rem; left: .5rem; z-index: 200;
  padding: .6rem 1rem; background: var(--navy); color: var(--white);
  border-radius: var(--r-sm); text-decoration: none; font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Type ---------- */
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; min-height: 46px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn-lg { padding: .9rem 1.85rem; min-height: 54px; font-size: 1.075rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-dark); box-shadow: 0 8px 20px rgba(36, 86, 229, .3); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--navy); }
.btn-accent:hover { background: #F7BC5C; box-shadow: 0 8px 22px rgba(242, 169, 59, .35); }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(11, 31, 68, .06); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.01em; }
.brand-mark { width: 34px; height: 34px; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; align-items: center; gap: 1.5rem; }
.site-nav a:not(.btn) {
  position: relative; display: inline-block; padding: .35rem 0;
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink);
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--royal); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav a:not(.btn):hover::after,
.site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active { color: var(--royal-dark); }

.nav-toggle {
  display: none; width: 46px; height: 46px; padding: 0;
  align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  color: var(--navy); cursor: pointer;
}
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-menu { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px rgba(11, 31, 68, .1);
    display: none;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.btn) { display: block; padding: .85rem 0; font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { display: none; }
  .nav-cta { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-tint { background: var(--mist); }
.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lead { margin-top: .9rem; }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 88% -10%, rgba(36, 86, 229, .45), transparent 60%),
    linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 55%, #123069 100%);
  color: var(--white);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4.5rem, 9vw, 7.5rem);
  overflow: hidden;
}
.hero h1 { color: var(--white); max-width: 14ch; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.hero-lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--on-navy); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.25rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2.5rem; padding-top: 1.75rem; border-top: 1px solid rgba(255, 255, 255, .16); }
.trust-list li { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; font-size: .98rem; }
.trust-list .icon { color: var(--accent); }

/* Lesson illustration */
.lesson { position: relative; margin: 0 auto 6rem; width: 100%; max-width: 470px; }
.lesson-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--r-lg); padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .35);
}
.lesson-head { display: flex; align-items: center; gap: .6rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.lesson-head .icon { color: var(--royal); }
.bubble { max-width: 88%; margin-top: .9rem; padding: .7rem 1rem .8rem; border-radius: 18px; line-height: 1.5; }
.bubble .who { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .1rem; }
.bubble.tutor { background: var(--royal-tint); border-bottom-left-radius: 5px; }
.bubble.student { margin-left: auto; background: var(--white); border: 1.5px solid var(--line); border-bottom-right-radius: 5px; }
.err { text-decoration: underline wavy var(--danger); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
mark.fix { background: rgba(242, 169, 59, .4); color: var(--navy); font-weight: 700; padding: 0 .3em; border-radius: 5px; }

.vocab-card {
  position: absolute; right: -.75rem; bottom: -5.75rem;
  display: flex; flex-direction: column; gap: .1rem;
  width: min(250px, 72%); padding: 1rem 1.15rem;
  background: var(--accent); color: var(--navy);
  border-radius: var(--r-md); box-shadow: var(--shadow-md);
  transform: rotate(-3deg); font-size: .92rem; line-height: 1.4;
}
.vocab-card strong { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.vocab-card .phon { font-weight: 600; opacity: .8; }

/* The one orchestrated moment: the conversation builds itself once on load */
.seq { opacity: 0; transform: translateY(10px); animation: seq-in .5s ease forwards; animation-delay: calc(var(--i) * .75s + .35s); }
@keyframes seq-in { to { opacity: 1; transform: none; } }
.vocab-card.seq { animation-name: seq-in-tilt; }
@keyframes seq-in-tilt { from { opacity: 0; transform: rotate(-3deg) translateY(10px); } to { opacity: 1; transform: rotate(-3deg); } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.tutor-frame { margin: 0; max-width: 420px; width: 100%; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4 / 5; background: var(--royal-tint); }
.tutor-frame svg, .tutor-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.about-copy .lead { margin-top: 1.1rem; }

.check-list { display: grid; gap: .65rem; }
.check-list li { display: flex; align-items: flex-start; gap: .65rem; }
.check-list .icon { width: 1.25em; height: 1.25em; margin-top: .3em; color: var(--royal); stroke-width: 2.4; }
.check-list.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1.5rem; margin-top: 1.75rem; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.25rem 0 0; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column-reverse; }
.stat dd { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy); line-height: 1.15; }
.stat dt { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Services ---------- */
.grid-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 1.25rem; }
.service {
  padding: 1.75rem; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.icon-tile { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 1.1rem; border-radius: 14px; background: var(--royal-tint); color: var(--royal); }
.icon-tile .icon { width: 26px; height: 26px; }
.service h3 { margin-bottom: .45rem; }
.service p { color: var(--muted); }

/* ---------- Why choose ---------- */
.why-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.why-intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.why-intro .lead { margin: 1rem 0 1.75rem; }
.why-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 2.5rem; }
.why-item { padding-top: 1.35rem; border-top: 2px solid var(--navy); }
.why-item .icon { width: 30px; height: 30px; margin-bottom: .75rem; color: var(--royal); }
.why-item h3 { margin-bottom: .4rem; }
.why-item p { color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.75rem 1.75rem; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--r-lg);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.plan:hover, .plan:focus-within { border-color: var(--royal); box-shadow: var(--shadow-md); }
.plan h3 { font-size: 1.35rem; }
.price { display: flex; align-items: flex-start; margin: .75rem 0 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); font-size: 3.5rem; font-weight: 800; line-height: 1; color: var(--navy); }
.price .cur { margin: .35rem .2rem 0 0; font-size: 1.6rem; font-weight: 700; }
.plan .check-list { flex: 1; align-content: start; margin-bottom: 2rem; }
.plan .btn { width: 100%; }

.plan.is-featured { border: 2.5px solid var(--royal); box-shadow: var(--shadow-md); }
.plan-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .95rem; border-radius: 999px;
  background: var(--accent); color: var(--navy); font-weight: 800; font-size: .92rem;
}
.plan-badge .icon { width: 1em; height: 1em; fill: currentColor; stroke-width: 1.5; }
@media (min-width: 901px) {
  .plan.is-featured { margin-block: -1rem; padding-block: 3rem 2.75rem; }
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.75rem; counter-reset: none; }
.step { position: relative; padding-top: 4rem; }
.step-num {
  position: absolute; top: 0; left: 0; z-index: 1;
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--navy); color: var(--white);
  font-weight: 800; font-size: 1rem;
}
.step::before { content: ""; position: absolute; top: 1.5rem; left: 3.5rem; right: -1.75rem; height: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--muted); }

/* ---------- Learning goals ---------- */
.goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.goal {
  display: flex; align-items: center; gap: .9rem; text-align: left;
  padding: 1.15rem 1.25rem; min-height: 76px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md);
  font-weight: 600; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.goal > span { flex: 1; }
.goal-icon { width: 28px; height: 28px; color: var(--royal); }
.goal .tick {
  width: 26px; height: 26px; padding: 4px; border-radius: 50%;
  background: var(--royal); color: var(--white); stroke-width: 3;
  opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s;
}
.goal:hover { border-color: var(--royal); }
.goal[aria-pressed="true"] { border-color: var(--royal); background: var(--royal-tint); box-shadow: inset 0 0 0 1px var(--royal); }
.goal[aria-pressed="true"] .tick { opacity: 1; transform: none; }
.goals-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: 1.75rem; }
.goals-summary { color: var(--muted); font-weight: 600; }

/* ---------- Testimonials ---------- */
.placeholder-note { font-size: 1rem; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.quote { display: flex; flex-direction: column; margin: 0; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
.stars { display: flex; gap: .15rem; margin-bottom: 1rem; color: var(--accent-strong); }
.stars .icon { width: 1.15rem; height: 1.15rem; fill: currentColor; stroke-width: 1; }
.quote blockquote { margin: 0 0 1.25rem; flex: 1; font-size: 1.05rem; }
.quote figcaption { font-weight: 700; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.faq-layout .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 2rem); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: inherit; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.2rem .25rem; text-align: left;
  background: none; border: 0; cursor: pointer;
  font-size: 1.1rem; font-weight: 700; color: var(--navy);
}
.faq-q .icon { color: var(--royal); transition: transform .25s; }
.faq-q[aria-expanded="true"] .icon { transform: rotate(180deg); }
.faq-q:hover span { color: var(--royal-dark); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 .25rem 1.3rem; color: var(--muted); max-width: 62ch; }
.js .faq-a { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .3s ease, visibility 0s .3s; }
.js .faq-a.is-open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .3s ease, visibility 0s; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(165deg, var(--navy-deep), var(--navy) 60%, #123069); color: var(--white); }
.contact h2 { color: var(--white); }
.contact .lead { color: var(--on-navy); margin-top: 1rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-list { display: grid; gap: 1.1rem; margin-top: 2.25rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .9rem; }
.contact-list .icon { margin-top: .2rem; color: var(--accent); }
.contact-list span > span, .contact-list .c-label { display: block; font-size: .85rem; font-weight: 600; color: var(--on-navy); }
.contact-list a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration-color: var(--accent); }

.form-card { padding: clamp(1.5rem, 3vw, 2.25rem); background: var(--white); color: var(--ink); border-radius: var(--r-lg); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.field { margin-bottom: .35rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem 1rem; min-height: 48px;
  background: var(--white); border: 1.5px solid #9AA6BF; border-radius: var(--r-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgba(36, 86, 229, .35); outline-offset: 0; border-color: var(--royal); border-radius: var(--r-sm); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); border-width: 2px; }
.error { min-height: 1.5rem; margin-top: .25rem; line-height: 1.4; font-size: .9rem; font-weight: 600; color: var(--danger); }
.error:not(:empty)::before { content: "Error: "; }
.form-goals { margin-bottom: 1.15rem; padding: .7rem 1rem; background: var(--royal-tint); border-radius: var(--r-sm); font-size: .95rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status.is-success { color: var(--success); }
.form-status.is-info { color: var(--navy); padding: .8rem 1rem; background: var(--royal-tint); border-radius: var(--r-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer .brand { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.footer-brand p { margin-top: 1rem; max-width: 42ch; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: .6rem 2.5rem; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover, .footer-bottom a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; margin-top: 2.5rem; padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 90;
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: var(--royal); color: var(--white); border: 0; border-radius: 50%;
  box-shadow: var(--shadow-md); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s, transform .2s, visibility .2s, background-color .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--royal-dark); }

/* ---------- Hover effects only where hover exists ---------- */
@media (hover: hover) {
  .service:hover { transform: translateY(-4px); border-color: var(--royal); box-shadow: var(--shadow-md); }
  .plan:not(.is-featured):hover { transform: translateY(-4px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid, .about-grid, .why-grid, .faq-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .why-intro, .faq-layout .section-head { position: static; }
  .tutor-frame { max-width: 340px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; gap: 2rem; }
  .plan.is-featured { padding-top: 2.5rem; }
  .quotes { grid-template-columns: 1fr; max-width: 640px; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2rem 4.25rem; min-height: 3rem; }
  .step:last-child { padding-bottom: 0; }
  .step::before { top: 3.25rem; bottom: .25rem; left: 1.4rem; right: auto; width: 2px; height: auto; }
}

@media (max-width: 620px) {
  body { font-size: 1rem; }
  .why-list, .check-list.two-col, .goals { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.1rem; }
  .stat { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: .6rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .vocab-card { right: -.25rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (min-width: 1500px) {
  :root { --container: 1240px; }
  body { font-size: 1.125rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .seq, .js .reveal { opacity: 1; transform: none; }
  .vocab-card.seq { transform: rotate(-3deg); }
}
