:root {
  color-scheme: light;
  --purple: #51377f;
  --purple-deep: #2d1d49;
  --purple-soft: #eee7ff;
  --peach: #ff9f70;
  --peach-soft: #fff0e7;
  --yellow: #ffd166;
  --mint: #66d9c2;
  --mint-soft: #e5f8f3;
  --paper: #fffaf0;
  --surface: #ffffff;
  --ink: #2f2341;
  --muted: #6d6377;
  --border: #dfd5e9;
  --warning: #7a2d16;
  --warning-surface: #fff0d2;
  --shadow: 0 22px 70px rgba(50, 32, 79, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 9%, rgba(255, 209, 102, .24), transparent 23rem),
    radial-gradient(circle at 94% 34%, rgba(102, 217, 194, .17), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--purple);
  font-weight: 750;
  text-underline-offset: .18em;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
}

code {
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}

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

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 7vw, 4.5rem);
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.025em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--surface);
  padding: 10px 14px;
}

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

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  color: var(--purple-deep);
  font-size: 1.24rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-decoration: none;
}

.brand img {
  border-radius: 14px;
}

nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 3px;
}

.language-switcher a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  border-radius: 10px;
  padding-inline: 12px;
  color: var(--muted);
  font-size: .88rem;
  text-decoration: none;
  white-space: nowrap;
}

.language-switcher a:hover {
  color: var(--purple-deep);
  text-decoration: underline;
}

.language-switcher a[aria-current="page"] {
  background: var(--purple-soft);
  color: var(--purple-deep);
  text-decoration: none;
}

nav a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--purple-deep);
  text-decoration: underline;
}

nav .nav-download {
  border-radius: 14px;
  background: var(--purple);
  color: #fff;
  padding-inline: 18px;
}

.hero {
  display: grid;
  overflow: hidden;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: stretch;
  border-radius: 34px;
  background: var(--purple-deep);
  box-shadow: var(--shadow);
  color: #fff;
}

.hero-copy {
  align-self: center;
  padding: clamp(38px, 6vw, 76px);
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--purple);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

.lede {
  max-width: 35rem;
  color: #f7f0ff;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.benefits {
  display: flex;
  margin: 26px 0 30px;
  padding: 0;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
}

.benefits li {
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  padding: 5px 13px;
  font-size: .9rem;
  font-weight: 750;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--yellow);
  color: var(--purple-deep);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .16);
}

.button-primary:hover {
  background: #ffe08a;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, .4);
  color: #fff;
}

.download-meta,
.language-note {
  margin: 18px 0 0;
  color: #ded4eb;
  font-size: .88rem;
}

.language-note {
  margin-top: 6px;
}

.hero-art {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: #3b2361;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--purple-deep), transparent 22%);
  content: "";
  pointer-events: none;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.test-warning {
  display: grid;
  margin-top: 28px;
  grid-template-columns: auto 1fr;
  gap: 18px;
  border: 1px solid #efc47e;
  border-radius: 22px;
  background: var(--warning-surface);
  padding: clamp(22px, 4vw, 34px);
  color: var(--warning);
}

.test-warning h2 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.test-warning p:last-child {
  margin-bottom: 0;
}

.access-note {
  border-left: 4px solid currentColor;
  padding-left: 14px;
}

.download-confirmation {
  margin-top: 20px;
  border-top: 1px solid rgba(122, 45, 22, .28);
  padding-top: 18px;
}

.download-confirmation summary {
  min-height: 56px;
  cursor: pointer;
  font-weight: 900;
  padding-block: 14px;
}

.download-confirmation summary:focus-visible {
  outline: 3px solid var(--purple-deep);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--yellow);
}

.download-confirmation > div {
  padding-top: 12px;
}

.button-adult-download {
  background: var(--warning);
  color: #fff;
}

.test-warning .section-kicker {
  color: var(--warning);
}

.warning-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 900;
}

.facts {
  display: grid;
  margin-top: 42px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--border);
}

.facts div {
  display: grid;
  gap: 3px;
  padding: 24px 18px;
}

.facts div + div {
  border-left: 1px solid var(--border);
}

.facts span {
  color: var(--muted);
  font-size: .82rem;
}

.facts strong {
  color: var(--purple-deep);
  font-size: 1.03rem;
}

.joy-section {
  position: relative;
}

.joy-section::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 0;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(102, 217, 194, .16);
  content: "";
}

.joy-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.joy-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.joy-grid article {
  min-height: 250px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(155deg, var(--surface), var(--peach-soft));
  padding: 28px;
  box-shadow: 0 16px 42px rgba(50, 32, 79, .08);
}

.joy-grid article:nth-child(2) {
  background: linear-gradient(155deg, var(--surface), var(--purple-soft));
}

.joy-grid article:nth-child(3) {
  background: linear-gradient(155deg, var(--surface), var(--mint-soft));
}

.joy-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.joy-number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple-deep);
  color: #fff;
  font-size: .8rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.section {
  padding-block: clamp(68px, 9vw, 112px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  align-items: center;
  gap: clamp(44px, 8vw, 96px);
}

.section-copy p:not(.section-kicker) {
  max-width: 42rem;
}

.fine-print,
.document-meta {
  color: var(--muted);
  font-size: .9rem;
}

.phone-shot {
  margin: 0;
  justify-self: center;
  text-align: center;
}

.phone-shot img {
  width: min(100%, 330px);
  height: auto;
  margin-inline: auto;
  border: 10px solid var(--purple-deep);
  border-radius: 34px;
  box-shadow: var(--shadow);
}

.phone-shot figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: .86rem;
}

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

.steps {
  display: grid;
  margin: 38px 0 46px;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px 46px;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.step-number {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-weight: 900;
}

.checksum {
  display: grid;
  grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  border: 1px solid #c9bae1;
  border-radius: 20px;
  background: var(--surface);
  padding: 22px;
}

.checksum h3,
.checksum .section-kicker {
  margin-bottom: 0;
}

.checksum code,
.hash-block code {
  user-select: all;
}

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

.cards-heading {
  grid-column: 1 / -1;
  max-width: 660px;
}

.cards article {
  border-top: 1px solid var(--border);
  padding: 24px 8px 0;
}

.cards article p {
  margin-bottom: 0;
  color: var(--muted);
}

.card-line {
  display: block;
  width: 52px;
  height: 7px;
  margin-bottom: 24px;
  border-radius: 99px;
  background: var(--purple);
}

.card-line-peach {
  background: var(--peach);
}

.card-line-mint {
  background: var(--mint);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.platform {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 48px);
}

.platform.available {
  border-color: #b8a2d1;
}

.platform .button-primary {
  background: var(--purple);
  color: #fff;
}

.feedback-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(32px, 7vw, 80px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 209, 102, .28), transparent 14rem),
    var(--purple-deep);
  padding: clamp(34px, 7vw, 72px);
  color: #fff;
  box-shadow: var(--shadow);
}

.feedback-panel .section-kicker {
  color: var(--yellow);
}

.feedback-panel h2 {
  max-width: 14ch;
}

.feedback-copy > p:not(.section-kicker),
.feedback-action p {
  color: #eee7f7;
}

.feedback-privacy {
  margin-bottom: 0;
  border-left: 4px solid var(--mint);
  padding-left: 16px;
}

.feedback-action {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: rgba(255, 255, 255, .08);
  padding: 24px;
}

.button-feedback {
  width: 100%;
  background: var(--yellow);
  color: var(--purple-deep);
}

.feedback-action p {
  margin: 14px 0 0;
  font-size: .86rem;
}

.disclaimer {
  margin-top: clamp(68px, 9vw, 112px);
  border: 1px solid var(--border);
  border-left: 8px solid var(--purple);
  border-radius: 20px;
  background: var(--surface);
  padding: clamp(26px, 5vw, 46px);
}

.disclaimer h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.disclaimer p:last-child {
  max-width: 68rem;
  margin-bottom: 0;
  color: var(--muted);
}

.button-disabled {
  border: 1px dashed #aaa1b2;
  background: #ede9ef;
  color: #706777;
  cursor: not-allowed;
}

.region-note {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.region-note p:not(.section-kicker) {
  max-width: 58rem;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.final-cta h2 {
  margin-bottom: 8px;
}

.final-cta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 34px 0 52px;
  color: var(--muted);
  font-size: .9rem;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid strong {
  color: var(--purple-deep);
}

.document-wrap {
  padding-block: 42px 96px;
}

.document {
  max-width: 850px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  padding: clamp(28px, 7vw, 72px);
  box-shadow: var(--shadow);
}

.document h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.document h2 {
  margin-top: 2.2em;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.gateway-wrap {
  display: grid;
  min-height: calc(100vh - 176px);
  place-items: center;
  padding-block: 42px 96px;
}

.language-gateway {
  width: min(760px, 100%);
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  padding: clamp(30px, 7vw, 72px);
  box-shadow: var(--shadow);
  text-align: center;
}

.language-gateway h1 {
  margin-bottom: 16px;
  font-size: clamp(2.35rem, 7vw, 4.5rem);
}

.gateway-lede {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--muted);
}

.language-options {
  display: grid;
  margin: 34px auto 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.language-option {
  display: grid;
  min-height: 92px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 18px;
  background: var(--paper);
  padding: 16px;
  color: var(--purple-deep);
  font-size: 1.15rem;
  font-weight: 900;
  text-decoration: none;
}

.language-option:hover {
  border-color: var(--purple);
  background: var(--purple-soft);
}

.gateway-note {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
}

.gateway {
  width: min(960px, calc(100% - 32px));
  margin: 42px auto 96px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--surface);
  padding: clamp(28px, 6vw, 68px);
  box-shadow: var(--shadow);
  text-align: center;
}

.gateway > img {
  border-radius: 24px;
}

.gateway .language-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.language-option span {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}

.header-tools {
  position: relative;
}

.language-menu {
  position: relative;
}

.language-menu summary {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 12px 18px;
  color: var(--purple-deep);
  font-weight: 900;
  cursor: pointer;
}

.language-menu[open] .language-options {
  position: absolute;
  z-index: 40;
  top: calc(100% + 10px);
  right: 0;
  width: min(720px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  padding: 14px;
  box-shadow: var(--shadow);
}

.language-menu .language-options a {
  min-height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--paper);
  padding: 10px;
  color: var(--purple-deep);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.language-menu .language-options a[aria-current="page"] {
  border-color: var(--mint);
  background: var(--mint-soft);
}

.legal-hero {
  padding-block: clamp(52px, 8vw, 96px) 32px;
}

.legal-content {
  display: grid;
  gap: 18px;
  padding-bottom: 88px;
}

.legal-content article {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 10px 26px rgb(50 32 79 / .08);
}

.technical-terms,
code {
  direction: ltr;
  unicode-bidi: isolate;
}

[dir="rtl"] .hero-copy,
[dir="rtl"] .section-copy,
[dir="rtl"] .feedback-copy,
[dir="rtl"] .legal-content,
[dir="rtl"] .legal-hero {
  text-align: right;
}

[dir="rtl"] .language-menu[open] .language-options {
  right: auto;
  left: 0;
}

.hash-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--purple-soft);
  padding: 14px;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    padding-block: 16px;
  }

  .primary-nav a:not(.nav-download) {
    display: none;
  }

  .header-tools {
    width: 100%;
    justify-content: space-between;
  }

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

  .hero-art {
    min-height: 360px;
  }

  .hero-art::after {
    background: linear-gradient(180deg, var(--purple-deep), transparent 20%);
  }

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

  .facts div + div {
    border-left: 0;
  }

  .facts div:nth-child(even) {
    border-left: 1px solid var(--border);
  }

  .facts div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  .split,
  .platform-grid,
  .feedback-panel {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 680px) {
  body {
    font-size: 16px;
  }

  .shell {
    width: min(100% - 24px, 1180px);
  }

  .brand span {
    font-size: 1rem;
  }

  nav .nav-download {
    padding-inline: 13px;
  }

  .header-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-nav .nav-download,
  .language-switcher {
    width: 100%;
  }

  .primary-nav .nav-download {
    justify-content: center;
  }

  .language-switcher a {
    flex: 1;
    justify-content: center;
  }

  .hero {
    min-height: 0;
    border-radius: 24px;
  }

  .hero-copy {
    padding: 32px 22px;
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .hero-art {
    min-height: 280px;
  }

  .test-warning {
    grid-template-columns: 1fr;
  }

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

  .facts div:nth-child(n) {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .facts div:first-child {
    border-top: 0;
  }

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

  .language-options {
    grid-template-columns: 1fr;
  }

  .gateway .language-options,
  .language-menu[open] .language-options {
    grid-template-columns: 1fr;
  }

  .final-cta,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .final-cta .button {
    width: 100%;
  }

  .footer-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

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

@media print {
  .site-header,
  .hero-actions,
  .final-cta,
  footer {
    display: none;
  }

  body {
    background: #fff;
  }

  .hero,
  .document {
    box-shadow: none;
  }
}
