/* Storefront: restrained typography, generous spacing, quiet surfaces. */
.hero.hero-iphone { background: #000; color: #f5f5f7; }
.hero-iphone .hero-content h1 { font-size: clamp(42px,4.4vw,68px); }
.hero-iphone .hero-content h1 span { color: #b5909b; }
.hero-iphone .hero-visual img { object-fit: contain; max-height: 730px; padding: 35px; }
.hero-iphone .visual-caption { color: #ad929b; }
.hero-iphone .link-more { color: #78b8ff; }
.iphone-photo-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; }
.iphone-photo-grid figure { min-width: 0; overflow: hidden; border-radius: 26px; background: #000; color: #fff; display: flex; flex-direction: column; }
.iphone-photo-grid a { display: flex; align-items: center; flex: 1; overflow: hidden; }
.iphone-photo-grid img { display: block; width: 100%; height: 460px; object-fit: contain; transition: transform .4s; }
.iphone-photo-grid a:hover img { transform: scale(1.03); }
.iphone-photo-grid figcaption { padding: 24px 28px 28px; font-size: 18px; letter-spacing: -.02em; }
.iphone-photo-grid figcaption span { display: block; margin-bottom: 8px; color: #bba8ae; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.media-credit { margin-top: 20px; color: #777; font-size: 11px; }
.media-credit a { color: inherit; }
.film-description { color: #aaa; font-size: 14px; line-height: 1.7; margin-bottom: 25px; max-width: 320px; }
#iphone-video .brand-video { object-fit: contain; background: #000; }
@media (max-width: 760px) {
  .iphone-photo-grid { grid-template-columns: 1fr; }
  .iphone-photo-grid img { height: 380px; }
  .hero-iphone .hero-visual { height: 450px; }
  .hero-iphone .hero-visual img { padding: 10px 20px 45px; }
}
:root { --text: #1d1d1f; --muted: #737377; --bg-alt: #f5f5f7; }
html { scroll-padding-top: 88px; }
body { background: #fff; }
body.cart-open { overflow: hidden; }
button, input, textarea { font: inherit; }
a, button, input, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #0071e3; outline-offset: 5px; }
.container { max-width: 1240px; padding-inline: 40px; }
.header { background: rgba(250,250,252,.88); border-bottom: 1px solid rgba(0,0,0,.05); }
.header-inner { height: 64px; }
.logo { color: #1d1d1f; font-size: 20px; letter-spacing: -.8px; }
.logo span { color: #858589; }
.nav { gap: 34px; }
.nav a { color: #424245; font-size: 12px; }
.cart-btn { color: #1d1d1f; padding: 8px; display: flex; }
.cart-count { top: 2px; right: -3px; font-size: 10px; }
.burger span { background: #1d1d1f; }
.announcement { text-align: center; padding: 15px 20px; font-size: 12px; color: #606065; background: #fff; }
.announcement a { color: var(--accent); margin-left: 8px; text-decoration: none; white-space: nowrap; }
.hero { display: grid; grid-template-columns: 1.02fr 1fr; min-height: 660px; padding: 0; text-align: left; color: var(--text); background: #f5f5f7; }
.hero-content { padding: 74px 24px 74px max(40px, calc((100vw - 1160px)/2)); max-width: none; }
.slide-tag, .eyebrow { color: #78787d; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 25px; }
.hero-content h1 { font-size: clamp(44px,4.8vw,76px); line-height: 1.06; letter-spacing: -.055em; font-weight: 600; margin-bottom: 24px; }
.hero-content h1 span { color: #838389; }
.hero-content p { color: #6e6e73; font-size: 20px; line-height: 1.5; margin: 0 0 31px; max-width: 440px; }
.hero-links { justify-content: flex-start; gap: 25px; }
.btn { font-size: 14px; padding: 14px 24px; }
.hero .link-more { color: var(--accent); font-size: 14px; }
.hero-note { display: block; font-size: 11px; color: #818186; margin-top: 62px; letter-spacing: .01em; }
.hero-visual { align-self: stretch; position: relative; overflow: hidden; min-width: 0; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.visual-caption { position: absolute; bottom: 32px; right: 32px; font-size: 11px; color: #515156; }
.section { padding: 104px 0; }
#catalog { background: #f5f5f7; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading h2 { text-align: left; font-size: clamp(34px,4vw,52px); letter-spacing: -.045em; line-height: 1.09; margin: 0; }
.section-heading h2 span { color: #86868b; }
.heading-note { color: #77777d; font-size: 14px; line-height: 1.65; padding-bottom: 3px; }
.toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.chips { justify-content: flex-start; gap: 8px; }
.chip { background: #e9e9ec; padding: 10px 17px; font-size: 12px; min-height: 40px; }
.chip.active { background: #1d1d1f; color: #fff; }
.search-wrap { display: flex; align-items: center; gap: 8px; width: 236px; flex-shrink: 0; background: #fff; border-radius: 24px; padding-left: 16px; }
.search-wrap svg { width: 17px; height: 17px; flex-shrink: 0; color: #86868b; }
.search { padding: 12px 14px 12px 0; background: transparent; font-size: 12px; min-width: 0; }
.search:focus { outline: none; }
.search-wrap:focus-within { outline: 2px solid #0071e3; outline-offset: 2px; }
#catalogStatus:not(:empty) { color: #b42318; padding-bottom: 14px; }
#retryCatalog { margin-bottom: 20px; }
.products { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.product { background: #fff; border-radius: 26px; padding: 22px 26px 27px; gap: 9px; align-items: flex-start; text-align: left; box-shadow: 0 3px 12px #00000003; transition: transform .35s, box-shadow .35s; min-width: 0; }
.product:hover { transform: translateY(-5px); box-shadow: 0 14px 35px #00000009; }
.product-media { background: #fff; border-radius: 18px; margin-bottom: 10px; }
.product-img { height: 230px; object-fit: contain; padding: 15px; border-radius: 18px; }
.product-icon { height: 230px; background: radial-gradient(ellipse at center,#f1f2f5 0, #fff 70%); }
.product-icon svg { width: 140px; height: 150px; color: #737985; filter: drop-shadow(5px 16px 10px #18223214); }
.badge { top: 3px; left: 0; background: #f5f5f7; color: #805130; font-size: 10px; padding: 5px 10px; }
.badge.new { background: #f4ede6; color: #965c24; }
.product-cat { font-size: 9px; letter-spacing: .1em; color: #86868b; }
.product h3 { font-size: 22px; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
.product-desc { font-size: 12px; line-height: 1.6; color: #7a7a80; max-width: none; margin-bottom: 17px; }
.price-row { justify-content: flex-start; flex-wrap: wrap; gap: 9px; }
.price { font-size: 19px; letter-spacing: -.03em; }
.old-price { font-size: 12px; }
.product .btn-add { margin-top: 7px; background: #0071e3; color: #fff; border-radius: 30px; padding: 10px 18px; font-size: 12px; min-height: 38px; }
.product .btn-add::after { content: ' +'; padding-left: 16px; }
.product .btn-add:hover { text-decoration: none; background: #0077ed; }
.product .btn-add:disabled { background: #f1f1f4; color: #88888d; }
.product .btn-add:disabled::after { content: none; }
.film-section { display: grid; grid-template-columns: 1fr 1.1fr; background: #080808; color: #fff; align-items: center; overflow: hidden; min-height: 470px; }
.film-copy { padding: 70px 35px 70px max(40px,calc((100vw - 1160px)/2)); }
.film-copy .eyebrow { color: #9b9b9f; }
.film-copy h2 { text-align: left; font-size: clamp(32px,3.5vw,48px); letter-spacing: -.04em; line-height: 1.12; margin-bottom: 30px; }
.btn-light { background: #fff; color: #1d1d1f; }
.brand-video { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; background: #080808; }
#promo { background: #fff; }
.promo { background: #f5f5f7; text-align: left; align-items: flex-start; padding: 40px; position: relative; overflow: hidden; min-height: 345px; }
.promo:nth-child(2) { background: #ecf1f8; }
.promo-number { font-size: 88px; font-weight: 600; letter-spacing: -.08em; line-height: 1; color: #1d1d1f; margin-bottom: 16px; }
.promo-number span { font-size: 56px; }
.trade-symbol { color: #0071e3; font-weight: 400; }
.promo h3 { font-size: 28px; letter-spacing: -.04em; }
.promo p { font-size: 14px; max-width: 350px; }
.promo .link-more { margin-top: auto; font-size: 14px; }
#delivery { padding-top: 20px; }
.info-cards { gap: 0; }
.info-card { text-align: left; background: transparent; border-radius: 0; padding: 12px 36px; border-left: 1px solid #e2e2e5; }
.info-card:first-child { padding-left: 0; border: 0; }
.info-card:hover { transform: none; }
.info-icon { margin-bottom: 18px; line-height: 1; }
.info-icon svg { width: 40px; height: 40px; fill: none; stroke: #1d1d1f; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.info-card h3 { font-size: 20px; }
.info-card p { font-size: 13px; line-height: 1.7; max-width: 260px; }
.footer { border-top: 0; padding-top: 50px; font-size: 11px; }
.footer h4 { font-size: 11px; }
.footer-legal { font-size: 10px; }
.footer .logo { font-size: 20px; }
.overlay { background: #0005; backdrop-filter: blur(7px); }
.cart-panel { top: 12px; right: 12px; height: calc(100dvh - 24px); width: min(460px,calc(100% - 24px)); border-radius: 28px; overflow-y: auto; }
.cart-head { padding: 25px; }
.cart-head h3 { font-size: 24px; letter-spacing: -.04em; }
.cart-items { min-height: 100px; flex: 1 0 auto; overflow-y: visible; }
.cart-foot { background: #fff; padding: 22px 25px; }
.cart-item { background: #f5f5f7; }
.qty button:disabled { color: #aaa; cursor: default; }
.cart-foot input, .cart-foot textarea { border: 1px solid #e3e3e7; background: #fff; font-size: 14px; }
@media (max-width: 1050px) {
  .hero { min-height: 560px; }
  .hero-content { padding-left: 40px; }
  .hero-content p { font-size: 17px; }
  .hero-links { gap: 18px; }
  .toolbar { flex-wrap: wrap; }
  .products { gap: 16px; }
  .product { padding: 18px; }
  .product h3 { font-size: 20px; }
  .product-img, .product-icon { height: 190px; }
}
@media (max-width: 760px) {
  .container { padding-inline: 24px; }
  .nav { gap: 20px; }
  .hero { grid-template-columns: 1fr; }
  .hero-content { padding: 54px 24px 38px; text-align: center; }
  .hero-content h1 { font-size: clamp(43px,8vw,62px); }
  .hero-content p { margin-inline: auto; }
  .hero-links { justify-content: center; }
  .hero-note { margin-top: 28px; }
  .hero-visual { height: 390px; }
  .hero-visual img { object-position: center 60%; }
  .section { padding: 65px 0; }
  .heading-note { display: none; }
  .products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .film-section { grid-template-columns: 1fr; }
  .film-copy { padding: 50px 24px 25px; }
  .film-copy h2 { font-size: 38px; }
  .brand-video { max-height: 380px; }
  .promo { padding: 30px; }
  .info-cards { grid-template-columns: 1fr; gap: 24px; }
  .info-card, .info-card:first-child { border: 0; border-top: 1px solid #e2e2e5; padding: 24px 0 0; }
  .info-card p { max-width: none; }
  .info-icon { float: right; }
}
@media (max-width: 720px) {
  .header-inner { height: 56px; }
  .nav { top: 56px; background: #fafafaf5; gap: 0; }
  .nav a { font-size: 15px; border-color: #00000008; padding: 18px 24px; }
  .burger { width: 36px; height: 44px; }
}
@media (max-width: 480px) {
  .announcement { font-size: 10px; padding-inline: 10px; }
  .announcement a { margin-left: 4px; }
  .section-heading { margin-bottom: 30px; }
  .section-heading h2 { font-size: 35px; }
  .hero-visual { height: 320px; }
  .visual-caption { right: 20px; bottom: 20px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; padding-bottom: 5px; }
  .chip { white-space: nowrap; }
  .search-wrap { width: 100%; }
  .products { grid-template-columns: 1fr; }
  .product { padding: 25px; }
  .product-img, .product-icon { height: 240px; }
  .product h3 { font-size: 25px; }
  .product-desc { font-size: 14px; }
  .product .btn-add { padding: 12px 22px; font-size: 14px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .cart-item { padding: 10px; gap: 9px; }
  .cart-item-info strong { font-size: 13px; }
  .qty { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* Delivery, payment, returns and trade-in share one balanced row. */
@media (min-width: 761px) {
  #delivery .info-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
#delivery .info-card { min-width: 0; }
#iphone-video.film-video-only { display: block; min-height: 0; padding: 28px 20px 48px; background: #fff; }
#iphone-video.film-video-only .brand-video { width: 100%; max-width: 560px; max-height: none; margin: 0 auto; aspect-ratio: 16 / 10; border-radius: 20px; }
.phone-field { display:flex; align-items:center; gap:8px; border:1px solid #d2d2d7; border-radius:12px; padding-left:14px; background:#fff; }
.phone-field > span { flex:none; color:#1d1d1f; }
#orderForm .phone-field input { min-width:0; width:100%; border:0; background:transparent; margin:0; }
.phone-field:focus-within { outline:2px solid #0071e3; outline-offset:2px; }
/* Center the gallery, catalog and service introductions. */
.section-heading.section-heading-centered { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; margin-inline: auto; }
.section-heading-centered > div { width: 100%; }
.section-heading.section-heading-centered h2 { text-align: center; margin-inline: auto; max-width: 900px; }
.section-heading-centered .eyebrow { text-align: center; margin-bottom: 14px; }
.section-heading-centered .heading-note { text-align: center; max-width: 520px; margin: 0 auto; line-height: 1.7; }
.section-heading-centered .heading-note { display: block; }
/* Responsive service section: content controls wrapping at every viewport width. */
#delivery { padding-block: clamp(36px, 6vw, 80px); }
#delivery > .container { width: 100%; max-width: 1200px; padding-inline: clamp(16px, 4vw, 40px); margin-inline: auto; box-sizing: border-box; }
#delivery .section-heading-centered { gap: 16px; margin-bottom: clamp(28px, 5vw, 56px); }
#delivery .section-heading-centered .eyebrow { font-size: clamp(10px, 1.2vw, 12px); letter-spacing: .14em; margin-bottom: 12px; }
#delivery .section-heading-centered h2 { font-size: clamp(30px, 5vw, 56px); line-height: 1.12; letter-spacing: -.035em; max-width: 800px; text-wrap: balance; overflow-wrap: break-word; }
#delivery .section-heading-centered h2 span { display: block; }
#delivery .section-heading-centered .heading-note { display: block; font-size: clamp(14px, 1.7vw, 18px); line-height: 1.6; max-width: 34ch; padding: 0; text-wrap: balance; }
#delivery .info-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
#delivery .info-card,
#delivery .info-card:first-child { border: 0; border-radius: 22px; background: #f5f5f7; padding: clamp(20px, 2.5vw, 30px); text-align: center; min-width: 0; }
#delivery .info-icon { margin-bottom: 16px; }
#delivery .info-card h3 { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.25; margin-bottom: 10px; text-wrap: balance; overflow-wrap: break-word; }
#delivery .info-card p { max-width: 30ch; margin-inline: auto; font-size: 14px; line-height: 1.65; overflow-wrap: break-word; }
@media (max-width: 1000px) {
  #delivery .info-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  #delivery .info-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #delivery .info-card { padding: 24px 20px; }
  #delivery .section-heading-centered { gap: 12px; }
}
#delivery .info-icon { float: none; display: flex; justify-content: center; }
/* Seamless heading loop: the two identical groups meet without a jump. */
#delivery .care-heading { margin: 0 0 clamp(28px, 5vw, 56px); font-size: clamp(24px, 4vw, 48px); line-height: 1.3; font-weight: 600; letter-spacing: -.035em; }
.care-accessible { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.care-ticker { display: block; overflow: hidden; width: 100%; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent); }
.care-ticker-track { display: flex; width: max-content; animation: care-scroll 32s linear infinite; }
.care-ticker-group { display: flex; align-items: center; flex-shrink: 0; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); white-space: nowrap; }
.care-ticker-dot { color: #0071e3; font-size: .55em; }
@keyframes care-scroll { to { transform: translateX(-50%); } }
.care-ticker:hover .care-ticker-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .care-ticker { display: none; }
  #delivery .care-accessible { position: static; display: block; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; text-align: center; text-wrap: balance; }
}
#catalog .catalog-ticker-heading { margin: 0 0 clamp(28px, 5vw, 56px); font-size: clamp(24px, 4vw, 48px); line-height: 1.3; font-weight: 600; letter-spacing: -.035em; }
#catalog .care-ticker-track { animation-duration: 38s; }
@media (prefers-reduced-motion: reduce) {
  #catalog .care-accessible { position: static; display: block; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none; white-space: normal; text-align: center; text-wrap: balance; }
}
/* Compact vertical rhythm across screen sizes. */
.section { padding-block: clamp(28px, 4vw, 52px); }
.section-heading.section-heading-centered { margin-bottom: clamp(20px, 3vw, 32px); gap: 10px; }
.section-heading-centered .eyebrow { margin-bottom: 8px; }
#catalog .catalog-ticker-heading,
#delivery .care-heading { font-size: clamp(22px, 3vw, 38px); line-height: 1.2; margin-bottom: clamp(20px, 3vw, 32px); }
.care-ticker-group { gap: clamp(14px, 2vw, 28px); padding-right: clamp(14px, 2vw, 28px); }
#delivery { padding-block: clamp(28px, 4vw, 48px); }
#iphone-video.film-video-only { padding-block: 20px 28px; }
.footer { padding-top: 32px; }
@media (max-width: 760px) {
  .section { padding-block: 28px; }
  .section-heading.section-heading-centered { margin-bottom: 20px; gap: 8px; }
  .section-heading.section-heading-centered h2 { font-size: clamp(26px, 6vw, 34px); line-height: 1.15; }
  #catalog .catalog-ticker-heading, #delivery .care-heading { font-size: clamp(19px, 4.5vw, 26px); margin-bottom: 20px; line-height: 1.25; }
  .care-ticker-group { gap: 16px; padding-right: 16px; }
  #delivery { padding-block: 28px; }
  #delivery .info-card, #delivery .info-card:first-child { padding: 20px 18px; }
  #delivery .info-icon { margin-bottom: 10px; }
  .iphone-photo-grid { gap: 16px; }
  .iphone-photo-grid figcaption { padding: 16px 20px; }
  #iphone-video.film-video-only { padding: 12px 20px 24px; }
  .footer { padding-top: 24px; }
}
/* Unified static, stacked headings for the storefront. */
#catalog .stacked-heading,
#delivery .stacked-heading,
.hero-iphone .hero-content h1.stacked-heading { font-size: clamp(26px, 3.4vw, 46px); font-weight: 600; line-height: 1.2; letter-spacing: -.035em; text-align: center; text-wrap: balance; margin: 0 0 clamp(20px, 3vw, 32px); }
.stacked-heading > span { display: block; }
#catalog .stacked-heading > span,
#delivery .stacked-heading > span { color: #1d1d1f; }
.hero-iphone .hero-content h1.stacked-heading > span { color: #f5f5f7; }
.stacked-heading > span + span { margin-top: .12em; }
#delivery .stacked-heading-wrap { text-align: center; margin-bottom: clamp(20px, 3vw, 32px); }
#delivery .stacked-heading-wrap .stacked-heading { margin-bottom: 10px; }
.stacked-subtitle { font-size: clamp(13px, 1.4vw, 16px); line-height: 1.6; color: #6e6e73; text-wrap: balance; }
.hero-iphone .hero-content { text-align: center; }
.hero-iphone .hero-content p { margin-inline: auto; }
.hero-iphone .hero-links { justify-content: center; }
@media (max-width: 480px) {
  #catalog .stacked-heading, #delivery .stacked-heading, .hero-iphone .hero-content h1.stacked-heading { font-size: clamp(23px, 6.2vw, 30px); line-height: 1.25; }
}
