.ios-flow {
  margin-top: 4px;
}

.ios-availability-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  max-width: 760px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(90, 167, 255, 0.3);
  border-radius: 16px;
  background: rgba(13, 26, 44, 0.82);
}

.ios-availability-note > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(90, 167, 255, 0.14);
  color: #bcdcff;
  font-size: 17px;
  font-weight: 900;
}

.ios-availability-note strong {
  display: block;
  font-size: 17px;
}

.ios-availability-note p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.ios-flow-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.ios-flow-kicker {
  display: block;
  margin-bottom: 8px;
  color: #b9ffd5;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ios-flow-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05;
}

.ios-flow-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.ios-install-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ios-flow-step {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 27, 45, 0.82);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.ios-step-copy {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-height: 142px;
  padding: 20px 18px 18px;
}

.ios-step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #03111f;
  font-weight: 900;
}

.ios-step-copy h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.18;
}

.ios-step-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.ios-step-shot {
  aspect-ratio: 1179 / 2556;
  margin: auto 12px 12px;
  overflow: hidden;
  border-radius: 13px;
  background: #eef0f2;
}

.ios-step-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ios-shot {
  aspect-ratio: 1206 / 2622;
  background: #02050b;
}

.ios-shot img {
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  transform: none;
}

/* Light product-page presentation */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: #ffffff;
  --panel-2: #f0f4fa;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(29, 29, 31, 0.16);
  --accent: #0071e3;
  --accent-2: #0077ed;
}

body {
  background: #f5f5f7;
  color: var(--text);
}

.page {
  padding: 0;
}

.wrap {
  width: min(1120px, calc(100% - 48px));
}

.topbar {
  min-height: 64px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.12);
}

.logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: none;
}

.brand {
  gap: 10px;
}

.brand strong {
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 650;
}

.brand span {
  color: #6e6e73;
  font-size: 12px;
}

.back {
  min-height: 34px;
  padding: 7px 11px;
  border-color: rgba(29, 29, 31, 0.16);
  color: #0066cc;
  font-size: 13px;
}

.mac-hero.ios-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  padding: 72px 0 64px;
}

.mac-hero .eyebrow {
  margin-bottom: 14px;
  color: #0066cc;
  font-size: 13px;
}

.pulse {
  width: 7px;
  height: 7px;
  background: #0071e3;
  box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.13);
}

.mac-hero h1 {
  max-width: 680px;
  color: #1d1d1f;
  font-size: clamp(44px, 5.4vw, 66px);
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -0.052em;
}

.mac-hero .lead {
  max-width: 600px;
  color: #424245;
  font-size: clamp(18px, 1.8vw, 21px);
  line-height: 1.42;
}

.ios-availability-note {
  max-width: 650px;
  margin-top: 24px;
  padding: 15px 17px;
  border-color: #f1d799;
  border-radius: 16px;
  background: #fff9e8;
}

.ios-availability-note > span {
  width: 30px;
  height: 30px;
  background: #fff0c4;
  color: #9a6700;
  font-size: 15px;
}

.ios-availability-note strong {
  color: #1d1d1f;
  font-size: 15px;
}

.ios-availability-note p {
  color: #515154;
  font-size: 14px;
}

.app-store-button {
  min-height: 60px;
  border-radius: 13px;
  box-shadow: none;
}

.ios-flow {
  margin-top: 0;
  padding: 68px 0 0;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
}

.ios-flow-heading {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 34px;
}

.ios-flow-kicker {
  margin-bottom: 10px;
  color: #0066cc;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.ios-flow-heading h2 {
  color: #1d1d1f;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 650;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.ios-flow-heading p {
  max-width: 560px;
  color: #6e6e73;
  font-size: 17px;
}

.ios-install-flow {
  gap: 16px;
}

.ios-flow-step {
  border-color: rgba(29, 29, 31, 0.12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(29, 29, 31, 0.06);
}

.ios-step-copy {
  min-height: 126px;
  padding: 18px 17px 16px;
}

.ios-step-number {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #eaf4ff;
  color: #0066cc;
  font-size: 13px;
}

.ios-step-copy h3 {
  color: #1d1d1f;
  font-size: 18px;
}

.ios-step-copy p {
  color: #6e6e73;
  font-size: 13px;
}

.ios-step-shot {
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 12px;
}

.result {
  margin-top: 82px;
  padding: 52px;
  border-radius: 28px;
  background: #eaf4ff;
}

.result h2,
.result p {
  color: #1d1d1f;
}

.result p,
.support-line {
  color: #515154;
}

.support-line a,
.footer-links a {
  color: #0066cc;
}

footer {
  border-top-color: rgba(29, 29, 31, 0.16);
  color: #6e6e73;
}

@media (max-width: 1050px) {
  .ios-install-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .ios-flow-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .ios-install-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ios-availability-note {
    grid-template-columns: 1fr;
  }

  .ios-install-flow {
    grid-template-columns: 1fr;
  }

  .ios-step-copy {
    min-height: 0;
  }

  .ios-step-shot {
    width: min(100% - 24px, 400px);
    align-self: center;
  }
}

/* Mirrors the visual language of the homepage. */
.mac-hero.ios-hero {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 0;
  padding: 78px 0 74px;
  text-align: center;
}

.home-link {
  position: absolute;
  top: 24px;
  left: 0;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid rgba(29, 29, 31, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #0066cc;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.home-link:hover,
.home-link:focus-visible {
  border-color: #0071e3;
  background: #eaf4ff;
  outline: none;
}

.ios-hero > div {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.hero-logo {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 17px;
  box-shadow: 0 7px 18px rgba(29, 29, 31, 0.15);
}

.mac-hero .eyebrow {
  justify-content: center;
  margin-bottom: 16px;
  color: #515154;
  font-size: 14px;
  font-weight: 600;
}

.mac-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 4.8vw, 64px);
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.ios-device-title {
  margin: 8px 0 0;
  color: #6e6e73;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.mac-hero .lead {
  max-width: 580px;
  margin-top: 18px;
  font-size: clamp(18px, 1.75vw, 21px);
}

.ios-availability-note {
  text-align: left;
}

.ios-region-guide {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: 12px;
  padding: 6px 11px;
  border: 1px solid rgba(154, 103, 0, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  color: #9a6700;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
}

.ios-region-guide:hover,
.ios-region-guide:focus-visible {
  border-color: #9a6700;
  background: #fff;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ready {
  color: #247849;
  font-size: 13px;
  font-weight: 700;
}

.ready span {
  background: #248a4b;
  box-shadow: 0 0 0 6px rgba(36, 138, 75, 0.14);
}

.result h2 {
  max-width: 520px;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.app-store-button {
  margin-top: 26px;
}

.ios-flow {
  padding: 76px 0 84px;
  border-top: 0;
  background: #fff;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}

.ios-flow-heading {
  margin-bottom: 38px;
  text-align: center;
}

.ios-flow-heading h2 {
  font-size: clamp(34px, 4.4vw, 52px);
}

.ios-flow-heading p {
  margin: 0 auto;
}

.ios-install-flow {
  grid-template-columns: minmax(0, 264px);
  justify-content: center;
  gap: 48px;
}

.ios-flow-step {
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ios-flow-step:last-child {
  border-bottom: 0;
}

.ios-step-copy {
  min-height: 0;
  padding: 0 0 16px;
}

.ios-step-shot {
  width: min(100%, 264px);
  margin: 0;
  align-self: center;
}

.result {
  margin-top: 76px;
  border-radius: 0;
  background: transparent;
}

.result-shot {
  width: 264px;
  max-width: 100%;
}

@media (max-width: 800px) {
  .mac-hero.ios-hero {
    padding: 56px 0 60px;
  }

  .home-link {
    top: 18px;
  }

  .ios-install-flow {
    grid-template-columns: 1fr;
  }

  .ios-flow-step {
    display: flex;
  }

  .ios-step-shot {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .hero-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    border-radius: 15px;
  }

}
