:root {
  --download-copy-width: 720px;
  --download-card-width: 430px;
  --download-shot-width: 280px;
  --download-icon-size: 72px;
}

.download-page {
  overflow-x: clip;
}

.download-hero {
  position: relative;
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: clamp(64px, 8vw, 112px);
  overflow: hidden;
  background: var(--color-page);
}

.download-hero::before {
  position: absolute;
  top: -28%;
  right: -10%;
  width: min(68vw, 860px);
  aspect-ratio: 1;
  border-radius: var(--radius-pill);
  background: radial-gradient(closest-side, var(--color-accent-glow), var(--color-accent-glow-soft) 44%, transparent 74%);
  content: "";
  pointer-events: none;
}

.download-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.download-hero-copy {
  max-width: var(--download-copy-width);
}

.download-hero-copy h1 {
  max-width: 680px;
  margin-top: 22px;
}

.download-hero-copy .lead {
  margin-top: 26px;
}

.download-primary {
  min-height: 68px;
  padding-inline: 28px;
  border-color: var(--color-accent-deep);
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-deep));
  color: var(--color-on-accent);
  box-shadow: var(--shadow-hero);
}

.download-primary:hover {
  background: linear-gradient(180deg, var(--color-accent-deep), var(--color-accent));
  color: var(--color-on-accent);
}

.download-primary svg {
  width: 29px;
  height: 29px;
}

.download-primary .store-button-copy small,
.download-primary .store-button-copy strong {
  color: var(--color-on-accent);
}

.download-primary .store-button-copy strong {
  font-size: 17px;
}

.download-hero-copy .fact-row {
  margin-top: 25px;
}

.device-fact-link {
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.device-fact-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.store-check-card {
  width: 100%;
  max-width: var(--download-card-width);
  margin-left: auto;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-page);
  box-shadow: var(--shadow-hero);
  transform: rotate(1.5deg);
}

.store-check-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.store-check-head > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.store-check-head small {
  color: var(--color-muted);
  font-size: 12px;
}

.store-check-head strong {
  font-size: 17px;
}

.store-check-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
}

.store-check-mark svg {
  width: 24px;
  height: 24px;
}

.store-check-list {
  margin: 0;
  padding: 8px 8px 0;
  list-style: none;
}

.store-check-list li {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
  padding-top: 17px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--color-border);
}

.store-check-list li:last-child {
  border-bottom: 0;
}

.store-check-list p {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.check-index {
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
}

.store-check-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-success-soft);
  color: var(--color-text);
  font-size: 12.5px;
}

.download-content {
  position: relative;
}

.download-content > .toc {
  margin-top: -24px;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 38px;
}

.section-heading h2 {
  margin-top: 18px;
}

.region-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 22px;
  align-items: stretch;
}

.region-explanation,
.region-note {
  height: 100%;
}

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

.path-block {
  display: flex;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
  padding: 16px;
  border: 1px solid var(--color-accent-line);
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 13px;
}

.path-block span:nth-child(even) {
  color: var(--color-accent-deep);
}

.verify-section {
  margin-inline: calc(var(--gutter) * -1);
}

.verify-inner {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.verify-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(460px, 0.94fr);
  gap: clamp(26px, 5vw, 58px);
  align-items: start;
}

.verify-copy {
  box-shadow: var(--shadow-lift);
}

.verify-steps {
  display: grid;
  gap: 22px;
  margin-bottom: 25px;
  padding-left: 1.25em;
}

.verify-steps li::marker {
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-weight: 750;
}

.verify-steps p {
  margin-top: 5px;
  margin-bottom: 0;
  color: var(--color-muted);
}

.official-shots-copy {
  min-width: 0;
}

.official-shots-copy .screenshot-row {
  flex-wrap: nowrap;
}

.official-shots-copy .official-shot {
  width: min(50%, var(--download-shot-width));
  min-width: 0;
}

.shot-note {
  max-width: 560px;
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 13px;
}

.device-section {
  display: grid;
  grid-template-columns: var(--download-icon-size) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.device-section-icon {
  display: grid;
  width: var(--download-icon-size);
  height: var(--download-icon-size);
  place-items: center;
  border: 1px solid var(--color-accent-line);
  border-radius: var(--radius-lg);
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  box-shadow: var(--shadow-soft);
}

.device-section-icon svg {
  width: 40px;
  height: 40px;
}

.device-section-copy > .eyebrow {
  margin-bottom: 18px;
}

.device-section-copy > .lead {
  margin-bottom: 36px;
}

.instruction-grid,
.ipad-copy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 38px;
}

.instruction-grid .card,
.ipad-copy-grid .card {
  height: 100%;
}

.instruction-grid p:last-child,
.ipad-copy-grid p:last-child {
  margin-bottom: 0;
}

.wrapless-device {
  width: 100%;
}

.platform-compatibility {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-page);
  box-shadow: var(--shadow-soft);
}

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

.restore-flow {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 14px;
  list-style: none;
}

.restore-flow > li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.restore-flow h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

.restore-flow p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.flow-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 750;
}

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

.price-copy h2 {
  margin-top: 18px;
}

.price-fact-card {
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-page);
  box-shadow: var(--shadow-lift);
}

.price-fact-card h3 {
  margin-top: 18px;
}

.price-facts {
  display: grid;
  gap: 1px;
  margin-top: 26px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-border);
}

.price-facts > div {
  display: grid;
  grid-template-columns: minmax(100px, 0.6fr) minmax(0, 1fr);
  gap: 14px;
  padding: 15px 16px;
  background: var(--color-panel);
}

.price-facts span {
  color: var(--color-muted);
  font-size: 13px;
}

.end-store-link {
  flex: 0 0 auto;
}

@media (max-width: 1020px) {
  .download-hero-grid,
  .verify-grid,
  .price-layout {
    grid-template-columns: 1fr;
  }

  .store-check-card {
    max-width: 620px;
    margin-right: auto;
    margin-left: 0;
    transform: none;
  }

  .verify-grid {
    gap: 32px;
  }

  .official-shots-copy .screenshot-row {
    justify-content: center;
  }
}

@media (max-width: 820px) {
  .region-layout,
  .instruction-grid,
  .ipad-copy-grid {
    grid-template-columns: 1fr;
  }

  .device-section {
    grid-template-columns: 1fr;
  }

  .device-section-icon {
    width: 62px;
    height: 62px;
  }
}

@media (max-width: 640px) {
  .download-hero {
    padding-top: 36px;
    padding-bottom: 68px;
  }

  .download-hero::before {
    top: 28%;
    right: -65%;
    width: 150vw;
  }

  .download-primary {
    width: 100%;
    min-height: 64px;
    justify-content: flex-start;
    padding-inline: 22px;
  }

  .store-check-card {
    padding: 10px;
  }

  .download-content > .toc {
    margin-top: -20px;
  }

  .verify-section {
    margin-inline: calc(var(--gutter) * -1);
  }

  .official-shots-copy .screenshot-row {
    flex-direction: column;
  }

  .official-shots-copy .official-shot {
    width: min(100%, var(--download-shot-width));
  }

  .restore-flow > li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 20px;
  }

  .flow-number {
    width: 38px;
    height: 38px;
  }

  .price-facts > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .path-block {
    align-items: flex-start;
    flex-direction: column;
  }

  .path-block span:nth-child(even) {
    transform: rotate(90deg);
  }
}