/* DropAsset landing. Tokens come from design.md at the repo root (ui/theme in the app). */

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --primary: #2F57E8;
  --on-primary: #FFFFFF;
  --primary-container: #DDE3FF;
  --on-primary-container: #0B2A94;
  --surface: #F9F9FC;
  --ink: #16181D;
  --graphite: #5C616E;
  --outline: #767B88;
  --hairline: #D4D7E1;
  --c-low: #F1F2F7;
  --c: #ECEDF3;
  --c-high: #E6E8EF;
  --paper: #FFFFFF;
  --inverse: #2E3036;
  --on-inverse: #F1F2F7;
  --inverse-primary: #A4B6FF;
  --note-bg: #FFFFFF;
  --note-ink: #26282E;
  --shadow: 22 24 29;
  --finger: 22 24 29;
  --grid-line: rgb(212 215 225 / 0.55);

  /* Motion.kt springs, sampled for CSS; the duration is each one's settle time */
  --spring-gentle: linear(0, 0.054, 0.175, 0.321, 0.465, 0.594, 0.703, 0.79, 0.857, 0.907, 0.942, 0.967, 0.984, 0.994, 1, 1.003, 1.005, 1.005, 1.005, 1.004, 1.003, 1.003, 1.002, 1.001, 1);
  --gentle: 490ms;
  --spring-snappy: linear(0, 0.051, 0.17, 0.316, 0.463, 0.597, 0.711, 0.803, 0.874, 0.926, 0.963, 0.987, 1.002, 1.011, 1.014, 1.015, 1.014, 1.012, 1.01, 1.008, 1.006, 1.004, 1.003, 1.002, 1);
  --snappy: 340ms;
  --spring-bouncy: linear(0, 0.106, 0.336, 0.592, 0.812, 0.969, 1.063, 1.102, 1.104, 1.085, 1.059, 1.032, 1.012, 0.998, 0.991, 0.989, 0.99, 0.992, 0.995, 0.998, 0.999, 1.001, 1.001, 1.001, 1);
  --bouncy: 600ms;

  --page: max(24px, calc((100% - 1200px) / 2));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary: #A4B6FF;
    --on-primary: #0A1F74;
    --primary-container: #223489;
    --on-primary-container: #DDE3FF;
    --surface: #111317;
    --ink: #E3E5EB;
    --graphite: #A5AAB7;
    --outline: #8E93A0;
    --hairline: #353945;
    --c-low: #181A1F;
    --c: #1D2026;
    --c-high: #272A31;
    --paper: #1D2026;
    --inverse: #E3E5EB;
    --on-inverse: #2E3036;
    --inverse-primary: #2F57E8;
    --note-bg: #1A1B1F;
    --note-ink: #E3E5EB;
    --shadow: 0 0 0;
    --finger: 255 255 255;
    --grid-line: rgb(53 57 69 / 0.6);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --primary: #A4B6FF;
  --on-primary: #0A1F74;
  --primary-container: #223489;
  --on-primary-container: #DDE3FF;
  --surface: #111317;
  --ink: #E3E5EB;
  --graphite: #A5AAB7;
  --outline: #8E93A0;
  --hairline: #353945;
  --c-low: #181A1F;
  --c: #1D2026;
  --c-high: #272A31;
  --paper: #1D2026;
  --inverse: #E3E5EB;
  --on-inverse: #2E3036;
  --inverse-primary: #2F57E8;
  --note-bg: #1A1B1F;
  --note-ink: #E3E5EB;
  --shadow: 0 0 0;
  --finger: 255 255 255;
  --grid-line: rgb(53 57 69 / 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 1rem/1.5 "Geist", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }

/* Buttons: full pill, the only rounded-full shape on the page */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--bouncy) var(--spring-bouncy), background-color 160ms ease;
}
.button:hover { background: color-mix(in srgb, var(--primary) 88%, var(--ink)); }
.button:active { transform: scale(0.97); transition: transform var(--snappy) var(--spring-snappy); }
.button-small { height: 40px; padding: 0 18px; font-size: 0.9375rem; }
/* Google's badge as it comes: not recolored, as tall as the buttons beside it */
.play-badge { display: inline-flex; border-radius: 10px; }
.play-badge img { display: block; width: auto; height: 52px; }
.play-badge:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* Navigation */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 32px;
  padding-inline: var(--page);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; }
.brand img { border-radius: 22%; box-shadow: 0 1px 2px rgb(var(--shadow) / 0.12); }
.nav nav { margin-left: auto; display: flex; gap: 28px; }
.nav nav a { text-decoration: none; color: var(--graphite); font-weight: 500; font-size: 0.9375rem; }
.nav nav a:hover { color: var(--ink); }

/* The story: one pinned scene. The slogan gathers a word at a time while the phone acts each one out. */
.story { position: relative; height: 340dvh; }
.scene {
  position: sticky;
  top: 0;
  height: 100dvh;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  column-gap: 48px;
  padding: 72px var(--page) 0;
}
/* Invisible markers that split the pinned scroll into the three words, for site.js */
.beats { position: absolute; inset: 0; display: grid; grid-template-rows: 130dvh 80dvh 1fr; pointer-events: none; }

/* Graph paper, the slowest layer, fading out away from the phone */
.paper {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 70% 85% at 72% 50%, #000 30%, transparent 85%);
  mask-image: radial-gradient(ellipse 70% 85% at 72% 50%, #000 30%, transparent 85%);
}
.paper i {
  position: absolute;
  inset: 0 0 -260px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.scene-copy { position: relative; z-index: 4; }
.kicker { margin: 0 0 18px; max-width: 30ch; color: var(--graphite); font-size: clamp(1.05rem, 1.3vw, 1.2rem); font-weight: 500; }
.slogan {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: clamp(3.5rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.done { color: var(--primary); }
/* Each word is a row that opens from nothing, and the word rises into it from its baseline */
.w { display: grid; grid-template-rows: 1fr; grid-template-columns: 1fr; }
.w > span { min-width: 0; min-height: 0; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.w > span > span { display: block; }
.js .w {
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--snappy) var(--spring-snappy), grid-template-columns var(--snappy) var(--spring-snappy);
}
.js .w.on { grid-template-rows: 1fr; transition-duration: var(--gentle); transition-timing-function: var(--spring-gentle); }
.js .w > span > span {
  opacity: 0;
  transform: translateY(100%);
  transition: opacity var(--snappy) var(--spring-snappy), transform var(--snappy) var(--spring-snappy), color 300ms ease;
}
.js .w.on > span > span {
  opacity: 1;
  transform: none;
  transition: opacity var(--gentle) var(--spring-gentle) 60ms, transform var(--gentle) var(--spring-gentle) 60ms, color 300ms ease;
}
.w.past > span > span { color: color-mix(in srgb, var(--ink) 28%, var(--surface)); }
.captions { display: grid; max-width: 34ch; margin-top: 26px; }
.captions p { margin: 0; color: var(--graphite); font-size: clamp(1.125rem, 1.4vw, 1.25rem); line-height: 1.5; }
.js .captions p {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--snappy) var(--spring-snappy), transform var(--snappy) var(--spring-snappy);
}
.js .captions p.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition: opacity var(--gentle) var(--spring-gentle) 90ms, transform var(--gentle) var(--spring-gentle) 90ms;
}

.stage { --ph: min(74dvh, 700px); position: relative; align-self: stretch; display: grid; place-items: center; }

/* Paper sheets and bubble halos around the phone */
.sheet {
  position: absolute;
  z-index: 1;
  width: var(--size);
  height: var(--size);
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 2px rgb(var(--shadow) / 0.06), 0 16px 32px -12px rgb(var(--shadow) / 0.22);
  transform: rotate(var(--r));
}
.sheet svg { width: 78%; height: 78%; }
.sheet.front { z-index: 3; }
.halo { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; }
.halo-a { --depth: -0.3; width: 440px; height: 440px; top: -90px; right: -170px; background: color-mix(in srgb, var(--primary-container) 55%, transparent); }
.halo-b { --depth: 0.5; width: 300px; height: 300px; bottom: 2%; left: -110px; border: 1.5px solid var(--primary-container); }

/* The phone: a thin metal frame, side keys and a camera hole. Its UI is laid out in dp at 360 × 780 and scaled to fit by site.js. */
.phone {
  --bezel: 7px;
  --screen-r: calc(var(--ph) * 0.047);
  position: relative;
  z-index: 2;
  height: var(--ph);
  width: calc((var(--ph) - 2 * var(--bezel)) * 360 / 780 + 2 * var(--bezel));
  padding: var(--bezel);
  border-radius: calc(var(--screen-r) + var(--bezel));
  background: linear-gradient(145deg, #4A4E57 0%, #1A1C21 14%, #0C0D10 50%, #1A1C21 86%, #3E424A 100%);
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.18),
    inset 0 0 0 2.5px #060708,
    0 2px 4px rgb(var(--shadow) / 0.12),
    0 36px 70px -24px rgb(var(--shadow) / 0.4),
    0 70px 140px -50px rgb(var(--shadow) / 0.35);
}
/* On a dark page a black frame disappears, so the metal turns lighter, like titanium */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone { background: linear-gradient(145deg, #6A6F7A 0%, #34373E 14%, #23252A 50%, #34373E 86%, #5C616B 100%); }
}
:root[data-theme="dark"] .phone { background: linear-gradient(145deg, #6A6F7A 0%, #34373E 14%, #23252A 50%, #34373E 86%, #5C616B 100%); }
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  right: -3px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, #15171B, #4A4E57);
}
.phone::before { top: 19%; height: 11%; }
.phone::after { top: 33%; height: 6.5%; }
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: var(--screen-r); background: var(--surface); }
/* A faint reflection on the glass */
.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.09) 0%, rgb(255 255 255 / 0) 32%);
}
.ui {
  position: absolute;
  left: 0;
  top: 0;
  width: 360px;
  height: 780px;
  transform-origin: 0 0;
  transform: scale(var(--k, 1));
  font-family: "Geist", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.3;
  text-rendering: geometricPrecision;
}
.js .phone:not(.k-ready) .ui { visibility: hidden; }
.ui-over { left: var(--bezel); top: var(--bezel); z-index: 4; pointer-events: none; }
.ic { width: 24px; height: 24px; flex: none; }
.app { position: absolute; inset: 0; background: var(--surface); }

/* Status bar: the clock, the camera hole in the middle, then wifi, signal and battery with room between them */
.status { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 2px 26px 0 30px; font-size: 14px; font-weight: 600; letter-spacing: 0.2px; }
.status-icons { display: flex; align-items: center; gap: 8px; }
.wifi { width: 16px; height: 12px; background: currentColor; clip-path: polygon(50% 100%, 0% 31%, 9% 20%, 21% 11%, 35% 4%, 50% 1%, 65% 4%, 79% 11%, 91% 20%, 100% 31%); }
.signal { display: flex; align-items: flex-end; gap: 1.5px; height: 12px; }
.signal b { width: 3px; border-radius: 1px; background: currentColor; }
.signal b:nth-child(1) { height: 4px; }
.signal b:nth-child(2) { height: 6.5px; }
.signal b:nth-child(3) { height: 9px; }
.signal b:nth-child(4) { height: 12px; }
.battery { position: relative; width: 23px; height: 12px; margin-right: 3px; border: 1.5px solid currentColor; border-radius: 4px; }
.battery b { position: absolute; inset: 1.5px 24% 1.5px 1.5px; border-radius: 1.5px; background: currentColor; }
.battery::after { content: ""; position: absolute; top: 2.5px; right: -4px; width: 2px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; }
.camera { position: absolute; z-index: 6; left: 173px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 36% 36%, #3A4256 0 14%, #0B0C0F 46%); box-shadow: 0 0 0 1.5px #000; }
.gesture-pill { position: absolute; z-index: 5; left: 126px; bottom: 8px; width: 108px; height: 4px; border-radius: 2px; background: var(--ink); opacity: 0.4; }

/* A subject page of the library, scrolled to one of its sections */
.subj-bar { position: absolute; top: 40px; left: 0; right: 0; height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 8px 0 14px; }
.subj-bar b { flex: 1; font-size: 22px; font-weight: 600; letter-spacing: -0.3px; }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 9px; border-radius: 17px; background: var(--c-high); font: 500 12px/1 "Geist Mono", monospace; letter-spacing: 0.4px; }
.ink-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); }
.tabs { position: absolute; left: 16px; top: 108px; display: flex; gap: 8px; white-space: nowrap; }
.tab { display: inline-flex; align-items: baseline; gap: 6px; height: 32px; padding: 0 12px; line-height: 30px; border: 1px solid var(--hairline); border-radius: 8px; font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--ink) 82%, var(--surface)); }
.tab small { font: 500 10px/1 "Geist Mono", monospace; letter-spacing: 0.6px; color: var(--graphite); }
.tab.on { border-color: transparent; background: var(--primary-container); color: var(--on-primary-container); }
.tab.on small { color: var(--on-primary-container); }
.dock { position: absolute; z-index: 2; left: 12px; right: 12px; top: 706px; display: flex; align-items: center; gap: 10px; }
/* The page fades out under the dock, as it scrolls beneath it in the app */
.dock::before { content: ""; position: absolute; z-index: -1; left: -12px; right: -12px; top: -28px; height: 110px; background: linear-gradient(to bottom, transparent, var(--surface) 34%); }
.dock-box { flex: 1; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 26px; background: var(--c-high); color: var(--graphite); font-size: 15px; }
.dock-box .ic { width: 20px; height: 20px; color: var(--ink); }
.scope { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 6px 0 8px; border-radius: 12px; background: var(--c); color: var(--ink); font: 500 10px/1 "Geist Mono", monospace; letter-spacing: 0.4px; }
.scope .ic { width: 12px; height: 12px; color: var(--graphite); }
.hint { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-fab { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: var(--on-primary); box-shadow: 0 6px 14px -4px rgb(var(--shadow) / 0.3); }
.dock-fab .ic { width: 22px; height: 22px; }
.sec { position: absolute; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: baseline; }
.sec b { font-size: 16px; font-weight: 600; }
.sec span { font: 500 10px/1 "Geist Mono", monospace; letter-spacing: 0.6px; color: var(--graphite); }
.grid { position: absolute; left: 16px; display: grid; grid-template-columns: repeat(3, 104px); column-gap: 8px; row-gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: center; width: 104px; }
.card {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--c);
  background-image: radial-gradient(circle, var(--hairline) 1px, transparent 1.4px);
  background-size: 12px 12px;
  background-position: 2px 2px;
}
.card svg { width: 84px; height: 84px; color: var(--ink); }
.tile > span {
  width: 108px;
  margin-top: 6px;
  font-size: 13px;
  line-height: 17px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pulse-tint { position: absolute; inset: 0; background: var(--primary); opacity: 0; pointer-events: none; }
.pulse-wave { position: absolute; border-radius: 50%; background: var(--primary); opacity: 0; pointer-events: none; }
.snack {
  position: absolute;
  left: 12px;
  right: 12px;
  z-index: 3;
  top: 640px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 16px;
  border-radius: 4px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 14px;
  box-shadow: 0 6px 16px rgb(var(--shadow) / 0.2);
  opacity: 0;
}
.snack .ic { width: 22px; height: 22px; color: var(--inverse-primary); }

/* A notes app, with the bubble on top of it */
.notes { background: var(--note-bg); color: var(--note-ink); opacity: 0; }
.note-bar { position: absolute; top: 40px; left: 0; right: 0; height: 52px; display: flex; align-items: center; gap: 20px; padding: 0 16px; }
.note-bar b { flex: 1; font-size: 20px; font-weight: 600; letter-spacing: -0.2px; }
.note-clip { position: absolute; top: 96px; left: 0; right: 0; bottom: 0; overflow: hidden; }
.note-body { position: absolute; inset: 0; padding: 0 24px; }
.note-body h3 { margin: 12px 0 0; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.3px; }
.note-body p { margin: 10px 0 0; font-size: 15px; line-height: 23px; }
.note-body sub { font-size: 0.7em; }
.caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--primary); }
.slot { position: relative; height: 0; }
.dropped {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  opacity: 0;
}
.dropped svg { width: 150px; height: 150px; color: var(--note-ink); }
.panel {
  position: absolute;
  left: 16px;
  top: 168px;
  width: 288px;
  height: 320px;
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 40px -8px rgb(var(--shadow) / 0.35), 0 2px 6px rgb(var(--shadow) / 0.12);
  transform-origin: 308px 160px;
  opacity: 0;
}
.panel-tabs { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 14px; color: var(--graphite); }
.panel-tabs .ic { width: 22px; height: 22px; }
.tab-on { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--primary-container); color: var(--on-primary-container); }
.panel-grid { display: grid; grid-template-columns: repeat(4, 60px); gap: 6px; padding: 8px 14px 0; }
.panel-grid i { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 16px; background: var(--c); }
.panel-grid svg { width: 50px; height: 50px; color: var(--ink); }
.caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; font-size: 13px; font-weight: 500; color: var(--graphite); }
.caption.pressed { color: var(--ink); }
.bubble {
  position: absolute;
  left: 296px;
  top: 300px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 14px rgb(var(--shadow) / 0.28);
}
.bubble .ic { grid-area: 1 / 1; transition: transform var(--bouncy) var(--spring-bouncy), opacity 160ms ease; }
.glyph-component { width: 28px; height: 28px; }
.glyph-close { width: 18px; height: 18px; opacity: 0; transform: scale(0.4); }
.bubble.open .glyph-component { opacity: 0; transform: scale(0.4); transition: transform var(--snappy) var(--spring-snappy), opacity 120ms ease; }
.bubble.open .glyph-close { opacity: 1; transform: scale(1); }

/* What moves over the screen: a dragged drawing and fingertips */
.ghost {
  position: absolute;
  left: -52px;
  top: -52px;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: color-mix(in srgb, var(--c) 92%, transparent);
  box-shadow: 0 14px 30px -6px rgb(var(--shadow) / 0.35);
  opacity: 0;
}
.ghost svg { width: 84px; height: 84px; color: var(--ink); }
.finger {
  position: absolute;
  left: -22px;
  top: -22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(var(--finger) / 0.2);
  border: 2px solid rgb(255 255 255 / 0.75);
  box-shadow: 0 2px 8px rgb(var(--shadow) / 0.25);
  opacity: 0;
}

/* What's inside */
.inside { padding: 120px var(--page) 40px; }
.section-title { margin: 0; max-width: 16ch; font-weight: 700; font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.02; letter-spacing: -0.035em; }
.wall { position: relative; margin-top: 48px; }
.wall-track {
  height: clamp(440px, 54vw, 640px);
  overflow: clip;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 32%, transparent 90%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 7%, #000 32%, transparent 90%);
}
.wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.wall-grid i {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background-color: var(--c);
  background-image: radial-gradient(circle, var(--hairline) 1px, transparent 1.4px);
  background-size: 12px 12px;
  background-position: 2px 2px;
}
.wall-grid svg { width: 80%; height: 80%; color: var(--ink); }
.wall-copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 4px; text-align: center; }
.wall-count { margin: 0; font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.05; letter-spacing: -0.035em; }
.wall-copy p:last-child { margin: 14px auto 0; max-width: 52ch; text-wrap: pretty; color: var(--graphite); font-size: 1.125rem; }
.js .wall-grid i { opacity: 0; transform: translateY(24px) scale(0.94); }
.wall.in .wall-grid i {
  opacity: 1;
  transform: none;
  transition: opacity var(--gentle) var(--spring-gentle) var(--d, 0ms), transform var(--gentle) var(--spring-gentle) var(--d, 0ms);
}

.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 56px; }
.cell { position: relative; display: flex; flex-direction: column; min-height: 540px; padding: 36px 36px 0; overflow: clip; border-radius: 28px; background: var(--c-low); }
.cell h3 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.cell p { margin: 10px 0 0; max-width: 36ch; color: var(--graphite); line-height: 1.5; }
.cell-shot img {
  width: min(300px, 72%);
  margin: 36px auto 0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 0 0 1px var(--hairline), 0 24px 48px -12px rgb(var(--shadow) / 0.25);
}
.cell-shot-alt { background: var(--primary-container); color: var(--on-primary-container); }
.cell-shot-alt p { color: color-mix(in srgb, var(--on-primary-container) 82%, transparent); }

/* What you can make */
.make { padding: 80px var(--page) 40px; }
.section-lede { margin: 18px 0 0; max-width: 46ch; color: var(--graphite); font-size: 1.2rem; line-height: 1.5; text-wrap: pretty; }
.cell-shot { justify-content: space-between; }
.cell-shot .cell-text { margin-bottom: 36px; }
.cell-shot img { margin-top: auto; }
.pro { display: inline-block; vertical-align: 0.2em; margin-left: 6px; padding: 3px 8px; border-radius: 999px; background: var(--primary-container); color: var(--on-primary-container); font-size: 0.75rem; font-weight: 600; letter-spacing: 0; line-height: 1.2; }
.cell-shot-alt .pro, .plan-pro .pro { background: var(--paper); }
.cell-sample { padding-bottom: 36px; }
.sample { flex: 1; display: grid; place-items: center; margin: 32px 0 0; min-height: 220px; padding: 28px; border-radius: 20px; background: #FFFFFF; box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.06), 0 12px 28px -14px rgb(var(--shadow) / 0.25); }
.sample img { width: 100%; max-height: 320px; object-fit: contain; }
.bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cell-small { min-height: 460px; padding: 32px 28px 28px; }
.cell-small h3 { font-size: 1.25rem; }
.search-cell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-top: 16px; padding: 36px; border-radius: 28px; background: var(--c-low); }
.search-cell h3 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.search-cell p { margin: 10px 0 0; max-width: 36ch; color: var(--graphite); line-height: 1.5; }
.readings { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.readings li { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 10px 0 18px; border-radius: 26px; background: var(--c-high); }
.readings code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 0.95rem/1 "Geist Mono", monospace; }
/* What the reader types, as typed: no arrow ligature for -> */
.readings code, .lit { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.lit { font: 500 0.92em/1 "Geist Mono", monospace; }
.readings span { flex: none; padding: 7px 12px; border-radius: 999px; background: var(--paper); color: var(--primary); font-size: 0.85rem; font-weight: 600; }

/* Your own pictures */
.own { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; padding: 120px var(--page) 40px; }
.own-steps { margin: 36px 0 0; display: grid; gap: 22px; }
.own-steps dt { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; }
.own-steps dt .ic { color: var(--primary); }
.own-steps dd { margin: 4px 0 0 34px; max-width: 40ch; color: var(--graphite); line-height: 1.5; }
.own-styles { padding: 32px; border-radius: 28px; background: var(--c-low); }
.own-styles-title { margin: 0 0 20px; font-weight: 600; font-size: 1.125rem; line-height: 1.4; }
.own-styles-title .pro { margin: 0 6px 0 0; vertical-align: 0.1em; }
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; margin: 0; padding: 0; list-style: none; }
.styles img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: #FFFFFF; box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.06); }
.styles span { display: block; margin-top: 6px; font-size: 0.8rem; color: var(--graphite); }

/* Made for notes */
.for-notes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 120px var(--page); }
.facts { margin: 36px 0 0; display: grid; gap: 22px; }
.facts dt { font-weight: 600; font-size: 1.125rem; }
.facts dd { margin: 4px 0 0; max-width: 40ch; color: var(--graphite); line-height: 1.5; }
.inks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 16px; }
.ink { margin: 0; }
.swatch {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.06), 0 12px 28px -14px rgb(var(--shadow) / 0.25);
}
.swatch svg { width: 70%; height: 70%; }
.ink-black .swatch { color: #000000; }
.ink-blue .swatch { color: #1D4ED8; }
.ink-red .swatch { color: #C62828; }
.ink-white .swatch { color: #FFFFFF; background: #1E1E1E; }
.ink figcaption { margin-top: 10px; font: 500 0.8125rem/1 "Geist Mono", monospace; letter-spacing: 0.06em; color: var(--graphite); }

/* Where it works */
.works { margin-inline: var(--page); padding: 96px 16px; text-align: center; border-block: 1px solid var(--hairline); }
.works-line { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.5rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
.apps { display: grid; grid-template-columns: repeat(4, minmax(0, 168px)); justify-content: center; gap: 24px; margin: 48px 0 0; padding: 0; list-style: none; }
.apps li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.apps img { width: 72px; height: 72px; margin-bottom: 10px; border-radius: 22%; box-shadow: 0 0 0 1px rgb(var(--shadow) / 0.08), 0 10px 24px -12px rgb(var(--shadow) / 0.35); }
.apps b { font-weight: 600; }
.apps span { font: 500 0.75rem/1.4 "Geist Mono", monospace; letter-spacing: 0.02em; color: var(--graphite); }
.works-note { margin: 40px auto 0; max-width: 48ch; color: var(--graphite); }
.works-legal { margin: 10px auto 0; max-width: 60ch; color: var(--graphite); font-size: 0.8rem; }

/* Free and Pro */
.plans { padding: 120px var(--page) 0; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 48px; }
.plan { padding: 36px; border-radius: 28px; background: var(--c-low); }
.plan-pro { background: var(--primary-container); color: var(--on-primary-container); }
.plan h3 { margin: 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.plan ul { display: grid; gap: 14px; margin: 20px 0 0; padding: 0; list-style: none; }
.plan li { position: relative; padding-left: 22px; line-height: 1.5; color: var(--graphite); }
.plan-pro li { color: color-mix(in srgb, var(--on-primary-container) 82%, transparent); }
.plan li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.plan b { color: var(--ink); font-weight: 600; }
.plan-pro b { color: var(--on-primary-container); }

/* Closing */
.closing { position: relative; isolation: isolate; overflow: clip; display: flex; flex-direction: column; align-items: center; padding: 140px 16px; text-align: center; }
.closing-icon { width: 128px; height: 128px; border-radius: 22%; box-shadow: 0 1px 2px rgb(var(--shadow) / 0.1), 0 24px 48px -16px rgb(var(--shadow) / 0.3); }
.closing .section-title { max-width: none; margin-top: 36px; }
.closing p { margin: 14px 0 0; color: var(--graphite); font-size: 1.2rem; }
.closing .actions { justify-content: center; }
.halo-c { z-index: -1; width: 520px; height: 520px; left: -260px; top: 110px; background: color-mix(in srgb, var(--primary-container) 55%, transparent); }
.halo-d { z-index: -1; width: 360px; height: 360px; right: -170px; bottom: 120px; border: 1.5px solid var(--primary-container); }

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 28px var(--page) 40px;
  border-top: 1px solid var(--hairline);
  color: var(--graphite);
  font-size: 0.9rem;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 22%; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer-legal { flex-basis: 100%; margin: 0; font-size: 0.75rem; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Entrances */
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity var(--gentle) var(--spring-gentle), transform var(--gentle) var(--spring-gentle); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .scene-copy > * { animation: rise var(--gentle) var(--spring-gentle) both; }
  .scene-copy > .slogan { animation-delay: 70ms; }
  .scene-copy > .captions { animation-delay: 140ms; }
  .scene-copy > .actions { animation-delay: 210ms; }
  .caret { animation: blink 1s steps(1) infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes blink { 50% { opacity: 0; } }

/* Parallax, tied to the scroll position and run by the compositor. From slowest to fastest: the paper,
   the halos, the sheets behind the phone, the phone turning to face you, the sheets in front of it.
   Browsers without scroll timelines keep everything still. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .story { view-timeline: --story block; }
    .paper i,
    .stage .sheet,
    .stage .halo,
    .phone {
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: --story;
      animation-range: contain 0% contain 100%;
    }
    .paper i { animation-name: paper; }
    .stage .sheet, .stage .halo { animation-name: drift; }
    .phone { animation-name: phone-turn; }
    .closing .float { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    .wall-grid { animation: wall-drift linear both; animation-timeline: view(); animation-range: cover; }
  }
}
@keyframes paper { to { translate: 0 -260px; } }
@keyframes drift {
  from { translate: calc(var(--dx, 0px) * -1) calc(var(--depth) * 240px); rotate: calc(var(--spin, 6deg) * -1); }
  to { translate: var(--dx, 0px) calc(var(--depth) * -240px); rotate: var(--spin, 6deg); }
}
@keyframes phone-turn {
  0% { transform: perspective(1600px) translateY(36px) rotateX(10deg) rotateY(-20deg) scale(0.92); }
  30% { transform: perspective(1600px) translateY(0) rotateX(0deg) rotateY(0deg) scale(1); }
  100% { transform: perspective(1600px) translateY(-24px) rotateX(-4deg) rotateY(8deg) scale(1); }
}
@keyframes wall-drift {
  from { translate: 0 40px; }
  to { translate: 0 -160px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .wall-grid i, .js .w > span > span, .js .captions p { transform: none; }
  .js .w { transition: none; }
  .app, .panel, .dropped, .ghost, .finger, .snack { transition: opacity 200ms ease; }
}

/* Phones and narrow tablets: the phone on top, and the slogan gathering in one line under it */
@media (max-width: 767px) {
  :root { --page: 16px; }
  .nav { height: 64px; }
  .nav nav { display: none; }
  .nav .button-small { margin-left: auto; }
  .story { height: 320dvh; }
  .beats { grid-template-rows: 120dvh 80dvh 1fr; }
  .scene {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    row-gap: 12px;
    padding: 64px 16px max(20px, env(safe-area-inset-bottom));
  }
  .paper {
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 34%, #000 30%, transparent 85%);
    mask-image: radial-gradient(ellipse 90% 60% at 50% 34%, #000 30%, transparent 85%);
  }
  .stage { --ph: min(52dvh, 480px); order: -1; }
  .kicker { margin-bottom: 8px; font-size: 0.95rem; }
  .slogan { flex-direction: row; font-size: clamp(2rem, 9.4vw, 2.6rem); line-height: 1.05; letter-spacing: -0.04em; }
  .w > span > span { white-space: nowrap; padding-right: 0.24em; }
  .js .w { grid-template-rows: 1fr; grid-template-columns: 0fr; }
  .js .w.on { grid-template-columns: 1fr; }
  .captions { margin-top: 10px; }
  .captions p { font-size: 1rem; line-height: 1.45; }
  .scene-copy .actions { display: none; }
  .sheet { width: calc(var(--size) * 0.62); height: calc(var(--size) * 0.62); border-radius: 14px; }
  .sheet.wide, .sheet.low { display: none; }
  .halo-a { width: 300px; height: 300px; right: -150px; }
  .inside { padding-top: 88px; }
  .wall-grid { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
  .wall-track {
    height: 500px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 42%, transparent 84%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 42%, transparent 84%);
  }
  .wall-copy { position: relative; margin-top: -92px; padding: 0; }
  .bento, .bento-3, .for-notes, .own, .plan-grid, .search-cell { grid-template-columns: minmax(0, 1fr); }
  .cell { min-height: 480px; padding: 28px 24px 0; }
  .cell-small, .cell-sample { min-height: 0; padding-bottom: 24px; }
  .make { padding-top: 64px; }
  .search-cell { gap: 20px; padding: 28px 24px; }
  .own { gap: 40px; padding-top: 88px; }
  .own-styles { padding: 24px 20px; }
  .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .plans { padding-top: 88px; }
  .plan { padding: 28px 24px; }
  .for-notes { gap: 40px; padding-block: 88px; }
  .works { padding-block: 64px; }
  .closing { padding-block: 104px; }
}
