/* The landing page, always light. */

@font-face {
  font-family: "Exposure";
  src: url("/assets/fonts/exposure-0-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.home {
  --night: #05060d;
  --tile: #fafafa;
  --on-light: rgba(0, 0, 0, 0.62);
  --on-dark: rgba(255, 255, 255, 0.62);
  --blue: #0071e3;
  --sky: #0a84ff;
  --orange: #ff8a00;
  --green: #30b158;
  --red: #ff453a;
  --violet: #7d5cff;
  --lift:
    0 0 0 1px rgba(0, 0, 0, 0.02), 0 1px 1px 0.5px rgba(0, 0, 0, 0.02), 0 3px 3px 1.5px rgba(0, 0, 0, 0.02),
    0 6px 6px -3px rgba(0, 0, 0, 0.02), 0 12px 12px -6px rgba(0, 0, 0, 0.02), 0 24px 24px -12px rgba(0, 0, 0, 0.02);
  --gutter: 24px;
  /* One unit that follows the window up to the design's width, and one that follows its height. */
  --u: calc(min(100vw, 1440px) / 1440);
  --v: calc(min(100svh, 900px) / 900);
  color-scheme: light;
  background: #fff;
  color: #000;
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  overflow-x: clip;
}

.home a:hover { text-decoration: none; }
.home ul, .home ol { list-style: none; margin: 0; padding: 0; }
.home figure { margin: 0; }
.home img { display: block; }
.home :focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 8px; }
.home h1, .home h2, .home h3 { font-family: "Exposure", Georgia, serif; font-weight: 400; font-synthesis: none; letter-spacing: -0.05em; }

.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { max-width: 1000px; margin: 0 auto; }

/* The bar: a row in the page's column at first, then a pill the size of what is in it, as soon as the page moves.
   On a phone the menu grows out of the pill, as one shape. */

.top {
  --ease: cubic-bezier(0.22, 0.9, 0.24, 1);
  --pill: 612px;
  --hairline: rgba(0, 0, 0, 0.1);
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: flex;
  justify-content: center;
  padding-top: 20px;
  pointer-events: none;
}
.top-bar {
  pointer-events: auto;
  width: min(1000px, 100%);
  height: 56px;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0);
  transition: width 0.5s var(--ease), height 0.45s var(--ease), background-color 0.3s, box-shadow 0.3s;
}
.scrolled .top-bar {
  width: var(--pill);
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.02), 0 1px 1px 0.5px rgba(0, 0, 0, 0.02), 0 3px 3px 1.5px rgba(0, 0, 0, 0.02),
    0 6px 6px -3px rgba(0, 0, 0, 0.02), 0 12px 12px -6px rgba(0, 0, 0, 0.02), 0 24px 24px -12px rgba(0, 0, 0, 0.02);
}

.top-row { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 0 24px; }

/* The name makes way for a thin line beside the icon. */
.brand {
  position: relative;
  flex: none;
  width: 125px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: width 0.5s var(--ease), color 0.3s;
}
.brand img { flex: none; width: 30px; height: 30px; }
.brand span { transition: opacity 0.25s; }
.brand::after { content: ""; position: absolute; top: 50%; right: 0; width: 1px; height: 20px; margin-top: -10px; background: var(--hairline); opacity: 0; transition: opacity 0.3s; }
.scrolled .brand { width: 48px; }
.scrolled .brand span { opacity: 0; }
.scrolled .brand::after { opacity: 1; }

.top-links { display: flex; gap: 32px; }
.top-links a { color: rgba(0, 0, 0, 0.7); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.3s; }
.top-links a:hover { color: #000; text-decoration: none; }

.top-end { flex: none; display: flex; align-items: center; gap: 12px; }

/* Plain words at first; a dark button in the pill, a white one over dark. The fills fade as layers, since a gradient cannot. */
.cta {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 10px 0 14px;
  border-radius: 999px;
  color: #000;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 0.3s, opacity 0.3s;
}
.cta::before, .cta::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity 0.3s; }
.cta::before { background: linear-gradient(#27282f, #0d0c0f); }
.cta::after { background: #fff; }
.scrolled .cta { color: #fff; }
.scrolled .cta::before { opacity: 1; }

.cta:hover { opacity: 0.82; text-decoration: none; }
.cta .i { font-size: 18px; }

/* Two lines in a thin ring, which cross to close. 44 points to touch, 32 to see. */
.menu-button {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin: -6px;
  padding: 0;
  border: 0;
  background: radial-gradient(circle, transparent 15.5px, var(--hairline) 15.5px 16px, transparent 16.5px);
  color: #000;
  cursor: pointer;
  transition: color 0.3s;
}
.menu-button::before, .menu-button::after { content: ""; position: absolute; left: 14px; width: 16px; height: 1px; background: currentColor; transition: transform 0.35s var(--ease); }
.menu-button::before { top: 18px; }
.menu-button::after { top: 25px; }
.menu-open .menu-button::before { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-button::after { transform: translateY(-3.5px) rotate(-45deg); }

.menu { display: none; }

[tabindex="-1"]:focus { outline: none; }
/* Arriving from another page's link, these headings would sit behind the bar. */
#privacy, #price { scroll-margin-top: 128px; }

/* The start of the page. */

.hero { padding: 132px var(--gutter) 28px; text-align: center; background: #fff; }
.hero h1 { font-size: clamp(44px, 12.4vw, 72px); line-height: 1.1; letter-spacing: -0.04em; }

/* Away from your Mac: one iPhone stays put and changes state as the page moves, beside a list of what it does. It is
   sticky rather than pinned, so the scroll never stops. site.js turns the scroll into the screens. */

.reads-body {
  --phone: min(240px, calc((100svh - 340px) / 2.0444));
  height: calc(100svh + 3 * 72svh);
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
/* The whole slide stays: the headline, the list and the phone fill the window together. */
.reads-pin { position: sticky; top: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: auto minmax(0, 1fr); gap: 28px 48px; align-items: center; height: 100svh; padding: 96px 0 28px; }
.reads-pin .journey-heading { grid-column: 1 / -1; margin: 0; padding: 0; text-align: center; }
.reads-nav { display: flex; flex-direction: column; }
.reads-nav a { position: relative; display: block; padding: 20px 24px; color: rgba(0, 0, 0, 0.45); }
.reads-nav a:hover { color: rgba(0, 0, 0, 0.7); text-decoration: none; }
.reads-nav a::before { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.15); transition: background-color 0.3s; }
.reads-nav a[aria-current] { color: rgba(0, 0, 0, 0.85); }
/* The active item's line fills as the page goes through it. */
.reads-nav a::after { content: ""; position: absolute; left: 0; top: 16%; bottom: 16%; width: 3px; border-radius: 2px; background: rgba(0, 0, 0, 0.85); opacity: 0; transform: scaleY(var(--fill, 0)); transform-origin: top; transition: opacity 0.3s; }
.reads-nav a[aria-current]::after { opacity: 1; }
.reads-nav small { display: block; margin-bottom: 8px; color: rgba(0, 0, 0, 0.2); font: 11px/14px var(--mono); transition: color 0.3s; }
.reads-nav a[aria-current] small { color: rgba(0, 0, 0, 0.45); }
.reads-nav b { display: block; font: 400 24px/30px "Exposure", Georgia, serif; font-synthesis: none; letter-spacing: -0.03em; transition: color 0.3s; }
.reads-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s; }
.reads-nav a[aria-current] .reads-more { grid-template-rows: 1fr; opacity: 1; }
.reads-more > div { min-height: 0; overflow: hidden; }
.reads-more p { padding-top: 10px; color: rgba(0, 0, 0, 0.6); font-size: 15px; line-height: 21px; }
.reads-device { display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 16px; background: #f5f5f7; }
.reads-device .phone { --w: var(--phone); }
/* Each screen lies on the one before it, which stays solid, so a change never shows through to what is behind. */
.reads-device .screen img { position: absolute; inset: 0; opacity: 0; will-change: opacity; }
.reads-device .screen img:first-child { opacity: 1; }

/* What comes to you: the alert landing on the iPhone and the watch, at their true relative size. */

/* You'll know before you look: a slide whose grey box grows to fill the window as the page moves, while the devices grow and
   move into place and the words move with them. site.js measures both layouts and moves between them with the scroll. */
.know { --know-type: clamp(33px, 3.6vw, 52px); --know-width: calc(var(--know-type) * 16.9); background: #fff; text-align: center; }
.know-body { height: 290svh; }
.know-pin { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; height: 100svh; padding: 92px var(--gutter) 24px; overflow: hidden; }
.know-panel { position: absolute; inset: 0; background: #f5f5f7; }
.know-words { position: relative; width: min(var(--know-width), 100%); will-change: transform; }
.know h2 { font-size: var(--know-type); line-height: 1.1; }
.know-lead { max-width: 620px; margin: 14px auto 0; color: rgba(0, 0, 0, 0.6); font-size: 18px; line-height: 27px; }
.know-words.is-lined { text-align: left; }
.know-words.is-lined .know-lead { margin-left: 0; }
.know-line { display: block; width: max-content; will-change: transform; }
.know-devices { --mm: min(2.6px, calc((100vw - 96px) / 134), calc((100svh - 370px) / 150.5)); position: relative; flex: 1; display: flex; align-items: center; justify-content: center; gap: 40px; width: 100%; min-height: 0; max-width: var(--wide); margin-top: 20px; padding: 24px 0; }
.know-devices .phone, .know-devices .watch { transform-origin: 0 0; will-change: transform; }
/* Where they end: the words on the left, at the size they started, and the devices together on the right, in what is left. */
.know-pin.is-end { display: grid; grid-template-columns: var(--know-column, var(--know-width)) auto; justify-content: center; gap: 48px; align-items: center; padding: 76px var(--gutter) 84px; }
.know-pin.is-end .know-words { grid-area: 1 / 1; width: var(--know-column, var(--know-width)); }
/* Room under the words for Hear it, so the words and the button are centred together. */
.know-pin.is-end .know-words.is-lined { padding-bottom: 68px; }
.know-pin.is-end .know-devices { --mm: min(3.5px, calc((100svh - 170px) / 150.5), calc((100vw - var(--know-column, var(--know-width)) - 144px) / 117.2)); grid-area: 1 / 2; width: auto; margin: 0; padding: 0; }
.know-devices .phone { --w: calc(var(--mm) * 73.6); }
.know-devices .watch { --w: calc(var(--mm) * 43.6); }
.know-devices video { display: block; width: 100%; height: 100%; object-fit: cover; }
.know-hear { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: #000; color: #fff; font: inherit; font-size: 15px; cursor: pointer; }
.know-hear { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; }
.know-hear:hover { background: #2a2a2d; }
.know-hear .i { width: 18px; height: 18px; }

/* And if they take it: one idea, in the app's own words from Wording.offline, as big as a slide. */

.taken { padding: 120px var(--gutter) 40px; background: #fff; text-align: center; }
.taken h2 { font-size: clamp(33px, 5vw, 56px); line-height: 1.1; }
.taken-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; max-width: 900px; margin: 72px auto 0; }
.taken-pair figure { margin: 0; color: rgba(0, 0, 0, 0.32); }
.taken-pair .taken-this { color: #1d1d1f; }
.taken-pair b { display: block; margin-top: 20px; font: 400 clamp(84px, 13vw, 168px)/1 "Exposure", Georgia, serif; font-synthesis: none; letter-spacing: -0.05em; }
.taken-pair figcaption { max-width: 360px; margin: 20px auto 0; font-size: 17px; line-height: 25px; }
/* The faded side still has to be read for the comparison to land, so its words keep 4.5:1 while its number stays ghosted. */
.taken-pair figure:not(.taken-this) figcaption { color: rgba(0, 0, 0, 0.55); }
.taken-battery { position: relative; display: inline-block; width: 64px; height: 30px; padding: 3px; border: 2px solid currentColor; border-radius: 9px; }
.taken-battery::after { content: ""; position: absolute; top: 7px; right: -6px; width: 3px; height: 12px; border-radius: 0 2px 2px 0; background: currentColor; }
.taken-battery i { display: block; width: var(--level); height: 100%; border-radius: 5px; background: var(--charge); }

/* Then your Mac tells on them: a map stays put while the page moves through one theft, and the iPhone beside it changes
   with each moment. There is a pin for each place and no line between them, because the app knows moments, not a route.
   site.js turns the scroll into the camera, the words and the screens. */

.tells { padding-top: 88px; background: #fff; text-align: center; }
.tells h2 { padding: 0 var(--gutter); font-size: clamp(33px, 5vw, 56px); line-height: 1.1; }
.tells-body { height: calc(100svh + 3 * 90svh); margin-top: 56px; }
.tells-pin { --edge: max(var(--gutter), calc((100vw - 1240px) / 2)); --face: 88px; position: sticky; top: 0; height: 100svh; overflow: hidden; background: #f6f4ef; text-align: left; }
.tells-world { position: absolute; left: 0; top: 0; width: 1800px; height: 2180px; transform-origin: 0 0; will-change: transform; }
.tells-world img { display: block; width: 100%; height: 100%; }
.tells-names span { position: absolute; left: 0; top: 0; color: rgba(0, 0, 0, 0.42); font-size: 12px; font-weight: 500; line-height: 16px; white-space: nowrap; will-change: transform; }
.tells-names .is-water { color: rgba(40, 90, 130, 0.55); font-style: italic; }
/* The white page runs into the map, so the words stand on white. */
.tells-veil { position: absolute; inset: 0; background: linear-gradient(90deg, #fff, #fff calc(var(--edge) + 300px), rgba(255, 255, 255, 0) calc(var(--edge) + 560px)), linear-gradient(#fff, rgba(255, 255, 255, 0) 88px, rgba(255, 255, 255, 0) calc(100% - 88px), #fff); }
.tells-mark { position: absolute; left: 0; top: 0; will-change: transform; }
.tells-face { position: absolute; left: calc(var(--face) / -2); top: calc(var(--face) / -2); width: var(--face); height: var(--face); padding: 4px; border-radius: 50%; background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26); will-change: transform; }
.tells-face img { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tells-face i { position: absolute; inset: 0; opacity: var(--live, 0); }
.tells-face i::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #ff9500; animation: tells-ping 2.4s cubic-bezier(0.2, 0.6, 0.4, 1) infinite; }
@keyframes tells-ping { from { transform: scale(1); opacity: 0.55; } to { transform: scale(2); opacity: 0; } }
.tells-mark small { position: absolute; left: 0; top: calc(var(--face) / 2 + 10px); padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.14); color: rgba(0, 0, 0, 0.6); font-size: 13px; line-height: 18px; white-space: nowrap; transform: translateX(-50%); opacity: var(--shown, 1); }
.tells-mark small b { color: #1d1d1f; font-weight: 600; }
.tells-words { position: absolute; left: var(--edge); top: 50%; display: grid; width: 360px; margin: 0; padding: 0; list-style: none; transform: translateY(-50%); }
.tells-words li { grid-area: 1 / 1; align-self: center; will-change: opacity, transform; }
.tells-words b { display: block; font: 400 clamp(64px, 7vw, 96px)/1 "Exposure", Georgia, serif; font-synthesis: none; letter-spacing: -0.05em; }
.tells-words h3 { margin: 20px 0 0; font: 400 30px/36px "Exposure", Georgia, serif; font-synthesis: none; letter-spacing: -0.03em; }
.tells-words p { margin: 12px 0 0; color: rgba(0, 0, 0, 0.6); font-size: 17px; line-height: 25px; }
.tells-phone { position: absolute; right: var(--edge); top: 50%; transform: translateY(-50%); }
.tells-phone .phone { --w: min(290px, calc((100svh - 104px) / 2.0444)); }
.tells-phone .screen > * { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity; }
.tells-phone .screen > :first-child { opacity: 1; }
.tells-credit { position: absolute; right: 12px; bottom: 8px; color: rgba(0, 0, 0, 0.45); font-size: 10px; line-height: 14px; }
.tells-note { max-width: 520px; margin: 0 auto; padding: 40px var(--gutter) 0; color: rgba(0, 0, 0, 0.55); font-size: 15px; line-height: 22px; }

/* Nobody else can see it: the headline, split by a slow strip of what is sealed. Every chip is a promise from the privacy
   policy, so a chip changes only with it. */

.promise { position: relative; width: min(1000px, 100% - 44px); margin: 120px auto; padding: 70px 0; overflow-x: clip; text-align: center; }
.promise h2 { top: 0; }
.promise-edge { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.promise-edge rect { x: 0.5px; y: 0.5px; width: calc(100% - 1px); height: calc(100% - 1px); rx: 12px; fill: none; stroke: rgba(0, 0, 0, 0.5); stroke-dasharray: 1 6; stroke-linecap: round; }
.promise-mark { position: absolute; left: 50%; display: grid; place-items: center; padding: 6px 12px; background: #fff; transform: translate(-50%, -50%); }
.promise-mark.at-top { top: 0; }
.promise-mark.at-bottom { top: 100%; }
.promise-mark .i { font-size: 36px; stroke-width: 1.1; }
.promise-line { padding: 0 24px; font: 400 clamp(36px, 5vw, 48px)/1.17 "Exposure", Georgia, serif; font-synthesis: none; letter-spacing: -0.05em; }
.promise-strip { display: flex; width: max-content; margin: 20px 0; animation: promise-drift 120s linear infinite; }
.promise-chips { display: flex; flex: none; gap: 20px; margin: 0; padding: 0 20px 0 0; list-style: none; }
.promise-chips li { display: flex; align-items: center; gap: 12px; height: 35px; padding: 0 8px 0 14px; border-radius: 20px; background: rgba(235, 235, 235, 0.7); font: 400 14px/1 var(--mono); white-space: nowrap; }
.promise-chips i { width: 10px; height: 10px; border-radius: 50%; background: #c7c7cc; }
.promise-chips .is-sealed i { background: var(--sky); }
.promise-chips b { padding: 4px 7px; background: #fff; font-weight: 400; }
@keyframes promise-drift { to { transform: translateX(-50%); } }
.promise-text { max-width: 676px; margin: 40px auto 0; padding: 0 24px; color: rgba(0, 0, 0, 0.6); font-size: 22px; line-height: 30px; }
.promise-link { display: inline-flex; align-items: center; gap: 12px; height: 38px; margin-top: 32px; padding: 0 22px; border-radius: 20px; background: #efefef; color: rgba(0, 0, 0, 0.85); font-size: 16px; }
.promise-link:hover { background: #e4e4e6; text-decoration: none; }
.promise-link .i { font-size: 16px; }

/* The Mac to touch. Self-contained, so it can move anywhere on the page. */

.hand { padding: 120px var(--gutter) 56px; background: #fff; text-align: center; }
.hand h2 { font-size: clamp(33px, 5vw, 56px); line-height: 1.1; }
.hand-lead { max-width: 560px; margin: 20px auto 0; color: rgba(0, 0, 0, 0.6); font-size: 18px; line-height: 27px; }
/* Small enough that the screen, the score and the line beneath fit one window: the count is the point. */
.hand-stage { position: relative; container-type: inline-size; width: min(1000px, 100%, max(560px, calc((100svh - 310px) * 1.523))); aspect-ratio: 1200 / 788; margin: 48px auto 0; overflow: hidden; border-radius: 16px; cursor: default; }
.hand-stage:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.hand-scene { position: absolute; inset: 0; }
.hand-scene > img:first-child { display: block; width: 100%; height: 100%; }
.hand-scene .demo-spinner { top: 56.345%; will-change: auto; }
.hand-scene .demo-clock { opacity: 1; }
.hand-typing { position: absolute; left: 30.167%; top: 60.6%; width: 31.4%; height: 17.5%; overflow: hidden; color: #1d1d1f; font-size: 1.083cqw; line-height: 1.33; text-align: left; }
.hand-lock { position: absolute; inset: 0; width: 100%; height: 100%; visibility: hidden; }
.is-locked .hand-lock { visibility: visible; }
.hand .if-locked { display: none; }
.hand.is-locked .if-locked { display: block; }
.hand.is-locked .if-armed { display: none; }

.hand-score { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: min(1000px, 100%, max(560px, calc((100svh - 310px) * 1.523))); margin: 28px auto 0; text-align: left; }
.hand-score > div { padding: 20px 24px; border-radius: 16px; background: #f5f5f7; }
.hand-score dd { margin: 0; }
.hand-score dt { color: rgba(0, 0, 0, 0.55); font-size: 13px; line-height: 16px; }
.hand-score b { display: block; margin-top: 10px; font-size: 40px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 44px; }
.hand-score span { display: block; margin-top: 4px; color: var(--blue); font-size: 14px; line-height: 18px; }
.hand-you span, .hand-phone span { color: rgba(0, 0, 0, 0.55); }
.hand.is-locked .hand-you b, .hand.is-locked .hand-you span { color: #e8820c; }
.hand.is-told .hand-phone b, .hand.is-told .hand-phone span { color: #e8820c; }

.hand-line { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 40px; margin-top: 20px; color: rgba(0, 0, 0, 0.6); font-size: 15px; line-height: 21px; }
.hand.is-locked .hand-line p { color: #1d1d1f; }
.hand-line .with-finger { display: none; }
.hand-again { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: #000; color: #fff; font: inherit; font-size: 14px; cursor: pointer; }
.hand-again:hover { background: #2a2a2d; }
@media (hover: none) {
  .hand-line .with-pointer { display: none; }
  .hand-line .with-finger { display: inline; }
}

.closing-terms { max-width: 560px; margin: -32px auto 88px; color: rgba(0, 0, 0, 0.55); font-size: 15px; line-height: 22px; }

/* Devices: Apple's own product bezels with the real screen in the opening. Apple's marketing rules allow them only as
   they come: whole, straight, with no shadow added and nothing on top. The numbers are the openings as measured. */

.phone, .watch, .mac { position: relative; flex: none; width: var(--w); }
.phone::after, .watch::after, .mac::after { content: ""; position: absolute; z-index: 3; inset: 0; background: 0 0 / 100% 100% no-repeat; pointer-events: none; }
.screen, .watch-screen, .mac-screen { position: absolute; overflow: hidden; background: #000; }
.screen img, .watch-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }

.phone { --w: 300px; aspect-ratio: 1350 / 2760; }
.phone::after { background-image: url("/assets/devices/iphone-18-pro.webp"); }
/* Rounded a little tighter than the opening: square corners would poke past the frame, equal ones would leave a seam. */
.screen { inset: 2.5% 5.3333%; border-radius: 14% / 6.44%; }

.watch { --w: 300px; aspect-ratio: 560 / 880; }
.watch::after { background-image: url("/assets/devices/apple-watch.webp"); }
.watch-screen { inset: 21.8182% 12.8571%; border-radius: 21.6% / 18.1%; }

.mac { --w: 620px; aspect-ratio: 3860 / 2540; }
.mac::after { background-image: url("/assets/devices/macbook-pro.webp"); }
.mac-screen {
  inset: 11.3386% 10.829%;
  display: grid;
  place-items: center;
  padding-top: 2.4%;
  background: url("/assets/macos/closing-desktop.webp") top / cover;
}
.mac-screen img { width: 76%; height: auto; border-radius: calc(var(--w) * 0.02); box-shadow: 0 calc(var(--w) * 0.012) calc(var(--w) * 0.03) rgba(90, 55, 0, 0.32); }

/* What sets it off. */

/* The close. */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  margin-top: 28px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
}
.pill .i { font-size: 18px; }

.pill.soon { background: rgba(0, 0, 0, 0.05); color: rgba(0, 0, 0, 0.62); }

/* The closing fills the window. Guardy wakes as it rises, and once it fills the window the page's scroll brings in the words
   one at a time. It is sticky rather than pinned, so the scroll never stops. site.js turns the scroll into all of it. */

.closing { text-align: center; }
.closing > .wrap { padding: 0 var(--gutter); }
.closing-body { position: relative; height: 250svh; }
/* Where links to the closing land: the end of the words, with everything showing. */
.closing-end { position: absolute; left: 0; top: calc(100% - 100svh); }
.closing-stage { position: sticky; top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100svh; padding: 0 var(--gutter); background: #fff; overflow: clip; }
.face-wrap { position: relative; flex: none; width: 120px; height: 120px; margin-bottom: 32px; }
/* Drawn at its largest and scaled down, so it stays sharp alone in the window. The glow is its own layer: only its opacity changes. */
.face-art { position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px; transform: scale(0.3); will-change: transform; }
.face-halo { position: absolute; inset: -65%; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 135, 255, 0.42) 48%, rgba(30, 135, 255, 0.14) 72%, rgba(30, 135, 255, 0)); opacity: 0.4; pointer-events: none; will-change: opacity; }
.face-glow { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 26px 3px rgba(90, 175, 255, 0.95), 0 0 74px 10px rgba(30, 135, 255, 0.72), 0 34px 110px 6px rgba(0, 113, 227, 0.5); opacity: 0.6; pointer-events: none; will-change: opacity; }
.face { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; cursor: pointer; }
.closing h2 { font-size: clamp(44px, 7vw, 92px); line-height: 1.08; }
.closing h2 span { display: inline-block; will-change: opacity, transform; }
.closing-stage p { max-width: 560px; margin: 20px auto 0; color: var(--on-light); font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.4; will-change: opacity, transform; }
.closing-stage .pill { margin-top: 36px; will-change: opacity, transform; }

/* Side by side the products keep their true relative size, as Apple's rules ask: each width is its image in millimetres,
   the Mac's taken from its 312.6 mm base. */
.devices { --mm: min(2.4px, calc((100vw - 184px) / 434.2)); display: flex; align-items: flex-end; justify-content: center; gap: 40px; margin: 72px 0 96px; }
.devices .phone { --w: calc(var(--mm) * 73.6); }
.devices .watch { --w: calc(var(--mm) * 43.6); }
.devices .mac { --w: calc(var(--mm) * 317); }

.site-footer { padding: 56px var(--gutter) 44px; background: rgba(0, 0, 0, 0.02); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.foot-brand img { width: 28px; height: 28px; }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer nav b { font-weight: 600; }
.site-footer nav a { color: rgba(0, 0, 0, 0.6); font-weight: 500; }
.site-footer nav a:hover { color: #000; }
.site-footer p { grid-column: 1 / -1; margin-top: 16px; color: rgba(0, 0, 0, 0.45); font-weight: 500; }

/* Narrower windows. */

/* A phone. */

@media (max-width: 900px) {
  .top { padding-top: 12px; }
  .top-links { display: none; }
  .top-row { padding: 0 12px 0 24px; gap: 12px; }
  .scrolled .top-bar { width: calc(100% - 48px); }
  .scrolled .brand { width: 46px; }
  .menu-button { display: block; }

  .cta { padding: 0 14px; font-size: 14px; opacity: 0; pointer-events: none; }
  .cta .i { display: none; }
  .scrolled .cta { opacity: 1; pointer-events: auto; }
  .scrolled .cta:hover { opacity: 0.82; }

  .menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 0;
    padding: 16px 24px;
    background: #f7f7f8;
    visibility: hidden;
    transition: visibility 0s 0.45s;
  }
  .menu a { display: flex; align-items: center; gap: 8px; height: 30px; color: rgba(0, 0, 0, 0.7); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
  .menu a:hover { text-decoration: none; }
  .menu .i { font-size: 18px; }
  .menu-open .top-bar { height: 164px; }
  .menu-open .menu { visibility: visible; transition: none; }
  
  
  

  /* Each screen under its own words, since there is no room for a list beside it. */
  .promise { width: calc(100% - 32px); margin: 72px auto; padding: 52px 0; }
  .promise-line { padding: 0 12px; font-size: 30px; }
  .promise-link { gap: 8px; padding: 0 16px; font-size: 14px; }
  .promise-text { margin-top: 28px; font-size: 18px; line-height: 26px; }
  .promise-chips li { height: 32px; font-size: 13px; }
  .reads-body { height: calc(100svh + 3 * 64svh); padding: 0 16px; }
  .reads-pin { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 80px 0 16px; }
  /* The three share one place, as tall as the longest, so the phone under them never moves. */
  .reads-nav { display: grid; flex: none; }
  .reads-nav a { grid-area: 1 / 1; padding: 0 8px; color: rgba(0, 0, 0, 0.85); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
  .reads-nav a[aria-current] { opacity: 1; pointer-events: auto; }
  .reads-nav a::before, .reads-nav a::after, .reads-nav small { display: none; }
  .reads-nav b { font-size: 28px; line-height: 33px; letter-spacing: -0.04em; }
  .reads-more { grid-template-rows: 1fr; opacity: 1; }
  .reads-more p { font-size: 16px; line-height: 23px; }
  .reads-device { flex: 1; min-height: 0; height: auto; padding: 16px 0; }
  .reads-device .phone { width: auto; height: 100%; max-height: 470px; }

  
  
  

  
  
  
  
  

  
  
  
  

  
  
  

  
  

  
  
  
  
  

  
  
  
  
  

  /* Beside a true-scale Mac a phone would shrink below Apple's minimum, so a phone screen shows the two that fit. */
  /* Stacked, not side by side, so each row has its own scale: at one scale the iPhone and watch look like toys under the Mac. */
  .devices { --mm: min(2.4px, calc((100vw - 32px) / 180)); flex-wrap: wrap; gap: 24px; margin: 56px -8px 64px; }
  .devices .mac { --w: min(560px, calc((100vw - 32px) * 0.72)); order: -1; }

  .site-footer .wrap { grid-template-columns: 1fr 1fr 1fr; column-gap: 16px; }
  .foot-brand { grid-column: 1 / -1; }
  
  
  .tells { padding-top: 64px; }
  .tells-body { height: calc(100svh + 3 * 80svh); margin-top: 40px; }
  .tells-pin { --face: 64px; }
  .tells-veil { background: linear-gradient(#fff, #fff 244px, rgba(255, 255, 255, 0) 310px, rgba(255, 255, 255, 0) calc(100% - 64px), #fff); }
  .tells-words { left: 16px; right: 16px; top: 84px; width: auto; transform: none; }
  .tells-words li { align-self: start; }
  .tells-words b { font-size: 48px; }
  .tells-words h3 { margin-top: 8px; font-size: 24px; line-height: 29px; }
  .tells-words p { margin-top: 6px; font-size: 15px; line-height: 21px; }
  .tells-phone { left: 50%; right: auto; top: auto; bottom: 16px; transform: translateX(-50%); }
  .tells-phone .phone { --w: calc(34svh / 2.0444); }
  .tells-credit { right: 8px; }
  .tells-note { padding-top: 24px; }
}

@media (max-width: 600px) {
  .taken { padding: 88px 16px 24px; }
  .taken-pair { gap: 16px; margin-top: 44px; }
  .taken-pair figcaption { font-size: 14px; line-height: 20px; }
  .taken-battery { width: 44px; height: 22px; border-radius: 7px; }
  .taken-battery::after { top: 4px; height: 10px; }
  .taken-battery i { border-radius: 3px; }
  .know-pin { padding: 84px 16px 24px; }
  .know-lead { font-size: 16px; line-height: 23px; }
  .know-pin.is-end { display: flex; padding: 84px 16px; }
  .know-pin.is-end .know-words { width: 100%; }
  .know-pin.is-end .know-devices { flex: 1; width: 100%; gap: 20px; --mm: min(2.9px, calc((100vw - 76px) / 122), calc((100svh - 400px) / 150.5)); }
  .know-devices { --mm: min(2.3px, calc((100vw - 76px) / 122), calc((100svh - 400px) / 150.5)); gap: 20px; margin-top: 12px; padding: 12px 0; }
  .hand { padding: 88px 16px 40px; }
  .hand-lead { font-size: 16px; line-height: 23px; }
  .hand-stage { width: 100%; aspect-ratio: 760 / 788; margin-top: 32px; }
  /* The agent's thread and the shield, at a size a phone can read. */
  .hand-scene { right: auto; left: -46.053%; width: 157.895%; }
  .hand-typing { font-size: 1.71cqw; }
  /* The Lock Screen, centred. */
  .hand-lock { left: -28.947%; width: 157.895%; }
  .hand-score { grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 16px; }
  .hand-phone { grid-column: 1 / -1; }
  .hand-score > div { padding: 16px; }
  .hand-score b { font-size: 30px; line-height: 34px; }
  .hand-score span { font-size: 13px; }
  .hand-line { flex-direction: column; gap: 12px; min-height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .top-bar, .top-bar *, .top-bar *::before, .top-bar *::after, .reads-nav a, .reads-nav *, .reads-nav a::before { transition: none !important; }
  .tells-face i::before { animation: none; opacity: 0.3; transform: scale(1.4); }
  .closing-body { height: auto; }
  .closing-stage { position: static; }
  .know-body { height: auto; }
  .know-pin { position: static; height: auto; }
  .know-hear { position: static; translate: none; margin-top: 24px; }
  .promise-strip { width: auto; animation: none; }
  .promise-chips { flex: 1; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 16px; }
  .promise-chips.copy { display: none; }
}

html:not(.js) .reads-body { height: auto; }
html:not(.js) .reads-pin { position: static; height: auto; }
html:not(.js) .reads-nav a { grid-area: auto; opacity: 1; }
html:not(.js) .reads-more { grid-template-rows: 1fr; opacity: 1; }
html:not(.js) .closing-body { height: auto; }
html:not(.js) .closing-stage { position: static; }
html:not(.js) .know-body { height: auto; }
html:not(.js) .know-pin { position: static; height: auto; }
html:not(.js) .know-hear { position: static; translate: none; margin-top: 24px; }
html:not(.js) .tells-body { height: auto; }
html:not(.js) .tells-pin { position: static; height: auto; padding: 24px var(--gutter); background: #fff; }
html:not(.js) .tells-world, html:not(.js) .tells-names, html:not(.js) .tells-veil, html:not(.js) .tells-mark, html:not(.js) .tells-phone { display: none; }
html:not(.js) .tells-words { position: static; width: auto; gap: 40px; transform: none; }
html:not(.js) .tells-words li { grid-area: auto; }
