/* Eyelid — eyelid.app */

:root {
  --bg: #000;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --line: rgba(255, 255, 255, 0.1);
  --tile: #0c0c0e;
  --tile-line: rgba(255, 255, 255, 0.07);
  --link: #2997ff;
  --amber: #ffb340;
  --coral: #ff5e57;
  --violet: #b84df0;
  --dusk: linear-gradient(90deg, var(--amber), var(--coral) 50%, var(--violet));
  --radius: 28px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --ease: cubic-bezier(0.6, 0, 0.2, 1);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  color: var(--fg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

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

img,
svg {
  display: block;
}

a {
  color: inherit;
}

p {
  margin: 0;
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
  text-wrap: balance;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--fg);
  color: #000;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.quiet {
  color: #86868b;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.19rem, 1.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.36;
  letter-spacing: -0.02em;
}

.lead strong {
  color: var(--fg);
  font-weight: 600;
}

.text-link {
  color: var(--link);
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.lead .text-link {
  font-size: inherit;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section {
  padding: clamp(96px, 13vw, 176px) 22px;
}

.center {
  text-align: center;
}

.section-title {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
}

/* Navigation */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 52px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.nav.is-scrolled {
  border-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.nav-links a {
  color: rgba(245, 245, 247, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
}

.nav-cta {
  padding: 5px 13px;
  border-radius: 980px;
  background: var(--fg);
  color: #000;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta[aria-disabled="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg);
}

@media (max-width: 600px) {
  .nav-inner {
    gap: 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .nav-links .nav-features {
    display: none;
  }
}

/* App Store button */

/* A plain button until launch, when Apple's official badge replaces it. */
.button.store {
  padding: 13px 26px;
  font-size: 17px;
}

.button.store[aria-disabled="true"] {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  cursor: default;
}

.when-live {
  display: none;
}

.is-live .when-live {
  display: inline;
}

.is-live .when-soon {
  display: none;
}

/* Reveal on scroll */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Hero */

.hero {
  padding: calc(52px + clamp(64px, 9vw, 128px)) 22px 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 9.4vw, 7.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero .lead {
  max-width: 740px;
  margin: 28px auto 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 32px;
  margin-top: 40px;
}

.hero-stage {
  --close: 0;
  position: relative;
  max-width: 1040px;
  margin: clamp(64px, 9vw, 112px) auto 0;
  padding-bottom: clamp(64px, 9vw, 128px);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 4% 8% 18%;
  background: radial-gradient(closest-side, rgba(150, 110, 255, 0.42), rgba(255, 110, 90, 0.12) 60%, transparent);
  filter: blur(48px);
  opacity: calc(1 - var(--close));
  pointer-events: none;
}

.hero-caption {
  margin-top: clamp(28px, 4vw, 48px);
  color: var(--faint);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  opacity: var(--close);
  transition: opacity 0.2s;
}

/* The lid that closes over the hero's screen as you scroll */

.lid {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  height: calc(var(--close) * 100%);
  background: #000;
}

.lid::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -0.6cqw;
  height: 1.2cqw;
  border-radius: 50%;
  background: var(--dusk);
  filter: blur(0.5cqw);
  /* Only while the lid is moving: none when open, fading out as it shuts. */
  opacity: min(1, calc(var(--close) * 25), calc((1 - var(--close)) * 6));
}

/* MacBook */

.macbook {
  container-type: inline-size;
  position: relative;
  width: 100%;
}

.mb-lid {
  position: relative;
  margin: 0 5.5%;
  padding: 1.3cqw 1.3cqw 1.05cqw;
  border-radius: 3.1cqw 3.1cqw 0.7cqw 0.7cqw;
  background: #09090a;
  box-shadow:
    0 0 0 0.15cqw #3c3c40,
    0 0 0 0.3cqw #161618,
    0 3cqw 7cqw rgba(0, 0, 0, 0.55);
}

.mb-screen {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 1.545;
  overflow: hidden;
  border-radius: 1.9cqw 1.9cqw 0.2cqw 0.2cqw;
  background: #000;
}

.mb-base {
  position: relative;
  height: 2.3cqw;
  border-radius: 0.3cqw 0.3cqw 2.6cqw 2.6cqw / 0.3cqw 0.3cqw 1.7cqw 1.7cqw;
  background: linear-gradient(180deg, #6a6a70 0%, #2e2e32 16%, #18181a 58%, #0a0a0b 100%);
}

.mb-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 40%;
  transform: translateX(-50%);
  border-radius: 0 0 1cqw 1cqw;
  background: linear-gradient(180deg, #0c0c0d, #2a2a2e);
}

.mb-base::after {
  content: "";
  position: absolute;
  left: 3%;
  right: 3%;
  bottom: -1.4cqw;
  height: 1.6cqw;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.9), transparent);
}

.island {
  position: absolute;
  top: 0.75cqw;
  left: 50%;
  z-index: 6;
  width: 8.6cqw;
  height: 2.05cqw;
  transform: translateX(-50%);
  border-radius: 2cqw;
  background: #000;
}

/* External display */

.monitor {
  container-type: inline-size;
  position: relative;
}

.mon-screen {
  aspect-ratio: 16 / 9.3;
  padding: 0.8cqw;
  border-radius: 1.1cqw;
  background: #09090a;
  box-shadow:
    0 0 0 0.13cqw #3c3c40,
    0 3cqw 6cqw rgba(0, 0, 0, 0.55);
}

.mon-display {
  container-type: inline-size;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0.4cqw;
}

.mon-neck {
  width: 11%;
  height: 8cqw;
  margin: 0 auto;
  background: linear-gradient(90deg, #1b1b1e, #3d3d42 50%, #1b1b1e);
}

.mon-foot {
  width: 30%;
  height: 1.3cqw;
  margin: 0 auto;
  border-radius: 0.4cqw 0.4cqw 0.9cqw 0.9cqw;
  background: linear-gradient(#55555b, #1c1c1f);
}

/* A desktop inside a screen. Sizes are in cqw of the screen it's in. */

.desktop {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: var(--font);
  letter-spacing: 0;
}

.wall-dusk {
  background:
    radial-gradient(60% 80% at 12% 18%, #4f3fe0 0%, transparent 62%),
    radial-gradient(55% 75% at 88% 85%, #c24fd6 0%, transparent 60%),
    radial-gradient(65% 55% at 62% 28%, #ff7a59 0%, transparent 58%),
    #140d33;
}

.wall-sea {
  background:
    radial-gradient(70% 90% at 85% 15%, #1d6fd6 0%, transparent 60%),
    radial-gradient(60% 80% at 10% 90%, #0fa39a 0%, transparent 58%),
    #06162c;
}

.menubar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5cqw;
  padding: 0 1.9cqw;
  background: rgba(8, 8, 20, 0.3);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.32cqw;
  font-weight: 500;
}

.menubar .items,
.menubar .status {
  display: flex;
  align-items: center;
  gap: 1.7cqw;
}

.menubar b {
  font-weight: 700;
}

.menubar svg {
  width: 2.1cqw;
  height: 2.1cqw;
}

.mon-display .menubar {
  height: 2.6cqw;
  font-size: 1cqw;
}

.mon-display .menubar svg {
  width: 1.5cqw;
  height: 1.5cqw;
}

.win {
  position: absolute;
  overflow: hidden;
  border-radius: 1.3cqw;
  background: rgba(28, 28, 32, 0.86);
  box-shadow:
    0 1.5cqw 4cqw rgba(0, 0, 0, 0.45),
    inset 0 0 0 0.1cqw rgba(255, 255, 255, 0.12);
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 0.75cqw;
  height: 3.1cqw;
  padding: 0 1.3cqw;
}

.win-bar i {
  width: 1.1cqw;
  height: 1.1cqw;
  border-radius: 50%;
  background: #ff5f57;
}

.win-bar i:nth-child(2) {
  background: #febc2e;
}

.win-bar i:nth-child(3) {
  background: #28c840;
}

.mon-display .win {
  border-radius: 0.8cqw;
}

.mon-display .win-bar {
  height: 2.2cqw;
  gap: 0.5cqw;
  padding: 0 0.9cqw;
}

.mon-display .win-bar i {
  width: 0.75cqw;
  height: 0.75cqw;
}

/* Music window */

.win-music {
  left: 5%;
  top: 11%;
  width: 41%;
}

.music {
  display: flex;
  gap: 2cqw;
  padding: 0.6cqw 2cqw 2.2cqw;
}

.art {
  flex: none;
  width: 13cqw;
  aspect-ratio: 1;
  border-radius: 1cqw;
  background:
    radial-gradient(80% 80% at 25% 20%, #ffd26e, transparent 60%),
    radial-gradient(90% 90% at 80% 85%, #e2459c, transparent 62%),
    #5b2bd1;
}

.track {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0.6cqw;
  min-width: 0;
}

.track b {
  color: #fff;
  font-size: 1.75cqw;
  font-weight: 600;
}

.track span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.45cqw;
}

.progress {
  height: 0.5cqw;
  margin-top: 1.2cqw;
  overflow: hidden;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.18);
}

.progress::before {
  content: "";
  display: block;
  width: 42%;
  height: 100%;
  background: rgba(255, 255, 255, 0.85);
}

.controls {
  display: flex;
  justify-content: center;
  gap: 2.4cqw;
  margin-top: 1cqw;
  color: #fff;
}

.controls svg {
  width: 2.2cqw;
  height: 2.2cqw;
}

/* Chat window */

.win-chat {
  right: 4%;
  top: 16%;
  width: 45%;
  height: 58%;
}

.chat {
  display: flex;
  height: calc(100% - 3.1cqw);
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  width: 30%;
  padding: 1cqw 1.4cqw;
  background: rgba(255, 255, 255, 0.04);
}

.chat-list i {
  display: flex;
  align-items: center;
  gap: 0.8cqw;
  height: 2.6cqw;
}

.chat-list i::before {
  content: "";
  width: 2.6cqw;
  height: 2.6cqw;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c8cff, #c56bff);
}

.chat-list i:nth-child(2)::before {
  background: linear-gradient(135deg, #ffb340, #ff5e57);
}

.chat-list i:nth-child(3)::before {
  background: linear-gradient(135deg, #34d399, #0ea5e9);
}

.chat-list i:nth-child(4)::before {
  background: linear-gradient(135deg, #f472b6, #fb923c);
}

.chat-list i::after {
  content: "";
  flex: 1;
  height: 0.8cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.16);
}

.chat-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.1cqw;
  padding: 1.6cqw;
}

.bubble {
  max-width: 78%;
  height: 3.2cqw;
  border-radius: 1.6cqw;
  background: rgba(255, 255, 255, 0.13);
}

.bubble.me {
  align-self: flex-end;
  background: #2f7bf6;
}

.bubble.short {
  width: 42%;
}

.bubble.mid {
  width: 60%;
}

.bubble.long {
  width: 76%;
}

/* Dock */

.dock {
  position: absolute;
  left: 50%;
  bottom: 1.3cqw;
  display: flex;
  gap: 1cqw;
  padding: 0.9cqw;
  transform: translateX(-50%);
  border-radius: 2.2cqw;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 0.1cqw rgba(255, 255, 255, 0.2);
}

.dock i {
  width: 4.4cqw;
  height: 4.4cqw;
  border-radius: 1.1cqw;
  background: linear-gradient(160deg, #6ee7f9, #3b82f6);
}

.dock i:nth-child(2) {
  background: linear-gradient(160deg, #fda4af, #e11d48);
}

.dock i:nth-child(3) {
  background: linear-gradient(160deg, #fde68a, #f59e0b);
}

.dock i:nth-child(4) {
  background: linear-gradient(160deg, #86efac, #16a34a);
}

.dock i:nth-child(5) {
  background: linear-gradient(160deg, #c4b5fd, #7c3aed);
}

.dock i:nth-child(6) {
  background: linear-gradient(160deg, #e5e7eb, #6b7280);
}

/* Editor window on the external display */

.win-editor {
  left: 3.5%;
  right: 3.5%;
  top: 6.5%;
  bottom: 4%;
}

.editor {
  display: flex;
  height: calc(100% - 2.2cqw);
}

.editor-side {
  display: flex;
  flex-direction: column;
  gap: 0.9cqw;
  width: 19%;
  padding: 1.2cqw;
  background: rgba(255, 255, 255, 0.04);
}

.editor-side i {
  height: 0.7cqw;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.14);
}

.editor-side i:nth-child(odd) {
  width: 70%;
}

.editor-side i:nth-child(3n) {
  width: 52%;
  margin-left: 12%;
}

.code {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.05cqw;
  padding: 1.6cqw 2.2cqw;
}

.code p {
  display: flex;
  gap: 0.8cqw;
  height: 0.75cqw;
}

.code i {
  height: 100%;
  border-radius: 1cqw;
  background: rgba(255, 255, 255, 0.22);
}

.code .in {
  margin-left: 3cqw;
}

.code .in2 {
  margin-left: 6cqw;
}

.code .k {
  background: #ff7ab2;
}

.code .t {
  background: #6bdfff;
}

.code .s {
  background: #fc6a5d;
}

.code .f {
  background: #67b7a4;
}

.code .c {
  background: rgba(255, 255, 255, 0.1);
}

.w1 { width: 4cqw; }
.w2 { width: 7cqw; }
.w3 { width: 11cqw; }
.w4 { width: 16cqw; }
.w5 { width: 22cqw; }
.w6 { width: 30cqw; }

/* Shield, glance card and status */

.shield {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: #000;
  opacity: 0;
  transition: opacity 1.4s ease;
}

.glance {
  position: absolute;
  left: 8%;
  bottom: 12%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  opacity: 0;
  transition: opacity 1s ease;
}

.glance .art {
  width: 8cqw;
  opacity: 0.45;
}

.glance .track b {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.9cqw;
}

.glance .track span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.6cqw;
}

.device-label {
  position: absolute;
  left: -10%;
  right: -10%;
  top: calc(100% + 2.2cqw);
  margin: 0;
  color: var(--faint);
  font-size: max(12px, 1.3cqw);
  text-align: center;
  white-space: nowrap;
}

.device-label b {
  display: grid;
  margin-top: 0.25em;
  color: var(--fg);
  font-size: max(17px, 2.2cqw);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.device-label b span {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

/* How it works: a scroll-driven story */

.story {
  position: relative;
  height: 520vh;
}

.story-sticky {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(20px, 4vh, 48px);
  height: 100vh;
  height: 100svh;
  padding: 76px 22px 40px;
  overflow: hidden;
}

.story-captions {
  position: relative;
  width: 100%;
  max-width: 780px;
  height: clamp(150px, 22vh, 210px);
  margin: 0 auto;
  text-align: center;
}

.caption {
  position: absolute;
  inset: 0;
}

html:not(.js) .caption:not(.is-active) {
  display: none;
}

.js .caption {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}

.js .caption.is-active {
  opacity: 1;
  transform: none;
}

.caption h2 {
  font-size: clamp(2rem, 4.6vw, 3.6rem);
}

.caption p {
  max-width: 640px;
  margin: 16px auto 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.25rem);
  line-height: 1.42;
}

.desk {
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: min(1080px, calc((100svh - 400px) * 2.25));
  aspect-ratio: 2.25;
  margin: 0 auto 64px;
}

.desk .monitor {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 59%;
}

.desk .macbook {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44%;
}

/* On a phone the MacBook is the subject, so the desk grows and the monitor runs off the right edge. */
@media (max-width: 600px) {
  .desk {
    width: 165%;
    max-width: none;
    margin-left: 0;
  }

  .desk .monitor .device-label {
    display: none;
  }
}

.pointer {
  position: absolute;
  left: 72%;
  top: 34%;
  z-index: 10;
  width: 1.5cqw;
  min-width: 9px;
  filter: drop-shadow(0 0.15cqw 0.3cqw rgba(0, 0, 0, 0.5));
  transition: left 1s var(--ease), top 1s var(--ease);
}

.touch {
  position: absolute;
  left: 24%;
  top: 52%;
  z-index: 10;
  width: 5cqw;
  aspect-ratio: 1;
  margin: -2.5cqw 0 0 -2.5cqw;
  border: 0.22cqw solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.12) 75%, transparent);
  opacity: 0;
}

.video-win {
  left: 10%;
  top: 14%;
  width: 62%;
  opacity: 0;
  transition: opacity 0.5s;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(120deg, #0f2027, #2c5364, #c94b4b, #4b134f);
  background-size: 300% 300%;
}

.video::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 6%;
  height: 0.7cqw;
  border-radius: 1cqw;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0.25) 35%);
}

/* Story states */

.story[data-state="work"] .pointer {
  animation: leave 2.6s var(--ease) both;
}

@keyframes leave {
  0%,
  30% {
    left: 22%;
    top: 46%;
  }
  100% {
    left: 72%;
    top: 34%;
  }
}

.story[data-state="black"] .desk .macbook .shield,
.story[data-state="glance"] .desk .macbook .shield {
  opacity: 1;
}

.story[data-state="glance"] .glance {
  opacity: 1;
  animation: drift 12s steps(1) infinite;
}

@keyframes drift {
  0% {
    left: 8%;
    bottom: 12%;
  }
  25% {
    left: 46%;
    bottom: 58%;
  }
  50% {
    left: 12%;
    bottom: 52%;
  }
  75% {
    left: 44%;
    bottom: 16%;
  }
}

/* The finger lands on the black screen first, and the screen lights under it. */
.story[data-state="wake"] .shield,
.story[data-state="wake"] .glance {
  transition-duration: 0.15s;
  transition-delay: 0.45s;
}

.story[data-state="wake"] .touch {
  animation: tap 1.8s ease-out 0.1s both;
}

@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(1.5);
  }
  18% {
    opacity: 1;
    transform: scale(0.9);
  }
  40% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(1.7);
  }
}

.story[data-state="video"] .video-win {
  opacity: 1;
}

.story[data-state="video"] .video {
  animation: play 8s linear infinite;
}

@keyframes play {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.story[data-state="work"] .device-label .s-work,
.story[data-state="black"] .device-label .s-black,
.story[data-state="glance"] .device-label .s-glance,
.story[data-state="wake"] .device-label .s-wake,
.story[data-state="video"] .device-label .s-video {
  opacity: 1;
}

/* Feature tiles */

.features-head {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.features-head .lead {
  margin-top: 22px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--max);
  margin: clamp(56px, 7vw, 88px) auto 0;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  grid-column: span 3;
  gap: 14px;
  min-height: 420px;
  padding: clamp(28px, 3.4vw, 44px);
  overflow: hidden;
  border: 1px solid var(--tile-line);
  border-radius: var(--radius);
  background: var(--tile);
}

.tile.wide {
  grid-column: span 6;
}

.tile.third {
  grid-column: span 2;
  min-height: 360px;
}

.tile h3 {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.tile p {
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.47;
}

.tile p strong {
  color: var(--fg);
  font-weight: 600;
}

.tile-visual {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 900px) {
  .tile,
  .tile.third {
    grid-column: span 6;
    min-height: 0;
  }
}

/* Edge to edge tile */

.edge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.edge .macbook .shield,
.coverage {
  opacity: 1;
  animation: cover 6s var(--ease) infinite;
}

.edge p {
  margin-top: 14px;
}

.coverage {
  position: absolute;
  inset: 1.5%;
  z-index: 5;
  border: 0.3cqw dashed rgba(255, 255, 255, 0.22);
  border-radius: 1.6cqw;
}

@keyframes cover {
  0%,
  18% {
    opacity: 0;
  }
  34%,
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .edge {
    grid-template-columns: 1fr;
  }
}

/* Dim first tile */

.dim-screen {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1.55;
  overflow: hidden;
  border-radius: 14px;
  background: #f4f1ea;
  box-shadow: 0 0 0 6px #09090a, 0 0 0 7px #3c3c40;
}

.dim-screen .page {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 26px 30px;
}

.dim-screen .page i {
  height: 7px;
  border-radius: 4px;
  background: #c9c4b8;
}

.dim-screen .page i:first-child {
  width: 55%;
  height: 12px;
  margin-bottom: 6px;
  background: #3b3a36;
}

.dim-screen .page i:nth-child(4n) {
  width: 72%;
}

.dim-veil {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;
  animation: dim-first 7s var(--ease) infinite;
}

@keyframes dim-first {
  0%,
  22% {
    opacity: 0;
  }
  32%,
  62% {
    opacity: 0.5;
  }
  72%,
  92% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Stay on tile */

.reasons {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* Menu mock */

.menu {
  width: min(100%, 330px);
  padding: 5px;
  border-radius: 12px;
  background: rgba(40, 40, 44, 0.92);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.menu-row.is-selected {
  background: #2f6fe0;
  color: #fff;
}

.menu-row .chev {
  opacity: 0.6;
}

.menu-row.muted {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 600;
}

.menu-sep {
  height: 1px;
  margin: 5px 10px;
  background: rgba(255, 255, 255, 0.12);
}

.menu-stack {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.menu-stack .submenu {
  position: absolute;
  top: 58%;
  left: 52%;
  width: min(62%, 210px);
}

@media (max-width: 600px) {
  .menu-stack .submenu {
    left: auto;
    right: 0;
  }
}

.keys {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.keys kbd {
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(#2b2b2f, #1b1b1e);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 0 #050505;
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
}

/* Menu bar eye */

.menubar-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  width: 100%;
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
}

.menubar-strip .eye {
  position: relative;
  width: 24px;
  height: 24px;
}

.menubar-strip .eye svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.eye-open {
  animation: blink-open 6s infinite;
}

.eye-closed {
  animation: blink-closed 6s infinite;
}

@keyframes blink-open {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes blink-closed {
  0%,
  45% {
    opacity: 0;
  }
  50%,
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Screen care checklist */

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}

.checklist li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.4-5.3 6a.9.9 0 0 1-1.3.1L5.4 11a.9.9 0 1 1 1.2-1.3l1.9 1.8 4.7-5.3a.9.9 0 0 1 1.4 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.6 7.4-5.3 6a.9.9 0 0 1-1.3.1L5.4 11a.9.9 0 1 1 1.2-1.3l1.9 1.8 4.7-5.3a.9.9 0 0 1 1.4 1.2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Any display tile */

.display-switches {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 15px;
}

.switch-row small {
  display: block;
  color: var(--faint);
  font-size: 13px;
}

.switch {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.2);
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
}

.switch.on {
  background: #2f7bf6;
}

.switch.on::after {
  transform: translateX(16px);
}

.fine {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--faint);
  font-size: 14px;
}

/* Burn-in and privacy */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: clamp(48px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.split h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
}

.split .lead + .lead {
  margin-top: 20px;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

/* Final call to action */

.finale {
  text-align: center;
}

.finale img {
  width: clamp(112px, 14vw, 168px);
  height: auto;
  margin: 0 auto 36px;
}

.finale h2 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.finale .lead {
  margin-top: 20px;
}

/* Footer */

.footer {
  padding: 40px 22px 56px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
  letter-spacing: -0.01em;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: var(--max);
  margin: 0 auto;
}

.footer nav {
  display: flex;
  gap: 24px;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--fg);
}

.footer .legal {
  flex-basis: 100%;
  font-size: 12px;
}

/* Support and privacy pages */

.page-head {
  padding: calc(52px + clamp(56px, 8vw, 104px)) 22px clamp(40px, 5vw, 64px);
  text-align: center;
}

.page-head h1 {
  font-size: clamp(3rem, 7.4vw, 5.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
}

.page-head .lead {
  max-width: 680px;
  margin: 22px auto 0;
}

.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px clamp(80px, 10vw, 140px);
}

.doc h2 {
  margin: clamp(48px, 6vw, 72px) 0 18px;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  letter-spacing: -0.03em;
}

.doc h3 {
  margin: 32px 0 8px;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.doc p,
.doc li {
  color: #d2d2d7;
  font-size: 17px;
  line-height: 1.6;
}

.doc p + p,
.doc ul + p {
  margin-top: 14px;
}

.doc ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.doc li + li {
  margin-top: 8px;
}

.doc a {
  color: var(--link);
  text-decoration: none;
}

.doc a:hover {
  text-decoration: underline;
}

.doc strong {
  color: var(--fg);
  font-weight: 600;
}

.doc .updated {
  color: var(--faint);
  font-size: 15px;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 30px;
  border: 1px solid var(--tile-line);
  border-radius: 22px;
  background: var(--tile);
}

.doc .contact-card h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.contact-card p {
  color: var(--muted);
  font-size: 16px;
}

.button {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 980px;
  background: var(--fg);
  color: #000;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.doc a.button {
  color: #000;
}

.doc a.button:hover {
  text-decoration: none;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  color: var(--fg);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq .answer {
  padding: 0 0 24px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
}

.toc a:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Not found */

.not-found {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 80px 22px;
  text-align: center;
}

.not-found h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.not-found p {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 19px;
}

/* Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .story[data-state="glance"] .glance {
    animation: none;
  }
}
