/* ==========================================================================
   Vision Lab Studio — one stylesheet, no framework.

   Motion follows Emil Kowalski's rules (github.com/emilkowalski/skills):
   transform, opacity and clip only; strong ease-out for entrances; springs
   for anything that follows the pointer; reveals fire once; hover only for
   real pointers; reduced motion keeps the fades and drops the movement.
   ========================================================================== */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --hairline: rgba(0, 0, 0, 0.1);
  --hairline-soft: rgba(0, 0, 0, 0.06);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-ink: #ffffff;
  --link: #0066cc;
  --focus: #0071e3;
  --btn-2: rgba(0, 0, 0, 0.05);
  --btn-2-ink: #1d1d1f;
  --nav-bg: rgba(255, 255, 255, 0.76);
  --nav-line: rgba(0, 0, 0, 0.08);
  --card-bg: #f5f5f7;
  --card-edge: rgba(0, 0, 0, 0.04);
  --sheen: rgba(0, 113, 227, 0.09);
  --device-stroke: #1d1d1f;
  --device-screen: rgba(0, 0, 0, 0.035);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1080px;
  --gutter: clamp(20px, 5vw, 44px);
  --nav-h: 52px;
  --r-xl: 28px;
  --r-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-alt: #0c0c0d;
    --surface: #161617;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --hairline: rgba(255, 255, 255, 0.12);
    --hairline-soft: rgba(255, 255, 255, 0.07);
    --link: #2997ff;
    --focus: #2997ff;
    --btn-2: rgba(255, 255, 255, 0.09);
    --btn-2-ink: #f5f5f7;
    --nav-bg: rgba(22, 22, 23, 0.76);
    --nav-line: rgba(255, 255, 255, 0.08);
    --card-bg: #111112;
    --card-edge: rgba(255, 255, 255, 0.07);
    --sheen: rgba(255, 255, 255, 0.07);
    --device-stroke: #f5f5f7;
    --device-screen: rgba(255, 255, 255, 0.05);
  }
}

/* Product pages are dark whatever the system says — the apps are. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --bg-alt: #0c0c0d;
  --surface: #161617;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --hairline: rgba(255, 255, 255, 0.12);
  --hairline-soft: rgba(255, 255, 255, 0.07);
  --link: #2997ff;
  --focus: #2997ff;
  --btn-2: rgba(255, 255, 255, 0.09);
  --btn-2-ink: #f5f5f7;
  --nav-bg: rgba(22, 22, 23, 0.76);
  --nav-line: rgba(255, 255, 255, 0.08);
  --card-bg: #111112;
  --card-edge: rgba(255, 255, 255, 0.07);
  --sheen: rgba(255, 255, 255, 0.07);
  --device-stroke: #f5f5f7;
  --device-screen: rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.18em; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
:where(ul[role="list"]) { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus-visible { transform: none; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-3);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(44px, 7.4vw, 88px);
  line-height: 1.03;
  font-weight: 600;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.034em;
  text-wrap: balance;
}

.lede {
  font-size: clamp(19px, 1.8vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.018em;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Masked line reveal: each line rises out of its own clip, so the words are
   set into place rather than faded in. Without JS the text simply sits
   there. */
.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.line > span {
  display: inline-block;
  transition: transform 1100ms var(--ease-out);
  transition-delay: calc(var(--l, 0) * 90ms + var(--d, 0ms));
}
.js [data-lines]:not(.is-in) .line > span { transform: translateY(108%); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--secondary { background: var(--btn-2); color: var(--btn-2-ink); }
.btn--light { background: #f5f5f7; color: #1d1d1f; }

.btn--link { padding: 0; background: none; color: var(--link); }
.chev { width: 0.62em; height: 0.62em; flex: none; margin-top: 0.08em; }
.btn--link .chev,
.more .chev { transition: transform 240ms var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--accent-hover); }
  .btn--secondary:hover { background: color-mix(in srgb, var(--btn-2) 100%, var(--ink) 5%); }
  .btn--light:hover { background: #ffffff; }
  .btn--link:hover { text-decoration: underline; }
  .btn--link:hover .chev,
  a:hover .more .chev { transform: translateX(3px); }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: 15px;
  letter-spacing: -0.01em;
}
.pill svg { width: 16px; height: 16px; flex: none; }

/* --------------------------------------------------------------------------
   Navigation — a translucent layer the page scrolls under
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease;
}
.nav.is-scrolled::before,
.nav[data-open]::before { border-bottom-color: var(--nav-line); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand__mark { width: 22px; height: 22px; flex: none; color: var(--ink); }
.brand__light { font-weight: 400; color: var(--ink-2); }

.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a {
  color: var(--ink);
  opacity: 0.78;
  font-size: 13px;
  letter-spacing: -0.01em;
  transition: opacity 200ms ease;
}
.nav__links a:hover { opacity: 1; text-decoration: none; }

.nav__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav__toggle span:not(.sr-only) {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out);
}
.nav__toggle span:nth-child(2) { top: 18px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav[data-open] .nav__toggle span:nth-child(2) { transform: translateY(3.5px) rotate(45deg); }
.nav[data-open] .nav__toggle span:nth-child(3) { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 6px var(--gutter) 26px;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
  transform-origin: top center;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    visibility 0s linear 200ms;
}
.nav[data-open] .menu {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}
.menu a {
  display: block;
  padding: 12px 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  border-bottom: 1px solid var(--hairline-soft);
}
.menu a:last-child { border-bottom: 0; }
.menu a:hover { text-decoration: none; }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}
@media (min-width: 721px) {
  .menu { display: none; }
}

/* --------------------------------------------------------------------------
   Reveal — marketing only, fires once, visible without JS
   -------------------------------------------------------------------------- */

[data-reveal] {
  transition:
    opacity 900ms var(--ease-out),
    transform 1100ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms + var(--d, 0ms));
}
.js [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(24px);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding-block: clamp(96px, 12vw, 152px); }
.section--alt { background: var(--bg-alt); }

.section__head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section__head--row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section__head--row > div { display: grid; gap: 14px; max-width: 640px; }

/* --------------------------------------------------------------------------
   Hero — the statement, then the four devices drawn in a single line
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(72px, 11vw, 136px);
  padding-bottom: clamp(72px, 9vw, 112px);
  text-align: center;
  overflow-x: clip;
  isolation: isolate;
}
.hero__copy { display: grid; justify-items: center; gap: 22px; }
.hero .lede { max-width: 640px; }
.hero .actions { justify-content: center; margin-top: 6px; }

.hero__glow {
  position: absolute;
  z-index: -1;
  inset: -10% -20% auto;
  height: 900px;
  background: radial-gradient(46% 40% at 50% 34%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 100%);
  pointer-events: none;
}

.lineup {
  display: grid;
  grid-template-columns: 0.62fr 0.9fr 1.55fr 1fr;
  align-items: end;
  gap: clamp(20px, 4vw, 56px);
  width: min(100%, 860px);
  margin: clamp(64px, 9vw, 104px) auto 0;
}
.device-art { display: grid; justify-items: center; gap: 18px; }
.device-art svg {
  width: 100%;
  height: auto;
  overflow: visible;
  color: var(--device-stroke);
}
.device-art .stroke {
  fill: none;
  stroke: currentColor;
  /* Set per device so every outline lands at the same weight on screen —
     each drawing is scaled by a different amount. */
  stroke-width: var(--sw, 1);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1700ms var(--ease-in-out);
  transition-delay: calc(var(--i, 0) * 140ms + 250ms);
}
.device-art .screen {
  fill: var(--device-screen);
  transition: opacity 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms + 1250ms);
}
.device-art .glint {
  fill: currentColor;
  transition: opacity 600ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms + 1500ms);
}
.js .lineup:not(.is-in) .stroke { stroke-dashoffset: 1; }
.js .lineup:not(.is-in) .screen,
.js .lineup:not(.is-in) .glint { opacity: 0; }

.device-art figcaption {
  display: grid;
  gap: 2px;
  text-align: center;
  transition: opacity 800ms var(--ease-out), transform 900ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 140ms + 1100ms);
}
.js .lineup:not(.is-in) figcaption { opacity: 0; transform: translateY(8px); }
.device-art strong { font-size: 15px; font-weight: 600; letter-spacing: -0.016em; }
.device-art span { font-size: 13px; color: var(--ink-3); letter-spacing: -0.005em; }

@media (max-width: 640px) {
  .lineup { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; width: min(100%, 360px); }
  .device-art svg { max-height: 150px; width: auto; max-width: 100%; }
}

/* --------------------------------------------------------------------------
   What we do — three columns under a hairline
   -------------------------------------------------------------------------- */

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}
@media (max-width: 820px) { .columns { grid-template-columns: 1fr; } }

.column {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.column__icon { width: 28px; height: 28px; margin-bottom: 10px; color: var(--accent); }
.column__icon svg { width: 100%; height: 100%; }
.column h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.024em;
}
.column p { color: var(--ink-2); line-height: 1.5; }
.column ul { display: grid; gap: 6px; margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.column li { display: flex; gap: 10px; }
.column li::before {
  content: "";
  width: 4px;
  height: 4px;
  margin-top: 0.62em;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}

/* --------------------------------------------------------------------------
   Apps — cards that lean towards the pointer with a soft light following
   it, the way visionOS answers where you look
   -------------------------------------------------------------------------- */

.apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 820px) { .apps { grid-template-columns: 1fr; } }

.tilt { perspective: 1400px; }

.app-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 12px;
  height: 100%;
  min-height: 540px;
  padding: clamp(28px, 3.4vw, 40px);
  border-radius: var(--r-xl);
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.app-card:hover { text-decoration: none; }

.app-card__sheen {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--sheen), transparent);
  opacity: 0;
  transition: opacity 400ms ease;
  pointer-events: none;
}
.app-card.is-hovered .app-card__sheen { opacity: 1; }

.app-card__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.app-card__icon {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 10px 24px -10px rgba(0, 0, 0, 0.35);
}
.app-card__tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--btn-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.app-card h3 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.032em;
}
.app-card p { color: var(--ink-2); line-height: 1.5; max-width: 420px; }
.app-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 15px;
  color: var(--ink-3);
}
.more { display: inline-flex; align-items: center; gap: 5px; color: var(--link); }

.app-card__shots {
  position: relative;
  align-self: end;
  height: 190px;
  margin: 8px calc(clamp(28px, 3.4vw, 40px) * -1) 0;
  overflow: hidden;
  pointer-events: none;
}
.app-card__shots img {
  position: absolute;
  top: 26px;
  width: 30%;
  max-width: 150px;
  border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 20px 40px -20px rgba(0, 0, 0, 0.5);
  transition: transform 900ms var(--ease-out);
}
.app-card__shots img:nth-child(1) { left: 12%; transform: rotate(-6deg) translateY(18px); }
.app-card__shots img:nth-child(2) { left: 50%; transform: translateX(-50%); z-index: 1; }
.app-card__shots img:nth-child(3) { right: 12%; transform: rotate(6deg) translateY(18px); }
@media (hover: hover) and (pointer: fine) {
  .app-card:hover .app-card__shots img:nth-child(1) { transform: rotate(-8deg) translate(-8px, 8px); }
  .app-card:hover .app-card__shots img:nth-child(2) { transform: translateX(-50%) translateY(-12px); }
  .app-card:hover .app-card__shots img:nth-child(3) { transform: rotate(8deg) translate(8px, 8px); }
}

.app-card--soon {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.app-card__icon--empty {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  border: 1.5px dashed var(--hairline);
  color: var(--ink-3);
}
.app-card__icon--empty svg { width: 30px; height: 30px; }
.bench {
  align-self: end;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.bench span {
  aspect-ratio: 1;
  border-radius: 22.5%;
  background: var(--btn-2);
}

/* --------------------------------------------------------------------------
   Principles
   -------------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principle { display: grid; align-content: start; gap: 10px; }
.principle__icon { width: 26px; height: 26px; margin-bottom: 8px; color: var(--ink); }
.principle__icon svg { width: 100%; height: 100%; }
.principle h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.principle p { color: var(--ink-2); font-size: 16px; line-height: 1.5; letter-spacing: -0.012em; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact { display: grid; justify-items: center; gap: 18px; text-align: center; }
.contact .actions { justify-content: center; margin-top: 10px; }
.contact__mail {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.contact__mail:hover { color: var(--link); text-decoration: none; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  padding-block: 44px calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-alt);
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hairline-soft);
}
@media (max-width: 720px) {
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
.footer__brand { display: grid; align-content: start; gap: 10px; }
.footer__brand .brand { font-size: 15px; }
.footer__brand p { max-width: 260px; }
.footer h2 { margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 600; }
.footer ul { display: grid; gap: 8px; }
.footer a { color: var(--ink-2); }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer__legal { display: grid; gap: 8px; padding-top: 20px; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   App page
   -------------------------------------------------------------------------- */

.app-hero {
  position: relative;
  padding-top: clamp(56px, 8vw, 104px);
  text-align: center;
  overflow-x: clip;
  isolation: isolate;
}
.app-hero__copy { display: grid; justify-items: center; gap: 18px; }
.app-hero .app-icon {
  width: 112px;
  height: 112px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -16px rgba(0, 0, 0, 0.8);
}
.app-hero .display { font-size: clamp(56px, 9vw, 104px); }
.app-hero .actions { justify-content: center; }
.tagline {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.026em;
  background: linear-gradient(95deg, #ffb340, #ff8a00 60%, #ff6a3d);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-wrap: balance;
}
.app-hero__meta { color: var(--ink-3); font-size: 14px; letter-spacing: -0.005em; }
.app-hero__glow {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 20%;
  width: min(90vw, 900px);
  aspect-ratio: 1.6;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 149, 0, 0.2), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.phones {
  position: relative;
  width: min(100%, 720px);
  height: clamp(420px, 76vw, 660px);
  margin: clamp(48px, 7vw, 80px) auto 0;
  perspective: 1800px;
  clip-path: inset(-160px -320px 2px -320px);
}
.phones::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: -320px;
  right: -320px;
  bottom: 0;
  height: 44%;
  background: linear-gradient(
    to bottom,
    transparent,
    color-mix(in srgb, var(--bg) 55%, transparent) 42%,
    color-mix(in srgb, var(--bg) 88%, transparent) 70%,
    var(--bg) 90%
  );
  pointer-events: none;
}
.stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.phone {
  position: absolute;
  top: 0;
  width: 38%;
  padding: 1.1%;
  border-radius: clamp(28px, 4.6vw, 46px);
  background: #0b0b0c;
  box-shadow:
    0 0 0 1px #2c2c2e,
    0 0 0 2.5px #121213,
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 50px 100px -30px rgba(0, 0, 0, 0.7);
}
.phone img { width: 100%; border-radius: clamp(24px, 4vw, 40px); user-select: none; -webkit-user-drag: none; }
.phone:nth-child(1) { left: 10%; }
.phone:nth-child(2) { right: 10%; top: 10%; transform: translateZ(60px); }

.gallery-nav { display: flex; gap: 12px; flex: none; }
.gallery-nav button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--btn-2);
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), opacity 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.gallery-nav button:active { transform: scale(0.94); }
.gallery-nav button:disabled { opacity: 0.35; cursor: default; }
.gallery-nav button:disabled:active { transform: none; }
.gallery-nav svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .gallery-nav { display: none; } }

.gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  padding: 8px max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 28px;
  scrollbar-width: none;
  cursor: grab;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery.is-dragging * { pointer-events: none; }
.gallery__item {
  flex: 0 0 auto;
  width: clamp(220px, 25vw, 290px);
  scroll-snap-align: start;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--hairline-soft), 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.gallery__item img { width: 100%; user-select: none; -webkit-user-drag: none; }

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 44px) clamp(24px, 3vw, 40px);
}
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature-item { display: grid; align-content: start; gap: 8px; padding-top: 22px; border-top: 1px solid var(--hairline); }
.feature-item__icon { width: 26px; height: 26px; margin-bottom: 8px; color: #ff9f0a; }
.feature-item__icon svg { width: 100%; height: 100%; }
.feature-item h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.feature-item p { color: var(--ink-2); font-size: 16px; line-height: 1.5; letter-spacing: -0.012em; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(32px, 4vw, 48px);
  border-radius: var(--r-xl);
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--card-edge);
}
.panel h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 38px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.panel p { color: var(--ink-2); }
.checks { display: grid; gap: 12px; margin-top: 4px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink); }
.checks svg { width: 22px; height: 22px; color: #30d158; margin-top: 1px; }

.help { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 760px) { .help { grid-template-columns: 1fr; } }
.help a {
  display: grid;
  gap: 6px;
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: var(--card-bg);
  box-shadow: inset 0 0 0 1px var(--card-edge);
  color: var(--ink);
  transition: transform 160ms var(--ease-out);
}
.help a:hover { text-decoration: none; }
.help a:active { transform: scale(0.98); }
.help strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.022em;
}
.help span { color: var(--ink-2); font-size: 15px; }
.help .chev { color: var(--ink-3); transition: transform 240ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .help a:hover .chev { transform: translateX(3px); }
}

/* --------------------------------------------------------------------------
   Documents
   -------------------------------------------------------------------------- */

.doc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 64px;
  align-items: start;
  padding-block: clamp(48px, 7vw, 88px) clamp(80px, 10vw, 120px);
}
.doc--single { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }

.doc__body { max-width: 700px; }
.doc__crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--ink-2); font-size: 15px; }
.doc__crumb img { width: 24px; height: 24px; border-radius: 6px; }
.doc__crumb a { color: var(--ink-2); }
.doc h1 {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.2vw, 54px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.034em;
  text-wrap: balance;
}
.doc .effective { margin: -6px 0 36px; color: var(--ink-3); font-size: 15px; }
.doc h2 {
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.024em;
  scroll-margin-top: calc(var(--nav-h) + 24px);
}
.doc h3 { margin: 28px 0 8px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.doc p, .doc li { color: var(--ink); font-size: 17px; line-height: 1.6; }
.doc p + p { margin-top: 14px; }
.doc ul { margin: 12px 0 14px; padding-left: 22px; display: grid; gap: 8px; }
.doc strong { font-weight: 600; }

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  display: grid;
  gap: 4px;
  padding-top: 120px;
  font-size: 13px;
}
.toc p { margin-bottom: 8px; color: var(--ink); font-weight: 600; font-size: 13px; }
.toc a {
  display: block;
  padding: 4px 0 4px 12px;
  border-left: 1px solid var(--hairline-soft);
  color: var(--ink-2);
  line-height: 1.35;
  transition: color 200ms ease, border-color 200ms ease;
}
.toc a:hover { color: var(--ink); text-decoration: none; }
.toc a.is-active { color: var(--ink); border-left-color: var(--ink); }

.lost {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding-block: clamp(96px, 16vw, 200px);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Reduced motion, transparency and contrast
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: opacity 300ms ease; transition-delay: 0ms; }
  .js [data-reveal]:not(.is-in) { transform: none; }
  .line > span { transition: none; }
  .js [data-lines]:not(.is-in) .line > span { transform: none; }
  .device-art .stroke { transition: none; }
  .js .lineup:not(.is-in) .stroke { stroke-dashoffset: 0; }
  .device-art .screen, .device-art .glint, .device-art figcaption { transition: opacity 300ms ease; transition-delay: 0ms; }
  .js .lineup:not(.is-in) figcaption { transform: none; }
  .app-card__shots img, .btn, .help a, .gallery-nav button { transition-duration: 0ms; }
}

@media (prefers-reduced-transparency: reduce) {
  .nav::before, .menu {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root { --hairline: rgba(127, 127, 127, 0.55); --hairline-soft: rgba(127, 127, 127, 0.4); }
  .app-card, .panel, .help a { box-shadow: inset 0 0 0 1px var(--hairline); }
}
