.touch-platform-page main {
  padding-bottom: clamp(88px, 12vw, 148px);
}

html:not([data-theme="dark"]) body.touch-platform-page h1,
html:not([data-theme="dark"]) body.touch-platform-page h2 {
  color: #3b836c;
}

html:not([data-theme="dark"]) body.touch-platform-page .platform-guide-link strong {
  color: #075f4d;
}

html:not([data-theme="dark"]) body.touch-platform-page .platform-guide-link span {
  color: #405750;
}

.touch-platform-page h1,
.touch-platform-page h2,
.touch-platform-page h3,
.touch-platform-page .platform-guide-link strong {
  font-weight: 700;
}

.touch-platform-hero h1 {
  max-width: 10ch;
}

@media (min-width: 881px) {
  .touch-platform-page .touch-platform-hero {
    --page-logo-shift: clamp(22px, 2vw, 26px);
    grid-template-columns: minmax(0, 1fr) clamp(230px, 19.5vw, 250px);
  }

  .touch-platform-page .touch-platform-hero .page-logo {
    width: clamp(230px, 19.5vw, 250px);
  }
}

.platform-overview,
.platform-flavors,
.platform-features,
.platform-actions,
.platform-guide,
.platform-support {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.platform-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
  margin-bottom: clamp(86px, 11vw, 138px);
  padding: clamp(24px, 4vw, 46px);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint-dark) 28%, transparent);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.platform-preview {
  overflow: hidden;
  background: #292b2a;
  border: 1px solid color-mix(in srgb, var(--mint-dark) 34%, transparent);
  border-radius: 7px;
}

.platform-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.platform-overview-copy h2,
.platform-flavors-heading h2,
.platform-actions h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 0.98;
  text-wrap: balance;
}

.platform-overview-copy > p:not(.kicker),
.platform-flavors-heading > p:not(.kicker),
.platform-actions > div > p {
  color: var(--muted);
  font-size: 1.04rem;
}

.platform-store-link {
  display: inline-flex;
  margin-top: 20px;
  border-radius: 7px;
  transition: transform 180ms ease, filter 180ms ease;
}

.platform-store-link:hover,
.platform-store-link:focus-visible {
  filter: drop-shadow(0 12px 24px color-mix(in srgb, var(--mint-dark) 24%, transparent));
  transform: translateY(-2px);
}

.platform-store-link img {
  width: auto;
  height: 52px;
}

.platform-switch {
  display: block;
  width: fit-content;
  margin-top: 20px;
  color: var(--mint-dark);
  font-weight: 800;
}

.platform-translation {
  display: block;
  width: fit-content;
  margin-top: 10px;
  color: var(--mint-dark);
  font-weight: 800;
}

.platform-translation-action {
  transition: color 160ms ease;
}

.platform-translation:hover .platform-translation-action,
.platform-translation:focus-visible .platform-translation-action {
  color: var(--mint);
}

.platform-switch::after,
.platform-action-link::after {
  content: " →";
}

.platform-flavors {
  margin-bottom: clamp(84px, 11vw, 136px);
}

.platform-flavors-heading {
  max-width: 760px;
  margin: 0 auto clamp(34px, 6vw, 62px);
  text-align: center;
}

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

.platform-flavor-card {
  position: relative;
  min-height: 260px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint-dark) 25%, transparent);
  border-radius: 7px;
  box-shadow: 0 14px 38px rgba(23, 45, 39, 0.08);
}

.platform-flavor-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--mint);
}

.platform-flavor-card img {
  width: 84px;
  height: 84px;
  margin-bottom: 24px;
  object-fit: contain;
}

.platform-flavor-card h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.08;
}

.platform-flavor-card p {
  margin: 0;
  color: var(--muted);
}

.platform-flavor-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 28px;
  margin-bottom: 16px;
  padding: 4px 9px;
  color: var(--mint-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  border: 1px solid color-mix(in srgb, var(--mint-dark) 36%, transparent);
  border-radius: 999px;
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: clamp(76px, 10vw, 126px);
}

.platform-feature {
  padding: clamp(24px, 3.5vw, 38px);
  border-top: 1px solid color-mix(in srgb, var(--mint-dark) 34%, transparent);
}

.platform-feature span {
  color: var(--mint-dark);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.platform-feature h3 {
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 1.45rem;
}

.platform-feature p {
  margin: 0;
  color: var(--muted);
}

.platform-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 36px;
  padding-top: clamp(48px, 7vw, 78px);
  border-top: 1px solid color-mix(in srgb, var(--mint-dark) 30%, transparent);
}

.platform-action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.platform-action-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  color: var(--mint-dark);
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--mint-dark) 42%, transparent);
  border-radius: 6px;
}

.platform-action-link.primary {
  color: #f6fffc;
  background: var(--mint-dark);
}

html[data-theme="dark"] .platform-overview,
html[data-theme="dark"] .platform-flavor-card {
  background: color-mix(in srgb, var(--surface) 54%, transparent);
  border-color: color-mix(in srgb, var(--mint) 22%, transparent);
}

html[data-theme="dark"] .platform-flavor-code,
html[data-theme="dark"] .platform-switch,
html[data-theme="dark"] .platform-translation,
html[data-theme="dark"] .platform-action-link:not(.primary) {
  color: var(--mint);
}

html[data-theme="dark"] .platform-translation:hover .platform-translation-action,
html[data-theme="dark"] .platform-translation:focus-visible .platform-translation-action {
  color: color-mix(in srgb, var(--mint) 68%, white);
}

.platform-guide {
  margin-bottom: clamp(84px, 11vw, 136px);
}

.platform-guide-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: clamp(26px, 5vw, 58px);
  margin-bottom: clamp(34px, 6vw, 58px);
  padding: clamp(26px, 4vw, 44px);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint-dark) 27%, transparent);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.platform-guide-intro h2,
.platform-support h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.15rem, 5vw, 4.2rem);
  line-height: 0.98;
  text-wrap: balance;
}

.platform-guide-intro p,
.platform-support p {
  color: var(--muted);
}

.platform-guide-note {
  align-self: end;
  padding: 24px;
  background: color-mix(in srgb, var(--mint) 10%, var(--surface));
  border-left: 4px solid var(--mint);
  border-radius: 6px;
}

.platform-guide-note p:last-child {
  margin-bottom: 0;
}

.platform-guide-key {
  display: inline-grid;
  min-width: 2.15em;
  min-height: 2.15em;
  place-items: center;
  margin-inline: 0.2em;
  padding: 0.18em 0.48em;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint-dark) 35%, transparent);
  border-radius: 5px;
  font: 850 0.95em/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: inset 0 -3px 0 color-mix(in srgb, var(--mint-dark) 12%, transparent);
}

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

.platform-guide-link {
  position: relative;
  display: grid;
  min-height: 166px;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding: 26px 52px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid color-mix(in srgb, var(--mint-dark) 24%, transparent);
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(22, 51, 43, 0.06);
  text-align: center;
  transition: border-color 180ms ease, transform 180ms ease;
}

.platform-guide-link::after {
  content: "→";
  position: absolute;
  top: 22px;
  right: 24px;
  color: var(--mint-dark);
  font-size: 1.35rem;
  font-weight: 900;
}

.platform-guide-link:hover,
.platform-guide-link:focus-visible {
  border-color: var(--mint-dark);
  transform: translateY(-2px);
}

.platform-guide-link strong {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
}

.platform-guide-link span {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.platform-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: end;
  padding-top: clamp(52px, 7vw, 82px);
  border-top: 1px solid color-mix(in srgb, var(--mint-dark) 30%, transparent);
}

.platform-support-links {
  display: grid;
  gap: 10px;
}

.platform-support-links a {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 15px;
  color: var(--mint-dark);
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--mint-dark) 34%, transparent);
  border-radius: 6px;
}

.platform-support-links a::after {
  content: "→";
}

html[data-theme="dark"] .platform-guide-intro,
html[data-theme="dark"] .platform-guide-link {
  background: color-mix(in srgb, var(--surface) 54%, transparent);
  border-color: color-mix(in srgb, var(--mint) 22%, transparent);
}

html[data-theme="dark"] .platform-guide-link::after,
html[data-theme="dark"] .platform-support-links a {
  color: var(--mint);
}

@media (max-width: 900px) {
  .platform-overview {
    grid-template-columns: 1fr;
  }

  .platform-overview-copy {
    text-align: center;
  }

  .platform-switch,
  .platform-translation,
  .platform-store-link {
    margin-inline: auto;
  }

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

  .platform-actions {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .platform-action-links {
    justify-content: center;
  }

  .platform-guide-intro,
  .platform-support {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .platform-overview,
  .platform-flavors,
  .platform-features,
  .platform-actions,
  .platform-guide,
  .platform-support {
    width: min(calc(100% - 28px), var(--max));
  }

  .platform-overview {
    padding: 18px;
  }

  .platform-flavor-grid,
  .platform-features,
  .platform-guide-grid {
    grid-template-columns: 1fr;
  }

  .platform-flavor-card {
    min-height: 0;
  }

  .platform-actions h2 {
    font-size: clamp(2.1rem, 12vw, 3.2rem);
  }
}
