:root {
  --sage: #8B9D83;
  --clay: #B08B6E;
  --terracotta: #C66B3D;
  --ochre: #C08E3A;
  --moss: #55622F;
  --sand: #E8DCC7;
  --oat: #D4B895;
  --ink: #273026;
  --ink-soft: #4D5949;
  --radius-md: 18px;
  --radius-lg: 28px;
  --ease-gentle: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--sand);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

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

p,
li,
a,
summary { overflow-wrap: anywhere; }

h1,
h2,
h3,
p { margin-top: 0; }

h1,
h2,
h3 {
  color: var(--ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  max-width: 1050px;
  margin-bottom: 32px;
  font-size: clamp(3.25rem, 7.6vw, 7.3rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5vw, 4.7rem);
}

h3 { font-size: clamp(1.4rem, 2.7vw, 2.15rem); }

a { color: inherit; }
a:hover { text-decoration-color: var(--terracotta); }

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

.shell {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.metrika-pixel { position: absolute; left: -9999px; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: 18px;
  background: var(--moss);
  color: var(--sand);
  font-weight: 700;
  transition: transform 320ms var(--ease-gentle);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--moss) 20%, transparent);
  background: var(--sand);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: .88rem;
  font-weight: 700;
}

.header-nav a { text-underline-offset: 5px; }

.header-course {
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--moss) 72%, transparent);
  border-radius: 18px;
  text-decoration: none;
}

.hero {
  position: relative;
  padding: clamp(68px, 8vw, 112px) 0 clamp(46px, 6vw, 72px);
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--moss) 22%, transparent);
}

.hero::before {
  position: absolute;
  top: -180px;
  right: -120px;
  width: min(46vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--sage) 52%, transparent);
  content: "";
  opacity: .42;
}

.hero-copy { position: relative; z-index: 1; }

.hero-lead {
  max-width: 830px;
  margin-bottom: 16px;
  font-size: clamp(1.2rem, 2.1vw, 1.62rem);
  font-weight: 650;
  line-height: 1.45;
}

.hero-note {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.hero-actions,
.context-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}

.hero-actions { margin-top: 34px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 21px;
  border-radius: 24px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 320ms var(--ease-gentle);
}

.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--moss); color: var(--sand); }
.button-secondary { background: var(--sand); color: var(--ink); }

.text-link,
.chapter-link {
  color: var(--moss);
  font-weight: 750;
  text-underline-offset: 5px;
}

.article-shell { padding-block: 18px 120px; }

.article-menu {
  border-bottom: 1px solid color-mix(in srgb, var(--moss) 24%, transparent);
}

.article-menu summary {
  width: max-content;
  padding: 18px 2px;
  cursor: pointer;
  color: var(--moss);
  font-weight: 800;
}

.article-menu nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0 0 22px;
  font-size: .9rem;
  font-weight: 700;
}

.article-menu a { text-underline-offset: 5px; }
.article-flow { min-width: 0; }

.platform-chapter,
.secondary-channels article,
.inline-course,
.article-flow > .section:not(.platform-section) {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}

.section {
  position: relative;
  padding: clamp(74px, 9vw, 126px) 0;
  scroll-margin-top: 76px;
}

.section + .section { border-top: 1px solid color-mix(in srgb, var(--moss) 22%, transparent); }
.platform-section { padding-top: clamp(46px, 6vw, 76px); }
.platform-section > .section-heading { margin-bottom: clamp(22px, 3vw, 36px); }

.section-heading {
  max-width: 900px;
  margin-bottom: clamp(38px, 6vw, 70px);
}

.section-heading > p:last-child {
  max-width: 700px;
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

.eyebrow,
.platform-kind {
  margin-bottom: 13px;
  color: var(--moss);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.platform-chapter {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding: clamp(42px, 6vw, 68px) 0;
  border-top: 1px solid color-mix(in srgb, var(--moss) 24%, transparent);
}

.platform-chapter-reverse { grid-template-columns: minmax(0, 1fr) 146px; }
.platform-chapter-reverse .platform-icon-wrap { grid-column: 2; grid-row: 1; }
.platform-chapter-reverse > div:last-child { grid-column: 1; grid-row: 1; }
.platform-icon-wrap { position: sticky; top: 94px; }

.platform-icon-wrap img {
  width: 128px;
  height: 128px;
  border: 7px solid color-mix(in srgb, var(--oat) 72%, var(--sand));
  border-radius: 28px;
  object-fit: cover;
}

.platform-chapter h3 { max-width: 790px; margin-bottom: 18px; }
.platform-chapter p:not(.platform-kind) { max-width: 790px; }

.payment-line {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid color-mix(in srgb, var(--moss) 25%, transparent);
}

.secondary-channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.secondary-channels article {
  min-height: 280px;
  padding: clamp(28px, 4vw, 42px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--oat) 53%, var(--sand));
}

.secondary-channels article:nth-child(2) { background: color-mix(in srgb, var(--sage) 42%, var(--sand)); }

.secondary-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 24px;
  border-radius: 20px;
  object-fit: cover;
}

.wechat-mark {
  width: max-content;
  margin-bottom: 24px;
  padding: 10px 14px;
  border: 1px solid var(--moss);
  border-radius: 18px;
  color: var(--moss);
  font-weight: 850;
}

.inline-course {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 60px;
  padding: clamp(26px, 4vw, 42px);
  border-radius: 28px;
  background: var(--ochre);
}

.inline-course h3 { max-width: 650px; margin-bottom: 0; }

.delivery-section {
  margin-right: 0;
  padding-block: clamp(50px, 6vw, 78px);
  padding-inline: clamp(24px, 5vw, 64px);
  border-radius: 28px;
  background: color-mix(in srgb, var(--sage) 42%, var(--sand));
}

.delivery-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.delivery-route li { padding-top: 18px; border-top: 2px solid var(--moss); }

.delivery-route li > span {
  display: block;
  margin-bottom: 16px;
  color: var(--terracotta);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
}

.delivery-route strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.3rem;
}

.delivery-route p { margin: 0; }
.context-links a { color: var(--moss); font-weight: 750; text-underline-offset: 5px; }

.video-section {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(290px, .72fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: center;
}

.video-frame {
  overflow: hidden;
  border: 7px solid color-mix(in srgb, var(--oat) 66%, var(--sand));
  border-radius: 28px;
  background: var(--moss);
  aspect-ratio: 16 / 9;
}

.video-frame iframe { width: 100%; height: 100%; border: 0; }

.video-copy {
  padding: clamp(26px, 4vw, 40px);
  border-radius: 28px;
  background: var(--moss);
  color: var(--sand);
}

.video-copy h2,
.video-copy .eyebrow { color: var(--sand); }
.video-copy h2 { font-size: clamp(2rem, 3.6vw, 3.5rem); }
.timecodes { margin-top: 24px; }
.timecodes summary { cursor: pointer; font-weight: 800; }
.timecodes a { display: block; margin-top: 8px; text-underline-offset: 4px; }

.mistake-list { margin: 0; padding: 0; list-style: none; }

.mistake-list li {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  padding: 18px 6px;
  border-top: 1px solid color-mix(in srgb, var(--moss) 28%, transparent);
}

.mistake-list strong { color: var(--moss); }

.course-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 42px;
  margin-right: 0;
  padding-inline: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background: var(--terracotta);
  color: var(--sand);
}

.course-section h2,
.course-section .eyebrow { color: var(--sand); }
.course-action { align-self: center; }
.course-action .button { width: 100%; background: var(--sand); color: var(--ink); }
.course-action .text-link { display: block; margin-top: 16px; color: var(--sand); text-align: center; }

.faq-list { border-top: 2px solid var(--moss); }
.faq-list details { border-bottom: 1px solid color-mix(in srgb, var(--moss) 28%, transparent); }

.faq-list summary {
  padding: 21px 42px 21px 0;
  cursor: pointer;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 650;
}

.faq-list details p { max-width: 780px; padding: 0 36px 21px 0; }
.context-links-final { margin-top: 40px; }
.updated { margin-top: 30px; color: var(--ink-soft); font-size: .86rem; }

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--moss) 30%, transparent);
  background: var(--moss);
  color: var(--sand);
}

.footer-inner { flex-wrap: wrap; min-height: 116px; }
.footer-inner p { margin: 0; font-size: .9rem; }
.footer-contact { color: var(--sand); font-weight: 750; text-underline-offset: 5px; }

.js [data-reveal],
.js .platform-icon-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 460ms var(--ease-gentle), transform 460ms var(--ease-gentle);
}

.js [data-reveal].is-visible,
.js .platform-icon-wrap.is-visible { opacity: 1; transform: none; }

@media (max-width: 820px) {
  .shell { width: min(100% - 32px, 720px); }
  .hero { padding-top: 68px; }
  .section { padding-block: 70px; }
  .platform-section { padding-top: 46px; }
  .delivery-section { padding-block: 54px; }

  .platform-chapter,
  .platform-chapter-reverse { grid-template-columns: 88px minmax(0, 1fr); gap: 22px; }

  .platform-chapter-reverse .platform-icon-wrap,
  .platform-chapter-reverse > div:last-child { grid-column: auto; grid-row: auto; }

  .platform-icon-wrap { position: static; }
  .platform-icon-wrap img { width: 78px; height: 78px; border-width: 5px; border-radius: 22px; }

  .secondary-channels,
  .video-section,
  .course-section { grid-template-columns: 1fr; }

  .inline-course { align-items: flex-start; flex-direction: column; }

  .delivery-section,
  .course-section { margin-inline: 0; }

  .delivery-route { grid-template-columns: 1fr; gap: 26px; }
  .mistake-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-nav > a:first-child { display: none; }
  .hero-actions .button,
  .hero-actions .text-link,
  .context-links a { width: 100%; }
  .hero-actions .text-link { text-align: center; }
  .platform-chapter,
  .platform-chapter-reverse { grid-template-columns: 1fr; }
  .platform-icon-wrap img { width: 84px; height: 84px; }
}

@media (max-width: 429px) {
  .shell { width: min(100% - 24px, 405px); }
  .header-inner { gap: 12px; }
  .header-course { padding-inline: 10px; }
  h1 { font-size: clamp(2.75rem, 13.5vw, 3.65rem); }
  .hero { padding-top: 54px; }
  .article-shell { padding-top: 18px; }
  .section { padding-block: 62px; }
  .platform-section { padding-top: 40px; }
  .delivery-section { padding-block: 44px; }
  .secondary-channels article,
  .video-copy,
  .course-section { padding: 21px; border-radius: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal],
  .js .platform-icon-wrap { opacity: 1; transform: none; }
}
