:root {
  --bg: #ffffff;
  --alt: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #0071e3;
  --accent-text: #ffffff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --alt: #111113;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #333336;
    --accent: #2997ff;
    --accent-text: #1d1d1f;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --alt: #111113; --text: #f5f5f7; --muted: #a1a1a6;
  --line: #333336; --accent: #2997ff; --accent-text: #1d1d1f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 56px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.in { max-width: 980px; margin: 0 auto; padding: 0 16px; }

header.top {
  position: sticky; top: 0; z-index: 10; height: 48px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
header.top .in { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; }
.brand img { width: 22px; height: 22px; }
nav a { margin-left: 22px; color: var(--muted); font-size: 14px; }
nav a:hover { color: var(--text); text-decoration: none; }
nav a.pill { border: 1px solid var(--accent); color: var(--accent); padding: 3px 13px; border-radius: 999px; font-weight: 500; transition: background .2s, color .2s; }
nav a.pill:hover { background: var(--accent); color: var(--accent-text); text-decoration: none; }
@media (max-width: 640px) { nav a:not(.pill) { display: none; } }

.button { display: inline-block; padding: 11px 24px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); font-size: 17px; font-weight: 500; margin: 0 4px; transition: background .2s, color .2s; }
.button:hover { text-decoration: none; opacity: .9; }
.button.ghost { background: transparent; color: var(--accent); }
.button.ghost:hover { background: var(--accent); color: var(--accent-text); opacity: 1; }

.hero { text-align: center; padding: 64px 16px 0; max-width: 1080px; margin: 0 auto; }
.hero .icon { width: 112px; height: 112px; }
h1 { font-size: clamp(40px, 8vw, 80px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; margin: 20px 0 16px; }
.hero > p { font-size: clamp(19px, 2.6vw, 26px); line-height: 1.25; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .cta { font-size: 19px; }
.shot { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.45), 0 0 0 1px rgba(128,128,128,.18); }
.hero .big { margin: 56px auto 0; }

.feature { max-width: 1080px; margin: 0 auto; padding: 120px 16px 0; text-align: center; }
.band { --bg: #000; --text: #f5f5f7; --muted: #a1a1a6; --line: #333336; background: #000; color: var(--text); margin-top: 120px; padding-bottom: 100px; }
.band .feature { padding-top: 100px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 19px; margin: 0 0 6px; }
h2 { font-size: clamp(34px, 6vw, 60px); line-height: 1.07; letter-spacing: -0.025em; font-weight: 700; margin: 0 0 18px; }
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3; color: var(--muted); max-width: 660px; margin: 0 auto 48px; }
.feature .shot { margin: 0 auto; }
h3 { font-size: 21px; line-height: 1.2; font-weight: 600; margin: 0 0 8px; }
.cols { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); text-align: left; margin-top: 64px; }
.cols p { margin: 0; color: var(--muted); }
.pair { display: grid; gap: 48px 32px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 64px; text-align: left; }
.pair figure { margin: 0; }
.pair figcaption { margin-top: 20px; }
.pair figcaption p { margin: 0; color: var(--muted); }

.download { text-align: center; max-width: 760px; margin: 140px auto 0; padding: 80px 16px; border-top: 1px solid var(--line); }
.download .icon { width: 96px; height: 96px; }
.download h2 { margin-top: 16px; }
.download .lead { margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 64px 0 0; display: grid; gap: 28px; text-align: left; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps span { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--alt); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.steps p { margin: 3px 0 0; color: var(--muted); }
.steps b { color: var(--text); font-weight: 600; }

.dmg { margin: 56px auto 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 32px 44px; border-radius: 14px; background: var(--alt); border: 1px solid var(--line); width: fit-content; }
.dmg > div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dmg img { width: 96px; height: 96px; }
.dmg i { width: 36px; height: 6px; border-radius: 3px; background: var(--line); position: relative; margin-bottom: 22px; }
.dmg i::after { content: ""; position: absolute; right: -2px; top: -5px; width: 14px; height: 14px; border-top: 6px solid var(--line); border-right: 6px solid var(--line); transform: rotate(45deg) scale(.7); border-radius: 2px; }

footer { background: var(--alt); border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--muted); font-size: 13px; }
footer p { margin: 0 0 8px; max-width: 700px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.shot.gap { margin-top: 64px; }

.compare { position: relative; margin: 56px auto 0; max-width: 1080px; touch-action: pan-y; }
.compare .shot { margin: 0; }
.compare .top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); box-shadow: none; }
.compare .tag { position: absolute; top: 14px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; background: rgba(0,0,0,.55); color: #fff; pointer-events: none; }
.compare .tag.l { left: 14px; }
.compare .tag.r { right: 14px; }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: rgba(255,255,255,.9); pointer-events: none; }
.compare .handle::after { content: "\2039 \203A"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #1d1d1f; display: grid; place-items: center; font-size: 22px; letter-spacing: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.compare { cursor: ew-resize; user-select: none; }
.compare input { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.compare:focus-within .handle::after { outline: 3px solid var(--accent); outline-offset: 2px; }
.cols.c2 { grid-template-columns: repeat(2, 1fr); }
.cols.c3 { grid-template-columns: repeat(3, 1fr); }
.cols.c4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .cols.c2, .cols.c3, .cols.c4 { grid-template-columns: 1fr; } }
.gr { background: linear-gradient(90deg, #2997ff, #7fd0ff 50%, #ffffff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead b { color: var(--text); font-weight: 600; }
.pair { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .pair { grid-template-columns: 1fr; } }
.top-band { margin-top: 0; padding-bottom: 80px; }
.top-band .hero { padding-top: 72px; }
.hero > p { color: var(--muted); }
.compare img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.compare { -webkit-user-select: none; }
.feature { padding-top: 180px; }
.band { margin-top: 180px; padding-bottom: 160px; }
.band .feature { padding-top: 160px; }
.top-band { margin-top: 0; padding-bottom: 140px; }
.lead { margin-bottom: 72px; }
.cols { margin-top: 96px; gap: 56px; }
.pair { margin-top: 96px; gap: 80px 40px; }
.shot.gap { margin-top: 96px; }
.download { margin-top: 200px; }
h2 { margin-bottom: 24px; }

.reveal { opacity: 0; transform: translateY(44px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform 1s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }

.lineup { position: relative; aspect-ratio: 2.4 / 1; max-width: 1080px; margin: 0 auto; }
.lineup .d { position: absolute; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.28)); }
.imac { left: -4%; bottom: -8%; width: 44%; z-index: 1; }
.display { left: 40%; bottom: -3%; width: 52%; z-index: 1; }
.macbook { left: 14%; bottom: -14%; width: 54%; z-index: 2; }
.studio { left: 70%; bottom: -3%; width: 30%; z-index: 3; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); filter: none; }
@media (max-width: 720px) { .lineup { aspect-ratio: 4 / 3; } .imac { left: -10%; width: 56%; } .display { left: 42%; width: 64%; } .macbook { left: 8%; width: 70%; bottom: -8%; } .studio { display: none; } }

@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.eyebrow { display: block; width: 100%; text-align: center; margin: 0 auto 10px; }
.feature h2, .feature .lead { width: 100%; text-align: center; }
.lead { margin-top: 0; }
h2 { margin-bottom: 28px; }

.frame { border-radius: 14px; overflow: hidden; line-height: 0; background: #000; box-shadow: 0 30px 60px -28px rgba(0,0,0,.45), 0 0 0 1px rgba(128,128,128,.18); }
.frame .shot { box-shadow: none; border-radius: 0; display: block; width: 100%; height: auto; }
.frame.gap { margin-top: 96px; }
.pair figure .frame { width: 100%; }
.compare { border-radius: 14px; overflow: hidden; }
.compare .shot { border-radius: 0; box-shadow: none; }

.compare { aspect-ratio: var(--ar); }
.compare .shot, .compare .shot.top { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }

img.icon { aspect-ratio: 1 / 1; object-fit: contain; flex: none; max-width: none; }
h1 { margin-bottom: 32px; }
h2 { margin-bottom: 36px; }
.eyebrow { margin-bottom: 14px; }
.lead { margin-top: 0; }
.download h2 { margin-bottom: 20px; }
.download .lead { margin-top: 0; }

picture { display: contents; }

.frame.reveal, .compare.reveal, .lineup.reveal { transform: none; }

#devices { padding-top: 60px; padding-bottom: 80px; }

.head { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-bottom: 80px; text-align: center; }
.head > * { margin: 0; }
.head .eyebrow { margin-bottom: -4px; }
.head h2 { line-height: 1.08; }
.head .lead { margin: 0 auto; }
.download .head { gap: 16px; margin-bottom: 40px; }
#devices .head { margin-bottom: 56px; }
.frame { position: relative; }
.frame::before { content: ""; display: block; padding-top: 70.877%; }
.frame .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare::before { content: ""; display: block; padding-top: calc(100% / (var(--ar-n, 1.4108))); }
.lineup { margin-top: 0; }

.swap { display: grid; justify-items: center; }
.swap .ph { grid-area: 1 / 1; opacity: 0; filter: blur(14px); transform: translateY(26px) scale(.98); transition: opacity .9s cubic-bezier(.2,.7,.2,1), filter .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); pointer-events: none; }
.swap .ph.on { opacity: 1; filter: none; transform: none; transition-delay: .25s; pointer-events: auto; }
.swap .ph:not(.on) { transform: translateY(-26px) scale(.98); transition-duration: .6s; }
nav a.cur { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .swap .ph { transition: none; } }
.swap { font-size: clamp(32px, 6.4vw, 76px); }
.swap .ph { padding: .04em .06em .16em; max-width: 100%; text-wrap: balance; }
.hero h1.swap { margin-bottom: 20px; }
