/* Tempo — site.css
   Native paper, glass, light and ink. System SF Pro only; no web fonts.
   The page contract (mount points, data attributes, events) is documented at the top of /site.js. */

:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --paper-soft: #F6F7F6;
  --paper-deep: #ECEEED;
  --ink: #1A1F21;
  --ink-2: #5B6266;
  --ink-3: #80878B;
  --hairline: rgba(26, 31, 33, .1);
  --night: #05070C;
  --on-night: #FFFFFF;
  --on-night-2: #A7B3C6;

  --tone-capture: #6750C8;
  --tone-understand: #2459D6;
  --tone-plan: #B04A1C;
  --tone-library: #0F6E6A;
  --tone-siri: #B4325A;
  --tone-privacy: #1A594A;
  --tone-duo: #3A5A8C;
  --tone-later: #7A5C1E;
  --tone-assistants: #4A4787;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --header-h: 64px;
  --hero-morph: 100vh;          /* scroll distance of the angled -> frontal morph when the story module is active */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

@media (prefers-contrast: more) {
  :root { --ink-2: #2E3437; --ink-3: #4A5256; --hairline: rgba(26, 31, 33, .38); --on-night-2: #FFFFFF; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: calc(var(--header-h) + 8px);
  overflow-x: clip;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p, ul, figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.04em; word-spacing: .03em; line-height: 1.02; text-wrap: balance; }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: fixed; z-index: 100; left: 16px; top: 12px;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

/* Launch flag: <html data-launch="prelaunch|live"> */
html[data-launch="prelaunch"] [data-when="live"],
html[data-launch="live"] [data-when="prelaunch"],
html:not([data-launch]) [data-when="live"] { display: none !important; }

/* Progressive enhancement: boot.js adds html.js */
html:not(.js) [data-js-only], html.js [data-no-js] { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left));
  transition: background-color .4s ease, box-shadow .4s ease, opacity .9s var(--ease-out), transform 1s var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  box-shadow: 0 1px 0 var(--hairline);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .97); }
}
/* Over a dark section ([data-header="night"]) the bar turns to ink glass. */
.site-header.is-night { color: #fff; background: rgba(5, 7, 12, .56); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.site-header.is-night .brand__mark { color: #fff; }
.site-header.is-night .lang a { color: rgba(255, 255, 255, .66); }
.site-header.is-night .lang a:hover, .site-header.is-night .lang a[aria-current] { color: #fff; }
.site-header.is-night :focus-visible { outline-color: #fff; }
@media (prefers-contrast: more), (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.is-night { background: var(--night); }
}

.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 700; font-size: 1.0625rem; letter-spacing: -.02em; text-decoration: none;
}
.brand__mark { width: 25px; height: 22px; color: var(--ink); }

.lang { display: flex; align-items: center; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding: 0 4px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-2); text-decoration: none; border-radius: 999px;
  transition: color .2s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current] { color: var(--ink); }
.lang a[aria-current] span[aria-hidden] { box-shadow: 0 1.5px 0 currentColor; }

/* ---------- Story: #hero + #features share one sticky device stage ---------- */
.story { position: relative; }
.story__stage-wrap { display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
@property --story-tone { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0); }
.story__stage { position: sticky; top: 0; height: 100vh; height: 100svh; transition: --story-tone 1.1s var(--ease-in-out); }
/* Where the frontal hand-held phone rests while features scroll (measured by the hero module). */
.story__grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: minmax(0, 1fr);
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  pointer-events: none;
}
/* A soft light in the current feature's tone behind the phone (site.js sets --story-tone). */
.story__grid::before {
  content: ""; grid-row: 1; grid-column: 1; align-self: center; justify-self: center;
  width: min(760px, 70vw); aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--story-tone), rgba(255, 255, 255, 0));
  opacity: .9;
}
.story__anchor {
  grid-row: 1; grid-column: 1;
  visibility: hidden;
  position: relative;
  /* Centre the generated frontal phone by its screen, at 446 / 1199 of the stage width. */
  align-self: end; justify-self: start;
  left: 50%;
  transform: translateX(-37.1977%);
  height: min(calc(100svh - var(--header-h) - 2vh), 164vw, 940px);
  aspect-ratio: 1199 / 1312;
}
/* The default story rig (site.js): screen under two hand photos, all positioned in stage pixels. */
.story-rig { position: absolute; inset: 0; visibility: hidden; }
.story-rig.is-on { visibility: visible; }
/* The mobile rig scrolls with the hero; its existing wrist fade provides the
   clipping. No giant sticky layer, animated clip, or extra image masks. */
.story-rig.is-inplace { z-index: 1; }
.story-rig.is-inplace .story-rig__hand { -webkit-mask-image: none; mask-image: none; }
.story-rig.is-inplace.is-turning .story-rig__hand,
.story-rig.is-inplace.is-turning .story-rig__screen { will-change: transform, opacity; }
html[data-story-mode="inplace"] .story__stage-wrap { display: none; }

.story-rig__screen {
  position: absolute; left: 0; top: 0;
  width: 393px; height: 852px;
  border-radius: 55px; overflow: hidden;
  background: #FFFFFF;
  transform-origin: 0 0;
  backface-visibility: hidden;
}
.story-rig__app {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: opacity .6s var(--ease-in-out);
}
.story-rig__video { transition: none; }
/* A faint diagonal glass sheen on the live screen, rising as the phone faces you (site.js sets its opacity). */
.story-rig__glass {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: linear-gradient(122deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, .06));
}
/* Both hand photos are warped with the screen (matrix3d, origin 0 0). Like the hero's own hand, the arm fades
   out before the stage's bottom edge. */
.story-rig__hand {
  position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0;
  backface-visibility: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 110px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 110px), transparent);
}
.story-rig__fade {
  position: absolute; left: -10vw; right: -10vw; top: 0;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .04) 22%, rgba(255, 255, 255, .62) 64%, #FFFFFF);
}
@media (min-width: 960px) {
  .story__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(48px, 8vw, 128px); }
  .story__anchor, .story__grid::before { grid-column: 2; }
}

/* ---------- Hero ----------
   The hero itself is /modules/hero (section.thero[data-tempo-hero], styled by hero.css).
   #hero wraps it so a story module can pin it ([data-hero-pin]) while the phone turns. */
.hero { position: relative; }
.hero__pin { position: relative; }
/* Site additions inside the module's copy column. */
.thero__meta {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px;
  font-size: .8125rem; font-weight: 500; color: var(--ink-2);
}
.thero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.thero__meta li::before {
  content: ""; flex: none; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3);
}
@media (min-width: 960px) {
  .thero__meta { justify-content: flex-start; }
  .thero__cta .store { justify-content: flex-start; }
}
@media (max-width: 599px) {
  .thero__meta { gap: 4px 16px; }
}

/* Intro choreography contract. boot.js sets data-intro="pending" (or "done").
   The hero module sets "playing", reveals parts with [data-shown], then sets "done". */
[data-intro-part] { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
html[data-intro="pending"] [data-intro-part]:not([data-shown]),
html[data-intro="playing"] [data-intro-part]:not([data-shown]) {
  opacity: 0; transform: translate3d(0, 14px, 0); pointer-events: none;
}
html[data-intro="pending"] .site-header:not([data-shown]),
html[data-intro="playing"] .site-header:not([data-shown]) { transform: translate3d(0, -10px, 0); }
/* CSS failsafe: never leave the page blank if scripts fail. */
html[data-intro="pending"] [data-intro-part]:not([data-shown]) { animation: intro-failsafe .01s linear 4s forwards; }
html[data-intro="playing"] [data-intro-part]:not([data-shown]) { animation: intro-failsafe .01s linear 14s forwards; }
@keyframes intro-failsafe { to { opacity: 1; transform: none; pointer-events: auto; } }

/* Story module active (it owns the hand-held phone through the hero and the features). */
html[data-story="active"]:not([data-story-mode="inplace"]) .story__stage-wrap { display: block; }
/* data-story-mode="inplace" (narrow screens, set by the default story): no pin, the phone turns where it is. */
html[data-story="active"]:not([data-story-mode="inplace"]) .hero { height: calc(100vh + var(--hero-morph)); height: calc(100svh + var(--hero-morph)); }
html[data-story="active"]:not([data-story-mode="inplace"]) .hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
@media (min-width: 960px) {
  html[data-story="active"] .feature { min-height: 100vh; min-height: 100svh; }
  html[data-story="active"] .feature .feature__text { order: 0; grid-column: 1; }
  html[data-story="active"] .feature__media { display: none; }
}
html[data-story-mode="inplace"] .story__grid::before { display: none; }
@media (max-width: 959px) {
  /* Narrow screens: the stage lives over the hero only; each feature shows its own phone. */
  .story__grid::before { display: none; }
  html[data-story="active"]:not([data-story-mode="inplace"]) .story__stage-wrap { bottom: auto; height: calc(100vh + var(--hero-morph)); height: calc(100svh + var(--hero-morph)); }
}

/* ---------- Store (App Store placeholder) ---------- */
.store { display: flex; justify-content: center; }
.store__button {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 54px; padding: 8px 24px 9px 22px; border-radius: 14px;
  background: var(--ink); color: #fff; text-decoration: none; line-height: 1.08;
  transition: transform .3s var(--ease-out), background-color .2s ease;
}
.store__button:hover { background: #2C3236; }
.store__button:active { transform: scale(.97); }
.store__button[aria-disabled="true"] { cursor: default; }
.store__small { font-size: .6875rem; font-weight: 500; letter-spacing: .01em; opacity: .82; }
.store__big { font-size: 1.3125rem; font-weight: 700; letter-spacing: -.025em; }
.store__soon {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 22px 0 18px; border-radius: 999px;
  font-size: .9375rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
  background: rgba(26, 31, 33, .035);
  box-shadow: inset 0 0 0 1px rgba(26, 31, 33, .14);
}
.store__dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone-privacy); }
@media (prefers-reduced-motion: no-preference) {
  .store__dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit;
    animation: breathe 2.8s var(--ease-in-out) infinite;
  }
}
@keyframes breathe { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(3.1); opacity: 0; } }

/* ---------- Phone (flat phone: assets frame over the screen slot; geometry from /assets/phone/frame.json) ---------- */
.phone {
  --w: var(--pw, 280px);
  position: relative; flex: none;
  width: var(--w);
  aspect-ratio: 431 / 884;
}
.phone::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: .7%; right: .7%;
  border-radius: 16.71% / 8.03%;
  box-shadow: 0 1px 2px rgba(26, 31, 33, .06), 0 24px 48px -12px rgba(26, 31, 33, .18), 0 60px 90px -30px rgba(26, 31, 33, .14);
}
.phone__screen {
  position: absolute; left: 4.4084%; top: 1.81%; width: 91.1833%; height: 96.3801%;
  overflow: hidden; isolation: isolate;
  border-radius: 13.9949% / 6.4554%;
  background: var(--paper-soft);
}
.phone__screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.phone__frame { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.phone__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.phone__placeholder svg { width: 28%; height: auto; color: var(--ink); opacity: .1; }

/* ---------- Features ---------- */
.features { padding: clamp(24px, 6vw, 96px) 0 clamp(40px, 6vw, 80px); }
.feature {
  --tone: var(--ink-2);
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  gap: clamp(40px, 7vw, 56px);
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 10vw, 136px) var(--gutter);
}
.feature[data-tone="capture"] { --tone: var(--tone-capture); }
.feature[data-tone="understand"] { --tone: var(--tone-understand); }
.feature[data-tone="plan"] { --tone: var(--tone-plan); }
.feature[data-tone="library"] { --tone: var(--tone-library); }
.feature[data-tone="siri"] { --tone: var(--tone-siri); }
.feature[data-tone="privacy"] { --tone: var(--tone-privacy); }
.duo { --tone: var(--tone-duo); }
.later { --tone: var(--tone-later); }
.assistants { --tone: var(--tone-assistants); }

.eyebrow {
  margin-bottom: 18px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--tone, var(--ink-2));
}
.feature h2, .assistants h2, .duo h2, .later h2 {
  font-size: clamp(2.5rem, 5.3vw, 4.5rem);
  letter-spacing: -.048em; line-height: 1;
}
.feature__text { max-width: 33rem; }
.feature__copy {
  margin-top: 22px;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2);
}
.feature__points { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 12px; }
.feature__points li { display: flex; align-items: baseline; gap: 12px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
.feature__points li::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--tone); transform: translateY(-2px);
}
.feature__note { margin-top: 18px; font-size: .8125rem; color: var(--ink-2); }
.feature__more { margin-top: 20px; }
.feature__media {
  --pw: clamp(240px, 25vw, 340px);
  position: relative; isolation: isolate;
  display: flex; justify-content: center;
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .feature__media::before {
    content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
    width: min(150%, 100vw); max-width: 640px; aspect-ratio: 1; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 13%, transparent), transparent);
    pointer-events: none;
  }
}
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); }
  .feature:nth-child(even) .feature__text { order: 2; }
  .feature:nth-child(even) .feature__media { order: 1; }
}
@media (max-width: 599px) {
  .feature__media { --pw: min(70vw, 290px); }
}

.text-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.text-link svg { width: 17px; height: 17px; flex: none; transition: transform .35s var(--ease-out); }
.text-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .24em; }
.text-link:hover svg { transform: translateX(3px); }

/* Scroll reveal (site.js adds .is-in). Content is visible without JS or with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal:not(.is-in) { opacity: 0; transform: translate3d(0, 28px, 0); }
  html.js .reveal { transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
  html.js .feature__media.reveal { transition-delay: .12s; }
}

/* ---------- iPhone Duo: our own foldable frames (/assets/duo), open and folded ----------
   Both images share one scale (0.75 px per pt at 1x), so side by side the folded phone and the open one
   have the same height. site.js sets --p (0..1) as the stage scrolls in: the open device slides out from
   behind the folded one. Without JS or with Reduce Motion, --p stays 1 (the final composition). */
.duo {
  position: relative; isolation: isolate;
  padding: clamp(96px, 12vw, 168px) var(--gutter) clamp(72px, 9vw, 120px);
  text-align: center;
  overflow-x: clip;
}
.duo__head { max-width: 46rem; margin: 0 auto; }
.duo__copy, .later__copy, .assistants__copy {
  max-width: 38rem; margin: 22px auto 0;
  font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.55; color: var(--ink-2);
}
.duo__stage {
  --p: 1;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 440fr) minmax(0, 799fr); align-items: end;
  width: min(100%, 1120px);
  margin: clamp(48px, 6vw, 80px) auto 0;
}
@supports (background: color-mix(in srgb, red 10%, transparent)) {
  .duo__stage::before {
    content: ""; position: absolute; z-index: -1; left: 50%; top: 52%;
    width: min(1100px, 130vw); aspect-ratio: 2 / 1; transform: translate(-50%, -50%);
    background: radial-gradient(closest-side, color-mix(in srgb, var(--tone) 11%, transparent), transparent);
    pointer-events: none;
  }
}
.duo__device img { width: 100%; height: auto; }
.duo__device--open {
  grid-column: 2; grid-row: 1; z-index: 1;
  transform-origin: 0% 60%;
  transform: translate3d(calc((1 - var(--p)) * -38%), 0, 0) scale(calc(.94 + var(--p) * .06));
  opacity: calc(.15 + var(--p) * .85);
}
.duo__device--closed {
  grid-column: 1; grid-row: 1; z-index: 2;
  margin-right: -2%;
  transform: translate3d(0, calc((1 - var(--p)) * 28px), 0);
}
.duo__points {
  list-style: none; padding: 0;
  margin: clamp(36px, 4.5vw, 52px) auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.duo__points li, .later__badge {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 36px; padding: 0 16px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; letter-spacing: -.01em;
  background: var(--paper-soft);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.duo__points li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tone);
}
@media (max-width: 759px) {
  /* Narrow: the open phone full width, the folded one below it. */
  .duo__stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .duo__device--open {
    grid-column: 1; grid-row: 1; width: min(100%, 520px);
    transform-origin: 50% 100%;
    transform: translate3d(0, calc((1 - var(--p)) * 36px), 0) scale(calc(.96 + var(--p) * .04));
    opacity: calc(.25 + var(--p) * .75);
  }
  .duo__device--closed {
    grid-column: 1; grid-row: 2; width: min(50%, 250px);
    margin: -3% 0 0;
    transform: translate3d(0, calc((1 - var(--p)) * 64px), 0);
  }
  .duo__points { gap: 8px; }
  .duo__points li { min-height: 32px; padding: 0 12px; font-size: .8125rem; }
}

/* ---------- Coming later: iPad at the back, iPhone and Apple Watch in front ----------
   One stage at a shared physical scale (iPad Pro 13", iPhone, Apple Watch Ultra; the front two a
   touch larger, as in Apple's own line-ups). --p (0..1) is set by site.js from scroll: the iPad
   rises first, then the iPhone and the Watch slide in from either side. Without JS or with reduced
   motion --p stays 1, so the settled stack shows. The supplied PNGs are preserved; each layer is
   a viewport onto its image that removes the transparent canvas. */
.later {
  padding: clamp(88px, 11vw, 152px) var(--gutter) clamp(96px, 12vw, 168px);
  text-align: center;
  background: linear-gradient(180deg, var(--paper), var(--paper-soft) 38%, var(--paper-soft) 70%, var(--paper));
  overflow-x: clip;
}
.later__head { max-width: 46rem; margin: 0 auto; }
.later__stack {
  --p: 1;
  --a: clamp(0, calc(var(--p) / .7), 1);
  --b: clamp(0, calc((var(--p) - .18) / .7), 1);
  --c: clamp(0, calc((var(--p) - .3) / .7), 1);
  position: relative;
  width: min(1080px, 100%);
  aspect-ratio: 100 / 58;
  margin: clamp(40px, 6vw, 80px) auto 0;
}
.later__layer {
  position: absolute;
  display: block;
  aspect-ratio: var(--view-w) / var(--view-h);
  overflow: hidden;
  will-change: transform, opacity;
}
.later__layer img {
  position: absolute;
  left: calc(-100% * var(--view-x) / var(--view-w));
  top: calc(-100% * var(--view-y) / var(--view-h));
  width: calc(100% * var(--img-w) / var(--view-w));
  max-width: none;
  height: auto;
}
.later__layer--ipad {
  --view-x: 140; --view-y: 209; --view-w: 1640; --view-h: 1231; --img-w: 1920;
  left: 17%; top: 0; width: 67%;
  -webkit-mask-image: linear-gradient(#000 88%, transparent);
  mask-image: linear-gradient(#000 88%, transparent);
  transform: translate3d(0, calc((1 - var(--a)) * 9%), 0) scale(calc(.92 + var(--a) * .08));
  opacity: calc(.12 + var(--a) * .88);
}
.later__layer--iphone {
  --view-x: 25; --view-y: 31; --view-w: 326; --view-h: 671; --img-w: 376;
  left: 9%; top: 40.9%; width: 16.7%;
  z-index: 2;
  transform: translate3d(calc((1 - var(--b)) * -60%), calc((1 - var(--b)) * 22%), 0) rotate(calc((1 - var(--b)) * -4deg));
  opacity: var(--b);
}
.later__layer--watch {
  --view-x: 706; --view-y: 294; --view-w: 535; --view-h: 854; --img-w: 1920;
  left: 77.5%; top: 58.4%; width: 14.5%;
  z-index: 3;
  transform: translate3d(calc((1 - var(--c)) * 60%), calc((1 - var(--c)) * 22%), 0) rotate(calc((1 - var(--c)) * 5deg));
  opacity: var(--c);
}
.later__legend {
  list-style: none; padding: 0;
  margin: clamp(28px, 4vw, 44px) auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px clamp(18px, 3vw, 36px);
}
.later__legend li { display: flex; align-items: center; gap: 10px; }
.later__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.later__badge { min-height: 30px; padding: 0 12px; font-size: .75rem; color: var(--tone); background: #fff; white-space: nowrap; }
.later__badge--now { color: #1F7A4D; }
@media (max-width: 599px) {
  .later__stack { width: 108%; margin-left: -4%; }
  .later__legend { flex-direction: column; align-items: center; gap: 10px; }
  .later__name { font-size: .9375rem; }
  .later__badge { min-height: 28px; padding: 0 10px; font-size: .6875rem; }
}

/* ---------- Assistants (static fallback until /modules/assistants mounts) ---------- */
.assistants {
  padding: clamp(96px, 12vw, 168px) var(--gutter);
  text-align: center;
}
.assistants__head { max-width: 56rem; margin: 0 auto; }
.assistants__stage { margin: clamp(48px, 6vw, 72px) auto 0; max-width: 960px; }
.assistants__list {
  list-style: none; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px;
}
.assistant {
  position: relative;
  width: 148px; height: 148px; border-radius: 34px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--hairline), 0 1px 2px rgba(26, 31, 33, .04), 0 22px 44px -26px rgba(26, 31, 33, .32);
}
.assistant__logo:empty { display: none; }
.assistant__logo img { width: 44px; height: 44px; object-fit: contain; }
.assistant__name { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.02em; }
.assistant[data-status="soon"] { background: transparent; box-shadow: none; border: 1.5px dashed rgba(26, 31, 33, .24); }
.assistant[data-status="soon"] .assistant__name { color: var(--ink-2); }
.assistant__status {
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.assistants__note { margin-top: clamp(36px, 5vw, 52px); font-size: .9375rem; color: var(--ink-2); }
.assistants__note .text-link { margin-left: 6px; color: var(--ink); }
@media (max-width: 599px) {
  .assistants__list { gap: 12px; }
  .assistant { width: 104px; height: 104px; border-radius: 26px; gap: 6px; }
  .assistant__name { font-size: .9375rem; }
  .assistant__status { font-size: .5625rem; }
}

/* ---------- Available (dark band; static fallback until /modules/available mounts) ---------- */
.available {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(104px, 14vw, 184px) var(--gutter);
  background: var(--night); color: var(--on-night);
  text-align: center;
}
.available::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 54%;
  width: min(1100px, 170vw); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(52, 102, 255, .26), rgba(30, 60, 160, .1) 48%, transparent 72%);
  pointer-events: none;
}
.available__inner { position: relative; max-width: 40rem; margin: 0 auto; }
.available__title { font-size: clamp(2.75rem, 6.2vw, 5rem); letter-spacing: -.045em; line-height: 1; }
.available__name { margin-top: 12px; font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; letter-spacing: -.015em; color: #C9D3E0; }
.available__stage { position: relative; width: clamp(168px, 19vw, 244px); aspect-ratio: 1; margin: clamp(44px, 6vw, 68px) auto; }
.available__fallback, .glass-tile { width: 100%; height: 100%; }
.glass-tile {
  display: grid; place-items: center; border-radius: 22.5%;
  background: linear-gradient(150deg, rgba(128, 160, 222, .5), rgba(40, 66, 128, .58) 55%, rgba(24, 40, 86, .7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .4),
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    0 30px 90px -24px rgba(40, 90, 255, .55);
}
.glass-tile img { width: 60%; height: auto; }
.available__stage[data-enhanced] .available__fallback { display: none; }
.available__note { margin-top: 20px; font-size: .9375rem; color: var(--on-night-2); }
.available__note > span { display: inline-flex; align-items: center; gap: 10px; }
.available__note .store__dot { background: #7FE0B5; }
.available .store + .available__note { margin-top: 18px; }
.store--night .store__soon { color: #fff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); }
.store--night .store__dot { background: #7FE0B5; }
.store--night .store__button { background: #fff; color: var(--night); }
.store--night .store__button:hover { background: #E8ECF2; }
.store__badge { display: inline-block; line-height: 0; border-radius: 9px; }
.store__badge img { display: block; width: auto; height: 54px; }
.store__badge[aria-disabled="true"] { cursor: default; }
.store__badge--text { line-height: 1.4; color: inherit; }
.available :focus-visible { outline-color: #fff; }

/* ---------- Closing ---------- */

/* ---------- Footer ---------- */
.site-footer {
  padding: 36px max(var(--gutter), env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  border-top: 1px solid var(--hairline);
  font-size: .875rem; color: var(--ink-2);
}
.footer__top {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
}
.brand--footer { font-size: 1rem; color: var(--ink); }
.brand--footer .brand__mark { width: 22px; height: 19px; }
.footer__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.footer__link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 500; color: var(--ink); text-decoration: none;
}
.footer__link:hover { text-decoration: underline; text-underline-offset: .24em; text-decoration-thickness: 1px; }
.footer__fine { max-width: var(--max); margin: 20px auto 0; }
.footer__notice { max-width: 92ch; font-size: .75rem; line-height: 1.6; }
.footer__copyright { margin-top: 12px; font-size: .75rem; }
@media (max-width: 719px) {
  .footer__top { flex-direction: column; align-items: flex-start; }
  .footer__nav { gap: 0 20px; }
  .site-footer .lang { margin-left: -12px; }
}

/* ---------- Sheets (Privacy Policy, Terms & Conditions) ---------- */
html.has-sheet { overflow: hidden; }
html.has-sheet body { padding-right: var(--scrollbar, 0px); }
dialog.sheet {
  position: fixed; inset: auto 0 0 0;
  width: 100%; max-width: 100%; max-height: calc(100% - 28px); height: min(92dvh, calc(100% - 28px));
  margin: 0; padding: 0; border: 0;
  border-radius: 22px 22px 0 0;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 -24px 70px -24px rgba(5, 7, 12, .45);
  overflow: hidden;
  overscroll-behavior: contain;
}
dialog.sheet[open] { display: flex; flex-direction: column; }
dialog.sheet::backdrop {
  background: rgba(5, 7, 12, .44);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
@media (min-width: 760px) {
  dialog.sheet {
    inset: 0; margin: auto;
    width: min(760px, calc(100% - 48px)); height: min(86vh, 920px); max-height: calc(100% - 48px);
    border-radius: 26px;
    box-shadow: 0 0 0 1px rgba(26, 31, 33, .06), 0 40px 120px -30px rgba(5, 7, 12, .55);
  }
}
.sheet__bar {
  position: relative; flex: none;
  display: flex; align-items: center; gap: 6px;
  padding: 12px 12px 10px 24px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.sheet.is-scrolled .sheet__bar { border-bottom-color: var(--hairline); }
.sheet__bar-title {
  flex: 1; min-width: 0; margin: 0;
  font-size: 1rem; font-weight: 700; letter-spacing: -.015em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s ease, transform .35s var(--ease-out);
}
.sheet.is-scrolled .sheet__bar-title { opacity: 1; transform: none; }
.sheet__page {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px;
  font-size: .875rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.sheet__page:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .24em; }
.sheet__close {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--paper-soft); color: var(--ink); cursor: pointer;
  transition: background-color .2s ease, transform .2s var(--ease-out);
}
.sheet__close:hover { background: var(--paper-deep); }
.sheet__close:active { transform: scale(.94); }
.sheet__close svg { width: 18px; height: 18px; }
@media (max-width: 759px) {
  .sheet__bar { padding-top: 18px; }
  .sheet__bar::before {
    content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 5px;
    border-radius: 3px; background: rgba(26, 31, 33, .16); transform: translateX(-50%);
  }
}
.sheet__body {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 4px 24px calc(48px + env(safe-area-inset-bottom));
}
@media (min-width: 760px) { .sheet__body { padding: 8px 56px 64px; } }
.sheet__title { font-size: clamp(2rem, 5vw, 2.75rem); letter-spacing: -.045em; line-height: 1.04; outline: none; }
.sheet__status { color: var(--ink-2); padding: 24px 0; }
.sheet__error { margin-top: 16px; color: var(--ink); }

.legal-doc { font-size: 1rem; line-height: 1.65; color: var(--ink); }
.legal-doc .date { margin: 10px 0 26px; font-size: .875rem; color: var(--ink-2); }
.legal-doc h3 { margin: 2.1rem 0 .4rem; font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
.legal-doc p { margin: .8rem 0; max-width: 64ch; }
.legal-doc a { text-underline-offset: .2em; text-decoration-thickness: 1px; }

@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-up .56s var(--ease-out); }
  dialog.sheet[open]::backdrop { animation: backdrop-in .4s ease; }
  dialog.sheet.is-closing { animation: sheet-down .3s var(--ease-in) forwards; }
  dialog.sheet.is-closing::backdrop { animation: backdrop-out .3s ease forwards; }
  @media (min-width: 760px) {
    dialog.sheet[open] { animation: sheet-in .5s var(--ease-out); }
    dialog.sheet.is-closing { animation: sheet-out .24s var(--ease-in) forwards; }
  }
}
@keyframes sheet-up { from { transform: translate3d(0, 100%, 0); } }
@keyframes sheet-down { to { transform: translate3d(0, 100%, 0); } }
@keyframes sheet-in { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.975); } }
@keyframes sheet-out { to { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}
@media (prefers-contrast: more) {
  .store__soon { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
  .assistant { box-shadow: 0 0 0 2px var(--ink); }
  .assistant[data-status="soon"] { border-color: var(--ink); }
  .duo__points li, .later__badge { box-shadow: inset 0 0 0 2px var(--ink); background: #fff; }
  .available__name, .available__note { color: #fff; }
  .store--night .store__soon { box-shadow: inset 0 0 0 2px #fff; }
}
@media (forced-colors: active) {
  .store__soon, .store__button, .assistant, .sheet__close, .duo__points li, .later__badge { border: 1px solid CanvasText; }
  .feature__points li::before, .store__dot, .duo__points li::before { background: CanvasText; }
  .brand__mark { color: CanvasText; }
}
@media (max-width: 599px) {
  :root { --header-h: 56px; }
}
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 24px; pointer-events: none; visibility: hidden; }

/* Official App Store badge slot (artwork from Apple's marketing resources); plain link without it. */
.store__badge { display: inline-flex; min-height: 44px; align-items: center; border-radius: 8px; }
.store__badge img { display: block; height: 40px; width: auto; }
.store__badge--text { font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
.store--night .store__badge--text { color: #fff; }

/* The owner's screen recording over a feature's still (hidden until it can play). */
.phone__screen { position: relative; }
.phone__rec { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.phone__rec.is-ready { opacity: 1; }
.story-rig__rec { transition: opacity .4s ease; }
