:root {
  color-scheme: light dark;
  --page: #edf6ff;
  --page-soft: #f8fbff;
  --ink: #0a1730;
  --muted: #5f7188;
  --blue: #087dff;
  --blue-soft: #d8ecff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #f8fbff;
  --line: rgba(50, 92, 135, 0.16);
  --shadow: 0 24px 70px rgba(39, 88, 138, 0.14);
  --shell: min(1160px, calc(100% - 48px));
  --gallery-shell: min(1180px, 60vw);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
  font-family: var(--display);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 0; overflow-x: hidden; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, select { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 1000; transform: translateY(-150%); padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--page); }
.skip-link:focus { transform: none; }
.section-shell { width: var(--shell); margin-inline: auto; }
.home-page main > section { min-height: 100svh; }

.home-page { background: radial-gradient(circle at 80% 8%, rgba(25, 116, 214, 0.12), transparent 34%), var(--page); }
.home-page .site-header { width: 100%; position: fixed; top: 0; z-index: 20; padding-top: 8px; border-bottom: 1px solid var(--line); background: var(--page); backdrop-filter: none; }
.nav-shell { width: var(--shell); min-height: 82px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 0; background: var(--page); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 16px; font-weight: 720; }
.brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 8px 22px rgba(0, 84, 170, 0.18); }
.site-menu { display: flex; align-items: center; gap: 16px; }
.site-menu a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 620; }
.site-menu a:hover, .site-menu a:focus-visible { color: var(--ink); }
.theme-toggle { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 650; cursor: pointer; }
.theme-toggle:hover, .theme-toggle:focus-visible { border-color: rgba(8, 125, 255, 0.42); color: var(--blue); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); align-items: center; justify-content: center; flex-direction: column; gap: 5px; color: var(--ink); }
.menu-toggle span:not(.visually-hidden) { width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 180ms ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

.hero { min-height: 100svh; margin-top: 0; padding: 126px 0 54px; position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 68px; align-items: center; }
.hero-copy { max-width: 550px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 760; letter-spacing: 0.15em; text-transform: uppercase; }
.hero h1, .feature-story h2, .more h2, .devices h2, .download h2 { margin: 0; letter-spacing: -0.052em; line-height: 1.04; font-weight: 760; text-wrap: balance; }
.hero h1 { font-size: clamp(54px, 5vw, 72px); }
.hero-lead { max-width: 540px; margin: 30px 0 0; color: var(--muted); font-size: 19px; line-height: 1.75; }
.one-line-copy { max-width: none !important; white-space: nowrap; font-size: clamp(9px, 1.25vw, 16px) !important; }
.hero .one-line-copy { font-size: clamp(9px, 1.05vw, 13px) !important; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 34px; }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 22px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 700; }
.button-primary { background: var(--ink); color: var(--page-soft); box-shadow: 0 14px 32px rgba(2, 19, 42, 0.18); }
.text-link { color: var(--muted); font-size: 14px; font-weight: 650; text-underline-offset: 4px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.hero-facts li { position: relative; }
.hero-facts li + li::before { content: ""; position: absolute; left: -13px; top: 0.6em; width: 3px; height: 3px; border-radius: 50%; background: var(--blue); }
.hero-visual { height: 650px; min-height: 650px; display: grid; place-items: center; overflow: visible; background: transparent; }
.hero-visual picture { grid-area: 1 / 1; width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; overflow: visible; }
.hero-visual img { width: auto; max-width: 82%; height: 100%; max-height: 650px; object-fit: contain; object-position: center; }
.theme-shot-dark { display: none !important; }

.feature-story { min-height: 790px; padding: 126px 0; display: block; border-top: 1px solid var(--line); }
.feature-story.section-shell, .devices.section-shell { width: var(--gallery-shell); }
.story-copy { max-width: 760px; padding: 0 132px 54px 0; position: relative; }
.feature-story h2 { max-width: 700px; font-size: clamp(44px, 4vw, 60px); }
.story-copy > p:not(.eyebrow) { max-width: 660px; margin: 37px 0 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.feature-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.feature-points li { padding-left: 16px; position: relative; }
.feature-points li::before { content: "·"; position: absolute; left: 0; top: 0; color: var(--blue); font-size: 1.12em; line-height: 1.45; font-weight: 760; }
.more-feature-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 13px; }
.more-feature-points strong { color: var(--ink); font-weight: 650; }
.pro-mark { margin-left: 3px; color: var(--blue); font-size: 0.72em; line-height: 1; font-weight: 760; vertical-align: super; }
.feature-points .apple-music-point { display: inline-flex; align-items: center; gap: 10px; }
#focus .feature-points { flex-wrap: nowrap; align-items: flex-start; }
#focus .apple-music-point { flex: 1 1 0; min-width: 0; }
#focus .apple-music-point > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.apple-music-identity { display: inline-grid; flex: 0 0 auto; padding: 5px; line-height: 0; border-radius: 8px; }
.apple-music-identity:focus-visible { outline: 3px solid rgba(8, 125, 255, 0.42); outline-offset: 3px; }
.apple-music-badge { grid-area: 1 / 1; width: 118px; height: auto; }
.apple-music-badge-dark { display: none; }
:root[data-theme="light"] .apple-music-badge-light { display: block; }
:root[data-theme="light"] .apple-music-badge-dark { display: none; }
:root[data-theme="dark"] .apple-music-badge-light { display: none; }
:root[data-theme="dark"] .apple-music-badge-dark { display: block; }
.feature-story.is-reversed .story-copy { margin-left: auto; padding: 0 0 54px 132px; text-align: right; }
.feature-story.is-reversed .story-copy > p:not(.eyebrow) { margin-left: auto; }
.feature-story.is-reversed .feature-points { justify-content: flex-end; }
.story-gallery, .device-gallery { min-width: 0; position: relative; }
.gallery-viewport { position: relative; left: 50%; width: 100vw; min-height: 650px; margin-left: -50vw; overflow: visible; padding: 18px 0 22px; }
.gallery-viewport::-webkit-scrollbar { display: none; }
.gallery-viewport:focus-visible { outline: 3px solid rgba(8, 125, 255, 0.42); outline-offset: 8px; border-radius: 26px; }
.gallery-slide { position: absolute; top: 50%; left: 50%; width: clamp(230px, 22vw, 340px); height: 615px; min-width: 0; margin: 0; padding: 0 4px; translate: -50% -50%; transform-origin: center; background: transparent; border: 0; border-radius: 0; box-shadow: none; opacity: 0; transform: translateX(calc(var(--gallery-position, 0) * 48%)); transition: opacity 320ms ease, transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.gallery-slide picture { width: 100%; height: 100%; display: grid; place-items: center; transform-origin: center; transition: transform 420ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.gallery-slide img { width: auto; max-width: 100%; height: 520px; object-fit: contain; border-radius: 38px; image-rendering: auto; backface-visibility: hidden; transform: translateZ(0); transition: box-shadow 320ms ease; }
.gallery-fixed-device { position: absolute; top: 50%; left: 50%; z-index: 8; width: clamp(260px, 22vw, 360px); height: 615px; translate: -50% -50%; pointer-events: none; }
.gallery-fixed-device-layer { position: absolute; inset: 0; display: grid; place-items: center; opacity: 1; }
.gallery-fixed-device-layer img { width: auto; height: 615px; object-fit: contain; }
.gallery-fixed-device-layer.is-incoming { z-index: 2; opacity: 0; transition: opacity 420ms cubic-bezier(0.22, 0.61, 0.36, 1); }
.gallery-fixed-device-layer.is-incoming.is-visible { opacity: 1; }
.gallery-slide.is-gallery-main { z-index: 7; opacity: 1; transform: translateX(0); }
.gallery-slide.is-gallery-main picture { opacity: 0; transform: none; }
.gallery-slide.is-gallery-main img { height: 585px; margin-top: 0; border-radius: 38px; }
.gallery-slide.is-gallery-preview { opacity: var(--gallery-depth-opacity, 0.82); transform: translateX(calc(var(--gallery-position, 0) * 48%)); cursor: pointer; touch-action: manipulation; }
.gallery-slide.is-gallery-preview picture { transform: scale(var(--gallery-scale, 0.9)); }
.gallery-slide.is-gallery-preview img { background: var(--page-soft); box-shadow: 0 24px 58px rgba(2, 19, 42, 0.28), 0 8px 20px rgba(2, 19, 42, 0.16); }
.gallery-slide.is-gallery-preview:hover { opacity: 0.98; }
.gallery-slide.is-gallery-preview:focus-visible { outline: 3px solid rgba(8, 125, 255, 0.48); outline-offset: 4px; border-radius: 30px; opacity: 0.88; }
.gallery-slide.is-gallery-offstage { opacity: 0; transform: translateX(calc(var(--gallery-position, 0) * 48%)); pointer-events: none; }
.gallery-slide.is-gallery-offstage picture { transform: scale(0.64); }
.gallery-slide figcaption { position: absolute; top: calc(50% + 326px); left: 50%; width: min(280px, 88vw); padding: 0; translate: -50% 0; color: var(--muted); text-align: center; font-size: 13px; font-weight: 620; }
.gallery-slide figcaption strong, .gallery-slide figcaption span { display: block; }
.gallery-slide figcaption .pro-title { display: inline; }
.gallery-slide figcaption strong { color: var(--ink); font-size: 15px; }
.gallery-slide figcaption span { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.55; font-weight: 500; }
.gallery-slide figcaption .pro-mark { display: inline; margin-top: 0; color: var(--blue); font-size: 0.72em; line-height: 1; font-weight: 760; vertical-align: super; }
.gallery-slide.is-gallery-preview figcaption { opacity: 0; pointer-events: none; }
.gallery-slide.is-gallery-preview figcaption span { display: none; }
.gallery-controls { position: absolute; right: 0; bottom: 18px; z-index: 9; min-height: 48px; margin: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; pointer-events: none; }
.feature-story.is-reversed .gallery-controls { right: auto; left: 0; justify-content: flex-start; }
.gallery-controls[hidden] { display: none; }
.gallery-controls button { pointer-events: auto; }
.gallery-controls button { width: 48px; min-width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 30px; line-height: 1; font-weight: 420; cursor: pointer; }
.gallery-controls button:hover, .gallery-controls button:focus-visible { border-color: rgba(8, 125, 255, 0.42); color: var(--blue); }
.gallery-controls button:disabled { cursor: default; opacity: 0.4; }
.gallery-controls p { min-width: 48px; margin: 0; color: var(--muted); text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }

.landscape-showcase { padding: 126px 0; border-top: 1px solid var(--line); }
.landscape-copy { max-width: 760px; padding-bottom: 54px; }
.landscape-showcase h2 { max-width: 760px; font-size: clamp(44px, 4.6vw, 64px); }
.landscape-copy > p:not(.eyebrow) { max-width: 680px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.landscape-copy .landscape-detail { margin-top: 12px; }
.landscape-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.landscape-card { min-width: 0; margin: 0; padding: 0 4px 8px; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.landscape-card picture { display: block; }
.landscape-card img { display: block; width: 100%; height: auto; object-fit: contain; }
.landscape-card figcaption { padding-top: 14px; color: var(--muted); text-align: center; font-size: 13px; font-weight: 620; }

/* A feature card only shows screenshots captured in the active site appearance. */
[data-shot-theme="dark"] { display: none; }
@media (prefers-color-scheme: dark) {
  [data-shot-theme="light"] { display: none; }
  [data-shot-theme="dark"] { display: block; }
}
:root[data-theme="light"] [data-shot-theme="light"] { display: block; }
:root[data-theme="light"] [data-shot-theme="dark"] { display: none; }
:root[data-theme="dark"] [data-shot-theme="light"] { display: none; }
:root[data-theme="dark"] [data-shot-theme="dark"] { display: block; }
:root[data-theme="dark"] .landscape-card { border-color: rgba(145, 182, 221, 0.12); }

.more { min-height: 790px; padding: 126px 0; border-top: 1px solid var(--line); }
.more-heading { max-width: 670px; }
.more h2, .devices h2, .download h2 { font-size: clamp(44px, 4.6vw, 64px); }
.more-heading p { margin: 37px 0 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.more-grid { margin-top: 0; }

.devices { min-height: 790px; padding: 126px 0; display: block; border-top: 1px solid var(--line); }
.devices-copy { max-width: 760px; padding: 0 132px 54px 0; position: relative; }
.devices-copy > p:not(.eyebrow) { max-width: 660px; margin: 22px 0 0; color: var(--muted); font-size: 17px; line-height: 1.72; }
.device-showcase-grid { width: min(100%, 1060px); margin-inline: auto; display: grid; place-items: end center; }
.device-showcase-stack { width: 100%; min-height: 430px; margin: 0; display: grid; grid-template-columns: 53.5% 31.5% 11%; gap: 2%; align-items: end; }
.device-showcase-stack picture { display: block; }
.device-showcase-stack img { width: 100%; height: 100%; object-fit: contain; }
.device-showcase-stack > .macbook-frame, .device-ipad, .device-iphone { position: static; width: 100%; margin: 0; }
.macbook-frame, .apple-product-frame { position: relative; width: 100%; display: block; }
.apple-product-frame img { display: block; width: 100%; height: auto; object-fit: contain; }

.download { min-height: 100svh; padding: 112px 0 96px; text-align: center; border-top: 1px solid var(--line); }
.download-heading { display: grid; justify-items: center; }
.download-heading > img { width: 92px; height: 92px; margin-bottom: 22px; border-radius: 25px; box-shadow: 0 18px 38px rgba(0, 83, 168, 0.2); }
.download-heading > p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); }
.download-platform-tabs { max-width: 960px; margin: 42px auto 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.download-platform-tabs button { min-height: 82px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); cursor: pointer; transition: transform 180ms ease, border-color 180ms ease, background 180ms ease; }
.download-platform-tabs button:not(:disabled):hover { transform: translateY(-2px); border-color: rgba(8, 125, 255, 0.42); }
.download-platform-tabs button[aria-selected="true"] { border-color: rgba(8, 125, 255, 0.5); background: var(--blue-soft); color: var(--blue); }
.download-platform-tabs button:disabled { opacity: 0.42; cursor: not-allowed; }
.download-platform-tabs strong { font-size: 15px; }
.download-platform-tabs span { color: var(--muted); font-size: 11px; }
.download-device-stage { min-height: 570px; margin-top: 28px; position: relative; }
.download-device-panel { position: absolute; inset: 0; width: 100%; display: grid; place-items: end center; }
.download-device-panel[hidden] { display: none; }
.download-iphone-lineup { width: min(1120px, 100%); min-height: 540px; margin-inline: auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; align-items: end; }
.download-iphone-lineup.is-single { width: 230px; grid-template-columns: 1fr; }
.download-phone { min-width: 0; display: grid; place-items: end center; transform-origin: center bottom; }
.download-phone img { width: 100%; max-height: 540px; object-fit: contain; }
.download-phone.is-side, .download-phone.is-main { transform: none; }
.download-macbook { width: min(820px, 80%); margin: 0 auto 32px; }
.download-ipad { width: min(390px, 45%); margin: 0 auto 20px; }
.download-ipad img { width: 100%; height: auto; object-fit: contain; }
.download-action { width: 163px; height: 60px; margin: 28px auto 0; display: grid; place-items: center; }
.download-action .app-store-badge { grid-area: 1 / 1; width: 163px; height: auto; }
.app-store-badge-dark { display: none; }
:root[data-theme="light"] .app-store-badge-light { display: block; }
:root[data-theme="light"] .app-store-badge-dark { display: none; }
:root[data-theme="dark"] .app-store-badge-light { display: none; }
:root[data-theme="dark"] .app-store-badge-dark { display: block; }

.site-footer { border-top: 1px solid var(--line); }
.footer-shell { padding: 44px 0 52px; display: grid; grid-template-columns: 1fr auto; gap: 28px 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 44px; height: 44px; border-radius: 13px; }
.footer-brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 22px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.filing { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.filing a { text-decoration: none; }
.copyright { margin: 0; color: var(--muted); text-align: right; font-size: 12px; }
.pro-legend-card { margin-top: 22px; margin-bottom: 78px; padding: 16px 20px; display: flex; align-items: baseline; justify-content: flex-start; gap: 6px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--muted); text-align: left; font-size: 12px; }
.pro-legend-card .pro-mark { margin-left: 0; font-size: 16px; vertical-align: baseline; }
.apple-credits { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Shared legal and contact pages */
.legal-page { min-height: 100vh; background: var(--page); }
.legal-page .site-header { position: relative; padding: 18px 0 70px; }
.legal-page .nav-shell { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 9px 14px; }
.brand-mark { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark img { width: 44px; height: 44px; border-radius: 13px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: 0.08em; }
.nav-actions, .top-nav { display: flex; align-items: center; gap: 8px; }
.top-nav a { padding: 10px 13px; border-radius: 13px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.language-picker select { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 28px 8px 10px; background: var(--surface-solid); color: var(--ink); }
.legal-title-block, .legal-main { width: min(860px, calc(100% - 40px)); margin-inline: auto; }
.legal-title-block { padding-top: 90px; }
.legal-title-block h1 { margin: 0 0 14px; font-size: 52px; line-height: 1.08; letter-spacing: -0.045em; }
.legal-meta { color: var(--muted); }
.legal-main { display: grid; gap: 18px; padding-bottom: 100px; }
.legal-main .card { padding: 30px 34px; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); box-shadow: var(--shadow); }
.legal-main .card h2 { margin: 0 0 16px; font-size: 22px; }
.legal-main .card p, .legal-main .card li { color: var(--muted); }
.legal-main .card a { color: var(--blue); }
.legal-page > .site-footer { padding: 40px max(20px, calc((100% - 860px) / 2)); color: var(--muted); }
.legal-page > .site-footer p { margin: 7px 0; }

@media (prefers-color-scheme: dark) {
  :root {
    --page: #071427;
    --page-soft: #0a182a;
    --ink: #f5f8fd;
    --muted: #9eafc5;
    --blue: #3b95ff;
    --blue-soft: #102e4f;
    --surface: rgba(14, 31, 54, 0.86);
    --surface-solid: #0d1d33;
    --line: rgba(146, 179, 214, 0.18);
    --shadow: 0 28px 78px rgba(0, 0, 0, 0.26);
  }
  .home-page { background: radial-gradient(circle at 80% 8%, rgba(22, 86, 154, 0.22), transparent 34%), var(--page); }
  .button-primary { background: #f5f8fd; color: #071427; }
  .hero-visual { background: transparent; box-shadow: none; }
  .gallery-slide { border-color: rgba(145, 182, 221, 0.12); }
  .theme-shot-light { display: none !important; }
  .theme-shot-dark { display: grid !important; }
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #edf6ff;
  --page-soft: #f8fbff;
  --ink: #0a1730;
  --muted: #5f7188;
  --blue: #087dff;
  --blue-soft: #d8ecff;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #f8fbff;
  --line: rgba(50, 92, 135, 0.16);
  --shadow: 0 24px 70px rgba(39, 88, 138, 0.14);
}
:root[data-theme="light"] .home-page { background: radial-gradient(circle at 80% 8%, rgba(25, 116, 214, 0.12), transparent 34%), var(--page); }
:root[data-theme="light"] .button-primary { background: var(--ink); color: var(--page-soft); }
:root[data-theme="light"] .hero-visual { background: transparent; box-shadow: none; }
:root[data-theme="light"] .gallery-slide { border-color: rgba(255, 255, 255, 0.62); }
:root[data-theme="light"] .theme-shot-light { display: grid !important; }
:root[data-theme="light"] .theme-shot-dark { display: none !important; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #071427;
  --page-soft: #0a182a;
  --ink: #f5f8fd;
  --muted: #9eafc5;
  --blue: #3b95ff;
  --blue-soft: #102e4f;
  --surface: rgba(14, 31, 54, 0.86);
  --surface-solid: #0d1d33;
  --line: rgba(146, 179, 214, 0.18);
  --shadow: 0 28px 78px rgba(0, 0, 0, 0.26);
}
:root[data-theme="dark"] .home-page { background: radial-gradient(circle at 80% 8%, rgba(22, 86, 154, 0.22), transparent 34%), var(--page); }
:root[data-theme="dark"] .button-primary { background: #f5f8fd; color: #071427; }
:root[data-theme="dark"] .hero-visual { background: transparent; box-shadow: none; }
:root[data-theme="dark"] .gallery-slide { border-color: rgba(145, 182, 221, 0.12); }
:root[data-theme="dark"] .theme-shot-light { display: none !important; }
:root[data-theme="dark"] .theme-shot-dark { display: grid !important; }

@media (max-width: 880px) {
  :root { --shell: min(100% - 32px, 720px); --gallery-shell: var(--shell); }
  .menu-toggle { display: flex; }
  .site-menu { position: absolute; left: 16px; right: 16px; top: 90px; max-height: calc(100dvh - 106px); display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 6px; padding: 12px; overflow-y: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-solid); box-shadow: var(--shadow); }
  .site-menu.is-open { display: grid; }
  .site-menu a { min-height: 44px; display: flex; align-items: center; padding: 0 14px; border-radius: 12px; background: color-mix(in srgb, var(--surface) 54%, transparent); }
  .site-menu a:hover, .site-menu a:focus-visible { background: var(--blue-soft); color: var(--blue); }
  .language-picker, .language-picker select { width: 100%; }
  .language-picker, .theme-toggle { grid-column: 1 / -1; }
  .theme-toggle { min-height: 44px; border-radius: 12px; text-align: left; }
  .hero { grid-template-columns: 1fr; padding-top: 130px; gap: 58px; }
  .hero-copy { max-width: 650px; }
  .hero-visual { height: 600px; min-height: 600px; }
  .story-copy, .devices-copy { position: static; padding-top: 0; }
  .story-copy { padding-right: 116px; }
  .feature-story.is-reversed .story-copy { margin-left: 0; padding-right: 116px; padding-left: 0; text-align: left; }
  .feature-story.is-reversed .story-copy > p:not(.eyebrow) { margin-left: 0; }
  .feature-story.is-reversed .feature-points { justify-content: flex-start; }
  .feature-story .one-line-copy,
  .landscape-showcase .one-line-copy,
  .devices .one-line-copy { white-space: normal; font-size: 16px !important; letter-spacing: normal; }
  #focus .feature-points { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
  #focus .feature-points > li { min-width: 0; }
  .devices-copy { padding-right: 116px; }
  .gallery-viewport { min-height: 640px; }
  .gallery-controls { bottom: 59px; }
  .gallery-slide, .device-viewport .gallery-slide { left: 50%; width: clamp(250px, 42vw, 330px); }
  .device-showcase-stack { min-height: 430px; }
  .download-platform-tabs { max-width: 720px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .download-device-stage { min-height: 500px; }
  .download-iphone-lineup { min-height: 470px; }
  .download-phone img { max-height: 470px; }
}

@media (max-width: 640px) {
  :root { --shell: calc(100% - 28px); }
  html { scroll-padding-top: 0; }
  .home-page .site-header { position: fixed; padding-top: 8px; }
  .home-page .nav-shell { min-height: 62px; padding: 0 10px; border: 0; border-radius: 0; background: var(--page); backdrop-filter: none; }
  .brand img { width: 36px; height: 36px; }
  .menu-toggle { display: flex; }
  .site-menu { left: 14px; right: 14px; top: 76px; max-height: calc(100dvh - 90px); }
  .hero { min-height: 100svh; margin-top: 0; padding: 118px 0 72px; gap: 48px; }
  .hero h1 { font-size: 50px; }
  .hero-lead { font-size: 17px; }
  .one-line-copy { font-size: clamp(7px, 2.25vw, 11px) !important; letter-spacing: -0.02em; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-facts { display: grid; gap: 7px; }
  .hero-facts li + li::before { display: none; }
  .hero-visual { height: 530px; min-height: 530px; }
  .hero-visual img { width: auto; max-width: 88%; height: 100%; max-height: 530px; }
  .feature-story, .devices { min-height: 100svh; padding: 86px 0; }
  .story-copy, .devices-copy { padding-right: 0; padding-bottom: 82px; }
  .feature-story.is-reversed .story-copy { padding-right: 0; padding-left: 0; text-align: left; }
  .feature-story.is-reversed .story-copy > p:not(.eyebrow) { margin-left: 0; }
  .feature-story.is-reversed .feature-points { justify-content: flex-start; }
  #focus .apple-music-point { display: block; overflow: hidden; }
  #focus .apple-music-point > span { display: inline; }
  #focus .apple-music-point .apple-music-identity { float: right; margin-left: 10px; }
  .feature-story h2, .more h2, .devices h2, .download h2 { font-size: clamp(36px, 10.5vw, 42px); }
  .story-copy > p:not(.eyebrow), .devices-copy > p:not(.eyebrow) { font-size: 16px; }
  .gallery-viewport { min-height: 570px; margin-left: -50vw; padding-inline: 0; transform: none; }
  .gallery-slide, .device-viewport .gallery-slide { top: 50%; left: 50%; width: 248px; height: 500px; padding: 0 2px; border-radius: 0; }
  .gallery-slide.is-gallery-main { width: 248px; }
  .gallery-slide img { height: 435px; border-radius: 30px; }
  .gallery-fixed-device-layer img { height: 500px; }
  .gallery-fixed-device { width: 248px; height: 500px; translate: -50% -50%; }
  .gallery-fixed-device-layer img { width: 100%; max-width: none; }
  .gallery-slide.is-gallery-main img { height: 476px; margin-top: 0; }
  .gallery-slide.is-gallery-preview { transform: translateX(calc(var(--gallery-position, 0) * 43%)); }
  .gallery-slide.is-gallery-main { transform: translateX(0); }
  .gallery-slide.is-gallery-offstage { transform: translateX(calc(var(--gallery-position, 0) * 43%)); }
  .gallery-slide figcaption { top: calc(50% + 256px); }
  .gallery-slide.is-gallery-preview figcaption { opacity: 0; }
  .landscape-showcase { padding: 92px 0; }
  .landscape-copy { padding-bottom: 36px; }
  .landscape-card-grid { grid-template-columns: 1fr; gap: 16px; }
  .landscape-card { padding: 0 2px 8px; border-radius: 0; }
  .device-showcase-stack { min-height: 0; grid-template-columns: 53.5% 31.5% 11%; gap: 2%; justify-items: stretch; align-items: end; }
  .device-showcase-stack > .macbook-frame, .device-ipad, .device-iphone { width: 100%; }
  .gallery-controls { position: static; width: 100%; min-height: 44px; margin: 8px 0 0; justify-content: center; gap: 16px; transform: none; }
  .gallery-controls button { width: 44px; min-width: 44px; height: 44px; }
  .more { padding: 86px 0; }
  .pro-legend-card { margin-top: 82px; margin-bottom: 52px; padding: 14px 16px; justify-content: flex-start; text-align: left; }
  .download { padding: 92px 0 76px; }
  .download-heading > img { width: 76px; height: 76px; border-radius: 21px; }
  .download-platform-tabs { margin-top: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .download-platform-tabs button { min-height: 64px; padding: 7px 4px; border-radius: 14px; }
  .download-platform-tabs strong { font-size: 12px; line-height: 1.1; }
  .download-platform-tabs span { font-size: 10px; line-height: 1.1; }
  .download-device-stage { min-height: 0; margin-top: 22px; position: static; }
  .download-device-panel { position: static; inset: auto; }
  .download-iphone-lineup { width: 100%; height: auto; min-height: 0; display: grid; grid-template-columns: 1fr; gap: 18px; justify-items: center; }
  .download-phone, .download-phone.is-side { position: static; width: 200px; transform: none; }
  .download-phone img { width: 100%; height: auto; max-height: none; }
  .download-phone.is-main { width: 230px; }
  .download-macbook { width: 75.2%; margin-bottom: 0; transform: none; }
  .download-ipad { width: 46.4%; margin-bottom: 0; transform: none; }
  .download-action { width: 136px; height: 50px; margin-top: 18px; }
  .download-action .app-store-badge { width: 136px; height: auto; }
  .devices-copy h2 { margin-bottom: 15px; transform: none; }
  .device-showcase-grid, .download-platform-tabs, .download-device-stage, .download-action { transform: none; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .copyright { text-align: left; }
  .legal-page .nav-shell { align-items: flex-start; }
  .legal-page .nav-actions { display: grid; justify-items: end; }
  .legal-page .top-nav { display: none; }
  .legal-title-block { padding-top: 58px; }
  .legal-title-block h1 { font-size: 38px; }
  .legal-main .card { padding: 25px 22px; }
}

@media (min-width: 641px) and (max-width: 880px) and (max-height: 600px) {
  .gallery-viewport { min-height: 570px; transform: none; }
  .gallery-slide, .device-viewport .gallery-slide { width: 248px; height: 500px; }
  .gallery-slide.is-gallery-main { width: 248px; }
  .gallery-slide img { height: 435px; border-radius: 30px; }
  .gallery-fixed-device { width: 248px; height: 500px; }
  .gallery-fixed-device-layer img { width: 100%; max-width: none; height: 500px; }
  .gallery-slide.is-gallery-main img { height: 476px; }
  .gallery-slide figcaption { top: calc(50% + 256px); }
  .gallery-controls { position: static; width: 100%; min-height: 44px; margin: 8px 0 0; justify-content: center; gap: 16px; }
  .gallery-controls button { width: 44px; min-width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .gallery-viewport { scroll-behavior: auto; }
}

/* 2026-08-03 single-viewport story and layered device showcase refinement. */
@media (min-width: 881px) {
  .hero { min-height: 100svh; padding: 100px 0 24px; }
  .hero-visual { height: 520px; min-height: 520px; }
  .hero-visual img { max-height: 520px; }
  .home-page main > .feature-story { min-height: 1060px; padding: 94px 0 22px; }
  .story-copy { padding-bottom: 12px; }
  .feature-story.is-reversed .story-copy { padding-bottom: 12px; }
  .feature-story h2 { margin-bottom: 15px; font-size: clamp(40px, 3.5vw, 52px); transform: translateY(15px); }
  .story-copy > p:not(.eyebrow) { margin-top: 27px; }
  .feature-points { margin-top: 12px; }
  .story-gallery { position: relative; }
  .gallery-viewport { min-height: 675px; transform: translateY(0); }
  .gallery-slide { top: 50%; width: clamp(300px, 23vw, 380px); height: 574px; }
  #focus .gallery-slide { top: 50%; }
  .gallery-slide img { height: 508px; }
  .gallery-fixed-device { width: clamp(300px, 23vw, 380px); height: 574px; }
  .gallery-fixed-device-layer img { height: 574px; }
  .gallery-slide.is-gallery-main img { height: 548px; margin-top: 0; }
  .gallery-slide,
  .gallery-slide.is-gallery-main,
  .gallery-slide.is-gallery-preview,
  .gallery-slide.is-gallery-offstage { transform: translateX(calc(var(--gallery-position, 0) * 48%)); }
  .gallery-slide.is-gallery-main { transform: translateX(0); }
  .gallery-slide figcaption { top: calc(50% + 304px); }
  .gallery-controls { position: absolute; right: 0; bottom: 160px; left: auto; z-index: 9; margin: 0; }
  .feature-story.is-reversed .gallery-controls { right: auto; left: 0; }
  #focus .gallery-controls,
  #more .gallery-controls { bottom: 0; }
  .home-page main > .more { min-height: 1090px; padding: 94px 0 22px; }
  .home-page main > .landscape-showcase { min-height: 1060px; padding: 104px 0 72px; }
  .landscape-showcase h2 { font-size: clamp(42px, 3.5vw, 48px); }
  .landscape-copy { padding-bottom: 28px; }
  .landscape-copy > p:not(.eyebrow) { margin-top: 10px; font-size: 15px; line-height: 1.45; }
  .landscape-card-grid { gap: 30px 28px; }
  .landscape-card { padding-bottom: 4px; }
  .landscape-card img { width: auto; max-width: 100%; height: 362.5px; max-height: none; margin-inline: auto; }
  .landscape-card figcaption { padding-top: 6px; }
  .home-page main > .devices { min-height: 857px; padding: 94px 0 20px; }
  .devices-copy { padding-bottom: 18px; }
  .devices-copy h2 { margin-bottom: 15px; transform: translateY(15px); }
  .device-showcase-grid { transform: translateY(80px); }
  .device-showcase-stack { min-height: 430px; }
  .home-page main > .download { min-height: 849px; padding: 88px 0 18px; }
  .download-platform-tabs { max-width: 1080px; margin-top: 0; grid-template-columns: repeat(6, minmax(0, 1fr)); transform: translateY(50px); }
  .download-device-stage { height: 460px; min-height: 0; margin-top: 12px; transform: translateY(135px); }
  .download-iphone-lineup { width: min(1120px, 100%); height: 460px; min-height: 0; display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 8px; align-items: end; }
  .download-iphone-lineup.is-single { width: 230px; grid-template-columns: 1fr; }
  .download-phone, .download-phone.is-side { position: static; width: 100%; transform: none; }
  .download-phone img { width: 100%; height: auto; max-height: none; }
  .download-phone.is-main { width: 100%; }
  .download-iphone-lineup { transform: translateY(-40px); }
  .download-macbook { width: min(656px, 64%); margin-bottom: 32px; transform: translateY(-30px); }
  .download-ipad { width: min(312px, 36%); margin-bottom: 20px; transform: translateY(-20px); }
  .download-action { margin-top: 10px; transform: translateY(140px); }
  .home-page main > .download { min-height: 879px; }
}

@media (min-width: 881px) {
  .hero-visual { height: 624px; min-height: 624px; }
  .hero-visual img { max-height: 624px; }
  .feature-story.section-shell,
  .more.section-shell {
    width: min(1280px, calc(100% - 64px));
    min-height: 940px;
    padding: 104px 0 72px;
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    gap: clamp(44px, 5vw, 78px);
    align-items: center;
  }
  .feature-story.is-reversed { grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr); }
  .feature-story > .story-copy { grid-column: 1; grid-row: 1; align-self: center; }
  .feature-story > .story-gallery { grid-column: 2; grid-row: 1; align-self: center; }
  .feature-story.is-reversed > .story-copy { grid-column: 2; }
  .feature-story.is-reversed > .story-gallery { grid-column: 1; }
  .story-copy,
  .more-heading {
    max-width: 470px;
    margin: 0;
    padding: 0;
    transform: translateY(-50px);
    text-align: left;
  }
  .feature-story.is-reversed .story-copy {
    max-width: 470px;
    margin: 0 0 0 auto;
    padding: 0;
    text-align: right;
  }
  .feature-story.is-reversed .story-copy > p:not(.eyebrow) { margin-right: 0; margin-left: auto; }
  .feature-story.is-reversed .feature-points { justify-content: normal; justify-items: end; text-align: right; }
  .feature-story.is-reversed .feature-points li { padding-right: 16px; padding-left: 0; }
  .feature-story.is-reversed .feature-points li::before { right: 0; left: auto; }
  .feature-story h2,
  .more h2 {
    margin: 0;
    transform: none;
    font-size: clamp(42px, 3.7vw, 58px);
  }
  .story-copy > p:not(.eyebrow),
  .more-heading p {
    margin-top: 32px;
    font-size: 16px;
    line-height: 1.72;
  }
  .feature-story .one-line-copy { white-space: normal; font-size: 16px !important; }
  .feature-points,
  #focus .feature-points {
    margin-top: 28px;
    display: grid;
    gap: 13px;
    align-items: start;
  }
  #focus .apple-music-point { display: flex; align-items: flex-start; }
  .story-gallery {
    width: 100%;
    height: 860px;
    align-self: center;
    transform: none;
  }
  .gallery-viewport {
    left: auto;
    width: 100%;
    min-height: 720px;
    margin-left: 0;
    padding: 20px 0 42px;
  }
  .gallery-slide {
    width: clamp(300px, 23vw, 380px);
    height: 680px;
  }
  .gallery-slide img { height: 584px; }
  .gallery-fixed-device {
    width: clamp(333px, 25vw, 400px);
    height: 680px;
  }
  .gallery-fixed-device-layer img { height: 680px; }
  .gallery-slide.is-gallery-main img { height: 640px; }
  .gallery-slide,
  .gallery-slide.is-gallery-main,
  .gallery-slide.is-gallery-preview,
  .gallery-slide.is-gallery-offstage {
    transform: translateX(calc(var(--gallery-position, 0) * 44%));
  }
  .gallery-slide.is-gallery-main { transform: translateX(0); }
  .gallery-slide figcaption { top: calc(50% + 350px); width: min(320px, 90%); }
  .gallery-controls,
  #focus .gallery-controls,
  #more .gallery-controls { right: 0; bottom: 166px; left: auto; justify-content: flex-end; }
  .feature-story.is-reversed .gallery-controls { right: auto; left: 0; justify-content: flex-start; }
  .gallery-controls[hidden] { display: none; }
}

@media (min-width: 881px) and (max-width: 1180px) {
  .gallery-slide,
  .gallery-slide.is-gallery-main,
  .gallery-slide.is-gallery-preview,
  .gallery-slide.is-gallery-offstage {
    transform: translateX(calc(var(--gallery-position, 0) * 26%));
  }
  .gallery-slide.is-gallery-main { transform: translateX(0); }
}

@media (prefers-reduced-transparency: reduce) {
  .home-page .nav-shell, .gallery-controls button, .platform-grid button, .legal-page .nav-shell, .legal-main .card { background: var(--surface-solid); backdrop-filter: none; }
}
