:root {
  --rice: #fff9ef;
  --porcelain: #ffffff;
  --paper: #f4efe4;
  --ink: #25211d;
  --muted: #756d63;
  --border: #e8dfd2;
  --jade: #22b573;
  --jade-dark: #0f6f4d;
  --jade-pressed: #168a57;
  --cinnabar: #e5483f;
  --pinyin: #2277d6;
  --tone: #f4b740;
  --night: #111a16;
  --night-soft: #1d2722;
  --body: "Sohne", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --hanzi: "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-soft: 0 24px 60px rgba(37, 33, 29, .1);
  --shadow-card: 0 20px 44px rgba(37, 33, 29, .12);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  background: var(--rice);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(circle at 14% 8%, rgba(244, 183, 64, .16) 0 13%, transparent 35%),
    linear-gradient(118deg, rgba(34, 181, 115, .12), transparent 36%),
    linear-gradient(245deg, rgba(34, 119, 214, .08), transparent 32%),
    linear-gradient(180deg, var(--rice) 0%, #fffdf8 46%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .3;
  background-image:
    linear-gradient(rgba(37, 33, 29, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 33, 29, .03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 72%, transparent 100%);
}

body::after {
  content: "学";
  position: fixed;
  right: -110px;
  bottom: -250px;
  z-index: -1;
  color: rgba(34, 181, 115, .07);
  font-family: var(--hanzi);
  font-size: 720px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-11deg);
  pointer-events: none;
}

a {
  color: inherit;
}

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

button,
a {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  text-decoration: none;
}

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

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

.hero-shell,
.page-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-shell {
  min-height: 94svh;
  color: white;
  background:
    linear-gradient(144deg, rgba(255, 255, 255, .13) 0 1px, transparent 1px 34px),
    linear-gradient(155deg, #23bd78 0%, #149b66 38%, #0f7554 72%, #0b523f 100%);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.hero-shell::before,
.page-shell::before {
  content: "";
  position: absolute;
  inset: auto -16% -24% -14%;
  height: 50%;
  z-index: -1;
  background:
    linear-gradient(170deg, transparent 0 28%, rgba(255, 249, 239, .2) 28% 40%, transparent 40%),
    linear-gradient(12deg, rgba(255, 249, 239, .22), rgba(244, 183, 64, .13));
  transform: rotate(-3deg);
}

.hero-shell::after,
.page-shell::after {
  position: absolute;
  z-index: -1;
  color: rgba(255, 255, 255, .08);
  font-family: var(--hanzi);
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.hero-shell::after {
  content: "语";
  right: -30px;
  top: 40px;
  font-size: 460px;
  transform: rotate(7deg);
}

.page-shell {
  color: var(--ink);
  background:
    linear-gradient(138deg, rgba(34, 181, 115, .12), transparent 36%),
    linear-gradient(225deg, rgba(244, 183, 64, .16), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, var(--rice) 56%, #f4efe4 100%);
  border-bottom: 1px solid rgba(232, 223, 210, .8);
}

.page-shell::after {
  content: "言";
  right: -12px;
  top: 10px;
  font-size: 320px;
  color: rgba(34, 181, 115, .08);
  transform: rotate(8deg);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .16);
}

.nav-meta {
  display: flex;
  align-items: center;
}

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

.lang-picker {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .08);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: background .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
}

.hero-shell .lang-button {
  border: 1px solid rgba(255, 255, 255, .22);
  color: white;
  background: rgba(255, 255, 255, .14);
}

.hero-shell .lang-button:hover,
.hero-shell .lang-button:focus-visible {
  background: rgba(255, 255, 255, .22);
  outline: none;
}

.page-shell .lang-button {
  border: 1px solid rgba(232, 223, 210, .92);
  color: var(--ink);
  background: rgba(255, 255, 255, .86);
}

.page-shell .lang-button:hover,
.page-shell .lang-button:focus-visible {
  background: white;
  outline: none;
}

.lang-button[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.flag {
  font-size: 18px;
  line-height: 1;
}

.chevron {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform .18s var(--ease);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 10;
  display: grid;
  gap: 4px;
  width: 210px;
  padding: 10px;
  border: 1px solid rgba(37, 33, 29, .08);
  border-radius: 16px;
  background: white;
  box-shadow: 0 22px 48px rgba(37, 33, 29, .18);
}

.lang-menu[hidden] {
  display: none;
}

.lang-option {
  display: grid;
  grid-template-columns: 28px 1fr 22px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.lang-option:hover,
.lang-option:focus-visible {
  background: #f6f0e7;
  outline: none;
}

.lang-check {
  color: var(--jade-dark);
  font-size: 20px;
  font-weight: 900;
  opacity: 0;
}

.lang-option[aria-selected="true"] .lang-check {
  opacity: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 56px;
  align-items: center;
  padding: 48px 0 54px;
}

.hero-copy {
  max-width: 630px;
}

.hero h1 {
  margin: 0;
  max-width: 9ch;
  font-family: var(--display);
  font-size: 92px;
  line-height: .94;
  font-weight: 900;
  letter-spacing: -.04em;
}

.subhead {
  margin: 24px 0 0;
  max-width: 560px;
  font-size: 21px;
  line-height: 1.5;
  font-weight: 600;
}

.hero-shell .subhead {
  color: rgba(255, 255, 255, .9);
}

.page-shell .subhead {
  color: var(--muted);
}

.hero-note {
  margin: 16px 0 0;
  max-width: 540px;
  font-size: 15px;
  font-weight: 700;
}

.hero-shell .hero-note {
  color: rgba(255, 255, 255, .74);
}

.page-shell .hero-note {
  color: var(--muted);
}

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

.secondary-link,
.cta-link,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.secondary-link {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.hero-shell .secondary-link {
  color: white;
  background: rgba(255, 255, 255, .12);
}

.hero-shell .secondary-link:hover,
.hero-shell .secondary-link:focus-visible {
  background: rgba(255, 255, 255, .2);
  outline: none;
}

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

.hero-visual::before {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 28px solid rgba(255, 255, 255, .14);
  border-left-color: transparent;
  border-bottom-color: rgba(244, 183, 64, .28);
  border-radius: 50%;
  transform: rotate(-28deg);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 2% 42px auto;
  width: 220px;
  height: 88px;
  background: rgba(229, 72, 63, .22);
  clip-path: polygon(0 22%, 78% 0, 100% 54%, 12% 100%);
}

.phone {
  position: relative;
  z-index: 2;
  width: 334px;
  aspect-ratio: 390 / 844;
  padding: 11px;
  border-radius: 48px;
  background: linear-gradient(155deg, #2f3032 0%, #151518 62%, #050506 100%);
  box-shadow:
    0 42px 80px rgba(0, 0, 0, .32),
    0 0 0 2px rgba(255, 255, 255, .12) inset,
    0 0 0 4px rgba(0, 0, 0, .18) inset;
}

.phone::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 104px;
  height: 30px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #050506;
  z-index: 4;
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 38px;
  color: var(--ink);
  background:
    linear-gradient(130deg, rgba(34, 181, 115, .16), transparent 34%),
    linear-gradient(226deg, rgba(244, 183, 64, .18), transparent 30%),
    linear-gradient(180deg, #fffdf8 0%, var(--rice) 56%, #f3eadc 100%);
}

.screen::before {
  content: "说";
  position: absolute;
  right: -52px;
  bottom: -112px;
  color: rgba(34, 181, 115, .08);
  font-family: var(--hanzi);
  font-size: 250px;
  font-weight: 900;
  transform: rotate(-12deg);
}

.status {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 18px 24px 0;
  font-size: 13px;
  font-weight: 800;
}

.app-frame {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 14px;
  padding: 34px 22px 18px;
}

.app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
}

.app-top p,
.app-top h2 {
  margin: 0;
}

.app-top p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-top h2 {
  margin-top: 3px;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.08;
}

.app-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgba(229, 72, 63, .22);
}

.daily-panel,
.speech-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 0 0 1px rgba(232, 223, 210, .72);
}

.daily-panel strong,
.speech-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.24;
}

.daily-panel p,
.speech-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.meter {
  height: 9px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfce;
}

.meter span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--jade), var(--tone));
}

.study-stack {
  display: grid;
  gap: 10px;
}

.path-row {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 13px;
  align-items: center;
  min-height: 62px;
}

.path-node {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: white;
  color: var(--jade-dark);
  font-family: var(--hanzi);
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(37, 33, 29, .08);
}

.path-node.current {
  background: var(--cinnabar);
  color: white;
}

.path-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.path-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.speech-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.speech-target {
  margin-top: 8px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
}

.word-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.word-tile {
  min-height: 82px;
  padding: 10px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .82);
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(232, 223, 210, .72);
}

.word-tile b {
  display: block;
  font-family: var(--hanzi);
  font-size: 25px;
  line-height: 1;
}

.word-tile span {
  display: block;
  margin-top: 7px;
  color: var(--pinyin);
  font-size: 11px;
  font-weight: 800;
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 112px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(37, 33, 29, .28);
}

.floating-note {
  position: absolute;
  right: -64px;
  top: 104px;
  z-index: 3;
  width: 198px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(11, 82, 63, .9), rgba(15, 111, 77, .8));
  backdrop-filter: blur(18px);
  box-shadow: 0 26px 48px rgba(5, 34, 25, .28);
}

.floating-note strong {
  display: block;
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.floating-note p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
  line-height: 1.45;
}

.floating-note ul {
  margin: 12px 0 0;
  padding-left: 17px;
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, .86);
  font-size: 13px;
}

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

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  width: 168px;
  height: 56px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 12px;
  color: white;
  background: #050505;
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 1px 2px rgba(0, 0, 0, .28);
  transition: transform .2s var(--ease), filter .2s var(--ease);
}

.store-link:hover,
.store-link:focus-visible {
  transform: translateY(-2px);
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
  outline: none;
}

.store-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.store-link.google .store-icon {
  width: 30px;
  height: 30px;
}

.store-link.apple .store-icon {
  width: 25px;
  height: 32px;
}

.store-text {
  display: grid;
  gap: 1px;
  min-width: 0;
  line-height: 1;
}

.store-kicker {
  font-size: 10px;
  font-weight: 480;
  text-transform: uppercase;
  white-space: nowrap;
}

.store-name {
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.section {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
}

.section-intro {
  max-width: 760px;
}

.section-intro h2,
.download-content h2,
.page-hero h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -.04em;
}

.section-intro h2 {
  font-size: 58px;
  line-height: 1.02;
}

.section-intro p,
.download-content p,
.page-hero p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: center;
}

.loop {
  position: relative;
  display: grid;
  gap: 34px;
  padding: 12px 0;
}

.loop::before {
  content: "";
  position: absolute;
  top: 54px;
  left: 36px;
  right: calc(25% - 28px);
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--tone), var(--jade), var(--pinyin));
  opacity: .72;
}

.loop-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.loop-step {
  position: relative;
  padding-top: 84px;
}

.loop-mark {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 24px;
  background: white;
  color: var(--jade-dark);
  font-family: var(--hanzi);
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 20px 40px rgba(37, 33, 29, .08);
}

.loop-step h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.24;
}

.loop-step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.practice-grid {
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  gap: 70px;
  align-items: center;
}

.practice-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.practice-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.practice-item .glyph {
  color: var(--tone);
  font-family: var(--hanzi);
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.practice-item h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.practice-item p {
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
}

.path-band {
  background:
    linear-gradient(101deg, rgba(229, 72, 63, .09), transparent 36%),
    linear-gradient(250deg, rgba(34, 181, 115, .12), transparent 38%),
    var(--rice);
}

.path-band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -40px;
  width: 520px;
  height: 180px;
  background: rgba(34, 181, 115, .13);
  clip-path: polygon(0 58%, 88% 0, 100% 32%, 14% 100%);
}

.wide-proof {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.proof-line {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}

.proof-line strong {
  color: var(--jade-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.proof-line span {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.updates-grid,
.feature-grid,
.support-grid,
.summary-grid {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.updates-grid,
.support-grid,
.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.update-card,
.feature-card,
.support-card,
.summary-card,
.legal-section {
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.update-card,
.support-card,
.summary-card {
  padding: 26px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(232, 223, 210, .9);
}

.update-meta,
.feature-meta,
.summary-card strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--jade-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.update-card h3,
.feature-card h3,
.support-card h3,
.summary-card h3 {
  margin: 16px 0 0;
  font-size: 26px;
  line-height: 1.14;
  letter-spacing: -.02em;
}

.update-card p,
.feature-card p,
.support-card p,
.summary-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.dark-band {
  color: white;
  background:
    linear-gradient(138deg, rgba(34, 181, 115, .18), transparent 40%),
    linear-gradient(22deg, rgba(34, 119, 214, .16), transparent 38%),
    linear-gradient(180deg, var(--night-soft) 0%, var(--night) 100%);
}

.dark-band::before {
  content: "听";
  position: absolute;
  left: -90px;
  top: -90px;
  color: rgba(255, 255, 255, .05);
  font-family: var(--hanzi);
  font-size: 460px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(-9deg);
}

.dark-band .section-intro p {
  color: rgba(255, 255, 255, .74);
}

.feature-card {
  padding: 30px;
  min-height: 230px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}

.feature-meta {
  color: rgba(244, 183, 64, .92);
}

.feature-card p {
  color: rgba(255, 255, 255, .76);
}

.flow-band {
  background:
    linear-gradient(101deg, rgba(229, 72, 63, .09), transparent 36%),
    linear-gradient(250deg, rgba(34, 181, 115, .12), transparent 38%),
    var(--rice);
}

.flow-band::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -40px;
  width: 520px;
  height: 180px;
  background: rgba(34, 181, 115, .13);
  clip-path: polygon(0 58%, 88% 0, 100% 32%, 14% 100%);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.flow-step {
  position: relative;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(232, 223, 210, .9);
  box-shadow: var(--shadow-soft);
}

.flow-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(34, 181, 115, .14), rgba(244, 183, 64, .24));
  color: var(--jade-dark);
  font-family: var(--hanzi);
  font-size: 28px;
  font-weight: 900;
}

.flow-step h3 {
  margin: 18px 0 0;
  font-size: 21px;
  line-height: 1.2;
}

.flow-step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.support-band {
  background:
    linear-gradient(130deg, rgba(34, 119, 214, .06), transparent 40%),
    linear-gradient(225deg, rgba(244, 183, 64, .1), transparent 32%),
    #fffdf8;
}

.support-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 54px;
  align-items: start;
}

.support-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta-link {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.cta-link.primary {
  color: white;
  background: linear-gradient(135deg, var(--jade), var(--jade-dark));
  box-shadow: 0 16px 30px rgba(34, 181, 115, .22);
}

.cta-link.primary:hover,
.cta-link.primary:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.cta-link.secondary {
  border: 1px solid rgba(232, 223, 210, .9);
  background: rgba(255, 255, 255, .82);
}

.cta-link.secondary:hover,
.cta-link.secondary:focus-visible {
  background: white;
  outline: none;
}

.download-band {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  color: white;
  background:
    linear-gradient(110deg, rgba(244, 183, 64, .22), transparent 34%),
    linear-gradient(250deg, rgba(229, 72, 63, .22), transparent 35%),
    linear-gradient(180deg, #0f6f4d 0%, #0a4f3a 100%);
}

.download-band::before {
  content: "语";
  position: absolute;
  right: 2%;
  top: -90px;
  color: rgba(255, 255, 255, .08);
  font-family: var(--hanzi);
  font-size: 340px;
  font-weight: 900;
  line-height: 1;
  transform: rotate(8deg);
}

.download-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: center;
}

.download-content h2 {
  font-size: 58px;
  line-height: 1.04;
}

.download-content p {
  max-width: 620px;
  color: rgba(255, 255, 255, .78);
}

.download-actions {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.support-mail {
  color: rgba(255, 255, 255, .84);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.support-mail:hover,
.support-mail:focus-visible {
  color: white;
  outline: none;
}

footer {
  padding: 32px 0;
  color: var(--muted);
  background: #fbf3e7;
  font-size: 14px;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--jade-dark);
  outline: none;
}

.page-hero {
  padding: 38px 0 64px;
}

.page-hero h1 {
  max-width: 11ch;
  font-size: 72px;
  line-height: .95;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(232, 223, 210, .9);
  background: rgba(255, 255, 255, .78);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.legal-layout {
  display: grid;
  gap: 22px;
  padding-bottom: 96px;
}

.legal-prose {
  display: grid;
  gap: 22px;
}

.legal-prose[hidden] {
  display: none;
}

.legal-section {
  padding: 30px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(232, 223, 210, .92);
}

.legal-section h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.legal-section p,
.legal-section li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.legal-section p {
  margin: 16px 0 0;
}

.legal-section ul {
  margin: 16px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

body[data-page="terms"] .page-hero,
body[data-page="privacy"] .page-hero {
  padding: 34px 0 56px;
}

body[data-page="terms"] .meta-pills,
body[data-page="privacy"] .meta-pills {
  gap: 18px;
  margin-top: 22px;
}

body[data-page="terms"] .meta-pill,
body[data-page="privacy"] .meta-pill {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(37, 33, 29, .72);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

body[data-page="terms"] .summary-grid,
body[data-page="privacy"] .summary-grid {
  gap: 0;
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(232, 223, 210, .92);
  align-items: start;
}

body[data-page="terms"] .summary-card,
body[data-page="privacy"] .summary-card {
  padding: 4px 24px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="terms"] .summary-card + .summary-card,
body[data-page="privacy"] .summary-card + .summary-card {
  padding-left: 24px;
  border-left: 1px solid rgba(232, 223, 210, .88);
}

body[data-page="terms"] .summary-card h3,
body[data-page="privacy"] .summary-card h3 {
  margin-top: 14px;
  font-size: 23px;
  line-height: 1.2;
}

body[data-page="terms"] .summary-card p,
body[data-page="privacy"] .summary-card p {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.65;
}

body[data-page="terms"] .legal-layout,
body[data-page="privacy"] .legal-layout {
  width: min(860px, calc(100% - 48px));
  gap: 0;
  padding: 18px 0 92px;
}

body[data-page="terms"] .legal-prose,
body[data-page="privacy"] .legal-prose {
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body[data-page="terms"] .legal-section,
body[data-page="privacy"] .legal-section {
  padding: 28px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="terms"] .legal-section + .legal-section,
body[data-page="privacy"] .legal-section + .legal-section {
  border-top: 1px solid rgba(232, 223, 210, .74);
}

body[data-page="terms"] .legal-section h2,
body[data-page="privacy"] .legal-section h2 {
  font-size: 24px;
  line-height: 1.2;
}

body[data-page="terms"] .legal-section p,
body[data-page="terms"] .legal-section li,
body[data-page="privacy"] .legal-section p,
body[data-page="privacy"] .legal-section li {
  color: #5f564d;
  font-size: 15px;
  line-height: 1.78;
}

body[data-page="terms"] .legal-section ul,
body[data-page="privacy"] .legal-section ul {
  gap: 8px;
  padding-left: 18px;
}

body[data-page="terms"] .legal-section a,
body[data-page="privacy"] .legal-section a {
  color: var(--jade-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: .14em;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy,
  .hero-visual,
  .page-hero,
  .section-intro,
  .updates-grid,
  .feature-grid,
  .flow-grid,
  .support-layout {
    animation: riseFade .7s var(--ease) both;
  }

  .hero-visual {
    animation-delay: .08s;
  }

  .updates-grid,
  .feature-grid,
  .flow-grid,
  .support-layout {
    animation-delay: .12s;
  }

  .phone {
    animation: floatPhone 7s var(--ease) infinite alternate;
  }

  .hero-visual::before {
    animation: slowTurn 12s var(--ease) infinite alternate;
  }

  .floating-note {
    animation: driftNote 6.5s var(--ease) infinite alternate;
  }

  @keyframes riseFade {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes floatPhone {
    from {
      transform: translateY(0) rotate(-1deg);
    }
    to {
      transform: translateY(-14px) rotate(1deg);
    }
  }

  @keyframes driftNote {
    from {
      transform: translateY(0) rotate(-1deg);
    }
    to {
      transform: translateY(-8px) rotate(1deg);
    }
  }

  @keyframes slowTurn {
    from {
      transform: rotate(-28deg);
    }
    to {
      transform: rotate(-12deg);
    }
  }
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 78px;
  }

  .subhead {
    font-size: 19px;
  }

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

  .floating-note {
    right: 12px;
  }

  .split,
  .practice-grid,
  .support-layout,
  .download-content {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .updates-grid,
  .support-grid,
  .summary-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 88px 0;
  }

  .section-intro h2,
  .download-content h2 {
    font-size: 46px;
  }

  .page-hero h1 {
    font-size: 60px;
  }

  body[data-page="terms"] .summary-grid,
  body[data-page="privacy"] .summary-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  body[data-page="terms"] .summary-card,
  body[data-page="privacy"] .summary-card {
    padding: 18px 0 0;
  }

  body[data-page="terms"] .summary-card + .summary-card,
  body[data-page="privacy"] .summary-card + .summary-card {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(232, 223, 210, .88);
  }
}

@media (max-width: 820px) {
  body::after {
    display: none;
  }

  .wrap {
    width: min(100% - 32px, 680px);
  }

  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .nav-meta {
    display: block;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .feature-grid,
  .updates-grid,
  .support-grid,
  .summary-grid,
  .flow-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 66px;
  }

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

  .phone {
    width: 292px;
  }

  .floating-note {
    position: static;
    width: min(100%, 360px);
    margin-top: -30px;
    background: linear-gradient(180deg, rgba(11, 82, 63, .92), rgba(15, 111, 77, .86));
  }

  .section-intro h2,
  .download-content h2 {
    font-size: 40px;
  }

  .page-hero h1 {
    font-size: 52px;
  }

  body[data-page="terms"] .legal-layout,
  body[data-page="privacy"] .legal-layout {
    width: min(100% - 32px, 680px);
  }
}

@media (max-width: 640px) {
  .hero-shell {
    min-height: auto;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }

  .wrap {
    width: min(100% - 28px, 430px);
  }

  .brand {
    font-size: 17px;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .lang-button {
    min-height: 36px;
    padding: 0 10px;
  }

  .lang-code {
    display: none;
  }

  .lang-menu {
    width: 190px;
  }

  .hero {
    padding: 22px 0 18px;
    gap: 10px;
  }

  .hero h1 {
    max-width: 7ch;
    font-size: 54px;
  }

  .subhead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero-note {
    font-size: 13px;
  }

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

  .store-link {
    height: 44px;
    width: 136px;
    gap: 7px;
    padding: 6px 10px;
  }

  .store-icon {
    width: 26px;
    height: 26px;
  }

  .store-link.google .store-icon {
    width: 24px;
    height: 24px;
  }

  .store-link.apple .store-icon {
    width: 20px;
    height: 26px;
  }

  .store-kicker {
    font-size: 7px;
  }

  .store-name,
  .store-link.apple .store-name {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 400px;
    place-items: start center;
  }

  .hero-visual::before {
    width: 300px;
    height: 300px;
    border-width: 20px;
    top: 28px;
  }

  .hero-visual::after {
    right: -28px;
    bottom: 26px;
    width: 160px;
    height: 58px;
  }

  .phone {
    width: 218px;
  }

  .phone::before {
    top: 15px;
    width: 76px;
    height: 22px;
  }

  .screen {
    border-radius: 30px;
  }

  .status {
    padding: 14px 18px 0;
    font-size: 10px;
  }

  .app-frame {
    gap: 10px;
    padding: 24px 15px 13px;
  }

  .app-top h2 {
    font-size: 19px;
  }

  .app-top p {
    font-size: 9px;
  }

  .app-icon {
    width: 34px;
    height: 34px;
  }

  .daily-panel,
  .speech-card {
    padding: 12px;
    border-radius: 14px;
  }

  .daily-panel strong,
  .speech-card strong {
    font-size: 14px;
  }

  .path-row {
    grid-template-columns: 34px 1fr;
    gap: 9px;
    min-height: 45px;
  }

  .path-node {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 16px;
  }

  .path-copy strong {
    font-size: 11px;
  }

  .path-copy span {
    font-size: 9px;
  }

  .speech-target {
    font-size: 19px;
  }

  .word-strip {
    gap: 5px;
  }

  .word-tile {
    min-height: 58px;
    padding: 7px 4px;
    border-radius: 12px;
  }

  .word-tile b {
    font-size: 18px;
  }

  .word-tile span {
    font-size: 9px;
  }

  .home-indicator {
    width: 78px;
  }

  .floating-note {
    width: 100%;
    margin-top: -18px;
    padding: 16px;
    border-radius: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .section-intro h2,
  .download-content h2,
  .page-hero h1 {
    font-size: 36px;
  }

  .section-intro p,
  .download-content p,
  .page-hero p,
  .legal-section p,
  .legal-section li {
    font-size: 16px;
  }

  .update-card,
  .feature-card,
  .support-card,
  .summary-card,
  .flow-step,
  .legal-section {
    padding: 22px;
    border-radius: 20px;
  }

  body[data-page="terms"] .meta-pills,
  body[data-page="privacy"] .meta-pills {
    gap: 10px 14px;
  }

  body[data-page="terms"] .meta-pill,
  body[data-page="privacy"] .meta-pill {
    font-size: 11px;
    letter-spacing: .05em;
  }

  body[data-page="terms"] .legal-layout,
  body[data-page="privacy"] .legal-layout {
    width: min(100% - 28px, 430px);
    padding: 18px 0 72px;
  }

  body[data-page="terms"] .legal-prose,
  body[data-page="privacy"] .legal-prose {
    border-radius: 0;
  }

  body[data-page="terms"] .summary-card,
  body[data-page="privacy"] .summary-card,
  body[data-page="terms"] .legal-section,
  body[data-page="privacy"] .legal-section {
    padding: 22px 0;
    border-radius: 0;
  }

  body[data-page="terms"] .summary-card h3,
  body[data-page="privacy"] .summary-card h3 {
    font-size: 20px;
  }

  body[data-page="terms"] .legal-section h2,
  body[data-page="privacy"] .legal-section h2 {
    font-size: 21px;
  }

  .loop::before {
    top: 28px;
    bottom: calc(25% - 20px);
    left: 28px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .loop-row {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .loop-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    padding-top: 0;
  }

  .loop-mark {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 22px;
  }

  .practice-item {
    grid-template-columns: 66px 1fr;
    gap: 18px;
    padding: 24px 0;
  }

  .practice-item .glyph {
    font-size: 52px;
  }

  .practice-item h3 {
    font-size: 21px;
  }

  .practice-item p {
    font-size: 15px;
  }

  .proof-line {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .proof-line span {
    font-size: 16px;
  }
}
