/* Kate English Tutor Landing - single stylesheet, mobile-first. */

:root {
  --ink: #1c2430;
  --muted: #55606f;
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-alt: #f2ede6;
  --primary: #14675c;
  --primary-strong: #0f5147;
  --accent: #e15c42;
  --border: #e6ddd2;
  --shadow: 0 12px 32px rgba(20, 40, 48, 0.10);

  --maxw: 1120px;
  --gutter: 20px;
  --radius: 16px;
  --radius-sm: 12px;
  --space: 20px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary-strong); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.4em; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(48px, 8vw, 88px);
}

.section--alt { background: var(--surface-alt); }

/* Divider line at the top of a section, matching content width */
.section--divided > .container::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--border);
  margin-bottom: clamp(32px, 5vw, 52px);
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  margin-bottom: 0.6em;
}

.lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 92, 66, 0.28);
}

.btn--primary:hover { background: #cf4d34; transform: translateY(-1px); }

.btn--ghost {
  background: transparent;
  color: var(--primary-strong);
  border-color: var(--primary);
}

.btn--ghost:hover { background: rgba(20, 103, 92, 0.08); }

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 40;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Shine sweep on the primary button */
.btn { position: relative; overflow: hidden; }

.btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -130%;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
}

@media (hover: hover) {
  .btn--primary:hover::after { animation: shine 0.8s ease; }
}

@keyframes shine { from { left: -130%; } to { left: 130%; } }

/* Topics marquee */
.marquee {
  overflow: hidden;
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
  padding-block: 12px;
}

.marquee__track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
}

.marquee:hover .marquee__track { animation-play-state: paused; }

.marquee__set { display: flex; align-items: center; }

.marquee__set span {
  margin: 0 14px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--primary-strong);
  text-transform: lowercase;
}

.marquee__set i { color: var(--accent); font-style: normal; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.3333%); } }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 242, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1.12;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.brand__name { font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }

.brand__accent { color: var(--primary); }

.brand__tag {
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.lang-toggle:hover { border-color: var(--primary); }

.site-header .btn--primary { min-height: 44px; padding: 10px 16px; font-size: 0.95rem; }

.btn__icon { flex: 0 0 auto; display: block; }

/* On narrow screens the header CTA shows only the icon - keep it large and centered. */
.site-header .btn--icon { padding-inline: 12px; }

.header-cta-label { display: none; }

/* Primary navigation (mobile-first: hidden dropdown + burger) */
.nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: none;
}

body.nav-open .nav { display: block; }

.nav__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}

.nav__link {
  position: relative;
  display: block;
  padding: 14px 20px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
}

.nav__link.is-active { color: var(--primary-strong); background: var(--surface-alt); }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}

.burger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger__bar:nth-child(2) { opacity: 0; }
body.nav-open .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.no-scroll { overflow: hidden; }

/* Anchor offset under the sticky header */
#about, #formats, #reviews, #certs, #faq { scroll-margin-top: 76px; }

/* Desktop: inline nav, no burger */
@media (min-width: 1000px) {
  .nav {
    position: static;
    display: block;
    background: transparent;
    border: none;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; gap: 22px; padding: 0; }
  .nav__link { padding: 6px 0; }
  .nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
  }
  .nav__link:hover::after,
  .nav__link.is-active::after { transform: scaleX(1); }
  .nav__link.is-active { background: transparent; }
  .burger { display: none; }
}

/* Hero */
.hero { padding-block: clamp(36px, 7vw, 72px); }

.hero__grid { display: grid; gap: 28px; align-items: center; }

.hero .eyebrow { margin-bottom: 24px; }

.hero__title { font-size: clamp(2.1rem, 8vw, 3.4rem); margin-bottom: 0.5em; }

.hero__subtitle { font-size: 1.12rem; color: var(--muted); max-width: 40ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }

.hero__note { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }

.hero__media { order: 2; }

.hero__photo {
  width: 100%;
  max-width: 380px;
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  /* Top and sides stay sharp; only the bottom edge softly feathers into the page. */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(to bottom, #000 80%, rgba(0, 0, 0, 0) 100%);
}

/* Stats */
.stats { background: var(--primary); color: #fff; padding-block: clamp(32px, 5vw, 56px); }

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  text-align: center;
}

.stat { padding: 8px; }

.stat__num { font-size: clamp(1.8rem, 6vw, 2.4rem); font-weight: 800; min-height: 1.2em; }

.stat__num.is-typing::after {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1em;
  margin-left: 4px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: caret-blink 0.9s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.stat__label { color: rgba(255, 255, 255, 0.85); font-size: 0.98rem; }

/* Generic card grids */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: #dff0ec;
  color: var(--primary-strong);
  margin-bottom: 14px;
}

.card__icon svg { display: block; }

.card h3 { font-size: 1.15rem; }

.card p { margin: 0; color: var(--muted); }

.card, .pain-card, .result-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }

@media (hover: hover) {
  .card:hover, .pain-card:hover, .result-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20, 40, 48, 0.14);
  }
}

/* Result cards (positive counterpart to pain cards) */
.results .eyebrow { margin-bottom: 6px; }

.result__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.result-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.result-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d9efe9;
  color: var(--primary-strong);
}

.result-card__icon svg { width: 24px; height: 24px; display: block; }

.result-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* Lists (pain / benefits) */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.check-list li {
  position: relative;
  padding-left: 34px;
  font-size: 1.05rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.85);
}

/* Pain cards */
.pain__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.pain-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.pain-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fbe7e1;
  font-size: 1.7rem;
  line-height: 1;
}

.pain-card p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

/* About */
#about { position: relative; overflow: hidden; }
#about > .container { position: relative; z-index: 1; }

.about__deco {
  position: absolute;
  inset: -20% 0;
  z-index: 0;
  pointer-events: none;
}

.about__deco span {
  position: absolute;
  left: -35%;
  width: 170%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(20, 103, 92, 0.30) 22%, rgba(20, 103, 92, 0.30) 78%, transparent);
  transform: rotate(-20deg);
  transform-origin: center;
  will-change: transform;
}

.about__deco span:nth-child(1) { top: 44%; transform: rotate(-12deg); }
.about__deco span:nth-child(2) { top: 66%; opacity: 0.65; }

.about__grid { display: grid; gap: 24px; align-items: center; }

.about__media img {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-alt);
}

.about__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

/* Proof */
.proof__box {
  background: linear-gradient(135deg, #14675c, #0f5147);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  box-shadow: var(--shadow);
}

.proof__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.proof__content { padding: clamp(28px, 5vw, 44px); }

.proof__box .section-title { color: #fff; }

.proof__box p { color: rgba(255, 255, 255, 0.9); max-width: 46ch; }

.proof__box .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.7); }

.proof__box .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }

/* Green dash-dot highlight */
.hl-green {
  color: var(--primary);
  font-weight: 600;
  padding-bottom: 3px;
  background-image: repeating-linear-gradient(
    to right,
    currentColor 0 7px,
    transparent 7px 11px,
    currentColor 11px 13px,
    transparent 13px 17px
  );
  background-repeat: repeat-x;
  background-size: 100% 2px;
  background-position: 0 100%;
}

/* Dashed inline link */
.link-dashed {
  color: var(--primary-strong);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.link-dashed:hover,
.link-dashed:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Reviews */
.reviews .eyebrow { margin-bottom: 6px; }

.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  justify-items: center;
}

.review-shot {
  display: block;
  width: 100%;
  max-width: 360px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.review-shot img { width: 100%; height: auto; display: block; }

@media (hover: hover) {
  .review-shot:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20, 40, 48, 0.16); }
}

.reviews__more { color: var(--primary-strong); font-weight: 600; }

/* Certificates */
.certs .eyebrow { margin-bottom: 6px; }

.certs__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}

.cert-tile {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cert-tile img { width: 100%; height: auto; display: block; }

.cert-tile figcaption {
  padding: 12px 16px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}

.cert-tile.is-empty {
  border-style: dashed;
  box-shadow: none;
  background: transparent;
}

.cert-tile.is-empty img { opacity: 0.7; }

/* FAQ */
.faq__list { display: grid; gap: 12px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  line-height: 1;
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* Final CTA */
.final { text-align: center; }

.final__box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 6vw, 56px);
  box-shadow: var(--shadow);
}

.final__title { font-size: clamp(1.6rem, 5vw, 2.3rem); }

.final__text { color: var(--muted); max-width: 46ch; margin-inline: auto 46ch; margin-inline: auto; }

.final .btn { margin-top: 18px; }

/* Back to top */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(20, 40, 48, 0.28);
  z-index: 30;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.15s ease;
}

.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.to-top:hover { background: var(--primary-strong); }

/* Lightbox */
.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 24, 28, 0.82);
  backdrop-filter: blur(4px);
  animation: lightbox-in 0.18s ease;
}

@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox__img {
  max-width: min(92vw, 460px);
  max-height: 88vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  display: grid;
  place-items: center;
}

.lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }

.review-shot { cursor: zoom-in; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #d9dee6;
  padding-block: 32px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }

.site-footer a:hover { text-decoration: underline; }

.footer-ig {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.footer-ig:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  text-decoration: none;
}

.footer-ig svg { display: block; }

.site-footer__brand { font-weight: 800; }

.site-footer__brand span { color: #ffb9a6; }

.site-footer small { color: #9aa4b2; }

/* Tablet / desktop */
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero__media { order: 0; }
  .hero__subtitle { font-size: 1.2rem; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .pain__grid { grid-template-columns: repeat(2, 1fr); }
  .result__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
  .certs__grid { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .about__grid { grid-template-columns: 0.85fr 1.15fr; }
  .proof__box { grid-template-columns: 0.9fr 1.1fr; align-items: stretch; }
  .proof__media img { max-height: none; }
}

@media (min-width: 1120px) {
  .header-cta-label { display: inline; }
}

/* Decorative animated background */
.hero, .stats, .final { position: relative; overflow: hidden; }
.hero > .container, .stats > .container, .final > .container { position: relative; z-index: 1; }

.hero::before, .hero::after,
.final::before, .final::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

.hero::before { width: 300px; height: 300px; top: -70px; left: -60px; background: radial-gradient(circle, rgba(225, 92, 66, 0.28), transparent 70%); animation: floatA 13s ease-in-out infinite; }
.hero::after { width: 360px; height: 360px; bottom: -120px; right: -70px; background: radial-gradient(circle, rgba(20, 103, 92, 0.22), transparent 70%); animation: floatB 17s ease-in-out infinite; }

.final::before { width: 260px; height: 260px; top: -60px; left: 8%; background: radial-gradient(circle, rgba(20, 103, 92, 0.20), transparent 70%); animation: floatB 15s ease-in-out infinite; }
.final::after { width: 300px; height: 300px; bottom: -100px; right: 6%; background: radial-gradient(circle, rgba(225, 92, 66, 0.22), transparent 70%); animation: floatA 19s ease-in-out infinite; }

.stats::before {
  content: "";
  position: absolute;
  inset: -60%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 44%, rgba(255, 255, 255, 0.12) 50%, transparent 56%);
  animation: drift 55s linear infinite;
}

@keyframes floatA { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(24px, 28px); } }
@keyframes floatB { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-26px, -22px); } }
@keyframes drift { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Fail-safe: keep content visible unless the scroll library is actually running
   (blocked CDN, disabled JS, or reduced motion all leave elements shown). */
html:not(.aos-on) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .pain-card, .result-card, .to-top { transition: none; }
  .hero::before, .hero::after, .final::before, .final::after, .stats::before { animation: none; }
  .marquee__track { animation: none; }
  .btn--primary:hover::after { animation: none; }
}
