:root {
  color-scheme: light;
  --background: #ffffff;
  --text: #070707;
  --muted: #666a73;
  --line: #d7d9dc;
  --available: #18b852;
  --preview: #e59a00;
  --windows-tint: #eef7ff;
  --max: 1280px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--background); }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

.site-header {
  border-bottom: 1px solid var(--line);
}

.header-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-right: auto;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.header-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.header-link,
.site-footer a {
  font-size: 16px;
  text-decoration: none;
  text-underline-offset: 5px;
}

.header-link:hover,
.site-footer a:hover {
  text-decoration: underline;
}

main {
  padding: clamp(64px, 7vw, 86px) 0 0;
}

.intro h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(58px, 6vw, 84px);
  font-weight: 780;
  line-height: 0.98;
  letter-spacing: -0.062em;
}

.intro p {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.4;
}

.platforms {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform {
  min-width: 0;
  min-height: 424px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 45px 22px 38px;
  border-left: 1px solid var(--line);
  text-align: center;
  transition: background-color 160ms ease;
}

.platform:last-child { border-right: 1px solid var(--line); }
.platform:hover { background: #fafafa; }
.platform.is-featured { background: var(--windows-tint); }
.platform.is-featured:hover { background: #e7f3ff; }

.platform-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.platform-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.apple-icon svg { width: 82px; height: 82px; }
.finder-icon svg { width: 78px; height: 78px; }
.windows-icon svg { width: 72px; height: 72px; }
.android-icon svg { width: 82px; height: 74px; }

.platform h2 {
  margin: 0;
  font-size: clamp(25px, 2.3vw, 31px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.platform-system {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.3;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
}

.status::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.status.available { color: var(--available); }
.status.preview { color: var(--preview); }

.actions {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: auto;
}

.platform-action,
.platform-unavailable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.platform-action svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.platform-action:hover { text-decoration: underline; text-underline-offset: 5px; }

.platform-action:focus-visible,
.header-link:focus-visible,
.brand:focus-visible,
.site-footer a:focus-visible {
  outline: 3px solid #1689f8;
  outline-offset: 5px;
  border-radius: 3px;
}

.release-notes {
  margin-top: 38px;
  border-top: 1px solid #aeb1b6;
}

.release-notes p {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 10px;
  border-bottom: 1px solid #aeb1b6;
  font-size: 15px;
}

.info-icon {
  width: 21px;
  height: 21px;
  display: inline-grid;
  flex: 0 0 21px;
  place-items: center;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.site-footer {
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.footer-wrap {
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

[hidden] { display: none !important; }

@media (max-width: 980px) {
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform:nth-child(3) { border-top: 1px solid var(--line); }
  .platform:nth-child(4) { border-top: 1px solid var(--line); }
  .platform:nth-child(2) { border-right: 1px solid var(--line); }
  .platform { min-height: 394px; }
}

@media (max-width: 620px) {
  .wrap { width: min(calc(100% - 30px), var(--max)); }
  .header-wrap { min-height: 70px; gap: 18px; }
  .brand { gap: 10px; font-size: 16px; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .header-nav { gap: 18px; }
  .header-link { font-size: 14px; }
  main { padding-top: 48px; }
  .intro h1 { font-size: clamp(48px, 15vw, 68px); }
  .intro p { margin-top: 18px; }
  .platforms { grid-template-columns: 1fr; margin-top: 38px; }
  .platform,
  .platform:nth-child(2),
  .platform:nth-child(3),
  .platform:nth-child(4) {
    min-height: 340px;
    padding: 38px 24px 32px;
    border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }
  .platform:first-child { border-top: 0; }
  .platform h2 { font-size: 29px; }
  .release-notes p { align-items: flex-start; padding: 14px 6px; line-height: 1.5; }
  .footer-wrap { min-height: 88px; align-items: flex-start; flex-direction: column; justify-content: center; }
  .site-footer nav { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform { transition: none; }
}
