/* Subtle scroll reveals and page section progress. */
.simple-page section { scroll-margin-top: 136px; }
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .65s ease, transform .7s cubic-bezier(.2,.65,.3,1); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
.simple-info-grid article[data-reveal],.simple-subject-grid article[data-reveal],.home-stage-grid article[data-reveal] { transition-delay: calc(var(--reveal-index, 0) * 70ms); }

.simple-page > section { display: flex; align-items: center; min-height: calc(100svh - 104px); }
.simple-page > section > .container { width: 100%; }
.simple-page > .simple-section { padding-top: clamp(112px,13vh,160px); padding-bottom: clamp(112px,13vh,160px); }
.simple-page > .simple-cta { min-height: 65svh; }
.simple-page h1,.simple-page h2 { text-wrap: balance; }
.simple-page .simple-kicker::before { display: inline-block; width: 5px; height: 1em; margin-right: 8px; border-radius: 2px; background: #f5c922; vertical-align: -.08em; content: ''; }
.simple-page .home-intro h1 .headline-accent { position: relative; white-space: nowrap; }
.simple-page .home-intro h1 .headline-accent::before { position: absolute; right: 0; bottom: -.09em; left: 0; height: .2em; background: url('pencil-underline.svg') center / 100% 100% no-repeat; content: ''; clip-path: inset(0 100% 0 0); animation: pencil-underline .85s .45s cubic-bezier(.28,.4,.35,1) both; }
.simple-page .home-intro h1 .headline-star { position: absolute; top: -.36em; right: -.30em; width: .56em; height: .52em; overflow: visible; fill: none; stroke: #dfb523; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-11deg); }
.simple-page .home-intro h1 .headline-star path { opacity: 0; stroke-dasharray: 100; stroke-dashoffset: 101; animation: pencil-star-stroke .19s linear both; animation-delay: calc(1.36s + (var(--stroke-index) * .19s)); }
.simple-page .home-intro h1 .headline-star path:nth-child(1) { --stroke-index: 0; }
.simple-page .home-intro h1 .headline-star path:nth-child(2) { --stroke-index: 1; }
.simple-page .home-intro h1 .headline-star path:nth-child(3) { --stroke-index: 2; }
.simple-page .home-intro h1 .headline-star path:nth-child(4) { --stroke-index: 3; }
.simple-page .home-intro h1 .headline-star path:nth-child(5) { --stroke-index: 4; }
@keyframes pencil-underline { to { clip-path: inset(0 0 0 0); } }
@keyframes pencil-star-stroke { 0% { opacity: 0; stroke-dashoffset: 101; } 1% { opacity: 1; } 100% { opacity: 1; stroke-dashoffset: 0; } }
.simple-page .home-intro h1 { font-size: clamp(54px,5.2vw,70px); }
.simple-page .home-intro h1 span { letter-spacing: -.06em; }
.simple-page .simple-section h2 { font-size: clamp(42px,4vw,52px); line-height: 1.3; letter-spacing: -.055em; }
.simple-page .simple-hero h1 { font-size: clamp(48px,4.2vw,56px); line-height: 1.28; letter-spacing: -.055em; }
.simple-page .simple-cta h2 { font-size: clamp(34px,3.1vw,40px); }
.simple-page .simple-lead,.simple-page .simple-copy { font-size: 20px; }
.simple-page .home-intro-copy { font-size: 21px; }
.simple-page .simple-button { min-height: 58px; padding: 16px 32px; font-size: 18px; }
.simple-page .simple-text-link { font-size: 18px; }
.simple-page .simple-list h3,.simple-page .simple-subject-grid h3,.simple-page .simple-info-grid h3 { font-size: 23px; }
.simple-page .simple-list p,.simple-page .simple-subject-grid p,.simple-page .simple-info-grid p,.simple-page .simple-phase-list span { font-size: 19px; }
.simple-page .simple-steps span,.simple-page .test-info-card > p { font-size: 18px; }
.simple-page .simple-faq summary { font-size: 20px; }
.simple-page [data-reveal] { transition-duration: .8s; transition-delay: calc(var(--reveal-index, 0) * 65ms); }
.simple-page [data-reveal]:not(.is-visible) { transform: translateY(38px); }
@media (min-width: 992px) {
  .simple-page .simple-hero > .container,.simple-page .simple-heading:has(> .simple-copy) { grid-template-columns: minmax(0,1.25fr) minmax(0,.75fr); column-gap: 56px; }
  .simple-page .simple-two { grid-template-columns: minmax(0,1.2fr) minmax(0,.8fr); gap: 56px; }
  .simple-page .simple-two h2,.simple-page .simple-heading:has(> .simple-copy) h2 { font-size: clamp(40px,3.6vw,48px); }
}

.section-progress { position: fixed; top: 50%; right: 12px; z-index: 99; transform: translateY(-50%); }
.section-progress ul { display: flex; flex-direction: column; align-items: center; margin: 0; padding: 0; list-style: none; }
.section-progress li { display: flex; flex-direction: column; align-items: center; }
.section-progress li + li::before { display: block; width: 1px; height: 12px; background: #d7dbe6; content: ''; }
.section-progress a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; outline-offset: 1px; }
.section-progress-dot { display: block; width: 7px; height: 7px; border: 1.5px solid #aab1c5; border-radius: 50%; background: #fff; transition: transform .28s ease, border-color .28s ease, background-color .28s ease, box-shadow .28s ease; }
.section-progress a:hover .section-progress-dot,.section-progress a:focus-visible .section-progress-dot { transform: scale(1.2); border-color: #2f3984; }
.section-progress a[aria-current="location"] .section-progress-dot { transform: scale(1.2); border-color: #2f3984; background: #2f3984; box-shadow: 0 0 0 3px rgba(47,57,132,.1); }

.leveltest-choice-section .simple-heading,.leveltest-choice-section .grade-panel { margin-right: auto; margin-left: auto; }
.leveltest-choice-section .simple-heading { max-width: 900px; }
.grade-switch { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 700px; margin: 0 auto 32px; padding: 8px; border-radius: 999px; background: #f3f4f8; isolation: isolate; }
.grade-switch--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grade-switch [role="tab"] { position: relative; z-index: 1; min-height: 48px; padding: 8px 16px; border: 0; border-radius: 999px; color: #5c606e; background: transparent; font: inherit; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: color .25s ease; }
.grade-switch [role="tab"][aria-selected="true"] { color: #fff; }
.grade-switch-indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; z-index: 0; width: calc((100% - 10px)/2); border-radius: 999px; background: #2f3984; transition: left .34s cubic-bezier(.2,.75,.25,1),width .34s cubic-bezier(.2,.75,.25,1); }
.grade-panel { max-width: 900px; animation: grade-panel-in .35s ease both; }
.grade-panel[hidden] { display: none; }
.grade-panel-intro { margin: 0 0 16px; color: #5c606e; font-size: 16px; }
.test-info-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.test-info-card { min-height: 210px; padding: 32px; border: 1px solid #e7e8ee; border-radius: 18px; background: #fff; box-shadow: 0 8px 28px rgba(24,31,63,.045); transition: transform .3s cubic-bezier(.2,.65,.3,1),box-shadow .3s ease; }
.test-info-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.test-info-title .simple-kicker { margin: 0 0 8px; font-size: 13px; }
.test-info-title h3 { margin: 0; color: #252733; font-size: 22px; font-weight: 600; line-height: 1.45; letter-spacing: -.03em; }
.test-duration { flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; color: #2f3984; background: #f2f3f8; font-size: 14px; font-weight: 600; }
.test-info-card > p { margin: 0; color: #5c606e; font-size: 16px; line-height: 1.9; word-break: keep-all; }
.grade-panel-note { max-width: 760px; margin: 24px 0 0; color: #5c606e; font-size: 15px; line-height: 1.85; word-break: keep-all; }
.test-selection-note { max-width: 900px; margin: 24px auto 0; }
@keyframes grade-panel-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .test-info-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(24,31,63,.09); }
}
@media (max-width: 767px) {
  /* Phones: the rail sat on top of body text at 320-430px, so it is hidden; the pinned menu stays available. */
  .section-progress { display: none; }
  .simple-page section { scroll-margin-top: 80px; }
  .simple-page > section { min-height: 0; }
  .simple-page > .home-intro { padding-top: 64px; padding-bottom: 72px; }
  .simple-page > .simple-hero { padding-top: 72px; padding-bottom: 80px; }
  .simple-page > .simple-section { padding-top: 72px; padding-bottom: 72px; }
  .simple-page > .simple-cta { min-height: 0; padding-top: 64px; padding-bottom: 64px; }
  .simple-page .home-intro h1 { font-size: clamp(31px,7.2vw,40px); }
  .simple-page .simple-section h2 { font-size: clamp(29px,7vw,34px); line-height: 1.4; }
  .simple-page .simple-hero h1 { font-size: clamp(31px,7.5vw,38px); line-height: 1.4; }
  .simple-page .simple-cta h2 { font-size: 28px; }
  .simple-page .simple-lead,.simple-page .simple-copy { font-size: 17px; }
  .simple-page .home-intro-copy { font-size: 17px; }
  .simple-page .simple-button { min-height: 50px; padding: 16px 24px; font-size: 16px; }
  .simple-page .simple-list h3,.simple-page .simple-subject-grid h3,.simple-page .simple-info-grid h3 { font-size: 20px; }
  .simple-page .simple-list p,.simple-page .simple-subject-grid p,.simple-page .simple-info-grid p,.simple-page .simple-phase-list span { font-size: 17px; }
  .simple-page .simple-steps span,.simple-page .test-info-card > p { font-size: 16px; }
  .simple-page .simple-faq summary { font-size: 17px; }
  .simple-page [data-reveal]:not(.is-visible) { transform: translateY(24px); }
}
@media (max-width: 700px) {
  .grade-switch { gap: 0; margin-bottom: 24px; }
  .grade-switch [role="tab"] { min-height: 44px; padding: 8px 8px; font-size: 13px; }
  .test-info-grid { grid-template-columns: 1fr; gap: 16px; }
  .test-info-card { min-height: 0; padding: 24px; }
  .test-info-title h3 { font-size: 20px; }
  .test-duration { font-size: 13px; padding: 8px 8px; }
}
@media (prefers-reduced-motion:reduce) {
  .simple-page .home-intro h1 .headline-accent::before { animation: none; clip-path: inset(0 0 0 0); }
  .simple-page .home-intro h1 .headline-star path { animation: none; opacity: 1; stroke-dashoffset: 0; }
  html { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .simple-page [data-reveal],.simple-page [data-reveal]:not(.is-visible) { opacity: 1; transform: none; transition: none; }
  .site-header,.site-header::after { transition: none !important; }
  .section-progress-dot,.grade-switch-indicator,.grade-panel,.test-info-card { transition: none !important; animation: none !important; }
}
