:root {
  --green-1: #effaeb;
  --green-2: #d2f7c6;
  --green-3: #a0d98d;
  --green-4: #5dc43b;
  --green-5: #4aa12d;
  --green-6: #155200;
  --bean-brand: #78c562;
  --ink: #2f2a1f;
  --text: #404040;
  --muted: #666666;
  --quiet: #b2b2b2;
  --line: #e0dfdf;
  --blue-1: #ebf9ff;
  --blue-4: #33bbff;
  --blue-6: #0c567a;
  --pink-1: #fff0f3;
  --pink-4: #ff7a99;
  --orange-1: #fff3eb;
  --orange-4: #ff9045;
  --white: #ffffff;
  --content-max: 1180px;
  --radius-button: 10px;
  --radius-card: 16px;
  --radius-large: 24px;
  --page-background:
    linear-gradient(180deg, rgba(239, 250, 235, 0.88) 0, rgba(255, 255, 255, 0) 560px),
    var(--white);
  --shadow-soft: 0 12px 36px rgba(64, 64, 64, 0.08);
  --motion-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --motion-standard: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-quick: 160ms;
  --motion-press: 280ms;
  --motion-enter: 600ms;
  --motion-fade: 1000ms;
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--page-background);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-width: 320px;
  background: var(--page-background);
  color: var(--text);
  letter-spacing: 0;
}

.home-main {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.home-decor-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.decor-sprite {
  position: absolute;
  display: block;
  width: var(--w);
  height: var(--h);
  background-image: url("/assets/figma-decor/home-decor-sprite.svg");
  background-repeat: no-repeat;
  background-size: 493px 225px;
  background-position: calc(var(--x) * -1) calc(var(--y) * -1);
  opacity: var(--decor-opacity, 0.6);
  filter: drop-shadow(0 14px 22px rgba(21, 82, 0, 0.1));
  transform: rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
  transform-origin: center;
  animation: decor-drift 5400ms ease-in-out infinite;
  animation-delay: var(--delay, 0ms);
  will-change: translate;
}

.decor-sprite-01 {
  --x: 0px;
  --y: 0px;
  --w: 104px;
  --h: 106px;
}

.decor-sprite-02 {
  --x: 119px;
  --y: 0px;
  --w: 106px;
  --h: 106px;
}

.decor-sprite-03 {
  --x: 0px;
  --y: 119px;
  --w: 106px;
  --h: 106px;
}

.decor-sprite-04 {
  --x: 118px;
  --y: 117px;
  --w: 109px;
  --h: 108px;
}

.decor-sprite-05 {
  --x: 300px;
  --y: 8px;
  --w: 87px;
  --h: 87px;
}

.decor-sprite-06 {
  --x: 402px;
  --y: 8px;
  --w: 87px;
  --h: 87px;
}

.decor-sprite-07 {
  --x: 302px;
  --y: 113px;
  --w: 91px;
  --h: 91px;
}

.decor-sprite-08 {
  --x: 404px;
  --y: 113px;
  --w: 89px;
  --h: 91px;
}

.decor-a {
  top: 116px;
  left: max(18px, calc(50% - 670px));
  --scale: 0.58;
  --rotate: -12deg;
  --decor-opacity: 0.46;
}

.decor-b {
  top: 178px;
  right: max(18px, calc(50% - 676px));
  --scale: 0.72;
  --rotate: 17deg;
  --decor-opacity: 0.5;
  --delay: 400ms;
}

.decor-c {
  top: 430px;
  left: max(-46px, calc(50% - 724px));
  --scale: 0.42;
  --rotate: 9deg;
  --decor-opacity: 0.38;
  --delay: 900ms;
}

.decor-d {
  top: 584px;
  right: max(34px, calc(50% - 535px));
  --scale: 0.56;
  --rotate: -14deg;
  --decor-opacity: 0.44;
  --delay: 1200ms;
}

.decor-e {
  top: 842px;
  left: max(12px, calc(50% - 704px));
  --scale: 0.84;
  --rotate: -7deg;
  --decor-opacity: 0.22;
  --delay: 700ms;
}

.decor-f {
  top: 1088px;
  right: max(14px, calc(50% - 720px));
  --scale: 0.72;
  --rotate: 13deg;
  --decor-opacity: 0.24;
  --delay: 1500ms;
}

.decor-g {
  top: 1370px;
  left: max(26px, calc(50% - 648px));
  --scale: 0.56;
  --rotate: 15deg;
  --decor-opacity: 0.32;
  --delay: 300ms;
}

.decor-h {
  top: 1738px;
  right: max(22px, calc(50% - 650px));
  --scale: 0.66;
  --rotate: -10deg;
  --decor-opacity: 0.36;
  --delay: 1100ms;
}

.home-main > section {
  position: relative;
  z-index: 1;
}

.intro-band::before,
.download-section::before {
  content: "";
  position: absolute;
  pointer-events: none;
  aspect-ratio: 875 / 306;
  background:
    linear-gradient(90deg, transparent 0%, rgba(93, 196, 59, 0.12) 28%, rgba(120, 197, 98, 0.08) 56%, transparent 100%);
  -webkit-mask: url("/assets/doudou-bg-pattern.svg") center / 100% auto no-repeat;
  mask: url("/assets/doudou-bg-pattern.svg") center / 100% auto no-repeat;
}

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

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

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  width: min(calc(100% - 40px), var(--content-max));
  min-height: 64px;
  margin: 16px auto 0;
  padding: 10px 12px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 161, 45, 0.14);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(21, 82, 0, 0.08);
  backdrop-filter: blur(18px);
}

.site-header.compact {
  margin-bottom: 48px;
}

.site-header:not(.compact) {
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--green-6);
  white-space: nowrap;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(74, 161, 45, 0.18);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.site-header:not(.compact) .header-nav {
  justify-content: flex-start;
  margin-right: auto;
}

.app-store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 136px;
  height: 50px;
}

.site-header:not(.compact) .app-store-badge {
  margin-left: auto;
}

.app-store-badge--header {
  width: 109px;
  height: 40px;
}

.app-store-badge img {
  width: 100%;
  height: 100%;
}

.app-store-badge:focus-visible {
  outline: 3px solid rgba(51, 187, 255, 0.48);
  outline-offset: 4px;
  border-radius: 6px;
}

.header-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  transition: color var(--motion-quick), background var(--motion-quick), transform var(--motion-quick);
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--green-6);
  background: var(--green-1);
  transform: translateY(-1px);
}

.text-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform var(--motion-press) var(--motion-spring),
    background var(--motion-quick),
    border-color var(--motion-quick),
    color var(--motion-quick),
    box-shadow var(--motion-quick);
}

.text-button:active {
  transform: scale(0.97);
}

.text-button {
  padding: 0 12px;
  border-radius: 999px;
  color: var(--green-6);
  background: transparent;
}

.text-button:hover,
.text-button:focus-visible {
  background: var(--green-1);
  transform: translateY(-1px);
}

.hero-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 760px;
  padding: 92px 20px 72px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100%, var(--content-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
}

.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  color: var(--ink);
}

.hero-copy h1 span {
  display: block;
}

.hero-lead {
  margin: 28px 0 0;
  max-width: 640px;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.5;
  font-weight: 600;
  color: var(--green-6);
}

.hero-note {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.device-stage {
  position: relative;
  z-index: 1;
  width: min(590px, 92vw);
  height: 650px;
}

.device-screen {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  transform: var(--device-base-transform, none);
  will-change: transform;
}

.device-pad {
  z-index: 1;
  width: min(560px, 84vw);
  top: 18px;
  left: 0;
  --device-base-transform: rotate(-4deg) translateX(8px);
  filter:
    drop-shadow(0 20px 30px rgba(47, 42, 31, 0.1))
    drop-shadow(0 8px 16px rgba(21, 82, 0, 0.07));
  animation: device-pad-float 6200ms ease-in-out infinite;
}

.device-phone {
  z-index: 2;
  width: min(280px, 48vw);
  right: 6px;
  bottom: 22px;
  --device-base-transform: rotate(3deg);
  filter:
    drop-shadow(0 18px 26px rgba(47, 42, 31, 0.12))
    drop-shadow(0 7px 14px rgba(21, 82, 0, 0.08));
  animation: device-phone-float 5400ms ease-in-out infinite;
  animation-delay: -1400ms;
}

.intro-band,
.section-block,
.course-section,
.download-section {
  width: min(calc(100% - 40px), var(--content-max));
  margin: 0 auto;
}

.intro-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px;
  border-radius: var(--radius-large);
  background: var(--green-1);
  border: 1px solid rgba(74, 161, 45, 0.12);
  box-shadow: none;
}

.intro-band::before {
  width: 235%;
  left: -67%;
  top: -28%;
  opacity: 0.28;
  transform: rotate(-4deg);
  background:
    radial-gradient(ellipse at 50% 48%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16) 46%, rgba(255, 255, 255, 0) 74%),
    linear-gradient(90deg, transparent 0%, rgba(93, 196, 59, 0.1) 40%, transparent 100%);
  z-index: 0;
}

.intro-band > div {
  position: relative;
  z-index: 1;
}

.intro-band h2 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.25;
  color: var(--ink);
}

.intro-band p {
  margin: 8px 0 0;
  font-size: clamp(16px, 1.6vw, 20px);
  color: var(--green-6);
  font-weight: 600;
}

.section-block,
.course-section {
  padding: 96px 0 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.15;
  color: var(--ink);
}

.advantage-list {
  display: grid;
  gap: 14px;
}

.advantage-item {
  min-height: 96px;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: var(--radius-large);
  background: var(--white);
  border: 1px solid rgba(64, 64, 64, 0.08);
  box-shadow: inset 0 0 0 1px rgba(64, 64, 64, 0.02);
  transition: transform var(--motion-press) var(--motion-spring), border-color var(--motion-quick), box-shadow var(--motion-quick);
}

.advantage-item:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 161, 45, 0.24);
  box-shadow: 0 16px 34px rgba(21, 82, 0, 0.08);
}

.item-index {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  color: var(--green-4);
  font-variant-numeric: tabular-nums;
}

.advantage-item p {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text);
}

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

.content-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius-large);
  border: 1px solid rgba(64, 64, 64, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--motion-press) var(--motion-spring), box-shadow var(--motion-quick);
}

.content-card::before {
  content: "";
  position: absolute;
  width: 235%;
  aspect-ratio: 875 / 306;
  left: -67%;
  top: -28%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 66%),
    linear-gradient(90deg, transparent, currentColor, transparent);
  -webkit-mask: url("/assets/doudou-bg-pattern.svg") center / 100% auto no-repeat;
  mask: url("/assets/doudou-bg-pattern.svg") center / 100% auto no-repeat;
  opacity: 0.11;
  transform: rotate(-4deg);
}

.content-card > * {
  position: relative;
  z-index: 1;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.content-card.pronunciation {
  background: var(--pink-1);
  color: var(--pink-4);
}

.content-card.reading {
  background: var(--orange-1);
  color: var(--orange-4);
}

.content-card.thinking {
  background: var(--blue-1);
  color: var(--blue-4);
}

.card-symbol {
  width: 62px;
  height: 62px;
  position: relative;
  border-radius: 18px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(64, 64, 64, 0.06);
  overflow: hidden;
}

.card-symbol::before,
.card-symbol::after,
.card-symbol span {
  content: "";
  position: absolute;
  display: block;
}

.symbol-wave::before,
.symbol-wave::after,
.symbol-wave span {
  left: 14px;
  right: 14px;
  height: 4px;
  border-radius: 999px;
  background: var(--pink-4);
}

.symbol-wave::before {
  top: 20px;
  opacity: 0.45;
}

.symbol-wave span {
  top: 29px;
}

.symbol-wave::after {
  top: 38px;
  opacity: 0.28;
}

.symbol-stack::before,
.symbol-stack::after,
.symbol-stack span {
  width: 34px;
  height: 22px;
  left: 14px;
  border: 2px solid var(--orange-4);
  border-radius: 8px;
}

.symbol-stack::before {
  top: 15px;
  opacity: 0.35;
}

.symbol-stack span {
  top: 21px;
  opacity: 0.68;
}

.symbol-stack::after {
  top: 27px;
  background: rgba(255, 144, 69, 0.12);
}

.symbol-grid::before {
  width: 28px;
  height: 28px;
  left: 17px;
  top: 17px;
  background-image:
    linear-gradient(var(--blue-4) 2px, transparent 2px),
    linear-gradient(90deg, var(--blue-4) 2px, transparent 2px);
  background-size: 13px 13px;
  opacity: 0.78;
}

.symbol-grid span {
  width: 18px;
  height: 18px;
  right: 11px;
  bottom: 11px;
  border: 2px solid var(--blue-4);
  border-radius: 7px;
  opacity: 0.32;
}

.content-card h3 {
  margin: 28px 0 8px;
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.35;
  color: var(--ink);
}

.content-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.download-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 96px;
  margin-bottom: 72px;
  min-height: 240px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 28px;
  color: var(--green-6);
  background:
    linear-gradient(135deg, rgba(239, 250, 235, 0.96), rgba(210, 247, 198, 0.8)),
    var(--green-1);
  border: 1px solid rgba(74, 161, 45, 0.16);
  box-shadow: none;
}

.download-section::before {
  width: 220%;
  left: -64%;
  top: -34%;
  opacity: 0.28;
  transform: rotate(-5deg);
  background:
    radial-gradient(ellipse at 48% 52%, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.16) 48%, rgba(255, 255, 255, 0) 76%),
    linear-gradient(90deg, transparent 0%, rgba(74, 161, 45, 0.12) 42%, rgba(51, 187, 255, 0.04) 62%, transparent 100%);
  z-index: 0;
}

.download-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.download-section > .app-store-badge {
  position: relative;
  z-index: 1;
}

.download-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 250, 235, 0.72));
  border: 1px solid rgba(74, 161, 45, 0.16);
  box-shadow: none;
  flex: none;
}

.download-mark img {
  width: 62px;
  height: 60px;
}

.download-section h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.2;
}

.download-section p {
  margin: 8px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

.site-footer {
  width: min(calc(100% - 40px), var(--content-max));
  min-height: 90px;
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--quiet);
  font-size: 13px;
  border-top: 1px solid rgba(64, 64, 64, 0.08);
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
}

.footer-links a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: var(--green-6);
}

.legal-page {
  background: var(--white);
}

.legal-shell {
  width: min(calc(100% - 40px), 920px);
  margin: 0 auto 72px;
}

.legal-document {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  background: var(--white);
  border: 1px solid rgba(64, 64, 64, 0.08);
  box-shadow: var(--shadow-soft);
}

.legal-document h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  color: var(--ink);
}

.legal-meta {
  margin: 16px 0 36px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-document section + section {
  margin-top: 34px;
}

.legal-document h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.35;
  color: var(--green-6);
}

.legal-document p,
.legal-document li {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
}

.legal-document p {
  margin: 0 0 12px;
}

.legal-document ul {
  margin: 0;
  padding-left: 1.25em;
}

.contact-line {
  padding: 14px 16px;
  border-radius: var(--radius-button);
  background: var(--green-1);
  color: var(--green-6) !important;
  font-weight: 700;
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--motion-enter) var(--motion-standard),
    transform var(--motion-enter) var(--motion-standard);
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes decor-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

@keyframes device-pad-float {
  0%,
  100% {
    transform: var(--device-base-transform);
  }
  50% {
    transform: var(--device-base-transform) translateY(-10px);
  }
}

@keyframes device-phone-float {
  0%,
  100% {
    transform: var(--device-base-transform);
  }
  50% {
    transform: var(--device-base-transform) translateY(-8px);
  }
}

@media (max-width: 860px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 24px), var(--content-max));
    margin-top: 10px;
    border-radius: 16px;
  }

  .site-header:not(.compact) {
    justify-content: space-between;
  }

  .header-nav {
    display: none;
  }

  .site-header.compact .header-nav {
    display: flex;
    margin-left: auto;
    gap: 2px;
    font-size: 13px;
  }

  .site-header.compact .header-nav a {
    padding: 0 8px;
  }

  .hero-section {
    padding: 60px 20px 52px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .device-stage {
    width: min(620px, 96vw);
    height: 540px;
  }

  .device-pad {
    width: min(540px, 94vw);
    left: 50%;
    top: 12px;
    --device-base-transform: translateX(-55%) rotate(-4deg);
  }

  .device-phone {
    width: min(238px, 54vw);
    right: 8%;
    bottom: 14px;
  }

  .decor-a {
    top: 226px;
    left: -56px;
    --scale: 0.38;
  }

  .decor-b {
    top: 482px;
    right: -20px;
    --scale: 0.48;
  }

  .decor-c {
    top: 790px;
    left: -24px;
    --scale: 0.4;
  }

  .decor-d {
    top: 1120px;
    right: -28px;
    --scale: 0.46;
  }

  .decor-g {
    top: 1510px;
    left: -28px;
    --scale: 0.5;
  }

  .decor-e,
  .decor-f,
  .decor-h {
    display: none;
  }

  .intro-band::before,
  .download-section::before {
    width: 250%;
    left: -76%;
    top: -30%;
  }

  .section-block,
  .course-section {
    padding-top: 72px;
  }

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

  .content-card {
    min-height: 210px;
  }

  .download-section {
    flex-direction: column;
    align-items: stretch;
    margin-top: 72px;
  }

  .download-copy {
    align-items: flex-start;
  }

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

  .footer-links {
    justify-content: flex-start;
    text-align: left;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 58px;
    padding: 8px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
  }

  .app-store-badge--header {
    width: 109px;
    height: 40px;
  }

  .hero-section {
    padding: 48px 20px 30px;
  }

  .hero-inner {
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 18px;
    line-height: 1.45;
  }

  .hero-note {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    gap: 12px;
    margin-top: 24px;
  }

  .hero-visual {
    min-height: 340px;
  }

  .device-stage {
    width: min(350px, calc(100vw - 40px));
    height: 350px;
  }

  .device-pad {
    width: 330px;
    left: 50%;
    top: 24px;
    --device-base-transform: translateX(-50%) rotate(-4deg);
  }

  .device-phone {
    width: min(172px, 45vw);
    right: 0;
    bottom: -12px;
  }

  .decor-a {
    top: 230px;
    left: -62px;
  }

  .decor-b {
    top: 514px;
    right: -40px;
  }

  .decor-c {
    top: 842px;
    left: auto;
    right: -34px;
  }

  .decor-d {
    top: 1160px;
    right: auto;
    left: -38px;
  }

  .decor-g {
    top: 1640px;
    left: auto;
    right: -38px;
  }

  .text-button {
    width: 100%;
  }

  .intro-band,
  .section-block,
  .course-section,
  .download-section,
  .site-footer,
  .legal-shell {
    width: min(calc(100% - 28px), var(--content-max));
  }

  .intro-band {
    padding: 24px 18px;
  }

  .advantage-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px;
  }

  .download-copy {
    flex-direction: column;
    gap: 16px;
  }

  .legal-document {
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .device-pad,
  .device-phone {
    animation: none !important;
    transform: var(--device-base-transform);
  }
}
