/* AnyBubble site. Brand: Ink #252C52, Mint #6FE3C6, Deep ink #151830, Mist #EEF0F7.
   One typeface (Gabarito, OFL, self-hosted: the CSP allows no font hosts). Mint is too light for
   text on white, so light themes accent with Ink. The hero is always Ink, in both themes. */

@font-face {
  font-family: "Gabarito";
  src: url("/fonts/gabarito.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #252c52;
  --deep: #151830;
  --mint: #6fe3c6;
  --mist: #eef0f7;
  --lilac: #c9cef0;

  --bg: var(--mist);
  --surface: #ffffff;
  --sunk: #e3e6f1;
  --raised: #ffffff;
  --text: var(--deep);
  --muted: #565c78;
  --line: #d6d9e8;
  --accent: var(--ink);
  --focus: var(--ink);
  --shadow: 0 1px 2px rgb(21 24 48 / 0.12), 0 24px 56px -12px rgb(21 24 48 / 0.45);

  --radius-window: 28px;
  --radius-tile: 20px;
  --font: "Gabarito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--deep);
    --surface: #1d2142;
    --sunk: #1e2347;
    --raised: #2b3263;
    --text: var(--mist);
    --muted: #a3a8c3;
    --line: #2c3157;
    --accent: var(--mint);
    --focus: var(--mint);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 28px 64px -12px rgb(0 0 0 / 0.7);
  }
}
:root[data-theme="dark"] {
  --bg: var(--deep);
  --surface: #1d2142;
  --sunk: #1e2347;
  --raised: #2b3263;
  --text: var(--mist);
  --muted: #a3a8c3;
  --line: #2c3157;
  --accent: var(--mint);
  --focus: var(--mint);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 28px 64px -12px rgb(0 0 0 / 0.7);
}

/* Ink surfaces: same tokens, re-pointed. */
.on-ink {
  --text: var(--mist);
  --muted: #b9bedb;
  --line: #3a4272;
  --accent: var(--mint);
  --focus: var(--mint);
  background: var(--ink);
  color: var(--text);
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
strong { font-weight: 650; color: var(--text); }
h1, h2, h3 { margin: 0; font-weight: 750; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }

.wrap { width: min(100% - 32px, 68rem); margin-inline: auto; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 10; padding: 8px 14px; border-radius: 12px; background: var(--mint); color: var(--deep); font-weight: 650; }
.skip:focus { top: 12px; }

/* ---------- Header and footer ---------- */

header.site { background: var(--bg); }
header.site.on-ink { background: var(--ink); }
header.site .bar {
  width: min(100% - 32px, 68rem); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; }
header.site nav { display: flex; gap: 4px; }
header.site nav a {
  color: var(--text); text-decoration: none; font-weight: 550;
  padding: 6px 12px; border-radius: 999px;
}
header.site nav a:hover { background: color-mix(in srgb, var(--text) 10%, transparent); }
header.site nav a[aria-current="page"] { background: color-mix(in srgb, var(--text) 12%, transparent); }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 0.9375rem; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 14px; }
footer.site nav a { color: var(--text); font-weight: 550; text-decoration: none; }
footer.site nav a:hover { text-decoration: underline; }
footer.site p { margin: 0; max-width: 60ch; }
footer.site p.by { margin-bottom: 6px; }
footer.site p a { color: var(--text); font-weight: 550; text-decoration: none; }
footer.site p a:hover { text-decoration: underline; }

/* ---------- Shared type ---------- */

.display {
  font-size: clamp(4rem, 13vw, 7.75rem);
  font-weight: 850;
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.lead { font-size: clamp(1.125rem, 2.2vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.section-title { font-size: clamp(1.9rem, 4.5vw, 2.75rem); letter-spacing: -0.03em; line-height: 1.05; }

.play { display: inline-block; border-radius: 10px; }
.play img { height: 60px; width: auto; margin: -6px 0 -6px -8px; }

/* ---------- Home: hero ---------- */

.hero { padding: 24px 0 0; position: relative; }
.hero-grid {
  width: min(100% - 32px, 68rem); margin-inline: auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start;
}
.hero-copy { position: relative; z-index: 1; padding: 48px 0 80px; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--mint); font-size: 0.9375rem; font-weight: 600; line-height: 1.4;
}
.hero .display { margin-bottom: 28px; }
/* The home headline is a sentence, so it runs smaller than a short display line. */
.home .hero .display { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 0.95; text-wrap: balance; }
.hero .lead { margin-bottom: 32px; }
.get { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.get p { margin: 0; max-width: 30ch; color: var(--muted); font-size: 0.9375rem; }

/* The scene: expanded Android bubbles, floating over the hero's bottom edge. scene.js makes the
   bubbles switch apps, and docks them to the screen edge once the hero scrolls away. */
.scene-slot {
  /* No z-index: a stacking context here would trap the docked bubbles under the scrim. */
  position: relative;
  justify-self: end; align-self: end; width: min(100%, 420px);
  /* Low enough that the home screen starts beside the headline's last line, not its first. */
  margin-top: 150px; margin-bottom: -136px;
}
.scene-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 96px; }

/* The home screen under the bubble: a list launcher on a pale wallpaper, tilted behind the window and
   dimmed the way Android dims what's under an expanded bubble, but lightly, so the icon that was tapped
   stays readable. Big labels carry it; the ○ after a name marks a bubble icon. It lights up when the
   bubble closes or docks. */
.under {
  position: absolute; top: 40px; left: -236px; width: 400px; height: 420px;
  overflow: hidden; padding: 30px 24px;
  border-radius: var(--radius-window); background: #dfe3f4; color: var(--deep);
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.55);
  rotate: -3deg; transform-origin: 70% 30%;
}
.under::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgb(37 44 82 / 0.42);
  transition: opacity 360ms ease;
}
.scene-slot:has(.scene.is-closed, .scene.is-docked) .under::after { opacity: 0; }
.launcher-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.launcher-list li, .launch {
  display: flex; align-items: center; gap: 14px;
  font-size: 1.375rem; font-weight: 600; letter-spacing: -0.015em; color: var(--deep);
}
.launcher-list li[aria-hidden] { padding: 6px 8px; color: #3a4060; }
.launch {
  width: 100%; margin: 0; padding: 6px 8px; border: 0; border-radius: 16px;
  background: transparent; font-family: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background 160ms ease;
}
.launch:hover, .launch.is-pressed { background: rgb(37 44 82 / 0.09); }
.launch:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.launch .app-icon { transition: scale 160ms ease; }
.launch.is-pressed .app-icon, .launch:active .app-icon { scale: 0.86; }
/* An app's round icon, badged with AnyBubble's mark when it's a bubble icon. */
.app-icon {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--deep);
}
.app-icon svg { width: 52%; }
.app-icon .badge {
  position: absolute; right: -3px; bottom: -3px; width: 42%; height: 42%; border-radius: 50%;
  outline: 2px solid #dfe3f4;
}
.i-msg { background: #b9c0ea; }
.i-cam { background: #cfd3e4; }
.b-new { background: transparent; border: 2px dashed #9aa0bf; color: #565c78; }
.scene {
  /* Bubble size and gap. --open-x is the open bubble's center: scene.js measures it, and without
     JavaScript the one bubble sits at the right. The caret and the window's grow origin follow it. */
  --b: 60px; --g: 14px; --pad: 18px;
  --open-x: calc(100% - var(--pad) - var(--b) * 0.5);
  position: relative;
  /* The scene's empty corners overlap the home screen; only the bubbles and the window take taps. */
  pointer-events: none;
}
.scene .bubble, .scene .window { pointer-events: auto; }
/* Its lines break by hand, so the widest one clears the home screen's corner. */
.scene-hint { margin: 0 0 12px; padding-right: var(--pad); text-align: right; color: var(--muted); font-size: 0.9375rem; }
/* The hint keeps its room before it shows, so the scene doesn't jump. */
.scene-hint[hidden] { display: block; visibility: hidden; }
.bubbles { position: relative; display: flex; justify-content: flex-end; gap: var(--g); padding-right: var(--pad); margin-bottom: 18px; }
.bubbles .bubble { --size: var(--b); }
.bubble {
  --size: 60px;
  position: relative; flex: none;
  width: var(--size); height: var(--size); border-radius: 50%;
  display: grid; place-items: center; color: var(--deep);
  box-shadow: 0 0 0 1px rgb(21 24 48 / 0.06), 0 6px 18px -6px rgb(0 0 0 / 0.5);
}
.bubble[hidden] { display: none; }
button.bubble { border: 0; padding: 0; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: translate 200ms ease, scale 200ms ease; }
.scene:not(.is-docked) button.bubble:hover { translate: 0 -3px; }
.bubble svg { width: 46%; }
.bubble .badge {
  position: absolute; right: -2px; bottom: -2px;
  width: 36%; height: 36%; border-radius: 50%;
  outline: 2px solid var(--ink);
}
.b-maps { background: var(--lilac); }
.b-calc { background: var(--mint); }
.b-notes { background: var(--mist); }
.b-web { background: #9aa3dc; }
/* AnyBubble's own bubble, which joins the stack once it docks. Ink on the page's dark sections needs
   an edge to read as a bubble. */
.b-get { background: var(--ink); overflow: hidden; box-shadow: 0 0 0 2px rgb(238 240 247 / 0.35), 0 6px 18px -6px rgb(0 0 0 / 0.6); }
.b-get .mark { width: 100%; height: 100%; }

/* The caret points up from the window at the open bubble, as Android draws it. */
.bubbles::after {
  content: ""; position: absolute; z-index: 1;
  top: calc(var(--b) + 18px - 9px);
  left: calc(var(--open-x) - 10px);
  width: 20px; height: 20px; border-radius: 4px; background: var(--mist);
  rotate: 45deg; transition: left 260ms cubic-bezier(0.3, 1.2, 0.5, 1);
}
.window {
  position: relative; height: 470px;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--mist); color: var(--deep);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow);
  transform-origin: var(--open-x) calc(var(--b) * -0.5 - 18px);
  font-size: 1rem; line-height: 1.35;
}
.scene.is-closed .bubbles::after, .scene.is-closed .window { visibility: hidden; }
.view { position: relative; flex: 1; min-height: 0; }
.view[hidden] { display: none; }
.v-inner { position: absolute; inset: 0; }
.manage {
  flex: none; margin: 0; padding: 12px 22px 14px;
  border-top: 1px solid #dde0ec; background: var(--mist);
  font-size: 0.9375rem; font-weight: 650; color: var(--ink);
}
.avatar {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--lilac); color: var(--deep); font-weight: 700; font-size: 0.875rem;
}

/* Maps */
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-search {
  position: absolute; top: 14px; left: 14px; right: 14px; height: 48px;
  display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px;
  border-radius: 999px; background: #fff; color: #565c78;
  box-shadow: 0 4px 14px -6px rgb(21 24 48 / 0.35);
}
.map-search svg { width: 20px; flex: none; }
.map-search .avatar { margin-left: auto; }
.map-card {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 12px;
  padding: 14px 16px; border-radius: 20px; background: #fff;
  box-shadow: 0 6px 20px -8px rgb(21 24 48 / 0.35);
}
.map-place { font-weight: 700; font-size: 1.0625rem; }
.map-meta { grid-row: 2; color: #565c78; font-size: 0.875rem; }
.map-chip { grid-row: 1 / 3; grid-column: 2; padding: 8px 14px; border-radius: 999px; background: var(--ink); color: var(--mint); font-weight: 650; font-size: 0.875rem; }

/* Calculator */
.v-calc .v-inner { display: flex; flex-direction: column; padding: 16px; }
.calc-display { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; padding: 0 8px 14px; }
.calc-expr { color: #6b7192; font-size: 1.25rem; }
.calc-result { font-size: 3.25rem; font-weight: 650; letter-spacing: -0.03em; line-height: 1.05; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.keys span {
  height: 48px; display: grid; place-items: center; border-radius: 999px;
  background: #e1e4f0; font-size: 1.25rem; font-weight: 550;
}
.keys .k-fn { background: #d2d6ea; font-size: 1rem; }
.keys .k-op { background: var(--lilac); }
.keys .k-eq { background: var(--ink); color: var(--mint); }

/* Notes */
.appbar { display: flex; align-items: center; gap: 14px; padding: 18px 16px 12px 20px; }
.appbar-title { flex: 1; font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; }
.appbar svg { width: 22px; color: #3a4060; }
.note-grid { columns: 2; column-gap: 10px; padding: 0 14px; }
.note-card {
  display: block; break-inside: avoid; margin-bottom: 10px; padding: 12px 14px;
  border-radius: 16px; border: 1px solid #d9dcea; color: #4a5070; font-size: 0.875rem;
}
.note-card b { display: block; margin-bottom: 4px; color: var(--deep); font-size: 0.9375rem; font-weight: 700; }
.note-card.c-mint { background: #d3f6ec; border-color: transparent; }
.note-card.c-lilac { background: #dde0f6; border-color: transparent; }
.fab {
  position: absolute; right: 16px; bottom: 16px; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 18px;
  background: var(--ink); color: var(--mint); box-shadow: 0 8px 20px -8px rgb(21 24 48 / 0.6);
}
.fab svg { width: 26px; }

/* Browser */
.urlbar {
  display: flex; align-items: center; gap: 8px; margin: 12px; height: 44px; padding: 0 10px 0 14px;
  border-radius: 999px; background: #e1e4f0; color: #3a4060; font-size: 0.875rem;
}
.urlbar svg { width: 16px; flex: none; }
.urlbar span:first-of-type { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tabs-count { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 2px solid currentColor; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.web-page { display: grid; gap: 4px; padding: 0 16px; }
.dish { width: 100%; height: 130px; border-radius: 16px; margin-bottom: 10px; }
.web-title { font-size: 1.375rem; font-weight: 750; letter-spacing: -0.02em; }
.web-meta { color: #6b7192; font-size: 0.875rem; margin-bottom: 6px; }
.web-line { padding: 8px 0; border-bottom: 1px solid #dde0ec; font-size: 0.9375rem; }

/* AnyBubble, open in its bubble: your bubble icons as AnyBubble draws them, then where to get it. */
.v-get { overflow: auto; }
.get-app { display: flex; flex-direction: column; min-height: 100%; padding: 20px 20px 18px; }
.get-title { margin: 0 0 18px; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }
.get-icons {
  list-style: none; margin: 0 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 8px;
}
.get-icons li { display: grid; justify-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; text-align: center; }
.get-icons .app-icon { width: 58px; height: 58px; }
.get-icons .app-icon .badge { outline-color: var(--mist); }
.get-icons .b-notes { background: #fff; }
.get-play { display: grid; gap: 10px; justify-items: start; margin-top: 20px; padding-top: 20px; border-top: 1px solid #dde0ec; }
.get-play .play img { display: block; width: auto; height: 52px; }
.get-play p { margin: 0; color: #565c78; font-size: 0.875rem; line-height: 1.4; }

/* One orchestrated moment on load: Maps ○ is pressed, its bubble lifts off the icon (scene.js), Maps
   opens, and the home screen dims under it. These hold the bubble and window back until then.
   scene.js adds .is-ready afterwards, so later state changes don't replay it. */
@media (prefers-reduced-motion: no-preference) {
  .scene .bubble { animation: bubble-in 520ms cubic-bezier(0.2, 1.5, 0.4, 1) 820ms both; }
  .scene .window, .scene .bubbles::after { animation: window-open 620ms cubic-bezier(0.16, 1, 0.3, 1) 1060ms both; }
  .scene .view, .scene .manage { animation: fade-in 300ms ease-out 1300ms both; }
  .scene-slot:not(:has(.scene.is-ready)) .under::after { animation: fade-in 400ms ease-out 1000ms both; }
}
.scene.is-ready .bubble, .scene.is-ready .window, .scene.is-ready .bubbles::after,
.scene.is-ready .view, .scene.is-ready .manage { animation: none; }
@keyframes bubble-in { from { transform: translateY(16px) scale(0.4); opacity: 0; } }
@keyframes window-open { from { transform: scale(0.12); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* Docked: a collapsed stack at the screen edge that follows the page. */
.scene.is-docked {
  position: fixed; z-index: 40; width: var(--b);
  transition: left 380ms cubic-bezier(0.3, 1.25, 0.5, 1), top 380ms cubic-bezier(0.3, 1.25, 0.5, 1);
}
.scene.is-dragging { transition: none; }
.scene.is-docked .scene-hint, .scene.is-docked .window, .scene.is-docked .bubbles::after { display: none; }
.scene.is-docked .bubbles { display: block; width: var(--b); height: var(--b); padding: 0; margin: 0; touch-action: none; }
.scene.is-docked .bubble {
  position: absolute; inset: 0;
  translate: calc(var(--k, 0) * var(--peek, -7px)) 0;
  scale: calc(1 - var(--k, 0) * 0.08);
  z-index: calc(10 - var(--k, 0));
  cursor: grab;
}
.scene.is-docked[data-side="left"] { --peek: 7px; }
.scene.is-dragging .bubble { cursor: grabbing; }
.scene.is-docked .bubble[aria-selected="false"] { pointer-events: none; }

/* Expanded from the dock: the row moves to the top of the screen, over a scrim. */
.scene.is-docked.is-expanded {
  top: 16px; right: 16px; left: auto; width: min(420px, 100vw - 32px);
  z-index: 60; transition: none;
}
.scene.is-docked.is-expanded .window { display: flex; height: min(470px, 100dvh - 140px); }
.scene.is-docked.is-expanded .bubbles::after { display: block; }
.scene.is-docked.is-expanded .bubbles { display: flex; width: auto; height: auto; padding-right: var(--pad); margin-bottom: 18px; touch-action: auto; }
.scene.is-docked.is-expanded .bubble { position: relative; inset: auto; translate: none; scale: none; cursor: pointer; pointer-events: auto; }
.scene.is-dismissed { visibility: hidden; }
.scrim {
  position: fixed; inset: 0; z-index: 55;
  background: rgb(21 24 48 / 0.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.scrim[hidden] { display: none; }
.dismiss-target {
  position: fixed; left: 50%; bottom: 40px; z-index: 39;
  width: 64px; height: 64px; margin-left: -32px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(21 24 48 / 0.8); color: var(--mist);
  box-shadow: 0 0 0 1px rgb(238 240 247 / 0.25);
  opacity: 0; scale: 0.6; pointer-events: none;
  transition: opacity 180ms ease, scale 220ms cubic-bezier(0.3, 1.4, 0.5, 1), background 180ms ease;
}
.dismiss-target svg { width: 26px; }
.dismiss-target.is-visible { opacity: 1; scale: 1; }
.dismiss-target.is-hot { scale: 1.25; background: var(--deep); }

/* ---------- Home: who it's for ---------- */

.why { padding: 72px 0 96px; }
.why .section-title { max-width: 16ch; margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.who {
  padding: 28px; border-radius: var(--radius-window);
  border: 1px solid var(--line);
}
.who-for { margin: 0 0 14px; color: var(--muted); font-size: 0.9375rem; font-weight: 600; }
.who h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 10px; }
.who p:last-child { margin: 0; color: var(--muted); }
/* Home: the two reasons people want AnyBubble lead side by side, on Ink; the third sits under them. */
.why-grid.audiences { grid-template-columns: 1fr 1fr; }
.who-more { grid-column: 1 / -1; }
.who-more p:last-child { max-width: 62ch; }
/* The core audience leads, on Ink in both themes. */
.who-lead {
  --text: var(--mist); --muted: #b9bedb; --accent: var(--mint); --focus: var(--mint);
  background: var(--ink); border-color: transparent; color: var(--text);
}
.who-lead .who-for { color: var(--mint); }
.who-lead h3 { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -0.03em; }

/* ---------- Home: two ways ---------- */

.ways { padding: 88px 0 96px; background: var(--surface); }
.ways .section-title { max-width: 14ch; margin-bottom: 48px; }
.ways-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
.way h3 { font-size: 1.3rem; margin: 22px 0 8px; }
.way p { color: var(--muted); margin: 0; max-width: 44ch; }
/* The clip beside both ways, each way a card of its own. The first way is what the clip shows, so it has no drawing. */
.ways-clip { grid-template-columns: minmax(0, 360px) 1fr; gap: 20px 56px; align-items: start; }
.ways-clip .clip {
  grid-row: span 2; display: block; width: 100%; height: auto; object-fit: cover;
  border-radius: var(--radius-window); background: var(--deep); box-shadow: var(--shadow);
}
.ways-clip .way { padding: 28px; border-radius: var(--radius-window); background: var(--bg); }
/* A way's drawing spans the top of its card, so its tiles keep their room on phones. */
.ways-clip .way .frag {
  margin: -28px -28px 0; border-radius: var(--radius-window) var(--radius-window) 0 0; background: var(--sunk);
}
.ways-clip .way:first-of-type h3 { margin-top: 0; }

.frag {
  height: 200px; border-radius: var(--radius-window);
  background: var(--sunk); padding: 24px;
  display: grid; overflow: hidden;
}
.frag-qs { grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.frag-qs .tile { height: 64px; border-radius: var(--radius-tile); background: color-mix(in srgb, var(--text) 9%, transparent); }
.frag-qs .tile.on {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--mint); color: var(--deep); font-weight: 700; font-size: 1rem;
}
.frag-qs .tile.on img { width: 28px; height: 28px; border-radius: 50%; }

.frag { background: var(--bg); }

/* A tap: a ring that swells out of the tile, every few seconds. */
.tile.is-tapped::after {
  content: ""; position: absolute; inset: -4px; border-radius: inherit;
  border: 2px solid var(--accent); opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .tile.is-tapped::after { animation: tap 2.8s cubic-bezier(0.2, 0.7, 0.3, 1) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .tile.is-tapped::after { opacity: 0.7; }
}
/* The ring grows by its inset, not by scale, so it swells evenly around a wide tile. */
@keyframes tap {
  0%, 55% { opacity: 0; inset: 2px; }
  62% { opacity: 0.9; inset: -2px; }
  100% { opacity: 0; inset: -14px; }
}


/* ---------- Home: before you install ---------- */

.fine { padding: 96px 0; }
.fine .section-title { margin-bottom: 40px; }
.ledger { margin: 0; border-top: 2px solid var(--text); }
.ledger > div {
  display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 4px 40px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.ledger dt { font-size: 1.5rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.ledger dd { margin: 0; color: var(--muted); font-size: 1.125rem; max-width: 56ch; }
/* Home: Pricing sits between How it works and Before you install, so the sections after it swap
   backgrounds to keep them alternating. */
.fine-alt { background: var(--surface); }
.faq-alt { background: var(--bg); }

/* ---------- Home: pricing ---------- */

.pricing { padding: 96px 0; }
.pricing .section-title { margin-bottom: 40px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 52rem; }
.plan { padding: 32px; border-radius: var(--radius-window); border: 1px solid var(--line); background: var(--surface); }
.plan h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--muted); }
.plan-price { margin: 0 0 24px; font-size: clamp(2.5rem, 6vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-price span { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan-list { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan-list li { padding-left: 32px; background: url("/img/check-ink.svg") no-repeat 0 3px / 22px; font-size: 1.125rem; }
/* Pro is on Ink in both themes, with Mint checks, like the lead audience cards. */
.plan-pro {
  --text: var(--mist); --muted: #b9bedb; --line: #3a4272;
  background: var(--ink); border-color: transparent; color: var(--text);
}
.plan-pro h3 { color: var(--mint); }
.plan-pro .plan-list li { background-image: url("/img/check.svg"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .plan-list li { background-image: url("/img/check.svg"); }
}
:root[data-theme="dark"] .plan-list li { background-image: url("/img/check.svg"); }
.plan-note { margin: 24px 0 0; color: var(--muted); font-size: 1.0625rem; max-width: 52rem; }

/* ---------- Home: questions ---------- */

.faq { padding: 96px 0; background: var(--surface); }
.faq .wrap { display: grid; grid-template-columns: minmax(0, 17rem) minmax(0, 1fr); gap: 24px 40px; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-size: 1.2rem; font-weight: 650; line-height: 1.3;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  background-image: url("/img/plus.svg");
  transition: transform 200ms ease;
}
.qa details[open] summary::after { transform: rotate(45deg); }
.qa summary:hover { color: var(--accent); }
.qa details p { color: var(--muted); max-width: 60ch; margin: -4px 0 22px; }
.faq .more { grid-column: 2; color: var(--muted); margin: 8px 0 0; }

/* ---------- Home: closer ---------- */

.closer { padding: 88px 0; text-align: center; }
.closer .wrap { display: grid; justify-items: center; gap: 24px; }
.closer-icon { width: 72px; height: 72px; }
.closer-line { margin: 0; font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 750; letter-spacing: -0.03em; line-height: 1.1; max-width: 20ch; text-wrap: balance; }
.closer .play img { margin: 0; }
.home footer.site { border-top: 0; }

/* ---------- Inner pages ---------- */

.page-head { padding: 40px 0 48px; }
.page-head h1 { font-size: clamp(2.75rem, 8vw, 4.5rem); font-weight: 850; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 18px; }
.page-head .lead { max-width: 52ch; margin: 0; }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.6rem; letter-spacing: -0.02em; margin: 48px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--accent); }

/* Settings paths, like Settings → Apps → AnyBubble. */
.path {
  font-weight: 600; color: var(--text);
  background: color-mix(in srgb, var(--text) 7%, transparent);
  padding: 1px 5px; border-radius: 6px;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

/* Help: grouped topics with a contents column. */
.help-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 96px; }
.toc { position: sticky; top: 24px; font-size: 0.9375rem; }
.toc h2 { font-size: 1rem; margin: 0 0 6px; }
.toc section + section { margin-top: 22px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); }

.topics { max-width: 44rem; }
.group + .group { margin-top: 64px; }
.group > h2 { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -0.03em; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.topic { padding: 28px 0 24px; border-bottom: 1px solid var(--line); position: relative; }
.topic h3 { font-size: 1.35rem; letter-spacing: -0.015em; margin-bottom: 10px; }
.topic h4 { margin: 22px 0 8px; font-size: 1.05rem; color: var(--text); }
.topic p, .topic li { color: var(--muted); }
.topic p:last-child { margin-bottom: 0; }
.topic ul { padding-left: 1.2em; }
.topic li + li { margin-top: 8px; }
/* The app links straight to a topic: mark the one it opened. */
.topic:target::before {
  content: ""; position: absolute; left: -20px; top: 32px; bottom: 28px;
  width: 4px; border-radius: 4px; background: var(--accent);
}
.topic:target h3 { color: var(--accent); }

/* Privacy: the short version first. */
.glance { margin: 0 0 8px; border-top: 2px solid var(--text); }
.glance > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 4px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.glance dt { font-weight: 700; font-size: 1.125rem; }
.glance dd { margin: 0; color: var(--muted); }
.updated { color: var(--muted); font-size: 0.9375rem; }

/* Support. */
.mail {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 0 8px;
  padding: 18px 26px; border-radius: 999px;
  background: var(--ink); color: var(--mist); text-decoration: none;
  font-size: clamp(1.1rem, 3.4vw, 1.4rem); font-weight: 700; letter-spacing: -0.01em;
}
.mail:hover { background: #2f3866; }
.mail svg { width: 26px; height: 26px; flex: none; color: var(--mint); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mail { background: var(--mint); color: var(--deep); }
  :root:not([data-theme="light"]) .mail svg { color: var(--deep); }
  :root:not([data-theme="light"]) .mail:hover { background: #8aead2; }
}
:root[data-theme="dark"] .mail { background: var(--mint); color: var(--deep); }
:root[data-theme="dark"] .mail svg { color: var(--deep); }

/* ---------- Early access (closed test, #210; goes away at launch) ---------- */

.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 24px; border-radius: 999px;
  background: var(--ink); color: var(--mist); text-decoration: none; font-weight: 700;
}
.btn:hover { background: #2f3866; }
.on-ink .btn { background: var(--mint); color: var(--deep); font-size: 1.125rem; min-height: 56px; padding-inline: 28px; }
.on-ink .btn:hover { background: #8aead2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn { background: var(--mint); color: var(--deep); }
  :root:not([data-theme="light"]) .btn:hover { background: #8aead2; }
}
:root[data-theme="dark"] .btn { background: var(--mint); color: var(--deep); }
:root[data-theme="dark"] .btn:hover { background: #8aead2; }

.early-hero .display { font-size: clamp(3.25rem, 9vw, 6rem); }
.early-hero .lead { max-width: 40ch; }
.early-shot {
  justify-self: end; align-self: end; width: min(100%, 340px); height: auto;
  margin: 40px 0 -72px; border-radius: var(--radius-window); box-shadow: var(--shadow);
  display: block; object-fit: cover; background: var(--deep);
}
.early .why { padding-top: 120px; }

.join { padding: 88px 0 96px; background: var(--surface); }
.join .section-title { margin-bottom: 24px; }
.perks { list-style: none; margin: 0 0 56px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 28px; }
/* Ink check marks on light surfaces, Mint (check.svg) on dark ones. */
.perks li { padding-left: 32px; background: url("/img/check-ink.svg") no-repeat 0 3px / 22px; color: var(--muted); }
.perks strong { display: block; font-size: 1.125rem; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .perks li { background-image: url("/img/check.svg"); }
}
:root[data-theme="dark"] .perks li { background-image: url("/img/check.svg"); }

/* Numbered steps, each a round bubble with its number, joined by a line. */
.steps { list-style: none; margin: 0; padding: 0; max-width: 42rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 40px 76px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -6px;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--mint); font-size: 1.4rem; font-weight: 800;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 25px; top: 54px; bottom: 6px;
  width: 2px; border-radius: 2px; background: var(--line);
}
.steps h3 { font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.steps p { color: var(--muted); margin-bottom: 16px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .steps li::before { background: var(--mint); color: var(--deep); }
}
:root[data-theme="dark"] .steps li::before { background: var(--mint); color: var(--deep); }

.report { padding: 96px 0; }
.report .section-title { margin-bottom: 40px; }
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }


/* 404. */
.lost { padding: 72px 0 120px; display: grid; justify-items: start; gap: 8px; }
.lost-title { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1; }
.lost .lead { margin: 12px 0 0; }
.lost .bubble { --size: 88px; margin-bottom: 28px; background: var(--ink); color: var(--mint); box-shadow: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .lost-title { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 850; letter-spacing: -0.04em; line-height: 1; }
.lost .lead { margin: 12px 0 0; }
.lost .bubble { animation: drift 6s ease-in-out infinite alternate; }
}
@keyframes drift { to { transform: translate(18px, -14px); } }

/* ---------- Launcher pages (/niagara/, /lawnchair/, /nova/) ---------- */

/* A grid launcher's home screen, for launchers without a clip of their own: bubble icons badged and labeled with ○,
   the tapped one ringed, and its bubble at the edge. Decorative; the steps say the same in words. */
.home-shot {
  position: relative; justify-self: end; align-self: end;
  width: min(100%, 320px); margin: 40px 0 -72px; padding: 26px 22px 34px;
  border-radius: var(--radius-window); background: linear-gradient(160deg, #e7eaf7, #c9cef0);
  color: var(--deep); box-shadow: var(--shadow); rotate: 3deg;
}
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 8px; }
.home-app { display: grid; justify-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; text-align: center; white-space: nowrap; }
.home-app .app-icon { width: 54px; height: 54px; }
.home-app .app-icon .badge { outline-color: #d8dcf3; }
.home-app.is-tapped .app-icon { box-shadow: 0 0 0 7px rgb(255 255 255 / 0.7); }
.home-bubble { position: absolute; top: 92px; right: -26px; --size: 64px; box-shadow: var(--shadow); rotate: -3deg; }
.home-bubble .badge { outline-color: var(--ink); }

/* Room for the hero's picture, which hangs over the section below it. */
.launcher-page .join { padding-top: 140px; }
.steps .tip { margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--sunk); color: var(--text); }
.more-launchers { margin: 40px 0 0; color: var(--muted); }

/* ---------- Narrow screens ---------- */

/* Less room beside the window: the home screen tucks further behind it. */
@media (max-width: 1180px) and (min-width: 901px) {
  .under { left: -170px; width: 330px; padding: 28px 20px; }
  .launcher-list li, .launch { gap: 10px; font-size: 1.1875rem; }
  .app-icon { width: 34px; height: 34px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding: 32px 0 8px; }
  .scene-slot { justify-self: center; margin-top: 32px; margin-bottom: -96px; width: min(100%, 380px); }
  .why { padding-top: 168px; }
  .why-grid, .why-grid.audiences { grid-template-columns: 1fr; max-width: 34rem; }
  .ways-grid { grid-template-columns: 1fr; max-width: 30rem; }
  .ways-clip .clip { grid-row: auto; justify-self: center; width: min(72%, 280px); }
  .ledger > div, .faq .wrap { grid-template-columns: 1fr; }
  /* No room beside the window: the home screen sits above it, one column, so its list shows before the
     bubble covers it. Browser stays off the list here to keep it short. */
  .scene-slot { margin-top: 230px; }
  .under { top: -220px; left: 4%; width: 92%; height: 560px; rotate: -2deg; padding: 24px 22px; }
  .launcher-list { gap: 0; }
  .launcher-list li, .launch { gap: 10px; padding-block: 5px; font-size: 1.1875rem; }
  .launcher-list li:has([data-tab="tab-web"]) { display: none; }
  .app-icon { width: 34px; height: 34px; }
  .scene-hint { visibility: hidden; }
  .faq .more { grid-column: auto; }
  .help-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; columns: 2; column-gap: 24px; padding: 20px; border-radius: var(--radius-tile); background: var(--sunk); }
  .toc a { padding: 3px 0; }
  .toc section + section { margin-top: 16px; }
  .toc section { break-inside: avoid; }
  .topic:target::before { left: -12px; }
  /* Phones: the invitation and its button come first, then the screenshot, rising out of the hero. */
  .early-hero .hero-copy { padding-bottom: 8px; }
  .early-shot { justify-self: center; width: min(72%, 280px); margin: 24px 0 -96px; }
  .home-shot { justify-self: center; width: min(78%, 300px); margin: 24px 0 -96px; }
  .launcher-page .join { padding-top: 160px; }
  .early .why { padding-top: 144px; }
  .perks, .report-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 34rem; }
}
@media (max-width: 520px) {
  header.site .bar { padding: 14px 0; }
  .toc { columns: 1; }
  .glance > div { grid-template-columns: 1fr; }
  .frag { padding: 18px; }
  .scene { --b: 52px; --g: 10px; }
  .scene-slot .window { height: 430px; }
  .ways .section-title, .fine .section-title { margin-bottom: 32px; }
  .why, .ways, .fine, .faq, .pricing { padding-bottom: 72px; }
  .ways, .fine, .faq, .pricing { padding-top: 72px; }
  .pricing .section-title { margin-bottom: 32px; }
  .plan { padding: 24px; }
  .who { padding: 24px; }
  .steps li { padding-left: 60px; }
  .steps li::before { width: 44px; height: 44px; font-size: 1.2rem; top: -4px; }
  .steps li:not(:last-child)::after { left: 21px; top: 46px; }
  .join, .report { padding: 64px 0 72px; }
}
