.download-hero {
  position: relative;
  padding-top: clamp(54px, 8vw, 104px);
  padding-bottom: clamp(58px, 8vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--color-line);
}

.download-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 72% at 88% 35%, var(--color-sky) 0%, var(--color-sky-clear) 72%),
    radial-gradient(42% 68% at 64% 72%, var(--color-mint) 0%, var(--color-mint-clear) 74%);
  pointer-events: none;
}

.download-hero__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
}

.download-hero__copy {
  max-width: 670px;
}

.download-hero__copy h1 {
  max-width: 660px;
  margin-top: 22px;
  margin-bottom: 26px;
}

.download-hero__copy .lead {
  margin-top: 25px;
  margin-bottom: 0;
}

.download-primary {
  min-height: 66px;
  padding: 12px 28px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}

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

.download-primary .app-store-button__overline {
  font-size: 0.74rem;
}

.download-primary .app-store-button__label {
  font-size: 1.08rem;
}

.download-hero__facts {
  margin-top: 25px;
}

.store-identity {
  position: relative;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-hero);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-frame);
}

.store-identity::before {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 74px;
  height: 74px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  opacity: 0.55;
  pointer-events: none;
}

.store-identity__top {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 30px;
  gap: 17px;
  align-items: center;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-line);
}

.store-identity__logo {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-tight);
}

.store-identity__name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 780;
}

.store-identity__developer {
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.store-identity__check {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-weight: 800;
}

.store-identity__list {
  margin: 8px 0 0;
}

.store-identity__list > div {
  display: grid;
  grid-template-columns: minmax(90px, 0.75fr) minmax(0, 1.25fr);
  gap: 18px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--color-panel-muted);
}

.store-identity__list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.store-identity__list dt {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.store-identity__list dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.store-identity__list > div:first-child dd {
  font-family: var(--font-mono);
}

.download-toc {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 6vw, 66px);
}

.region-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(42px, 7vw, 84px);
  align-items: start;
}

.region-layout .section-heading {
  position: sticky;
  top: 24px;
  margin-bottom: 0;
}

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

.region-steps {
  position: relative;
  display: grid;
  gap: 20px;
}

.region-steps::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 34px;
  left: 23px;
  width: 1px;
  background: var(--color-line);
}

.region-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 20px;
  padding: 26px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.region-step__number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.region-step h3 {
  margin-bottom: 9px;
}

.region-step p {
  margin: 0;
  color: var(--color-text-muted);
}

.verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(400px, 0.9fr);
  gap: clamp(38px, 6vw, 72px);
  align-items: start;
}

.verify-facts {
  display: grid;
  gap: 15px;
}

.verify-fact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.verify-fact__number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-panel-muted);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
}

.verify-fact h3 {
  margin-bottom: 8px;
}

.verify-fact p {
  margin: 0;
  color: var(--color-text-muted);
}

.official-screens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
  padding: 28px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--color-mint), var(--color-sky));
  box-shadow: var(--shadow-float);
}

.official-screens .screenshot-figure {
  width: min(100%, 280px);
  min-width: 0;
}

.official-screens .screenshot-figure img {
  width: 100%;
  max-width: 280px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  object-fit: contain;
}

.screen-note {
  max-width: 860px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--color-line);
}

.screen-note p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.device-notes {
  display: grid;
  gap: 24px;
}

.device-note {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(26px, 4vw, 42px);
  scroll-margin-top: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-soft);
}

.device-note__icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: var(--radius-xl);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
}

.device-note__icon svg {
  width: 42px;
  height: 42px;
}

.device-note__icon--tablet svg {
  width: 52px;
}

.device-note h3 {
  margin-top: 14px;
}

.device-note p {
  margin-top: 0;
  color: var(--color-text-muted);
}

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

.other-devices {
  margin-top: 24px;
}

.other-devices p {
  color: var(--color-text-muted);
}

.other-devices p:last-child {
  margin-bottom: 0;
}

.restore-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: restore-step;
}

.restore-list::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 23px;
  width: 1px;
  background: var(--color-line);
}

.restore-list li {
  position: relative;
  padding-left: 76px;
  counter-increment: restore-step;
}

.restore-list li + li {
  margin-top: 36px;
}

.restore-list li::before {
  content: counter(restore-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--color-accent-soft);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.restore-list h3 {
  margin-bottom: 9px;
}

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

.price-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: clamp(42px, 7vw, 82px);
  align-items: center;
}

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

.price-copy p:not(.lead) {
  color: var(--color-text-muted);
}

.price-summary {
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-hero);
  background: var(--color-panel);
  color: var(--color-text);
  box-shadow: var(--shadow-float);
}

.price-summary__label {
  color: var(--color-text-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.price-summary__amount {
  margin-top: 8px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-summary__caption {
  margin-top: 10px;
  color: var(--color-text-muted);
  font-size: 0.86rem;
}

.price-summary__list {
  margin-top: 25px;
  margin-bottom: 27px;
  padding: 0;
  list-style: none;
}

.price-summary__list li {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-line);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.price-summary__list li:last-child {
  border-bottom: 0;
}

.price-summary .app-store-button {
  width: 100%;
}

#store,
#verify,
#iphone,
#ipad,
#restore,
#price,
#download-faq {
  scroll-margin-top: 22px;
}

@media (max-width: 980px) {
  .download-hero__layout,
  .region-layout,
  .verify-layout,
  .price-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .store-identity {
    max-width: 620px;
  }

  .region-layout .section-heading {
    position: static;
  }

  .verify-layout {
    gap: 36px;
  }

  .official-screens {
    max-width: 650px;
  }

  .price-summary {
    max-width: 600px;
  }
}

@media (max-width: 680px) {
  .download-hero {
    padding-top: 44px;
    padding-bottom: 64px;
  }

  .download-hero__layout {
    gap: 38px;
  }

  .download-primary {
    width: 100%;
    min-height: 62px;
  }

  .store-identity {
    padding: 22px;
    border-radius: var(--radius-xl);
  }

  .store-identity__top {
    grid-template-columns: 58px minmax(0, 1fr) 26px;
    gap: 12px;
  }

  .store-identity__logo {
    width: 58px;
    height: 58px;
  }

  .store-identity__check {
    width: 26px;
    height: 26px;
  }

  .store-identity__list > div {
    grid-template-columns: minmax(78px, 0.7fr) minmax(0, 1.3fr);
    gap: 12px;
  }

  .download-toc {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .download-toc a {
    flex: 0 0 auto;
  }

  .region-step,
  .verify-fact {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 14px;
    padding: 20px;
  }

  .region-step__number,
  .verify-fact__number {
    width: 40px;
    height: 40px;
  }

  .region-steps::before {
    left: 19px;
  }

  .official-screens {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px;
  }

  .official-screens .screenshot-figure {
    width: min(100%, 280px);
  }

  .device-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 24px;
  }

  .device-note__icon {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-lg);
  }

  .restore-list li {
    padding-left: 64px;
  }

  .restore-list li::before {
    width: 42px;
    height: 42px;
  }

  .restore-list::before {
    left: 20px;
  }

  .price-summary__amount {
    font-size: 3.25rem;
  }
}

@media (max-width: 390px) {
  .store-identity__top {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .store-identity__logo {
    width: 52px;
    height: 52px;
  }

  .store-identity__check {
    display: none;
  }

  .region-step,
  .verify-fact {
    grid-template-columns: minmax(0, 1fr);
  }

  .region-steps::before {
    display: none;
  }

  .restore-list li {
    padding-left: 56px;
  }

  .dl-fab span {
    max-width: 142px;
    overflow: hidden;
    white-space: nowrap;
  }
}