/* UnifiedChat landing page. It follows the Mac app's onboarding: warm paper lit by the mark's coral and
   blue, Newsreader headlines, Geist for everything else, and scenes built from the product's own pieces.
   Colour tokens mirror mac/Unify/App/Theme.swift so the site and the app match. Newsreader in cedar with
   the mark is UnifiedChat's own voice, used only where the assistant speaks, exactly as in the app. */

@font-face { font-family: "Geist"; src: url("fonts/Geist.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader.ttf") format("truetype"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/Newsreader-Italic.ttf") format("truetype"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  --paper: oklch(0.993 0.0015 85);
  --canvas: oklch(0.974 0.0025 85);
  --surface: #fff;
  --muted: oklch(0.962 0.003 85);
  --line: oklch(0.25 0.01 85 / 0.085);
  --border: oklch(0.25 0.01 85 / 0.12);

  --ink: oklch(0.2 0.006 275);
  --ink-2: oklch(0.52 0.008 275);
  --ink-3: oklch(0.67 0.006 275);
  --on-ink: oklch(0.99 0 0);
  --late: oklch(0.577 0.2 27);
  --positive: oklch(0.6 0.13 155);

  --cedar: oklch(0.585 0.135 48);
  --cedar-soft: oklch(0.965 0.018 62);
  --cedar-ink: oklch(0.44 0.1 45);
  --bubble-in: oklch(0.958 0.003 85);
  --bubble-out: oklch(0.255 0.008 275);

  /* The mark's two colours, and the light they cast behind each scene. */
  --coral: oklch(0.68 0.19 30);
  --blue: oklch(0.66 0.15 245);
  --tile-top: oklch(0.992 0.006 85);
  --tile-foot: oklch(0.955 0.014 75);

  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --voice: "Newsreader", Georgia, serif;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-card: 18px;
  /* The app's three elevations: card, lift and float. Each is a hairline ring plus soft shadows. */
  --shadow-card: 0 1px 2px oklch(0 0 0 / 0.06), 0 0 0 1px var(--line);
  --shadow-lift: 0 4px 10px oklch(0 0 0 / 0.08), 0 1px 3px oklch(0 0 0 / 0.05), 0 0 0 1px var(--line);
  --shadow-float: 0 20px 44px -10px oklch(0 0 0 / 0.2), 0 4px 10px oklch(0 0 0 / 0.06), 0 0 0 1px var(--line);
  --spring: cubic-bezier(0.25, 1.25, 0.4, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
kbd {
  display: inline-grid; place-items: center;
  min-width: 1.6em; height: 1.6em; padding: 0 0.35em;
  font: 500 0.72em/1 var(--mono);
  color: var(--ink-2);
  background: var(--surface);
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--border), 0 1px 0 var(--border);
  vertical-align: 0.1em;
}
kbd + kbd { margin-left: 3px; }
:focus-visible { outline: 2px solid var(--cedar); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }

/* Type: headlines in Newsreader, as every onboarding step titles itself. */
h1, h2 {
  font-family: var(--voice); font-weight: 400;
  font-variation-settings: "opsz" 16;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 78px); line-height: 1.02; letter-spacing: -0.024em; }
h2 { font-size: clamp(34px, 4.2vw, 54px); line-height: 1.06; letter-spacing: -0.02em; }
h3 { font-weight: 600; font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.lede { font-size: 16.5px; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }

/* The mark and UnifiedChat's voice */
.mark { width: 12px; height: 12px; fill: var(--cedar); flex: none; }
.ph { width: 16px; height: 16px; fill: currentColor; flex: none; }
.logo { width: 16px; height: 16px; flex: none; }
.voice, .voice-line, .brief-text {
  font-family: var(--voice);
  font-variation-settings: "opsz" 16;
}
.voice { color: var(--cedar-ink); font-size: 17px; line-height: 1.45; }
.voice .mark, .voice-line .mark { margin-right: 8px; vertical-align: -0.02em; }
.voice-line { margin-top: 24px; font-size: 21px; line-height: 1.4; color: var(--cedar-ink); text-wrap: balance; }
.voice-line.small { font-size: 19px; }
.voice-line b { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Buttons: the dark primary carries the Return key, since Return presses it. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 46px; padding: 0 20px;
  font: 500 15px/1 var(--sans);
  border: 0; border-radius: 11px;
  cursor: pointer; white-space: nowrap;
  transition: background-color 0.15s, box-shadow 0.15s, opacity 0.15s;
}
.btn .enter { width: 14px; height: 14px; opacity: 0.6; }
.btn-sm { height: 36px; padding: 0 15px; font-size: 14px; border-radius: 10px; }
.btn-dark { background: var(--ink); color: var(--on-ink); }
.btn-dark:hover { background: oklch(0.2 0.006 275 / 0.84); }
.btn-line { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--border); }
.btn-line:hover { box-shadow: 0 0 0 1px var(--ink-3); }

/* The app icon as a tile: the two-colour mark on warm paper. */
.app-tile {
  --s: 28px;
  display: grid; place-items: center; flex: none;
  width: var(--s); height: var(--s); border-radius: calc(var(--s) * 0.225);
  background: linear-gradient(var(--tile-top), var(--tile-foot));
  box-shadow: inset 0 0 0 1px var(--line), 0 calc(var(--s) * 0.05) calc(var(--s) * 0.16) oklch(0 0 0 / 0.12);
}
.app-tile svg { width: 70%; height: 70%; }
.app-tile.md { --s: 44px; }
.app-tile.xl { --s: 84px; }
.app-tile.xxl { --s: 104px; }

/* A platform's icon as a white rounded tile, the way it sits in the Dock. */
.app-icon {
  display: grid; place-items: center; flex: none;
  width: 64px; aspect-ratio: 1; border-radius: 24%;
  background: var(--surface); box-shadow: 0 2px 5px oklch(0 0 0 / 0.07), 0 0 0 1px var(--line);
}
.app-icon img { width: 50%; height: 50%; }

/* Frosted glass, as the finale's speech bubble and Dock. */
.glass {
  background: oklch(1 0 0 / 0.55);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5);
  box-shadow: inset 0 0 0 1px oklch(1 0 0 / 0.8), 0 12px 36px oklch(0 0 0 / 0.08);
}

.lift { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.float { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-float); }

/* Brand light: coral and blue glowing softly behind a scene, placed per section with --c and --b. */
.lit { position: relative; isolation: isolate; }
.lit::before {
  content: ""; position: absolute; inset: -140px 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(clamp(320px, 44vw, 660px) clamp(260px, 34vw, 520px) at var(--c, 30% 40%), oklch(0.68 0.19 30 / 0.2), oklch(0.68 0.19 30 / 0) 100%),
    radial-gradient(clamp(300px, 40vw, 620px) clamp(240px, 32vw, 500px) at var(--b, 70% 60%), oklch(0.66 0.15 245 / 0.17), oklch(0.66 0.15 245 / 0) 100%);
  -webkit-mask-image: linear-gradient(transparent, #000 140px, #000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(transparent, #000 140px, #000 calc(100% - 140px), transparent);
}

/* Nav: a floating bar that stays with you */
.nav { position: sticky; top: 0; z-index: 10; padding-top: 12px; margin-bottom: -12px; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(1040px, 100% - 32px); height: 56px; padding: 0 8px 0 12px;
  border-radius: 16px;
  background: oklch(0.993 0.0015 85 / 0.76);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 0 0 1px var(--line), 0 1px 2px oklch(0.2 0.01 275 / 0.04);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.nav.lifted .nav-inner {
  background: oklch(0.993 0.0015 85 / 0.9);
  box-shadow: 0 0 0 1px var(--border), 0 12px 32px -14px oklch(0.2 0.01 275 / 0.28);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

/* Waitlist form */
.waitlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; max-width: 470px; }
.waitlist input {
  flex: 1 1 220px; height: 46px; padding: 0 15px;
  font: 400 15px var(--sans); color: var(--ink);
  background: oklch(1 0 0 / 0.75);
  border: 0; border-radius: 11px;
  box-shadow: 0 0 0 1px var(--border);
}
.waitlist input::placeholder { color: var(--ink-3); }
.waitlist input:focus { outline: none; box-shadow: 0 0 0 1px var(--ink-3), 0 0 0 4px oklch(0.2 0.006 275 / 0.06); }
.form-note { flex-basis: 100%; font-size: 14px; color: var(--ink-2); min-height: 1.5em; }
.form-note.is-done { color: var(--cedar-ink); font-family: var(--voice); font-size: 16px; }

/* Entrances: every scene plays once as it arrives. sections.js adds .in to [data-reveal]; each .en inside
   fades in from --fx/--fy, turned by --fr and scaled by --fs, after --d. Resting poses use the separate
   translate and rotate properties, so the entrance transform never fights them. */
.js [data-reveal] .en {
  opacity: 0;
  transform: translate(var(--fx, 0px), var(--fy, 10px)) rotate(var(--fr, 0deg)) scale(var(--fs, 1));
  transition: opacity 0.45s ease var(--d, 0s), transform 0.8s var(--spring) var(--d, 0s);
}
.js [data-reveal].in .en { opacity: 1; transform: none; }

/* Hero: the welcome step. Headline left; messages settle into one stack on the right. */
.hero { padding: clamp(64px, 9vw, 112px) 0 clamp(64px, 8vw, 104px); }
.hero-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: clamp(56px, 7vw, 88px); }
.hero h1 { margin-bottom: 22px; font-size: clamp(34px, 4vw, 56px); line-height: 1.05; }

.stack { position: relative; height: 470px; }
.stack > * { position: absolute; left: 50%; top: 50%; }
.note {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 14px 16px; border-radius: var(--r-card);
  background: var(--surface); box-shadow: var(--shadow-lift);
}
.stack .note { width: 380px; margin: -38px 0 0 -190px; translate: var(--tx) var(--ty); rotate: var(--rr); z-index: calc(4 - var(--i)); }
.stack .note:nth-of-type(1) { --tx: 8px; --ty: -120px; --rr: -1.2deg; }
.stack .note:nth-of-type(2) { --tx: -10px; --ty: -40px; --rr: 1.4deg; }
.stack .note:nth-of-type(3) { --tx: 12px; --ty: 40px; --rr: -0.8deg; }
.stack .note:nth-of-type(4) { --tx: -5px; --ty: 120px; --rr: 1.1deg; }
.stack .app-tile { margin: -42px 0 0 -42px; translate: -190px -170px; rotate: -9deg; z-index: 5; }
.note-av { position: relative; width: 40px; height: 40px; flex: none; }
.note-av > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.note-av .logo { position: absolute; right: -4px; bottom: -3px; width: 18px; height: 18px; padding: 2px; background: var(--surface); border-radius: 6px; }
.note-av.sm { width: 32px; height: 32px; }
.note-av.sm .logo { width: 15px; height: 15px; right: -3px; bottom: -2px; border-radius: 5px; }
.note-av.xs { width: 28px; height: 28px; }
.note-av.xs .logo { width: 14px; height: 14px; right: -3px; bottom: -2px; border-radius: 5px; }
.note p { min-width: 0; font-size: 14.5px; line-height: 1.38; }
.note b { display: block; font-weight: 600; }
.note p span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.note time, .mi-row time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
time.late { color: var(--late); font-weight: 500; }

.hero .try { margin-top: 0; }

/* Sections */
section { padding: clamp(80px, 11vw, 144px) 0; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-sub { margin-top: 14px; color: var(--ink-2); }
.scene-head { max-width: 640px; margin: 0 auto; text-align: center; }
.scene-head p { margin: 16px auto 0; max-width: 34em; color: var(--ink-2); text-wrap: pretty; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.split-copy p:not(.voice-line) { margin-top: 18px; max-width: 28em; color: var(--ink-2); text-wrap: pretty; }
.scene-hint { margin-top: 28px; text-align: center; font-size: 14px; color: var(--ink-3); }

.bubble { width: fit-content; max-width: 88%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.bubble.in { background: var(--bubble-in); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble.out { margin-left: auto; background: var(--bubble-out); color: var(--on-ink); border-bottom-right-radius: 5px; }
@keyframes blink { 50% { opacity: 0; } }

/* Problem: six docked apps whose badges keep climbing, and the one reply that slipped. */
.problem { text-align: center; overflow: hidden; }
.problem-title { max-width: 16em; margin: 0 auto; }
.problem-title span { display: inline-block; }
.problem-title span:last-child { font-style: italic; color: var(--late); }
.dock {
  display: inline-flex; gap: clamp(10px, 1.6vw, 18px); margin: clamp(44px, 5vw, 64px) auto 0;
  padding: 12px clamp(12px, 1.6vw, 16px) 10px; border-radius: 26px;
}
.dock li { position: relative; display: grid; justify-items: center; gap: 7px; }
.dock .app-icon { width: clamp(48px, 5.4vw, 64px); }
.app-name { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dock b {
  position: absolute; top: -7px; right: -9px; min-width: 24px; height: 24px; padding: 0 7px;
  display: grid; place-items: center; border-radius: 999px;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: #fff; background: oklch(0.62 0.21 27);
  box-shadow: 0 0 0 2px var(--paper);
}
.js .problem .dock li { opacity: 0; transform: translateY(16px) scale(0.9); transition: opacity 0.5s ease, transform 0.6s var(--spring); transition-delay: calc(0.5s + var(--i) * 0.08s); }
.js .problem .dock b { transform: scale(0); transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(1s + var(--i) * 0.1s); }
.js .problem.in .dock li { opacity: 1; transform: none; }
.js .problem.in .dock b { transform: none; }
.dock li.bounce .app-icon { animation: bounce 0.9s cubic-bezier(0.3, 0, 0.3, 1); }
.dock li.bump b { animation: bump 0.35s ease; }
@keyframes bounce { 0%, 100% { transform: none; } 25% { transform: translateY(-18px); } 50% { transform: none; } 70% { transform: translateY(-7px); } }
@keyframes bump { 50% { transform: scale(1.25); } }
.forgot { width: min(460px, 100%); margin: 40px auto 0; text-align: left; align-items: center; rotate: -1.5deg; box-shadow: var(--shadow-float); }
.problem-foot { max-width: 40em; margin: 44px auto 0; }
.problem-foot > p:first-child { color: var(--ink-2); text-wrap: pretty; }

/* Together: a tilted inbox and one contact folded from three apps. */
.together { position: relative; width: min(720px, 100%); margin: clamp(48px, 6vw, 72px) auto 0; padding-right: 120px; }
.mini-inbox { display: grid; grid-template-columns: 58px 1fr; overflow: hidden; rotate: -1.5deg; }
.rail { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 18px 0; background: var(--canvas); border-right: 1px solid var(--line); }
.rail .brandmark { width: 22px; height: 22px; margin-bottom: 8px; }
.rail img { width: 18px; height: 18px; filter: grayscale(1); opacity: 0.55; }
.mi-main { padding: 16px 18px 18px; }
.mi-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; font-size: 15px; }
.mi-head b { font-weight: 600; }
.mi-head .ph { color: var(--ink-3); }
.mi-label { display: flex; gap: 6px; margin: 12px 0 6px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); }
.mi-label span { font-variant-numeric: tabular-nums; }
.mi-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; }
.mi-row:first-of-type { background: var(--canvas); }
.mi-row p { min-width: 0; font-size: 14px; line-height: 1.35; }
.mi-row b { display: block; font-weight: 600; }
.mi-row p span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }
.mi-row.quiet { opacity: 0.6; }
.js [data-reveal].in .mi-row.quiet { opacity: 0.6; }
.contact { position: absolute; right: -30px; bottom: -44px; width: 280px; padding: 18px; rotate: 3deg; font-size: 14px; }
.contact-head { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.contact-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.contact-head b { display: block; font-size: 15px; font-weight: 600; }
.contact-head span { font-size: 13px; color: var(--ink-3); }
.contact li { display: flex; align-items: center; gap: 9px; height: 30px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.contact .i-label { margin: 12px 0 4px; }
.memory { font-family: var(--voice); font-size: 16px; color: var(--ink); }
.scene-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: clamp(80px, 9vw, 112px); font-size: 14.5px; color: var(--ink-2); }
.scene-notes li { display: flex; align-items: center; gap: 9px; }
.scene-notes li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--cedar); }

/* Nothing slips: a promise in a chat, and the reminder it becomes. */
.remember { position: relative; padding: 0 40px 72px 0; }
.chat { width: min(420px, 100%); overflow: hidden; rotate: -1deg; }
.chat-head { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.chat-head b { display: block; font-weight: 600; }
.chat-head span { font-size: 12.5px; color: var(--ink-3); }
.chat-body { display: grid; gap: 10px; padding: 18px 16px 22px; }
.remember mark { color: inherit; padding: 0 2px; border-radius: 4px; background: linear-gradient(oklch(0.585 0.135 48 / 0.55), oklch(0.585 0.135 48 / 0.55)) no-repeat 0 100% / 100% 100%; }
.js .remember mark { background-size: 0% 100%; transition: background-size 0.7s ease 0.9s; }
.js .in .remember mark { background-size: 100% 100%; }
.banner {
  position: absolute; right: 0; bottom: 0; width: min(350px, 88%);
  display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 18px; rotate: 1.5deg;
  background: oklch(0.99 0.002 85 / 0.86); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  font-size: 13.5px; line-height: 1.38;
}
.banner p { min-width: 0; flex: 1; }
.banner-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.banner-top b { font-weight: 500; color: var(--ink-2); }
.banner-title { display: block; font-weight: 600; }
.banner p > span:last-child { color: var(--ink-2); }

/* Replies in your voice: the rough note becomes a reply; other tones fan out behind. */
.voices { display: grid; grid-template-columns: 1fr minmax(0, 440px) 1fr; align-items: center; margin-top: clamp(48px, 6vw, 72px); }
.draft-card { position: relative; z-index: 2; padding: 18px; }
.draft-in { display: flex; align-items: flex-end; gap: 9px; }
.draft-box { margin-top: 18px; padding: 14px 14px 12px; border-radius: 14px; background: var(--canvas); box-shadow: inset 0 0 0 1px var(--line); }
.draft-text { display: grid; min-height: 3em; }
.draft-text > p { grid-area: 1 / 1; transition: opacity 0.6s ease, filter 0.6s ease, transform 0.6s ease; }
.rough { font: 400 14px/1.5 var(--mono); color: var(--ink-3); }
.written { font-size: 15.5px; line-height: 1.5; opacity: 0; filter: blur(8px); transform: translateY(3px); }
.draft-box.is-written .rough { opacity: 0; filter: blur(8px); }
.draft-box.is-written .written { opacity: 1; filter: none; transform: none; }
.written.swap { opacity: 0 !important; filter: blur(6px) !important; transition-duration: 0.25s; }
.draft-foot { display: flex; align-items: center; gap: 7px; margin-top: 12px; font: 400 14px var(--voice); color: var(--cedar-ink); }
.draft-foot .mark { width: 11px; height: 11px; }
.draft-foot .send { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; height: 28px; padding: 0 11px; border-radius: 8px; font: 500 12.5px var(--sans); background: var(--ink); color: var(--on-ink); opacity: 0.35; transition: opacity 0.4s; }
.draft-foot .send .ph { width: 12px; height: 12px; opacity: 0.6; }
.is-written .draft-foot .send { opacity: 1; }
.tone {
  display: grid; gap: 10px; width: 250px; padding: 14px; border: 0; text-align: left; cursor: pointer;
  transition: box-shadow 0.2s, opacity 0.2s, scale 0.3s var(--spring);
}
.tone.left { justify-self: end; margin-right: -28px; rotate: -6deg; }
.tone.right { justify-self: start; margin-left: -28px; rotate: 5deg; }
.tone .bubble { max-width: 100%; font-size: 13px; }
.tone-name { display: flex; align-items: center; gap: 7px; font: 400 14px var(--voice); color: var(--cedar-ink); }
.tone-name .mark { width: 11px; height: 11px; }
.tone:hover { scale: 1.03; }
.tone[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--cedar), var(--shadow-lift); }

/* Morning brief */
.brief-card { justify-self: end; width: min(460px, 100%); padding: 24px; rotate: 1deg; }
.brief-card .i-label { margin: 0 0 8px; }
.brief-card .i-label.cedar { margin-top: 20px; }
.agenda li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.agenda li:first-child { border-top: 0; }
.agenda em { margin-left: auto; font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-3); white-space: nowrap; padding-left: 8px; }
.tag { flex: none; width: 76px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.brief-card .voice { min-height: 2.9em; }
.js [data-write] .w { opacity: 0; transition: opacity 0.25s ease; }
.js [data-write] .w.on { opacity: 1; }

/* Ask UnifiedChat */
.ask-card { width: min(480px, 100%); min-height: 210px; padding: 22px 24px; rotate: -1deg; }
.ask { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); font-weight: 500; min-height: 1.5em; }
.ask .ph { color: var(--ink-3); }
.caret { display: inline-block; width: 1.5px; height: 1.05em; margin-left: -8px; background: var(--ink); animation: blink 0.9s steps(1) infinite; }
.ask-answer { min-height: 2.9em; transition: opacity 0.4s ease, transform 0.4s ease; }
.ask-answer:empty, .ask-answer.out { opacity: 0; transform: translateY(4px); }
.ask-card .source { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; font-size: 12px; color: var(--ink-2); padding: 5px 10px; border-radius: 999px; background: var(--canvas); box-shadow: 0 0 0 1px var(--line); transition: opacity 0.4s ease 0.2s; }
.ask-card .source img { width: 14px; height: 14px; }
.ask-card .source:empty, .ask-card .source.out { opacity: 0; }

/* Smaller things */
.more-wrap { padding-top: 0; }
.more { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.more > div { padding: 22px; }
.more h3 { font-size: 16px; margin-bottom: 6px; }
.more p { font-size: 14.5px; color: var(--ink-2); }
.segmented { display: inline-flex; margin-top: 16px; padding: 3px; border-radius: 9px; background: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.segmented button { font: 500 12px/1 var(--sans); padding: 6px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); cursor: pointer; }
.segmented .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.more .level-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.more .flip-bubble { display: inline-block; margin-top: 16px; padding: 8px 12px; border-radius: 14px 14px 14px 5px; background: var(--bubble-in); font-size: 14px; color: var(--ink); transition: opacity 0.3s ease; }
.more .flip-bubble.out { opacity: 0; }
.more .flip-label, .more .key-label { margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.keys { display: flex; gap: 6px; margin-top: 16px; }
.keys kbd { font-size: 13px; min-width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 0 0 1px var(--border), 0 2px 0 var(--border); transition: transform 0.12s ease, box-shadow 0.12s ease, color 0.12s; }
.keys kbd.down { transform: translateY(2px); box-shadow: 0 0 0 1px var(--ink-3); color: var(--ink); }
.more .reel-chip { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; line-height: 1.35; color: var(--ink); }
.reel-chip em { font-style: normal; font-size: 13px; color: var(--ink-3); }
.reel-thumb { position: relative; width: 44px; height: 64px; border-radius: 8px; overflow: hidden; flex: none; box-shadow: var(--shadow-card); }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.85); }
.reel-thumb i { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-left: 10px solid #fff; border-block: 7px solid transparent; }

/* Who it's for: a persona picker driving a small inbox. */
.helps { padding-top: clamp(40px, 6vw, 72px); }
.personas { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.persona-tabs { display: grid; gap: 4px; }
.persona-tabs button {
  position: relative; overflow: hidden; display: grid; gap: 6px; text-align: left;
  padding: 18px 20px; border: 0; border-radius: var(--r-lg); background: none; cursor: pointer;
  color: var(--ink-3); transition: background 0.2s, color 0.2s;
}
.persona-tabs button b { font-weight: 600; font-size: 18px; letter-spacing: -0.015em; color: var(--ink-2); }
.persona-tabs button span { font-size: 15px; line-height: 1.5; display: none; }
.persona-tabs button:hover b { color: var(--ink); }
.persona-tabs [aria-selected="true"] { background: var(--surface); box-shadow: var(--shadow-lift); color: var(--ink-2); }
.persona-tabs [aria-selected="true"] b { color: var(--ink); }
.persona-tabs [aria-selected="true"] span { display: block; }
.timer { position: absolute; left: 20px; right: 20px; bottom: 0; height: 2px; border-radius: 2px; background: var(--line); display: none; }
.timer::after { content: ""; position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: var(--cedar); }
.personas.auto [aria-selected="true"] .timer { display: block; }
.personas.auto [aria-selected="true"] .timer::after { animation: timer 7s linear forwards; }
@keyframes timer { to { transform: scaleX(1); } }
.persona-inbox { padding: clamp(16px, 2.4vw, 24px); background: var(--canvas); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); min-height: 360px; }
.pi-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 14px; margin-bottom: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-card); animation: rowIn 0.5s var(--spring) both; animation-delay: calc(var(--i) * 0.08s); }
.pi-row p { min-width: 0; font-size: 14px; line-height: 1.4; }
.pi-row b { display: block; font-weight: 600; }
.pi-row p span { color: var(--ink-2); }
.pi-row .initials { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--muted); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.pi-row em { font-style: normal; font-size: 12px; font-weight: 500; white-space: nowrap; padding: 3px 8px; border-radius: 999px; background: var(--muted); color: var(--ink-2); }
.pi-row em.warm { background: var(--cedar-soft); color: var(--cedar-ink); }
.pi-draft { grid-column: 2 / -1; font-family: var(--voice); font-size: 15px; color: var(--cedar-ink); }
.pi-voice { margin-top: 16px; font-size: 18px; animation: rowIn 0.5s ease both; animation-delay: 0.35s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

/* How it works: the onboarding's orbit. Networks light up as they connect. */
.steps { display: grid; gap: 20px; margin-top: 32px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; counter-increment: step; }
.steps li::before {
  content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 500 13px var(--mono); color: var(--cedar-ink); background: var(--cedar-soft);
}
.steps b { font-weight: 600; line-height: 28px; }
.steps span { font-size: 15px; color: var(--ink-2); }
.orbit { --size: 460px; --r: calc(var(--size) * 0.37); position: relative; justify-self: center; width: var(--size); height: var(--size); }
.orbit > * { position: absolute; left: 50%; top: 50%; }
.ring { width: calc(var(--r) * 2); height: calc(var(--r) * 2); margin: calc(var(--r) * -1) 0 0 calc(var(--r) * -1); border-radius: 50%; border: 1.5px dashed oklch(0.25 0.01 85 / 0.16); }
.spokes { left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.spokes line { stroke: var(--cedar); stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s ease; }
.spokes line.on { stroke-dashoffset: 0; }
.orbit .app-tile { margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); }
.planet {
  --a: calc(var(--i) * 60deg - 90deg);
  --d: calc(0.25s + var(--i) * 0.07s); --fs: 0.5; --fy: 0px;
  display: grid; justify-items: center; width: 64px; margin: -32px 0 0 -32px; padding: 0; border: 0; background: none; cursor: pointer;
  translate: calc(cos(var(--a)) * var(--r)) calc(sin(var(--a)) * var(--r));
}
.planet .app-icon { position: relative; transition: box-shadow 0.25s, scale 0.3s var(--spring); }
.planet .app-icon img { filter: grayscale(1); opacity: 0.55; transition: filter 0.3s, opacity 0.3s; }
.planet b { position: absolute; top: 72px; font-size: 12.5px; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: color 0.3s; }
.planet:hover .app-icon { scale: 1.06; }
.planet.on .app-icon img { filter: none; opacity: 1; }
.planet.on .app-icon { box-shadow: 0 0 0 2px var(--cedar), 0 6px 16px oklch(0.585 0.135 48 / 0.22); }
.planet.on b { color: var(--ink); }
.planet .app-icon::after {
  content: ""; position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cedar) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M229.66 77.66l-128 128a8 8 0 0 1-11.32 0l-56-56a8 8 0 0 1 11.32-11.32L96 188.69 218.34 66.34a8 8 0 0 1 11.32 11.32z' fill='%23fff'/%3E%3C/svg%3E") center / 12px no-repeat;
  box-shadow: 0 0 0 2px var(--paper); scale: 0; transition: scale 0.35s var(--spring);
}
.planet.on .app-icon::after { scale: 1; }

/* Privacy: the sign-in step's calm centre with light at both edges. */
.promises { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: clamp(44px, 5vw, 64px); }
.promises li { display: grid; align-content: start; gap: 6px; padding: 20px; border-radius: var(--r-card); background: oklch(1 0 0 / 0.72); box-shadow: var(--shadow-card); }
.promises .ph { width: 20px; height: 20px; margin-bottom: 10px; color: var(--cedar); }
.promises b { font-weight: 600; font-size: 15.5px; }
.promises span { font-size: 14px; color: var(--ink-2); text-wrap: pretty; }

/* Pricing: one table, so the two plans read as the same product with more or less of UnifiedChat doing the work. */
.pricing-head { max-width: none; display: grid; grid-template-columns: 1fr auto; column-gap: 32px; align-items: end; }
.billing { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.billing button { font: 500 14px/1 var(--sans); color: var(--ink-2); background: none; border: 0; padding: 9px 14px; border-radius: 8px; cursor: pointer; }
.billing button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card); }
.billing button span { margin-left: 4px; color: var(--cedar-ink); font-weight: 400; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lift); overflow: hidden; }
.compare th, .compare td { text-align: left; font-weight: 400; vertical-align: middle; }
.compare thead td, .compare tbody th { width: 44%; }
.compare thead th { padding: 32px 32px 28px; vertical-align: top; }
.compare thead td { padding: 32px; vertical-align: bottom; }
.compare thead .voice { max-width: 300px; }
.plan-name { display: block; font-weight: 600; font-size: 17px; margin-bottom: 14px; }
.amount { font: 400 52px/1 var(--voice); font-variation-settings: "opsz" 16; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.per { color: var(--ink-2); margin-left: 2px; }
.plan-for { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.compare tbody th, .compare tbody td { padding: 15px 32px; border-top: 1px solid var(--line); font-size: 15px; }
.compare tfoot td { padding: 28px 32px 32px; border-top: 1px solid var(--line); }
.compare tfoot .btn { width: 100%; }
.compare .pro { background: var(--canvas); }
.compare i { display: inline-block; vertical-align: middle; width: 18px; height: 18px; overflow: hidden; text-indent: 100%; white-space: nowrap; position: relative; }
.compare i.yes::after { content: ""; position: absolute; left: 3px; top: 3px; width: 11px; height: 6px; border-left: 1.75px solid var(--cedar); border-bottom: 1.75px solid var(--cedar); transform: rotate(-45deg) translate(-1px, 1px); }
.compare i.no::after { content: ""; position: absolute; left: 4px; top: 8.5px; width: 10px; height: 1.5px; background: var(--ink-3); }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 6vw, 96px); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--ink-3); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--ink-2); max-width: 36em; }

/* Waitlist: the finale. A lit sky, a glass speech bubble, and the app arriving in the Dock. */
.cta { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(96px, 12vw, 160px) 0; }
.sky {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 8% 30%, oklch(0.68 0.19 30 / 0.42), transparent 70%),
    radial-gradient(60% 70% at 94% 40%, oklch(0.66 0.15 245 / 0.38), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, oklch(1 0 0 / 0.9), transparent 70%),
    linear-gradient(oklch(0.96 0.03 50), var(--paper));
  -webkit-mask-image: linear-gradient(transparent, #000 120px); mask-image: linear-gradient(transparent, #000 120px);
}
.sky i { position: absolute; top: -20%; width: 14%; height: 140%; background: linear-gradient(oklch(1 0 0 / 0.55), transparent 80%); filter: blur(18px); rotate: 24deg; transform-origin: top; }
.sky i:nth-child(1) { left: 12%; }
.sky i:nth-child(2) { left: 32%; width: 8%; opacity: 0.8; }
.sky i:nth-child(3) { left: 50%; width: 18%; opacity: 0.6; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.speech { position: relative; padding: 14px 24px; border-radius: 24px; font: 400 clamp(20px, 2.4vw, 26px)/1.3 var(--voice); letter-spacing: -0.01em; }
.speech::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 18px; height: 18px; margin-left: -9px; background: inherit; rotate: 45deg; border-radius: 0 0 4px 0; box-shadow: inset -1px -1px 0 oklch(1 0 0 / 0.8); -webkit-backdrop-filter: inherit; backdrop-filter: inherit; }
.finale-dock { margin-top: 26px; }
.dock-bar { display: flex; align-items: flex-end; gap: 10px; padding: 10px; border-radius: 24px; }
.dock-bar .app-icon { width: 52px; }
.dock-tile { --s: 64px; }
.js .cta .dock-tile { translate: 0 60px; opacity: 0; }
.js .cta.in .dock-tile { animation: dockPop 0.9s var(--spring) 0.6s forwards; }
@keyframes dockPop { 0% { translate: 0 60px; opacity: 0; } 55% { translate: 0 -22px; opacity: 1; } 100% { translate: 0 -8px; opacity: 1; } }
.cta h2 { margin-top: clamp(40px, 5vw, 56px); }
.cta-inner > p:not(.speech) { color: var(--ink-2); margin-top: 14px; max-width: 30em; }
.cta .waitlist { width: 100%; justify-content: center; }
.cta .form-note { text-align: center; }
.cta .invite { margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.invite a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--border); text-underline-offset: 3px; }
.invite a:hover { text-decoration-color: var(--ink); }

.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand.small { font-size: 14px; gap: 8px; color: var(--ink); }
.brand.small .app-tile { --s: 22px; }

/* The window mirrors the Mac app's desk: tabs in the title bar, brief, filter pills, card grid. */
.window {
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  font-size: 13px;
}
.titlebar {
  display: flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.lights { display: flex; gap: 8px; margin-right: 12px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; }
.lights i:nth-child(1) { background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.ico { width: 14px; height: 14px; flex: none; fill: currentColor; }
.tab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 7px; font-weight: 500; }
.tab.is-on { color: var(--ink); background: var(--muted); }
.tab b { font-weight: 500; font-size: 11px; color: var(--ink-2); padding: 1px 6px; border-radius: 5px; background: var(--surface); }
.search {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto; height: 28px; padding: 0 6px 0 10px; width: 250px;
  border-radius: 7px; background: var(--muted); color: var(--ink-3);
}
.search kbd { margin-left: auto; box-shadow: none; background: transparent; font-size: 11px; }
.me-avatar { width: 26px; height: 26px; border-radius: 50%; margin-left: 8px; object-fit: cover; }

.desk { padding: 24px clamp(16px, 3vw, 36px) 32px; }
.brief { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 22px; }
.brief-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin-bottom: 6px; }
.brief-meta b { font-weight: 500; color: var(--cedar-ink); }
.brief-text {
  font-size: clamp(18px, 1.75vw, 21px);
  line-height: 1.4;
  color: oklch(0.2 0.006 275 / 0.6);
  max-width: 44em;
  text-wrap: pretty;
}
.brief-text .ink { color: var(--ink); }
.brief-text u { color: var(--ink); text-decoration-color: oklch(0.2 0.006 275 / 0.22); text-underline-offset: 3px; }
.brief-actions { display: flex; gap: 6px; flex: none; }
.btn-app {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 7px;
  font-weight: 500; color: var(--ink);
  background: var(--surface); box-shadow: 0 0 0 1px var(--border);
  white-space: nowrap;
}
.btn-app .ico { width: 11px; height: 11px; }
.btn-app .num { color: var(--ink-3); font-size: 12px; }
.btn-app-dark { background: var(--ink); color: var(--on-ink); box-shadow: none; }

.filters { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.pills { display: flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 9px; background: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 6px; color: var(--ink-2); white-space: nowrap; }
.pill img { width: 13px; height: 13px; }
.pill b { font-weight: 400; font-size: 12px; color: var(--ink-3); }
.pill.is-on { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-card); }
.pills.view { flex: none; align-self: flex-start; }

.group { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--ink-3); }
.group b { color: var(--ink); font-weight: 600; font-size: 14px; }
.group .num { color: var(--ink-3); }
.group span:last-child { font-size: 12px; }

.cards { display: grid; gap: 10px; margin-bottom: 26px; }
.cards.needs { grid-template-columns: repeat(3, 1fr); }
.cards.catching { grid-template-columns: repeat(4, 1fr); }
.cards:last-child { margin-bottom: 0; }
.ccard { display: flex; flex-direction: column; gap: 10px; padding: 12px; min-width: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-card); }
.needs .ccard:first-child { box-shadow: 0 0 0 1px var(--border), 0 6px 18px -8px oklch(0 0 0 / 0.16); }
.ccard-top { display: flex; align-items: flex-start; gap: 10px; }
.av { position: relative; flex: none; width: 32px; height: 32px; }
.av > img:first-child, .hash { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.hash { display: grid; place-items: center; background: var(--muted); color: var(--ink-2); font-weight: 600; font-size: 15px; }
.av .badge { position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; padding: 2px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.who b { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who span { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard time { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.count { font-style: normal; font-size: 11px; font-weight: 600; line-height: 16px; min-width: 16px; padding: 0 4px; text-align: center; border-radius: 8px; background: var(--ink); color: var(--on-ink); }
.msg { width: fit-content; max-width: 100%; padding: 7px 10px; border-radius: 10px; background: var(--muted); color: var(--ink); line-height: 1.45; }
.msg b { font-weight: 600; }
.file { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--surface); color: var(--ink-2); box-shadow: 0 0 0 1px var(--line); white-space: nowrap; }
.agent { display: flex; align-items: baseline; gap: 7px; font-family: var(--voice); font-variation-settings: "opsz" 16; font-size: 14.5px; line-height: 1.35; color: var(--cedar-ink); }
.agent .mark { transform: translateY(1px); }

.works-with { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.works-with span { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }

/* Hero entrance: the brief writes itself, then the cards settle in. */
.brief-text .w { opacity: 0.08; transition: opacity 0.35s ease; }
.brief-text .w.on { opacity: 1; }
.ccard, .brief-actions, .group { transition: opacity 0.5s ease, transform 0.5s ease; }
.is-animating .ccard, .is-animating .brief-actions, .is-animating .group { opacity: 0; transform: translateY(6px); }
/* Interactive demo */
.try { margin-bottom: 14px; font-size: 14px; color: var(--ink-2); }
.try .mark { margin-right: 6px; vertical-align: -1px; }
.try b { font-weight: 600; color: var(--ink); }
.try .keys-hint { color: var(--ink-3); }
.window:focus { outline: none; }
.window:focus-visible { outline: 2px solid var(--cedar); outline-offset: 4px; }
.window { position: relative; }
.window button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.window .tab { height: 28px; padding: 0 10px; }
.window .tab:not(.is-on):hover { background: var(--muted); color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: var(--ink); outline: none; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within { background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.screen { overflow: hidden; }
.timeline, .inspector, .lanes, .pills, .ask-view { scrollbar-width: none; }
.timeline::-webkit-scrollbar, .inspector::-webkit-scrollbar, .lanes::-webkit-scrollbar, .pills::-webkit-scrollbar, .ask-view::-webkit-scrollbar { display: none; }
.ask-view { height: 100%; overflow-y: auto; }
.window .btn-app { height: 30px; padding: 0 11px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); }
.window .btn-app:hover { box-shadow: 0 0 0 1px var(--ink-3); }
.window .btn-app-dark { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.window .btn-app-dark:hover { background: oklch(0.3 0.006 275); box-shadow: none; }
.window .btn-app:disabled { opacity: 0.45; cursor: default; }
.window .pill { height: 26px; padding: 0 9px; }
.window .pill:not(.is-on):hover { color: var(--ink); }
.brief-text u { cursor: pointer; }
.brief-text u:hover { text-decoration-color: var(--ink); }

.ccard { position: relative; cursor: pointer; transition: box-shadow 0.15s, opacity 0.5s ease, transform 0.5s ease; }
.ccard:hover { box-shadow: 0 0 0 1px var(--border), 0 6px 18px -8px oklch(0 0 0 / 0.16); }
.ccard.is-sel, .ccard:focus-visible { outline: none; box-shadow: 0 0 0 1.5px var(--ink), 0 6px 18px -8px oklch(0 0 0 / 0.16); }
.ccard.is-done { opacity: 0.6; }
.ccard.is-done:hover { opacity: 1; }
.window .done-btn {
  position: absolute; top: 8px; right: 8px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--border); color: var(--ink-2);
  opacity: 0; transition: opacity 0.12s;
}
.ccard:hover .done-btn, .ccard.is-sel .done-btn, .ccard:focus-within .done-btn { opacity: 1; }
.window .done-btn:hover { color: var(--ink); box-shadow: 0 0 0 1px var(--ink-3); }
.done-group .agent { display: none; }
.empty { display: flex; align-items: center; gap: 8px; padding: 56px 0; justify-content: center; font-family: var(--voice); font-size: 18px; color: var(--cedar-ink); }
.hash.initials { font-size: 12px; }

.lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.lane { padding: 10px; border-radius: var(--r); background: var(--muted); }
.lane .group { align-items: center; margin-bottom: 10px; }
.lane .cards { grid-template-columns: 1fr; margin: 0; }

/* Conversation */
.conv { display: grid; grid-template-columns: 1fr 250px; height: 100%; }
.conv-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.conv-head { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.window .icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; font-size: 22px; line-height: 1; color: var(--ink-2); }
.window .icon-btn:hover { background: var(--muted); color: var(--ink); }
.mode { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--ink-2); }
.mode b { font-weight: 600; color: var(--ink); }
.conv-head .btn-app kbd { margin-left: 4px; }
.timeline { flex: 1; min-height: 0; overflow-y: auto; padding: 20px clamp(16px, 4vw, 56px); text-align: center; }
.timeline > * { text-align: left; }
.agent-card { display: inline-flex; align-items: baseline; gap: 8px; margin-bottom: 8px; padding: 8px 14px; border-radius: 999px; background: var(--cedar-soft); color: var(--cedar-ink); font-family: var(--voice); font-size: 15px; }
.day { text-align: center !important; font-size: 12px; color: var(--ink-3); margin: 4px 0 8px; }
.row { display: flex; flex-direction: column; align-items: flex-start; margin-top: 6px; }
.row.me { align-items: flex-end; }
.row > p:not(.author) { max-width: 78%; }
.author { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 6px 0 2px 4px; }
.bubble-in, .bubble-me { padding: 8px 12px; border-radius: 14px; line-height: 1.45; font-size: 14px; }
.bubble-in { background: var(--muted); color: var(--ink); border-bottom-left-radius: 5px; }
.bubble-me { background: var(--bubble-out); color: var(--on-ink); border-bottom-right-radius: 5px; animation: pop 0.25s ease; }
.bubble-in .file, .bubble-me .file { margin-left: 6px; }
.stamp { margin-left: 10px; font-size: 11px; opacity: 0.55; white-space: nowrap; }
.tr { display: flex; align-items: baseline; gap: 6px; margin: 3px 0 4px 4px; font-family: var(--voice); font-size: 14px; color: var(--cedar-ink); }
.reel { display: inline-flex; align-items: center; gap: 10px; }
.reel img { width: 18px; height: 18px; }
.reel b { display: block; font-weight: 600; }
.reel .play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-size: 10px; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.composer { margin: 0 clamp(16px, 4vw, 56px) 18px; padding: 10px 12px; border-radius: 12px; background: var(--surface); box-shadow: 0 0 0 1px var(--border), 0 4px 14px -8px oklch(0 0 0 / 0.12); }
.composer:focus-within { box-shadow: 0 0 0 1px var(--ink-3), 0 4px 14px -8px oklch(0 0 0 / 0.12); }
.composer textarea { width: 100%; resize: none; border: 0; outline: none; background: none; font: 14px/1.5 var(--sans); color: var(--ink); }
.composer textarea::placeholder { color: var(--ink-3); }
.composer-row { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.window .write { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; margin-left: -6px; border-radius: 7px; font-size: 13px; color: var(--ink); }
.window .write:hover { background: var(--cedar-soft); }
.via { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12px; color: var(--ink-2); }
.via img { width: 14px; height: 14px; }
.via b { font-weight: 600; color: var(--ink); }
.window .send { height: 30px; padding: 0 14px; border-radius: 7px; background: var(--ink); color: var(--on-ink); font-weight: 500; }
.window .send:disabled { opacity: 0.3; cursor: default; }

.inspector { display: flex; flex-direction: column; align-items: center; padding: 24px 18px; border-left: 1px solid var(--line); background: var(--canvas); overflow-y: auto; }
.av.xl { width: 72px; height: 72px; margin-bottom: 12px; }
.av.xl > img:first-child, .av.xl .hash { width: 72px; height: 72px; font-size: 26px; }
.av.xl .badge { width: 24px; height: 24px; padding: 4px; right: -2px; bottom: -2px; }
.i-name { font-size: 15px; font-weight: 600; }
.i-title { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 2px; }
.i-label { align-self: stretch; display: flex; align-items: center; gap: 6px; margin: 22px 0 8px; font-size: 12px; font-weight: 500; color: var(--ink-3); }
.i-label.cedar { color: var(--cedar-ink); }
.i-list, .i-memory { align-self: stretch; }
.i-list li { display: flex; align-items: center; gap: 8px; height: 30px; font-size: 13px; }
.i-memory li { padding: 7px 0; border-top: 1px solid var(--line); font-family: var(--voice); font-size: 14px; line-height: 1.35; }
.i-memory li:first-child { border-top: 0; }

/* Ask UnifiedChat */
.ask-view { max-width: 640px; margin: 0 auto; padding: 48px 20px; }
.ask-title { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font-family: var(--voice); font-size: 26px; letter-spacing: -0.01em; }
.ask-title .mark { width: 18px; height: 18px; }
.ask-form { display: flex; gap: 8px; }
.ask-form input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--border); font: 14px var(--sans); color: var(--ink); outline: none; }
.ask-form input:focus { box-shadow: 0 0 0 1px var(--ink-3); }
.ask-form .btn-app { height: 40px; padding: 0 16px; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.window .sugg { padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--muted); }
.window .sugg:hover { color: var(--ink); }
.answers { margin-top: 28px; display: grid; gap: 14px; }
.answer { padding: 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-card); animation: pop 0.25s ease; }
.answer .q { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.answer .a { display: flex; align-items: baseline; gap: 8px; font-family: var(--voice); font-size: 16px; line-height: 1.45; color: var(--cedar-ink); }
.window .source { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: var(--canvas); box-shadow: 0 0 0 1px var(--line); }
.window .source img { width: 14px; height: 14px; }
.window .source:hover { color: var(--ink); }

.toast {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 10px);
  padding: 8px 14px; border-radius: 9px; background: var(--ink); color: var(--on-ink); font-size: 13px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; white-space: nowrap;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .conv { grid-template-columns: 1fr; }
  .inspector { display: none; }
  .conv-head .mode { display: none; }
  .conv-head .btn-app { margin-left: auto; }
}
@media (max-width: 680px) {
  .try .keys-hint { display: none; }
  .row > p:not(.author) { max-width: 90%; }
  .via { display: none; }
  .window .send { margin-left: auto; }
  .conv-head .btn-app kbd { display: none; }
}
@media (hover: none) { .window .done-btn { opacity: 1; } }

/* Responsive */
@media (max-width: 1100px) {
  .promises { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .cards.needs { grid-template-columns: 1fr 1fr; }
  .cards.catching { grid-template-columns: 1fr 1fr; }
  .search { width: auto; }
  .brief { flex-direction: column; align-items: flex-start; gap: 14px; }
  .filters { flex-direction: column; }
  .hero-top, .split-grid, .faq-grid, .personas { grid-template-columns: 1fr; }
  .split-copy { order: -1; }
  .brief-card, .ask-card { justify-self: center; }
  .remember { width: min(520px, 100%); margin-inline: auto; }
  .pricing-head { grid-template-columns: 1fr; }
  .billing { justify-self: start; margin-top: 24px; }
  .more { grid-template-columns: 1fr 1fr; }
  .persona-inbox { min-height: 0; }
  .voices { grid-template-columns: 1fr 1fr; gap: 16px; }
  .draft-card { grid-column: 1 / -1; grid-row: 1; justify-self: center; width: min(440px, 100%); }
  .tone.left, .tone.right { justify-self: stretch; width: auto; margin: 0; rotate: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(1160px, 100% - 32px); }
  .nav-inner { width: calc(100% - 24px); }
  .stack { height: 380px; }
  .stack .note { width: 300px; margin-left: -150px; padding: 12px 14px; }
  .stack .note:nth-of-type(1) { --ty: -110px; }
  .stack .note:nth-of-type(2) { --ty: -38px; }
  .stack .note:nth-of-type(3) { --ty: 34px; }
  .stack .note:nth-of-type(4) { --ty: 106px; }
  .stack .app-tile { --s: 64px; margin: -32px 0 0 -32px; translate: -130px -165px; }
  .together { padding-right: 0; }
  .contact { position: relative; right: auto; bottom: auto; margin: -24px 0 0 auto; width: min(280px, 90%); }
  .scene-notes { margin-top: 48px; flex-direction: column; align-items: flex-start; width: fit-content; margin-inline: auto; }
  .remember { padding: 0 0 96px; }
  .voices { grid-template-columns: 1fr; }
  .more { grid-template-columns: 1fr; }
  .promises { grid-template-columns: 1fr; }
  .orbit { --size: 320px; }
  .planet { width: 52px; margin: -26px 0 0 -26px; }
  .planet .app-icon { width: 52px; }
  .planet b { top: 58px; font-size: 11.5px; }
  .orbit .app-tile.xxl { --s: 80px; }
  .dock { gap: 8px; padding: 10px; }
  .app-name { display: none; }
  .dock b { font-size: 11px; min-width: 20px; height: 20px; padding: 0 5px; top: -6px; right: -6px; }
  .dock-bar { gap: 6px; padding: 8px; }
  .dock-bar .app-icon { width: 38px; }
  .dock-tile { --s: 48px; }
  .compare thead td, .compare tbody th { width: 40%; }
  .compare thead th, .compare thead td { padding: 20px 12px; }
  .compare tbody th, .compare tbody td { padding: 12px; font-size: 14px; }
  .compare tfoot td { padding: 16px 12px 20px; }
  .compare tfoot .btn { padding: 0 8px; font-size: 14px; }
  .plan-for, .compare thead .voice { display: none; }
  .per { display: block; margin: 4px 0 0; font-size: 13px; }
  .amount { font-size: 36px; }
  .compare .long { display: none; }
  .cards.needs, .cards.catching { grid-template-columns: 1fr; }
  .search { display: none; }
  .me-avatar { margin-left: auto; }
  .pills.view { display: none; }
  .pills { flex-wrap: nowrap; overflow-x: auto; }
  .group span:last-child { display: none; }
  .agenda li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
  .agenda .tag { grid-column: 1 / -1; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
