:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #5E5CE6;
  --grad: linear-gradient(92deg, #5E5CE6 0%, #A35BF0 52%, #F2668B 100%);
  --cinema: #000000;
  --cinema-ink: #F5F5F7;
  --cinema-muted: #86868B;
  --radius: 28px;
  --wrap: 1180px;
  --font-display: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.04; margin: 0; letter-spacing: -0.035em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

kbd { font-family: var(--font-body); font-size: 0.8em; font-weight: 600; padding: 1px 7px; margin: 0 2px; border-radius: 7px; border: 1px solid var(--line); border-bottom-width: 2px; background: var(--surface); color: var(--ink); }

.ink-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 16px; letter-spacing: -0.005em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  color: #fff; background: var(--ink); border: 0; transition: transform 0.25s var(--ease), background 0.2s; }
.btn:hover { transform: scale(1.03); background: #000; }
.btn-quiet { background: transparent; color: var(--accent); }
.btn-quiet:hover { background: rgba(94, 92, 230, 0.08); }
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
.cta-row.center { justify-content: center; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); background: rgba(245, 245, 247, 0.74); border-bottom: 1px solid var(--line); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.nav.on-dark { background: rgba(0, 0, 0, 0.6); color: var(--cinema-ink); border-color: rgba(255, 255, 255, 0.1); }
.nav.on-dark .btn { background: #fff; color: #000; }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -0.04em; }
.nav-links { display: flex; gap: 24px; margin-left: 18px; }
.nav-links a { text-decoration: none; font-size: 13px; opacity: 0.8; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.link-gh { display: inline-flex; opacity: 0.75; }
.link-gh:hover { opacity: 1; }

/* Scenes: a tall section whose inner panel stays put while you scroll through it */
.scene { position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* Hero */
.hero { height: 340vh; }
.hero .sticky { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(163, 91, 240, 0.12), transparent 70%), var(--bg); }
.hero-copy { position: relative; z-index: 2; text-align: center; padding: clamp(64px, 11vh, 120px) 20px 0; will-change: transform, opacity; }
.hero h1 { font-size: clamp(52px, 9vw, 128px); letter-spacing: -0.05em; }
.lead { max-width: 640px; margin: 24px auto 0; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); }
.hero .cta-row { justify-content: center; }
.device-wrap { position: absolute; left: 50%; top: 0; width: min(1100px, 90vw); z-index: 1; will-change: transform; transform-origin: 50% 0; }
.device { position: relative; margin: 0; aspect-ratio: 1280 / 789; border-radius: 22px; overflow: hidden; background: #0B0B0E;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 50px 120px -30px rgba(40, 30, 90, 0.45), 0 20px 40px -20px rgba(0, 0, 0, 0.3); }
.device img, .device video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.device video { opacity: 0; transition: opacity 0.4s; }
.device video.ready { opacity: 1; }

/* Statement: words light up as you read */
.statement { height: 200vh; }
.statement .sticky { display: flex; align-items: center; }
.reveal-words { font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -0.035em; max-width: 1000px; }
.reveal-words .w { opacity: 0.16; transition: opacity 0.25s linear; }
.reveal-words .w.lit { opacity: 1; }

/* Cinema: black scenes for the clips */
.cinema { background: var(--cinema); color: var(--cinema-ink); }
.film { height: 340vh; }
.film .sticky { display: grid; grid-template-rows: auto 1fr auto; align-items: center; justify-items: center; padding: 80px 0 40px; gap: 20px; }
.film-head { width: min(1000px, 86vw); display: flex; align-items: center; gap: 18px; }
.clock { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--cinema-muted); font-variant-numeric: tabular-nums; min-width: 72px; }
.film-bar { flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); overflow: hidden; }
.film-bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.device.dark { width: min(1000px, 86vw, calc((100svh - 300px) * 1.62)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 140px -30px rgba(120, 90, 255, 0.35); will-change: transform; }
.captions { position: relative; width: min(1000px, 86vw); min-height: 120px; }
.captions li { position: absolute; inset: 0 auto auto 0; max-width: 640px; opacity: 0; transform: translateY(18px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.captions li.on { opacity: 1; transform: none; }
.captions h2 { font-size: clamp(28px, 3.4vw, 44px); }
.captions p { margin-top: 10px; color: var(--cinema-muted); font-size: 18px; }

/* Reel: cards slide sideways while you scroll down */
.reel { height: 300vh; }
.reel .sticky { display: flex; flex-direction: column; justify-content: center; gap: 40px; }
.reel-head h2 { font-size: clamp(40px, 6vw, 80px); }
.reel-track { display: flex; gap: 28px; padding-left: max(20px, calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.reel-card { flex: none; width: min(620px, 78vw); margin: 0; }
.reel-media { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: #111; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.35); }
.reel-media img, .reel-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-media video { opacity: 0; transition: opacity 0.4s; }
.reel-media video.ready { opacity: 1; }
.reel-card figcaption { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 520px; }
.reel-card b { color: var(--ink); font-weight: 600; }

/* Numbers */
.numbers { padding: 140px 0 60px; }
.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-n { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(56px, 7vw, 96px); letter-spacing: -0.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat-n small { font-size: 0.5em; }
.stat-l { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 200px; }

/* Sections */
section { position: relative; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(40px, 6vw, 80px); }
.section-sub { max-width: 660px; margin: 22px auto 0; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }

/* Buddies bento */
.buddies { padding: 140px 0 40px; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile { padding: 34px 32px; border-radius: var(--radius); background: var(--surface); min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.tile:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(40, 30, 90, 0.25); }
.tile-wide { grid-column: span 2; background: linear-gradient(135deg, #EEF0FF, #FBEFF6); }
.tile-wide:last-child { grid-column: span 3; }
.tile h3 { font-size: 26px; letter-spacing: -0.03em; }
.tile p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 520px; }

/* Everything */
.everything { padding: 140px 0 40px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 auto 34px; padding: 5px; width: fit-content; max-width: 100%; border-radius: 999px; background: rgba(0, 0, 0, 0.05); }
.filters button { font: 500 14px var(--font-body); color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: background 0.25s var(--ease), color 0.2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.cat-card { position: relative; padding: 24px 24px 26px; border-radius: 22px; background: var(--surface); overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.cat-card::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s; pointer-events: none;
  background: radial-gradient(220px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(163, 91, 240, 0.12), transparent 70%); }
.cat-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(40, 30, 90, 0.3); }
.cat-card:hover::before { opacity: 1; }
.cat-card[hidden] { display: none; }
.cat-tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.cat-card h3 { font-size: 20px; margin-top: 8px; letter-spacing: -0.025em; }
.cat-card p { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Privacy */
.privacy { padding: 140px 0 40px; }
.pipeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pipe-line { position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.pipe-line span { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); }
.pipe-node { position: relative; padding: 26px 22px; border-radius: 22px; background: var(--surface); text-align: center; }
.pipe-node b { display: block; font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; }
.pipe-node span { color: var(--muted); font-size: 14px; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.cards3 article { padding: 32px 30px; border-radius: var(--radius); background: var(--surface); }
.cards3 h3 { font-size: 24px; }
.cards3 p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.provider-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.provider-row li { padding: 12px 20px; border-radius: 999px; background: var(--surface); font-size: 15px; }
.provider-row b { font-weight: 600; }
.provider-row span { color: var(--muted); margin-left: 8px; }

/* Get */
.get { padding: 140px 0 40px; }
.get-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 56px; border-radius: 36px; background: var(--surface); }
.get h2 { font-size: clamp(34px, 4vw, 52px); }
.get .section-sub { margin-left: 0; }
.reqs { margin-top: 22px; display: grid; gap: 8px; font-size: 16px; }
.reqs li::before { content: "→ "; color: var(--accent); }
.reqs a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.code { border-radius: 18px; overflow: hidden; background: #111114; color: #E8E8ED; }
.code-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #1C1C20; }
.code-bar span { width: 11px; height: 11px; border-radius: 50%; background: #3A3A40; }
.copy { margin-left: auto; font: 500 13px var(--font-body); color: #C7C7CC; background: rgba(255, 255, 255, 0.08); border: 0; border-radius: 8px; padding: 5px 12px; cursor: pointer; }
.copy:hover { color: #fff; }
.code pre { margin: 0; padding: 22px 22px 26px; overflow-x: auto; font: 14px/1.8 ui-monospace, "SF Mono", Menlo, monospace; }
.code .c { color: #8E8E96; }

/* FAQ */
.faq { padding: 140px 0 40px; }
.faq-list { max-width: 800px; display: grid; gap: 10px; }
details { border-radius: 20px; background: var(--surface); }
summary { cursor: pointer; padding: 22px 26px; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--accent); transition: transform 0.3s var(--ease); flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 26px 24px; color: var(--muted); }

/* Closing */
.closing { padding: 160px 0 140px; text-align: center; }
.closing img { margin: 0 auto 30px; }
.closing h2 { font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.05em; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer .brand { font-size: 18px; color: var(--ink); }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; margin-left: 8px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: var(--ink); }
.footer-inner p { margin-left: auto; }

/* Rise in once (JS only, so nothing hides without it) */
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Flat layout: phones, small screens and Reduce Motion get the same content without pinning */
.flat .scene, .flat .hero, .flat .statement, .flat .film, .flat .reel { height: auto; }
.flat .sticky { position: relative; height: auto; overflow: visible; }
.flat .hero .sticky { padding-bottom: 60px; }
.flat .device-wrap { position: relative; left: auto; transform: none !important; margin: 48px auto 0; width: min(1100px, 92vw); }
.flat .hero-copy { opacity: 1 !important; transform: none !important; }
.flat .statement .sticky { padding: 100px 0; }
.flat .reveal-words .w { opacity: 1; }
.flat .film .sticky { padding: 80px 0; }
.flat .device.dark { width: min(1000px, 92vw); transform: none !important; }
.flat .captions { min-height: 0; display: grid; gap: 28px; }
.flat .captions li { position: relative; opacity: 1; transform: none; }
.flat .film-bar span { transform: scaleX(1); }
.flat .reel .sticky { padding: 100px 0; }
.flat .reel-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; transform: none !important; padding-right: 20px; }
.flat .reel-card { scroll-snap-align: start; }
.flat .pipe-line span { transform: scaleX(1); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .bento, .cards3 { grid-template-columns: 1fr; }
  .tile-wide, .tile-wide:last-child { grid-column: auto; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipe-line { display: none; }
  .get-inner { grid-template-columns: 1fr; padding: 32px 22px; }
  .footer-inner p { margin-left: 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .numbers { padding-top: 90px; }
  .buddies, .everything, .privacy, .get, .faq { padding-top: 90px; }
  .section-head { margin-bottom: 40px; }
  .device { border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .cat-card, .captions li, .device video { transition: none; }
}

/* ---------- Live app replica (app-preview.js): Wisp's Today window in HTML ---------- */
.device.is-live { background: #0E0E10; }
.device .wapp { position: absolute; left: 0; top: 0; width: 1400px; height: 863px; transform-origin: 0 0; }
.wa { --w-bg: #111113; --w-panel: #1B1B1D; --w-main: #1E1E20; --w-card: #252528; --w-line: rgba(255, 255, 255, 0.08);
  --w-text: #F4F4F6; --w-muted: #9C9CA3; --w-dim: #6F6F77; --w-lav: #A78BFA;
  position: relative; width: 100%; height: 100%; display: flex; background: var(--w-bg); color: var(--w-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; font-size: 13px; line-height: 1.3;
  -webkit-font-smoothing: antialiased; overflow: hidden; text-align: left; letter-spacing: 0; }
.wa b { font-weight: 600; }
.wa-lights { position: absolute; left: 14px; top: 16px; display: flex; gap: 8px; z-index: 3; }
.wa-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.wa-lights i:nth-child(2) { background: #FEBC2E; }
.wa-lights i:nth-child(3) { background: #28C840; }

.wa-rail { width: 56px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 56px 0 14px; color: #B9B9C0; }
.wa-rail-ic { width: 38px; height: 36px; display: grid; place-items: center; border-radius: 10px; }
.wa-rail-ic.on { background: #2A2A2E; color: #fff; }
.wa-rail-gear { margin-top: auto; }

.wa-side { position: relative; width: 256px; flex: none; margin: 46px 6px 6px 0; background: var(--w-panel); border-radius: 14px;
  padding: 12px 10px 0; display: flex; flex-direction: column; }
.wa-new { position: absolute; right: 6px; top: -40px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #26262A; color: #D6D6DC; }
.wa-search { display: flex; align-items: center; gap: 10px; color: var(--w-muted); margin-bottom: 8px; padding-left: 6px; }
.wa-field { flex: 1; display: flex; align-items: center; gap: 6px; background: #26262A; border-radius: 10px; padding: 7px 10px; font-size: 13px; }
.wa-group { display: flex; align-items: center; gap: 6px; padding: 12px 8px 6px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--w-muted); font-weight: 600; }
.wa-group i { font-style: normal; }
.wa-group .ic { margin-left: auto; }
.wa-row { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 10px; transition: background 0.3s; }
.wa-av { position: relative; flex: none; width: 38px; height: 38px; }
.wa-ring { position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--w-lav); opacity: 0; transition: opacity 0.3s; }
.wa-row.working .wa-ring { opacity: 1; animation: wa-spin 0.9s linear infinite; }
.wa-row.working { background: rgba(167, 139, 250, 0.1); }
.wa-row-body { min-width: 0; flex: 1; }
.wa-row-top { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.wa-chip { font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; background: #2C2C31; color: #D8D8DE; }
.wa-time { margin-left: auto; font-size: 12px; color: var(--w-muted); }
.wa-unread { width: 8px; height: 8px; border-radius: 50%; background: var(--w-lav); display: none; }
.wa-row.unread .wa-unread { display: block; }
.wa-row.unread .wa-row-text { color: var(--w-text); }
.wa-row-text { display: block; font-size: 13px; color: #C9C9CF; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.wa-row.working .wa-row-text { color: var(--w-lav); }
.wa-side-foot { margin: auto -10px 0; padding: 12px 18px 14px; border-top: 1px solid var(--w-line); display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.wa-side-foot span, .wa-status span { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: #C9C9CF; }

.wa-main { position: relative; flex: 1; margin: 6px 6px 6px 0; background: var(--w-main); border-radius: 16px; padding: 0 24px; overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--w-line); transition: box-shadow 0.5s; }
.wa.is-listening .wa-main { box-shadow: inset 0 0 0 2px rgba(167, 139, 250, 0.8), inset 0 0 60px rgba(139, 92, 246, 0.45); }
.wa-status { position: absolute; right: 14px; top: 10px; display: flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #18181A; box-shadow: 0 0 0 1px var(--w-line); font-size: 13px; }
.wa-dot { width: 7px; height: 7px; border-radius: 50%; background: #34C77B; transition: background 0.3s; }
.wa.is-listening .wa-dot, .wa.is-thinking .wa-dot { background: var(--w-lav); box-shadow: 0 0 8px var(--w-lav); }

.wa-hero { display: flex; flex-direction: column; align-items: center; padding-top: 72px; height: 316px; }
.wa-mascot { height: 70px; margin-bottom: -7px; }
.wa-mascot .big { filter: drop-shadow(0 8px 18px rgba(61, 124, 246, 0.45)); transition: transform 0.4s; }
.wa.is-listening .wa-mascot .big { animation: wa-bob 1.1s ease-in-out infinite; }
.wa.is-thinking .wa-mascot .big { animation: wa-think 1.6s ease-in-out infinite; }
.wa.is-answered .wa-mascot .mouth { d: path("M16 28.6 q4 3.4 8 0"); }
.wa-ask { position: relative; z-index: 1; width: 362px; height: 50px; border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 0 18px;
  background: linear-gradient(100deg, #3A3A40, #2A2A2F 60%, #3A3A40); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 30px rgba(0, 0, 0, 0.4); font-size: 15px; font-weight: 600; overflow: hidden; }
.wa.is-thinking .wa-ask::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(167, 139, 250, 0.35) 50%, transparent 70%); background-size: 200% 100%; animation: wa-shimmer 1.2s linear infinite; }
.wa-ask-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-ask-text.is-placeholder { font-weight: 600; }
.wa-caret { width: 2px; height: 18px; background: var(--w-lav); display: none; animation: wa-blink 1s steps(1) infinite; }
.wa.is-listening .wa-caret { display: block; }
.wa-mic { display: grid; color: #fff; }
.wa.is-listening .wa-mic { color: var(--w-lav); }
.wa-wave { margin-left: auto; display: none; gap: 3px; align-items: center; height: 20px; }
.wa.is-listening .wa-wave { display: flex; }
.wa-wave i { width: 3px; height: 6px; border-radius: 2px; background: var(--w-lav); animation: wa-wave 0.9s ease-in-out infinite; }
.wa-wave i:nth-child(2) { animation-delay: -0.2s; } .wa-wave i:nth-child(3) { animation-delay: -0.45s; }
.wa-wave i:nth-child(4) { animation-delay: -0.1s; } .wa-wave i:nth-child(5) { animation-delay: -0.6s; }
.wa h3 { margin: 30px 0 6px; font-size: 29px; font-weight: 700; letter-spacing: -0.015em; color: var(--w-text); font-family: inherit; }
.wa-hint, .wa-answer { margin: 0; font-size: 13.5px; color: #D3D3D8; text-align: center; max-width: 620px; }
.wa-hint kbd { font: 600 11px/1 ui-monospace, Menlo, monospace; padding: 3px 6px; border-radius: 5px; background: #2B2B30; box-shadow: 0 0 0 1px var(--w-line); color: #E4E4E9; transition: background 0.2s, color 0.2s; }
.wa.is-listening .wa-hint kbd { background: var(--w-lav); color: #1A1033; transform: translateY(1px); }
.wa-answer { display: none; color: #ECE7FF; }
.wa.is-answered .wa-hint { display: none; }
.wa.is-answered .wa-answer { display: block; }
.wa-speaker { margin-top: 14px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #26262A; color: #E4E4E9; }

.wa-card { background: var(--w-card); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--w-line); padding: 14px 16px; }
.wa-card-head { display: flex; align-items: center; gap: 9px; font-size: 16px; margin-bottom: 10px; color: var(--w-text); }
.wa-card-head .ic { color: #C9C9CF; }
.wa-card-head > span:last-child { margin-left: auto; font-size: 12.5px; font-weight: 600; }
.wa-round { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #34343A; }
.wa-item { display: flex; align-items: center; gap: 12px; height: 24px; font-size: 13.5px; transition: height 0.45s, opacity 0.45s, background 0.6s; border-radius: 6px; margin: 0 -6px; padding: 0 6px; }
.wa-item.is-new { height: 0; opacity: 0; overflow: hidden; }
.wa-item.is-new.shown { height: 24px; opacity: 1; }
.wa-item.flash { background: rgba(167, 139, 250, 0.2); }
.wa-box { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.4px #A3A3AA; display: grid; place-items: center; color: transparent; transition: background 0.3s, color 0.3s, box-shadow 0.3s; }
.wa-item.done .wa-box { background: #F4F4F6; color: #1B1B1D; box-shadow: none; }
.wa-item-text { transition: color 0.3s; }
.wa-item.done .wa-item-text { color: var(--w-dim); text-decoration: line-through; }
.wa-item-note { margin-left: auto; font-size: 12px; color: var(--w-muted); }

.wa-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 0.62fr; gap: 14px; margin-top: 14px; }
.wa-grid .wa-card { height: 330px; }
.wa-mini { display: flex; gap: 10px; align-items: center; margin-bottom: 11px; font-size: 12.5px; color: #CFCFD5; }
.wa-mini span { display: flex; flex-direction: column; }
.wa-mini b { font-size: 14px; color: var(--w-text); }
.wa-mini em { font-style: normal; transition: color 0.3s; }
.wa-mini.working em { color: var(--w-lav); }
.wa-mini.working .bud { animation: wa-bob 0.9s ease-in-out infinite; }
.wa-event { border-left: 3px solid var(--bar); padding: 1px 0 1px 10px; margin-bottom: 11px; font-size: 12.5px; color: #CFCFD5; display: flex; flex-direction: column; transition: max-height 0.5s, opacity 0.5s, margin 0.5s; max-height: 44px; }
.wa-event b { font-size: 14px; color: var(--w-text); }
.wa-event.is-new { max-height: 0; opacity: 0; margin-bottom: 0; overflow: hidden; }
.wa-event.is-new.shown { max-height: 44px; opacity: 1; margin-bottom: 11px; }
.wa-brain strong { display: block; font-size: 30px; font-weight: 700; line-height: 1; transition: color 0.4s; }
.wa-brain span { font-size: 12.5px; color: #CFCFD5; }
.wa-brain p { margin: 10px 0 0; font-size: 12.5px; color: #CFCFD5; line-height: 1.35; }
.wa-brain.fresh strong, .wa-brain.fresh p { color: #CDBBFF; }

@keyframes wa-spin { to { transform: rotate(360deg); } }
@keyframes wa-bob { 50% { transform: translateY(-4px); } }
@keyframes wa-think { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(-3px); } }
@keyframes wa-shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes wa-blink { 50% { opacity: 0; } }
@keyframes wa-wave { 50% { height: 18px; } }
@media (prefers-reduced-motion: reduce) { .wa *, .wa *::after { animation: none !important; } }

/* ---------- Liquid glass ---------- */
/* A rim of light: brightest on the top-left and bottom-right edges, like a curved pane. */
.glass-rim::before, .wa-ask::before, .wa-island::before, .glass-chip::before, .nav-inner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }

/* The nav floats as a glass pill. */
.nav { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding-top: 12px; pointer-events: none; }
.nav.on-dark { background: transparent; }
.nav-inner { position: relative; pointer-events: auto; height: 52px; max-width: 1040px; padding: 0 10px 0 22px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  backdrop-filter: blur(22px) saturate(190%); -webkit-backdrop-filter: blur(22px) saturate(190%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 0 0 0.5px rgba(0, 0, 0, 0.08), 0 10px 30px -10px rgba(40, 30, 90, 0.25);
  transition: background 0.3s, box-shadow 0.3s; }
.nav.on-dark .nav-inner { background: linear-gradient(180deg, rgba(40, 40, 46, 0.6), rgba(20, 20, 24, 0.5));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 0 0.5px rgba(255, 255, 255, 0.1), 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.nav.on-dark .nav-inner::before { opacity: 0.4; }

/* Soft colour behind the hero, so the glass has something to bend. */
.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orbs i { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: orb-drift 18s ease-in-out infinite alternate; }
.hero-orbs i:nth-child(1) { left: -8vw; top: 30vh; background: radial-gradient(circle, #8E7CFF, transparent 65%); }
.hero-orbs i:nth-child(2) { right: -10vw; top: 18vh; background: radial-gradient(circle, #FF8FB1, transparent 65%); animation-delay: -6s; }
.hero-orbs i:nth-child(3) { left: 30vw; top: 62vh; background: radial-gradient(circle, #6FC3FF, transparent 65%); animation-delay: -12s; }
@keyframes orb-drift { to { transform: translate(4vw, -5vh) scale(1.12); } }

/* Glass chips that float around the hero window at different depths. */
.float-chips { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.glass-chip { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); color: var(--ink); white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.3));
  backdrop-filter: blur(16px) saturate(200%); -webkit-backdrop-filter: blur(16px) saturate(200%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -8px 16px rgba(255, 255, 255, 0.18), 0 18px 40px -14px rgba(50, 30, 120, 0.45);
  transform: translateY(calc((1 - var(--rise, 1)) * var(--depth))); opacity: calc(var(--rise, 1) * 2 - 1); }
.chip-dot { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.9), transparent 40%), linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18); }
@media (max-width: 900px), (pointer: coarse) { .float-chips { display: none; } }

/* Chromium can bend what's behind the glass, not just blur it. */
.refracts .glass-chip, .refracts .nav-inner { backdrop-filter: url(#glass-bend) blur(16px) saturate(200%); }

/* In the replica: the ask bar is a pane of dark glass. */
.wa-ask { background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)) !important;
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 -10px 20px rgba(255, 255, 255, 0.04), 0 14px 34px rgba(0, 0, 0, 0.45) !important; }

/* The notch island, in Wisp's Liquid Glass style. */
.wa-island { position: absolute; left: 50%; top: 0; z-index: 5; width: 200px; height: 34px; transform: translateX(-50%); border-radius: 0 0 18px 18px; overflow: hidden;
  background: linear-gradient(180deg, rgba(14, 14, 18, 0.92), rgba(30, 28, 40, 0.62));
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.22), 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: width 0.55s cubic-bezier(.3, 1.3, .5, 1), height 0.55s cubic-bezier(.3, 1.2, .5, 1), border-radius 0.5s, box-shadow 0.4s; }
.wa-island::before { opacity: 0; transition: opacity 0.4s; }
.wa-notch { position: absolute; left: 50%; top: 0; width: 190px; height: 32px; transform: translateX(-50%); background: #000; border-radius: 0 0 14px 14px; }
.wa-flank { position: absolute; top: 0; height: 34px; display: flex; align-items: center; opacity: 0; transition: opacity 0.3s; color: #C4B5FD; }
.wa-flank-left { left: 16px; }
.wa-flank-right { right: 16px; }
.wa-island .wa-wave { display: flex; margin: 0; }
.wa-island .wa-dots { display: none; gap: 4px; }
.wa-dots i { width: 5px; height: 5px; border-radius: 50%; background: #C4B5FD; animation: wa-dot 1s ease-in-out infinite; }
.wa-dots i:nth-child(2) { animation-delay: 0.15s; } .wa-dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes wa-dot { 50% { opacity: 0.25; transform: translateY(-2px); } }
.wa-island[data-state="listening"], .wa-island[data-state="thinking"] { width: 300px; box-shadow: inset 0 -1px 0 rgba(196, 181, 253, 0.6), 0 0 26px rgba(139, 92, 246, 0.45), 0 12px 30px rgba(0, 0, 0, 0.4); }
.wa-island[data-state="listening"] .wa-flank, .wa-island[data-state="thinking"] .wa-flank { opacity: 1; }
.wa-island[data-state="thinking"] .wa-wave { display: none; }
.wa-island[data-state="thinking"] .wa-dots { display: flex; }
.wa-island[data-state="approve"] { width: 430px; height: 172px; border-radius: 0 0 30px 30px; }
.wa-island[data-state="reply"] { width: 430px; height: 100px; border-radius: 0 0 30px 30px; }
.wa-island[data-state="approve"]::before, .wa-island[data-state="reply"]::before { opacity: 0.7; }
.wa-island-card { position: absolute; left: 0; right: 0; top: 40px; padding: 0 24px; opacity: 0; transform: translateY(-8px); transition: opacity 0.3s, transform 0.4s; color: #EDEBFA; font-size: 13.5px; }
.wa-island[data-state="approve"] .wa-approve, .wa-island[data-state="reply"] .wa-reply { opacity: 1; transform: none; transition-delay: 0.15s; }
.wa-island-card p { margin: 0 0 6px; line-height: 1.4; }
.wa-island-kicker { display: flex; align-items: center; gap: 8px; font-size: 11.5px !important; font-weight: 600; color: #C4B5FD; letter-spacing: 0.02em; }
.wa-island-kicker svg { width: 16px; }
.wa-island-buttons { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.wa-island-buttons span { padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.wa-island-buttons .wa-allow { background: linear-gradient(180deg, #fff, #E6E3F5); color: #16121F; transition: transform 0.15s, box-shadow 0.3s; }
.wa-island.allowed .wa-allow { transform: scale(0.94); box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.4); }

/* ---------- Live scenes (scenes.js): the films and the reel, drawn in HTML ---------- */
.live b { color: inherit; }
.live { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; overflow: hidden; }
.live-window { width: 1400px; height: 863px; }
.device.is-live, .reel-media.is-live { background: #0E0E10; }
.lv-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; opacity: 0.8; animation: wa-blink 1s steps(1) infinite; }
.lv-pointer { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; transition: transform 0.12s ease-out; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35)); }
.lv-pointer.hidden { opacity: 0; }
.lv-pointer svg { display: block; }

/* The Wisp window in the films. */
.ws .wa-row.selected { background: #29292D; }
.ws-main { display: flex; flex-direction: column; padding: 0; }
.ws-bar { display: flex; align-items: center; gap: 10px; padding: 52px 22px 12px; border-bottom: 1px solid var(--w-line); color: #D6D6DC; }
.ws-tab { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border-radius: 9px; background: #2A2A2E; font-size: 13.5px; color: #fff; }
.ws-tab-plus { color: #8B8B93; display: grid; }
.ws-model { margin-left: auto; font-size: 12.5px; color: #C9C9CF; }
.ws-run { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #F4F4F6; color: #111; font-size: 12.5px; font-weight: 600; transition: transform 0.12s, box-shadow 0.3s; }
.ws-run.pressed { transform: scale(0.93); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.45); }
.ws-icon { display: grid; color: #B9B9C0; }
.ws-threads { position: relative; flex: 1; }
.ws-thread { position: absolute; inset: 0; padding: 18px 70px 0 60px; transition: opacity 0.35s, transform 0.45s; }
.ws-thread[data-thread="writer"] { opacity: 0; transform: translateX(24px); pointer-events: none; }
.ws-thread[data-thread="writer"].here { opacity: 1; transform: none; }
.ws-thread.away { opacity: 0; transform: translateX(-24px); }
.ws-mission { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 13px; color: #D6D6DC; }
.ws-day { margin: 0 0 14px; text-align: center; font-size: 11.5px; color: #8B8B93; }
.ws-steps { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12.5px; color: var(--w-lav); opacity: 0; transform: translateY(6px); transition: opacity 0.3s, transform 0.3s; }
.ws-steps.shown { opacity: 1; transform: none; }
.ws-steps.done { color: #9C9CA3; }
.ws-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: wa-spin 0.8s linear infinite; }
.ws-steps.done .ws-spin { animation: none; border: 0; width: 6px; height: 6px; background: #34C77B; }
.ws-bubble { max-width: 640px; padding: 14px 18px; border-radius: 16px; background: #262629; font-size: 14px; line-height: 1.5; color: #EDEDF0; opacity: 0; transform: translateY(8px); transition: opacity 0.35s, transform 0.35s; }
.ws-bubble.shown { opacity: 1; transform: none; }
.ws-bubble p { margin: 0; min-height: 0.6em; }
.ws-bubble b { color: #fff; }
.ws-plan p + p { margin-top: 3px; }
.ws-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11.5px; color: #8B8B93; opacity: 0; transition: opacity 0.3s; }
.ws-meta.shown { opacity: 1; }
.ws-handed { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(52, 191, 174, 0.12); color: #9BE7DD; font-size: 13px;
  box-shadow: inset 0 0 0 1px rgba(52, 191, 174, 0.35); opacity: 0; transform: scale(0.94); transition: opacity 0.35s, transform 0.45s cubic-bezier(.3, 1.4, .5, 1); }
.ws-handed.shown { opacity: 1; transform: none; }
.ws-handed b { color: #fff; }
.ws-from { display: flex; gap: 12px; max-width: 660px; margin-bottom: 14px; font-size: 13px; color: #C9C9CF; line-height: 1.45; }
.ws-from span { font-size: 11.5px; font-weight: 600; color: #F48AAE; }
.ws-from p { margin: 2px 0 0; }
.ws-composer { display: flex; align-items: center; gap: 10px; margin: 0 22px 18px; padding: 12px 14px; border-radius: 14px; background: #262629; box-shadow: inset 0 0 0 1px var(--w-line); color: #8B8B93; font-size: 13.5px; }
.ws-send { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #3A3A40; color: #D6D6DC; }
.ws-baton { position: absolute; left: 0; top: 0; z-index: 20; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.06)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 0 0 1px rgba(240, 71, 127, 0.5), 0 12px 30px rgba(240, 71, 127, 0.35); opacity: 0; pointer-events: none; }
.ws-baton.flying { opacity: 1; }

/* The automations page. */
.ws-auto { padding: 54px 60px 0; overflow: hidden; flex: 1; }
.ws-say { display: flex; align-items: center; gap: 10px; padding: 11px 12px 11px 16px; border-radius: 14px; background: #262629; box-shadow: inset 0 0 0 1px var(--w-line); color: #EDEDF0; font-size: 14px; transition: box-shadow 0.3s; }
.ws-say.focused { box-shadow: inset 0 0 0 1.5px var(--w-lav), 0 0 0 4px rgba(167, 139, 250, 0.18); }
.ws-say .placeholder { color: #8B8B93; }
.ws-say .lv-caret { display: none; color: var(--w-lav); margin-left: -6px; }
.ws-say .lv-caret.shown { display: inline-block; }
.ws-say-send { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #3A3A40; color: #8B8B93; transition: background 0.2s, transform 0.12s; }
.ws-say-send.ready { background: #F4F4F6; color: #111; }
.ws-say-send.pressed { transform: scale(0.85); }
.ws-say-new { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #2E2E33; }
.ws-draft { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s cubic-bezier(.3, 1, .4, 1), margin 0.6s; margin: 0; }
.ws-draft.open { grid-template-rows: 1fr; margin: 14px 0 6px; }
.ws-draft-inner { overflow: hidden; border-radius: 16px; background: #232326; box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.35); padding: 0 18px; }
.ws-draft.open .ws-draft-inner { padding: 16px 18px; }
.ws-draft-head { display: flex; align-items: center; gap: 9px; font-size: 15px; color: #fff; }
.ws-draft-body { margin: 10px 0 14px; padding: 10px 12px; border-radius: 10px; background: #1B1B1D; font-size: 13.5px; color: #EDEDF0; min-height: 44px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: #2C2C31; color: #EDEDF0; font-size: 12.5px; box-shadow: inset 0 0 0 1px var(--w-line);
  opacity: 0; transform: translateY(6px) scale(0.96); transition: opacity 0.3s, transform 0.4s cubic-bezier(.3, 1.4, .5, 1), box-shadow 0.5s; }
.ws-chip span { display: flex; flex-direction: column; }
.ws-chip i { font-style: normal; font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #8B8B93; }
.ws-chip.shown { opacity: 1; transform: none; }
.ws-chip.glint { box-shadow: inset 0 0 0 1px var(--w-lav), 0 0 18px rgba(167, 139, 250, 0.45); }
.ws-leaves { max-height: 0; opacity: 0; overflow: hidden; margin-top: 0; border-radius: 12px; background: rgba(245, 163, 58, 0.1); box-shadow: inset 0 0 0 1px rgba(245, 163, 58, 0.35); padding: 0 14px;
  font-size: 12.5px; color: #F2D9B5; transition: max-height 0.5s, opacity 0.4s, margin 0.5s, padding 0.5s; }
.ws-leaves.shown { max-height: 160px; opacity: 1; margin-top: 14px; padding: 12px 14px; }
.ws-leaves p { margin: 0 0 6px; }
.ws-leaves-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #F5B65E; }
.ws-allow { display: flex; align-items: center; gap: 10px; }
.ws-leaves-note { color: #B39A78; font-size: 11.5px; margin: 0 !important; }
.ws-draft-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12.5px; color: #C9C9CF; }
.ws-draft-foot > span:first-child { display: inline-flex; gap: 6px; align-items: center; }
.ws-cancel { margin-left: auto; }
.ws-save { padding: 6px 16px; border-radius: 999px; background: #F4F4F6; color: #111; font-weight: 600; transition: transform 0.12s, box-shadow 0.3s; }
.ws-save.pressed { transform: scale(0.92); box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.45); }
.ws-list-head { margin: 18px 0 10px; font-size: 15px; font-weight: 600; color: #fff; }
.ws-list-head i { font-style: normal; font-weight: 500; color: #8B8B93; margin-left: 4px; }
.ws-auto-row { display: flex; align-items: center; gap: 12px; padding: 9px 14px; margin-bottom: 8px; border-radius: 12px; background: #252528; box-shadow: inset 0 0 0 1px var(--w-line); font-size: 12px; color: #A9A9B0; transition: box-shadow 0.6s; }
.ws-auto-row > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.ws-auto-row b { font-size: 13.5px; color: #F4F4F6; font-weight: 600; }
.ws-play { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #34343A; color: #fff; }
.ws-toggle { width: 34px; height: 20px; border-radius: 999px; background: #F4F4F6; position: relative; flex: none; }
.ws-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #34C77B; }
.ws-toggle.off { background: #3A3A40; }
.ws-toggle.off::after { right: auto; left: 2px; background: #8B8B93; }
.ws-new-row { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: 0; opacity: 0; overflow: hidden; transition: max-height 0.5s, padding 0.5s, margin 0.5s, opacity 0.5s, box-shadow 0.6s; }
.ws-new-row.shown { max-height: 60px; padding-top: 9px; padding-bottom: 9px; margin-bottom: 8px; opacity: 1; }
.ws-new-row.glint { box-shadow: inset 0 0 0 1px var(--w-lav), 0 0 24px rgba(167, 139, 250, 0.4); }

/* The Mac desktop in the reel. */
.dk { position: relative; width: 100%; height: 100%; overflow: hidden; transform-origin: 0 0; will-change: transform; color: #1D1D1F; font: 13px/1.35 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; text-align: left;
  background: radial-gradient(60% 70% at 18% 12%, var(--w1), transparent 70%), radial-gradient(55% 60% at 88% 22%, var(--w2), transparent 70%), radial-gradient(70% 60% at 62% 100%, var(--w3), transparent 72%), var(--w4); }
.dk-menubar { position: absolute; left: 0; right: 0; top: 0; height: 30px; display: flex; align-items: center; gap: 18px; padding: 0 16px; font-size: 13px; color: #fff;
  background: rgba(20, 16, 40, 0.28); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); z-index: 5; }
.dk-apple { width: 13px; height: 15px; background: #fff; border-radius: 45% 45% 50% 50% / 35% 35% 65% 65%; }
.dk-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.dk-right svg { width: 18px; }
.mw { position: absolute; display: flex; flex-direction: column; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 24px 60px rgba(10, 5, 40, 0.45); z-index: 1; }
.mw.front { z-index: 2; }
.mw-bar { flex: none; height: 34px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: #F3F3F5; border-bottom: 1px solid #E2E2E6; }
.mw-lights { display: inline-flex; gap: 8px; }
.mw-lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; }
.mw-lights i:nth-child(2) { background: #FEBC2E; }
.mw-lights i:nth-child(3) { background: #28C840; }
.mw-title { font-size: 13px; font-weight: 600; color: #3A3A3E; }

.te-tools { flex: none; display: flex; align-items: center; gap: 12px; padding: 7px 14px; font-size: 12px; color: #444; background: #F7F7F9; border-bottom: 1px solid #E6E6EA; white-space: nowrap; }
.te-group { display: inline-flex; gap: 2px; padding: 2px; border-radius: 6px; background: #ECECEF; }
.te-group > * { min-width: 24px; height: 22px; display: grid; place-items: center; border-radius: 5px; font-size: 12.5px; color: #333; transition: background 0.2s, color 0.2s; }
.te-group .on { background: #3D7CF6; color: #fff; }
.te-swatch { width: 18px; height: 18px; border-radius: 4px; background: #111; }
.te-select { padding: 3px 9px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px #DADADF; }
.te-ruler { flex: none; height: 16px; background: repeating-linear-gradient(90deg, #C8C8CE 0 1px, transparent 1px 40px) 14px 9px / 100% 7px no-repeat, #FAFAFB; border-bottom: 1px solid #ECECEF; }
.te-doc { flex: 1; padding: 14px 20px; color: #111; font-size: 15px; transition: text-align 0.3s; }
.te-doc p { margin: 0 0 4px; }
.te-big { font-size: 30px; line-height: 1.25; }
.te-mid { font-size: 26px; margin: 18px 0 14px !important; }
.te-equation { display: inline-block; padding: 0 4px; background: rgba(61, 124, 246, 0.14); border-radius: 4px; }
.te-doc.bold p { font-weight: 700; }
.te-doc.centered { text-align: center; }
.te-doc.bold p, .te-doc p { transition: font-weight 0.2s; }

/* The notch island on the desktop, in Wisp's Liquid Glass style. */
.isl { position: absolute; left: 50%; top: 0; z-index: 10; width: 210px; height: 32px; transform: translateX(-50%); border-radius: 0 0 18px 18px; overflow: hidden; color: #EDEBFA;
  background: linear-gradient(180deg, rgba(10, 10, 14, 0.95), rgba(28, 26, 40, 0.72)); backdrop-filter: blur(24px) saturate(180%); -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.22), 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: width 0.55s cubic-bezier(.3, 1.25, .5, 1), height 0.55s cubic-bezier(.3, 1.15, .5, 1), border-radius 0.5s, box-shadow 0.4s; }
.isl::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0) 70%, rgba(196, 181, 253, 0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.isl-notch { position: absolute; left: 50%; top: 0; width: 190px; height: 30px; transform: translateX(-50%); background: #000; border-radius: 0 0 14px 14px; }
.isl-left, .isl-right { position: absolute; top: 0; height: 32px; display: flex; align-items: center; color: #C4B5FD; opacity: 0; transition: opacity 0.3s; }
.isl-left { left: 18px; } .isl-right { right: 18px; }
.isl-wave { display: flex; gap: 3px; align-items: center; }
.isl-wave i { width: 3px; height: 6px; border-radius: 2px; background: #C4B5FD; animation: wa-wave 0.9s ease-in-out infinite; }
.isl-wave i:nth-child(2) { animation-delay: -0.2s; } .isl-wave i:nth-child(3) { animation-delay: -0.45s; } .isl-wave i:nth-child(4) { animation-delay: -0.1s; } .isl-wave i:nth-child(5) { animation-delay: -0.6s; }
.isl-dots { display: none; gap: 4px; }
.isl-dots i { width: 5px; height: 5px; border-radius: 50%; background: #C4B5FD; animation: wa-dot 1s ease-in-out infinite; }
.isl-dots i:nth-child(2) { animation-delay: 0.15s; } .isl-dots i:nth-child(3) { animation-delay: 0.3s; }
.isl-body { position: absolute; left: 50%; top: 38px; width: 400px; transform: translateX(-50%); font-size: 13.5px; line-height: 1.45; opacity: 0; transition: opacity 0.3s; }
.isl-body p { margin: 0 0 6px; }
.isl[data-state="listen"], .isl[data-state="think"] { width: 330px; box-shadow: inset 0 -1px 0 rgba(196, 181, 253, 0.6), 0 0 30px rgba(139, 92, 246, 0.5), 0 14px 34px rgba(0, 0, 0, 0.45); }
.isl[data-state="listen"] .isl-left, .isl[data-state="listen"] .isl-right, .isl[data-state="think"] .isl-left, .isl[data-state="think"] .isl-right { opacity: 1; }
.isl[data-state="think"] .isl-wave { display: none; }
.isl[data-state="think"] .isl-dots { display: flex; }
.isl[data-state="listen"] { width: 460px; border-radius: 0 0 26px 26px; }
.isl[data-state="listen"] .isl-body { opacity: 1; top: 40px; width: 420px; }
.isl[data-state="reply"], .isl[data-state="guide"], .isl[data-state="approve"] { width: 460px; border-radius: 0 0 28px 28px; }
.isl[data-state="reply"] .isl-body, .isl[data-state="guide"] .isl-body, .isl[data-state="approve"] .isl-body { opacity: 1; transition-delay: 0.15s; }
.isl[data-state="reply"]::before, .isl[data-state="guide"]::before, .isl[data-state="approve"]::before { opacity: 0.8; }
.isl.flash { box-shadow: inset 0 -1px 0 rgba(110, 231, 160, 0.7), 0 0 30px rgba(52, 199, 123, 0.45), 0 14px 34px rgba(0, 0, 0, 0.45); }
.isl-heard { font-size: 15px; font-weight: 600; color: #fff; }
.isl-heard .lv-caret { color: #C4B5FD; }
.isl-kicker { display: flex; align-items: center; gap: 8px; font-size: 11.5px !important; font-weight: 600; color: #C4B5FD; letter-spacing: 0.02em; }
.isl-kicker svg { width: 16px; }
.isl-count { margin-left: auto; font-variant-numeric: tabular-nums; color: #9C98B5; }
.isl-buttons { display: flex; gap: 8px; margin-top: 10px; }
.isl-buttons span { padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2); }
.isl-buttons .isl-primary { background: linear-gradient(180deg, #fff, #E6E3F5); color: #16121F; transition: transform 0.15s, box-shadow 0.3s; }
.isl-buttons .pressed { transform: scale(0.93); box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.45); }
.isl-wide span { flex: 1; text-align: center; padding: 9px 14px; }

/* The guided walkthrough. */
.gd-step { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 6px; color: #9C98B5; }
.gd-step > span { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, 0.12); }
.gd-step.active { color: #fff; }
.gd-step.active > span { background: #3D7CF6; color: #fff; }
.gd-step.done > span { background: #34C77B; color: #fff; }
.gd-step.done b { text-decoration: line-through; color: #7E7A96; }
.gd-step p { margin: 0 !important; display: flex; flex-direction: column; }
.gd-step i { font-style: normal; font-size: 12px; color: #B9B4D6; }
.gd-box { position: absolute; left: 0; top: 0; z-index: 6; width: 34px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 2.5px #3D7CF6, 0 0 18px rgba(61, 124, 246, 0.6); opacity: 0;
  transition: opacity 0.3s, transform 0.55s cubic-bezier(.3, 1.2, .5, 1); pointer-events: none; animation: gd-pulse 1.4s ease-in-out infinite; }
.gd-box.shown { opacity: 1; }
.gd-badge { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: #3D7CF6; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.gd-label { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 3px 9px; border-radius: 999px; background: #3D7CF6; color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
@keyframes gd-pulse { 50% { box-shadow: 0 0 0 2.5px #3D7CF6, 0 0 28px rgba(61, 124, 246, 0.9); } }

/* The email composer. */
.em { position: absolute; left: 520px; top: 96px; z-index: 3; width: 600px; height: 470px; display: flex; flex-direction: column; border-radius: 14px; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 80px rgba(10, 5, 40, 0.5); opacity: 0; transform: translateY(14px) scale(0.97); transition: opacity 0.35s, transform 0.5s cubic-bezier(.3, 1.2, .5, 1); }
.em.shown { opacity: 1; transform: none; }
.em.sending { opacity: 0; transform: translate(60px, -260px) scale(0.4); transition: opacity 0.45s, transform 0.55s cubic-bezier(.5, 0, .7, .4); }
.em-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #F5F5F7; border-bottom: 1px solid #E6E6EA; color: #666; }
.em-head b { color: #1D1D1F; }
.em-field { display: flex; gap: 14px; padding: 10px 16px; border-bottom: 1px solid #EFEFF2; }
.em-field i { width: 52px; font-style: normal; color: #8E8E93; }
.em-field span { flex: 1; font-weight: 500; min-height: 1.3em; }
.em-field em { font-style: normal; color: #8E8E93; }
.em-body { flex: 1; padding: 14px 16px; font-size: 14px; line-height: 1.5; color: #1D1D1F; }
.em-body p { margin: 0; min-height: 0.7em; }
.em-writing { color: #8E8E93; background: linear-gradient(90deg, #8E8E93 30%, #C4B5FD 50%, #8E8E93 70%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: wa-shimmer 1.4s linear infinite; }
.em-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid #EFEFF2; font-size: 12.5px; color: #555; }
.em-from { color: #9A9AA0; font-size: 11.5px; }
.em-discard { margin-left: auto; padding: 6px 14px; border-radius: 8px; background: #EFEFF2; }
.em-send { padding: 6px 14px; border-radius: 8px; background: #3D7CF6; color: #fff; font-weight: 600; transition: transform 0.12s, box-shadow 0.3s; }
.em-send i { font-style: normal; opacity: 0.7; font-weight: 400; }
.em-send.pressed { transform: scale(0.93); box-shadow: 0 0 0 4px rgba(61, 124, 246, 0.35); }

/* Chrome with Wisp's own tab. */
.cr { position: absolute; left: 110px; top: 70px; width: 1060px; height: 610px; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 30px 80px rgba(5, 10, 40, 0.5); transition: box-shadow 0.5s; }
.cr.rim { box-shadow: 0 0 0 2px #A78BFA, 0 0 40px rgba(139, 92, 246, 0.55), 0 30px 80px rgba(5, 10, 40, 0.5); }
.cr-tabs { display: flex; align-items: flex-end; gap: 4px; height: 40px; padding: 0 12px; background: #DEE1E6; }
.cr-tabs .mw-lights { align-self: center; margin-right: 12px; }
.cr-tab { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 10px 10px 0 0; font-size: 12.5px; color: #333; width: 190px; }
.cr-user { background: #fff; }
.cr.wisp-tab .cr-user { background: transparent; color: #555; }
.cr-wisp { background: #fff; color: #333; max-width: 0; padding: 0; overflow: hidden; opacity: 0; transition: max-width 0.4s, padding 0.4s, opacity 0.3s; }
.cr-wisp svg { width: 16px; color: #8B5CF6; flex: none; }
.cr-wisp.shown { max-width: 190px; padding: 0 16px; opacity: 1; }
.cr-plus { align-self: center; margin-left: 6px; color: #666; font-size: 18px; }
.cr-bar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: #5F6368; border-bottom: 1px solid #E6E6EA; }
.cr-omni { flex: 1; padding: 7px 14px; border-radius: 999px; background: #F1F3F4; color: #202124; font-size: 13px; min-height: 1.3em; }
.cr-page { position: relative; flex: 1; overflow: hidden; }
.cr-blank { position: absolute; inset: 0; padding: 40px 60px; transition: opacity 0.3s; }
.cr-blank p { font-size: 26px; font-weight: 700; margin: 0 0 18px; }
.cr-blank span { display: block; height: 12px; margin-bottom: 12px; border-radius: 6px; background: #EEE; width: 70%; }
.cr-blank.hidden { opacity: 0; }
.cr-loading { position: absolute; left: 0; top: 0; height: 3px; width: 0; background: #1A73E8; }
.cr-loading.on { width: 85%; transition: width 0.7s ease-out; }
.wk { position: absolute; inset: 0; padding: 18px 56px; font-family: Georgia, "Times New Roman", serif; color: #202122; opacity: 0; transition: opacity 0.4s; }
.wk.shown { opacity: 1; }
.wk-top { display: flex; justify-content: space-between; align-items: center; font-family: -apple-system, system-ui, sans-serif; font-size: 13px; color: #555; }
.wk-logo { font-family: Georgia, serif; font-size: 20px; color: #202122; letter-spacing: 0.04em; }
.wk-search { padding: 5px 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px #A2A9B1; width: 240px; }
.wk h4 { margin: 16px 0 6px; font-size: 28px; font-weight: 400; border-bottom: 1px solid #A2A9B1; padding-bottom: 6px; }
.wk-tabs { display: flex; gap: 16px; font: 12.5px -apple-system, system-ui, sans-serif; color: #3366CC; margin: 0 0 12px; }
.wk-tabs b { color: #202122; font-weight: 500; }
.wk-tabs em { font-style: normal; }
.wk-tabs em:first-of-type { margin-left: auto; }
.wk-cols { display: flex; gap: 28px; font-size: 14.5px; line-height: 1.6; }
.wk-cols p { margin: 0 0 12px; }
.wk-figure { flex: none; width: 230px; margin: 0; padding: 8px; background: #F8F9FA; box-shadow: inset 0 0 0 1px #C8CCD1; font: 12px/1.4 -apple-system, system-ui, sans-serif; }
.wk-figure svg { display: block; width: 100%; }
.lv-agent { position: absolute; left: 0; top: 0; z-index: 8; display: flex; align-items: flex-start; gap: 4px; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.lv-agent.shown { opacity: 1; }
.lv-agent span { margin-top: 16px; padding: 4px 10px; border-radius: 999px; background: #8B5CF6; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 6px 16px rgba(139, 92, 246, 0.45); }

/* Dictionary. */
.dict { flex: 1; padding: 12px 18px; background: #fff; text-align: center; overflow: hidden; }
.dict-tabs { display: flex; gap: 14px; font-size: 12px; color: #666; margin: 0 0 60px; }
.dict-tabs b { padding: 2px 8px; border-radius: 5px; background: #E8E8ED; color: #333; font-weight: 500; }
.dict-hint { font-family: Georgia, serif; font-size: 18px; color: #8E8E93; margin: 0 0 22px; }
.dict-wiki { font-family: Georgia, serif; font-size: 18px; color: #6E6E73; margin: 0; }
[data-window="dictionary"] .mw-bar, [data-window="textedit"] .mw-bar { flex: none; }

/* Handwritten working beside the problem. */
.hw { position: absolute; left: 600px; top: 250px; z-index: 4; }
.hw-line { margin: 0 0 14px; font: 600 30px/1.1 "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive; color: #2F5FD0; opacity: 0; }
.hw-line.shown { opacity: 1; }
.hw-line span { display: inline-block; padding: 2px 10px; background: linear-gradient(transparent 52%, rgba(255, 214, 79, 0.55) 52%) no-repeat;
  background-size: calc(var(--written, 0) * 100%) 100%; clip-path: inset(0 calc((1 - var(--written, 0)) * 100%) 0 0); }
.hw-circle { position: absolute; left: -24px; top: 178px; width: 150px; height: 64px; overflow: visible; }
.hw-circle path { stroke-dasharray: 1; stroke-dashoffset: 1; }

/* The approval card inside the island. */
.ap-card { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.ap-title { display: flex; align-items: center; gap: 8px; }
.ap-title span { margin-left: auto; color: #9C98B5; font-size: 12px; }
.ap-row { display: flex; justify-content: space-between; color: #B9B4D6; font-size: 12.5px; margin: 6px 0 4px !important; }
.ap-row b { color: #fff; }
.ap-note { display: flex; align-items: center; gap: 6px; color: #9C98B5; font-size: 12px; margin: 0 !important; }
.ap-details { margin: 8px 0 0 !important; color: #9C98B5; font-size: 12px; }
.ap-say { text-align: center; color: #7E7A96; font-size: 11.5px; margin: 8px 0 0 !important; }

@media (prefers-reduced-motion: reduce) { .live *, .live *::before, .live *::after { animation: none !important; transition: none !important; } }
