/* ==========================================================================
   Sayuri 日本語教室 — landing page

   Visual system matches blog.nihongo-sayuri.com and study.nihongo-sayuri.com:
   coral #E16070 on white and soft pink, Poppins headings over Inter body,
   pill buttons, generously rounded cards. CJK falls through Poppins/Inter to
   Noto Sans JP and Noto Sans TC.
   ========================================================================== */

:root {
  --sakura:       #E16070;
  --sakura-deep:  #C4485A;
  --sakura-soft:  #F79AA6;
  --blush:        #FFF0F3;
  --blush-2:      #FFE5EC;
  --white:        #FFFFFF;
  --ink:          #15171A;
  --ink-70:       rgba(0, 0, 0, 0.7);
  --ink-55:       rgba(0, 0, 0, 0.55);
  --border:       rgba(0, 0, 0, 0.08);
  --border-pink:  rgba(225, 96, 112, 0.22);

  --display: "Poppins", "Noto Sans JP", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;
  --body:    "Inter", "Noto Sans JP", "Noto Sans TC", -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1120px;
  --gut:  clamp(20px, 5vw, 48px);
  --r:    16px;
  --r-lg: 24px;

  --shadow:    0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 34px -16px rgba(196, 72, 90, 0.28);
}

/* ── base ─────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

[hidden] { display: none !important; }

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.skiplink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--sakura);
  color: var(--white);
  padding: 12px 20px;
  font-weight: 600;
}
.skiplink:focus { left: 0; }

/* ── shared type ──────────────────────────────────────────── */

.eyebrow {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sakura);
}

.h2 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(27px, 3.6vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.body {
  margin: 0 0 16px;
  color: var(--ink-70);
  font-size: clamp(15px, 1.3vw, 17px);
}
.body--wide { max-width: 62ch; }

.note {
  margin: 34px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-55);
}

.section { padding-block: clamp(60px, 8.5vw, 104px); }

.section--tint { background: var(--blush); }

/* ── ruby / furigana ──────────────────────────────────────── */

ruby { ruby-position: over; }

/* A zh/en gloss is a single word: keep it centred rather than letting the
   browser distribute its characters across the kanji, the way it should for
   an actual Japanese reading. */
.rt-gloss { display: inline-block; }

rt {
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sakura);
  font-size: 0.34em;
  line-height: 1.5;
  transform: translateY(0.35em);
}

/* ── buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn__meta {
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  opacity: 0.75;
}

.btn--primary {
  background: var(--sakura);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.btn--primary:hover { background: var(--sakura-deep); }

.btn--ghost {
  background: var(--white);
  border-color: var(--border);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--sakura); color: var(--sakura); }

.btn--white {
  background: var(--white);
  color: var(--sakura);
}
.btn--white:hover { background: var(--blush); }

.btn--lg { padding: 17px 34px; font-size: 16.5px; }

/* ── top bar ──────────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sakura);
  color: var(--white);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--white);
  margin-right: auto;
}

.brand__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  flex: none;
}

.brand__name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand__sub {
  margin-left: 9px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.75);
}

.topnav { display: flex; gap: 26px; }

.topnav a {
  font-family: var(--display);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.topnav a:hover {
  color: var(--white);
  border-bottom-color: var(--white);
}

.langswitch {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  overflow: hidden;
}

.langswitch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 500;
  padding: 7px 14px;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.langswitch__btn:hover { color: var(--white); }
.langswitch__btn[aria-pressed="true"] {
  background: var(--white);
  color: var(--sakura);
  font-weight: 600;
}

/* ── hero ─────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--blush) 0%, #FFF8FA 62%, var(--white) 100%);
  padding-block: clamp(48px, 7vw, 88px) clamp(48px, 6vw, 76px);
}

/* 原稿用紙 — a faint manuscript-paper grid, the paper her lessons are written on */
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right,  rgba(225, 96, 112, 0.09) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(to bottom, rgba(225, 96, 112, 0.09) 0 1px, transparent 1px 44px);
  mask-image: radial-gradient(75% 65% at 40% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 65% at 40% 30%, #000 20%, transparent 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: end;
}

.hero__copy { padding-bottom: clamp(8px, 2vw, 28px); }

.hero__eyebrow {
  margin: 0 0 20px;
  font-family: var(--display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sakura);
}

.hero__title {
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero__title rt {
  font-size: 0.26em;
  font-weight: 600;
  transform: translateY(0.55em);
}

/* Keep 「日本語を、」 and 「楽しく。」 whole when the headline wraps on narrow screens. */
.hero__unit { white-space: nowrap; }

.hero__kana { font-size: 0.82em; }

.hero__lead {
  max-width: 40ch;
  margin: 0 0 28px;
  font-size: clamp(15.5px, 1.35vw, 17px);
  line-height: 1.85;
  color: var(--ink-70);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__actions .btn { padding-inline: 22px; }

.hero__figure {
  margin: 0;
  position: relative;
  width: fit-content;
  justify-self: center;
  align-self: end;
}

.hero__figure::before {
  content: "";
  position: absolute;
  inset: auto 0 7% 0;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--blush-2);
}

/* Portrait art: drive it off height so the hero can't grow taller than a screen. */
.hero__img {
  position: relative;
  height: min(52vh, 430px);
  width: auto;
  max-width: 100%;
}

.stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  position: relative;
}

.stats__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-pink);
}

.stats__item dt {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-55);
}

.stats__num {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.stats__unit {
  font-size: 0.78em;
  margin-left: 2px;
  color: var(--sakura);
}

/* ── about ────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: clamp(24px, 3vw, 34px);
}

.card--creds {
  background: linear-gradient(160deg, var(--blush) 0%, var(--white) 65%);
  border-color: var(--border-pink);
  box-shadow: var(--shadow);
}

.creds {
  list-style: none;
  margin: 0;
  padding: 0;
}
.creds li {
  position: relative;
  padding-left: 30px;
  padding-block: 11px;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
}
.creds li:last-child { border-bottom: 0; }
.creds li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sakura) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ── lessons ──────────────────────────────────────────────── */

.lessons {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.card--lesson {
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card--lesson:hover {
  transform: translateY(-4px);
  border-color: var(--border-pink);
  box-shadow: var(--shadow-lg);
}

.card--featured {
  border: 1.5px solid var(--sakura);
  background: linear-gradient(170deg, var(--blush) 0%, var(--white) 55%);
}

.card__flag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sakura);
  color: var(--white);
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.card__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.card__title rt { color: var(--sakura-soft); }

.card__title-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-55);
}

.card__price {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sakura);
}

.card__price-unit {
  margin-left: 6px;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-55);
}

.card__body {
  margin: 0 0 20px;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

.card__link {
  margin-top: auto;
  align-self: flex-start;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 600;
  color: var(--sakura);
  text-decoration: none;
  border-bottom: 2px solid var(--blush-2);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.card__link:hover { color: var(--sakura-deep); border-bottom-color: var(--sakura); }

/* ── reviews ──────────────────────────────────────────────── */

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 34px;
  margin-top: 26px;
  padding: 20px 26px;
  border-radius: var(--r);
  background: var(--white);
  border: 1px solid var(--border-pink);
}

.rating__score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.rating__stars {
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--sakura);
}

.rating__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin: 0;
  padding-left: 30px;
  border-left: 1px solid var(--border);
}

.rating__meta dt {
  font-size: 12.5px;
  color: var(--ink-55);
}

.rating__meta dd {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.reviews {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card--review {
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

.card--review blockquote {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--ink-70);
}

.card--review blockquote::before {
  content: "";
  display: block;
  width: 26px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--sakura);
}

.review__by {
  margin: auto 0 0;
  font-family: var(--display);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.review__meta {
  display: block;
  margin-top: 2px;
  font-family: var(--body);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--ink-55);
}

@media (max-width: 560px) {
  .rating__meta { padding-left: 0; border-left: 0; }
}

/* ── kanji practice book ──────────────────────────────────── */

.book {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.book__visual {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--border-pink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* 漢字練習帳 — the squared practice grid the book is made of */
.book__grid {
  --cell: 62px;
  width: calc(var(--cell) * 3);
  height: calc(var(--cell) * 3);
  display: grid;
  grid-template-columns: repeat(3, var(--cell));
  grid-template-rows: repeat(3, var(--cell));
  border: 2px solid var(--sakura);
  border-radius: 4px;
  overflow: hidden;
}

.book__cell {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-pink);
  font-family: var(--display);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
/* dotted centre guides, the way a practice square is printed */
.book__cell::before,
.book__cell::after {
  content: "";
  position: absolute;
  background-image: linear-gradient(to right, var(--sakura-soft) 50%, transparent 50%);
  background-size: 6px 1px;
  opacity: 0.55;
}
.book__cell::before { left: 8%; right: 8%; height: 1px; }
.book__cell::after {
  top: 8%; bottom: 8%; width: 1px;
  background-image: linear-gradient(to bottom, var(--sakura-soft) 50%, transparent 50%);
  background-size: 1px 6px;
}
.book__cell--ghost { color: var(--blush-2); }

.book__badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--sakura);
  color: var(--white);
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.book__specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
}

.book__specs li {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border-pink);
  font-size: 13.5px;
  font-weight: 500;
}

.book__specs b {
  font-family: var(--display);
  font-weight: 600;
  color: var(--sakura);
}

.book__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.book__price {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ── how to book ──────────────────────────────────────────── */

.section--how { background: var(--white); }

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step {
  padding: 26px 24px 28px;
  border-radius: var(--r);
  background: var(--blush);
}

.step__num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--sakura);
  color: var(--white);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
}

.step__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.step__body {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ink-70);
}

.how__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* ── faq ──────────────────────────────────────────────────── */

.faq {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 78ch;
}

.faq__item { border-bottom: 1px solid var(--border); }

.faq__item summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 19px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::before {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--blush-2);
  color: var(--sakura);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}
.faq__item[open] summary::before { content: "–"; }

.faq__item p {
  margin: 0;
  padding: 0 0 22px 38px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--ink-70);
}

/* ── closing ──────────────────────────────────────────────── */

.closing {
  background: var(--sakura);
  color: var(--white);
  padding-block: clamp(60px, 8vw, 100px);
  text-align: center;
}

.closing__ja {
  margin: 0 0 18px;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(23px, 3.9vw, 40px);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.closing__ja rt { color: rgba(255, 255, 255, 0.82); }

.closing__lead {
  margin: 0 auto 32px;
  max-width: 44ch;
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255, 255, 255, 0.88);
}

/* ── footer ───────────────────────────────────────────────── */

.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding-block: 40px;
  color: var(--ink-55);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 30px;
}

.footer__name {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.footer__sub {
  margin-left: 9px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-55);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-right: auto;
}
.footer__links a {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-70);
  transition: border-color 0.18s ease, color 0.18s ease;
}
.footer__links a:hover { border-color: var(--sakura); color: var(--sakura); }

.footer__note { margin: 0; font-size: 12.5px; }

/* ── page-load sequence ───────────────────────────────────── */

.js .hero__eyebrow,
.js .hero__title,
.js .hero__lead,
.js .hero__actions,
.js .hero__figure,
.js .stats {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.25, 1) forwards;
}
.js .hero__eyebrow { animation-delay: 0.05s; }
.js .hero__title   { animation-delay: 0.16s; }
.js .hero__lead    { animation-delay: 0.34s; }
.js .hero__actions { animation-delay: 0.46s; }
.js .hero__figure  { animation-delay: 0.22s; }
.js .stats         { animation-delay: 0.58s; }

/* furigana written in after the kanji lands */
.js .hero__title rt {
  opacity: 0;
  animation: ink 0.6s ease forwards;
  animation-delay: 0.78s;
}

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes ink {
  from { opacity: 0; transform: translateY(0.85em); }
  to   { opacity: 1; transform: translateY(0.55em); }
}

/* ── responsive ───────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__copy { padding-bottom: 0; }
  .hero__figure { order: -1; }
  .hero__figure::before { inset: auto 0 7% 0; }
  .hero__img { height: min(34vh, 260px); }
  .about { grid-template-columns: 1fr; }
  .book { grid-template-columns: 1fr; }
  .book__visual { aspect-ratio: 16 / 9; }
}

@media (min-width: 1001px) and (max-width: 1180px) {
  .hero__title { font-size: clamp(38px, 5.4vw, 62px); }
}

@media (max-width: 760px) {
  .topnav { display: none; }
  .brand__sub { display: none; }
  .topbar__inner { min-height: 60px; }
  .hero__title { line-height: 1.55; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .book__grid { --cell: 52px; }
  .book__cell { font-size: 28px; }
}

@media (max-width: 420px) {
  .langswitch__btn { padding: 7px 10px; font-size: 11.5px; }
  .stats { flex-direction: column; align-items: stretch; }
}

/* ── motion preferences ───────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__eyebrow,
  .js .hero__title,
  .js .hero__lead,
  .js .hero__actions,
  .js .hero__figure,
  .js .stats,
  .js .hero__title rt {
    animation: none;
    opacity: 1;
    transform: none;
  }
  .js .hero__title rt { transform: translateY(0.55em); }
  .btn:hover, .card--lesson:hover { transform: none; }
  * { transition-duration: 0.01ms !important; }
}

@media print {
  .topbar, .hero__grid { display: none; }
  body { background: #fff; }
}
