:root {
  --home-reading-leading: 1.8;
  --home-hero-top: clamp(28px, 4vw, 60px);
  --home-hero-bottom: clamp(40px, 5vw, 80px);
  --home-device-mark-size: 42px;
  --home-note-surface: linear-gradient(145deg, var(--tint), var(--bg-panel) 72%);
}

body > svg[width="0"][height="0"] {
  position: absolute;
  overflow: hidden;
}

.home-main {
  line-height: var(--home-reading-leading);
}

.home-hero {
  padding-top: var(--home-hero-top);
  padding-bottom: var(--home-hero-bottom);
}

.home-hero::after {
  content: none;
}

.home-hero .hero__grid {
  gap: clamp(24px, 4vw, 64px);
}

.home-hero .get-actions {
  margin-top: 20px;
}

.home-guide {
  margin-top: 10px;
  font-size: var(--size-small);
}

.home-hero-terms {
  justify-content: flex-start;
  margin-top: 12px;
}

.home-hero .plat {
  margin-top: 16px;
  padding-top: 12px;
}

.home-hero .plat__list {
  justify-content: flex-start;
  gap: 2px 14px;
}

.home-hero .plat__item {
  min-height: 30px;
}

.home-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.home-heading > p:not(.home-section-label) {
  max-width: 40em;
  margin: 0;
}

.home-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--local-muted, var(--text-muted));
  font: var(--size-meta)/1.4 var(--font-mono);
  letter-spacing: .14em;
}

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

.home-platform-grid > .plat-card {
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.home-platform-grid > .plat-card:nth-last-child(-n + 2) {
  grid-column: span 3;
}

/* Reserve the wider final row by displayed position when the current device moves forward. */
html:is([data-visitor-os="android"], [data-visitor-os="linux"])
  .home-platform-grid > .plat-card:nth-child(3) {
  grid-column: span 3;
}

html[data-visitor-os="android"] .home-platform-grid > [data-plat="android"],
html[data-visitor-os="linux"] .home-platform-grid > [data-plat="linux"] {
  grid-column: span 2;
}

.home-device-mark {
  display: grid;
  width: var(--home-device-mark-size);
  height: var(--home-device-mark-size);
  place-items: center;
  background: var(--button-wash);
  border: 1px solid var(--accent-edge);
  border-radius: var(--radius-btn);
  box-shadow: var(--button-highlight);
}

.home-device-mark svg {
  width: 22px;
  height: 22px;
  color: var(--text);
}

.home-platform-grid h3 {
  margin-top: 0;
}

.home-platform-grid .badge {
  margin-top: auto;
}

.home-section-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
  font-size: var(--size-small);
  font-weight: 600;
}

.home-record-layout {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}

.home-record-intro {
  position: sticky;
  top: var(--anchor-gap);
  min-width: 0;
}

@media (min-width: 901px) {
  .home-record-intro h2 {
    font-size: 26px;
    line-height: 1.35;
    text-wrap: balance;
  }
}

.home-record-card {
  overflow-wrap: anywhere;
}

.home-record-card img {
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-dot);
}

.home-record-card .facts {
  justify-content: flex-start;
}

.home-record-list {
  counter-reset: home-record;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-record-list > li {
  display: grid;
  grid-template-columns: minmax(2.3rem, max-content) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px 14px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid var(--border);
  overflow-wrap: anywhere;
}

.home-record-list > li:last-child {
  border-bottom: 1px solid var(--border);
}

.home-record-list > li::before {
  grid-column: 1;
  grid-row: 1;
  counter-increment: home-record;
  content: counter(home-record, decimal-leading-zero);
  color: var(--accent-ink);
  font: 600 var(--size-h2)/1 var(--font-mono);
}

.home-record-list > li > * {
  grid-column: 2;
}

.home-record-list p {
  margin: 0;
  color: var(--text-muted);
}

.home-record-list p strong,
.home-record-list p a {
  color: var(--text);
}

.home-notes {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--gap);
}

.home-notes > .card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  overflow-wrap: anywhere;
}

.home-notes .home-note-lead {
  grid-row: span 2;
  background: var(--home-note-surface);
  border-top: 3px solid var(--accent-edge);
}

.home-note-lead h3 {
  max-width: 19em;
  font-size: var(--size-h2);
  text-wrap: wrap;
}

.home-note-link {
  padding-top: 12px;
  margin-top: auto;
  font-size: var(--size-small);
  font-weight: 600;
  color: var(--accent-ink);
}

@media (min-width: 901px) and (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-platform-grid > .card,
  .home-notes > .card {
    transition: transform var(--fast) ease, box-shadow var(--fast) ease;
  }

  .home-platform-grid > .card:hover,
  .home-notes > .card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft), var(--shadow-hair);
  }
}

@media (max-width: 1100px) {
  .home-hero .desk {
    width: min(100%, 640px);
  }
}

@media (max-width: 900px) {
  .home-record-layout,
  .home-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-record-intro {
    position: static;
  }

  .home-notes .home-note-lead {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .home-platform-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-platform-grid > .plat-card:nth-child(n),
  html:is([data-visitor-os="android"], [data-visitor-os="linux"])
    .home-platform-grid > .plat-card:nth-child(n) {
    grid-column: 1;
  }
}

@media (max-width: 440px) {
  .home-hero .get-actions {
    gap: 8px;
  }

  .home-hero .get-actions .btn {
    padding-inline: 12px;
  }

  .home-hero .plat__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px 8px;
  }

  .home-hero .plat__item {
    gap: 5px;
  }

  .home-record-list > li {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-record-list > li > * {
    grid-column: 1;
  }
}