:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #1d2d24;
  --soft: #526057;
  --green: #234f3b;
  --green-deep: #183b2b;
  --line: #e1e8e1;
  --gutter: clamp(20px, 6vw, 88px);
  --radius: 14px;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #377b55; outline-offset: 4px; }
svg { display: block; width: 20px; height: 20px; flex-shrink: 0; }
.glyph-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p { margin: 0; }

.site-header, .hero, .platforms, .site-footer {
  width: min(100% - var(--gutter) * 2, 1300px);
  margin-inline: auto;
}

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

.wordmark, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.wordmark { font-size: 17px; font-weight: 700; }
.wordmark img { width: 40px; height: 40px; object-fit: contain; }
.text-link { font-size: 14px; min-height: 44px; font-weight: 600; }
.text-link svg { width: 15px; height: 15px; }
.text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(36px, 6.3vw, 100px);
  margin-block-start: clamp(20px, 3vw, 48px);
}
.hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px 0 34px;
}
h1 {
  color: var(--green-deep);
  font-size: clamp(46px, 5vw, 74px);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 720;
  text-wrap: balance;
}
.intro {
  margin-top: clamp(20px, 2.3vw, 32px);
  max-width: 23em;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.8;
  color: var(--soft);
}
.download-button {
  margin-top: clamp(24px, 3vw, 40px);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  max-width: 100%;
  border-radius: 9px;
  padding: 12px 20px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
.download-button:hover { background: var(--green-deep); }
.release-meta {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}
.web-link { margin-top: 12px; color: var(--green-deep); }
.hero-links { display: flex; flex-wrap: wrap; column-gap: 22px; margin-top: 12px; }
.hero-links .web-link { margin-top: 0; }
#platform-ios a { min-height: 44px; margin-top: 0; }

.brand-scene { margin: 0; min-width: 0; }
.scene-media {
  position: relative;
  aspect-ratio: 1.4;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--paper);
}
.scene-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 53% center;
}
[data-scene="prep"] .scene-media img { object-position: 67% center; }
[data-scene="field"] .scene-media img { object-fit: contain; }
[data-scene="table"] .scene-media img { object-position: 61% center; }
.scene-footer {
  min-height: 54px;
  padding-block: 6px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0 14px;
}
.scene-brand { color: var(--soft); font-size: 14px; font-weight: 600; white-space: nowrap; }
.scene-options { display: flex; flex-wrap: wrap; gap: 2px 12px; }
.scene-options button {
  min-height: 44px;
  min-width: 44px;
  padding: 6px 5px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--soft);
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.scene-options button:hover { color: var(--green); }
.scene-options button[aria-pressed="true"] { color: var(--green-deep); border-bottom-color: var(--green); font-weight: 650; }
.scene-options button:focus-visible { outline-offset: 1px; }

.platforms { padding-block: clamp(48px, 5.9vw, 88px) 54px; scroll-margin-top: 24px; }
.platform-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 24px;
}
h2 { font-size: clamp(25px, 2.5vw, 36px); line-height: 1.2; letter-spacing: -.035em; }
.platform-heading p { color: var(--soft); font-size: 14px; }
.platform-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
  padding: 0;
  margin: 0;
  list-style: none;
}
.platform {
  min-width: 0;
  min-height: 103px;
  padding: 20px clamp(14px, 1.9vw, 28px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  scroll-margin-top: 20px;
}
.platform.platform-recommended, .platform:target { border-color: #82a992; }
.platform > svg { width: 23px; height: 23px; color: var(--green); fill: currentColor; }
.platform h3 { font-size: 18px; line-height: 1.3; font-weight: 690; }
.platform p, .platform a { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; line-height: 1.5; }
.platform p { color: var(--soft); }
.platform a { color: var(--green-deep); text-underline-offset: 3px; font-weight: 650; }
.platform a svg { width: 15px; height: 15px; }
.platform-recommendation { display: block; margin-top: 7px; color: var(--green); font-size: 13px; line-height: 1.4; }
.site-footer {
  padding: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-header { min-height: 66px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-copy { padding: 8px 0 0; }
  h1 { font-size: clamp(35px, 7.4vw, 58px); }
  h1 br { display: none; }
  .intro { margin-top: 16px; }
  .download-button { margin-top: 24px; }
  .scene-media { aspect-ratio: 1.46; }
  [data-scene="delivery"] .scene-media img { object-position: 53% 28%; }
  .platform-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 390px) {
  .scene-options { gap: 1px 4px; }
  .scene-options button { padding-inline: 2px; }
  .platform { gap: 8px; padding-inline: 12px; }
  .platform > svg { width: 19px; height: 19px; }
}
