/* PromptMind landing page. Base styles, sections, then responsive overrides. */

/* Design tokens (legacy blue is preserved; brand-blue is the approved primary). */
:root {
  --blue: #173f9f;
  --blue-dark: var(--pm-color-primary-hover);
  --blue-soft: var(--pm-color-primary-soft);
  --yellow: var(--pm-color-accent);
  --yellow-dark: var(--pm-color-accent-hover);
  --ink: var(--pm-color-heading);
  --text: var(--pm-color-text);
  --muted: var(--pm-color-muted);
  --line: var(--pm-color-border);
  --soft: var(--pm-color-surface-soft);
  --white: #ffffff;
  --brand-blue: var(--pm-color-primary);
  --container-width: 1220px;
  --container-gutter: 92%;
  --section-padding: 82px;
  --pain-section-padding: 90px;
  --section-padding-mobile: 56px;
  --radius-card: 22px;
  --radius-panel: 28px;
  --radius-pill: 999px;
  --card-padding: 28px;
  --grid-gap: 20px;
  --shadow-card: 0 12px 30px rgba(25,55,110,.06);
  --shadow-card-subtle: 0 4px 16px rgba(17,43,103,.04);
  --shadow-card-hover: 0 8px 24px rgba(17,43,103,.08);
}


/* Base styles and shared container */
[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font-family: var(--pm-font-body);
  color: var(--ink);
  background: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(var(--container-width),var(--container-gutter));
  margin: auto;
}


/* Navigation and branding */
.nav {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  width: min(var(--container-width),var(--container-gutter));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--grid-gap);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand img {
  width: 205px;
  height: auto;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
}

.brand-text span {
  display: block;
  color: var(--yellow-dark);
  font-size: 12px;
  font-weight: 800;
  margin-top: 4px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #283858;
}

.menu > a,
.menu-item.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 6px;
  white-space: nowrap;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--yellow);
}

.menu a[aria-current="page"] {
  color: var(--brand-blue);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  margin-left: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg,var(--yellow),var(--yellow-dark));
  font-size: 13px;
  font-weight: 900;
  color: #153369;
  box-shadow: 0 8px 20px rgba(243,173,0,.20);
  white-space: nowrap;
}

.nav-cta::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  width: 1px;
  height: 28px;
  background: #cbd5e1;
  transform: translateY(-50%);
  pointer-events: none;
}

.nav-account { position: relative; flex-shrink: 0; }
.nav-account-panel {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 65;
  min-width: 210px; padding: 8px; border: 1px solid var(--line);
  border-radius: 12px; background: #fff; box-shadow: var(--shadow-card);
}
.nav-account-panel a, .nav-account-panel button {
  display: block; width: 100%; min-height: 44px; padding: 12px;
  border: 0; border-radius: 6px; background: transparent; color: var(--ink);
  text-align: left; font: inherit; font-size: 14px; cursor: pointer;
}
.nav-account-panel a:hover, .nav-account-panel button:hover { background: var(--soft); }
.account-error { margin: 0; color: #ad3025; font-size: 12px; }

/* Courses dropdown (hover/focus reveal, desktop only — see max-width:1200px override) */
.menu-item.has-dropdown {
  position: relative;
}

/* Invisible bridge so the pointer can travel from the link down into the panel
   without the gap between them clearing the hover state. */
.menu-item.has-dropdown::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 18px;
}

.menu-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  display: grid;
  gap: 2px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2,42,143,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}

.menu-item.has-dropdown:hover .menu-dropdown,
.menu-item.has-dropdown:focus-within .menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.menu-dropdown a {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #283858;
  white-space: nowrap;
}

.menu-dropdown a:hover,
.menu-dropdown a:focus-visible {
  background: var(--soft);
  color: var(--brand-blue);
}

.menu-dropdown a[aria-current="page"] {
  color: var(--brand-blue);
  background: var(--soft);
}

/* Keep course links visible inside the expanded mobile navigation. */
@media (max-width: 1200px) {
  .nav .menu-item.has-dropdown { width: 100%; text-align: center; }
  .nav .menu-item.has-dropdown::after { display: none; }
  .nav .menu-dropdown {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    border: 0;
    border-radius: 10px;
    background: var(--soft);
    padding: 4px 12px;
  }
  .nav .menu-item.has-dropdown:hover .menu-dropdown,
  .nav .menu-item.has-dropdown:focus-within .menu-dropdown { transform: none; }
}


/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 650px;
  background: radial-gradient(circle at 76% 16%,rgba(255,197,21,.12),transparent 25%),
    linear-gradient(110deg,#fff 0%,#f8faff 54%,var(--pm-color-primary-soft) 100%);
}

.hero-inner {
  width: min(var(--container-width),var(--container-gutter));
  margin: auto;
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  position: relative;
  z-index: 3;
}


/* Shared eyebrow and buttons */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow:before {
  content: "";
  width: 32px;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--yellow);
}

.hero h1 {
  margin: 0;
  max-width: 650px;
  font-size: 60px;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #10377f;
}

.hero h1 .ielts-accent,
.pain-ref-headline-accent {
  color: #c62828;
}

.hero-copy {
  max-width: 630px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg,var(--yellow),var(--yellow-dark));
  color: #14356e;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(243,173,0,.24);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 900;
  background: #fff;
}


/* Hero proof and artwork */
.proof {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #54607a;
}

.check {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff2b4;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.visual {
  position: relative;
  min-height: 650px;
}

.blue-shape {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 58% 42% 45% 55% / 50% 54% 46% 50%;
  background: linear-gradient(145deg,#123b96,var(--pm-color-primary-hover));
  right: -70px;
  top: 38px;
  transform: rotate(-8deg);
}

.yellow-ring {
  position: absolute;
  width: 370px;
  height: 370px;
  border: 62px solid var(--yellow);
  border-radius: 50%;
  right: -85px;
  bottom: -95px;
}

.dots {
  position: absolute;
  width: 130px;
  height: 130px;
  left: 30px;
  top: 70px;
  background-image: radial-gradient(#bed0f4 2px,transparent 2px);
  background-size: 17px 17px;
  opacity: .75;
}

.teacher {
  position: absolute;
  bottom: 0;
  right: 35px;
  height: 620px;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 22px 28px rgba(7,32,89,.18));
  z-index: 5;
  width: auto;
}

.teacher.teacher-halfbody {
  width: 960px;
  height: auto;
  max-width: none;
  right: -205px;
  mask-image: linear-gradient(to right,transparent 17%,#000 25%);
}

.experience {
  position: absolute;
  top: 55px;
  right: 8px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 15px 35px rgba(10,42,105,.16);
  z-index: 8;
  color: var(--blue);
}

.experience strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  margin-bottom: 5px;
}

.experience span {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 800;
}

.teacher-label {
  position: absolute;
  right: 24px;
  bottom: 34px;
  z-index: 9;
  padding: 13px 18px;
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 25px rgba(10,42,105,.14);
}

.teacher-label strong {
  display: block;
  color: var(--blue);
  font-size: 16px;
}

.teacher-label span {
  display: block;
  color: #69758c;
  font-size: 11px;
  margin-top: 3px;
}


/* Shared section headings */
.section {
  padding: var(--section-padding) 0;
}

.section-soft {
  padding: var(--section-padding) 0;
  background: var(--soft);
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 42px;
}

.section-kicker {
  color: var(--yellow-dark);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: 42px;
  line-height: 1.2;
  margin: 10px 0 12px;
  color: var(--blue);
}

.programs-mobile-break {
  display: none;
}

.section-head p {
  font-size: 18px;
  line-height: 1.7;
  color: #66718b;
  margin: 0;
}


/* Why PromptMind */
.why-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 16px;
}

.why-card {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(23,59,122,.07);
  transition: .25s;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(23,59,122,.12);
}

.icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: #f2f6ff;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  font-size: 30px;
}

.why-card .why-icon {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin-bottom: 22px;
}

.why-card h3 {
  font-size: 20px;
  line-height: 1.35;
  margin: 0 0 10px;
  color: var(--blue);
}

.why-card p {
  font-size: 15px;
  line-height: 1.72;
  color: #66718b;
  margin: 0;
}

.process-strip {
  margin-top: 30px;
  border-radius: var(--radius-card);
  background: linear-gradient(90deg,var(--blue-dark),var(--blue));
  padding: 18px 24px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--grid-gap);
  flex-wrap: wrap;
}

.process-strip span {
  font-weight: 800;
}

.process-strip b {
  color: var(--yellow);
  font-size: 20px;
}


/* Find Your IELTS Path */
.path-box {
  background: linear-gradient(135deg,#0c2f78,#1547a8);
  border-radius: 30px;
  padding: 34px 38px;
  color: #fff;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 28px;
  box-shadow: 0 20px 45px rgba(12,47,120,.18);
}

.path-box h3 {
  font-size: 34px;
  margin: 0 0 10px;
  color: #ffd33d;
}

.path-box p {
  margin: 0;
  line-height: 1.75;
  color: #e8efff;
}

.path-box .btn-primary {
  justify-self: end;
}


/* Learning programs */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--grid-gap);
}

.program-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}

.program-card .tag {
  font-size: 12px;
  font-weight: 900;
  color: var(--yellow-dark);
  text-transform: uppercase;
}

.program-card h3 {
  font-size: 24px;
  color: var(--blue);
  margin: 8px 0;
}

.program-card p {
  color: #66718b;
  line-height: 1.65;
}

.program-card ul {
  padding-left: 20px;
  color: #3f4e6b;
  line-height: 1.8;
}

.text-link {
  color: var(--blue);
  font-weight: 900;
}


/* Learning Programs: wider cards without changing other section containers. */
#programs {
  padding-bottom: 32px;
}

#programs + .pain-points-section {
  padding-top: 32px;
}

@media(max-width:620px) {
  #programs {
    padding-bottom: 24px;
  }

  #programs + .pain-points-section {
    padding-top: 24px;
  }
}

#programs > .container {
  --container-width: 1520px;
}

#programs .programs-grid {
  grid-template-columns: repeat(4,minmax(0,1fr));
}

#programs .program-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

#programs .text-link {
  margin-top: auto;
  padding-top: 16px;
}

#programs .program-logo {
  width: 220px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  align-self: center;
  margin-bottom: 20px;
}

#programs .program-card-complete {
  border-color: var(--yellow);
}

#programs .program-subline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

@media(max-width:1399px) {
  #programs .programs-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

@media(max-width:620px) {
  #programs .programs-grid {
    grid-template-columns: minmax(0,1fr);
  }
}

/* Assessment */
.cards2 {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 22px;
}

.assess-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: var(--card-padding);
  background: linear-gradient(135deg,#fff,#f9fbff);
  box-shadow: 0 12px 30px rgba(25,55,110,.05);
}

.assess-card h3 {
  font-size: 25px;
  color: var(--blue);
  margin: 0 0 10px;
}

.assess-card p {
  color: #66718b;
  line-height: 1.7;
}


/* About KruJeab and results */
.about-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg,#0b2f78,#123f9b);
  color: #fff;
}

.about-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.profile-box {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-panel);
  padding: 30px;
}

.profile-box h3 {
  color: var(--blue);
  font-size: 30px;
  margin: 10px 0;
}

.profile-box p {
  color: #63708b;
  line-height: 1.7;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px;
}

.result {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
}

.result small {
  opacity: .8;
}

.result strong {
  display: block;
  font-size: 36px;
  color: var(--yellow);
  margin: 8px 0;
}

.result span {
  font-size: 14px;
}


/* Mock test */
.mock-band {
  padding: 72px 0;
  background: #fff;
}

.mock-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg,#fff8d8,#f8fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  padding: 34px;
}

.mock-visual {
  min-height: 270px;
  border-radius: var(--radius-card);
  background: linear-gradient(135deg,#eaf1ff,#fff);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.mock-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 28px solid var(--blue);
  display: grid;
  place-items: center;
  font-size: 44px;
}

.mock-copy h3 {
  font-size: 34px;
  color: var(--blue);
  margin: 0 0 12px;
}

.mock-copy p {
  color: #66718b;
  line-height: 1.75;
}

.mock-copy ul {
  padding-left: 20px;
  color: #42506b;
  line-height: 1.8;
}


/* Contact CTA */
.final-cta {
  padding: 62px 0;
  background: #fff;
}

.cta-box {
  border-radius: 30px;
  padding: 42px;
  background: linear-gradient(135deg,#fff6ce,#fff 50%,#eff4ff);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.cta-box h2 {
  font-size: 36px;
  color: var(--blue);
  margin: 0 0 10px;
}

.cta-box p {
  margin: 0;
  color: #68738c;
  font-size: 17px;
}


/* Footer */
footer {
  background: #08265f;
  color: #dfe8ff;
  padding: 38px 0;
  font-size: 13px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.hero-inner>* {
  min-width: 0;
}

footer .brand {
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
}

footer .brand img {
  width: 220px;
}

a:focus-visible {
  outline: 3px solid var(--yellow-dark);
  outline-offset: 5px;
}


/* Portraits and student results */
.profile-portrait {
  margin: 0 0 24px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg,var(--pm-color-primary-soft),#fff7d6);
}

.profile-portrait img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  object-position: center bottom;
}

.about-grid>* {
  min-width: 0;
}

.student-result {
  min-width: 0;
  text-align: center;
}

.student-portrait {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 2.35;
  margin: 0 auto 20px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: linear-gradient(160deg,#ffdf63 0%,var(--yellow) 55%,var(--yellow-dark) 100%);
}

.student-portrait img {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90%;
  object-fit: cover;
  object-position: 50% 0;
}

.student-result h3 {
  font-size: 16px;
  line-height: 1.5;
  margin: 0 0 6px;
  color: #fff;
}

.student-score {
  display: block;
  font-size: 42px;
  line-height: 1.15;
  color: var(--yellow);
  font-weight: 900;
}

.student-score-label {
  margin: 7px 0 0;
  font-size: 12px;
  color: #dfe8ff;
}

.student-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  color: rgba(11,46,122,.35);
}

.student-pending h3 {
  color: #dfe8ff;
  font-size: 14px;
}

.results-grid:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 5px;
}

.student-progress {
  margin: 14px 0 0;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(255,197,21,.12);
  color: #ffe28a;
  font-size: 13px;
  line-height: 1.7;
  font-weight: 700;
}

.student-progress span {
  font-size: 12px;
  color: #fff;
}


/* Section-specific heading variants */
.path-kicker {
  color: #ffd34a;
}

.results-kicker {
  color: #ffd24d;
}

.results-title {
  font-size: 36px;
  margin: 8px 0 26px;
}


/* Responsive / accessibility: (min-width:981px) and (max-width:1200px) */
@media(min-width:981px) and (max-width:1200px) {
  .menu a:hover,
.menu a:focus-visible {
  color: var(--yellow);
}

  .hero h1 {
    font-size: clamp(44px,4.7vw,56px);
  }

  .teacher {
    right: 0;
    height: 590px;
  }

  .teacher.teacher-halfbody {
    width: 880px;
    right: -200px;
    mask-image: linear-gradient(to right,transparent 25%,#000 32%);
  }

}

/* Responsive / accessibility: (max-width:980px) */
@media(max-width:980px) {
  .menu {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 55px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .visual {
    min-height: 540px;
  }

  .teacher {
    height: 510px;
    right: 50%;
    transform: translateX(50%);
  }

  .teacher.teacher-halfbody {
    width: min(125%,810px);
    right: 50%;
    mask-image: none;
  }

  .blue-shape {
    right: 50%;
    transform: translateX(50%) rotate(-8deg);
  }

  .yellow-ring {
    right: -120px;
  }

  .experience {
    right: 8%;
  }

  .why-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .path-box,.about-grid,.mock-panel {
    grid-template-columns: 1fr;
  }

  .cards3 {
    grid-template-columns: 1fr;
  }

  .cards2 {
    grid-template-columns: 1fr;
  }

  .path-box .btn-primary {
    justify-self: start;
  }

}

/* Responsive / accessibility: (max-width:620px) */
@media(max-width:620px) {
  .menu a:hover,
.menu a:focus-visible {
  color: var(--yellow);
}

  .hero h1 {
    font-size: clamp(30px,7.8vw,39px);
    line-height: 1.25;
  }

  .hero-copy {
    font-size: 16px;
  }

  .visual {
    min-height: clamp(390px,115vw,480px);
    margin-top: 20px;
  }

  .hero .visual:has(.teacher-halfbody) {
    min-height: clamp(360px,100vw,500px);
    overflow: hidden;
  }

  .teacher {
    height: auto;
    width: min(100%,331px);
    max-height: 455px;
  }

  .teacher.teacher-halfbody {
    width: min(150%,750px);
    max-height: none;
  }

  .experience {
    width: 95px;
    height: 95px;
    top: 20px;
    right: 0;
  }

  .experience strong {
    font-size: 25px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand img {
    width: 200px;
  }

  .teacher-label {
    right: 0;
    bottom: 20px;
  }

  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .programs-mobile-break {
    display: initial;
  }

  .path-box,.mock-panel,.cta-box {
    padding: 26px 22px;
  }

  .results-grid {
    grid-template-columns: repeat(4,minmax(125px,1fr));
    gap: 16px;
    overflow-x: auto;
    padding: 0 0 14px;
    scroll-snap-type: x proximity;
    scrollbar-color: var(--yellow) transparent;
  }

  .student-result {
    scroll-snap-align: start;
  }

  .student-portrait {
    margin-bottom: 16px;
  }

}

/* Responsive / accessibility: (prefers-reduced-motion:reduce) */
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .why-card {
    transition: none;
  }

}

/* Pain points: reference layout, scoped to this section. */
  .pain-points-section{
    --pain-yellow-soft:#fff4bf;
    padding:var(--pain-section-padding) 0;
    position:relative;
    overflow:hidden;
    background:var(--white);
    overflow-wrap:anywhere;
  }

  .pain-points-section::before,
  .pain-points-section::after{
    content:"";
    position:absolute;
    width:520px;
    height:520px;
    border-radius:50%;
    background:#F3F8FF;
    z-index:0;
    pointer-events:none;
  }
  .pain-points-section::before{left:-270px;bottom:-340px}
  .pain-points-section::after{right:-350px;top:-260px}

  .pain-ref-inner{
    position:relative;
    z-index:2;
    padding:0;
  }

  .pain-ref-hero-grid{
    display:grid;
    grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
    align-items:center;
    gap:46px;
  }

  .pain-ref-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:12px;
    color:var(--brand-blue);
    font-size:15px;
    font-weight:800;
    letter-spacing:.03em;
    margin-bottom:18px;
  }
  .pain-ref-eyebrow::after{
    content:"";
    width:58px;
    height:4px;
    border-radius:999px;
    background:var(--yellow);
  }

  .pain-points-section h2{
    margin:0;
    max-width:760px;
    color:var(--brand-blue);
    font-size:clamp(36px,4.2vw,56px);
    line-height:1.3;
    letter-spacing:-.035em;
  }

  .pain-ref-headline-accent{
    position:relative;
    display:inline-block;
    z-index:1;
    white-space:normal;
  }
  .pain-ref-headline-accent::before{
    content:"";
    position:absolute;
    left:-8px;
    right:-8px;
    bottom:2px;
    height:22px;
    background:var(--pain-yellow-soft);
    border-radius:8px;
    transform:rotate(-1.5deg);
    z-index:-1;
  }

  .pain-ref-lead{
    max-width:720px;
    margin:24px 0 0;
    font-size:20px;
    line-height:1.8;
    color:#41506B;
  }
  .pain-ref-lead strong{color:var(--ink)}

  
  .pain-ref-student-visual{
    min-height:510px;
    position:relative;
    display:flex;
    align-items:flex-end;
    justify-content:center;
    isolation:isolate;
  }

  .pain-ref-visual-blob{
    position:absolute;
    width:420px;
    height:420px;
    right:24px;
    top:44px;
    border-radius:46% 54% 60% 40% / 40% 44% 56% 60%;
    background:#EDF5FF;
    transform:rotate(8deg);
    z-index:-5;
  }

  .pain-ref-visual-ring{
    position:absolute;
    width:330px;
    height:330px;
    right:62px;
    top:74px;
    border:2px solid rgba(2,42,143,.12);
    border-radius:50%;
    z-index:-4;
  }

  .pain-ref-visual-ring::after{
    content:"";
    position:absolute;
    inset:28px;
    border:1px dashed rgba(2,42,143,.09);
    border-radius:50%;
  }

  .pain-ref-dot-grid{
    position:absolute;
    width:130px;
    height:110px;
    right:-4px;
    top:34px;
    opacity:.34;
    background-image:radial-gradient(var(--brand-blue) 1.5px,transparent 1.5px);
    background-size:14px 14px;
    z-index:-3;
  }


  .pain-ref-floating-note{
    position:absolute;
    right:6px;
    top:146px;
    width:170px;
    padding:15px 18px 16px;
    border-radius:22px;
    color:var(--brand-blue);
    background:rgba(255,255,255,.82);
    border:1px solid rgba(2,42,143,.08);
    box-shadow:0 14px 30px rgba(2,42,143,.08);
    font-size:17px;
    font-weight:750;
    line-height:1.4;
    transform:rotate(4deg);
    backdrop-filter:blur(8px);
    z-index:3;
  }
  .pain-ref-floating-note span{
    display:block;
    width:58px;
    height:4px;
    background:var(--yellow);
    border-radius:999px;
    margin-top:8px;
  }

  .pain-ref-icon-float{
    position:absolute;
    color:var(--brand-blue);
    opacity:.16;
    z-index:-1;
  }
  .pain-ref-icon-book{left:30px;top:92px;width:66px}
  .pain-ref-icon-headphones{right:96px;top:12px;width:52px}
  .pain-ref-icon-chat{left:62px;bottom:78px;width:60px}

  .pain-ref-student-img{
    width:min(470px,92%);
    max-height:510px;
    object-fit:contain;
    object-position:center bottom;
    display:block;
    position:relative;
    z-index:1;
    filter:drop-shadow(0 22px 34px rgba(8,38,111,.15));
  }

  .pain-ref-cards-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:18px;
    margin-top:34px;
  }

  .pain-ref-pain-card{
    min-height:176px;
    padding:24px 24px 23px;
    border-radius:24px;
    background:rgba(255,255,255,.95);
    border:1px solid var(--line);
    box-shadow:0 12px 28px rgba(2,42,143,.055);
    display:flex;
    gap:18px;
    transition:transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  }
  .pain-ref-pain-card:hover{
    transform:translateY(-4px);
    box-shadow:0 18px 40px rgba(2,42,143,.10);
    border-color:#C9D9F0;
  }

  .pain-ref-icon-box{
    width:58px;
    height:58px;
    border-radius:18px;
    background:#EAF3FF;
    color:var(--brand-blue);
    display:grid;
    place-items:center;
    flex:0 0 58px;
  }
  .pain-ref-pain-card:nth-child(even) .pain-ref-icon-box{background:#FFF4C9}
  .pain-ref-icon-box svg{width:30px;height:30px;stroke:currentColor}

  .pain-ref-card-copy h3{
    margin:1px 0 8px;
    color:var(--brand-blue);
    font-size:20px;
    line-height:1.35;
  }
  .pain-ref-card-copy p{
    margin:0;
    font-size:16px;
    line-height:1.65;
    color:#53617A;
  }

  .pain-ref-cta-panel{
    margin-top:26px;
    padding:26px 30px;
    border-radius:26px;
    background:#FFF9E4;
    border:1px solid #F8E8A7;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:30px;
  }
  .pain-ref-cta-copy strong{
    display:block;
    color:var(--brand-blue);
    font-size:22px;
    margin-bottom:6px;
  }
  .pain-ref-cta-copy p{
    margin:0;
    font-size:16px;
    line-height:1.6;
    color:#4C5870;
  }
  .pain-ref-cta-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:240px;
    padding:15px 24px;
    border-radius:999px;
    text-decoration:none;
    color:white;
    background:var(--brand-blue);
    font-weight:800;
    box-shadow:0 12px 26px rgba(2,42,143,.18);
    transition:.22s ease;
  }
  .pain-ref-cta-btn:hover{transform:translateY(-2px);background:var(--blue)}

  @media (max-width:980px){
    .pain-points-section{border-radius:0;border-left:0;border-right:0}
    .pain-ref-inner{padding:0}
    .pain-ref-hero-grid{grid-template-columns:1fr;gap:8px}
    .pain-ref-student-visual{min-height:400px;margin-top:12px}
    .pain-ref-student-img{max-height:405px;width:min(430px,95%)}
    .pain-ref-visual-blob{right:50%;transform:translateX(50%) rotate(8deg);width:360px;height:360px}
    .pain-ref-visual-ring{right:50%;transform:translateX(50%);width:290px;height:290px}
    .pain-ref-floating-note{right:24px;top:120px}
    .pain-ref-cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .pain-ref-cta-panel{grid-template-columns:1fr;text-align:left}
    .pain-ref-cta-btn{width:100%;min-width:0}
  }

  @media (max-width:620px){
    .pain-points-section{padding:var(--section-padding-mobile) 0}
    .pain-points-section h2{font-size:clamp(30px,8vw,42px)}
    .pain-ref-cards-grid{grid-template-columns:minmax(0,1fr)}
    .pain-ref-lead{font-size:17px}
    .pain-ref-student-visual{min-height:340px}
    .pain-ref-student-img{max-height:350px}
    .pain-ref-visual-blob{width:300px;height:300px;top:30px}
    .pain-ref-visual-ring{width:245px;height:245px;top:54px}
    .pain-ref-floating-note{display:none}
    .pain-ref-icon-book{left:8px;top:90px}
    .pain-ref-icon-chat{left:14px;bottom:42px}
    .pain-ref-dot-grid{right:-16px}
    .pain-ref-pain-card{padding:20px;min-height:auto}
    .pain-ref-icon-box{width:52px;height:52px;flex-basis:52px}
    .pain-ref-card-copy h3{font-size:18px}
    .pain-ref-card-copy p{font-size:15px}
  }

  .pain-ref-hero-grid > *, .pain-ref-card-copy {min-width:0}
  .pain-ref-student-img {height:auto}
  .pain-ref-pain-card {padding:24px 20px;gap:14px}
  .pain-ref-icon-box {width:52px;height:52px;flex-basis:52px}
  .pain-ref-cta-btn {min-height:48px}
  @media (prefers-reduced-motion:reduce){
    .pain-ref-pain-card,.pain-ref-cta-btn{transition:none}
    .pain-ref-pain-card:hover,.pain-ref-cta-btn:hover{transform:none}
  }

/* Hamburger toggle button (hidden on desktop, shown at/under 1200px) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
  order: 3;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #283858;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Keep the shared navigation available on tablet and mobile, collapsed behind the hamburger. */
@media (max-width: 1200px) {
  .nav { height: auto; padding: 12px 0; }
  .nav-inner { flex-wrap: wrap; gap: 16px; }
  .nav-account { margin-left: auto; }
  .nav-inner > .nav-cta { margin-left: auto; }
  .nav-account .nav-cta { margin-left: 0; }
  .nav-cta::before { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav .menu {
    display: flex;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .nav .menu.is-open {
    max-height: 75vh;
    overflow-y: auto;
    opacity: 1;
    visibility: visible;
    padding: 10px 0 6px;
  }
  .nav .menu a { padding: 12px 8px; min-height: 44px; }
  html { scroll-padding-top: 155px; }
}
@media (max-width: 620px) {
  .nav-inner { justify-content: flex-start; gap: 12px; }
  .nav-inner > .brand { flex: 1 1 0; min-width: 0; }
  .nav-inner > .brand img { max-width: 100%; }
  .nav .menu { font-size: 12px; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav .menu { transition: none; }
  .nav-toggle span { transition: none; }
}
