/* TapDeck site, in the design language of Apple's product pages (measured from apple.com): SF Pro via the system font,
   #1d1d1f text on white and #f5f5f7 panels, #0071e3 pill buttons, semibold display type with tight tracking,
   generous white space, and motion that follows the scroll. Light only, like Apple's product pages. */
:root {
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --page: #ffffff;
  --panel: #f5f5f7;
  --line: #d2d2d7;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #0066cc;
  --rainbow: linear-gradient(90deg, #61BA45, #FCB826, #F5821F, #E03B3D, #963D96, #039EDB);
  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 400 17px/1.47059 var(--text); letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video, canvas { display: block; max-width: 100%; }
img { height: auto; }   /* width/height attributes reserve the space; CSS still sizes the image */
.wrap { width: min(980px, 100% - 44px); margin: 0 auto; }
.wide-wrap { width: min(1260px, 100% - 44px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; margin: 0; color: var(--ink); }
.eyebrow { font: 600 21px/1.19 var(--display); letter-spacing: 0.011em; margin: 0 0 6px; }
.eyebrow.rainbow { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.headline { font-size: clamp(40px, 6vw, 56px); line-height: 1.07; letter-spacing: -0.005em; }
.lede { font: 400 clamp(19px, 2vw, 21px)/1.38 var(--display); letter-spacing: 0.011em; color: var(--ink-2); margin: 14px 0 0; }
.lede b { color: var(--ink); font-weight: 600; }
.center { text-align: center; }
.muted { color: var(--ink-2); }

/* Buttons: Apple's blue pill and the "Learn more ›" link. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 28px; padding: 11px 21px; border-radius: 980px;
  font: 400 17px/1.17648 var(--text); letter-spacing: -0.022em; border: 0; cursor: pointer; text-decoration: none; transition: background .2s var(--ease); }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-hover); }
.btn.small { padding: 4px 11px; font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; }
.btn[aria-disabled="true"] { background: #e8e8ed; color: var(--ink-3); cursor: default; }
.more { color: var(--link); white-space: nowrap; }
.more::after { content: " ›"; }
.ctas { display: flex; gap: 24px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Navigation: a thin global bar, then a sticky product bar with the name and Buy. */
.globalnav { position: relative; z-index: 30; height: 44px; background: rgba(250,250,252,0.8); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); }
.globalnav .wrap { display: flex; align-items: center; height: 44px; gap: 30px; font-size: 12px; letter-spacing: -0.01em; }
.globalnav a { color: rgba(0,0,0,0.8); }
.globalnav a:hover { color: #000; text-decoration: none; }
.globalnav .mark { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
.globalnav .mark img { width: 20px; height: 20px; }
.globalnav nav { display: flex; gap: 30px; margin-left: auto; }
.localnav { position: sticky; top: 0; z-index: 25; height: 52px; background: rgba(255,255,255,0.72); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.16); }
.localnav .wrap { display: flex; align-items: center; height: 52px; gap: 24px; }
.localnav .title { font: 600 21px/1 var(--display); letter-spacing: 0.011em; color: var(--ink); }
.localnav nav { display: flex; gap: 24px; margin-left: auto; align-items: center; font-size: 12px; }
.localnav nav a:not(.btn) { color: var(--ink); opacity: 0.88; }
@media (max-width: 734px) { .globalnav nav, .localnav nav a:not(.btn) { display: none; } .localnav nav { margin-left: auto; } }

/* Scroll reveal: text and tiles rise and fade in, staggered, with Apple's easing. */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
/* The hero is the first paint (and the LCP), so it never waits for JS or fades from invisible: it only rises, in CSS. */
.rise { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { transform: translateY(30px); } }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .rise { animation: none; } html { scroll-behavior: auto; } }

section { position: relative; }
.section { padding: 120px 0; }
.section.panel { background: var(--panel); }
.section-head { max-width: 760px; margin: 0 auto 64px; text-align: center; }

/* Hero */
.hero { text-align: center; padding: 74px 0 38px; }
.hero .icon { width: 96px; height: 96px; margin: 0 auto 18px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18)); }
.hero h1 { font-size: clamp(48px, 8.2vw, 96px); line-height: 1.05; letter-spacing: -0.015em; }
.hero .price { font: 400 21px/1.38 var(--display); margin-top: 18px; color: var(--ink); }
.hero .price span { color: var(--ink-2); }

/* The film: the teaser's live 3D scene on a pinned stage. It keeps its proportions and always fits the window. */
.film { height: 1500vh; }
.film-stage { position: sticky; top: 52px; height: calc(100vh - 52px); overflow: hidden; background: #fff; }
.film-frame { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.film-frame iframe { display: block; border: 0; width: 1920px; height: 1080px; pointer-events: none; background: #fff; }
.film-frame.tall iframe { width: 1080px; height: 1920px; }
.film-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
[hidden] { display: none !important; }
/* The still (no 3D, or a failed film): one screen, no scrubbing, no chapters. */
.film.still { height: auto; }
.film.still .film-stage { position: relative; top: 0; height: min(80vh, 760px); }
.film.still .film-chapters, .film.still .film-bar { display: none; }
.film.still .film-frame { inset: 0; transform: none !important; }
.film.still + .film-skip { display: none; }
.film-chapters { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; border-radius: 980px;
  background: rgba(245,245,247,0.96); max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none; }
.film-chapters button { font: 400 12px/1 var(--text); letter-spacing: -0.01em; color: var(--ink-2); background: transparent; border: 0; border-radius: 980px; padding: 7px 12px; cursor: pointer; white-space: nowrap; transition: background .25s var(--ease), color .25s var(--ease); }
.film-chapters button[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,0.06); }
.film-bar i { display: block; height: 100%; width: 100%; transform-origin: 0 0; transform: scaleX(0); background: var(--ink); }
.film-skip { text-align: center; margin: 18px 0 0; font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .film { height: auto; } .film-stage { position: relative; top: 0; height: min(80vh, 760px); } .film-chapters { display: none; } }

/* Try it: the interactive demo, on a light panel. */
.demo { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.demo-screen { position: relative; }
.bezel { background: #0b0b0d; padding: 10px; border-radius: 22px; box-shadow: 0 30px 60px rgba(0,0,0,0.18), inset 0 0 0 1px rgba(255,255,255,0.08); }
.bezel canvas { width: 100%; aspect-ratio: 1.532; border-radius: 13px; }
.demo-pill { position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 8px); display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 980px; background: rgba(255,255,255,0.9); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity .25s ease, transform .25s ease; pointer-events: none; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; }
.demo-pill.show { opacity: 1; transform: translate(-50%, 0); }
.demo-pill.hint { color: var(--ink-2); font-weight: 500; white-space: normal; width: max-content; text-align: center; }
.demo-pill .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.demo-side { display: grid; gap: 16px; }
.demo-apps, .demo-fingers { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--ink-2); }
.demo-apps > span, .demo-fingers > span { margin-right: 4px; }
.demo-apps button, .demo-fingers button { font: 400 14px/1 var(--text); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 980px; padding: 8px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: border-color .2s, box-shadow .2s; }
.demo-apps img { width: 18px; height: 18px; }
.demo-fingers button { width: 42px; justify-content: center; padding: 8px 0; font-weight: 600; }
.demo-apps button[aria-pressed="true"], .demo-fingers button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--blue); }
.demo-fingers kbd { font: inherit; font-size: 12px; margin-left: 4px; color: var(--ink-3); }
.demo-pad { position: relative; aspect-ratio: 1.6; border-radius: 18px; overflow: hidden; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  background: #e3e4e8; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1), 0 20px 40px rgba(0,0,0,0.12); }
.demo-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-pad .corner { position: absolute; border: 1.5px dashed rgba(29,29,31,0.3); pointer-events: none; }
/* Inset 6px from the edge, yet ending at 15% like the hit zone (RULES.cornerSize): the box is the zone's inner edge. */
.demo-pad .corner.tl, .demo-pad .corner.tr { width: calc(15% - 6px); height: calc(15% - 6px); }
.demo-pad .corner.tl { left: 6px; top: 6px; border-radius: 12px 4px 4px 4px; }
.demo-pad .corner.tr { right: 6px; top: 6px; border-radius: 4px 12px 4px 4px; }
.pad-hint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 13px; font-weight: 600; color: rgba(29,29,31,0.55); pointer-events: none; text-shadow: 0 0 10px rgba(255,255,255,0.8); }
.demo-hold { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; opacity: 0; transition: opacity .2s;
  background: conic-gradient(var(--blue) calc(var(--k, 0) * 360deg), rgba(255,255,255,0.4) 0); -webkit-mask: radial-gradient(circle, transparent 54%, #000 56%); mask: radial-gradient(circle, transparent 54%, #000 56%); pointer-events: none; }
.demo-hold.on { opacity: 1; }
.demo-cheat { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; background: #fff; border-radius: 18px; }
.demo-cheat li { display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; font-size: 14px; transition: background .3s ease; }
.demo-cheat li .dot { width: 8px; height: 8px; border-radius: 50%; }
.demo-cheat li b { font-weight: 600; }
.demo-cheat li .does { color: var(--ink-2); text-align: right; }
.demo-cheat li.lit { background: rgba(0,113,227,0.1); }
.demo-note { margin: 24px auto 0; max-width: 720px; text-align: center; font-size: 12px; color: var(--ink-3); }
.touch-only { display: none; }
.demo.touch .mouse-only, .touch .mouse-only { display: none; }
@media (pointer: coarse) { .touch-only { display: inline; } .mouse-only { display: none !important; } }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }

/* Tiles: Apple's rounded panels. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { background: var(--panel); border-radius: 28px; padding: 36px 32px; overflow: hidden; }
.section.panel .tile { background: #fff; }
.tile img.app { width: 64px; height: 64px; margin-bottom: 18px; }
.tile h3 { font-size: 24px; line-height: 1.17; letter-spacing: 0.009em; }
.tile p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
.tile .gesture { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; }
.tile .gesture span { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.tile .gesture b { font-weight: 600; }
.tile.showcase { grid-column: 1 / -1; padding: 0; background: #000; }
.tile.showcase img { width: 100%; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* Numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.numbers .n { font: 600 clamp(48px, 6vw, 72px)/1.05 var(--display); letter-spacing: -0.015em; }
.numbers .n small { font-size: 0.45em; font-weight: 600; margin-left: 2px; }
.numbers p { margin: 8px 0 0; color: var(--ink-2); font-size: 17px; }
@media (max-width: 860px) { .numbers { grid-template-columns: 1fr 1fr; row-gap: 48px; } }

/* The water moment: a dark band where the app's water follows the pointer. */
.water-moment { background: #000; color: #f5f5f7; padding: 0; }
.water-moment .copy { position: relative; z-index: 2; padding: 120px 0 40px; text-align: center; pointer-events: none; }
.water-moment h2 { color: #f5f5f7; }
.water-moment .lede { color: #a1a1a6; }
.water-moment .pool { position: relative; height: min(70vh, 640px); margin: 0 auto; width: min(1260px, 100% - 44px); border-radius: 28px; overflow: hidden; touch-action: pan-y; }
.water-moment .pool canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.water-moment .pool span { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: rgba(245,245,247,0.6); font-size: 14px; pointer-events: none; }
.water-moment .after { height: 120px; }

/* Pricing teaser */
.pricing { text-align: center; }
.pricing .amount { font: 600 clamp(64px, 10vw, 112px)/1 var(--display); letter-spacing: -0.02em; margin-top: 18px; }
.pricing .amount span { font-size: 0.32em; color: var(--ink-2); font-weight: 600; letter-spacing: 0; }
.included { list-style: none; padding: 0; margin: 36px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 980px; }
.included li { background: var(--panel); border-radius: 18px; padding: 22px 18px; font-size: 15px; color: var(--ink-2); }
.included li b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
@media (max-width: 860px) { .included { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font: 600 21px/1.3 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--ink-2); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* Footer: Apple's small grey legal footer. */
footer.site { background: var(--panel); color: var(--ink-3); font-size: 12px; line-height: 1.33; letter-spacing: -0.01em; padding: 20px 0 24px; }
footer.site .wrap > * + * { margin-top: 12px; }
footer.site .fine { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
footer.site .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0; }
footer.site nav a { color: #424245; padding: 0 10px; border-left: 1px solid var(--line); }
footer.site nav a:first-child { padding-left: 0; border-left: 0; }

/* Text pages: terms, privacy, refunds, thanks. */
.doc { width: min(692px, 100% - 44px); margin: 0 auto; padding: 72px 0 96px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.07; }
.summary .testmode { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 980px; background: #fff4e5; color: #b25e00; font-size: 11px; font-weight: 600; vertical-align: 1px; }
.doc .keybox { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; padding: 14px 14px 14px 18px; background: var(--panel); border-radius: 14px; }
.doc .keybox code { flex: 1; min-width: 0; font: 500 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin: 10px 0 28px; }
.doc h2 { font-size: 24px; line-height: 1.17; margin: 40px 0 10px; }
.doc p, .doc li { color: #424245; }
.doc .badge { width: 84px; height: 84px; margin-bottom: 22px; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.18)); }

/* Buy page, after Apple's store pages. */
.buy-head { padding: 56px 0 40px; }
.buy-head h1 { font-size: clamp(40px, 5vw, 48px); line-height: 1.08; }
.buy-head p { margin: 10px 0 0; font-size: 17px; }
.buy { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 40px; align-items: start; padding-bottom: 160px; }
.gallery { position: sticky; top: 72px; background: var(--panel); border-radius: 28px; overflow: hidden; }
.gallery .slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery .slides::-webkit-scrollbar { display: none; }
.gallery .slide { scroll-snap-align: center; aspect-ratio: 1.25; display: grid; place-items: center; padding: 40px; }
.gallery .slide img { max-height: 100%; border-radius: 16px; }
.gallery .slide img.icon { width: 46%; border-radius: 0; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.2)); }
.gallery .caption { position: absolute; left: 0; right: 0; top: 26px; text-align: center; font-size: 14px; color: var(--ink-2); }
.gallery .controls { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 0 0 22px; }
.gallery .controls button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(210,210,215,0.64); color: var(--ink); font-size: 18px; cursor: pointer; }
.gallery .dots { display: flex; gap: 8px; padding: 10px 16px; border-radius: 980px; background: rgba(210,210,215,0.64); }
.gallery .dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.42); }
.gallery .dots i.on { background: var(--ink); }
.steps h2 { font-size: 24px; line-height: 1.17; margin: 0 0 18px; }
.steps h2 span { color: var(--ink-3); }
.steps .step + .step { margin-top: 44px; }
.option { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 12px; border: 1px solid var(--ink-3); background: #fff; cursor: pointer; }
.option[aria-checked="true"] { border: 2px solid var(--blue); padding: 17px 19px; }
.option b { font-size: 17px; font-weight: 600; }
.option small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.option .cost { text-align: right; font-size: 14px; color: var(--ink-2); }
.option .cost b { display: block; color: var(--ink); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: #424245; }
.checklist li::before { content: "✓"; color: var(--blue); font-weight: 600; }
.numbered { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.numbered li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: 10px; color: #424245; }
.numbered li::before { content: counter(n); width: 24px; height: 24px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.summary { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: rgba(255,255,255,0.82); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-top: 1px solid rgba(0,0,0,0.12); }
.summary .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; padding: 12px 0; }
.summary .what { font-size: 14px; color: var(--ink-2); }
.summary .what b { display: block; font-size: 17px; color: var(--ink); font-weight: 600; }
.summary .total { margin-left: auto; text-align: right; font-size: 14px; color: var(--ink-2); }
.summary .total b { display: block; font-size: 21px; color: var(--ink); font-weight: 600; }
.summary .btn { min-width: 220px; }
@media (max-width: 860px) {
  .buy { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; }
  .summary .what { display: none; }
  .summary .btn { min-width: 0; }
}
@media (max-width: 560px) {
  .summary .wrap { gap: 12px; }
  .summary .total { font-size: 12px; }
  .summary .total b { font-size: 17px; }
  .summary .btn { white-space: nowrap; padding: 11px 16px; font-size: 15px; }
}
