/* iPhone landing — Apple-style promo, hero picker, lineup, catalog */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --text: #1d1d1f;
  --muted: #6e6e73;
  --secondary: #424245;
  --bg: #ffffff;
  --bg-subtle: #f5f5f7;
  --card: #ffffff;
  --border: #d2d2d7;
  --nav-h: 44px;
  --link: #0066cc;
  --orange-new: #bf4800;
  --font-apple:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-apple);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* —— Nav (aligned with site top-nav + top-nav-apple) —— */
.top-nav {
  background: rgba(245, 245, 247, 0.84);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-nav-apple {
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.top-nav-apple .menu a {
  color: rgba(29, 29, 31, 0.82);
}

.top-nav-apple .menu a:hover,
.top-nav-apple .menu a.is-active {
  color: #1d1d1f;
}

.top-nav-apple .nav-icon-btn,
.top-nav-apple .nav-menu-toggle {
  color: rgba(29, 29, 31, 0.82);
}

.top-nav-apple .brand {
  color: rgba(29, 29, 31, 0.92);
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 18px;
}

.brand {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 27px;
  width: auto;
  max-width: min(210px, 48vw);
}

.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menu::-webkit-scrollbar {
  display: none;
}

.menu a {
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  text-decoration: none;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-icon-btn,
.nav-menu-toggle {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
}

.nav-menu-toggle {
  display: none;
}

.nav-icon-svg {
  display: block;
}

.nav-menu-bars {
  position: relative;
  width: 17px;
  height: 11px;
  display: block;
}

.nav-menu-bars::before,
.nav-menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  border-radius: 1px;
  background: #1d1d1f;
}

.nav-menu-bars::before {
  top: 2px;
}

.nav-menu-bars::after {
  bottom: 2px;
}

/* Promo ribbon */
.iphone-promo {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 10px 18px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--secondary);
}

.iphone-promo a {
  font-weight: 400;
  white-space: nowrap;
}

/* Hero */
.iphone-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 18px 28px;
  text-align: left;
  background: var(--bg);
  box-sizing: border-box;
}

.iphone-hero-title {
  font-size: clamp(56px, 12vw, 96px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.02;
  color: var(--text);
  text-align: left;
}

.iphone-picker-wrap {
  max-width: none;
  margin: 36px 0 0;
  padding: 0 0 8px;
}

.iphone-picker-rail {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 8px 0 12px;
  justify-content: flex-start;
}

.iphone-picker-rail::-webkit-scrollbar {
  display: none;
}

.iphone-picker-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 88px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}

.iphone-picker-item:hover {
  text-decoration: none;
}

.iphone-picker-item:hover .iphone-picker-label {
  color: var(--link);
}

.iphone-picker-thumb {
  width: 88px;
  height: 76px;
  margin: 0 auto;
  border-radius: 14px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.iphone-picker-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.iphone-picker-label {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 400;
  color: var(--text);
}

.iphone-picker-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #bf4800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Explore lineup (Apple hub–style band + cards) */
.iphone-explore {
  background: #f5f5f7;
  padding: 64px 0 80px;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.iphone-explore-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
}

.iphone-explore-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.iphone-explore-title {
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: #1d1d1f;
}

.iphone-explore-link {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  white-space: nowrap;
  color: #06c;
}

.iphone-lineup-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 2px 0 28px;
  scroll-padding-inline: 22px;
}

.iphone-lineup-rail::-webkit-scrollbar {
  display: none;
}

.iphone-lineup-card {
  flex: 0 0 min(372px, calc(100vw - 40px));
  scroll-snap-align: start;
  border-radius: 30px;
  overflow: hidden;
  color: #1d1d1f;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.07);
}

.iphone-lineup-card-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.iphone-lineup-card-visual--pro,
.iphone-lineup-card-visual--air,
.iphone-lineup-card-visual--std,
.iphone-lineup-card-visual--e {
  background: transparent;
}

.iphone-lineup-card-photo {
  width: 100%;
  height: 125%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
  flex-shrink: 0;
}

.iphone-lineup-card-body {
  padding: 22px 28px 36px;
  text-align: center;
  background: #fff;
}

.iphone-lineup-swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 18px;
}

.iphone-lineup-swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  padding: 0;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.iphone-lineup-swatch:hover {
  transform: scale(1.08);
}

.iphone-lineup-swatch.is-active {
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.12),
    0 0 0 2px #fff,
    0 0 0 3.5px #1d1d1f;
}

.iphone-lineup-swatch:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

.iphone-lineup-card-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  color: #1d1d1f;
}

.iphone-lineup-tagline {
  margin: 0 auto 16px;
  max-width: 300px;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: -0.016em;
  font-weight: 400;
  color: #6e6e73;
}

.iphone-lineup-price {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.iphone-lineup-dagger {
  font-size: 0.75em;
  font-weight: 500;
  vertical-align: super;
  margin-left: 0.04em;
  line-height: 0;
}

.iphone-lineup-footnote .iphone-lineup-dagger {
  font-size: 1em;
  vertical-align: baseline;
  margin-right: 0.2em;
  font-weight: 600;
}

.iphone-lineup-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 20px;
}

.iphone-lineup-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 22px;
  border-radius: 980px;
  background: #0071e3;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.iphone-lineup-btn:hover {
  background: #0077ed;
  color: #fff;
  text-decoration: none;
}

.iphone-lineup-buy {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #06c;
  text-decoration: none;
}

.iphone-lineup-buy:hover {
  text-decoration: underline;
}

.iphone-lineup-footnote {
  margin: 16px 0 0;
  max-width: 720px;
  font-size: 12px;
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: #86868b;
}

/* Guided tour — “Take a closer look.” */
.iphone-guided {
  background: #f5f5f7;
  padding: 80px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.iphone-guided-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.iphone-guided-title {
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: #1d1d1f;
  text-align: left;
  margin: 0 0 28px;
}

.iphone-guided-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: min(440px, 52vw);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.04),
    0 16px 40px rgba(0, 0, 0, 0.06);
  background-color: #e8e8ed;
  background-image: url("./images/guided_tour__large.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.iphone-guided-copy {
  flex: 0 0 42%;
  max-width: 560px;
  min-width: min(100%, 260px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 36px 48px 48px;
  box-sizing: border-box;
  background: transparent;
}

.iphone-guided-lede {
  margin: 0 0 24px;
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.2;
  color: #1d1d1f;
  max-width: 18em;
}

.iphone-guided-film-btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  background: #000;
  border-radius: 980px;
  padding: 12px 22px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.iphone-guided-film-btn:hover {
  background: #1d1d1f;
}

.iphone-guided-film-btn:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}

/* Film modal */
.iphone-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.iphone-film-open {
  overflow: hidden;
}

.iphone-film-modal {
  position: fixed;
  inset: 0;
  z-index: 100500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.iphone-film-modal[hidden] {
  display: none;
}

.iphone-film-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: pointer;
}

.iphone-film-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.iphone-film-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.iphone-film-modal-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.iphone-film-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.iphone-film-modal-video-wrap {
  position: relative;
  width: 100%;
  background: #000;
}

.iphone-film-video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 32px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  aspect-ratio: 16 / 9;
  background: #000;
}

.iphone-film-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 15px;
  line-height: 1.4;
  color: #f5f5f7;
  background: rgba(0, 0, 0, 0.92);
}

/* Why buy here (aligned with mac-why) */
.iphone-why {
  padding: 56px 0 0;
  background: #f5f5f7;
  border-top: 1px solid #e5e5e7;
}

.iphone-why-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.iphone-why-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.iphone-why-header h2 {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 800px;
  color: #1d1d1f;
}

.iphone-why-shop-link {
  color: #0066cc;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  padding-top: 6px;
}

.iphone-why-shop-link:hover {
  text-decoration: underline;
}

.iphone-why-carousel {
  position: relative;
  padding-bottom: 52px;
}

.iphone-why-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 4px 2px 8px;
}

.iphone-why-rail::-webkit-scrollbar {
  display: none;
}

.iphone-why-rail:focus {
  outline: none;
}

.iphone-why-rail:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 4px;
}

.iphone-why-card {
  flex: 0 0 min(320px, calc(100vw - 48px));
  scroll-snap-align: start;
  background: #fff;
  border-radius: 20px;
  padding: 24px 22px 20px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 440px;
  text-align: left;
}

.iphone-why-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6e6e73;
  margin-bottom: 8px;
}

.iphone-why-title {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 10px;
  color: #1d1d1f;
}

.iphone-why-sub {
  font-size: 15px;
  line-height: 1.45;
  color: #1d1d1f;
  margin-bottom: 18px;
}

.iphone-why-visual {
  position: relative;
  margin-top: auto;
  flex: 1;
  min-height: 188px;
  display: flex;
  flex-direction: column;
}

.iphone-why-img {
  flex: 1;
  min-height: 188px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

.iphone-why-img img {
  width: 100%;
  height: 100%;
  min-height: 188px;
  object-fit: cover;
  display: block;
}

.iphone-why-expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #1d1d1f;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 2px;
}

.iphone-why-expand:hover {
  background: #000;
}

.iphone-why-expand:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

/* iPhone essentials (two-up grid) */
.iphone-essentials {
  background: #fff;
  padding: 56px 0 64px;
  border-top: 1px solid #e5e5e7;
}

.iphone-essentials-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  box-sizing: border-box;
}

.iphone-essentials-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.iphone-essentials-title {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #1d1d1f;
  text-align: left;
  margin: 0;
  max-width: min(720px, 85vw);
}

.iphone-essentials-all-link {
  color: #0066cc;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  padding-top: 6px;
  letter-spacing: -0.022em;
}

.iphone-essentials-all-link:hover {
  text-decoration: underline;
}

.iphone-essentials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.iphone-essentials-card {
  background: #f5f5f7;
  border-radius: 28px;
  padding: 40px 28px 0;
  text-align: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s ease;
}

.iphone-essentials-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
}

.iphone-essentials-new {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-new);
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.iphone-essentials-card h3 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 10px;
  max-width: 400px;
  color: #1d1d1f;
}

.iphone-essentials-card p {
  font-size: 17px;
  line-height: 1.45;
  color: #1d1d1f;
  max-width: 420px;
  margin: 0 0 14px;
}

.iphone-essentials-card p sup {
  font-size: 0.65em;
  font-weight: 400;
  vertical-align: super;
}

.iphone-essentials-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 17px;
  margin-bottom: 28px;
  letter-spacing: -0.022em;
}

.iphone-essentials-link:hover {
  text-decoration: underline;
}

.iphone-essentials-media {
  margin-top: auto;
  margin-left: -28px;
  margin-right: -28px;
  width: calc(100% + 56px);
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.iphone-essentials-media--photo {
  align-items: stretch;
  min-height: 0;
  padding: 0;
}

.iphone-essentials-media--photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Site footer (aligned with Mac / Store) */
.site-footer {
  background: #f5f5f7;
  color: #424245;
  border-top: 1px solid #d2d2d7;
}

.footer-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 20px 14px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  padding-top: 10px;
}

.footer-col h4 {
  font-size: 12px;
  line-height: 1.33337;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #424245;
  font-size: 12px;
  line-height: 1.33337;
  margin-bottom: 9px;
}

.footer-col a:hover,
.footer-shop-note a:hover,
.footer-legal-links a:hover {
  text-decoration: underline;
}

.footer-shop-note {
  margin-top: 26px;
  border-bottom: 1px solid #d2d2d7;
  padding-bottom: 10px;
  font-size: 12px;
  line-height: 1.33337;
}

.footer-shop-note a {
  color: #0066cc;
  text-decoration: none;
}

.footer-pricing-note {
  margin: 0;
  padding: 8px 0 12px;
  border-bottom: 1px solid #d2d2d7;
  font-size: 11px;
  line-height: 1.4;
  color: #6e6e73;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 2px;
  flex-wrap: wrap;
}

.footer-legal p,
.footer-legal span {
  font-size: 12px;
  line-height: 1.33337;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #424245;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.33337;
  position: relative;
  padding-right: 8px;
}

.footer-legal-links a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: 0;
  color: #86868b;
}

@media (max-width: 1040px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .top-nav-apple {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  body.nav-drawer-open {
    overflow: hidden;
  }

  body.nav-drawer-open .iphone-promo,
  body.nav-drawer-open .iphone-hero,
  body.nav-drawer-open .iphone-explore,
  body.nav-drawer-open .iphone-guided,
  body.nav-drawer-open .iphone-why,
  body.nav-drawer-open .iphone-essentials,
  body.nav-drawer-open .site-footer {
    position: relative;
    z-index: 0;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .menu {
    display: none;
  }

  .top-nav.is-open {
    z-index: 10000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .top-nav.is-open .nav-wrap {
    position: relative;
    z-index: 10002;
  }

  .top-nav.is-open .menu {
    display: flex;
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10001;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 0 calc(20px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    align-content: flex-start;
    gap: 0;
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
    overscroll-behavior: contain;
  }

  .top-nav.is-open .menu a {
    padding: 14px max(20px, env(safe-area-inset-right)) 14px max(20px, env(safe-area-inset-left));
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 17px;
    font-weight: 400;
    color: #1d1d1f;
    white-space: normal;
    text-align: left;
  }

  .top-nav-apple.is-open .menu a:hover {
    color: #000;
  }

  .nav-wrap {
    height: 48px;
    padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  }

  .brand-logo {
    height: 24px;
    max-width: min(190px, 52vw);
  }

  .iphone-hero {
    padding-top: 32px;
    padding-left: max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }

  .iphone-guided {
    padding: 56px 0 64px;
  }

  .iphone-guided-banner {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    min-height: min(460px, 118vw);
    background-position: 52% 36%;
  }

  .iphone-guided-copy {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 36px 24px 40px;
  }

  .iphone-why {
    padding-top: 40px;
  }

  .iphone-why-header h2 {
    font-size: clamp(24px, 6vw, 34px);
  }

  .iphone-why-shop-link {
    padding-top: 0;
  }

  .iphone-why-card {
    flex-basis: calc(100vw - 44px);
    min-height: 400px;
  }

  .iphone-why-carousel {
    padding-bottom: 56px;
  }

  .iphone-essentials {
    padding: 40px 0 48px;
  }

  .iphone-essentials-all-link {
    padding-top: 0;
  }

  .iphone-essentials-grid {
    grid-template-columns: 1fr;
  }

  .iphone-essentials-card {
    padding: 32px 22px 0;
    border-radius: 24px;
  }

  .iphone-essentials-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  }

  .iphone-essentials-media {
    margin-left: -22px;
    margin-right: -22px;
    width: calc(100% + 44px);
    min-height: 220px;
  }

  .footer-wrap {
    padding: 16px 14px 14px;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}
