/* The landing page. Dark first, like the bubble on a busy screen; the bubble's own colours (ModTheme.swift) carry the
   accents. No web fonts: the Mac's own type, which is what the product looks like. */

:root {
  --ink: #07080f;
  --ink-2: #0c0e1a;
  --ink-3: #13162a;
  --line: rgba(160, 175, 255, 0.12);
  --line-2: rgba(160, 175, 255, 0.22);
  --text: #eef1ff;
  --muted: #9aa3c7;
  --dim: #6c7499;
  /* The bubble's states. */
  --ready-a: #61d9fa;
  --ready-b: #9e85fa;
  --thinking-a: #9473fa;
  --thinking-b: #5485f7;
  --acting-a: #5499fa;
  --acting-b: #59e6bf;
  --ask-a: #ffb84d;
  --ask-b: #ff854f;
  --done-a: #59d999;
  --done-b: #4dbfd9;
  --radius: 18px;
  --max: 1180px;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* A faint glow behind the hero, as if the bubble lit the room. */
  content: "";
  position: fixed;
  inset: -20vh -10vw auto;
  height: 90vh;
  background:
    radial-gradient(40vw 40vw at 72% 30%, rgba(97, 217, 250, 0.13), transparent 70%),
    radial-gradient(38vw 38vw at 30% 10%, rgba(158, 133, 250, 0.12), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
a { color: var(--ready-a); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--ready-a); outline-offset: 3px; border-radius: 6px; }
kbd {
  font: 600 0.78em/1 var(--sans);
  padding: 0.3em 0.5em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  white-space: nowrap;
}
.sr, .trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.trap { left: -9999px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--text); color: var(--ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(24px, calc((100vw - var(--max)) / 2 + 24px));
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: linear-gradient(to bottom, rgba(7, 8, 15, 0.85), rgba(7, 8, 15, 0.55));
  border-bottom: 1px solid transparent;
}
.top.scrolled { border-bottom-color: var(--line); }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--muted); font-size: 15px; }
.top nav a:hover { color: var(--text); text-decoration: none; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: -0.01em; font-size: 19px; }
.mark:hover { text-decoration: none; }
.mark.small { font-size: 15px; }
.mark-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--ready-a), var(--ready-b), var(--acting-b), var(--ready-a));
  box-shadow: 0 0 18px rgba(97, 217, 250, 0.55);
  animation: spin 9s linear infinite;
}
.mark.small .mark-dot { width: 16px; height: 16px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font: 650 16px/1 var(--sans);
  color: #061019;
  background: linear-gradient(120deg, var(--ready-a), #a7b9ff 55%, var(--ready-b));
  box-shadow: 0 8px 30px -8px rgba(97, 217, 250, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.25, 1.4, 0.4, 1), box-shadow 0.2s;
  white-space: nowrap;
}
.button:hover { transform: translateY(-1px) scale(1.02); text-decoration: none; box-shadow: 0 12px 36px -8px rgba(97, 217, 250, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.button:active { transform: scale(0.98); }
.button[disabled] { opacity: 0.6; cursor: progress; }
.button.small { padding: 9px 16px; font-size: 14px; }
.button.big { padding: 17px 28px; font-size: 18px; }
.button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 32px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px 56px;
  min-height: min(88vh, 860px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--acting-b); box-shadow: 0 0 0 0 rgba(89, 230, 191, 0.7); animation: pulse 2.2s infinite; }
h1 {
  margin: 0;
  font-size: clamp(3rem, 7.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.shine {
  background: linear-gradient(100deg, var(--ready-a) 0%, #c6d2ff 30%, var(--ready-b) 55%, var(--acting-b) 80%, var(--ready-a) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 9s ease-in-out infinite;
}
.lede { max-width: 560px; margin: 26px 0 30px; font-size: clamp(17px, 1.6vw, 20px); color: #c3cae6; }
.cta { scroll-margin-top: 120px; }
.join { position: relative; display: flex; gap: 8px; max-width: 520px; padding: 6px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(19, 22, 42, 0.7); transition: border-color 0.2s, box-shadow 0.2s; }
.join:focus-within { border-color: rgba(97, 217, 250, 0.6); box-shadow: 0 0 0 4px rgba(97, 217, 250, 0.12); }
.join input[type="email"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 16px var(--sans); padding: 0 16px; }
.join input::placeholder { color: var(--dim); }
.join.center { margin: 0 auto; }
.join.joined { border-color: rgba(89, 217, 153, 0.6); }
.join .form-note { position: absolute; left: 22px; top: calc(100% + 10px); margin: 0; font-size: 14px; color: var(--muted); }
.join .form-note.error { color: #ff8b8f; }
.join .form-note.ok { color: var(--done-a); }
.fine { margin: 40px 0 0; color: var(--dim); font-size: 14px; }
.fine a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.agents { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 34px 0 0; color: var(--dim); font-size: 14px; }
.agents > span:first-child { margin-right: 4px; }
.chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.025); color: #c3cae6; font-size: 13px; }
.chip.ghost { border-style: dashed; color: var(--muted); }

/* The hero's bubble: blobs merged by an SVG "goo" filter, each in the colours of the bubble's state. */
.hero-bubble { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; justify-self: center; }
.goo-defs { position: absolute; }
.halo { position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(97, 217, 250, 0.35), transparent 65%); filter: blur(30px); transition: background 1.2s; }
.blob { position: absolute; inset: 0; filter: url(#goo); }
.blob span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  height: 46%;
  margin: -23% 0 0 -23%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--a), var(--b));
  transition: background 1.2s;
  will-change: transform;
}
.blob span:nth-child(2) { width: 34%; height: 34%; margin: -17% 0 0 -17%; }
.blob span:nth-child(3) { width: 30%; height: 30%; margin: -15% 0 0 -15%; }
.blob span:nth-child(4) { width: 24%; height: 24%; margin: -12% 0 0 -12%; }
.blob span:nth-child(5) { width: 18%; height: 18%; margin: -9% 0 0 -9%; }
[data-state="ready"] { --a: var(--ready-a); --b: var(--ready-b); }
[data-state="thinking"] { --a: var(--thinking-a); --b: var(--thinking-b); }
[data-state="acting"] { --a: var(--acting-a); --b: var(--acting-b); }
[data-state="ask"] { --a: var(--ask-a); --b: var(--ask-b); }
[data-state="done"] { --a: var(--done-a); --b: var(--done-b); }
.bubble-says {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(12, 14, 26, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 14px;
  color: #d6dcf5;
  white-space: nowrap;
}
.bubble-says .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--a, var(--ready-a)); transition: background 0.6s; }
.summon { position: absolute; top: 8%; right: 4%; transform: rotate(6deg); font-size: 15px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }

/* Sections */
section { scroll-margin-top: 70px; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p:not(.eyebrow) { color: #b9c0de; font-size: 18px; margin: 16px 0 0; }
h2 { margin: 0; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 780; }
h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.watch, .two, .powers, .safety, .start, .faq { max-width: var(--max); margin: 0 auto; padding: 96px 24px; }

/* The demo stage: a pretend desktop, drawn, not a video. */
.stage { margin: 0; }
.desk {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(158, 133, 250, 0.35), transparent 60%),
    radial-gradient(70% 90% at 100% 100%, rgba(89, 230, 191, 0.22), transparent 60%),
    linear-gradient(160deg, #1b2050, #121633 45%, #0d1a2c);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  font-size: clamp(8px, 1.15vw, 14px);
  user-select: none;
}
.menubar { display: flex; gap: 1.6em; align-items: center; height: 2.2em; padding: 0 1.2em; background: rgba(10, 12, 24, 0.55); color: #d6dcf5; font-size: 0.95em; }
.menubar-dot { width: 0.9em; height: 0.9em; border-radius: 50%; background: #d6dcf5; opacity: 0.8; }
.menubar .clock { margin-left: auto; opacity: 0.8; }
.win { position: absolute; border-radius: 0.9em; background: rgba(245, 247, 255, 0.96); color: #1b1f33; box-shadow: 0 1.6em 4em -1.2em rgba(0, 0, 0, 0.6); overflow: hidden; transition: transform 0.7s cubic-bezier(0.5, 0, 0.3, 1), opacity 0.6s; }
.win-bar { display: flex; align-items: center; gap: 0.45em; height: 2.3em; padding: 0 0.9em; background: #e5e8f3; border-bottom: 1px solid #d5d9e8; }
.win-bar i { width: 0.8em; height: 0.8em; border-radius: 50%; background: #c9cddc; }
.win-bar b { margin: 0 auto; font-weight: 600; font-size: 0.95em; color: #3b4058; transform: translateX(-1.5em); }
.mail .win-bar b { margin: 0 0 0 1em; transform: none; }
.files { left: 5%; top: 12%; width: 50%; height: 64%; }
.files-body { display: flex; height: calc(100% - 2.3em); }
.side { display: flex; flex-direction: column; gap: 0.5em; width: 34%; padding: 0.9em; background: #eef0f8; border-right: 1px solid #dde1ee; font-size: 0.95em; color: #4b5170; }
.side-item { padding: 0.35em 0.6em; border-radius: 0.5em; }
.folder { display: flex; justify-content: space-between; align-items: center; background: #e2e6f5; font-weight: 600; transition: background 0.4s, box-shadow 0.4s; }
.folder.glow { background: #ffe6c7; box-shadow: 0 0 0 2px #ffb84d; }
.count { font-style: normal; font-size: 0.85em; min-width: 1.6em; text-align: center; padding: 0.1em 0.45em; border-radius: 999px; background: #c9cfe6; color: #2d3250; transition: background 0.3s, transform 0.3s; }
.count.bump { background: #59d999; color: #06210f; transform: scale(1.25); }
.list { list-style: none; margin: 0; padding: 0.7em; flex: 1; }
.row { display: flex; justify-content: space-between; align-items: center; height: 2.3em; padding: 0 0.7em; border-radius: 0.5em; font-size: 0.95em; transition: background 0.3s, opacity 0.5s, transform 0.6s cubic-bezier(0.5, 0, 0.3, 1), height 0.5s, margin 0.5s; }
.row small { color: #8a90ac; font-size: 0.85em; }
.row.picked { background: #cfe0ff; }
.row.gone { opacity: 0; transform: translateX(-40%) scale(0.6); height: 0; }
.mail { right: 6%; top: 10%; width: 40%; height: 40%; }
.mail-body { padding: 0.9em 1.2em; font-size: 0.95em; }
.mail-body p { margin: 0 0 0.6em; padding-bottom: 0.5em; border-bottom: 1px solid #e3e6f0; }
.mail-body span { display: inline-block; width: 4.6em; color: #8a90ac; }
.mail-body .mail-text { border: 0; line-height: 1.5; color: #2d3250; }
.send { margin-left: auto; padding: 0.3em 1em; font-size: 0.9em; border-radius: 999px; background: #3c7cf5; color: white; font-weight: 600; transition: transform 0.2s, box-shadow 0.3s; }
.send.pressed { transform: scale(0.92); box-shadow: 0 0 0 0.35em rgba(60, 124, 245, 0.35); }
.mail.flown { transform: translate(60%, -120%) scale(0.3) rotate(8deg); opacity: 0; }

.panel {
  position: absolute;
  right: 3%;
  bottom: 5%;
  width: 37%;
  padding: 0.9em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1.1em;
  background: rgba(16, 19, 38, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--text);
  box-shadow: 0 1.5em 4em -1em rgba(0, 0, 0, 0.7);
  transform-origin: 92% 100%;
  transform: scale(0.2);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.25, 1.35, 0.4, 1), opacity 0.3s;
  z-index: 3;
}
.desk[data-scene]:not([data-scene="0"]) .panel { transform: scale(1); opacity: 1; }
.panel-ask { min-height: 2.6em; padding: 0.55em 0.75em; border-radius: 0.7em; background: rgba(255, 255, 255, 0.06); font-size: 1em; }
.caret { display: inline-block; width: 1px; height: 1.05em; margin-left: 1px; vertical-align: -0.15em; background: var(--ready-a); animation: blink 1s steps(1) infinite; }
.desk .panel-status, .desk .card, .desk .done { display: none; margin-top: 0.7em; }
.panel-status { align-items: center; gap: 0.6em; color: var(--muted); font-size: 0.92em; }
.spin { width: 0.9em; height: 0.9em; border: 2px solid rgba(148, 115, 250, 0.35); border-top-color: var(--thinking-a); border-radius: 50%; animation: spin 0.9s linear infinite; }
.desk[data-scene="2"] .panel-status { display: flex; }
.desk[data-scene="3"] .card, .desk[data-scene="4"] .card { display: block; animation: rise 0.45s cubic-bezier(0.25, 1.3, 0.4, 1); }
.desk[data-scene="5"] .done { display: flex; animation: rise 0.45s cubic-bezier(0.25, 1.3, 0.4, 1); }
.card { padding: 0.8em; border-radius: 0.8em; background: rgba(255, 159, 67, 0.12); }
.card-head { margin: 0; color: var(--ask-a); font-size: 0.82em; font-weight: 700; }
.card-title { margin: 0.25em 0 0.5em; font-weight: 650; font-size: 0.98em; }
.card ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.card li { counter-increment: step; display: flex; justify-content: space-between; gap: 0.6em; padding: 0.22em 0; font-size: 0.9em; color: #d6dcf5; transition: color 0.3s; }
.card li::before { content: counter(step); width: 1.1em; color: var(--dim); font-weight: 700; }
.card li span { flex: 1; }
.card li.now { color: white; }
.card li.now::before { color: var(--ask-a); }
.card em { font-style: normal; font-size: 0.82em; color: var(--dim); }
.card em.hot { color: var(--ask-a); font-weight: 650; }
.review { display: flex; gap: 0.45em; align-items: baseline; margin: 0.55em 0 0; font-size: 0.86em; color: var(--muted); opacity: 0; transition: opacity 0.5s; }
.review.in { opacity: 1; }
.review .ok { color: var(--done-a); font-weight: 800; }
.card-buttons { display: flex; gap: 0.5em; margin-top: 0.7em; }
.card-buttons span { padding: 0.4em 1em; border-radius: 0.55em; font-weight: 650; font-size: 0.9em; transition: transform 0.15s, box-shadow 0.3s; }
.run { background: #3c7cf5; color: white; }
.run.pressed { transform: scale(0.92); box-shadow: 0 0 0 0.35em rgba(60, 124, 245, 0.4); }
.not { border: 1px solid rgba(255, 255, 255, 0.2); color: var(--muted); }
.desk .done { align-items: center; gap: 0.5em; font-size: 0.92em; color: #d6dcf5; }
.check { display: grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--done-a); color: #06210f; font-weight: 800; font-size: 0.85em; }
.undo { margin-left: auto; padding: 0.25em 0.7em; border-radius: 0.5em; border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.9em; }

/* The real bubble and its ghost travel over the desk. Positions come from main.js. */
.real, .ghost { position: absolute; left: 0; top: 0; width: 5.2em; height: 5.2em; z-index: 4; pointer-events: none; transition: transform 0.75s cubic-bezier(0.25, 1.25, 0.4, 1); }
.real { filter: url(#goo); }
.real span { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--a), var(--b)); transition: background 0.8s, transform 1.4s ease-in-out; }
.real span:nth-child(2) { inset: 22%; transform: translate(30%, -25%); }
.real span:nth-child(3) { inset: 30%; transform: translate(-35%, 25%); }
.real.wobble span:nth-child(2) { transform: translate(-25%, 30%); }
.real.wobble span:nth-child(3) { transform: translate(30%, -30%); }
.ghost { border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, 0.85); background: radial-gradient(circle at 35% 30%, rgba(97, 217, 250, 0.45), rgba(158, 133, 250, 0.12)); box-shadow: 0 0 2em rgba(97, 217, 250, 0.35); opacity: 0; transition: transform 0.75s cubic-bezier(0.25, 1.15, 0.4, 1), opacity 0.4s; }
.ghost.on { opacity: 1; }
.outline { position: absolute; left: 0; top: 0; z-index: 3; border: 2px dashed var(--ask-a); border-radius: 0.6em; background: rgba(255, 184, 77, 0.08); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.outline.on { opacity: 1; }
.outline.solid { border-style: solid; border-color: var(--acting-a); background: rgba(84, 153, 250, 0.1); }
.outline-say { position: absolute; left: -2px; top: calc(100% + 0.4em); padding: 0.3em 0.75em; border-radius: 999px; background: rgba(12, 14, 26, 0.9); color: white; font-size: 0.85em; font-weight: 600; white-space: nowrap; }
.toast { position: absolute; right: 8%; top: 9%; padding: 0.45em 1em; border-radius: 999px; background: var(--done-a); color: #06210f; font-weight: 700; opacity: 0; transform: translateY(-0.6em); transition: opacity 0.3s, transform 0.4s; z-index: 5; }
.toast.on { opacity: 1; transform: none; }

.stage figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.stage-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; margin: 0; padding: 0; list-style: none; }
.stage-steps li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; color: var(--dim); font-size: 15px; transition: color 0.4s, border-color 0.4s, background 0.4s; }
.stage-steps li b { display: block; color: var(--muted); color: var(--muted); font-size: 16px; margin-bottom: 2px; transition: color 0.4s; }
.stage-steps li.on { color: #c3cae6; border-color: rgba(97, 217, 250, 0.45); background: rgba(97, 217, 250, 0.06); }
.stage-steps li.on b { color: var(--text); }
.replay { border: 1px solid var(--line-2); background: transparent; color: var(--text); border-radius: 999px; padding: 10px 18px; font: 600 15px var(--sans); cursor: pointer; }
.replay:hover { border-color: var(--ready-a); }

/* Any app, any agent */
.two-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(19, 22, 42, 0.8), rgba(12, 14, 26, 0.6)); }
.panel-card p { color: #b9c0de; margin: 0; }
.ladder { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ladder li { display: flex; gap: 12px; align-items: baseline; color: #b9c0de; font-size: 15px; }
.ladder b { flex: 0 0 82px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ready-a); }
.swap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.swap .chip { transition: background 0.4s, color 0.4s, border-color 0.4s; }
.swap .chip.on { background: rgba(97, 217, 250, 0.14); border-color: rgba(97, 217, 250, 0.5); color: white; }

/* Powers */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.power { position: relative; padding: 26px 22px 54px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); overflow: hidden; transition: transform 0.35s cubic-bezier(0.25, 1.3, 0.4, 1), border-color 0.3s; }
.power::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -70px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--a), var(--b)); opacity: 0.18; filter: blur(8px); transition: opacity 0.35s, transform 0.6s cubic-bezier(0.25, 1.3, 0.4, 1); }
.power:hover { transform: translateY(-4px); border-color: var(--line-2); }
.power:hover::before { opacity: 0.38; transform: scale(1.25) translate(-12px, 12px); }
.power p { margin: 0; color: #aeb6d6; font-size: 15px; }
.power kbd { position: absolute; left: 22px; bottom: 20px; }
.icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 18px; border-radius: 13px; background: linear-gradient(135deg, var(--a), var(--b)); color: #071018; font-size: 20px; font-weight: 800; }
.power[data-hue="1"] { --a: #61d9fa; --b: #9e85fa; }
.power[data-hue="2"] { --a: #9473fa; --b: #5485f7; }
.power[data-hue="3"] { --a: #ffb84d; --b: #ff854f; }
.power[data-hue="4"] { --a: #59d999; --b: #4dbfd9; }
.power[data-hue="5"] { --a: #5499fa; --b: #59e6bf; }
.power[data-hue="6"] { --a: #5cc7f2; --b: #6b8cfa; }
.power[data-hue="7"] { --a: #ff6b8a; --b: #f266b3; }
.power[data-hue="8"] { --a: #9e85fa; --b: #61d9fa; }

/* Safety */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rules li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); color: #aeb6d6; font-size: 15px; }
.rules b { display: block; margin-bottom: 6px; color: var(--text); font-size: 17px; }
.rules li::before { content: ""; display: block; width: 26px; height: 4px; margin-bottom: 16px; border-radius: 4px; background: linear-gradient(90deg, var(--ask-a), var(--ask-b)); }

/* Start */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps li { position: relative; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ink-2); }
.steps p { margin: 0; color: #aeb6d6; font-size: 15px; }
.n { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 50%; border: 1px solid var(--line-2); font-weight: 750; color: var(--ready-a); }

/* Open */
.open { padding: 40px 24px; }
.open-inner { max-width: 880px; margin: 0 auto; padding: 48px; border-radius: 28px; border: 1px solid var(--line-2); background: radial-gradient(80% 140% at 0% 0%, rgba(158, 133, 250, 0.2), transparent 60%), radial-gradient(80% 140% at 100% 100%, rgba(89, 230, 191, 0.14), transparent 60%), var(--ink-2); text-align: center; }
.open-inner p { margin: 16px auto 0; max-width: 640px; color: #b9c0de; font-size: 18px; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 22px 40px 22px 0; cursor: pointer; font-size: 18px; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 24px; font-weight: 400; transition: transform 0.3s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: -6px 0 22px; color: #aeb6d6; }

/* Final */
.final { position: relative; max-width: var(--max); margin: 0 auto; padding: 120px 24px 140px; text-align: center; overflow-x: clip; }
.final h2 { max-width: 760px; margin: 0 auto 36px; }
.final-blob { position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(97, 217, 250, 0.32), rgba(158, 133, 250, 0.18) 45%, transparent 70%); filter: blur(30px); animation: breathe 8s ease-in-out infinite; z-index: -1; }
.final .fine { margin-top: 44px; }

/* Footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; max-width: var(--max); margin: 0 auto; padding: 30px 24px 44px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.foot-links { display: flex; gap: 18px; margin-left: auto; }
.foot-links a { color: var(--muted); }
.legal { flex-basis: 100%; color: #565d80; font-size: 12px; }

/* Privacy page */
.doc { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin-bottom: 12px; }
.doc h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; }
.doc p, .doc li { color: #b9c0de; }
.doc .fine { margin-top: 8px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(89, 230, 191, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(89, 230, 191, 0); } 100% { box-shadow: 0 0 0 0 rgba(89, 230, 191, 0); } }
@keyframes shine { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { transform: translateY(0.6em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* Smaller screens */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .top nav { display: none; }
  .top { gap: 12px; }
  .top .button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; min-height: 0; text-align: left; }
  .hero-bubble { grid-row: 1; max-width: 300px; width: 70%; }
  .two-grid, .steps { grid-template-columns: 1fr; }
  .stage-steps { grid-template-columns: repeat(2, 1fr); }
  .watch, .two, .powers, .safety, .start, .faq { padding: 72px 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .rules { grid-template-columns: 1fr; }
  .join { flex-direction: column; border-radius: 18px; padding: 8px; }
  .join input[type="email"] { padding: 12px 10px; }
  .join .form-note { position: static; padding: 4px 8px 2px; }
  .fine { margin-top: 18px; }
  .open-inner { padding: 32px 22px; }
  .foot-links { margin-left: 0; }
  .top { padding: 12px 16px; }
  .hero { padding: 28px 16px 40px; }
  .final { padding: 88px 16px 100px; }
  /* The demo stands up on a phone: the windows stacked, the panel across the bottom, type large enough to read. */
  .desk { border-radius: 14px; aspect-ratio: 5 / 8; font-size: 10px; }
  .files { left: 4%; top: 7%; width: 92%; height: 36%; }
  .side { width: 30%; }
  .mail { left: 4%; right: auto; top: 45%; width: 92%; height: 12%; }
  .mail-body { padding: 0.6em 1em; }
  .mail-body p:not(.mail-text) { display: none; }
  .panel { left: 4%; right: 4%; width: auto; bottom: 2.5%; }
  .panel-ask { min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-head { display: none; }
  .stage-steps li { padding: 12px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ⌃⌥Space on the page: the bubble answers, as it does on the Mac. */
.hero-bubble.summoned .blob { animation: summon 0.7s cubic-bezier(0.25, 1.6, 0.4, 1); }
@keyframes summon { 0% { transform: scale(1); } 35% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* The confirmation page, where the email's link lands: the bubble waits for your OK, then is done. */
.confirm { max-width: 720px; margin: 0 auto; padding: 40px 24px 96px; text-align: center; }
.confirm .hero-bubble.small { width: 260px; max-width: 70vw; margin: 0 auto 40px; }
.confirm .hero-bubble.small .bubble-says { bottom: -10%; }
.confirm h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
.confirm .lede { margin: 22px auto 30px; }
.confirm section { display: none; }
.confirm[data-state="ask"] .when-ask,
.confirm[data-state="confirmed"] .when-confirmed,
.confirm[data-state="expired"] .when-expired { display: block; animation: rise 0.5s cubic-bezier(0.25, 1.3, 0.4, 1); }
.confirm-form .form-note { min-height: 1.4em; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.confirm-form .form-note.error { color: #ff8b8f; }
