body.dl-page {
  --primary: 196 85% 45%;
  --primary-hover: 196 85% 50%;
  --primary-active: 196 85% 40%;
  --primary-foreground: 210 20% 98%;
  --white: #ffffff;
  --secondary: 210 50% 35%;
  --background: 200 20% 98%;
  --foreground: 210 15% 15%;
  --card: 200 100% 100%;
  --muted: 200 20% 95%;
  --muted-foreground: 210 10% 50%;
  --border: 210 10% 85%;
  --ring: 196 85% 45%;
  --radius: 0.5rem;

  --page: hsl(var(--background));
  --surface: hsl(var(--card));
  --surface-muted: hsl(var(--muted));
  --surface-subtle: hsl(200 24% 97%);
  --text: hsl(var(--foreground));
  --text-muted: hsl(var(--muted-foreground));
  --line: hsl(var(--border));
  --accent: hsl(var(--primary));
  --accent-hover: hsl(var(--primary-hover));
  --accent-active: hsl(var(--primary-active));
  --accent-soft: hsl(var(--primary) / 0.1);
  --warning: hsl(38 92% 50%);
  --warning-soft: hsl(38 92% 50% / 0.12);
  --info: hsl(217 91% 60%);
  --info-soft: hsl(217 91% 60% / 0.1);
  --shadow-sm: 0 1px 2px hsl(210 24% 20% / 0.05);
  --shadow-md: 0 10px 24px hsl(210 24% 20% / 0.08);

  min-height: 100vh;
  margin: 0;
  padding-top: 80px;
  background: var(--page);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

button,
a {
  font: inherit;
}

#download-main a:not(.dl-btn) {
  color: inherit;
}

.dl-shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.dl-platform-bar {
  padding: 8px 0 0;
  border-bottom: 1px solid var(--line);
  background: var(--page);
}

.dl-platform-bar .dl-shell {
  display: flex;
  justify-content: center;
  padding: 0 0 12px;
}

.dl-shell {
  padding: 24px 0 56px;
}

#download-main {
  padding-top: 18px;
}

.dl-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.dl-tab {
  appearance: none;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 0 14px;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.dl-tab:hover {
  color: var(--text);
}

.dl-tab.is-active {
  border-color: hsl(var(--primary) / 0.22);
  background: var(--surface);
  color: var(--accent-active);
  box-shadow: var(--shadow-sm);
}

.dl-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  align-items: stretch;
  gap: 0;
  margin-top: 16px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.dl-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
  padding: 36px;
}

.dl-kicker {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid hsl(var(--primary) / 0.2);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-active);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.dl-title {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 42px;
  font-weight: 760;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.dl-subtitle {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dl-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.dl-btn-primary {
  background: var(--accent);
  color: var(--white);
}

.dl-btn-primary:hover {
  background: var(--accent-hover);
}

.dl-btn-primary:active {
  background: var(--accent-active);
}

.dl-btn-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.dl-btn-secondary:hover {
  border-color: hsl(var(--primary) / 0.34);
  color: var(--accent-active);
}

.dl-btn-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  line-height: 1;
}

.dl-btn-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dl-hero-note {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  max-width: 640px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid hsl(38 92% 50% / 0.22);
  border-radius: var(--radius);
  background: var(--warning-soft);
}

.dl-hero--ios .dl-hero-note {
  border-color: hsl(217 91% 60% / 0.22);
  background: var(--info-soft);
}

.dl-hero-note-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 6px;
  background: var(--warning);
  color: hsl(var(--primary-foreground));
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.dl-hero--ios .dl-hero-note-mark {
  background: var(--info);
}

.dl-hero-note p {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.48;
}

.dl-hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 620px;
  margin: 22px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-subtle);
  overflow: hidden;
}

.dl-hero-meta div {
  min-width: 0;
  padding: 14px 16px;
}

.dl-hero-meta div + div {
  border-left: 1px solid var(--line);
}

.dl-hero-meta dt {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.dl-hero-meta dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dl-hero-side {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 30px;
  border-left: 1px solid var(--line);
  background: var(--surface-subtle);
}

.dl-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.dl-side-label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 780;
  line-height: 1.25;
}

.dl-side-head h2 {
  margin: 6px 0 0;
  font-size: 21px;
  font-weight: 760;
  line-height: 1.2;
}

.dl-side-badge {
  display: inline-flex;
  min-height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 9px;
  border: 1px solid hsl(var(--primary) / 0.22);
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-active);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.dl-install-brief {
  display: grid;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.dl-install-brief li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.dl-brief-step {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid hsl(var(--primary) / 0.24);
  border-radius: 6px;
  background: var(--surface);
  color: var(--accent-active);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.dl-brief-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dl-brief-copy strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.25;
}

.dl-brief-copy span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.42;
}

.dl-hero-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  color: var(--accent-active);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.dl-hero-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dl-section {
  padding: 42px 0;
  border-bottom: 1px solid var(--line);
}

.dl-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.dl-section-head--solo {
  align-items: flex-start;
  justify-content: flex-start;
}

#android-steps {
  margin-top: 0;
  padding: 12px 0 42px;
  border-top: 0;
}

.dl-section-title {
  margin: 0;
  font-size: 30px;
  font-weight: 720;
  line-height: 1.16;
}

.dl-steps-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.dl-steps-row {
  display: grid;
  grid-template-columns: minmax(200px, 248px) minmax(0, 1fr);
  gap: 36px;
  align-items: stretch;
}

.dl-install-path-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  position: relative;
  box-sizing: border-box;
  height: 100%;
  min-height: 100%;
  align-content: center;
  padding-block: 24px;
}

.dl-steps-row:not(:last-child) .dl-install-path-step::after {
  content: "";
  position: absolute;
  top: calc(50% + 20px);
  bottom: calc(-12px - 50% + 20px);
  left: 19px;
  width: 2px;
  background: var(--line);
  pointer-events: none;
}

.dl-install-path-marker {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 15px;
  font-weight: 850;
  z-index: 1;
}

.dl-install-path-copy {
  display: grid;
  gap: 4px;
}

.dl-install-path-copy strong {
  font-size: 15px;
  font-weight: 720;
  line-height: 1.25;
}

.dl-install-path-copy span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.dl-steps,
.dl-step-cards {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dl-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dl-step-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.dl-steps-row .dl-step-card {
  height: 100%;
}

.dl-step-card {
  display: flex;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 220px;
  flex-direction: row;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.dl-step-card-text {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  width: auto;
  margin: 0;
  padding: 24px 28px;
  border-top: 0;
  border-left: 1px solid var(--line);
  background: var(--surface-muted);
  font-size: 15px;
  line-height: 1.45;
}

.dl-step-card-visual {
  display: flex;
  flex: 0 0 min(42%, 320px);
  min-height: 220px;
  min-width: 0;
  align-items: flex-end;
  justify-content: center;
  width: auto;
  padding: 24px 24px 0;
  background: var(--surface-subtle);
  overflow: hidden;
}

.dl-step-banner {
  display: block;
  width: min(100%, 250px);
  height: auto;
  object-fit: contain;
  object-position: bottom center;
}

.dl-step-card-visual--download {
  align-items: center;
  padding: 24px;
}

.dl-step-download-panel {
  display: grid;
  gap: 16px;
  width: min(100%, 320px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dl-step-download-app {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dl-step-download-app-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.dl-step-download-app-icon img {
  width: 30px;
  height: 30px;
}

.dl-step-download-app-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dl-step-download-app-meta strong {
  font-size: 16px;
  line-height: 1.2;
}

.dl-step-download-app-meta span {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.dl-step-download-action {
  width: 100%;
}

.dl-step {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.dl-step-number {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: var(--accent);
  color: hsl(var(--primary-foreground));
  font-size: 14px;
  font-weight: 850;
}

.dl-step h3 {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.2;
}

.dl-step p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.dl-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  max-width: min(320px, calc(100% - 36px));
  padding: 12px 14px;
  border: 1px solid hsl(210 16% 22%);
  border-radius: var(--radius);
  background: hsl(var(--foreground));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 750;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.dl-toast.show {
  opacity: 1;
}

.dl-btn:focus-visible,
.dl-tab:focus-visible,
.dl-hero-link:focus-visible {
  outline: 3px solid hsl(var(--ring) / 0.24);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .dl-hero {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .dl-copy {
    max-width: none;
    padding: 30px;
  }

  .dl-hero-side {
    border-top: 1px solid var(--line);
    border-left: 0;
    padding: 28px 30px 30px;
  }

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

  .dl-steps-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .dl-install-path-step {
    align-content: start;
    padding-block: 0;
  }

  .dl-steps-row:not(:last-child) .dl-install-path-step::after {
    display: none;
  }

  .dl-step-card {
    min-height: 200px;
  }

  .dl-step-card-visual {
    flex-basis: min(38%, 280px);
  }
}

@media (max-width: 680px) {
  .dl-shell {
    width: min(100% - 24px, 1120px);
  }

  .dl-shell {
    padding-top: 18px;
  }

  .dl-platform-bar {
    padding-top: 14px;
  }

  #download-main {
    padding-top: 16px;
  }

  #android-steps {
    padding-top: 8px;
  }

  .dl-platform-bar .dl-tabs,
  .dl-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-hero {
    margin-top: 12px;
  }

  .dl-copy {
    padding: 22px;
  }

  .dl-hero-side {
    padding: 22px;
  }

  .dl-title {
    font-size: 34px;
  }

  .dl-subtitle {
    font-size: 16px;
  }

  .dl-actions {
    flex-direction: column;
  }

  .dl-btn {
    width: 100%;
  }

  .dl-side-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .dl-hero-meta {
    grid-template-columns: 1fr;
  }

  .dl-hero-meta div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .dl-section {
    padding: 34px 0;
  }

  .dl-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .dl-section-title {
    font-size: 26px;
  }

  .dl-steps,
  .dl-step-cards,
  .dl-steps-rows {
    grid-template-columns: 1fr;
  }

  .dl-steps-row {
    gap: 8px;
  }

  .dl-step {
    min-height: 140px;
  }

  .dl-step-card {
    flex-direction: column;
    width: 100%;
    min-height: 0;
  }

  .dl-step-card-text {
    align-items: flex-start;
    padding: 16px 18px 20px;
    border-top: 1px solid var(--line);
    border-left: 0;
    font-size: 14px;
  }

  .dl-step-card-visual {
    flex: 0 0 auto;
    width: 100%;
    min-height: 200px;
    padding: 20px 16px 0;
  }

  .dl-step-banner {
    width: min(100%, 250px);
  }

  .dl-step-card-visual--download {
    padding: 20px 16px;
  }

  .dl-step-download-panel {
    width: 100%;
    padding: 16px;
  }
}

@media (max-width: 420px) {
  .dl-shell {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .dl-platform-bar .dl-shell {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
  }

  .dl-tab {
    min-height: 48px;
  }

  .dl-title {
    font-size: 30px;
  }

  .dl-copy,
  .dl-hero-side {
    padding: 18px;
  }

  .dl-hero-note {
    grid-template-columns: 1fr;
  }

  .dl-step-card,
  .dl-step-card-text,
  .dl-step-card-visual,
  .dl-step-download-panel {
    min-width: 0;
    max-width: 100%;
  }

  .dl-step-download-app-meta span {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
