/* Max Display website.
   Colours come from the app icon: a warm screen (ember) behind a cool one (tide). */

:root {
  --paper: #f5f7fc;
  --paper-raised: #ffffff;
  --ink: #141b3d;
  --ink-soft: #4a5478;
  --line: #dce1ee;
  --ember-a: #ff8a34;
  --ember-b: #ff2d87;
  --tide-a: #27d9f2;
  --tide-b: #2f5bff;
  --link: #2448e0;
  --bezel: #1b2033;
  --focus: #2f5bff;
  --night: #0e1438;
  --night-raised: #18204d;
  --night-ink: #eef1fb;
  --night-soft: #aab3d6;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1160px;
  /* One rhythm for the whole page: the space around a section, and between the blocks inside one. */
  --section-space: clamp(4.5rem, 10vw, 8rem);
  --block-space: clamp(3rem, 6vw, 4.5rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1331;
    --paper-raised: #151c40;
    --ink: #edf0fa;
    --ink-soft: #a7afcc;
    --line: #283260;
    --link: #8fb0ff;
    --bezel: #05070f;
    --focus: #8fb0ff;
    --night: #070b22;
    --night-raised: #121a42;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1331;
  --paper-raised: #151c40;
  --ink: #edf0fa;
  --ink-soft: #a7afcc;
  --line: #283260;
  --link: #8fb0ff;
  --bezel: #05070f;
  --focus: #8fb0ff;
  --night: #070b22;
  --night-raised: #121a42;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 30;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px;
}
.skip:focus { top: 12px; }

/* Type */

h1, h2, h3 { margin: 0; font-weight: 750; color: inherit; text-wrap: balance; }
h1, h2 { font-stretch: 125%; letter-spacing: -0.02em; }
h3 { font-size: 1.3rem; line-height: 1.3; font-stretch: 110%; letter-spacing: -0.005em; }
p { margin: 0; }
p, li, figcaption, summary { text-wrap: pretty; }

.section-title {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.04;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  max-width: 20ch;
}
.section-lede { color: var(--ink-soft); max-width: 46rem; font-size: clamp(1.1rem, 1.5vw, 1.25rem); margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Buttons and chips */

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper);
  font: inherit; font-size: 1rem; font-weight: 650; font-stretch: 105%;
  text-decoration: none; white-space: nowrap;
  transition: transform 120ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-quiet { background: transparent; color: var(--ink); }
.button-small { min-height: 38px; padding: 0 14px; font-size: 0.95rem; border-radius: 10px; }
.button-disabled {
  background: transparent; color: var(--ink-soft); border-color: var(--line);
  cursor: default; white-space: normal; text-align: center; padding-block: 10px;
}
.button-disabled:hover { transform: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: 0.95rem; font-weight: 600; font-stretch: 105%;
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper-raised); color: var(--ink);
  cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.chip:hover { border-color: var(--ink-soft); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .chip { padding: 0 12px; font-size: 0.9rem; } }

.text-button {
  font: inherit; font-size: 0.95rem; color: var(--link);
  background: none; border: 0; padding: 8px 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.18em;
}

/* Under each demo: its buttons on the left, a text button on the right, then one line saying what's shown. */
.demo-controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
}
/* The one action inside a demo (move the window, pause the gestures): a blue pill with an icon,
   unlike the white choice chips. */
.demo-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--tide-b); color: #fff;
  font: inherit; font-size: 0.95rem; font-weight: 650; font-stretch: 105%; white-space: nowrap;
  box-shadow: 0 12px 26px -12px rgba(47, 91, 255, 0.8);
  cursor: pointer; transition: background-color 150ms ease, scale 120ms ease;
}
.demo-action:hover { background: #2448e0; }
.demo-action:active { scale: 0.96; }
.demo-action[hidden] { display: none; }
.demo-action svg { flex: none; width: 18px; height: 18px; }
.move-button svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.move-button { padding: 0 16px 0 20px; }
/* "Move it back" points back at the Mac: the arrow goes first and turns round. */
.move-button[data-dir="back"] { flex-direction: row-reverse; padding: 0 20px 0 16px; }
.move-button[data-dir="back"] svg { transform: scaleX(-1); }
.pause-button { padding: 0 20px 0 16px; }
.pause-button svg { fill: currentColor; }
.pause-button[data-state="playing"] .icon-play, .pause-button[data-state="paused"] .icon-pause { display: none; }

figcaption, .demo-caption { margin-top: 1rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; max-width: 62ch; }

/* Header: stays at the top; the link for the section in view is marked. */

.site-header {
  position: sticky; top: 0; z-index: 20;
  padding-block: 12px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 750; font-stretch: 115%; font-size: 1.1rem;
}
.brand img { width: 36px; height: 36px; border-radius: 22.5%; }
.nav { display: flex; align-items: center; gap: clamp(10px, 1.8vw, 24px); }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 0.98rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--tide-b); }
@media (max-width: 900px) {
  .nav { display: none; }
}

/* Hero */

.hero { padding-top: clamp(2rem, 6vw, 5rem); }
.hero-title {
  font-size: clamp(2.6rem, 8.4vw, 7rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 11.5em;
}
.hero-lede { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 36rem; margin-left: auto; }
.hero-lede p { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.75rem; }
@media (max-width: 860px) { .hero-lede { margin-left: 0; } }

/* The desk. Everything sits on one grid measured in cqw (hundredths of the stage's width).
   --dl --dt --dw --dh --dr place the extra screen; --gx --gy place the window on the whole desk.
   Each screen holds its own copy of the window and clips it, so the window looks cut where it crosses. */

@property --dl { syntax: "<number>"; inherits: true; initial-value: 64.5; }
@property --dt { syntax: "<number>"; inherits: true; initial-value: 6; }
@property --dw { syntax: "<number>"; inherits: true; initial-value: 34; }
@property --dh { syntax: "<number>"; inherits: true; initial-value: 25.5; }
@property --dr { syntax: "<number>"; inherits: true; initial-value: 1.6; }

.stage-frame { position: relative; container-type: inline-size; margin: var(--block-space) 0 0; }
/* With room on the desk, the move button sits under the extra screen it moves the window to and from. */
@container (min-width: 620px) {
  .move-button { position: absolute; z-index: 2; left: 81cqw; top: 35.5cqw; translate: -50% 0; }
}
.stage {
  --gx: 12; --gy: 8;
  position: relative; width: 100%; height: 40cqw;
  /* The hidden Duo keyboard, tilted towards you, is wider than its box; keep it from widening the page. */
  overflow-x: clip;
  touch-action: pan-y;
  transition: --dl 550ms cubic-bezier(0.4, 0, 0.2, 1), --dt 550ms cubic-bezier(0.4, 0, 0.2, 1),
              --dw 550ms cubic-bezier(0.4, 0, 0.2, 1), --dh 550ms cubic-bezier(0.4, 0, 0.2, 1),
              --dr 550ms cubic-bezier(0.4, 0, 0.2, 1);
}
.stage[data-device="ipad"]    { --dl: 64.5; --dt: 6;   --dw: 34;   --dh: 25.5;  --dr: 1.6;  }
.stage[data-device="iphone"]  { --dl: 63.5; --dt: 11;  --dw: 35;   --dh: 16.2;  --dr: 3;    }
.stage[data-device="duo"]     { --dl: 68.5; --dt: 5.5; --dw: 25;   --dh: 17;    --dr: 1.1;  }
.stage[data-device="mac"]     { --dl: 65;   --dt: 7.5; --dw: 33;   --dh: 20.6;  --dr: 0.6;  }
.stage[data-device="browser"] { --dl: 64;   --dt: 6.5; --dw: 34.5; --dh: 24;    --dr: 0.9;  }
.stage[data-device="tv"]      { --dl: 62.5; --dt: 6;   --dw: 36;   --dh: 20.25; --dr: 0.45; }
.stage[data-device="android"] { --dl: 64.5; --dt: 8;   --dw: 34;   --dh: 21.8;  --dr: 1.6;  }

.screen {
  position: absolute; overflow: hidden;
  box-shadow: 0 0 0 1.1cqw var(--bezel), 0 2.4cqw 5cqw -1.6cqw rgba(20, 27, 61, 0.45);
}
.mac-screen { left: 2.5cqw; top: 1.5cqw; width: 54cqw; height: 33.75cqw; border-radius: 0.6cqw; }
.mac-base {
  position: absolute; left: 0; top: 36.1cqw; width: 59cqw; height: 1.6cqw;
  border-radius: 0.3cqw 0.3cqw 1.4cqw 1.4cqw; background: linear-gradient(#c9cede, #9aa1b7);
}
.mac-base::before {
  content: ""; position: absolute; left: 50%; top: 0; width: 9.5cqw; height: 0.55cqw;
  transform: translateX(-50%); border-radius: 0 0 0.6cqw 0.6cqw; background: #848ba2;
}
.dev-screen {
  left: calc(var(--dl) * 1cqw); top: calc(var(--dt) * 1cqw);
  width: calc(var(--dw) * 1cqw); height: calc(var(--dh) * 1cqw);
  border-radius: calc(var(--dr) * 1cqw);
}
.stage[data-device="iphone"] .dev-screen { box-shadow: 0 0 0 0.9cqw var(--bezel), 0 2.4cqw 5cqw -1.6cqw rgba(20, 27, 61, 0.45); }
.stage[data-device="browser"] .dev-screen { box-shadow: 0 0 0 0.25cqw #c9cede, 0 2.4cqw 5cqw -1.6cqw rgba(20, 27, 61, 0.35); }

.screen-warm {
  background:
    radial-gradient(90% 80% at 12% 10%, rgba(255, 209, 150, 0.85), transparent 60%),
    linear-gradient(135deg, var(--ember-a), var(--ember-b));
}
.screen-cool {
  background:
    radial-gradient(90% 80% at 15% 12%, rgba(190, 250, 255, 0.8), transparent 60%),
    linear-gradient(135deg, var(--tide-a), var(--tide-b));
}
.menubar { position: absolute; left: 0; right: 0; top: 0; height: 1.5cqw; background: rgba(255, 255, 255, 0.35); }
.dock {
  position: absolute; left: 50%; bottom: 0.9cqw; transform: translateX(-50%);
  display: flex; gap: 0.6cqw; padding: 0.55cqw 0.7cqw;
  border-radius: 1.1cqw; background: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 0 0 0.08cqw rgba(255, 255, 255, 0.5);
}
.dock i { width: 2.4cqw; height: 2.4cqw; border-radius: 0.6cqw; background: #fff; }
.dock i:nth-child(2) { background: linear-gradient(135deg, var(--tide-a), var(--tide-b)); }
.dock i:nth-child(3) { background: #ffd23f; }
.dock i:nth-child(4) { background: linear-gradient(135deg, #7c5cff, #c05cff); }
.dock i:nth-child(5) { background: #2fc56b; }
.dock i:nth-child(6) { background: #1b2033; }

/* Second Mac: a laptop base. iPhone Duo: the keyboard half, laid back. Browser: a toolbar. */
.dev-base, .duo-deck { position: absolute; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.dev-base {
  left: calc((var(--dl) - 2) * 1cqw); top: calc((var(--dt) + var(--dh) + 1.2) * 1cqw);
  width: calc((var(--dw) + 4) * 1cqw); height: 1.2cqw;
  border-radius: 0.2cqw 0.2cqw 1cqw 1cqw; background: linear-gradient(#c9cede, #9aa1b7);
}
.stage[data-device="mac"] .dev-base { opacity: 1; }
.stage[data-device="tv"] .dev-screen { box-shadow: 0 0 0 0.6cqw var(--bezel), 0 2.4cqw 5cqw -1.6cqw rgba(20, 27, 61, 0.45); }
.tv-foot {
  position: absolute; opacity: 0; pointer-events: none; transition: opacity 300ms ease;
  left: calc((var(--dl) + var(--dw) / 2 - 5) * 1cqw); top: calc((var(--dt) + var(--dh) + 0.6) * 1cqw);
  width: 10cqw; height: 3.4cqw; background: linear-gradient(#3a405a, #1b2033);
  clip-path: polygon(42% 0, 58% 0, 58% 62%, 100% 78%, 100% 100%, 0 100%, 0 78%, 42% 62%);
}
.stage[data-device="tv"] .tv-foot { opacity: 1; }
/* Android tablet: slim bezel with a front camera above the screen, showing the page in its browser. */
.stage[data-device="android"] .dev-screen { box-shadow: 0 0 0 0.85cqw var(--bezel), 0 2.4cqw 5cqw -1.6cqw rgba(20, 27, 61, 0.45); }
.cam-dot {
  position: absolute; opacity: 0; pointer-events: none; transition: opacity 300ms ease;
  left: calc((var(--dl) + var(--dw) / 2) * 1cqw - 0.25cqw); top: calc(var(--dt) * 1cqw - 0.68cqw);
  width: 0.5cqw; height: 0.5cqw; border-radius: 50%; background: #3a4060;
}
.stage[data-device="android"] .cam-dot { opacity: 1; }

/* Hardware buttons for iPhone, iPad and Android, just outside the bezel (--bz thick). Each set fades in
   with its device and follows the screen as it changes shape. --at and --len are fractions of the edge. */
.hw { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; }
.hw i { position: absolute; background: #3d4462; }
.hw .top, .hw .bottom { left: calc((var(--dl) + var(--dw) * var(--at)) * 1cqw); width: calc(var(--dw) * var(--len) * 1cqw); height: 0.45cqw; }
.hw .top { top: calc((var(--dt) - var(--bz) - 0.45) * 1cqw); border-radius: 0.25cqw 0.25cqw 0 0; }
.hw .bottom { top: calc((var(--dt) + var(--dh) + var(--bz)) * 1cqw); border-radius: 0 0 0.25cqw 0.25cqw; }
.hw .left { top: calc((var(--dt) + var(--dh) * var(--at)) * 1cqw); height: calc(var(--dh) * var(--len) * 1cqw); left: calc((var(--dl) - var(--bz) - 0.45) * 1cqw); width: 0.45cqw; border-radius: 0.25cqw 0 0 0.25cqw; }
.stage[data-device="iphone"] .hw-iphone,
.stage[data-device="ipad"] .hw-ipad,
.stage[data-device="android"] .hw-android { opacity: 1; }
/* iPhone on its side, top to the left: the side button on the top edge; Action and volume buttons below. */
.hw-iphone { --bz: 0.9; }
.hw-iphone i:nth-child(1) { --at: 0.25; --len: 0.13; }
.hw-iphone i:nth-child(2) { --at: 0.15; --len: 0.045; }
.hw-iphone i:nth-child(3) { --at: 0.225; --len: 0.085; }
.hw-iphone i:nth-child(4) { --at: 0.335; --len: 0.085; }
/* iPad on its side: the top button high on the left edge, the volume buttons on the top edge. */
.hw-ipad { --bz: 1.1; }
.hw-ipad i:nth-child(1) { --at: 0.08; --len: 0.13; }
.hw-ipad i:nth-child(2) { --at: 0.08; --len: 0.07; }
.hw-ipad i:nth-child(3) { --at: 0.17; --len: 0.07; }
/* Android tablet: power and volume together towards the right of the top edge. */
.hw-android { --bz: 0.85; }
.hw-android i:nth-child(1) { --at: 0.68; --len: 0.06; }
.hw-android i:nth-child(2) { --at: 0.77; --len: 0.12; }
.stage[data-device="android"] .browser-bar { opacity: 1; }
/* The keyboard half lies back towards you. Its shadows are drawn in its own tilted plane, so they read
   as its frame, a lit rim, the thickness of its front edge and its shadow on the desk. */
.duo-deck {
  left: calc(var(--dl) * 1cqw); top: calc((var(--dt) + var(--dh) + 1.3) * 1cqw);
  width: calc(var(--dw) * 1cqw); height: calc(var(--dw) * 0.55cqw);
  border-radius: 0 0 1.4cqw 1.4cqw;
  background: linear-gradient(#151a28, #07090f);
  box-shadow:
    0 0 0 1.1cqw var(--bezel),
    0 0 0 1.25cqw #353c5a,
    0 1.2cqw 0 1.25cqw #262c45,
    0 2cqw 3cqw 0.5cqw rgba(20, 27, 61, 0.38);
  transform: perspective(90cqw) rotateX(62deg); transform-origin: top center;
  padding: 1.4cqw 1.2cqw; display: grid; grid-template-rows: 1fr 0.62fr; gap: 1.1cqw;
}
/* Four rows of twelve keys, each with a lit top, and a space bar across the middle of the last row. */
.deck-keys {
  background:
    linear-gradient(#323647 0 29%, #2a2e3d 29%) 50% 97.6% / 49.2% 21.25% no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' preserveAspectRatio='none'%3E%3Crect x='1' y='1.5' width='18' height='17' rx='2.4' fill='%232a2e3d'/%3E%3Crect x='1' y='1.5' width='18' height='5' rx='2.4' fill='%23ffffff' fill-opacity='0.07'/%3E%3C/svg%3E") 0 0 / calc(100% / 12) 25%;
}
/* The trackpad, with Copy and Paste on its left and two more buttons on its right. */
.deck-pad {
  position: relative; width: 50%; margin-inline: auto; border-radius: 0.5cqw;
  background: linear-gradient(#272c3c, #1a1e2a); box-shadow: inset 0 0 0 0.12cqw rgba(255, 255, 255, 0.07);
}
.deck-pad::before, .deck-pad::after {
  content: ""; position: absolute; top: 6%; bottom: 6%; width: 12%;
  background: linear-gradient(#2a2e3d 0 44%, transparent 44% 56%, #2a2e3d 56%);
}
.deck-pad::before { left: -24%; }
.deck-pad::after { right: -24%; }
/* The fold: the inner screen bends from the upright half into the half lying back, so the glass runs on
   through it with a soft crease, and the frame has a small notch on each side, as on the real Duo. */
.duo-fold {
  position: absolute; opacity: 0; pointer-events: none; transition: opacity 300ms ease;
  left: calc(var(--dl) * 1cqw); width: calc(var(--dw) * 1cqw);
  top: calc((var(--dt) + var(--dh) - 0.05) * 1cqw); height: 1.6cqw;
  background: linear-gradient(#0e111b, #2c3149 46%, #0b0d16 64%, #0e111a);
}
.duo-fold::before, .duo-fold::after {
  content: ""; position: absolute; top: 50%; width: 0.45cqw; height: 0.9cqw; margin-top: -0.45cqw; background: var(--paper);
}
.duo-fold::before { left: -1.25cqw; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.duo-fold::after { right: -1.25cqw; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.stage[data-device="duo"] .duo-fold { opacity: 1; }
/* The upright half: square at the fold, with the same lit rim as the keyboard half. */
.stage[data-device="duo"] .dev-screen {
  border-radius: calc(var(--dr) * 1cqw) calc(var(--dr) * 1cqw) 0 0;
  box-shadow: 0 0 0 1.1cqw var(--bezel), 0 0 0 1.25cqw #353c5a, 0 2.4cqw 5cqw -1.6cqw rgba(20, 27, 61, 0.45);
}
.stage[data-device="duo"] .duo-deck { opacity: 1; }
/* The Duo's own buttons, after Device Hub's picture of it half open: two on the right edge of the
   lower half and one on its bottom edge, just outside the bezel. */
.deck-btn { position: absolute; background: #3d4462; }
.deck-btn:nth-of-type(1), .deck-btn:nth-of-type(2) { right: -1.65cqw; width: 0.4cqw; height: 22%; border-radius: 0 0.25cqw 0.25cqw 0; }
.deck-btn:nth-of-type(1) { top: 26%; }
.deck-btn:nth-of-type(2) { top: 56%; }
.deck-btn:nth-of-type(3) { bottom: -3.25cqw; left: 56%; height: 0.8cqw; width: 15%; border-radius: 0 0 0.3cqw 0.3cqw; }
.browser-bar {
  position: absolute; left: 0; right: 0; top: 0; height: 2.2cqw; z-index: 3;
  display: flex; align-items: center; gap: 0.45cqw; padding-left: 0.9cqw;
  background: #eef0f6; opacity: 0; transition: opacity 300ms ease;
}
.browser-bar i { width: 0.7cqw; height: 0.7cqw; border-radius: 50%; background: #c9cede; }
.browser-bar span {
  margin-left: 1cqw; padding: 0.2cqw 1.2cqw; border-radius: 0.5cqw; background: #fff;
  font-size: 0.95cqw; color: #4a5478; white-space: nowrap;
}
.stage[data-device="browser"] .browser-bar { opacity: 1; }

/* The window: 21 x 13.5 cqw. */
.window {
  position: absolute; width: 21cqw; height: 13.5cqw;
  border-radius: 0.9cqw; background: #fff; overflow: hidden;
  box-shadow: 0 1.2cqw 2.6cqw -0.6cqw rgba(20, 27, 61, 0.45), 0 0 0 0.08cqw rgba(20, 27, 61, 0.12);
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
}
.stage.dragging .window { cursor: grabbing; box-shadow: 0 2cqw 4cqw -0.8cqw rgba(20, 27, 61, 0.55), 0 0 0 0.08cqw rgba(20, 27, 61, 0.12); }
.win-a { left: calc((var(--gx) - 2.5) * 1cqw); top: calc((var(--gy) - 1.5) * 1cqw); }
.win-b { left: calc((var(--gx) - var(--dl)) * 1cqw); top: calc((var(--gy) - var(--dt)) * 1cqw); }
.win-bar { height: 2cqw; display: flex; align-items: center; gap: 0.5cqw; padding-left: 0.9cqw; background: #f1f2f6; }
.win-bar i { width: 0.75cqw; height: 0.75cqw; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; }
.win-bar i:nth-child(3) { background: #28c840; }
.win-body { display: grid; grid-template-columns: 1.35fr 1fr; gap: 1cqw; padding: 1cqw; height: calc(100% - 2cqw); }
.win-art {
  border-radius: 0.5cqw;
  background:
    radial-gradient(60% 70% at 30% 75%, var(--ember-b), transparent 70%),
    radial-gradient(70% 70% at 80% 20%, var(--tide-a), transparent 70%),
    linear-gradient(160deg, var(--tide-b), var(--ember-a));
}
.win-lines { display: flex; flex-direction: column; gap: 0.8cqw; padding-top: 0.4cqw; }
.win-lines b { display: block; height: 0.9cqw; border-radius: 0.45cqw; background: #e3e6ef; }
.win-lines b:nth-child(1) { width: 90%; background: #c9cfe0; }
.win-lines b:nth-child(2) { width: 70%; }
.win-lines b:nth-child(3) { width: 82%; }

.pointer { position: absolute; width: 2.1cqw; height: 2.1cqw; overflow: visible; pointer-events: none; transition: opacity 300ms ease; }
.pointer path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }
.ptr-a { left: calc((var(--gx) + 9) * 1cqw - 2.5cqw); top: calc((var(--gy) + 0.6) * 1cqw - 1.5cqw); }
.ptr-b { left: calc((var(--gx) + 9 - var(--dl)) * 1cqw); top: calc((var(--gy) + 0.6 - var(--dt)) * 1cqw); }
.stage:not(.autoplay) .pointer { opacity: 0; }

.stage-frame .demo-controls { margin-top: clamp(1.5rem, 3.5cqw, 2.5rem); }

/* Sections */

.how, .arrange, .duo, .control, .speed, .tv, .details, .questions, .get { padding-block: var(--section-space); }
.how { border-bottom: 1px solid var(--line); }

.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3.5rem);
}
.steps li { display: grid; gap: 0.6rem; align-content: start; }
.step-num {
  font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; font-weight: 800; font-stretch: 125%;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); margin-bottom: 0.6rem;
}
.steps p { color: var(--ink-soft); max-width: 30ch; }
.code { display: flex; gap: 6px; margin-top: 0.6rem; }
.code i {
  width: 34px; height: 44px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--paper-raised);
  display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 1.2rem; font-stretch: 110%;
}
.code i:nth-child(3) { margin-right: 8px; }
.code i.on { border-color: var(--tide-b); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Arrangement map */

.arrange-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.arrange-text p { color: var(--ink-soft); font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 38ch; margin-bottom: 1rem; }
.arrange-text .chips { margin-top: 1.5rem; }
.map-figure { margin: 0; }
.map {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 14%, transparent) 1px, transparent 1.4px) 0 0 / 22px 22px,
    var(--paper-raised);
  border: 1px solid var(--line); overflow: hidden; touch-action: none;
}
.map-rect {
  position: absolute; display: grid; place-content: center; text-align: center; gap: 2px;
  border-radius: 8px; font-size: 0.82rem; line-height: 1.25; user-select: none; -webkit-user-select: none;
}
.map-rect b { font-weight: 650; font-stretch: 105%; }
.map-rect span { opacity: 0.75; }
.map-mac { background: #e6e9f2; color: #1b2033; box-shadow: inset 0 0 0 1.5px #c3c9da; }
.map-mac::before { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 3px; border-radius: 2px; background: #b9bfd0; }
.map-virtual {
  background: linear-gradient(135deg, var(--tide-b), var(--tide-a)); color: #fff;
  cursor: grab; box-shadow: 0 10px 24px -12px rgba(47, 91, 255, 0.8);
  transition: left 260ms cubic-bezier(0.3, 0.7, 0.3, 1), top 260ms cubic-bezier(0.3, 0.7, 0.3, 1), width 260ms ease, height 260ms ease;
}
.map-virtual.tiny { font-size: 0.7rem; }
.map-virtual.tiny span { display: none; }
.map.dragging .map-virtual { transition: width 260ms ease, height 260ms ease; cursor: grabbing; }
.map-ghost { position: absolute; border: 2px dashed var(--tide-b); border-radius: 8px; pointer-events: none; }
/* Two classes, so the general `.shot { margin: 0 }` further down can't take this gap away. */
.shot.arrange-shot { margin: var(--block-space) auto 0; max-width: 860px; }
.arrange-shot figcaption { text-align: center; margin-inline: auto; }
@media (max-width: 900px) { .arrange-grid { grid-template-columns: 1fr; } }

/* iPhone Duo: the dark section */

.duo { background: var(--night); color: var(--night-ink); overflow: hidden; }
.duo .section-title { max-width: 18ch; }
.duo .section-lede { color: var(--night-soft); }
.duo-stage { position: relative; margin-top: clamp(2rem, 4vw, 3rem); min-height: clamp(320px, 44vw, 540px); display: grid; place-items: center; }
.pose { margin: 0; grid-area: 1 / 1; opacity: 0; transform: scale(0.97); transition: opacity 420ms ease, transform 420ms ease; pointer-events: none; }
.duo-stage[data-pose="half"] .pose-half,
.duo-stage[data-pose="open"] .pose-open,
.duo-stage[data-pose="closed"] .pose-closed { opacity: 1; transform: none; pointer-events: auto; }
/* The Duo's body, drawn after Device Hub's own picture of it: a grey rim, black glass, side buttons.
   Percent radii are of the frame's width / height, so the shape holds at any size. */
.duo-device { position: relative; background: #000; border: 3px solid #47474b; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85); }
.duo-device img { display: block; width: 100%; }
.duo-btn { position: absolute; background: #4c4c50; }

/* Open, held sideways: rounded all round, the hinge marked at the top and bottom centre,
   two buttons on the bottom edge and one on the left. */
.duo-open-frame { width: min(760px, 88vw); border-radius: 6.6% / 9.3%; padding: 1.9%; }
.duo-open-frame img { border-radius: 4.8% / 6.8%; }
.duo-open-frame::before, .duo-open-frame::after {
  content: ""; position: absolute; left: 50%; width: 12px; height: 6px; margin-left: -6px; background: var(--night);
}
.duo-open-frame::before { top: -3px; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.duo-open-frame::after { bottom: -3px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.duo-open-frame .duo-btn:nth-of-type(1),
.duo-open-frame .duo-btn:nth-of-type(2) { bottom: -7px; width: 6.8%; height: 4px; border-radius: 0 0 2px 2px; }
.duo-open-frame .duo-btn:nth-of-type(1) { left: 12.5%; }
.duo-open-frame .duo-btn:nth-of-type(2) { left: 20.7%; }
.duo-open-frame .duo-btn:nth-of-type(3) { left: -7px; top: 56%; width: 4px; height: 15.5%; border-radius: 2px 0 0 2px; }

/* Closed, held upright: the hinge runs down the straight left edge; only the right corners are round.
   Two buttons on the top edge, one on the right. */
.duo-closed-frame {
  width: min(330px, 62vw); margin-left: 14px;
  border-radius: 1.6% 16% 14.6% 1.6% / 1.1% 11.3% 10.3% 1.1%;
  padding: 2.4% 2.2% 2% 2.6%;
}
.duo-closed-frame img { border-radius: 1% 14% 12.6% 1% / 0.7% 9.8% 8.8% 0.7%; }
.duo-closed-frame::before {
  content: ""; position: absolute; left: -16px; top: 1%; bottom: 1%; width: 13px;
  border-radius: 5px 0 0 5px; background: linear-gradient(90deg, #36363a, #4c4c50);
}
.duo-closed-frame .duo-btn:nth-of-type(1),
.duo-closed-frame .duo-btn:nth-of-type(2) { top: -7px; width: 13%; height: 4px; border-radius: 2px 2px 0 0; }
.duo-closed-frame .duo-btn:nth-of-type(1) { left: 45%; }
.duo-closed-frame .duo-btn:nth-of-type(2) { left: 61%; }
.duo-closed-frame .duo-btn:nth-of-type(3) { right: -7px; top: 28.7%; width: 4px; height: 16%; border-radius: 0 2px 2px 0; }

/* Half open, in 3D, seen from a little above: the base lies flat towards you and the upper half
   swings up from it like a laptop lid. .folded (added when it comes into view) is the half-open pose. */
/* The model only shows; its box reaches under the buttons (negative margin, 3D layers), so it takes no clicks. */
.duo3d { --w: min(420px, 74vw); perspective: 1500px; width: var(--w); margin-bottom: calc(var(--w) * -0.36); pointer-events: none; }
.duo-body { transform-style: preserve-3d; transform: rotateX(-26deg); }
.duo-lid, .duo-base { position: relative; transform-style: preserve-3d; }
.duo-lid { transform-origin: bottom center; transform: rotateX(-84deg); transition: transform 1700ms cubic-bezier(0.3, 0.75, 0.25, 1); }
.duo-base { transform-origin: top center; transform: rotateX(86deg); }
.duo-lid img, .duo-base img { width: 100%; border: 9px solid #000; background: #000; box-shadow: 0 0 0 3px #47474b; backface-visibility: hidden; }
.duo-lid img { border-bottom-width: 3px; border-radius: 30px 30px 6px 6px; }
.duo-lid::before {
  content: ""; position: absolute; inset: 0; border-radius: 30px 30px 6px 6px;
  background: linear-gradient(#3e3e43, #26262a); box-shadow: 0 0 0 3px #47474b; transform: rotateY(180deg); backface-visibility: hidden;
}
.duo-base img { border-top-width: 3px; border-radius: 6px 6px 30px 30px; box-shadow: 0 0 0 3px #47474b, 0 30px 60px -20px rgba(0, 0, 0, 0.8); }
.duo3d.folded .duo-lid { transform: rotateX(8deg); }

.duo-controls { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: clamp(1.5rem, 4vw, 2.5rem); text-align: center; }
.chips-dark .chip { background: var(--night-raised); color: var(--night-ink); border-color: #2b3566; }
.chips-dark .chip:hover { border-color: var(--night-soft); }
.chips-dark .chip[aria-pressed="true"] { background: var(--night-ink); color: var(--night); border-color: var(--night-ink); }
.duo-caption { color: var(--night-soft); font-size: 1rem; line-height: 1.55; max-width: 52ch; min-height: 3.1em; }
.duo .points li { border-top-color: var(--night-ink); }
.duo .points p { color: var(--night-soft); }

/* Gestures: a small Mac screen beside a trackpad, showing what each gesture does. */

.gx-stage {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.gx-mac {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden;
  background:
    radial-gradient(90% 80% at 15% 12%, rgba(190, 250, 255, 0.8), transparent 60%),
    linear-gradient(135deg, var(--tide-a), var(--tide-b));
  box-shadow: 0 0 0 10px var(--bezel), 0 30px 60px -30px rgba(20, 27, 61, 0.6);
  margin: 10px;
}
.gx-menubar { position: absolute; inset: 0 0 auto; height: 4.5%; background: rgba(255, 255, 255, 0.35); }
.gx-window {
  position: absolute; left: 12%; top: 14%; width: 60%; height: 70%;
  border-radius: 10px; background: #fff; overflow: hidden;
  box-shadow: 0 18px 36px -14px rgba(20, 27, 61, 0.5);
}
.gx-window .win-bar { height: 9%; gap: 6px; padding-left: 12px; }
.gx-window .win-bar i { width: 10px; height: 10px; }
.gx-content { display: grid; grid-template-columns: 1fr 1.1fr; gap: 6%; padding: 5%; height: 91%; }
.gx-list { display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.gx-list b { flex: none; height: 12px; border-radius: 6px; background: #e3e6ef; }
.gx-list b:nth-child(3n + 1) { width: 92%; background: #c9cfe0; }
.gx-list b:nth-child(3n + 2) { width: 70%; }
/* The photo: sky, a round sun (its own square box, so it never stretches) and two rows of hills. */
.gx-photo { border-radius: 8px; overflow: hidden; }
.gx-photo span {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(#ffb36b, #ff8a7a 40%, #ff6f8f 58%, #8a5cff 80%);
}
.gx-photo span::before {
  content: ""; position: absolute; left: 50%; top: 30%; width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, #fff6d8, #ffd27a 62%, rgba(255, 210, 122, 0) 72%);
}
.gx-photo span::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: 0; height: 46%;
  background:
    linear-gradient(#4a3399, #2a1f63) bottom / 100% 60% no-repeat,
    linear-gradient(#6a4bc7, #4a3399);
  clip-path: polygon(0 34%, 18% 14%, 34% 30%, 52% 6%, 70% 26%, 86% 12%, 100% 24%, 100% 100%, 0 100%);
}
/* "Done" is sized in % so its centre is known: 63% across and 75.6% down the small Mac screen. */
.gx-button {
  position: absolute; right: 6%; bottom: 7%; width: 18%; height: 10%;
  display: grid; place-items: center; border-radius: 7px;
  background: var(--tide-b); color: #fff; font-size: clamp(0.62rem, 1.1vw, 0.82rem); font-weight: 600;
}
.gx-ripple {
  position: absolute; left: 63%; top: 75.6%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; border: 2.5px solid #fff; opacity: 0; pointer-events: none;
}
.gx-menu {
  position: absolute; left: 47%; top: 45%; display: grid; min-width: 22%; padding: 6px;
  border-radius: 9px; background: rgba(250, 250, 253, 0.96); box-shadow: 0 12px 30px -8px rgba(20, 27, 61, 0.45);
  font-size: 0.8rem; color: #1b2033; opacity: 0; transform: scale(0.96); transform-origin: top left;
}
.gx-menu span { padding: 3px 10px; border-radius: 5px; }
.gx-menu span:first-child { background: var(--tide-b); color: #fff; }
.gx-pointer { position: absolute; left: 45%; top: 42%; width: 22px; height: 22px; overflow: visible; }
.gx-pointer path { fill: #111; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; }

.gx-pad {
  position: relative; width: 100%; max-width: 340px; aspect-ratio: 16 / 10; justify-self: center;
  border-radius: 16px; background: #1d2130; box-shadow: inset 0 0 0 1px #343a52, 0 20px 40px -24px rgba(20, 27, 61, 0.6);
}
.gx-pad i {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18);
  opacity: 0;
}
.gx-side { display: grid; justify-items: center; gap: 22px; }
.gestures .demo-controls { margin-top: clamp(1.75rem, 3.5vw, 2.5rem); }
.gx-desc { min-height: 3.1em; }

/* Each gesture: what the fingers do on the pad, and what the Mac does. It repeats while chosen
   (.run, restarted from JS); .paused freezes it. */
.gx-pointer { transition: left 400ms ease, top 400ms ease; }
.gestures.run .gx-pad i,
.gestures.run .gx-window, .gestures.run .gx-list, .gestures.run .gx-photo span, .gestures.run .gx-menu,
.gestures.run .gx-button, .gestures.run .gx-pointer, .gestures.run .gx-ripple {
  animation-duration: 3s; animation-fill-mode: both; animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.gestures.paused * { animation-play-state: paused !important; }

/* Click: the pointer goes to Done, a tap on the pad clicks it, and the button answers. */
.gestures.run[data-gesture="click"] .f1 { animation-name: tap; }
.gestures.run[data-gesture="click"] .gx-pointer { animation-name: click-pointer; }
.gestures.run[data-gesture="click"] .gx-button { animation-name: press; }
.gestures.run[data-gesture="click"] .gx-ripple { animation-name: ripple; }
.gestures[data-gesture="click"] .gx-pointer { left: calc(63% - 4px); top: calc(75.6% - 2px); }

.gestures.run[data-gesture="right"] .f1 { animation-name: tap-left; }
.gestures.run[data-gesture="right"] .f2 { animation-name: tap-right; }
.gestures.run[data-gesture="right"] .gx-menu { animation-name: menu; }

.gestures.run[data-gesture="scroll"] .f1 { animation-name: swipe-left; }
.gestures.run[data-gesture="scroll"] .f2 { animation-name: swipe-right; }
.gestures.run[data-gesture="scroll"] .gx-list { animation-name: scroll-list; }
.gestures[data-gesture="scroll"] .gx-pointer { left: 24%; top: 50%; }

.gestures.run[data-gesture="zoom"] .f1 { animation-name: pinch-left; }
.gestures.run[data-gesture="zoom"] .f2 { animation-name: pinch-right; }
.gestures.run[data-gesture="zoom"] .gx-photo span { animation-name: zoom-photo; }
.gestures[data-gesture="zoom"] .gx-pointer { left: 60%; top: 45%; }

.gestures.run[data-gesture="drag"] .f1 { animation-name: hold-move; }
.gestures.run[data-gesture="drag"] .gx-window { animation-name: move-window; }
.gestures.run[data-gesture="drag"] .gx-pointer { animation-name: move-pointer; }
.gestures[data-gesture="drag"] .gx-pointer { left: 30%; top: 16%; }

@keyframes tap { 0%, 30% { opacity: 0; transform: scale(1.5); } 36% { opacity: 1; transform: scale(1); } 46%, 100% { opacity: 0; transform: scale(1); } }
@keyframes click-pointer { 0%, 6% { left: 42%; top: 46%; } 30%, 100% { left: calc(63% - 4px); top: calc(75.6% - 2px); } }
@keyframes press {
  0%, 34% { transform: none; filter: none; background: var(--tide-b); }
  38% { transform: scale(0.88); filter: brightness(0.75); background: var(--tide-b); }
  44%, 88% { transform: none; filter: none; background: #1fae55; }
  96%, 100% { background: var(--tide-b); }
}
@keyframes ripple { 0%, 35% { opacity: 0; transform: scale(0.4); } 38% { opacity: 0.95; transform: scale(0.5); } 62%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes tap-left { 0%, 25% { opacity: 0; transform: translateX(-26px) scale(1.4); } 32% { opacity: 1; transform: translateX(-26px); } 42%, 100% { opacity: 0; transform: translateX(-26px); } }
@keyframes tap-right { 0%, 25% { opacity: 0; transform: translateX(26px) scale(1.4); } 32% { opacity: 1; transform: translateX(26px); } 42%, 100% { opacity: 0; transform: translateX(26px); } }
@keyframes menu { 0%, 36% { opacity: 0; transform: scale(0.96); } 42%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes swipe-left { 0%, 10% { opacity: 0; transform: translate(-22px, 40px); } 18% { opacity: 1; transform: translate(-22px, 40px); } 62% { opacity: 1; transform: translate(-22px, -40px); } 70%, 100% { opacity: 0; transform: translate(-22px, -40px); } }
@keyframes swipe-right { 0%, 10% { opacity: 0; transform: translate(22px, 40px); } 18% { opacity: 1; transform: translate(22px, 40px); } 62% { opacity: 1; transform: translate(22px, -40px); } 70%, 100% { opacity: 0; transform: translate(22px, -40px); } }
@keyframes scroll-list { 0%, 18% { transform: none; } 80%, 100% { transform: translateY(-38%); } }
@keyframes pinch-left { 0%, 10% { opacity: 0; transform: translate(-14px, 8px); } 18% { opacity: 1; transform: translate(-14px, 8px); } 62% { opacity: 1; transform: translate(-60px, 26px); } 70%, 100% { opacity: 0; transform: translate(-60px, 26px); } }
@keyframes pinch-right { 0%, 10% { opacity: 0; transform: translate(14px, -8px); } 18% { opacity: 1; transform: translate(14px, -8px); } 62% { opacity: 1; transform: translate(60px, -26px); } 70%, 100% { opacity: 0; transform: translate(60px, -26px); } }
@keyframes zoom-photo { 0%, 18% { transform: none; } 66%, 100% { transform: scale(1.7); } }
@keyframes hold-move { 0%, 8% { opacity: 0; transform: translateX(-50px) scale(1.4); } 14% { opacity: 1; transform: translateX(-50px); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.18); } 30% { opacity: 1; transform: translateX(-50px); box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.28); } 72% { opacity: 1; transform: translateX(60px); } 80%, 100% { opacity: 0; transform: translateX(60px); } }
@keyframes move-window { 0%, 30% { transform: none; } 72%, 100% { transform: translateX(42%); } }
@keyframes move-pointer { 0%, 30% { left: 30%; } 72%, 100% { left: 55.2%; } }

@media (max-width: 820px) {
  .gx-stage { grid-template-columns: 1fr; gap: 28px; }
  .gx-pad { width: 62%; }
}

/* Features with a picture */

.feature {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-top: var(--block-space);
}
.feature-flip .feature-text { order: 2; }
.feature-text h3, .feature-heading { font-size: clamp(1.5rem, 2.6vw, 2rem); font-stretch: 120%; line-height: 1.12; margin-bottom: 1rem; letter-spacing: -0.01em; }
.feature-text p { color: var(--ink-soft); max-width: 36ch; }
.shot { margin: 0; }
.shot img { width: 100%; }
.shot-mac img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(20, 27, 61, 0.1), 0 22px 50px -18px rgba(20, 27, 61, 0.45); }
.shot-pad img, .shot-phone img {
  background: var(--bezel); border: 12px solid var(--bezel);
  box-shadow: 0 26px 60px -24px rgba(20, 27, 61, 0.55);
}
.shot-pad img { max-width: 420px; margin-inline: auto; border-radius: 34px; }
.shot-phone img { max-width: 640px; margin-inline: auto; border-width: 10px; border-radius: 46px; }
@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-text { order: 0; }
}
@media (max-width: 520px) {
  .shot-pad img { border-width: 8px; border-radius: 24px; }
  .shot-phone img { border-width: 7px; border-radius: 30px; }
}

/* Speed carries straight on from Control: two picture rows, one after the other. */
.control { padding-bottom: 0; }
.speed { padding-top: 0; }

/* Frame rates: three dots moving at one speed, updated 30, 60 and 120 times a second. */
.fps { margin-top: var(--block-space); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 20px; background: var(--paper-raised); border: 1px solid var(--line); }
.fps h3 { margin-bottom: 0.4rem; }
.fps > p { color: var(--ink-soft); margin-bottom: 1.4rem; }
.fps-lane { display: grid; grid-template-columns: 5.5rem 1fr; align-items: center; gap: 12px; margin-bottom: 12px; }
.fps-label { font-weight: 650; font-stretch: 110%; font-size: 0.95rem; }
.fps-track { position: relative; height: 34px; border-radius: 17px; background: color-mix(in srgb, var(--ink) 6%, transparent); }
.fps-track i {
  position: absolute; left: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--tide-a), var(--tide-b));
}
.fps-note { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.6rem; }

/* Three short points side by side, each under a rule. Used by the Duo, the picture row and the TV. */
.points {
  list-style: none; margin: var(--block-space) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem); align-items: start;
}
.points li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.points h3 { margin-bottom: 0.6rem; }
.points p { color: var(--ink-soft); font-size: 1.05rem; }
@media (max-width: 820px) { .points { grid-template-columns: 1fr; } }
/* In the picture row the pictures head the columns, so no rule above them. */
.extras li { border-top: 0; padding-top: 0; }
/* One picture per column, all the same shape. */
.extra-media {
  aspect-ratio: 16 / 10.5; border-radius: 12px; overflow: hidden; margin-bottom: 1.3rem;
  box-shadow: 0 0 0 1px var(--line), 0 16px 34px -18px rgba(20, 27, 61, 0.45);
}
.extra-dark { background: #000; display: grid; place-items: center; }
.extra-dark img { width: 100%; height: 100%; object-fit: contain; }
.browser-shot { display: flex; flex-direction: column; }
.browser-shot img { flex: 1; min-height: 0; width: 100%; object-fit: cover; object-position: top; }
.browser-shot-bar { flex: none; display: flex; align-items: center; gap: 6px; height: 28px; padding-left: 10px; background: #eef0f6; }
.browser-shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #c9cede; }
.browser-shot-bar span { margin-left: 10px; padding: 2px 12px; border-radius: 6px; background: #fff; font-size: 0.72rem; color: #4a5478; }

/* Smart TV: a big set on a stand, lit warm from behind. */

.tv { border-top: 1px solid var(--line); }
.tv-set { position: relative; isolation: isolate; max-width: 920px; margin: clamp(2rem, 4vw, 3rem) auto 0; }
.tv-set::before {
  content: ""; position: absolute; z-index: -1; inset: 6% 4% 14%;
  background: radial-gradient(closest-side, rgba(255, 138, 52, 0.38), rgba(255, 45, 135, 0.18) 60%, transparent);
  filter: blur(40px);
}
.tv-panel {
  border: clamp(6px, 1vw, 11px) solid #0b0d16; border-radius: 12px; background: #000; overflow: hidden;
  box-shadow: 0 0 0 1px #2a3050, 0 40px 80px -40px rgba(20, 27, 61, 0.6);
}
.tv-bar { height: clamp(22px, 3.2vw, 34px); display: flex; align-items: center; justify-content: center; background: #1d2130; }
.tv-bar span {
  padding: 2px 16px; border-radius: 6px; background: #2d3245; color: #c9cede;
  font-size: clamp(0.6rem, 1.1vw, 0.8rem); white-space: nowrap;
}
.tv-panel img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tv-stand {
  width: 24%; height: clamp(18px, 3vw, 30px); margin: 0 auto;
  background: linear-gradient(#3a405a, #1b2033);
  clip-path: polygon(44% 0, 56% 0, 56% 60%, 100% 76%, 100% 100%, 0 100%, 0 76%, 44% 60%);
}

/* Details */

.details { background: var(--paper-raised); border-block: 1px solid var(--line); }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 4vw, 3.5rem); }
.details-grid h3 { font-size: 1.15rem; margin-bottom: 0.7rem; }
.details-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.details-grid li { position: relative; padding-left: 1.1rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }
.details-grid li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--tide-b); }
@media (max-width: 900px) { .details-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .details-grid { grid-template-columns: 1fr; } }

/* Questions */

.faq { max-width: 820px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 1.25rem; font-size: 1.2rem; font-weight: 650; font-stretch: 108%;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 160ms ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 1.5rem; color: var(--ink-soft); max-width: 62ch; }

/* Get the apps */

.get { border-top: 1px solid var(--line); }
.get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.get-item { display: flex; gap: 22px; align-items: flex-start; }
.get-item img { width: 96px; height: 96px; flex: none; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--line); }
.get-item h3 { font-size: 1.5rem; font-stretch: 118%; }
.get-item p { color: var(--ink-soft); margin: 0.35rem 0 1rem; }
@media (max-width: 820px) { .get-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .get-item { flex-direction: column; } }

.site-footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--ink-soft); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.footer-legal { display: grid; gap: 4px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover, .footer-links a[aria-current="page"] { text-decoration: underline; }

/* Privacy and Terms: one readable column under the same header and footer. */

.doc { padding-block: clamp(3rem, 8vw, 6rem) var(--section-space); }
.doc-body { max-width: 46rem; }
.doc-body h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); line-height: 0.98; font-weight: 800; letter-spacing: -0.03em; }
.doc-updated { margin-top: 1rem; color: var(--ink-soft); font-size: 0.95rem; }
.doc-lede { margin-top: 1.75rem; font-size: clamp(1.15rem, 1.6vw, 1.3rem); }
.doc-body h2 { margin: 3rem 0 0.9rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-stretch: 118%; line-height: 1.15; letter-spacing: -0.01em; }
.doc-body p, .doc-body li { color: var(--ink-soft); }
.doc-body p + p, .doc-body ul + p, .doc-body p + ul { margin-top: 1rem; }
.doc-body ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.doc-body li::marker { color: var(--tide-b); }
.doc-body strong { color: var(--ink); font-weight: 650; }
.doc-summary {
  margin-top: 2.5rem; padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 16px; background: var(--paper-raised); border: 1px solid var(--line);
}
.doc-summary h2 { margin-top: 0; font-size: 1.2rem; }
.doc-summary li { color: var(--ink); }

/* Reduced motion: no automatic movement; things simply show their end state. */
@media (prefers-reduced-motion: reduce) {
  .stage, .map-virtual, .duo-body, .duo-lid, .duo-base, .pose { transition: none; }
  .gestures.run * { animation: none !important; }
}
