/*! apple (product-narrative, SuperMimic family) · MIT · original clean-room code */
:root {
  --ap-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial,
                "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --pp-font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial,
             "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --pp-bg: #ffffff; --pp-bg2: #f5f5f7; --ap-fill: #e8e8ed; --pp-hair: #d2d2d7;
  --pp-ink: #1d1d1f; --pp-ink2: #6e6e73; --pp-accent: #0071e3; --ap-accent-hover: #0077ed;
  --pp-radius: 18px; --ap-r-lg: 28px; --pp-gap: 20px;
  --ap-wide: 1180px; --ap-copy: 820px; --ap-gut: 22px; --ap-sec: 96px;
  --ap-edge: max(var(--ap-gut), calc((100% - var(--ap-wide)) / 2 + var(--ap-gut)));
  --pp-ease: cubic-bezier(.28, .11, .32, 1);
}
@media (min-width: 735px)  { :root { --ap-gut: 40px; --ap-sec: 140px; } }
@media (min-width: 1069px) { :root { --ap-sec: 160px; } }
.ap-body { font-size: 17px; line-height: 1.47; letter-spacing: -.01em; }
.ap-wrap { max-width: var(--ap-wide); margin: 0 auto; padding: 0 var(--ap-gut); }
.ap-sec { padding-block: var(--ap-sec); }
.ap-band { background: var(--pp-bg2); }
.ap-clip { overflow-x: clip; }
.ap-eyebrow { margin: 0 0 10px; font: 600 clamp(17px, 1.6vw, 21px)/1.2 var(--ap-display); color: var(--pp-ink2); }
.ap-h { margin: 0; font: 600 clamp(32px, 5vw, 56px)/1.07 var(--ap-display); letter-spacing: -.022em; text-wrap: balance; }
.ap-lede { margin: 16px 0 0; max-width: var(--ap-copy); font-size: clamp(17px, 1.6vw, 21px); color: var(--pp-ink2); text-wrap: pretty; }
.ap-lede b { color: var(--pp-ink); font-weight: 600; }
.ap-center { text-align: center; } .ap-center .ap-lede { margin-inline: auto; }

/* nav */
.ap-nav { position: fixed; z-index: 50; top: max(8px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%);
  width: min(1000px, calc(100% - 16px)); height: 52px; display: flex; align-items: center; gap: 8px; padding: 0 10px 0 20px;
  border-radius: 18px; background: rgba(255,255,255,.78); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 6px 24px rgba(0,0,0,.06); }
.ap-brand { margin-right: auto; font: 600 18px/1 var(--ap-display); color: var(--pp-ink); text-decoration: none; white-space: nowrap; }
.ap-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid transparent; background: none; color: var(--pp-ink); font-size: 13px; text-decoration: none; white-space: nowrap; }
.ap-pill.is-out { border-color: var(--pp-ink2); }
.ap-pill.is-out:hover { background: var(--pp-bg2); }
.ap-pill.is-solid { background: var(--pp-accent); color: #fff; }
.ap-pill.is-solid:hover { background: var(--ap-accent-hover); }
.ap-menu { position: absolute; top: 60px; right: 8px; width: 240px; padding: 8px; border-radius: 18px; background: rgba(255,255,255,.95);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.12); }
.ap-menu a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--pp-ink); text-decoration: none; font-size: 15px; }
.ap-menu a:hover { background: var(--pp-bg2); }
@media (max-width: 480px) { .ap-nav .is-hide-sm { display: none; } }

/* hero */
.ap-hero { padding: 124px 0 0; text-align: center; }
.ap-hero .ap-h { font-size: clamp(40px, 8vw, 88px); line-height: 1.04; letter-spacing: -.03em; }
.ap-hero-sub { margin: 18px auto 0; max-width: 720px; font-size: clamp(17px, 2vw, 24px); color: var(--pp-ink2); text-wrap: balance; }
.ap-stage { position: relative; max-width: 1100px; margin: 48px auto 0; }
.ap-stage .pp-media { border-radius: var(--ap-r-lg); }
@media (max-width: 734px) { .ap-stage .pp-media { aspect-ratio: 4 / 5; } }
.ap-stage .pp-icon-btn { position: absolute; right: 16px; bottom: 16px; background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ap-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 520px; margin: 20px auto 0; padding: 10px 10px 10px 22px;
  border-radius: 999px; background: var(--ap-fill); text-align: left; font-size: 14px; line-height: 1.35; }
.ap-caption small { display: block; color: var(--pp-ink2); font-size: 12px; }
.ap-caption .ap-pill { height: 36px; padding: 0 18px; font-size: 15px; }

/* highlights carousel */
.ap-headrow { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.ap-headrow a { font-size: 17px; color: var(--pp-accent); text-decoration: none; white-space: nowrap; }
.ap-hl .pp-track { margin-top: 40px; padding-inline: var(--ap-edge); scroll-padding-inline: var(--ap-edge); }
.ap-hl .pp-track::after { content: ""; flex: 0 0 1px; }
.ap-hl .pp-car-ctrl { padding-inline: var(--ap-edge); }
.ap-card { width: min(86vw, 860px); display: flex; flex-direction: column; gap: 22px; padding: 34px 22px 22px; border-radius: var(--ap-r-lg); background: var(--pp-bg); text-align: center; }
.ap-card h3 { margin: 0; font: 600 clamp(21px, 2.4vw, 28px)/1.2 var(--ap-display); letter-spacing: -.015em; text-wrap: balance; }
.ap-card .pp-media { aspect-ratio: 16 / 10; }

/* stats */
.ap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 24px; margin-top: 56px; }
.ap-stat b { display: block; font: 600 clamp(52px, 7vw, 84px)/1 var(--ap-display); letter-spacing: -.035em;
  background: linear-gradient(90deg, #0071e3, #6e56cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ap-stat span { display: block; margin-top: 10px; font-size: 15px; color: var(--pp-ink2); max-width: 260px; }

/* sticky story */
.ap-story { display: grid; gap: 24px; margin-top: 48px; }
.ap-story-media { position: sticky; top: 72px; z-index: 1; height: 42vh; border-radius: var(--ap-r-lg); overflow: hidden; background: var(--pp-bg2); }
.ap-story-media [data-layer] { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--pp-ease); }
.ap-story-media [data-layer].is-active { opacity: 1; }
.ap-story-media video { width: 100%; height: 100%; object-fit: cover; }
.ap-story-media .pp-badge { position: absolute; left: 14px; top: 14px; }
.pp-story-steps article { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .5s var(--pp-ease); }
.pp-story-steps article.is-active { opacity: 1; }
.pp-story-steps h3 { margin: 0 0 10px; font: 600 clamp(24px, 3vw, 32px)/1.15 var(--ap-display); letter-spacing: -.015em; }
.pp-story-steps p { margin: 0; color: var(--pp-ink2); max-width: 440px; }
@media (min-width: 1069px) {
  .ap-story { grid-template-columns: 1.2fr .8fr; gap: 64px; }
  .ap-story-media { top: 96px; height: min(70vh, 580px); }
  .pp-story-steps article { min-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) { .pp-story-steps article { opacity: 1; } }

/* compare table */
.ap-ctable { max-width: 900px; margin: 56px auto 0; padding: 34px 20px 8px; border-radius: var(--ap-r-lg); background: var(--pp-bg); }
.ap-ccols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: center; }
.ap-ccols h3 { margin: 0; font: 600 24px/1.1 var(--ap-display); }
.ap-ccols p { margin: 6px 0 0; font-size: 12px; color: var(--pp-ink2); }
.ap-crow { margin-top: 20px; padding: 22px 0; border-top: 1px solid var(--pp-hair); }
.ap-crow h4 { margin: 0 0 12px; text-align: center; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--pp-ink2); }
.ap-crow .ap-ccols div { font-size: 14px; color: var(--pp-ink2); }
.ap-crow .ap-ccols b { display: block; font: 600 clamp(24px, 3.4vw, 34px)/1.1 var(--ap-display); color: var(--pp-ink); }
.ap-crow .ap-ccols .is-ours b { color: var(--pp-accent); }

/* faq + bibtex */
.ap-faq { max-width: 860px; margin: 40px auto 0; }
.ap-faq details { border-bottom: 1px solid var(--pp-hair); }
.ap-faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font: 600 clamp(17px, 2vw, 21px)/1.3 var(--ap-display); }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary::after { content: "+"; flex: none; font: 300 28px/1 var(--pp-font); color: var(--pp-ink2); transition: transform .3s var(--pp-ease); }
.ap-faq details[open] summary::after { transform: rotate(45deg); }
.ap-faq details p { margin: 0 0 22px; max-width: 760px; color: var(--pp-ink2); }
.ap-bib { max-width: 760px; margin: 64px auto 0; padding: 22px; border-radius: var(--pp-radius); background: var(--pp-bg2); }
.ap-bib-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font: 600 15px/1 var(--ap-display); }
.ap-bib .pp-code pre { padding: 0; background: none; }

/* sticky CTA */
.ap-cta { position: fixed; z-index: 40; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .4s var(--pp-ease), transform .4s var(--pp-ease); }
.ap-cta.is-shown { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ap-cta a { display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 8px 0 22px; border-radius: 999px; background: rgba(232,232,237,.9);
  -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px); color: var(--pp-ink); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.ap-cta a span { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--pp-accent); color: #fff; font-weight: 400; }

/* footer */
.ap-footer { padding: 20px 0 40px; border-top: 1px solid var(--pp-hair); background: var(--pp-bg2); color: var(--pp-ink2); font-size: 12px; line-height: 1.6; }
.ap-footer a { color: var(--pp-ink); }
