:root {
  color-scheme: light;
  --paper: #f8faf5;
  --ink: #14362f;
  --muted: #485e55;
  --line: #cbd6ca;
  --green: #12634d;
  --orange: #e47e48;
  --width: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}

a {
  color: var(--green);
  text-underline-offset: .22em;
}

a:focus-visible,summary:focus-visible {
  outline: 3px solid #b74a1b;
  outline-offset: 4px;
}

.wrap {
  width: min(var(--width),calc(100% - 64px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  top: -5rem;
  left: 12px;
  background: white;
  padding: 8px 18px;
  z-index: 5;
}

.skip:focus {
  top: 8px;
}

header,footer {
  border-color: var(--line);
  border-style: solid;
  border-width: 0 0 1px;
}

.top,.foot,nav {
  display: flex;
  align-items: center;
}

.top {
  min-height: 76px;
  gap: clamp(18px,3vw,44px);
}

.brand,.top nav a,.foot a {
  color: var(--ink);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 750;
  font-size: 21px;
  letter-spacing: -.035em;
}

.brand img {
  border-radius: 24%;
}

nav {
  gap: 22px;
}

nav a {
  padding-block: 7px;
}

.top nav a:hover,.top nav [aria-current=page],.foot a:hover {
  text-decoration: underline;
}

.langs {
  font-size: 14px;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.langs a[aria-current=true] {
  color: var(--green);
  font-weight: 750;
  text-decoration: underline;
}

.hero {
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  gap: clamp(32px,5vw,76px);
  padding-block: clamp(42px,6vw,84px);
}

.intro {
  max-width: 570px;
}

.platform,.byline {
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}

.platform {
  border-left: 4px solid var(--orange);
  padding-left: 12px;
  margin: 0 0 22px;
}

h1,h2,h3,p,figure {
  margin: 0;
}

h1,h2,h3 {
  line-height: 1.14;
  text-wrap: balance;
}

h1 {
  font-size: clamp(46px,6.1vw,84px);
  letter-spacing: -.068em;
  font-weight: 730;
}

h1 em {
  display: block;
  font-style: normal;
  color: var(--green);
}

:lang(zh-Hans) h1 {
  font-size: clamp(39px,5.4vw,71px);
  letter-spacing: -.04em;
  line-height: 1.22;
}

.lead {
  font-size: clamp(17px,1.8vw,21px);
  line-height: 1.55;
  color: var(--muted);
  margin: 21px 0 28px;
  max-width: 40em;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: var(--green);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  border-radius: 9px;
  padding: 10px 18px;
}

.button:hover {
  background: #0b503e;
}

.button span {
  font-size: 1.25em;
}

.preview {
  overflow: hidden;
  background: linear-gradient(145deg,#deebd9,#b4cfc3);
  border-radius: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: clamp(310px,33vw,438px);
  padding: 30px 28px 0;
  border: 1px solid #c2d4c3;
}

.ipad {
  width: min(86%,330px);
  border: 8px solid #233e37;
  border-radius: 22px;
  box-shadow: 8px 12px 30px #26433738;
  background: #eef0f5;
  overflow: hidden;
  flex-shrink: 0;
}

.ipad img {
  display: block;
  width: 100%;
  height: auto;
}

.guide {
  border-top: 1px solid var(--line);
  padding: 32px 0 65px;
}

h2 {
  font-size: clamp(24px,3vw,36px);
  letter-spacing: -.045em;
}

h3 {
  font-size: 20px;
  letter-spacing: -.025em;
  margin-bottom: 8px;
}

.steps {
  padding: 0;
  list-style: none;
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 36px;
  margin: 28px 0 0;
}

.steps li {
  counter-increment: steps;
}

.steps li:before {
  content: counter(steps);
  display: block;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 12px;
}

.steps p,.document p,.document li {
  color: var(--muted);
}

.document {
  max-width: 760px;
  margin: auto;
  padding: 54px 0 72px;
  overflow-wrap: anywhere;
}

.doc-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 24px;
}

.doc-head h1 {
  font-size: clamp(40px,5.2vw,66px);
}

.doc-head .lead {
  margin: 15px 0 7px;
}

.byline {
  margin-top: 14px;
}

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

.document h2 {
  font-size: clamp(23px,3vw,30px);
  margin-bottom: 10px;
}

.document p+p,.document li+li {
  margin-top: 10px;
}

.document ol {
  padding-left: 1.5em;
}

.document strong {
  color: var(--ink);
}

.document details {
  border-bottom: 1px solid var(--line);
}

.document summary {
  cursor: pointer;
  padding: 13px 0;
  font-weight: 650;
  color: var(--ink);
}

.document details p {
  padding: 0 0 15px;
}

.mail {
  display: inline-block;
  margin-top: 12px;
  font-weight: 650;
}

footer {
  border-width: 1px 0 0;
}

.foot {
  gap: 20px;
  padding-block: 22px;
  font-size: 14px;
  flex-wrap: wrap;
}

.foot span {
  margin-right: auto;
  color: var(--muted);
}

@media(max-width:740px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 27px;
  }
  .intro {
    max-width: 570px;
  }
  .preview {
    height: 310px;
  }
  .ipad {
    width: 260px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .steps li {
    position: relative;
    padding-left: 32px;
  }
  .steps li:before {
    position: absolute;
    left: 0;
  }
  .top {
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 0;
  }
  .top nav {
    gap: 12px;
  }
  .top .langs {
    padding-left: 10px;
  }
  .document {
    padding-top: 36px;
  }
}

@media(max-width:420px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .top {
    row-gap: 4px;
  }
  .brand {
    font-size: 19px;
  }
  .top nav {
    font-size: 14px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .langs {
    font-size: 13px;
  }
  .preview {
    height: 263px;
    padding-top: 23px;
  }
  .ipad {
    width: 226px;
  }
  .foot {
    gap: 12px;
  }
}

@media(max-width:360px) {
  .top {
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .top nav:not(.langs) {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .top .langs {
    grid-row: 1;
    grid-column: 2;
    border: 0;
  }
  .top nav a {
    padding-block: 4px;
  }
}
