/* Reviews, comparison, FAQ and footer. Built on the shared section spec:
   .product-section width, .marketing-heading typography, system font, black titles,
   50% black body copy, large soft radii and the page's sky-blue surfaces. */
.more-section { font-family: var(--ui-font, system-ui, sans-serif); }
:where(.more-section) :where(p, dl, dd, blockquote) { margin: 0; }

/* Reviews */
.reviews-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: var(--marketing-intro-gap);
  color: rgb(0 0 0 / 50%);
  font-size: var(--marketing-intro-size);
  line-height: 1.6;
}
.reviews-pill {
  padding: 3px 12px;
  border-radius: 999px;
  background: #e5f2ff;
  color: #0b6fd6;
  font-size: max(12px, calc(var(--marketing-intro-size) - 3px));
  font-weight: 600;
  line-height: 1.7;
}
/* Reviews wall: a light wireframe. Two full-width rows on hairlines, cells split by
   dashed rules, the lower row offset by half a cell and drifting the other way. */
#reviews.product-section { width: 100%; }
#reviews .marketing-heading { width: min(75%, 1440px); }
.reviews-marquee { --cell: clamp(300px, 29.8vw, 572px); border-bottom: 1px solid #e3e6ec; }
.reviews-row { overflow: hidden; border-top: 1px solid #e3e6ec; }
.reviews-track {
  display: flex;
  width: max-content;
  animation: reviews-drift 64s linear infinite;
}
/* Each track repeats its three reviews four times; moving by half its width loops seamlessly. */
@keyframes reviews-drift { to { transform: translateX(-50%); } }
.reviews-row:nth-child(2) .reviews-track { margin-left: calc(var(--cell) * -.5); animation-direction: reverse; }
.reviews-row:focus-within .reviews-track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .reviews-row:hover .reviews-track { animation-play-state: paused; }
}
.review-cell {
  display: flex;
  flex: none;
  flex-direction: column;
  width: var(--cell);
  min-height: clamp(280px, 22vw, 420px);
  padding: clamp(26px, 2.9vw, 56px) clamp(22px, 2.5vw, 48px);
  border-left: 1px dashed #d9dde5;
}
.review-cell-rating { color: #000; font-size: clamp(max(12px, calc(13px * var(--fl, 0))), max(0.73vw, calc(14 * var(--type-text) * var(--fl, 0))), 14px); letter-spacing: .14em; line-height: 1; }
.review-cell-rating i { color: rgb(0 0 0 / 16%); font-style: normal; }
.review-cell h3 { margin-top: clamp(14px, 1.15vw, 22px); color: #000; font-size: clamp(max(21px, calc(21px * var(--fl, 0))), max(1.67vw, calc(32 * var(--type-title) * var(--fl, 0))), 32px); font-weight: 700; line-height: 1.4; letter-spacing: -.04em; }
.review-cell blockquote { margin-top: clamp(8px, .73vw, 14px); color: rgb(0 0 0 / 58%); font-size: clamp(max(14px, calc(16px * var(--fl, 0))), max(0.89vw, calc(17 * var(--type-text) * var(--fl, 0))), 17px); line-height: 1.8; text-wrap: pretty; }
.review-cell-person { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: clamp(20px, 1.9vw, 36px); }
.review-cell-avatar {
  display: block;
  flex: none;
  width: clamp(38px, 2.3vw, 44px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--tint);
  object-fit: cover;
}
.review-cell-name { color: #000; font-size: clamp(max(14px, calc(16px * var(--fl, 0))), max(0.89vw, calc(17 * var(--type-text) * var(--fl, 0))), 17px); font-weight: 700; line-height: 1.4; }
.review-cell-purpose { color: rgb(0 0 0 / 50%); font-size: clamp(max(12px, calc(13px * var(--fl, 0))), max(0.73vw, calc(14 * var(--type-text) * var(--fl, 0))), 14px); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  /* No drift: each row becomes a strip the reader scrolls sideways; the repeats are dropped. */
  .reviews-row { overflow-x: auto; }
  .reviews-track { animation: none; }
  .reviews-row:nth-child(2) .reviews-track { margin-left: 0; }
  .review-cell[aria-hidden="true"] { display: none; }
}

/* Comparison geometry follows Figma 42282:115011 at the 1440px design width. */
#compare {
  container-type: inline-size;
  --compare-u: calc(100cqi / 1440);
}
#compare .marketing-heading { margin-bottom: calc(107.5 * var(--compare-u)); }
.compare-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: calc(10 * var(--compare-u));
}
.compare-option {
  display: flex;
  flex-direction: column;
  min-height: calc(827 * var(--compare-u));
  padding: calc(76 * var(--compare-u)) calc(52 * var(--compare-u)) calc(52 * var(--compare-u));
  border-radius: calc(52 * var(--compare-u));
}
.compare-option-midoo {
  background: linear-gradient(180deg, rgb(102 183 255 / 30%) 0%, rgb(193 226 255 / 30%) 35.442%, rgb(229 242 255 / 30%) 67.629%, rgb(243 247 255 / 30%) 87.335%);
}
#compare .compare-name {
  display: flex;
  align-items: flex-start;
  min-height: calc(109 * var(--compare-u));
  color: rgb(0 0 0 / 70%);
  font-size: calc(24 * var(--compare-u));
  font-weight: 510;
  line-height: 1;
}
.compare-option-human .compare-name { padding-top: calc(7 * var(--compare-u)); }
.compare-name img {
  display: block;
  width: calc(118.902 * var(--compare-u));
  height: auto;
}
.compare-stat, .compare-list {
  background: url("assets/compare/divider.svg") top left / 100% calc(1 * var(--compare-u)) no-repeat;
}
.compare-stat {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: calc(16 * var(--compare-u));
  min-height: calc(128 * var(--compare-u));
  padding-top: calc(10 * var(--compare-u));
}
.compare-figure {
  display: flex;
  align-items: baseline;
  gap: calc(8 * var(--compare-u));
  color: #000;
  white-space: nowrap;
}
.compare-figure strong {
  font-size: calc(80 * var(--compare-u));
  font-weight: 860;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: calc(-1.9569 * var(--compare-u));
}
.compare-option-human .compare-stat:nth-of-type(2) .compare-figure strong {
  font-size: calc(63 * var(--compare-u));
  font-weight: 510;
  line-height: calc(80 * var(--compare-u));
}
.compare-figure sup {
  font-size: calc(32 * var(--compare-u));
  font-weight: 590;
  line-height: calc(28 * var(--compare-u));
  letter-spacing: calc(-.48 * var(--compare-u));
  vertical-align: baseline;
}
.compare-stat-label {
  padding-top: calc(44 * var(--compare-u));
  color: rgb(0 0 0 / 70%);
  font-size: calc(24 * var(--compare-u));
  line-height: 1.2;
  text-align: right;
}
.compare-list {
  display: grid;
  gap: calc(16 * var(--compare-u));
  margin: 0;
  padding: calc(30 * var(--compare-u)) 0 0;
  list-style: none;
}
.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: calc(4 * var(--compare-u));
  color: rgb(0 0 0 / 70%);
  font-size: calc(20 * var(--compare-u));
  line-height: calc(28 * var(--compare-u));
}
.compare-list li::before {
  flex: none;
  width: calc(25 * var(--compare-u));
  height: calc(25 * var(--compare-u));
  margin-top: calc(1.5 * var(--compare-u));
  background: url("assets/compare/check.svg") center / contain no-repeat;
  content: "";
}
.compare-option-human .compare-list li::before {
  --compare-cross-stroke: calc(1.136 * var(--compare-u));
  border: 0;
  background:
    linear-gradient(45deg, transparent calc(50% - var(--compare-cross-stroke)), currentColor 0 calc(50% + var(--compare-cross-stroke)), transparent 0),
    linear-gradient(-45deg, transparent calc(50% - var(--compare-cross-stroke)), currentColor 0 calc(50% + var(--compare-cross-stroke)), transparent 0);
  background-position: center;
  background-size: calc(12 * var(--compare-u)) calc(12 * var(--compare-u));
  background-repeat: no-repeat;
}
.compare-option .button {
  align-self: flex-start;
  gap: calc(10 * var(--compare-u));
  min-height: calc(52 * var(--compare-u));
  margin-top: calc(56 * var(--compare-u));
  padding-inline: calc(26 * var(--compare-u));
  background: #000;
  color: #fff;
  font-size: calc(16 * var(--compare-u));
  line-height: 1.6;
}
.compare-option .button img {
  width: calc(22 * var(--compare-u));
  height: auto;
}
@media (hover: hover) and (pointer: fine) {
  .compare-option .button:hover { background: #252525; }
}
@media (min-width: 741px) and (max-width: 1100px) {
  #compare.product-section { width: calc(100% - 48px); }
  .compare-option { padding-inline: calc(40 * var(--compare-u)); }
  .compare-stat-label { font-size: max(13px, calc(22 * var(--compare-u))); }
  .compare-list li { font-size: max(13px, calc(20 * var(--compare-u))); line-height: 1.45; }
  .compare-option .button { min-height: 44px; font-size: 13px; }
}
@media (max-width: 740px) {
  #compare { --compare-u: clamp(.62px, calc(100cqi / 715), .85px); }
  #compare .marketing-heading { margin-bottom: var(--marketing-content-gap); }
  .compare-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 700px; margin-inline: auto; }
  .compare-option { min-height: auto; padding: 30px clamp(18px, 6vw, 44px); }
  #compare .compare-name { min-height: 58px; font-size: max(16px, calc(24 * var(--compare-u))); }
  .compare-stat-label { padding-top: calc(28 * var(--compare-u)); font-size: max(14px, calc(20 * var(--compare-u))); }
  .compare-figure strong { font-size: calc(64 * var(--compare-u)); }
  .compare-figure sup { font-size: calc(26 * var(--compare-u)); }
  .compare-option-human .compare-stat:nth-of-type(2) .compare-figure strong { font-size: calc(46 * var(--compare-u)); }
  .compare-list li { font-size: max(14px, calc(20 * var(--compare-u))); line-height: 1.4; }
  .compare-option .button { min-height: 44px; font-size: 14px; }
}

/* FAQ */
.faq-list { width: min(100%, 920px); margin-inline: auto; border-top: 1px solid rgb(0 0 0 / 10%); }
.faq-list details { border-bottom: 1px solid rgb(0 0 0 / 10%); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: clamp(18px, 1.35vw, 26px);
  color: #000;
  font-size: clamp(max(18px, calc(18px * var(--fl, 0))), max(1.3vw, calc(25 * var(--type-title) * var(--fl, 0))), 25px);
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.03em;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  flex: none;
  width: 14px;
  height: 14px;
  background: linear-gradient(#000 0 0) center / 100% 2px no-repeat, linear-gradient(#000 0 0) center / 2px 100% no-repeat;
  content: "";
  transition: transform .24s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:focus-visible { outline: 2px solid #0388ff; outline-offset: 4px; border-radius: 6px; }
.faq-answer { max-width: 780px; padding-bottom: clamp(18px, 1.35vw, 26px); color: rgb(0 0 0 / 60%); font-size: clamp(max(14px, calc(16px * var(--fl, 0))), max(0.89vw, calc(17 * var(--type-text) * var(--fl, 0))), 17px); line-height: 1.85; text-wrap: pretty; }
.faq-answer a { color: #0b6fd6; text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
#product + .site-footer {
  margin-block-start: clamp(24px, 4svh, 52px);
}

.site-footer {
  background: radial-gradient(ellipse 82% 94% at 50% 118%, #8fcaff, #d9eeff 58%, transparent 100%), #fff;
  color: #10182a;
  font-family: var(--ui-font);
}
.site-footer-inner {
  width: min(calc(100% - 64px), 1320px);
  margin-inline: auto;
  padding-block: var(--feature-padding) clamp(26px, 3.2vw, 60px);
}
.site-footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 3.15fr) repeat(3, minmax(0, 1fr));
}
.site-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-inline-end: clamp(22px, 3vw, 56px);
}
.site-footer-title,
.site-footer h3 {
  font-weight: 650;
  letter-spacing: -.025em;
}
.site-footer-title {
  margin: 0;
  font-size: clamp(max(34px, calc(34px * var(--fl, 0))), max(4.5vw, calc(76 * var(--type-title) * var(--fl, 0))), 76px);
  line-height: 1.02;
}
.site-footer-tagline {
  margin-top: 18px;
  color: #314965;
  font-size: clamp(max(15px, calc(16px * var(--fl, 0))), max(1.2vw, calc(20 * var(--type-text) * var(--fl, 0))), 20px);
  line-height: 1.45;
}
.site-footer-contact {
  display: grid;
  justify-items: start;
  gap: 14px;
  margin-top: clamp(32px, 4vw, 72px);
  font-size: 15px;
  line-height: 1.5;
}
.site-footer-contact img { width: 84px; height: auto; }
.site-footer-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding-inline: clamp(12px, 1.5vw, 28px);
  border-inline-start: 1px solid rgb(16 24 42 / 45%);
}
.site-footer h3 { margin: 0; font-size: clamp(max(24px, calc(24px * var(--fl, 0))), max(2.25vw, calc(39 * var(--type-title) * var(--fl, 0))), 39px); line-height: 1; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer li { font-size: clamp(max(14px, calc(16px * var(--fl, 0))), max(1vw, calc(17 * var(--type-text) * var(--fl, 0))), 17px); line-height: 1.5; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer-bottom { margin-top: clamp(36px, 5.5vw, 96px); color: #314965; font-size: 13px; }

@media (max-width: 930px) {
  #reviews .marketing-heading { width: calc(100% - 48px); }
}
@media (max-width: 700px) {
  #reviews.product-section { width: 100%; }
  #reviews .marketing-heading { width: min(calc(100% - 32px), 455px); }
  .site-footer-inner { width: min(calc(100% - 40px), 540px); }
  .site-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .site-footer-brand { grid-column: 1 / -1; padding-inline-end: 0; }
  .site-footer-column { gap: 16px; padding-inline: 9px; }
  .site-footer h3 { font-size: clamp(16px, 5vw, 24px); }
}
@media (prefers-reduced-motion: reduce) { .faq-list summary::after { transition: none; } }

/* The disclosure stays, as a quiet footnote under the wall instead of beside the title. */

/* Figma 42294:115097. Both wings rotate around their inside edges,
   so those edges stay the same height as the center card. */
@property --games-unit {
  syntax: '<length>';
  inherits: true;
  initial-value: 1px;
}
#games { width: 100%; }
#games .section-heading { width: min(calc(100% - 48px), 1440px); }
.games-wall {
  container-type: inline-size;
  overflow: clip;
}
.games-stage {
  --games-unit: min(1px, calc(.7px + 100cqw / 6400));
  --g: var(--games-unit);
  position: relative;
  width: calc(1537 * var(--g));
  height: calc(782 * var(--g));
  margin-inline: auto;
  perspective: calc(1800 * var(--g));
  perspective-origin: center;
}
.games-panel {
  --game-width: 848;
  --game-x: 345;
  --game-angle: 0deg;
  --game-pivot-offset: .5;
  /* Keep the same inner-edge pivot at rest while interpolating the center. */
  --game-center-x: calc(var(--game-x) + var(--game-width) * var(--game-pivot-offset) * cos(var(--game-angle)));
  --game-center-z: calc(-1 * var(--game-width) * var(--game-pivot-offset) * sin(var(--game-angle)));
  position: absolute;
  top: calc(60 * var(--g));
  left: 0;
  width: calc(var(--game-width) * var(--g));
  height: calc(662 * var(--g));
  overflow: clip;
  border-radius: calc(48 * var(--g));
  /* Safari 里做了 3D 旋转的卡片，圆角 + overflow 裁不住单独绘制的子层（底部的模糊封面），
     图会从圆角处漏出来变成直角；clip-path 按整张卡片最终画面裁，两种浏览器都可靠 */
  -webkit-clip-path: inset(0 round calc(48 * var(--g)));
  clip-path: inset(0 round calc(48 * var(--g)));
  background: #252525;
  container-type: inline-size;
  transform: translate3d(calc((var(--game-center-x) - var(--game-width) / 2) * var(--g)), 0, calc(var(--game-center-z) * var(--g))) rotateY(var(--game-angle));
}
@media (width > 700px) and (prefers-reduced-motion: no-preference) {
  .games-stage[data-games-interactive] .games-panel:not([data-game-wrap]) {
    transition: transform 480ms cubic-bezier(.32, .08, .22, 1), width 480ms cubic-bezier(.32, .08, .22, 1);
  }
}
.games-panel[data-game-wrap-copy] { pointer-events: none; }
.games-panel[data-game-position="center"] { z-index: 3; }
.games-panel[data-game-position="left"],
.games-panel[data-game-position="right"] { z-index: 2; }
.games-panel[data-game-position="left"] {
  --game-width: 345.2;
  --game-x: 325;
  --game-angle: 53.14deg;
  --game-pivot-offset: -.5;
}
.games-panel[data-game-position="right"] {
  --game-width: 345.2;
  --game-x: 1212;
  --game-angle: -53.14deg;
}
.games-panel[data-game-position="far-left"] {
  --game-width: 252.3;
  --game-x: -20;
  --game-angle: 50.28deg;
  --game-pivot-offset: -.5;
}
.games-panel[data-game-position="far-right"] {
  --game-width: 252.3;
  --game-x: 1557;
  --game-angle: -50.28deg;
}
.games-cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Paint only the lower part of each blur while preserving the original crop. */
.games-panel[data-game-cover]::before,
.games-panel[data-game-cover]::after {
  position: absolute;
  inset: var(--game-blur-inset) 0 0;
  z-index: 1;
  background-image: var(--game-cover-image);
  background-position: center calc(50% - var(--game-blur-inset) / 2);
  background-size: max(100cqw, calc(662 * var(--g) * var(--game-cover-aspect))) auto;
  background-repeat: no-repeat;
  content: "";
  pointer-events: none;
}
.games-panel[data-game-cover]::before {
  --game-blur-inset: calc(318 * var(--g));
  filter: blur(calc(8 * var(--g)));
  mask-image: linear-gradient(transparent 27%, #000 69.2%);
}
.games-panel[data-game-cover]::after {
  --game-blur-inset: calc(364 * var(--g));
  filter: blur(calc(25 * var(--g)));
  mask-image: linear-gradient(transparent 40%, #000 100%);
}
.games-caption {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  isolation: isolate;
  display: grid;
  align-content: end;
  gap: calc(12 * var(--g));
  min-height: calc(159 * var(--g));
  padding: calc(28 * var(--g)) min(8cqw, calc(36 * var(--g)));
  color: #fff;
  pointer-events: none;
}
.games-caption::before {
  --game-shade: color-mix(in srgb, var(--game-cover-color, #555) 52%, #000);
  position: absolute;
  inset: -45% 0 0;
  z-index: -1;
  background: linear-gradient(transparent, color-mix(in srgb, var(--game-shade) 65%, transparent) 65%, var(--game-shade));
  content: "";
}
.games-caption h3 {
  margin: 0;
  font-size: min(8cqw, calc(39.145 * var(--g)));
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.0026em;
}
.games-caption p {
  color: rgb(255 255 255 / 60%);
  font-size: min(6cqw, calc(29.25 * var(--g)));
  line-height: 1.3333;
  letter-spacing: -.0026em;
}
.games-select {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: pointer;
}
.games-select:focus-visible { outline-offset: -4px; }
.games-select[aria-pressed="true"] { cursor: default; }
.games-picker { display: none; }

@media (max-width: 700px) {
  #games { width: min(calc(100% - 32px), 455px); }
  #games .section-heading { width: 100%; }
  .games-stage {
    --games-unit: calc(100cqw / 848);
    display: grid;
    gap: 12px;
    width: 100%;
    height: auto;
    perspective: none;
  }
  .games-stage .games-panel { position: relative; inset: auto; width: 100%; transform: none; }
  .games-stage[data-games-interactive] .games-panel:not([data-game-position="center"]),
  .games-select { display: none; }
  .games-caption h3 { font-size: max(16px, calc(39.145 * var(--g))); }
  .games-caption p { font-size: max(12px, calc(29.25 * var(--g))); }
  .games-picker:not([hidden]) { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
  .games-picker button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #e1e4e9;
    border-radius: 999px;
    background: #fff;
    color: #121a2e;
    font: 600 13px var(--ui-font);
    cursor: pointer;
  }
  .games-picker button[aria-pressed="true"] { border-color: #121a2e; background: #121a2e; color: #fff; }
}
/* Set the space between sections independently of the spacing inside them. */
:root {
  --feature-padding: clamp(40px, 4.4vw, 84px);
  --feature-heading-gap: max(36px, var(--marketing-content-gap));
}
#product {
  --feature-section-padding: max(48px, var(--feature-padding));
}
#product > :is(#why-custom, #course-flow, #first-lesson, #teachers, #feedback, #review, #games, #reviews, #compare, #faq) {
  padding-block: var(--feature-section-padding);
}
#product > :is(#teachers, #review, #games, #reviews, #compare, #faq) > .marketing-heading {
  margin-bottom: var(--feature-heading-gap);
}
#product > #teachers {
  padding-block-start: max(var(--feature-section-padding), calc(var(--teacher-cloud-offset) + 24px));
  overflow: clip;
}

#feedback .feedback-v2-heading {
  margin-bottom: var(--feature-heading-gap);
}
#feedback .feedback-v2-cards { gap: var(--feature-padding); }

#reviews .review-cell {
  min-height: clamp(236px, calc((100svh - 200px) / 2), 420px);
  padding-block: clamp(18px, 3svh, 36px);
}
#reviews .review-cell-person { padding-top: clamp(16px, 2.5svh, 28px); }

@media (min-width: 701px) {
  #games .games-stage {
    --games-unit: min(1px, calc(100cqw / 1920), max(.45px, calc((100svh - 205px) / 782)));
  }
}
@media (min-width: 741px) {
  #compare .compare-option {
    min-height: min(calc(827 * var(--compare-u)), max(calc(755 * var(--compare-u)), calc(100svh - 215px)));
    padding-block: clamp(24px, 5.5svh, calc(76 * var(--compare-u)))
      clamp(20px, 3svh, calc(52 * var(--compare-u)));
  }
}
@media (min-width: 931px) {
  #product {
    --feature-section-padding: clamp(84px, 12svh, 144px);
  }
  #product > :is(#why-custom, #teachers, #feedback, #review, #games, #reviews, #compare, #faq) {
    min-block-size: 100svh;
    align-content: center;
  }
  #teachers .tutors-portraits { max-width: max(540px, calc((100svh - 260px) * 1138 / 540)); }
  #feedback.feedback-v2, #review.product-section {
    max-width: var(--feedback-view-width, max(760px, calc((100svh - 278px) * 1440 / 808)));
  }
  #games, #compare { --panel-fit-height: var(--midoo-panel-height, calc(100svh - 330px)); }
  /* Leave room for the rolled faces that project above and below the game stage. */
  #games .games-wall { padding-block: 20px; }
  #games .games-stage {
    --games-unit: min(1px, calc(100cqw / 1920), max(.45px, calc((var(--panel-fit-height) - 40px) / 782)));
  }
  #compare.product-section { max-width: max(900px, calc(var(--panel-fit-height) * 1440 / 827)); }
  #compare .compare-option {
    --compare-compression: max(0px, calc(827 * var(--compare-u) - var(--panel-fit-height)));
    min-height: min(calc(827 * var(--compare-u)), max(calc(755 * var(--compare-u)), var(--panel-fit-height)));
    padding-block: max(24px, calc(min(5.5svh, 76 * var(--compare-u)) - .4 * var(--compare-compression)))
      max(20px, calc(min(3svh, 52 * var(--compare-u)) - .2 * var(--compare-compression)));
  }
  #compare .compare-option .button {
    margin-top: max(22px, calc(56 * var(--compare-u) - .3 * var(--compare-compression)));
  }
}
@media (min-width: 931px) and (max-height: 760px) {
  #reviews .review-cell {
    min-height: 220px;
    padding-block: 15px;
  }
  #reviews .review-cell h3 { margin-top: 10px; line-height: 1.25; }
  #reviews .review-cell blockquote { margin-top: 8px; line-height: 1.6; }
  #reviews .review-cell-person { padding-top: 14px; }
  #faq .faq-list summary { min-height: 44px; padding-block: 14px; }
}

@media (max-width: 700px) {
  :root {
    --feature-heading-gap: 32px;
  }
}

/* 手机：游戏改成左右滑动的轮播（games-flow.js 末尾加圆点和自动轮播）。
   五张卡片排成一排，右边露出下一张；不再用下面那排药丸按钮切换。 */
@media (max-width: 700px) {
  #games .games-stage {
    display: flex;
    gap: 12px;
    width: calc(100% + 32px);
    margin-inline: -16px;
    padding: 0 16px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
    contain: inline-size;
  }
  #games .games-stage::-webkit-scrollbar { display: none; }
  #games .games-stage .games-panel,
  #games .games-stage[data-games-interactive] .games-panel:not([data-game-position="center"]) {
    display: block;
    flex: 0 0 84%;
    height: auto;
    aspect-ratio: 848 / 662;
    scroll-snap-align: start;
  }
  #games .games-stage .games-panel[data-game-wrap-copy] { display: none; }
  #games .games-picker:not([hidden]) { display: none; }
  #games .games-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
  #games .games-dots button {
    width: 6px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgb(18 26 46 / 20%);
    cursor: pointer;
    transition: width .3s ease, background-color .3s ease;
  }
  #games .games-dots button[aria-current="true"] { width: 18px; background: #121a2e; }
  /* 圆点本身很小，点按区域放大到 24px */
  #games .games-dots button { position: relative; }
  #games .games-dots button::after { content: ""; position: absolute; inset: -9px -4px; }
}
#games .games-dots { display: none; }
@media (max-width: 700px) { #games .games-dots { display: flex; } }

/* 手机：游戏不再左右滑动轮播，五张直接排开：第一张整宽，后面四张两列（games-flow.js 的手机轮播已停用） */
@media (max-width: 700px) {
  #games .games-stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-inline: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
    contain: none;
  }
  #games .games-stage .games-panel,
  #games .games-stage[data-games-interactive] .games-panel:not([data-game-position="center"]) {
    display: block;
    flex: none;
    width: auto;
    height: auto;
    aspect-ratio: 4 / 5;
    scroll-snap-align: none;
  }
  #games .games-stage .games-panel:not([data-game-wrap-copy]):first-child { grid-column: 1 / -1; aspect-ratio: 848 / 560; }
  #games .games-stage .games-panel[data-game-wrap-copy] { display: none; }
  #games .games-dots { display: none; }
}

/* 手机：板块之间更紧凑——上下留白统一收小（原来 48–72px，老师板块顶部原来 163px）。
   （曾经每个板块垫一块整宽浅灰底，已去掉，页面全白；间距保留。） */
@media (max-width: 700px) {
  body.home-figma-hero #product > section:is(#course-flow, #first-lesson, #teachers, #feedback, #review, #games, #reviews, #compare, #faq) {
    margin-block: 0 12px;
    padding-block: 40px;
  }
  body.home-figma-hero #product > section:first-child { margin-top: 12px; }
  /* 即时反馈卡片的文字区用白底（定制课程、课堂的卡片照这个样式做的，三者一致） */
  #product #feedback .feedback-v2-card .feedback-v2-card-heading { background: #fff; }
}

/* 手机：圆角统一成两档——整宽的大卡片 28px，两列的小卡片和评论卡片 20px */
@media (max-width: 700px) {
  #product #course-flow .course-visual,
  #product #teachers .tutor-portrait,
  #product #feedback .feedback-v2-card,
  #product #review .review-card,
  #product #compare .compare-option { border-radius: 28px; }
  #product #games .games-stage .games-panel,
  #product #reviews .review-cell { border-radius: 20px; }
  #product #games .games-stage .games-panel { -webkit-clip-path: inset(0 round 20px); clip-path: inset(0 round 20px); }
  #product #games .games-stage .games-panel:not([data-game-wrap-copy]):first-child {
    border-radius: 28px;
    -webkit-clip-path: inset(0 round 28px);
    clip-path: inset(0 round 28px);
  }
}
