:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172735;
  background: #f5f6f8;
  font-synthesis: none;
  --blue: #255dc7;
  --muted: #626c78;
  --line: #dfe4ea;
  --surface: #fff;
  --soft: #eaf0f7;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-section: 96px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; }
a { color: var(--blue); text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; min-width: 0; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.brand { display: flex; align-items: center; gap: 10px; font-family: ui-rounded, -apple-system, BlinkMacSystemFont, sans-serif; font-size: 22px; font-weight: 700; color: #172735; text-decoration: none; letter-spacing: -.5px; }
.brand img { border-radius: 9px; }
nav { display: flex; gap: var(--space-lg); align-items: center; }
nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: #424d59; text-decoration: none; }
.nav-button { gap: 10px; border: 1px solid var(--line); padding: 10px 18px; border-radius: 24px; background: var(--surface); font-weight: 600; }
.skip { position: absolute; top: -90px; padding: 14px; background: white; z-index: 9; }
.skip:focus { top: 8px; left: 8px; }
h1, h2 { font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700; }
h1 { font-size: clamp(52px, 5.5vw, 76px); line-height: 1.06; letter-spacing: -3px; margin: 0 0 var(--space-md); }
h1 span { color: var(--blue); }
h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.16; letter-spacing: -1.5px; margin: 0 0 var(--space-md); }
h3 { font-size: 20px; line-height: 1.35; letter-spacing: -.4px; margin: 0 0 10px; font-weight: 650; }
p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.eyebrow { font-size: 12px; line-height: 1.5; letter-spacing: 1.8px; font-weight: 700; text-transform: uppercase; color: var(--blue); margin: 0 0 var(--space-md); }
.lead { font-size: 19px; max-width: 440px; margin: 0 0 var(--space-lg); }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-md); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; gap: 18px; background: var(--blue); color: white; padding: 13px 23px; border-radius: 28px; text-decoration: none; font-size: 15px; font-weight: 600; }
.button:hover { background: #1d50b1; text-decoration: none; }
.button-secondary { background: white; color: var(--blue); border: 1px solid #cbd8eb; }
.button-secondary:hover { background: #f1f5fc; }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; }
.small { font-size: 12px; color: #626c78; margin-top: 20px; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: var(--space-xl); padding: 48px 0 72px; }
.hero-apps { position: relative; min-width: 0; height: 600px; }
.hero-apps::before { content: ""; position: absolute; inset: 24px 0 56px 12px; border-radius: 40px; background: #e8eef6; }
.hero-mac { position: absolute; width: 57%; left: 0; top: 72px; }
.hero-phone { position: absolute; width: 40%; right: 0; top: 0; }
.hero-mac img { width: 100%; filter: drop-shadow(0 12px 18px #22365412); }
.hero-apps figcaption { margin: 0; text-align: center; font-size: 12px; line-height: 1.5; color: var(--muted); padding-top: 16px; }
.hero-apps a { display: block; }
.phone { display: block; overflow: hidden; border: 6px solid #18232b; border-radius: 34px; background: #18232b; box-shadow: 0 16px 32px #17273512, 0 2px 5px #17273516; }
.phone img { width: 100%; }
.intro-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); padding: 28px 0; border-block: 1px solid var(--line); }
.intro-strip p { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 15px; font-weight: 500; color: #344354; margin: 0; }
.ring { flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1.7px solid #357bd5; border-radius: 50%; }
.ring.checked { background: var(--blue); border-color: var(--blue); color: white; font-size: 14px; }
.section { padding: var(--space-section) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 680px; margin-bottom: var(--space-xl); }
.section-lead { margin: 0; max-width: 600px; font-size: 18px; }
.screenshot-stage { display: flex; align-items: center; justify-content: center; padding: var(--space-lg); background: var(--soft); border-radius: 28px; }
.screenshot-link { display: block; text-decoration: none; }
.screenshot-link:hover { text-decoration: none; }
.screenshot-link:focus-visible { outline-offset: 9px; }
.screenshot-link img { width: 100%; }
.mac-story { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }
.mac-stage { min-height: 620px; }
.mac-stage .screenshot-link { width: min(100%, 360px); }
.mac-extras { display: grid; gap: var(--space-xl); }
.compact-stage { min-height: 260px; padding: var(--space-md); }
.compact-stage .screenshot-link { width: min(100%, 340px); }
.mac-detail-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-md); align-items: center; }
.detail-stage { padding: 20px 12px; }
figcaption { margin-top: var(--space-md); }
figcaption p { font-size: 15px; line-height: 1.65; margin: 0; }
.mac-detail-story figcaption { margin: 0; }
.phone-stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); }
.phone-stage { padding: 32px 26px; }
.phone-stage .phone { width: min(100%, 240px); }
.step { display: block; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.gallery-note { font-size: 12px; margin: var(--space-lg) 0 0; }
.night-section { background: #0e171d; color: #eef3f8; padding: 80px 0; overflow: hidden; }
.night-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--space-xl); align-items: center; }
.night-copy p { color: #b0bcc9; max-width: 410px; }
.night-copy .eyebrow { color: #80b6ff; }
.night-copy .night-detail { font-size: 14px; color: #8999aa; }
.night-apps { display: flex; align-items: center; gap: var(--space-md); }
.night-mac { width: 56%; }
.night-phone { width: 40%; border-color: #34424e; }
.done-section { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.done-visual { padding: var(--space-xl); }
.done-visual .phone { width: min(100%, 250px); }
.done-copy > p { margin-bottom: var(--space-lg); }
.detail-note + .detail-note { margin-top: var(--space-md); }
.detail-note h3 { font-size: 17px; margin-bottom: 6px; }
.detail-note p { font-size: 15px; margin: 0; }
.connection-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-xl); }
.connection-options > div { border-top: 2px solid #cbd8eb; padding-top: var(--space-md); }
.connection-options h3 { font-size: 18px; }
.connection-options p { font-size: 15px; margin: 0; }
.availability { text-align: center; padding: 56px var(--space-xl); background: #e8eef6; border-radius: 32px; margin-bottom: 80px; }
.availability-icon { border-radius: 16px; margin: 0 auto var(--space-md); }
.availability p { max-width: 640px; margin-inline: auto; }
.availability .eyebrow { margin-bottom: 16px; }
.availability h2 { margin-bottom: 16px; }
.availability .actions { justify-content: center; margin-top: var(--space-lg); }
.availability .small { margin-top: var(--space-md); }
.article { max-width: 720px; padding: 65px 0 85px; margin: auto; width: calc(100% - 48px); }
.article h1 { font-size: 48px; letter-spacing: -2px; }
.article h2 { font-size: 23px; letter-spacing: -.5px; margin: 38px 0 12px; }
.article h3 { font-size: 18px; margin-top: 24px; }
.article p, .article li { font-size: 16px; line-height: 1.8; color: #535e6b; }
.article li { margin: 9px 0; }
.article ul, .article ol { padding-left: 24px; }
.article .intro { font-size: 19px; }
.article .updated { font-size: 12px; color: #6d7683; }
.article code { font-size: 13px; overflow-wrap: anywhere; background: #e9eff7; padding: 4px 6px; border-radius: 4px; }
.notice { padding: 16px 20px; border-left: 3px solid #8699b1; background: #edf1f6; }
.article details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.article summary { font-weight: 600; cursor: pointer; line-height: 1.5; }
footer { border-top: 1px solid var(--line); padding: 38px 0 25px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
footer .brand { font-size: 16px; }
footer p { font-size: 12px; margin-top: 10px; }
.footer-tag { font-size: 12px; font-weight: 400; letter-spacing: 0; color: #667281; margin-left: 10px; }
footer nav { gap: 20px; flex-wrap: wrap; }
footer nav a { font-size: 12px; }
.fineprint { width: 100%; margin: 8px 0 0; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: var(--space-md); }
  .hero-apps { height: 500px; }
  .hero-mac { top: 64px; }
  .hero-phone { top: 20px; }
  .mac-story { gap: var(--space-lg); }
  .mac-stage { min-height: 540px; }
  .mac-detail-story { grid-template-columns: 1fr; }
  .detail-stage .screenshot-link { width: 230px; }
  .phone-stories { gap: 20px; }
  .phone-stage { padding: 24px 16px; }
  .phone { border-radius: 28px; border-width: 5px; }
  .done-section { gap: var(--space-xl); }
}
@media (max-width: 760px) {
  :root { --space-section: 64px; }
  .wrap { width: calc(100% - 40px); }
  header { min-height: 92px; flex-wrap: wrap; padding-block: 20px; gap: 12px; }
  header nav { gap: 20px; flex-wrap: wrap; }
  .hero { grid-template-columns: 1fr; gap: var(--space-lg); padding: 36px 0 48px; }
  h1 { font-size: clamp(48px, 10vw, 68px); letter-spacing: -2.4px; }
  .hero .lead { max-width: 520px; }
  .hero-apps { width: min(100%, 520px); height: auto; aspect-ratio: .9; margin: auto; }
  .hero-mac { top: 12%; width: 60%; }
  .hero-phone { top: 0; width: 40%; }
  .hero-apps::before { inset: 16px 0 32px 0; border-radius: 28px; }
  .intro-strip { gap: 20px; padding-block: var(--space-md); }
  .intro-strip p { font-size: 12px; gap: 8px; }
  .ring { width: 18px; height: 18px; }
  .section-heading { margin-bottom: var(--space-lg); }
  .mac-story { grid-template-columns: 1fr; }
  .mac-stage { min-height: 0; padding: 36px; }
  .mac-stage .screenshot-link { width: min(100%, 340px); }
  .mac-extras { grid-template-columns: 1fr 1fr; gap: var(--space-md); align-items: start; }
  .compact-stage { min-height: 0; padding: 20px 12px; }
  .mac-detail-story { display: block; }
  .mac-detail-story figcaption { margin-top: var(--space-md); }
  .phone-stories { grid-template-columns: 1fr; gap: var(--space-xl); }
  .phone-stories figure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-md); }
  .phone-stories figcaption { margin: 0; }
  .phone-stage { padding: 24px 18px; }
  .night-section { padding-block: 56px; }
  .night-layout { grid-template-columns: 1fr; gap: var(--space-lg); }
  .night-copy p { max-width: 520px; }
  .night-apps { width: min(100%, 480px); margin: auto; }
  .done-section { grid-template-columns: 1fr; gap: var(--space-lg); }
  .done-visual { padding: 32px; }
  .done-visual .phone { width: 220px; }
  .connection-options { grid-template-columns: 1fr; gap: var(--space-lg); }
  .availability { padding: 36px 24px; margin-bottom: 48px; }
  .article { padding-top: 40px; }
  .article h1 { font-size: 40px; }
  footer { display: block; }
  footer nav { gap: 12px 20px; margin: 20px 0; }
  .footer-tag { display: none; }
}
@media (max-width: 480px) {
  header { gap: 10px; }
  header nav { width: 100%; justify-content: space-between; gap: 8px; }
  header nav a { font-size: 13px; }
  .nav-button { padding: 9px 14px; }
  .hero { padding-top: 24px; }
  .hero-apps figcaption { font-size: 10px; padding-top: 10px; }
  .hero-apps .phone { border-width: 4px; border-radius: 23px; }
  .intro-strip { grid-template-columns: 1fr; gap: 14px; padding-block: 24px; }
  .intro-strip p { justify-content: flex-start; font-size: 14px; }
  .mac-extras { grid-template-columns: 1fr; gap: var(--space-lg); }
  .compact-stage { padding: 28px 20px; }
  .detail-stage { padding: 28px; }
  .detail-stage .screenshot-link { width: 280px; }
  .phone-stories figure { display: block; }
  .phone-stories figcaption { margin-top: var(--space-md); }
  .phone-stage { padding: 32px; }
  .phone-stage .phone { width: 240px; }
  .night-apps { gap: 12px; }
  .night-apps .phone { border-width: 4px; border-radius: 22px; }
  .availability .actions { flex-direction: column; gap: 12px; }
  .availability .button { width: 100%; }
}

/* Native, progressively enhanced screenshot viewer; the original image links remain crawlable. */
html { scrollbar-gutter: stable; }
html.image-viewer-open, .image-viewer-open body { overflow: hidden; }
.image-viewer {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  width: fit-content;
  padding: 16px 24px 20px;
  margin: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #f5f6f8;
  color: #172735;
  box-shadow: 0 24px 64px #0e171d40;
  overscroll-behavior: contain;
}
.image-viewer::backdrop { background: #0e171dce; }
.image-viewer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.image-viewer button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 24px; background: white; color: #172735; font: inherit; cursor: pointer; }
.image-viewer button span { margin-left: 8px; font-size: 20px; font-weight: 400; }
.image-viewer button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.image-viewer figure { display: flex; flex-direction: column; align-items: center; }
.image-viewer img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 184px); object-fit: contain; }
.image-viewer figcaption { max-width: 520px; margin-top: 12px; font-size: 13px; line-height: 1.5; text-align: center; color: var(--muted); }
.screenshot-link { cursor: zoom-in; }
@media (max-width: 480px) {
  .image-viewer { max-width: calc(100vw - 16px); max-height: calc(100dvh - 16px); padding: 12px; border-radius: 20px; }
  .image-viewer img { max-height: calc(100dvh - 172px); }
  .image-viewer figcaption { font-size: 12px; }
}

/* Article imagery and navigation use the existing app palette and type scale. */
.brand { min-height: 44px; }
.article-screen { width: min(100%, 360px); margin: 32px auto; padding: 24px; background: var(--soft); border-radius: 24px; }
.article-screen.phone-screen { width: min(100%, 300px); }
.article-screen figcaption { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.article pre { overflow-x: auto; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.article pre code { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0; }
.article summary { min-height: 44px; padding-block: 10px; }

/* Native click-to-play demo: fixed geometry, no autoplay, no player library. */
.app-demo { scroll-margin-top: 32px; margin-block: 32px 40px; }
.article .app-demo h2 { margin-top: 0; }
.app-demo video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.app-demo video:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
.app-demo figcaption { margin-top: 12px; font-size: 14px; line-height: 1.7; color: var(--muted); }

.app-demo-portrait video { width: min(100%, 320px); aspect-ratio: 9 / 16; margin-inline: auto; }
.app-demo-portrait figcaption { max-width: 440px; margin-inline: auto; text-align: center; }
