:root {
  /* The page: white, a soft grey, and one blue. */
  --bg: #ffffff;
  --panel: #f4f4f5;
  --line: #e7e7ea;
  --ink: #111114;
  --soft: #6a6a73;
  --faint: #9a9aa3;
  --blue: #2f3bd9;
  --blue-soft: #eceefd;
  /* The app shown on it keeps its own dark colours. */
  --app: #131314;
  --app-card: #1c1c1f;
  --app-line: rgba(255, 255, 255, 0.09);
  --app-text: rgba(255, 255, 255, 0.93);
  --app-soft: rgba(255, 255, 255, 0.58);
  --app-blue: #5c8fff;
  --green: #30d158;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --page: min(1160px, 100vw - 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg[data-icon] { width: 1em; height: 1em; flex: none; }
canvas.picture { display: block; width: 100%; image-rendering: pixelated; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

/* ---- Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 max(20px, (100vw - 1160px) / 2);
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: blur(14px) saturate(1.6);
  border-bottom: 1px solid transparent;
}

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.mark { width: 18px; height: 18px; border: 3.5px solid var(--blue); border-radius: 50%; }
.nav nav { display: flex; gap: 30px; font-size: 14.5px; color: var(--soft); }
.nav nav a:hover { color: var(--ink); }

.button {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  font-size: 15.5px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { background: #2530c4; transform: translateY(-1px); box-shadow: 0 8px 24px rgb(47 59 217 / 0.24); }
.button:active { transform: scale(0.98); }
.button.small { height: 36px; padding: 0 16px; font-size: 14px; }
.button.ghost { background: var(--panel); color: var(--ink); }
.button.ghost:hover { background: #ebebee; box-shadow: none; }

/* ---- Hero: a story told by scrolling. --p runs 0 to 1 over it. */

.hero { position: relative; height: 300vh; }

.scene {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  display: grid;
  grid-template-rows: 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  overflow: clip;
}

.copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 22px;
  padding: 0 20px 6vh;
  text-align: center;
  opacity: calc(1 - var(--p, 0) * 3.4);
  transform: translateY(calc(var(--p, 0) * -70px));
  pointer-events: none;
}
.copy > * { pointer-events: auto; }
.copy[inert] > * { pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13.5px; font-weight: 500; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

h1 { font-size: clamp(46px, 7.6vw, 96px); font-weight: 500; line-height: 0.98; letter-spacing: -0.05em; }
.sub { max-width: 540px; font-size: clamp(16px, 1.5vw, 19px); color: var(--soft); text-wrap: balance; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }

/* A grey stage with a field of dots fading in at its foot. */
.inset {
  position: relative;
  border-radius: 28px;
  background: var(--panel);
}
.inset::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  border-radius: 0 0 28px 28px;
  background: radial-gradient(circle, rgb(47 59 217 / 0.22) 1px, transparent 1.4px) 0 0 / 9px 9px;
  mask: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000), linear-gradient(transparent, #000);
  mask-composite: intersect;
  pointer-events: none;
}

/* ---- The app, drawn. Everything in it is sized from the desk's width. */

.desk {
  /* The screen arrives once the headline has gone. */
  --frame: clamp(0, (var(--p, 0) - 0.32) * 3.4, 1);
  position: relative;
  width: min(1180px, 100vw - 40px, (100vh - 190px) * 1180 / 770);
  aspect-ratio: 1180 / 770;
  container-type: inline-size;
  color: var(--app-text);
  text-align: left;
}
.desk > * { font-size: clamp(5px, 1cqw, 12px); }

.screen {
  position: absolute;
  inset: 0;
  border-radius: 1.5em;
  background: var(--app);
  box-shadow: 0 30px 80px rgb(20 20 50 / 0.28), 0 4px 14px rgb(20 20 50 / 0.12);
  overflow: hidden;
  opacity: var(--frame);
  transform: scale(calc(0.94 + var(--frame) * 0.06));
}
.screen .picture { height: 50%; }

/* Each piece knows how far it starts from its place (--dx, --dy, worked out
   from where it floats around the headline) and its tilt. */
.piece {
  --away: calc(1 - clamp(0, (var(--p, 0) - 0.06) * 1.9, 1));
  transform:
    translate(calc(var(--dx, 0) * var(--away) * 1px), calc(var(--dy, 0) * var(--away) * 1px))
    rotate(calc(var(--r, 0) * var(--away) * 1deg))
    scale(calc(1 + var(--away) * 0.1));
  box-shadow: 0 1.6em 4em rgb(20 20 50 / calc(var(--away) * 0.3));
  will-change: transform;
}

.menubar { position: absolute; inset: 0 0 auto; font-size: 1em; display: flex; align-items: center; gap: 1.4em; height: 2.5em; padding: 0 1.2em; font-size: 0.95em; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.menubar span { width: 0.9em; height: 0.9em; border: 0.22em solid currentColor; border-radius: 50%; }
.menubar i { font-style: normal; font-weight: 400; opacity: 0.75; }

.composer { position: absolute; top: 36%; left: 27%; width: 46%; opacity: clamp(0, (var(--p, 0) - 0.3) * 5, 1); transition: opacity 0.3s ease; padding: 1.1em 1.2em; border: 1px solid var(--app-line); border-radius: 1.3em; background: rgb(38 38 42 / 0.82); backdrop-filter: blur(18px) saturate(1.4); }
.prompt { display: block; margin-bottom: 1.5em; color: var(--app-soft); font-size: 1.08em; }
.composer .row { display: flex; align-items: center; justify-content: space-between; color: var(--app-soft); }
.hint { display: inline-flex; align-items: center; gap: 0.5em; }
.send { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.08); }

.grid { position: absolute; inset: 51.5% 8% auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9em; transition: opacity 0.3s ease; }

/* The other things the desk can show: an open folder, a conversation. */
.folder, .talk { position: absolute; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.folder { inset: 50% 8% 4%; }
.folder p { display: flex; align-items: center; gap: 0.5em; margin-bottom: 1.4em; color: var(--app-soft); font-weight: 500; }
.folder .icons { grid-template-columns: repeat(9, 1fr); gap: 1.6em 0.4em; margin: 0; }
.folder .icon { font-size: 0.92em; gap: 0.6em; }
.folder .icon b { width: 4.8em; height: 4.8em; border-radius: 0.8em; }
.folder .icon b::before { width: 3.6em; height: 2.8em; border-radius: 0.5em; box-shadow: 0 -0.4em 0 -0.1em #5aa9ee inset; }
.folder .icon.doc b::before { width: 2.8em; height: 3.6em; box-shadow: none; }
.folder .icon.pic b::before { width: 3.4em; height: 3.4em; box-shadow: 0 0 0 0.25em #f4f4f2 inset; }
.folder .icon span { max-width: 7em; }
.talk { inset: 0; display: flex; flex-direction: column; gap: 1.1em; padding: 5em 22% 2.4em; border-radius: 1.5em; background: rgb(19 19 20 / 0.7); font-size: clamp(5px, 1.08cqw, 13px); }
.talk .you { align-self: flex-start; padding: 0.6em 1em; border: 1px solid var(--app-line); border-radius: 1em; background: rgb(38 38 42 / 0.85); }
.talk .tool { font-family: var(--mono); font-size: 0.9em; color: var(--app-soft); }
.talk .reply { position: static; height: auto; margin-top: auto; padding: 1em 1.2em; border-radius: 1.2em; color: var(--app-soft); font-size: 1em; }
.desk[data-view="folder"] .grid, .desk[data-view="talk"] .grid, .desk[data-view="talk"] .composer { opacity: 0; pointer-events: none; }
.desk[data-view="folder"] .folder, .desk[data-view="talk"] .talk { opacity: 1; visibility: visible; }

/* The invitation under the screen. */
.play { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; opacity: clamp(0, (var(--p, 0) - 0.72) * 6, 1); }
.play strong { font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--soft); font: 500 14px var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--bg); color: var(--blue); box-shadow: 0 1px 3px rgb(20 20 50 / 0.12); }

.w { display: flex; flex-direction: column; gap: 0.9em; height: 13.4em; padding: 1.1em; overflow: hidden; border: 1px solid var(--app-line); border-radius: 1.3em; background: var(--app-card); }
.w h3 { display: flex; align-items: center; gap: 0.5em; font-size: 1em; font-weight: 500; letter-spacing: 0; }
.w h3 svg { color: var(--app-soft); font-size: 1.15em; }
.w h3 em { font-style: normal; font-weight: 400; color: var(--app-soft); }
.w h3 a { margin-left: auto; font-size: 0.82em; font-weight: 400; color: var(--app-blue); }

.rows { display: grid; gap: 0.75em; }
.rows li { display: flex; align-items: center; gap: 0.65em; white-space: nowrap; }
.rows i { margin-left: auto; padding-left: 0.6em; font-style: normal; font-size: 0.82em; color: var(--app-soft); font-variant-numeric: tabular-nums; }
.fold { width: 1.25em; height: 1em; border-radius: 0.2em; background: linear-gradient(#6cb8f6, #3d94e6); }
.events b { width: 0.22em; height: 1.05em; border-radius: 1px; background: var(--c); }
.todo b { width: 1em; height: 1em; border: 0.12em solid var(--app-soft); border-radius: 50%; }
.mail b { width: 0.45em; height: 0.45em; border-radius: 50%; }
.mail .unread { font-weight: 500; }
.mail .unread b { background: var(--app-blue); }
.mail li { overflow: hidden; }

.playing { display: flex; gap: 1.1em; align-items: stretch; margin: auto 0; }
.cover { width: 6.6em; aspect-ratio: 1; border-radius: 0.9em; background: radial-gradient(circle at 30% 30%, #d9c7a3, #7a5c3d 55%, #2b2019); }
.playing div { display: flex; flex-direction: column; min-width: 0; }
.playing strong { font-weight: 600; }
.playing small { font-size: 0.82em; color: var(--app-soft); }
.controls { display: flex; align-items: center; gap: 0.9em; margin-top: auto; font-size: 1.25em; }
.controls b { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: rgba(255, 255, 255, 0.08); }

.weather { display: flex; flex-direction: column; flex: 1; }
.now { display: flex; align-items: center; justify-content: space-between; }
.now span { display: grid; }
.now strong { font-size: 2.7em; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.now small { font-size: 0.82em; }
.now small i { font-style: normal; color: var(--app-soft); }
.now b { display: grid; place-items: center; width: 2.1em; height: 2.1em; border-radius: 50%; background: rgba(255, 255, 255, 0.07); font-size: 2em; }
.weather ol { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: auto; padding-top: 0.8em; border-top: 1px solid var(--app-line); text-align: center; font-size: 0.82em; color: var(--app-soft); }
.weather ol li { display: grid; justify-items: center; gap: 0.35em; }
.weather ol svg { font-size: 1.5em; color: var(--app-text); }
.weather ol i { font-style: normal; color: var(--app-text); font-variant-numeric: tabular-nums; }

.rings { display: grid; grid-template-columns: repeat(2, 4.1em); gap: 0.8em 2em; place-content: center; flex: 1; }
.ring { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--app-card) 83%, transparent 84%), conic-gradient(var(--green) calc(var(--level) * 1%), rgba(255, 255, 255, 0.08) 0); }
.ring svg { grid-area: 1 / 1; font-size: 1.75em; }
/* Charging: the device gives way to a green bolt, then comes back. */
.ring.charging svg:first-child { animation: give-way 7s ease-in-out infinite; }
.ring.charging svg:last-child { color: var(--green); opacity: 0; animation: take-turn 7s ease-in-out infinite; }
@keyframes give-way { 0%, 52% { opacity: 1; transform: scale(1); } 64%, 86% { opacity: 0; transform: scale(0.4); } 98%, 100% { opacity: 1; transform: scale(1); } }
@keyframes take-turn { 0%, 52% { opacity: 0; transform: scale(0.4); } 64%, 86% { opacity: 1; transform: scale(1); } 98%, 100% { opacity: 0; transform: scale(0.4); } }

.focus { display: grid; grid-template-columns: 1fr auto; align-items: center; flex: 1; }
.focus strong { font-size: 3.6em; font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.focus button { display: grid; place-items: center; width: 3.2em; height: 3.2em; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: inherit; font-size: 1.1em; cursor: pointer; }
.focus button:hover { background: rgba(255, 255, 255, 0.16); }
.focus .bar { grid-column: 1 / -1; align-self: end; height: 0.25em; border-radius: 1em; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.focus .bar i { display: block; width: 0; height: 100%; background: var(--app-text); }

/* ---- Intro line */

.intro { width: var(--page); margin: 0 auto; padding: 120px 0 56px; }
h2 { font-size: clamp(32px, 4.8vw, 60px); font-weight: 500; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
.intro span { color: var(--faint); }

/* ---- Cards */

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: var(--page); margin: 0 auto; }

.card { display: flex; flex-direction: column; gap: 26px; padding: 8px; border: 1px solid var(--line); border-radius: 36px; background: var(--bg); scroll-margin-top: 84px; }
.card.wide { grid-column: 1 / -1; }
.card > header { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px 14px; padding: 28px 28px 0; }
.card > header h3 { grid-column: 1 / -1; font-size: clamp(24px, 2.7vw, 34px); font-weight: 500; line-height: 1.1; letter-spacing: -0.035em; text-wrap: balance; }
.card > header > p:not(.label) { grid-column: 1 / -1; max-width: 46ch; color: var(--soft); }

.tile { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); color: var(--blue); font-size: 20px; }
.label { color: var(--blue); font-size: 20px; font-weight: 500; letter-spacing: -0.025em; }

.inset { flex: 1; padding: 28px; overflow: hidden; }
.inset.bleed { padding-bottom: 0; }
.inset > * { position: relative; z-index: 1; }

/* Widgets card: three figures and a list */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stats div { display: grid; gap: 2px; padding: 18px 20px; border-radius: 20px; background: var(--bg); }
.stats small { font-size: 14px; color: var(--soft); }
.stats strong { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.stats em { justify-self: start; padding: 1px 7px; border-radius: 6px; background: #e8f6ec; color: #1f7a3d; font: 500 12.5px var(--sans); }

.table { margin-top: 12px; padding: 6px; border: 1px solid var(--line); border-radius: 26px; background: var(--bg); }
.table > p { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 500; }
.table > p svg { color: var(--soft); font-size: 18px; }
.table ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; padding: 10px 18px; border-radius: 20px; background: var(--panel); }
.table li { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-size: 15.5px; }
.table li svg { color: var(--blue); font-size: 18px; }
.table li i { margin-left: auto; font-style: normal; font-size: 14px; color: var(--soft); text-align: right; }

/* A piece of the app inside a card */
.app { position: relative; border-radius: 18px 18px 0 0; background: var(--app); color: var(--app-text); box-shadow: 0 24px 60px rgb(20 20 50 / 0.22); overflow: hidden; }

.files { height: 380px; padding: 18px 20px; user-select: none; cursor: crosshair; touch-action: none; }
.files .bar { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--app-soft); }
.files .bar span { display: inline-flex; align-items: center; gap: 6px; }
.files .count { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-variant-numeric: tabular-nums; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px 4px; margin-top: 20px; }
.icon { display: grid; justify-items: center; gap: 6px; font-size: 11.5px; text-align: center; }
.icon b { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 10px; }
.icon b::before { content: ""; width: 42px; height: 32px; border-radius: 6px; background: linear-gradient(#6cb8f6, #3d94e6); box-shadow: 0 -5px 0 -1px #5aa9ee inset; }
.icon.doc b::before { width: 32px; height: 42px; border-radius: 5px; background: linear-gradient(#f4f4f2, #cfcfcb); box-shadow: none; }
.icon.pic b::before { width: 40px; height: 40px; border-radius: 6px; background: linear-gradient(135deg, #e8b98a, #8a6ea8 60%, #3a4a7a); box-shadow: 0 0 0 3px #f4f4f2 inset; }
.icon span { max-width: 76px; padding: 1px 6px; border-radius: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon.picked b { background: rgba(255, 255, 255, 0.12); }
.icon.picked span { background: var(--app-blue); }
.sweep { position: absolute; display: none; border: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.12); pointer-events: none; }

.chat { height: 380px; }
.chat > .picture { position: absolute; inset: 0 0 auto; height: 62%; opacity: 0.45; }
.thread { position: absolute; inset: 22px 24px 78px; display: flex; flex-direction: column; justify-content: flex-end; gap: 11px; font-size: 14px; }
.thread p { max-width: 90%; opacity: 0; transform: translateY(8px); transition: opacity 0.4s ease, transform 0.4s ease; }
.thread p.in { opacity: 1; transform: none; }
.thread .you { align-self: flex-start; padding: 8px 13px; border: 1px solid var(--app-line); border-radius: 13px; background: rgb(38 38 42 / 0.85); backdrop-filter: blur(12px); }
.thread .tool { font: 400 12px/1.5 var(--mono); color: var(--app-soft); }
.thread .ask { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 10px 12px; border: 1px solid var(--app-line); border-radius: 13px; background: rgb(28 28 31 / 0.92); font: 400 12px/1.4 var(--mono); }
.thread .ask b { margin-left: auto; padding: 4px 11px; border-radius: 7px; background: var(--app-blue); font: 500 12.5px var(--sans); white-space: nowrap; }
.thread .ask i { padding: 4px 11px; border-radius: 7px; background: rgba(255, 255, 255, 0.09); font: 500 12.5px var(--sans); white-space: nowrap; }
.reply { position: absolute; inset: auto 24px 22px; display: flex; align-items: center; height: 42px; padding: 0 16px; border: 1px solid var(--app-line); border-radius: 15px; background: rgb(38 38 42 / 0.85); backdrop-filter: blur(12px); font-size: 14px; }
.reply b { width: 1.5px; height: 18px; margin-left: 1px; background: var(--app-text); animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Picture card: words beside the picture */
.card.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px; }
.card.split > header { align-content: center; padding: 28px; }
.card.split .inset { padding: 0; min-height: 360px; }
.card.split .inset::after { display: none; }
.card.split .picture { position: absolute; inset: 0; height: 100%; border-radius: 28px; }
.swatches { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.swatches button { height: 36px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--soft); font: 500 14px var(--sans); cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.swatches button:hover { color: var(--ink); }
.swatches button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---- Three promises */

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; width: var(--page); margin: 16px auto 0; }
.trio div { display: grid; align-content: start; gap: 12px; padding: 32px; border-radius: 28px; background: var(--panel); }
.trio h3 { margin-top: 6px; font-size: 20px; font-weight: 500; letter-spacing: -0.025em; }
.trio p { color: var(--soft); font-size: 15.5px; }
.trio .tile { background: var(--bg); }

/* ---- Questions */

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 88px); width: var(--page); margin: 0 auto; padding: 120px 0 100px; }
.faq h2 { font-size: clamp(30px, 3.8vw, 48px); }
.list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint); transform: rotate(45deg) translate(-3px, -3px); transition: transform 0.25s ease; }
details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
summary:hover { color: var(--blue); }
details p { max-width: 60ch; padding: 0 0 22px; color: var(--soft); }
code { padding: 2px 6px; border-radius: 6px; background: var(--panel); font: 400 0.9em var(--mono); }

/* ---- Closing */

.closing { position: relative; display: grid; justify-items: center; gap: 16px; width: var(--page); margin: 0 auto; padding: 96px 20px; border-radius: 36px; background: var(--blue); color: #fff; text-align: center; overflow: hidden; }
.closing::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, rgb(255 255 255 / 0.3) 1px, transparent 1.4px) 0 0 / 9px 9px; mask: linear-gradient(transparent 30%, #000); }
.closing > * { position: relative; }
.closing p { color: rgb(255 255 255 / 0.78); font-size: 18px; }
.closing .button { margin-top: 10px; background: #fff; color: var(--blue); }
.closing .button:hover { background: #f1f2ff; box-shadow: 0 8px 24px rgb(0 0 40 / 0.25); }

footer { display: flex; justify-content: space-between; align-items: center; width: var(--page); margin: 0 auto; padding: 32px 0 44px; font-size: 14px; color: var(--soft); }
footer nav { display: flex; gap: 22px; }
footer a:hover { color: var(--ink); }

/* ---- Narrow screens */

@media (max-width: 860px) {
  .nav nav { display: none; }
  .hero { height: auto; }
  .scene { position: static; height: auto; display: grid; gap: 28px; padding: 48px 0 8px; overflow: visible; }
  .copy { position: static; opacity: 1; transform: none; padding: 0 20px; }
  .desk { --frame: 1; width: calc(100vw - 24px); aspect-ratio: auto; padding: 46% 10px 10px; }
  .desk > * { font-size: 10.5px; }
  .screen .picture { height: 240px; }
  .piece { transform: none; box-shadow: none; }
  .composer { position: relative; top: auto; left: auto; width: auto; margin-bottom: 10px; opacity: 1; }
  .grid { position: static; grid-template-columns: repeat(2, 1fr); }
  .folder { position: static; display: none; }
  .desk[data-view="folder"] .folder { display: block; }
  .desk[data-view="folder"] .grid { display: none; }
  .folder .icons { grid-template-columns: repeat(4, 1fr); }
  .talk { padding: 4em 1.4em 1.4em; font-size: 12px; }
  .play { opacity: 1; padding: 0 12px; }
  .cards, .trio, .faq, .card.split { grid-template-columns: 1fr; }
  .card.split .inset { min-height: 260px; }
  .intro { padding: 72px 0 36px; }
  .faq { padding: 72px 0; }
  .table ul { grid-template-columns: 1fr; }
  .table li i { display: none; }
  .card > header { padding: 22px 20px 0; }
  .inset { padding: 16px; }
}

@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .w { height: auto; min-height: 12.5em; }
  .stats { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; }
  .scene { position: static; height: auto; padding: 48px 0 24px; gap: 32px; }
  .copy { position: static; opacity: 1; transform: none; }
  .desk { --frame: 1; }
  .piece { transform: none; box-shadow: none; }
  .composer, .play { opacity: 1; }
  .ring.charging svg, .reply b { animation: none; }
  .ring.charging svg:last-child { opacity: 0; }
  .thread p, .button { transition: none; }
}
