/* ==========================================================================
   WE-CO SUITE — on the Liquid Glass design system (light only)
   A slowly drifting colour wash sits behind everything; every surface
   above it is translucent glass. Tokens and component classes follow
   DESIGN-SYSTEM.md exactly; marketing-scale headings are the one extension.
   ========================================================================== */
:root {
  --page: #f4f6ff;
  --wash-sky: rgba(94, 200, 255, 0.55);
  --wash-violet: rgba(167, 139, 250, 0.5);
  --wash-pink: rgba(255, 122, 198, 0.4);
  --wash-mint: rgba(78, 231, 176, 0.42);
  --wash-peach: rgba(255, 179, 122, 0.28);
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.78);
  --glass-subtle: rgba(255, 255, 255, 0.42);
  --hairline: rgba(255, 255, 255, 0.7);
  --brand-50: #eef4ff;
  --brand-400: #598eff;
  --brand-500: #3366ff;
  --brand-600: #1f47f5;
  --brand-700: #1a35e1;
  --primary-top: #4d7bff;
  --primary-mid: #2b5bf5;
  --violet-500: #8b5cf6;
  --bloom-pink: #ff7ac6;
  --bloom-violet: #a78bfa;
  --bloom-sky: #5ec8ff;
  --bloom-mint: #4ee7b0;
  --bloom-peach: #ffb37a;
  --ink: #0f172a;
  --ink-body: #334155;
  --ink-muted: #475569;
  --ink-subtle: #64748b;
  --ink-faint: #94a3b8;
  --status-available: #10b981;
  --status-available-text: #065f46;
  --focus-ring: rgba(51, 102, 255, 0.7);
  --selection: rgba(51, 102, 255, 0.18);
  --shadow-tint: rgba(30, 41, 99, 0.22);

  --space-1: 4px; --space-1-5: 6px; --space-2: 8px; --space-2-5: 10px;
  --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;

  --radius-xl: 12px; --radius-2xl: 16px; --radius-3xl: 24px;
  --radius-4xl: 32px; --radius-5xl: 44px; --radius-full: 9999px;

  --shadow-glass: inset 0 1px 0 0 rgba(255,255,255,0.9), inset 0 -1px 0 0 rgba(255,255,255,0.35), 0 8px 32px -12px rgba(30,41,99,0.22), 0 2px 8px -4px rgba(30,41,99,0.10);
  --shadow-glass-lg: inset 0 1px 0 0 rgba(255,255,255,0.95), inset 0 -1px 0 0 rgba(255,255,255,0.4), 0 24px 64px -20px rgba(30,41,99,0.28), 0 8px 24px -12px rgba(30,41,99,0.14);
  --shadow-glass-sm: inset 0 1px 0 0 rgba(255,255,255,0.85), 0 2px 10px -4px rgba(30,41,99,0.16);
  --shadow-vivid: 0 8px 24px -8px rgba(51,102,255,0.55), inset 0 1px 0 0 rgba(255,255,255,0.45);
  --shadow-vivid-sm: 0 4px 12px -4px rgba(51,102,255,0.5), inset 0 1px 0 0 rgba(255,255,255,0.4);
  --shadow-input: inset 0 1px 2px rgba(30,41,99,0.06);

  --blur-glass: blur(20px) saturate(180%);
  --blur-glass-strong: blur(40px) saturate(180%);
  --blur-glass-subtle: blur(16px) saturate(160%);
  --blur-badge: blur(8px);

  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease-panel: cubic-bezier(0.32, 0.72, 0, 1);
  --header-h: 64px;
  /* page width grows with the screen: 1224px on laptops, up to 1760px on large monitors */
  --shell-max: clamp(1224px, 86vw, 1760px);
}

/* ---------- base + the wash ---------- */
* { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  font-family: var(--font-sans);
  font-size: 14px; line-height: 20px;
  color: var(--ink-body);
  background-color: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  isolation: isolate;
}
body::before {
  content: '';
  position: fixed; inset: -20%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42rem 42rem at 12% 8%, var(--wash-sky), transparent 60%),
    radial-gradient(38rem 38rem at 88% 12%, var(--wash-violet), transparent 62%),
    radial-gradient(46rem 46rem at 78% 88%, var(--wash-pink), transparent 60%),
    radial-gradient(40rem 40rem at 18% 92%, var(--wash-mint), transparent 62%),
    radial-gradient(34rem 34rem at 50% 50%, var(--wash-peach), transparent 65%);
  filter: saturate(120%);
  animation: drift 24s ease-in-out infinite;
  will-change: transform;
}
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2%, -2%) scale(1.06); }
}
::selection { background: var(--selection); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(255,255,255,0.8), 0 0 0 4px var(--focus-ring); border-radius: var(--radius-xl); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 8px 16px; border-radius: var(--radius-full);
  background: var(--glass-strong); color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-glass-lg);
}
.skip-link:focus { top: 12px; }

/* lucide icons inherit the text colour */
svg.i {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none; display: block;
}
[data-icon] { display: inline-grid; place-items: center; }

/* ---------- glass ---------- */
.glass {
  background-color: var(--glass);
  -webkit-backdrop-filter: var(--blur-glass); backdrop-filter: var(--blur-glass);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-glass);
}
.glass-strong {
  background-color: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur-glass-strong); backdrop-filter: var(--blur-glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-glass-lg);
}
.glass-subtle {
  background-color: var(--glass-subtle);
  -webkit-backdrop-filter: var(--blur-glass-subtle); backdrop-filter: var(--blur-glass-subtle);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-glass-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  user-select: none;
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font: 600 14px/20px var(--font-sans);
  white-space: nowrap;
  border: 0; cursor: pointer; background: none;
  transition: all 200ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn-primary {
  color: #fff;
  background-image: linear-gradient(180deg, var(--primary-top) 0%, var(--primary-mid) 55%, var(--brand-600) 100%);
  box-shadow: var(--shadow-vivid);
}
.btn-primary:hover {
  background-image: linear-gradient(180deg, #5c86ff 0%, #3866ff 55%, #2450ff 100%);
  box-shadow: 0 10px 28px -8px rgba(51,102,255,0.62), inset 0 1px 0 0 rgba(255,255,255,0.5);
}
.btn-secondary {
  color: var(--ink-body);
  background-color: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-glass-sm);
}
.btn-secondary:hover { background-color: rgba(255, 255, 255, 0.85); color: var(--ink); }
.btn-ghost { color: var(--ink-muted); }
.btn-ghost:hover { background-color: rgba(255, 255, 255, 0.6); color: var(--ink); }
.btn-icon { padding: 8px; }
.btn-icon .i { width: 20px; height: 20px; }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font: 600 12px/16px var(--font-sans);
  -webkit-backdrop-filter: var(--blur-badge); backdrop-filter: var(--blur-badge);
  white-space: nowrap;
}
.badge .i { width: 14px; height: 14px; }
.chip-available { background: rgba(52, 211, 153, 0.2); color: var(--status-available-text); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25); }
.badge-neutral { background: rgba(148, 163, 184, 0.15); color: #334155; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 9999px; flex-shrink: 0; }
.dot.live { position: relative; background: var(--status-available); }
.dot.live::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse-ring 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

/* ---------- type ---------- */
.section-label {
  font: 600 12px/16px var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.025em;
  color: var(--ink-subtle);
  margin-bottom: 12px;
}
.section-label.center { text-align: center; }
.eyebrow {
  font: 700 11px/16px var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-faint);
}
/* marketing scale: the system's page-title (700, -0.025em, ink) set larger */
.h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.lede {
  margin-top: 16px;
  max-width: 640px;
  font-size: 16px; line-height: 26px;
  color: var(--ink-body);
}
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }

/* ==========================================================================
   SHELL — floating glass header, stacked glass panels
   ========================================================================== */
.topbar {
  position: sticky; top: 12px; z-index: 50;
  max-width: var(--shell-max);
  margin: 12px auto 0;
  padding: 0 12px;
}
.topbar-inner {
  position: relative;
  height: var(--header-h);
  border-radius: var(--radius-full);
  padding: 0 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; border-radius: var(--radius-2xl); }
.logo-tile {
  width: 40px; height: 40px;
  border-radius: var(--radius-2xl);
  display: grid; place-items: center;
  background-image: linear-gradient(135deg, var(--brand-400), var(--brand-500) 55%, var(--violet-500));
  box-shadow: var(--shadow-vivid-sm);
  color: #fff;
  font: 700 18px/1 var(--font-sans);
}
.wordmark { font: 700 16px/24px var(--font-sans); color: var(--ink); white-space: nowrap; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font: 600 14px/20px var(--font-sans);
  color: var(--ink-muted);
  white-space: nowrap;
  transition: all 200ms ease-out;
}
.nav-links a:hover { background-color: rgba(255, 255, 255, 0.6); color: var(--ink); }
.nav-links a.active { background-color: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: var(--shadow-glass-sm); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }
.nav-burger .i-close { display: none; }
.nav-burger[aria-expanded="true"] .i-open { display: none; }
.nav-burger[aria-expanded="true"] .i-close { display: inline-grid; }

.page {
  max-width: var(--shell-max);
  margin: 24px auto 0;
  padding: 0 12px;
  display: flex; flex-direction: column; gap: 24px;
}
.panel {
  border-radius: var(--radius-4xl);
  padding: clamp(28px, 5vw, 64px);
}

/* ==========================================================================
   HERO — oversized glass panel
   ========================================================================== */
.hero {
  border-radius: var(--radius-5xl);
  padding-bottom: 0;
  text-align: center;
  overflow: hidden;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin-top: 24px;
  font-size: clamp(40px, 6.6vw, 76px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-sub {
  margin-top: 16px; max-width: 640px; text-wrap: balance;
  font-size: clamp(18px, 2vw, 22px); line-height: 1.4;
  font-weight: 600;
  color: var(--ink-muted);
}
.hero-desc { margin-top: 16px; max-width: 600px; text-wrap: balance; font-size: 16px; line-height: 26px; color: var(--ink-body); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-facts { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-visual {
  position: relative;
  max-width: 980px;
  margin: 56px auto 0;
  padding-bottom: clamp(36px, 5vw, 64px);
}
.shot { border-radius: var(--radius-3xl); padding: 8px; }
.shot img { width: 100%; border-radius: var(--radius-2xl); }

/* entrance: slide-up on the panel curve, staggered */
@keyframes hw-slide-up { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(0.985); } to { opacity: 1; transform: none; } }
.hero-in { animation: rise 640ms var(--ease-panel) backwards; }
.hero-copy > .hero-in:nth-child(1) { animation-delay: 40ms; }
.hero-copy > .hero-in:nth-child(2) { animation-delay: 110ms; }
.hero-copy > .hero-in:nth-child(3) { animation-delay: 180ms; }
.hero-copy > .hero-in:nth-child(4) { animation-delay: 250ms; }
.hero-copy > .hero-in:nth-child(5) { animation-delay: 320ms; }
.hero-copy > .hero-in:nth-child(6) { animation-delay: 390ms; }
.hero-visual { max-width: 860px; }

/* hero: the twelve modules as glass app tiles */
.module-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.module-grid li { width: 128px; animation: rise 640ms var(--ease-panel) backwards; animation-delay: calc(420ms + var(--i) * 55ms); }
.mg-tile {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  height: 100%;
  padding: 18px 10px 16px;
  border-radius: var(--radius-3xl);
  background-color: var(--glass-strong);
  -webkit-backdrop-filter: var(--blur-glass-subtle); backdrop-filter: var(--blur-glass-subtle);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-glass-sm);
  text-align: center;
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, background-color 200ms ease-out;
}
.mg-tile:hover { transform: translateY(-3px); background-color: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-glass-lg); }
.mg-tile:active { transform: scale(0.97); }
.mg-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px; margin-bottom: 10px;
  border-radius: var(--radius-2xl);
  color: var(--ink-muted);
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-glass-sm);
  transition: color 200ms ease-out, box-shadow 200ms ease-out;
}
.mg-icon .i { width: 24px; height: 24px; }
.mg-tile:hover .mg-icon { color: var(--brand-500); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2), var(--shadow-glass-sm); }
.mg-mochi { position: relative; overflow: hidden; background-color: var(--brand-50); }
.mg-mochi svg { width: 100%; height: 100%; display: block; }
.mg-name { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.mg-tag { max-width: 100%; font-size: 12px; line-height: 16px; color: var(--ink-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ==========================================================================
   TRUSTED BY — marquee on glass
   ========================================================================== */
.trust { padding-top: 32px; padding-bottom: 36px; }
.trust .section-label { margin-bottom: 24px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.logo-row { display: flex; align-items: center; width: max-content; animation: marquee 44s linear infinite; }
.marquee:hover .logo-row { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-row img {
  flex: none;
  height: 34px; width: auto; max-width: 128px;
  object-fit: contain;
  margin-right: 64px;
  filter: grayscale(1) brightness(0.2);
  opacity: 0.5;
  transition: opacity 200ms ease-out;
}
.logo-row img:hover { opacity: 0.85; }

/* ==========================================================================
   MOCHI — the companion (MOCHI-KIT.md, translated from Tailwind with identical values)
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.input {
  width: 100%;
  border-radius: var(--radius-2xl);
  padding: 10px 14px;
  font: 400 14px/20px var(--font-sans);
  color: #1e293b;
  background-color: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: var(--blur-glass-subtle); backdrop-filter: var(--blur-glass-subtle);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-input);
  transition: all 150ms;
}
.input::placeholder { color: var(--ink-faint); }
.input:focus, .input:focus-visible {
  outline: none;
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(51, 102, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.14), inset 0 1px 2px rgba(30, 41, 99, 0.05);
  border-radius: var(--radius-2xl);
}
.label { display: block; margin-bottom: 6px; font: 500 14px/20px var(--font-sans); color: var(--ink-muted); }
.label-gap { margin-top: 16px; margin-bottom: 8px; }
.btn-xs { padding: 6px 12px; font-size: 12px; line-height: 16px; gap: 6px; }
.btn-xs .i { width: 14px; height: 14px; }

.mochi-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.mochi-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.mochi-demo { min-width: 0; }

/* the character on its glowing glass pill (launcher proportions, scaled up) */
.mochi-stage { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 0 auto; }
.mochi-pill {
  position: absolute; left: 12.5%; right: 12.5%; top: 25%; bottom: 4%;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-glass), 0 26px 64px -18px var(--mochi-glow, #6a5cf588);
  transition: box-shadow 400ms ease-out;
}
.mochi-host { position: absolute; inset: 0; overflow: hidden; }
.mochi-host svg { width: 100%; height: 100%; display: block; }
.mochi-hello {
  position: absolute; left: -4px; top: 6%;
  max-width: 64%;
  padding: 8px 12px;
  border-radius: var(--radius-3xl);
  border-bottom-right-radius: 6px;
  font: 500 14px/20px var(--font-sans);
  color: #334155;
}
.mochi-hello[hidden] { display: none; }
.mochi-hello.pop { animation: hw-slide-up 220ms var(--ease-panel); }

.mochi-controls { border-radius: var(--radius-3xl); padding: 20px; }
.name-ideas { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.idea {
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font: 600 12px/16px var(--font-sans);
  color: #334155;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 0 0 1px #e2e8f0;
  transition: background-color 150ms;
}
.idea:hover { background-color: #fff; }
.swatches { display: grid; grid-template-columns: repeat(6, 28px); gap: 10px; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 4px transparent;
  transition: box-shadow 150ms, transform 150ms;
}
.swatch:hover { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 4px #fff; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6), 0 0 0 4px #1e293b; }
.swatch:active { transform: scale(0.94); }
.mochi-note { margin-top: 14px; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }

/* the companion panel, as an example conversation */
.md {
  display: flex; flex-direction: column;
  height: min(560px, 80vh);
  border-radius: var(--radius-4xl);
  overflow: hidden;
  position: relative;
}
.md-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.6); }
.md-avatar { position: relative; width: 40px; height: 40px; flex: none; overflow: hidden; }
.md-avatar svg { width: 100%; height: 100%; display: block; }
.md-title { min-width: 0; flex: 1; }
.md-name { font: 700 16px/24px var(--font-sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-status { font-size: 12px; line-height: 16px; color: var(--ink-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-thread {
  flex: 1; min-height: 0;
  overflow-y: auto; scrollbar-width: none;
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.md-thread::-webkit-scrollbar { display: none; }

.bubble {
  max-width: 85%;
  padding: 8px 14px;
  border-radius: var(--radius-3xl);
  font-size: 14px; line-height: 22.75px;
  overflow-wrap: break-word;
}
.bubble-user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background-color: rgba(51, 102, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2);
  color: #1e293b;
}
.bubble-bot {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: inset 0 0 0 1px #fff;
  color: #334155;
}
.bubble strong { font-weight: 600; color: var(--ink); }
.bubble ul { margin: 4px 0; padding-left: 20px; list-style: disc; display: grid; gap: 2px; }
.bubble p + p, .bubble ul + p, .bubble p + ul { margin-top: 4px; }
.enter { animation: hw-slide-up 220ms var(--ease-panel); }
.file-ref {
  display: inline-flex; align-items: center; gap: 4px;
  margin: 0 2px; padding: 2px 8px;
  border-radius: var(--radius-full);
  background-color: rgba(51, 102, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2);
  font: 600 12px/16px var(--font-sans);
  color: #1c2eb6;
  vertical-align: baseline;
}
.file-ref .i { width: 12px; height: 12px; }
.typing { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-subtle); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-faint); animation: hw-bounce 1s infinite; }
.dots i:nth-child(2) { animation-delay: 120ms; }
.dots i:nth-child(3) { animation-delay: 240ms; }
@keyframes hw-bounce { 0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); } 50% { transform: none; animation-timing-function: cubic-bezier(0, 0, 0.2, 1); } }
.stream-caret { display: inline-block; width: 6px; height: 14px; margin-left: 2px; border-radius: 2px; background: var(--ink-faint); vertical-align: middle; animation: hw-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes hw-pulse { 50% { opacity: 0.5; } }

.md-card {
  align-self: flex-start;
  max-width: 92%;
  margin-left: 8px;
  padding: 12px;
  border-radius: var(--radius-3xl);
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2);
}
.md-card-title { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.md-card-desc { margin-top: 2px; font-size: 12px; line-height: 16px; color: #475569; }
.md-card-actions { margin-top: 8px; display: flex; gap: 8px; }
.md-card .badge { margin-top: 8px; }
.btn.pressed { transform: scale(0.97); background-color: rgba(255, 255, 255, 0.95); }
.badge-done { background: rgba(52, 211, 153, 0.2); color: #065f46; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25); }

.md-input { display: flex; align-items: flex-end; gap: 8px; padding: 12px; border-top: 1px solid rgba(255, 255, 255, 0.6); }
.md-field {
  flex: 1; min-width: 0; min-height: 44px;
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--radius-2xl);
  padding: 10px 14px;
  background-color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-input);
  font-size: 14px; line-height: 20px;
  color: var(--ink-faint);
  transition: all 150ms;
}
.md-placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-field.typing, .md-field.listening {
  color: #1e293b;
  background-color: rgba(255, 255, 255, 0.9);
  border-color: rgba(51, 102, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.14), inset 0 1px 2px rgba(30, 41, 99, 0.05);
}
.md-field.listening { color: var(--brand-600); font-weight: 600; }
.wave { display: none; align-items: center; gap: 3px; height: 18px; }
.md-field.listening .wave { display: inline-flex; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--brand-500); transform-origin: center; animation: wave 900ms ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: 120ms; }
.wave i:nth-child(3) { animation-delay: 240ms; }
.wave i:nth-child(4) { animation-delay: 360ms; }
.wave i:nth-child(5) { animation-delay: 480ms; }
@keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
.md-mic {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  color: var(--ink-muted);
  transition: all 200ms ease-out;
}
.md-mic.on { color: var(--brand-600); background-color: rgba(51, 102, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2); }
.md-send {
  width: 44px; height: 44px; flex: none;
  border-radius: 50%;
  color: #fff;
  background-image: linear-gradient(180deg, var(--primary-top) 0%, var(--primary-mid) 55%, var(--brand-600) 100%);
  box-shadow: var(--shadow-vivid);
}

/* conversation starters under the panel */
.prompt-chips { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font: 600 13px/18px var(--font-sans);
  color: var(--ink-muted);
  background-color: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-glass-sm);
  transition: all 200ms ease-out;
}
.chip .i { width: 14px; height: 14px; }
.chip:hover { background-color: rgba(255, 255, 255, 0.85); color: var(--ink); }
.chip:active { transform: scale(0.97); }
.chip.active { background-color: rgba(51, 102, 255, 0.1); border-color: transparent; box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2); color: var(--brand-700); }

.mochi-values {
  margin-top: 32px;
  border-radius: var(--radius-3xl);
  display: grid; grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}
.mv {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  transition: background-color 150ms;
}
.mv:nth-child(-n+3) { border-top: 0; }
.mv:nth-child(3n+1) { border-left: 0; }
.mv:hover { background-color: rgba(255, 255, 255, 0.55); }
.mv-icon {
  display: grid; place-items: center; flex: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-2xl);
  color: var(--ink-muted);
  background-color: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-glass-sm);
  transition: color 150ms;
}
.mv-icon .i { width: 18px; height: 18px; }
.mv:hover .mv-icon { color: var(--brand-500); }
.mv-copy { display: flex; flex-direction: column; min-width: 0; }
.mv-title { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.mv-text { font-size: 13px; line-height: 18px; color: var(--ink-subtle); }

/* product 01 in the showcase: Mochi instead of a screenshot */

/* ==========================================================================
   PRODUCTS — sticky scroll showcase
   ========================================================================== */
.showcase { position: relative; }
.showcase-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  padding: calc(var(--header-h) + 24px) 0 12px;
  display: flex;
}
.showcase-track { height: 0; }
.showcase-panel {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: clamp(20px, 3vw, 36px);
}
.showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.showcase-head .section-label { margin-bottom: 6px; }
.showcase-title {
  font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2;
  font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink);
}
.showcase-count {
  display: flex; align-items: baseline;
  font: 600 14px/20px var(--font-sans);
  font-variant-numeric: tabular-nums;
  color: var(--ink-subtle);
}
.showcase-count #stageIndex { display: inline-block; color: var(--ink); }
.count-sep { margin: 0 4px; }
.count-flip.tick { animation: hw-slide-up 220ms var(--ease-panel); }
.showcase-progress {
  height: 4px; margin: 16px 0 20px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
  overflow: hidden;
}
.showcase-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: rgba(71, 85, 105, 0.55); transition: width 300ms var(--ease-panel); }

.showcase-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 256px 1fr; gap: clamp(20px, 3vw, 40px); }

/* rail = the design system's sidebar (DESIGN-SYSTEM.md › NavItem, Logo):
   a .glass panel, radius-4xl, 256px wide; NavItems radius-2xl, 10px × 12px,
   16px icon + `button` text, ink-muted at rest, hover white/60 + ink, active
   brand-500 → violet-500 with shadow-vivid-sm; section labels `eyebrow` in
   ink-faint; a 40px gradient logo tile beside the wordmark in ink.
   On short windows the item padding eases down so all twelve products fit. */
.showcase-rail {
  --nav-py: clamp(3px, calc((100vh - 470px) / 24 - 10px), 10px);
  align-self: center;
  max-height: 100%; overflow-y: auto; scrollbar-width: none;
  border-radius: var(--radius-4xl);
  padding: 12px;
  display: flex; flex-direction: column;
}
.sr-brand { display: flex; align-items: center; gap: 12px; padding: 4px 4px 12px; }
.sr-logo {
  width: 40px; height: 40px; flex: none; border-radius: var(--radius-2xl);
  display: grid; place-items: center;
  font: 700 18px/1 var(--font-sans); color: #fff;
  background-image: linear-gradient(135deg, var(--brand-400), var(--brand-500) 55%, var(--violet-500));
  box-shadow: var(--shadow-vivid-sm);
}
.sr-word { font: 700 17px/24px var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.sr-group { display: flex; flex-direction: column; gap: 2px; }
.sr-group + .sr-group { margin-top: 6px; }
.sr-label { margin: 0; padding: 6px 12px 4px; font: 700 11px/16px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.rail-item {
  display: flex; align-items: center; gap: 12px;
  padding: var(--nav-py) 12px;
  border-radius: min(var(--radius-2xl), calc(var(--nav-py) + 6px));   /* a soft-cornered square, never a capsule */
  font: 600 14px/20px var(--font-sans);
  color: var(--ink-muted);
  text-align: left;
  transition: background-color 200ms ease-out, color 200ms ease-out, box-shadow 200ms ease-out;
}
.rail-item .i { width: 16px; height: 16px; flex: none; }
.rail-item:hover { background-color: rgba(255, 255, 255, 0.6); color: var(--ink); }
.rail-item.active {
  color: #fff;
  background-image: linear-gradient(90deg, var(--brand-500), var(--violet-500));
  box-shadow: var(--shadow-vivid-sm);
}
.showcase-rail::-webkit-scrollbar { display: none; }
/* short windows: the twelve products keep the space, the logo row steps aside */
@media (max-height: 820px) {
  .showcase-rail .sr-brand { display: none; }
  .showcase-rail .sr-label { padding-top: 2px; padding-bottom: 2px; }
  .showcase-rail .sr-group + .sr-group { margin-top: 2px; }
}

.pager { display: none; justify-content: center; gap: 6px; padding-top: 16px; }
.pager-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: rgba(100, 116, 139, 0.3); transition: all 300ms var(--ease-panel); }
.pager-dot.active { width: 24px; background-image: linear-gradient(90deg, var(--brand-500), var(--violet-500)); box-shadow: var(--shadow-vivid-sm); }

.showcase-stage { position: relative; min-height: 0; }
.slide {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  visibility: hidden; pointer-events: none;
}
.slide.active { visibility: visible; pointer-events: auto; }

/* layered, direction-aware choreography on the panel curve */
.slide .shot, .slide .shot-mobile, .slide .slide-kicker, .slide h3,
.slide .slide-desc, .slide .slide-feats li, .slide .slide-tags {
  opacity: 0;
  transform: translateY(var(--slide-from, 20px)) scale(0.985);
  transition: opacity 360ms ease-out, transform 560ms var(--ease-panel);
}
.slide .shot-mobile { transform: translateY(calc(var(--slide-from, 20px) * 2)); }
.slide.active .shot, .slide.active .shot-mobile, .slide.active .slide-kicker, .slide.active h3,
.slide.active .slide-desc, .slide.active .slide-feats li, .slide.active .slide-tags { opacity: 1; transform: none; }
.slide.active .shot-mobile { transition-delay: 140ms; }
.slide.active .slide-kicker { transition-delay: 40ms; }
.slide.active h3 { transition-delay: 80ms; }
.slide.active .slide-desc { transition-delay: 130ms; }
.slide.active .slide-feats li:nth-child(1) { transition-delay: 180ms; }
.slide.active .slide-feats li:nth-child(2) { transition-delay: 230ms; }
.slide.active .slide-feats li:nth-child(3) { transition-delay: 280ms; }
.slide.active .slide-feats li:nth-child(4) { transition-delay: 330ms; }
.slide.active .slide-tags { transition-delay: 380ms; }

.slide-media { position: relative; }
.slide-media .shot img { max-height: min(50vh, 520px); object-fit: contain; }
.slide-media .shot-mobile {
  position: absolute;
  right: -16px; bottom: -24px;
  width: 22%; max-height: 44vh;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(30, 41, 99, 0.3));
}
.slide-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.slide-kicker .section-label { margin: 0; }
.slide-text h3 {
  font-size: 30px; line-height: 36px;
  font-weight: 700; letter-spacing: -0.025em;
  color: var(--ink);
}
.slide-desc { margin-top: 8px; font-size: 14px; line-height: 22.75px; color: var(--ink-body); }
.slide-feats { margin-top: 16px; display: grid; gap: 8px; }
.slide-feats li { display: flex; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-body); }
.slide-feats li .i { margin-top: 2px; color: var(--status-available); }
.slide-feats li strong { color: var(--ink); font-weight: 600; }
.slide-tags { margin-top: 18px; display: flex; gap: 6px; }

/* ==========================================================================
   TILES — nested glass inside a panel (never a card in a card)
   ========================================================================== */
.tile-icon {
  display: inline-grid; place-items: center; flex: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-2xl);
  color: var(--ink-muted);
  background-color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-glass-sm);
  transition: color 200ms ease-out;
}
.tile-icon .i { width: 20px; height: 20px; }


/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.contact-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.contact-list { border-radius: var(--radius-3xl); overflow: hidden; }
.c-row {
  display: grid; grid-template-columns: 20px 76px 1fr; gap: 12px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 14px; line-height: 20px;
  color: var(--ink);
}
.c-row:last-child { border-bottom: 0; }
.row-hover { transition: background-color 150ms; }
.row-hover:hover { background-color: rgba(255, 255, 255, 0.55); }
.c-icon { color: var(--ink-subtle); }
.c-label { font: 600 12px/16px var(--font-sans); text-transform: uppercase; letter-spacing: 0.025em; color: var(--ink-subtle); }
.c-row a { color: var(--brand-600); font-weight: 500; }
.c-row a:hover { text-decoration: underline; }

/* ==========================================================================
   FOOTER — glass pill
   ========================================================================== */
.footer { max-width: var(--shell-max); margin: 24px auto 12px; padding: 0 12px; }
.footer-inner {
  border-radius: var(--radius-full);
  padding: 10px 12px 10px 12px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-tag { font: 600 14px/20px var(--font-sans); color: var(--ink); }
.footer-copy { padding-right: 12px; font-size: 12px; line-height: 16px; color: var(--ink-subtle); }

/* ==========================================================================
   SCROLL REVEAL — slide-up keyframes and curve, staggered
   (animation, not transition, so hover transforms stay instant)
   ========================================================================== */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: rise 640ms var(--ease-panel) var(--d, 0s) backwards; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links a { padding: 8px 10px; }
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 8px;
    border-radius: var(--radius-3xl);
    background-color: var(--glass-strong);
    -webkit-backdrop-filter: var(--blur-glass-strong); backdrop-filter: var(--blur-glass-strong);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-glass-lg);
  }
  .nav-links.open { display: flex; animation: hw-slide-up 220ms var(--ease-panel); }
  .nav-links a { padding: 10px 12px; border-radius: var(--radius-2xl); }
  .nav-links .nav-contact { display: block; }
  .nav-burger { display: inline-flex; }

  .contact-grid { grid-template-columns: 1fr; }
  .mochi-grid { grid-template-columns: minmax(0, 1fr); }
  .mochi-side { flex-direction: row; align-items: center; }
  .mochi-stage { width: 260px; flex: none; }
  .mochi-controls { flex: 1; }

  /* showcase: rail → pager dots */
  .showcase-rail { display: none; }
  .pager { display: flex; }
  .showcase-body { grid-template-columns: 1fr; }
  .slide { grid-template-columns: 1.3fr 1fr; }
  .slide-media .shot img { max-height: 44svh; }
  .slide-media .shot-mobile { width: 21%; right: -8px; bottom: -16px; }
  .slide-text h3 { font-size: 26px; line-height: 32px; }
  .slide-feats li:nth-child(n+4) { display: none; }
}

@media (max-width: 768px) {
  .page { gap: 12px; margin-top: 12px; }
  .topbar-inner { height: 56px; padding: 0 8px 0 8px; }
  .logo-tile { width: 36px; height: 36px; font-size: 16px; }
  .nav-cta { display: none; }
  .panel { padding: 24px 20px; }
  .hero { border-radius: var(--radius-4xl); padding-top: 36px; }
  .hero-visual { margin-top: 36px; }
  .module-grid { gap: 8px; max-width: 472px; margin: 0 auto; }
  .module-grid li { width: calc((100% - 24px) / 4); }
  .mg-tile { padding: 14px 6px 12px; }
  .mg-icon { width: 44px; height: 44px; margin-bottom: 8px; }
  .mg-icon .i { width: 20px; height: 20px; }
  .mg-name { font-size: 13px; line-height: 18px; }
  .mg-tag { font-size: 11px; }
  .section-head { margin-bottom: 28px; }
  .lede { font-size: 15px; line-height: 24px; }


  .showcase-sticky { padding-top: calc(56px + 20px); }
  .slide { grid-template-columns: 1fr; gap: 16px; align-content: center; }
  .slide-media .shot img { max-height: 28svh; }
  .slide-media .shot-mobile { width: 19%; right: 4px; bottom: -12px; max-height: 22svh; }
  .slide-text h3 { font-size: 24px; line-height: 30px; }
  .slide-feats li:nth-child(n+3) { display: none; }
  .showcase-title { font-size: 22px; }

  .mochi-side { flex-direction: column; }
  .mochi-stage { width: min(100%, 240px); }
  .md { height: 520px; }
  .c-row { grid-template-columns: 20px 1fr; padding: 14px 16px; }
  .c-row .c-label { display: none; }
  .footer-inner { border-radius: var(--radius-3xl); flex-direction: column; align-items: flex-start; padding: 16px; }
  .footer-copy { padding: 0; }
}

/* short viewports: keep each product inside the sticky panel */
@media (max-height: 780px) {
  .slide-feats li:nth-child(n+4) { display: none; }
}
@media (max-height: 660px) {
  .slide-feats, .slide-tags, .showcase-head .section-label { display: none; }
  .showcase-progress { margin: 10px 0 12px; }
}

/* reduced motion: everything collapses to 0.01ms, the wash stops */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  body::before { animation: none; }
  .reveal { opacity: 1; }
  .logo-row { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 20px; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* hero module grid: balanced rows — 6+6 desktop, 4+4+4 tablet, 3+3+3+3 phone */
@media (max-width: 1024px) and (min-width: 769px) {
  .module-grid { max-width: calc(4 * 128px + 3 * 12px); margin: 0 auto; }
}
@media (max-width: 520px) {
  .module-grid { max-width: none; }
  .module-grid li { width: calc((100% - 16px) / 3); }
  .mg-tag { font-size: 10px; letter-spacing: -0.01em; }
}

/* Mochi values: 3 columns -> 2 -> 1 */
@media (max-width: 1024px) {
  .mochi-values { grid-template-columns: repeat(2, 1fr); }
  .mv:nth-child(-n+3), .mv:nth-child(3n+1) { border-top: 1px solid rgba(255, 255, 255, 0.6); border-left: 1px solid rgba(255, 255, 255, 0.6); }
  .mv:nth-child(-n+2) { border-top: 0; }
  .mv:nth-child(2n+1) { border-left: 0; }
}
@media (max-width: 560px) {
  .mochi-values { grid-template-columns: 1fr; margin-top: 24px; }
  .mv, .mv:nth-child(-n+2), .mv:nth-child(-n+3), .mv:nth-child(3n+1), .mv:nth-child(2n+1) { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.6); }
  .mv:first-child { border-top: 0; }
  .mv { padding: 12px 16px; }
}

/* wide screens: Mochi and the product drawings get a little bigger */
@media (min-width: 1700px) {
  .mochi-stage { width: min(100%, 380px); }
  .md { height: min(600px, 80vh); }
  .slide { grid-template-columns: 1.7fr 1fr; }
  .slide-media .shot img { max-height: min(56vh, 640px); }
}

/* ==========================================================================
   PRODUCT DRAWINGS — every module in this design system
   Drawn at a fixed design size (web 1120×700, phone 300×620) and scaled to
   their frame by mockups.js. The wash is painted inside each one and is
   static, so the glass is plain translucency (no backdrop blur) for speed.
   ========================================================================== */
.mk-shot { width: min(100%, calc(min(50vh, 520px) * 1.6 + 18px)); margin: 0 auto; }
.mk-fit { position: relative; }
.mk-fit-web { width: 100%; aspect-ratio: 1120 / 700; border-radius: var(--radius-2xl); overflow: hidden; }
.slide-media .mk-fit-phone { aspect-ratio: 300 / 633.5; max-height: none; filter: drop-shadow(0 18px 30px rgba(30, 41, 99, 0.3)); }

.mk { position: absolute; left: 0; top: 0; transform: scale(var(--s, 0.5)); transform-origin: 0 0; font-family: var(--font-sans); font-size: 12px; line-height: 16px; color: var(--ink-body); text-align: left; }
.mk .i { width: 14px; height: 14px; }
.mk b { font-weight: 600; color: var(--ink); }
.mk p { margin: 0; }
.mk-glass { background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-glass); }
.mk-strong { background: rgba(255, 255, 255, 0.82); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-glass-sm); }
.mk-subtle { background: rgba(255, 255, 255, 0.42); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-glass-sm); }

/* the wash, painted inside each drawing */
.mk-web, .mk-screen {
  background:
    radial-gradient(520px 520px at 10% 6%, rgba(94, 200, 255, 0.55), transparent 60%),
    radial-gradient(480px 480px at 92% 10%, rgba(167, 139, 250, 0.5), transparent 62%),
    radial-gradient(560px 560px at 80% 94%, rgba(255, 122, 198, 0.4), transparent 60%),
    radial-gradient(500px 500px at 14% 96%, rgba(78, 231, 176, 0.42), transparent 62%),
    radial-gradient(420px 420px at 50% 50%, rgba(255, 179, 122, 0.28), transparent 65%),
    #f4f6ff;
}

/* web shell: glass sidebar, pill header */
.mk-web { width: 1120px; height: 700px; }
.mk-side { position: absolute; left: 12px; top: 12px; bottom: 12px; width: 200px; border-radius: 28px; padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.mk-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 12px; }
.mk-brand b { font-size: 13px; font-weight: 700; }
.mk-logo { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background-image: linear-gradient(135deg, var(--brand-400), var(--brand-500) 55%, var(--violet-500)); box-shadow: var(--shadow-vivid-sm); }
.mk-eyebrow { font: 700 9px/12px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); padding: 4px 10px; }
.mk-nav { display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 14px; font-weight: 600; font-size: 12px; color: var(--ink-muted); }
.mk-nav.on { color: #fff; background-image: linear-gradient(90deg, var(--brand-500), var(--violet-500)); box-shadow: var(--shadow-vivid-sm); }
.mk-top { position: absolute; left: 224px; right: 12px; top: 12px; height: 52px; border-radius: 9999px; display: flex; align-items: center; gap: 14px; padding: 0 10px 0 22px; }
.mk-title { font-size: 16px; font-weight: 700; }
.mk-search { display: flex; align-items: center; gap: 8px; width: 320px; height: 34px; margin-left: auto; padding: 0 14px; border-radius: 9999px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: var(--shadow-input); color: var(--ink-faint); }
.mk-topicons { display: flex; align-items: center; gap: 12px; color: var(--ink-muted); }
.mk-topicons .i { width: 18px; height: 18px; }
.mk-main { position: absolute; left: 224px; right: 12px; top: 76px; bottom: 12px; }

/* phone shell */
/* screen = 284 × 617.5, the real app's 402 × 874 scaled, so captured screens fit without cropping */
.mk-phone { width: 300px; height: 633.5px; padding: 8px; border-radius: 46px; background: #0f172a; box-shadow: inset 0 0 0 2px #334155; }
.mk-screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; }
.mk-screen { background-size: 260% 260%; background-position: 30% 20%; }
.mk-island { position: absolute; top: 8px; left: 50%; width: 86px; height: 25px; margin-left: -43px; border-radius: 13px; background: #0f172a; }
.mk-status { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 12px; }
.mk-sig { display: flex; align-items: flex-end; gap: 2px; }
.mk-sig i { width: 3px; border-radius: 1px; background: var(--ink); }
.mk-sig i:nth-child(1) { height: 5px; } .mk-sig i:nth-child(2) { height: 8px; } .mk-sig i:nth-child(3) { height: 11px; }
.mk-sig em { width: 20px; height: 10px; margin-left: 5px; border-radius: 3px; border: 1.5px solid var(--ink); background: linear-gradient(90deg, var(--ink) 70%, transparent 70%); background-clip: content-box; padding: 1px; }
.mk-ptitle { display: flex; align-items: center; justify-content: space-between; padding: 2px 16px 10px; }
.mk-ptitle > b { font-size: 22px; line-height: 28px; font-weight: 700; letter-spacing: -0.02em; }
.mk-pbody { position: absolute; top: 88px; left: 0; right: 0; bottom: 0; padding: 0 12px 88px; overflow: hidden; display: flex; flex-direction: column; gap: 10px; }
.mk-tabs { position: absolute; left: 12px; right: 12px; bottom: 18px; height: 56px; border-radius: 9999px; display: flex; align-items: center; justify-content: space-around; }
.mk-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 600; color: var(--ink-muted); }
.mk-tab .i { width: 18px; height: 18px; }
.mk-tab.on { color: var(--brand-600); }
.mk-homebar { position: absolute; bottom: 6px; left: 50%; width: 100px; margin-left: -50px; height: 4px; border-radius: 2px; background: var(--ink); opacity: 0.85; }
.mk-fab { position: absolute; right: 18px; bottom: 90px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background-image: linear-gradient(180deg, var(--primary-top), var(--primary-mid) 55%, var(--brand-600)); box-shadow: var(--shadow-vivid); }
.mk-fab .i { width: 20px; height: 20px; }

/* shared pieces */
.mk-card { border-radius: 22px; padding: 14px; }
.mk-grid { display: grid; gap: 12px; height: 100%; }
.mk-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.mk-between { justify-content: space-between; }
.mk-grow { flex: 1; min-width: 0; }
.mk-sub { font-size: 11px; line-height: 14px; color: var(--ink-subtle); }
.mk-h { font-size: 13px; font-weight: 600; }
.mk-muted { color: var(--ink-muted); }
.mk-ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-scroll { overflow: hidden; }
.mk-list > * + * { border-top: 1px solid rgba(255, 255, 255, 0.65); }
.mk-sel { background: var(--brand-50); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2); }
.mk-stack > * + * { margin-left: -8px; }

.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 9999px; font-weight: 600; font-size: 12px; white-space: nowrap; flex: none; }
.mk-btn.p { color: #fff; background-image: linear-gradient(180deg, var(--primary-top), var(--primary-mid) 55%, var(--brand-600)); box-shadow: var(--shadow-vivid); }
.mk-btn.s { color: var(--ink-body); background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-glass-sm); }
.mk-btn.g { color: var(--ink-muted); }
.mk-btn.d { color: #fff; background-image: linear-gradient(180deg, #fb6a6a, #ef4444 55%, #dc2626); box-shadow: 0 8px 24px -8px rgba(220, 38, 38, 0.55), inset 0 1px 0 0 rgba(255, 255, 255, 0.4); }
.mk-btn.wide { width: 100%; height: 34px; }
.mk-btn.ico { width: 34px; height: 34px; padding: 0; }
.mk-btn.ico.sm { width: 26px; height: 26px; }
.mk-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; font: 600 10px/14px var(--font-sans); background: rgba(148, 163, 184, 0.15); color: #334155; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); white-space: nowrap; }
.mk-badge .i { width: 11px; height: 11px; }
.mk-badge.mk-on { background: rgba(51, 102, 255, 0.1); color: var(--brand-700); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2); }
.mk-badge.mk-rose { background: rgba(251, 113, 133, 0.16); color: #9f1239; box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.25); }
.mk-seg { display: inline-flex; padding: 3px; border-radius: 9999px; background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(255, 255, 255, 0.7); flex: none; }
.mk-seg span { padding: 4px 12px; border-radius: 9999px; font-weight: 600; font-size: 11px; color: var(--ink-muted); white-space: nowrap; }
.mk-seg span.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-glass-sm); }
.mk-input { flex: none; width: 100%; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.62); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: var(--shadow-input); color: var(--ink-faint); white-space: nowrap; overflow: hidden; }
.mk-send { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background-image: linear-gradient(180deg, var(--primary-top), var(--primary-mid) 55%, var(--brand-600)); box-shadow: var(--shadow-vivid); }
.mk-cbtn { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--ink-muted); background: rgba(255, 255, 255, 0.75); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-glass-sm); }
.mk-cbtn .i { width: 16px; height: 16px; }
.mk-cbtn.sm { width: 28px; height: 28px; background: transparent; border: 0; box-shadow: none; }
.mk-cbtn.red { color: #fff; background-image: linear-gradient(180deg, #fb6a6a, #ef4444 55%, #dc2626); border: 0; }

/* avatars: generated glass orbs, status dots, status rings, speaking halo */
.mk-orb { position: relative; display: inline-grid; place-items: center; flex: none; border-radius: 50%; color: #fff; font-weight: 700; letter-spacing: 0.01em; border: 1.5px solid rgba(255, 255, 255, 0.55); box-shadow: var(--shadow-glass-sm); text-shadow: 0 1px 2px rgba(30, 41, 99, 0.25); }
.mk-sdot { position: absolute; right: -2px; bottom: -2px; width: 32%; height: 32%; min-width: 8px; min-height: 8px; border-radius: 50%; border: 2px solid #fff; }
.mk-orb.mk-halo { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.55), 0 0 0 7px rgba(16, 185, 129, 0.15); }
.ring-available { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10b981; }
.ring-focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #8b5cf6; }
.ring-meeting { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #f59e0b; }
.ring-break { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #06b6d4; }
.ring-away { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #94a3b8; }
.ring-offline { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #cbd5e1; }
.ring-available.mk-halo { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #10b981, 0 0 0 9px rgba(16, 185, 129, 0.2); }
.s-available { background: #10b981; } .s-focus { background: #8b5cf6; } .s-meeting { background: #f59e0b; }
.s-break { background: #06b6d4; } .s-away { background: #94a3b8; } .s-offline { background: #cbd5e1; }

/* status chips + tints: a low-alpha wash, a 1px ring, deep text */
.mk-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 9999px; font: 600 10px/14px var(--font-sans); white-space: nowrap; flex: none; }
.mk-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex: none; }
.c-available { background: rgba(52, 211, 153, 0.2); color: #065f46; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25); }
.c-focus { background: rgba(167, 139, 250, 0.2); color: #5b21b6; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25); }
.c-meeting { background: rgba(251, 191, 36, 0.25); color: #92400e; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3); }
.c-break { background: rgba(34, 211, 238, 0.2); color: #155e75; box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.25); }
.c-away { background: rgba(148, 163, 184, 0.15); color: #334155; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); }
.c-offline { background: rgba(203, 213, 225, 0.15); color: var(--ink-subtle); box-shadow: inset 0 0 0 1px rgba(203, 213, 225, 0.3); }
.e-brand { background: rgba(51, 102, 255, 0.1); color: #1c2eb6; box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.22); }
.e-meeting { background: rgba(251, 191, 36, 0.25); color: #92400e; box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3); }
.e-focus { background: rgba(167, 139, 250, 0.2); color: #5b21b6; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.25); }
.e-break { background: rgba(34, 211, 238, 0.2); color: #155e75; box-shadow: inset 0 0 0 1px rgba(6, 182, 212, 0.25); }
.e-mint { background: rgba(52, 211, 153, 0.2); color: #065f46; box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.25); }
.e-rose { background: rgba(251, 113, 133, 0.16); color: #9f1239; box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.25); }

/* list rows */
.mk-frow { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 12px; font-weight: 600; color: var(--ink-muted); }
.mk-frow.on { background: rgba(255, 255, 255, 0.85); color: var(--ink); box-shadow: var(--shadow-glass-sm); }
.mk-frow em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--ink-subtle); }
.mk-frow em.mk-unread, .mk-unread { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: 9999px; font-style: normal; font-size: 10px; font-weight: 700; text-align: center; background: rgba(51, 102, 255, 0.12); color: var(--brand-700); }
.mk-ldot { width: 8px; height: 8px; border-radius: 50%; margin: 0 3px; }
.mk-prow { display: flex; align-items: center; gap: 10px; padding: 9px 0; min-width: 0; }
.mk-mail { display: flex; gap: 10px; padding: 9px 10px; border-radius: 16px; }
.mk-mail-s { font-weight: 600; color: var(--ink-body); margin: 1px 0; }
.mk-mochi { display: flex; gap: 8px; padding: 10px 12px; border-radius: 16px; background: rgba(51, 102, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.18); color: #1e293b; }
.mk-mochi .i { color: var(--brand-500); margin-top: 1px; }
.mk-body { font-size: 13px; line-height: 21px; color: var(--ink-body); }
.mk-info { display: grid; grid-template-columns: 18px 76px 1fr; align-items: center; gap: 8px; padding: 8px 0; }
.mk-label { text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; font-size: 10px; }
.mk-recent { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.55); color: var(--ink-body); }
.mk-recent .i { color: var(--ink-subtle); flex: none; }

/* planner */
.mk-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-body); }
.mk-month span { height: 22px; display: grid; place-items: center; border-radius: 50%; }
.mk-month .mk-wk { background: rgba(255, 255, 255, 0.6); border-radius: 6px; }
.mk-month .mk-today { background: rgba(51, 102, 255, 0.14); color: var(--brand-700); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.3); }
.mk-days { display: grid; grid-template-columns: 52px repeat(5, 1fr); padding: 10px 0 6px; }
.mk-days::before { content: ''; }
.mk-dayh { text-align: center; font-weight: 600; color: var(--ink-muted); padding: 5px 0; border-radius: 9999px; margin: 0 4px; }
.mk-dayh.on { background: rgba(51, 102, 255, 0.1); color: var(--brand-700); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2); }
.mk-cal { position: relative; flex: 1; }
.mk-hline { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid rgba(255, 255, 255, 0.75); }
.mk-hline span { position: absolute; left: 0; top: -7px; font-size: 10px; color: var(--ink-subtle); }
.mk-ev { position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 5px 8px; border-radius: 10px; overflow: hidden; font-size: 10px; }
.mk-ev b { color: inherit; font-size: 11px; line-height: 13px; }
.mk-now { position: absolute; height: 2px; background: #ef4444; border-radius: 2px; }
.mk-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; }
.mk-pstrip { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: 18px; }
.mk-pday { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 30px; padding: 4px 0; border-radius: 12px; font-weight: 700; font-size: 12px; }
.mk-pday em { font-style: normal; font-size: 9px; font-weight: 600; color: var(--ink-subtle); }
.mk-pday.on { background: rgba(51, 102, 255, 0.12); color: var(--brand-700); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.25); }
.mk-agenda { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 16px; }
.mk-agenda b { color: inherit; }
.mk-agenda span { font-size: 10px; opacity: 0.85; }

/* chat */
.mk-chathead { padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.65); }
.mk-msg { display: flex; gap: 10px; align-items: flex-start; }
.mk-bub { margin-top: 3px; padding: 8px 12px; max-width: 460px; border-radius: 18px; border-top-left-radius: 6px; background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px #fff; font-size: 12px; line-height: 18px; }
.mk-msg.mine { justify-content: flex-end; }
.mk-msg.mine .mk-bub { border-radius: 18px; border-bottom-right-radius: 6px; background: rgba(51, 102, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2); color: #1e293b; }
.mk-dots { display: inline-flex; gap: 3px; }
.mk-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint); }
.mk-chan { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.8); color: var(--ink-muted); box-shadow: var(--shadow-glass-sm); }

/* call */
.mk-tiles { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; gap: 10px; padding-bottom: 62px; }
.mk-tile { position: relative; display: grid; place-items: center; border-radius: 20px; }
.mk-tile.speaking { box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.6), var(--shadow-glass-sm); }
.mk-namebadge { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; background: rgba(255, 255, 255, 0.85); font-size: 10px; font-weight: 600; color: var(--ink); }
.mk-namebadge .i { width: 10px; height: 10px; color: var(--ink-subtle); }
.mk-wait { position: absolute; right: 8px; top: 40px; width: 270px; padding: 12px 14px; border-radius: 20px; display: flex; flex-direction: column; gap: 4px; background: rgba(255, 255, 255, 0.95); }
.mk-controls { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9999px; }
.mk-ptiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; }

/* tasks */
.mk-tcol { border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.mk-task { border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.mk-task b { display: flex; align-items: center; gap: 6px; line-height: 16px; }
.mk-task.done b { color: var(--ink-subtle); text-decoration: line-through; }
.mk-check { width: 16px; height: 16px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(52, 211, 153, 0.25); color: #065f46; }
.mk-check .i { width: 10px; height: 10px; }
.mk-bar { height: 5px; border-radius: 9999px; background: rgba(148, 163, 184, 0.22); overflow: hidden; }
.mk-bar i { display: block; height: 100%; border-radius: inherit; background: rgba(71, 85, 105, 0.6); }
.mk-circle { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px #cbd5e1; }
.mk-circle.done { background: rgba(52, 211, 153, 0.25); box-shadow: none; color: #065f46; }
.mk-circle .i { width: 10px; height: 10px; }

/* vault */
.mk-folder { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; }
.mk-ftile { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.mk-file { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 16px; min-width: 0; }
.mk-thumb { height: 78px; display: grid; place-items: center; border-radius: 12px; }
.mk-thumb .i { width: 24px; height: 24px; }
.mk-star { color: #f59e0b; display: inline-grid; }
.mk-star .i { fill: rgba(245, 158, 11, 0.3); }

/* write */
.mk-toolbar { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 12px; border-radius: 9999px; }
.mk-select { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.7); font-weight: 600; }
.mk-vsep { width: 1px; height: 20px; margin: 0 4px; background: rgba(148, 163, 184, 0.35); }
.mk-page { display: flex; flex-direction: column; gap: 10px; padding: 28px 40px; border-radius: 20px; background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-glass); font-size: 13px; line-height: 21px; overflow: hidden; }
.mk-doch { font-size: 15px; margin-top: 4px; }
.mk-page ul { padding-left: 18px; list-style: disc; }
.mk-page mark { background: rgba(51, 102, 255, 0.14); color: inherit; border-radius: 3px; box-shadow: 0 0 0 2px rgba(51, 102, 255, 0.14); }
.mk-sparkle { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-50); color: var(--brand-500); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2); }
.mk-sugg { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.75); box-shadow: inset 0 0 0 1px #e2e8f0; font-weight: 600; color: var(--ink-body); }
.mk-sugg .i { color: var(--brand-500); }

/* grid (spreadsheet) */
.mk-cellref { padding: 5px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.75); font-weight: 600; font-family: var(--font-mono); font-size: 11px; }
.mk-formula { flex: 1; display: flex; gap: 10px; padding: 5px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.62); font-family: var(--font-mono); font-size: 11px; color: var(--ink-body); }
.mk-formula em { font-style: italic; color: var(--ink-subtle); }
.mk-sheet { display: grid; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px rgba(226, 232, 240, 0.9); font-size: 11px; }
.mk-sheet > span { height: 30px; display: flex; align-items: center; padding: 0 10px; border-right: 1px solid #eef2f7; border-bottom: 1px solid #eef2f7; white-space: nowrap; overflow: hidden; }
.mk-sh-corner, .mk-sh-col, .mk-sh-row { background: rgba(241, 245, 249, 0.9); color: var(--ink-subtle); font-weight: 600; justify-content: center; font-size: 10px; }
.mk-cell.num { justify-content: flex-end; font-variant-numeric: tabular-nums; }
.mk-cell.hd { font-weight: 700; color: var(--ink); background: rgba(248, 250, 252, 0.95); }
.mk-cell.tot { font-weight: 700; color: var(--ink); background: rgba(238, 244, 255, 0.7); }
.mk-cell.sel { box-shadow: inset 0 0 0 2px var(--brand-500); position: relative; z-index: 1; }
.mk-stab { padding: 5px 12px; border-radius: 9999px; font-size: 11px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.mk-stab.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-glass-sm); }

/* present */
.mk-slide { position: relative; aspect-ratio: 16 / 9; border-radius: 1em; overflow: hidden; padding: 2.2em 2.6em; display: flex; flex-direction: column; background: linear-gradient(135deg, #ffffff 0%, #eef4ff 60%, #f5f0ff 100%); box-shadow: var(--shadow-glass); color: var(--ink); }
.mk-slide b { font-size: 3em; line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.mk-slide-kicker { font-size: 0.95em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-600); margin-bottom: 0.8em; }
.mk-slide-sub { font-size: 1.2em; color: var(--ink-muted); margin-top: 0.5em; }
.mk-slide-foot { position: absolute; left: 2.6em; bottom: 1.6em; font-size: 0.9em; font-weight: 600; color: var(--ink-subtle); }
.mk-slide-bars { position: absolute; right: 2.6em; bottom: 1.6em; width: 34%; height: 46%; display: flex; align-items: flex-end; gap: 0.8em; }
.mk-slide-bars i { flex: 1; border-radius: 0.5em 0.5em 0.2em 0.2em; background-image: linear-gradient(180deg, var(--brand-400), var(--violet-500)); opacity: 0.85; }
.mk-slide.alt1 { background: linear-gradient(135deg, #1e1b4b, #312e81); } .mk-slide.alt1 b { color: #fff; font-size: 2.4em; }
.mk-slide.alt2 { background: linear-gradient(135deg, #fef3c7, #fde68a); } .mk-slide.alt2 b { font-size: 2.4em; }
.mk-thumbslide { display: flex; gap: 6px; align-items: flex-start; }
.mk-thumbslide em { font-style: normal; font-size: 10px; color: var(--ink-subtle); width: 10px; }
.mk-thumbslide > span { flex: 1; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px #e2e8f0; display: block; }
.mk-thumbslide.on > span { box-shadow: 0 0 0 2px var(--brand-500); }
.mk-thumbslide .mk-slide { box-shadow: none; padding: 1.4em; border-radius: 0; }
.mk-lines { display: block; margin: 18% 12%; height: 30%; background: repeating-linear-gradient(180deg, #e2e8f0 0 3px, transparent 3px 8px); }
.mk-theme { display: flex; flex-direction: column; gap: 4px; font-size: 10px; font-weight: 600; color: var(--ink-muted); }
.mk-theme i { aspect-ratio: 16 / 10; border-radius: 8px; box-shadow: inset 0 0 0 1px #e2e8f0; }

/* product drawing frame keeps the web drawing inside the sticky slide on every screen */
@media (max-width: 1024px) { .mk-shot { width: min(100%, calc(44svh * 1.6 + 18px)); } }
@media (max-width: 768px) { .mk-shot { width: min(100%, calc(28svh * 1.6 + 18px)); } }
@media (min-width: 1700px) { .mk-shot { width: min(100%, calc(min(56vh, 640px) * 1.6 + 18px)); } }

/* drawing fixes: inputs size to their row, badges keep their width, solid colour dots */
.mk-row > .mk-input { flex: 1; width: auto; }
.mk-col > .mk-chip, .mk-col > .mk-badge { align-self: flex-start; }
.mk-pbody > * { flex: none; }
.mk-pbody > .mk-ptiles { flex: 1 1 auto; min-height: 0; }
.mk-ldot.e-brand { background: #3366ff; } .mk-ldot.e-mint { background: #10b981; }
.mk-ldot.e-focus { background: #8b5cf6; } .mk-ldot.e-meeting { background: #f59e0b; }
.mk-ldot { box-shadow: none; }
.mk-controls-flow { position: static; transform: none; align-self: center; }
.mk-screen .mk-sheet > span { padding: 0 6px; }

/* desktop: give the product drawing a little more of the slide */
@media (min-width: 1200px) and (max-width: 1699px) { .slide { grid-template-columns: 1.65fr 1fr; } }

/* phones: a little tighter so every product (incl. Call, Contacts, HomeWork) fits its slide */
@media (max-width: 768px) {
  .slide { gap: 12px; }
  .slide-kicker { margin-bottom: 6px; }
  .slide-text h3 { line-height: 28px; }
  .slide-tags { margin-top: 10px; }
  .pager { padding-top: 8px; }
  .showcase-stage { height: calc(100svh - 232px); }
  .slide { align-content: start; padding-top: 4px; }
  .mk-shot { width: min(86%, calc(28svh * 1.6 + 18px)); margin: 0; }
}

/* ==========================================================================
   FEATURE WALKTHROUGHS — the bullets play out on the web drawing
   ========================================================================== */
/* bullets: the active one lights up, a thin bar times the step */
.slide-feats { gap: 2px; }
.slide-feats li { position: relative; margin: 0 -10px; padding: 5px 10px; border-radius: 14px; cursor: pointer; }
.slide-feats li:hover { background-color: rgba(255, 255, 255, 0.45); }
.slide-feats li.on { background-color: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.2), var(--shadow-glass-sm); }
.slide-feats li.on .i { color: var(--brand-500); }
.slide-feats li.on::after {
  content: ''; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px;
  background: rgba(51, 102, 255, 0.45); transform-origin: left;
  animation: feat-timer var(--feat-ms, 3800ms) linear forwards;
}
.slide-feats li.on.manual::after { display: none; }
.slide-feats li:focus-visible { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 0 0 4px var(--focus-ring); }
@keyframes feat-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* spotlight on the part of the screen the bullet is about */
[data-demo] { --spot: 5px; }
[data-step="0"] [data-f~="0"], [data-step="1"] [data-f~="1"], [data-step="2"] [data-f~="2"], [data-step="3"] [data-f~="3"] {
  outline: var(--spot) solid rgba(51, 102, 255, 0.55);
  outline-offset: calc(var(--spot) * 1.2);
  animation: spot 1.6s ease-in-out infinite;
}
@keyframes spot { 0%, 100% { outline-color: rgba(51, 102, 255, 0.55); } 50% { outline-color: rgba(51, 102, 255, 0.2); } }

/* what appears on screen for each step */
.mk-ov {
  position: absolute; z-index: 6;
  border-radius: 20px; padding: 14px 16px;
  opacity: 0; transform: translateY(12px) scale(0.97);
  transition: opacity 260ms ease-out, transform 380ms var(--ease-panel);
  pointer-events: none;
}
.mk-ov.mk-strong { background: rgba(255, 255, 255, 0.98); box-shadow: var(--shadow-glass-lg); }
[data-step="0"] [data-show~="0"], [data-step="1"] [data-show~="1"], [data-step="2"] [data-show~="2"], [data-step="3"] [data-show~="3"] { opacity: 1; transform: none; }
[data-step="3"] [data-hide~="3"] { display: none; }

.mk-ov-field { padding: 0 12px; height: 34px; display: flex; align-items: center; border-radius: 14px; background: rgba(255, 255, 255, 0.96); border: 1px solid rgba(51, 102, 255, 0.55); box-shadow: 0 0 0 4px rgba(51, 102, 255, 0.14); }
.mk-ov-field .mk-row { width: 100%; }
.mk-ov-event { border-radius: 10px; padding: 6px 8px; height: 50px; animation: none; }
.mk-ov-bubble { padding: 9px 13px; border-radius: 18px; border-bottom-right-radius: 6px; background: rgba(51, 102, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.22); color: #1e293b; font-size: 12px; line-height: 18px; }
.mk-ov-plain { padding: 0; }
.mk-ov-cursor { padding: 0; height: 22px; border-left: 2px solid #ec4899; border-radius: 0; }
.mk-ov-cell { padding: 0; height: 30px; border-radius: 2px; box-shadow: inset 0 0 0 2px #8b5cf6; }
.mk-flag { position: absolute; left: -2px; top: -18px; padding: 1px 6px; border-radius: 6px 6px 6px 0; background: #ec4899; color: #fff; font-size: 10px; font-weight: 700; }
.mk-caret { display: inline-block; width: 2px; height: 14px; margin-left: 2px; vertical-align: middle; background: var(--brand-500); animation: blink 1s steps(1) infinite; }
.mk-attach { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px #e2e8f0; }
.mk-pdf { margin: 12px auto 0; width: 230px; height: 290px; padding: 22px 20px; border-radius: 6px; background: #fff; box-shadow: 0 8px 24px -10px rgba(30, 41, 99, 0.35); display: flex; flex-direction: column; gap: 10px; }
.mk-pdf i { display: block; height: 8px; border-radius: 4px; background: #e2e8f0; }
.mk-pdf i:first-child { height: 16px; width: 70%; background: #c7d2fe; }
.mk-pdf i:nth-child(4) { height: 70px; background: linear-gradient(135deg, #dbeafe, #ede9fe); }
.mk-menu { display: flex; flex-direction: column; gap: 1px; }
.mk-ul { margin-top: 6px; padding-left: 18px; list-style: disc; display: grid; gap: 2px; }
.mk-chart { display: flex; align-items: flex-end; gap: 18px; height: 150px; margin: 12px 0 22px; padding: 0 10px; border-bottom: 1px solid rgba(148, 163, 184, 0.35); }
.mk-chart span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; position: relative; }
.mk-chart i { width: 100%; border-radius: 8px 8px 2px 2px; background-image: linear-gradient(180deg, var(--brand-400), var(--violet-500)); }
.mk-chart em { position: absolute; bottom: -18px; font-style: normal; font-size: 10px; color: var(--ink-subtle); }
.mk-slide-dark { background: linear-gradient(135deg, #1e1b4b, #312e81 60%, #4c1d95); }
.mk-slide-dark b { color: #fff; }
.mk-slide-dark .mk-slide-sub, .mk-slide-dark .mk-slide-foot { color: rgba(255, 255, 255, 0.7); }
.mk-slide-dark .mk-slide-kicker { color: #a5b4fc; }
.mk-ov-full { padding: 0; border-radius: 0; }
.mk-show { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: rgba(11, 16, 32, 0.92); }
.mk-showbar { display: flex; align-items: center; gap: 16px; padding: 8px 18px; border-radius: 9999px; font-weight: 600; font-size: 12px; color: var(--ink); }

/* the cursor that walks through each step */
.mk-cursor {
  position: absolute; left: 0; top: 0; z-index: 9;
  width: 28px; pointer-events: none; opacity: 0;
  transform: translate(var(--cx, -40px), var(--cy, -40px));
  transition: transform 650ms var(--ease-panel), opacity 200ms ease-out;
  filter: drop-shadow(0 4px 8px rgba(30, 41, 99, 0.35));
}
.mk-cursor.on { opacity: 1; }
.mk-cursor svg { display: block; width: 100%; height: auto; }
.mk-cursor i { position: absolute; left: -12px; top: -14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(51, 102, 255, 0.35); opacity: 0; transform: scale(0.2); }
.mk-cursor.click i { animation: ripple 520ms ease-out; }
@keyframes ripple { 0% { opacity: 0.9; transform: scale(0.2); } 100% { opacity: 0; transform: scale(1.6); } }

@media (max-width: 768px) {
  .slide-feats { gap: 0; }
  .slide-feats li { padding: 3px 10px; }
}

/* the phone drawing sits bottom-left so the walkthrough on the web drawing stays visible */
.slide-media .mk-fit-phone { right: auto; left: -5%; bottom: -24px; }
.slide .mk-fit-phone { transition: opacity 360ms ease-out, transform 560ms var(--ease-panel), translate 520ms var(--ease-panel); }
.slide.active .mk-fit-phone.mk-away { opacity: 0; translate: -18px 36px; transition-delay: 0ms; }
@media (max-width: 768px) { .slide-media .mk-fit-phone { left: auto; right: 0; bottom: -12px; } }

/* real screens from the app */
.mk-real { background: #eef2ff; }
.slide-media .mk-real > img, .mk-real > img { display: block; width: 1120px; height: 700px; max-width: none; max-height: none; border-radius: 0; }
.mk-hot { position: absolute; z-index: 5; border-radius: 10px; pointer-events: none; }

/* HomeWork, drawn inside a copy of the app's chrome */
.mk-rside { position: absolute; left: 10px; top: 10px; bottom: 10px; width: 49px; border-radius: 25px; padding: 13px 0 10px; display: flex; flex-direction: column; align-items: center; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: var(--shadow-glass-sm); }
.mk-rlogo { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font: 900 15px/1 var(--font-sans); color: #fff; background-image: linear-gradient(180deg, var(--primary-top), var(--primary-mid) 55%, var(--brand-600)); box-shadow: var(--shadow-vivid-sm); }
.mk-rexp { position: absolute; right: -9px; top: 29px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand-500); box-shadow: var(--shadow-vivid-sm); }
.mk-rexp .i { width: 10px; height: 10px; stroke-width: 3; }
.mk-rnavs { display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.mk-rnav { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: var(--ink-muted); }
.mk-rnav:nth-child(6), .mk-rnav:nth-child(9) { margin-top: 5px; }
.mk-rnav.on { color: #fff; background-image: linear-gradient(135deg, var(--brand-500), var(--violet-500)); box-shadow: var(--shadow-vivid-sm); }
.mk-rall { margin-top: auto; margin-bottom: 6px; width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: #111827; }
.mk-rpanel { position: absolute; left: 68px; top: 10px; right: 10px; bottom: 10px; border-radius: 25px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-glass-sm); overflow: hidden; }
.mk-rtop { position: absolute; left: 0; right: 0; top: 0; height: 44px; display: flex; align-items: center; gap: 6px; padding: 0 10px; }
.mk-rtab { height: 26px; padding: 0 10px; border-radius: 10px; display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-muted); min-width: 120px; }
.mk-rtab.on { background: rgba(255, 255, 255, 0.95); color: var(--ink); box-shadow: var(--shadow-glass-sm); min-width: 140px; }
.mk-rtab.on .i:last-child { margin-left: auto; width: 11px; height: 11px; color: var(--ink-subtle); }
.mk-rtimer { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 9999px; display: flex; align-items: center; gap: 6px; font-size: 9.5px; color: var(--ink-muted); background: rgba(16, 185, 129, 0.09); border: 1px solid rgba(16, 185, 129, 0.35); }
.mk-rtimer .i { width: 12px; height: 12px; color: #047857; }
.mk-rtimer b { font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mk-rstatus { height: 26px; padding: 0 10px; border-radius: 9999px; display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-glass-sm); }
.mk-rstatus b { font-size: 11px; color: #047857; }
.mk-rstatus .i { width: 11px; height: 11px; }
.mk-ricons { display: flex; align-items: center; gap: 12px; margin-left: 6px; color: var(--ink); }
.mk-rfab { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background-image: linear-gradient(180deg, var(--primary-top), var(--primary-mid) 55%, var(--brand-600)); box-shadow: var(--shadow-vivid); z-index: 4; }
.mk-rfab .i { width: 18px; height: 18px; }
.mk-chrome .mk-main { left: 10px; right: 10px; top: 50px; bottom: 10px; }
.mk-bar { display: block; height: 22px; border-radius: 8px; background: rgba(255, 255, 255, 0.9); box-shadow: inset 0 0 0 1px #e2e8f0; }

/* ==========================================================================
   The mobile app's bottom nav (mobilenav.js), Liquid Glass skin of the app's own
   ========================================================================== */
.nv { position: relative; color: var(--ink-muted); touch-action: pan-y; font-family: var(--font-sans); -webkit-user-select: none; user-select: none; }
.nv-shadow { position: absolute; inset: 0; filter: drop-shadow(0 16px 32px rgba(30, 41, 99, 0.22)) drop-shadow(0 4px 10px rgba(30, 41, 99, 0.1)); }
.nv-glass { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.78); -webkit-backdrop-filter: var(--blur-glass-strong); backdrop-filter: var(--blur-glass-strong); }
.nv-hi { position: absolute; inset: 0; display: block; }
.nv-edge { position: absolute; inset: 0; display: block; overflow: visible; z-index: 2; pointer-events: none; }
.nv-track { position: absolute; inset: 0; z-index: 3; overflow: hidden; outline: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%); }
.nv-track[tabindex] { cursor: grab; }
.nv-track[tabindex]:active { cursor: grabbing; }
.nv-track:focus-visible { box-shadow: 0 0 0 2px rgba(51, 102, 255, 0.7) inset; }
.nv-item { position: absolute; top: 0; transform: translateX(-50%); width: 66px; min-height: 44px; display: flex; flex-direction: column; align-items: center; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; color: var(--ink-muted); font: inherit; -webkit-tap-highlight-color: transparent; }
.nv-item:disabled { cursor: default; color: var(--ink-muted); }
.nv-item.on { color: var(--brand-600); }
.nv-ico { position: relative; display: grid; place-items: center; transform-origin: 50% 50%; will-change: transform, opacity; }
.nv-glyph { display: grid; place-items: center; }
.nv-glyph svg { display: block; overflow: visible; }
.nv-lbl { display: block; max-width: 70px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: 0.005em; color: var(--ink-muted); }
.nv-item.on .nv-lbl { font-size: 13px; font-weight: 600; color: var(--brand-600); }
.nv-disc { position: absolute; z-index: 4; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: var(--blur-glass-strong); backdrop-filter: var(--blur-glass-strong); box-shadow: var(--shadow-glass-lg), 0 0 0 1px rgba(255, 255, 255, 0.8); color: var(--brand-600); pointer-events: none; }
.nv-disc-ico { position: absolute; display: grid; place-items: center; will-change: transform, opacity; }
.nv-plus { color: #1f47f5; transition: opacity 180ms ease-out; }

/* drawn phones wear the app's frame */
.mk-pbrand { display: flex; align-items: center; gap: 7px; padding: 0 14px 4px; }
.mk-pbrand > b { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.mk-plogo { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 12px/1 var(--font-sans); background-image: linear-gradient(180deg, var(--primary-top), var(--brand-600)); box-shadow: var(--shadow-vivid-sm); }
.mk-picons { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.mk-pbtn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-glass-sm); color: var(--ink); }
.mk-pbtn .i { width: 12px; height: 12px; }
.mk-pme { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 700; background: var(--brand-500); }
.mk-phone .mk-pbody { top: 118px; }
.mk-pnav { position: absolute; left: 14px; bottom: 13px; transform: scale(0.7065); transform-origin: 0 100%; z-index: 5; }
.mk-phone-real .mk-screen { background: #fff; }
.mk-phone-real img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mk-phone-real .mk-pnav { top: 554px; bottom: auto; transform-origin: 0 0; }

/* ==========================================================================
   Section: the mobile app
   ========================================================================== */
.mn-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mn-copy .section-head { margin-bottom: 28px; }
.mn-points { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.mn-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.mn-pi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-600); background: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow-glass-sm), 0 0 0 1px rgba(255, 255, 255, 0.8); }
.mn-points h3 { margin: 2px 0 4px; font-size: 17px; line-height: 24px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.mn-points p { margin: 0; font-size: 15px; line-height: 23px; color: var(--ink-muted); }
.mn-now { margin: 28px 0 0; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 9999px; background: rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-glass-sm); font-size: 14px; color: var(--ink); }
.mn-now-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-subtle); }
.mn-now b { color: var(--brand-600); min-width: 74px; }

.mn-stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mn-phone { width: clamp(240px, min(25vw, calc((100svh - 190px) * 0.46)), 352px); padding: 11px; border-radius: 58px; background: #0f172a; box-shadow: inset 0 0 0 2px #334155, 0 40px 80px -30px rgba(30, 41, 99, 0.45), 0 18px 36px -18px rgba(30, 41, 99, 0.3); }
.mn-screen { position: relative; width: 100%; aspect-ratio: 402 / 874; border-radius: 47px; overflow: hidden; background: #f4f6ff; isolation: isolate; }
.mn-canvas { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform: scale(var(--mn-s, 0.8)); transform-origin: 0 0; }
.mn-layers, .mn-layer { position: absolute; inset: 0; }
.mn-layer { opacity: 0; transform: scale(0.985); transition: opacity 260ms ease-out, transform 420ms var(--ease-panel); }
.mn-layer.on { opacity: 1; transform: none; }
.mn-layer img { display: block; width: 402px; height: 874px; }
.mn-drawn { position: absolute; left: 0; top: 0; width: 284px; height: 617px; }
.mn-drawn .mk { --s: 1.41549; }
.mn-drawn .mk-phone { width: 284px; height: 617.5px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.mn-drawn .mk-screen { border-radius: 0; }
.mn-drawn .mk-pnav { display: none; }
.mn-nav { position: absolute; left: 20px; top: 784px; z-index: 5; }
.mn-hint { margin: 0; font-size: 13px; color: var(--ink-subtle); }
@media (hover: none) { .mn-hint { font-size: 0; } .mn-hint::after { content: "Swipe the bar"; font-size: 13px; } }

@media (max-width: 1024px) {
  .mn-grid { grid-template-columns: 1fr; }
  .mn-phone { width: min(300px, 78vw); }
}

/* Mochi's phone screen: Mochi in the middle, talk or type */
.mm img { position: absolute; inset: 0; }
.mm-body {
  position: absolute; left: 0; right: 0; top: 160px; bottom: 29px;
  background:
    radial-gradient(220px 200px at 50% 20%, rgba(255, 179, 122, 0.24), transparent 70%),
    radial-gradient(240px 220px at 96% 96%, rgba(255, 122, 198, 0.16), transparent 70%),
    radial-gradient(220px 200px at 4% 92%, rgba(94, 200, 255, 0.14), transparent 70%),
    #fff;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px); mask-image: linear-gradient(180deg, transparent 0, #000 14px);
  font-family: var(--font-sans);
}
.mm-figure { position: absolute; left: 50%; top: 34px; width: 196px; height: 196px; margin-left: -98px; transition: transform 600ms var(--ease-panel); transform-origin: 50% 0; }
.mm-hello { position: absolute; left: 24px; right: 24px; top: 246px; text-align: center; transition: opacity 300ms ease-out, transform 500ms var(--ease-panel); }
.mm-hi { margin: 0; font-size: 26px; line-height: 32px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.mm-sub { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mm.talking .mm-figure { transform: translateY(-14px) scale(0.72); }
.mm.talking .mm-hello { opacity: 0; transform: translateY(-16px); }
.mm-thread { position: absolute; left: 18px; right: 18px; top: 140px; bottom: 140px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.mm-bubble { max-width: 82%; padding: 10px 14px; border-radius: 20px; font-size: 14px; line-height: 20px; animation: hw-slide-up 260ms var(--ease-panel); }
.mm-user { align-self: flex-end; border-bottom-right-radius: 6px; color: #fff; background-image: linear-gradient(180deg, var(--primary-top), var(--brand-600)); box-shadow: var(--shadow-vivid-sm); }
.mm-bot { align-self: flex-start; border-bottom-left-radius: 6px; color: var(--ink); background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(148, 163, 184, 0.18); }
.mm-said { display: inline-grid; vertical-align: -2px; margin-right: 6px; }
.mm-said .i { width: 14px; height: 14px; }
.mm-dots { display: inline-flex; gap: 4px; padding: 14px 16px; }
.mm-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-subtle); animation: mm-dot 1s ease-in-out infinite; }
.mm-dots i:nth-child(2) { animation-delay: 150ms; }
.mm-dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes mm-dot { 0%, 100% { opacity: 0.3; transform: none; } 50% { opacity: 1; transform: translateY(-3px); } }
.mm-input { position: absolute; left: 16px; right: 16px; bottom: 82px; display: flex; align-items: center; gap: 8px; }
.mm-field { flex: 1; min-width: 0; height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 8px; border-radius: 9999px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(148, 163, 184, 0.28); font-size: 14px; color: var(--ink-subtle); white-space: nowrap; overflow: hidden; transition: box-shadow 200ms ease-out; }
.mm-field.typing, .mm-field.listening { box-shadow: var(--shadow-glass-sm), inset 0 0 0 1.5px rgba(51, 102, 255, 0.6), 0 0 0 4px rgba(51, 102, 255, 0.12); }
.mm-typed { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.mm-field.typing .mm-typed::after { content: ""; display: inline-block; width: 2px; height: 16px; margin-left: 1px; vertical-align: -3px; background: var(--brand-500); animation: blink 1s steps(1) infinite; }
.mm-listening { display: none; color: var(--brand-600); font-weight: 600; }
.mm-field.typing .mm-ph, .mm-field.listening .mm-ph { display: none; }
.mm-field.listening .wave, .mm-field.listening .mm-listening { display: inline-flex; }
.mm-mic, .mm-send { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; }
.mm-mic { color: var(--ink); background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(148, 163, 184, 0.28); transition: all 200ms ease-out; }
.mm-mic.on { color: #fff; background: var(--brand-500); box-shadow: 0 0 0 6px rgba(51, 102, 255, 0.18), var(--shadow-vivid-sm); }
.mm-send { color: #fff; background-image: linear-gradient(180deg, var(--primary-top), var(--brand-600)); box-shadow: var(--shadow-vivid-sm); }
.mm-mic .i, .mm-send .i { width: 20px; height: 20px; }
@keyframes blink { 50% { opacity: 0; } }

/* ==========================================================================
   HomeWork, live (homework.js): the app's own office, in design px of the drawing
   ========================================================================== */
.hw { position: absolute; inset: 0; }
.hw-head { position: absolute; left: 0; right: 0; top: 0; height: 46px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.82); box-shadow: var(--shadow-glass-sm); }
.hw-where { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.hw-room { font-size: 13px; line-height: 16px; color: var(--ink); }
.hw-hint { font-size: 10px; line-height: 13px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.hw-chip { display: none; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 9999px; font-size: 10px; font-weight: 600; color: #047857; background: rgba(16, 185, 129, 0.12); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35); white-space: nowrap; }
.hw-chip .i { width: 11px; height: 11px; }
.hw.in-call .hw-chip { display: inline-flex; animation: hw-slide-up 260ms var(--ease-panel); }
.hw-legend { display: flex; gap: 9px; margin-left: auto; font-size: 9.5px; color: var(--ink-muted); white-space: nowrap; }
.hw-legend span { display: inline-flex; align-items: center; gap: 4px; }
.hw-legend i { width: 6px; height: 6px; border-radius: 50%; }
.hw-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-radius: 9999px; font-size: 10.5px; font-weight: 600; color: var(--ink); background: #fff; box-shadow: var(--shadow-glass-sm); white-space: nowrap; }
.hw-btn .i { width: 12px; height: 12px; }

.hw-stage { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; border-radius: 22px; overflow: hidden; padding: 10px; background-color: rgba(255, 255, 255, 0.62); box-shadow: var(--shadow-glass-sm);
  background-image: linear-gradient(rgba(148, 163, 184, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, 0.16) 1px, transparent 1px);
  background-size: 21px 21px; background-position: 10px 10px; }
.hw-map { position: relative; }
.hw-zone { position: absolute; border-radius: 12px; border: 1.5px solid; }
.hw-zone > span { position: absolute; left: 8px; top: 5px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.hz-open { border-color: rgba(148, 163, 184, 0.6); background: rgba(255, 255, 255, 0.45); }
.hz-open > span { color: #475569; }
.hz-focus { border-color: rgba(167, 139, 250, 0.75); background: rgba(196, 181, 253, 0.28); }
.hz-focus > span { color: #6d28d9; }
.hz-meeting { border-color: rgba(251, 191, 36, 0.7); background: rgba(253, 230, 138, 0.32); }
.hz-meeting > span { color: #92400e; }
.hz-private { border-width: 2px; border-color: rgba(245, 158, 11, 0.9); }
.hz-break { border-color: rgba(34, 211, 238, 0.7); background: rgba(165, 243, 252, 0.4); }
.hz-break > span { color: #0e7490; }
.hw-desk { position: absolute; width: 0; height: 0; }
.hw-desk i { position: absolute; left: -12px; top: -8px; width: 24px; height: 16px; border-radius: 5px; background: #fff; box-shadow: 0 1px 2px rgba(30, 41, 99, 0.12), inset 0 0 0 1px rgba(148, 163, 184, 0.45); }
.hw-desk span { position: absolute; left: -20px; top: 10px; width: 40px; text-align: center; font-size: 6px; font-weight: 700; color: #475569; }
.hw-circle { position: absolute; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #3730a3; background: rgba(129, 140, 248, 0.38); box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.65); text-align: center; }
.hw-circle .i { width: 11px; height: 11px; }
.hw-circle span { font-size: 5.5px; line-height: 7px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

.hw-p { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; --ring: #10b981; }
.hw-orb { position: absolute; left: -10px; top: -10px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 7px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px rgba(30, 41, 99, 0.3); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ring), 0 3px 6px rgba(30, 41, 99, 0.25); transition: box-shadow 300ms ease-out; }
.hw-p > span { position: absolute; left: -45px; top: 14px; width: 90px; text-align: center; font-size: 7px; font-weight: 700; color: #0f172a; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.hw-me { z-index: 4; }
.hw-me .hw-orb { width: 22px; height: 22px; left: -11px; top: -11px; }
.hw-mochi { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 5; }
.hw-mochi svg { position: absolute; left: -10px; top: -17px; width: 20px; height: 22px; filter: drop-shadow(0 2px 2px rgba(30, 41, 99, 0.3)); }
.hw-talk { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; opacity: 0; transition: opacity 300ms ease-out; }
.hw-talk::before { content: ""; position: absolute; left: -36px; top: -30px; width: 72px; height: 60px; border-radius: 50%; background: rgba(16, 185, 129, 0.12); box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, 0.5); }
.hw-talk span { position: absolute; left: -22px; top: -42px; width: 44px; text-align: center; font-size: 7px; font-weight: 700; color: #047857; }
.hw-talk.on { opacity: 1; }
.hw-dest { position: absolute; width: 2px; height: 2px; margin: -1px 0 0 -1px; }
.hw [data-f] { border-radius: 14px; }
/* you and Mochi move, so their spotlight is a ring that travels with them */
.hw-p[data-f], .hw-mochi[data-f] { outline: none !important; animation: none !important; }
.hw-p[data-f]::before, .hw-mochi[data-f]::before { content: ""; position: absolute; left: -19px; top: -19px; width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.55); opacity: 0; transition: opacity 200ms; animation: hw-ring 1.6s ease-in-out infinite; }
.hw-mochi[data-f]::before { left: -15px; top: -20px; width: 30px; height: 30px; }
[data-step="1"] .hw-p[data-f~="1"]::before, [data-step="1"] .hw-mochi[data-f~="1"]::before { opacity: 1; }
@keyframes hw-ring { 50% { box-shadow: 0 0 0 3px rgba(51, 102, 255, 0.2); } }

.hw-call { position: absolute; right: 64px; bottom: 8px; width: 300px; z-index: 6; border-radius: 18px; background: rgba(255, 255, 255, 0.96); box-shadow: var(--shadow-glass-lg); opacity: 0; transform: translateY(16px) scale(0.98); transition: opacity 260ms ease-out, transform 420ms var(--ease-panel); }
.hw-call.on { opacity: 1; transform: none; }
.hw-call-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; }
.hw-call-head b { display: block; font-size: 11px; color: var(--ink); }
.hw-call-state { font-size: 9px; color: var(--ink-muted); }
.hw-call-head .i { width: 12px; height: 12px; color: var(--ink-muted); }
.hw-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 8px; }
.hw-tile { position: relative; height: 62px; border-radius: 10px; background: #e8ecf4; display: grid; place-items: center; }
.hw-tile .hw-orb { position: static; width: 26px; height: 26px; font-size: 9px; box-shadow: 0 2px 6px rgba(30, 41, 99, 0.25); }
.hw-tile span { position: absolute; left: 5px; bottom: 4px; padding: 1px 5px; border-radius: 4px; font-size: 7px; font-weight: 600; color: #fff; background: rgba(15, 23, 42, 0.7); white-space: nowrap; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; }
.hw-tile.speaking { box-shadow: inset 0 0 0 2px #10b981; animation: hw-speak 1.2s ease-in-out infinite; }
@keyframes hw-speak { 50% { box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.35); } }
.hw-call-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px 10px; }
.hw-cb { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.4); }
.hw-cb.off { color: #e11d48; background: #ffe4e6; box-shadow: none; }
.hw-cb .i { width: 12px; height: 12px; }
.hw-leave { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px; border-radius: 9999px; font-size: 9.5px; font-weight: 700; color: #fff; background: #ef4444; }
.hw-leave .i { width: 11px; height: 11px; }
.mk-rstatus b { transition: color 200ms; }
.mk-rstatus b { color: var(--st, #047857); filter: brightness(0.82); }

/* Mochi as an icon */
.i-mochi { object-fit: contain; transform: scale(1.3); filter: drop-shadow(0 1px 1.5px rgba(30, 41, 99, 0.25)); }
.rail-item .i-mochi, .tile-icon .i-mochi { transform: scale(1.45); }
.mk-rnav.on .i-mochi { transform: scale(1.35); }
.mk-rfab { background: rgba(255, 255, 255, 0.92) !important; box-shadow: var(--shadow-glass-lg), 0 0 0 1px rgba(255, 255, 255, 0.85) !important; }
.mk-rfab .i-mochi { width: 32px; height: 32px; transform: none; }
.nv-mochi img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.12); filter: drop-shadow(0 2px 3px rgba(30, 41, 99, 0.25)); }
.nv-item:not(.on) .nv-mochi img { filter: saturate(0.5) opacity(0.8); }

/* ==========================================================================
   Mochi's first page on the web (mochiweb.js), design px of the 1120×700 picture
   ========================================================================== */
.mw { position: absolute; font-family: var(--font-sans); }
.mw-figure { position: absolute; left: 50%; top: 104px; width: 170px; height: 170px; margin-left: -85px; border-radius: 50%; transition: transform 600ms var(--ease-panel); transform-origin: 50% 0; }
.mw-figure::after { content: ""; position: absolute; inset: -40px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 179, 122, 0.28), transparent); }
.mw-hello { position: absolute; left: 0; right: 0; top: 296px; text-align: center; transition: opacity 300ms ease-out, transform 500ms var(--ease-panel); }
.mw-hi { margin: 0; font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.mw-sub { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.mw-thread { position: absolute; left: 114px; right: 114px; top: 96px; bottom: 96px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 40px); mask-image: linear-gradient(180deg, transparent 0, #000 40px); transition: bottom 420ms var(--ease-panel); }
.mw-log { display: flex; flex-direction: column; gap: 10px; }
.mw .mm-bubble { max-width: 70%; font-size: 13.5px; }
.mw-task { align-self: flex-start; display: flex; align-items: center; gap: 10px; width: 300px; padding: 10px 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.95); box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(51, 102, 255, 0.2); animation: hw-slide-up 260ms var(--ease-panel); }
.mw-task-ico { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--brand-600); background: var(--brand-50); }
.mw-task-ico .i { width: 15px; height: 15px; }
.mw-task b { display: block; font-size: 13px; color: var(--ink); }
.mw-task span { font-size: 11.5px; color: #047857; }
.mw-task em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink-muted); }
.mw-confirm { position: absolute; left: 114px; bottom: 96px; width: 330px; margin: 0; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 260ms ease-out, transform 420ms var(--ease-panel); }
.mw-confirm .badge-done { display: none; }
.mw-asking .mw-confirm { opacity: 1; transform: none; }
.mw-asking .mw-thread { bottom: 236px; }
.mw-confirmed .mw-confirm .md-card-actions { display: none; }
.mw-confirmed .mw-confirm .badge-done { display: inline-flex; }
.mw-chips { position: absolute; left: 0; right: 0; bottom: 92px; display: flex; justify-content: center; gap: 8px; transition: opacity 300ms ease-out; }
.mw-chips span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 9999px; font-size: 12.5px; color: var(--ink); background: rgba(255, 255, 255, 0.92); box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(148, 163, 184, 0.25); white-space: nowrap; }
.mw-chips .i { width: 14px; height: 14px; color: var(--ink-muted); }
.mw-input { position: absolute; left: 114px; right: 114px; bottom: 28px; display: flex; align-items: center; gap: 8px; }
.mw-talking .mw-figure { transform: translateY(-82px) scale(0.42); }
.mw-talking .mw-hello, .mw-talking .mw-chips { opacity: 0; pointer-events: none; }
.mw-talking .mw-hello { transform: translateY(-20px); }
.mw-status { position: absolute; left: 915px; top: 17px; width: 92px; height: 27px; display: flex; align-items: center; gap: 6px; padding-left: 12px; border-radius: 9999px; font-size: 12.5px; font-weight: 600; color: #6d28d9; background: #fff; box-shadow: var(--shadow-glass-sm); opacity: 0; transition: opacity 260ms ease-out; z-index: 4; }
.mw-status i { width: 8px; height: 8px; border-radius: 50%; background: #8b5cf6; }
.mw-confirmed .mw-status { opacity: 1; }

/* the still phone beside it */
.mm-mini { position: absolute; left: 0; top: 0; width: 402px; height: 874px; transform: scale(0.7065); transform-origin: 0 0; }
.mm-static .mm-body { bottom: 29px; }
.mm-static .mm-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* talk to Mochi by clicking Mochi: it listens (rings + Listening…), then answers out loud */
.mw-figure, .mm-figure { cursor: pointer; }
.mw-voice, .mm-voice { position: absolute; left: 50%; pointer-events: none; }
.mw-voice { top: 189px; }
.mm-voice { top: 132px; }
.mw-voice i, .mm-voice i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(51, 102, 255, 0.55); background: radial-gradient(closest-side, rgba(51, 102, 255, 0.08), transparent); opacity: 0; transform: scale(0.7); }
.mw-listening .mw-voice i, .mm.listening .mm-voice i { animation: voice-ring 1.5s ease-out infinite; }
.mw-voice i:nth-child(2), .mm-voice i:nth-child(2) { animation-delay: 0.5s !important; }
.mw-voice i:nth-child(3), .mm-voice i:nth-child(3) { animation-delay: 1s !important; }
@keyframes voice-ring { 0% { opacity: 0.9; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.5); } }
.mw-listen, .mm-listen { position: absolute; left: 0; right: 0; margin: 0; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--brand-600); opacity: 0; transform: translateY(8px); transition: opacity 240ms ease-out, transform 360ms var(--ease-panel); pointer-events: none; }
.mw-listen { top: 306px; }
.mm-listen { top: 252px; }
.mw-listen .wave, .mm-listen .wave { display: inline-flex; height: 20px; }
.mw-listening .mw-listen, .mm.listening .mm-listen { opacity: 1; transform: none; }
.mw-listening .mw-hello, .mw-listening .mw-chips, .mm.listening .mm-hello { opacity: 0; }
.mw-listening .mw-figure { transform: scale(1.08); }
.mm.listening .mm-figure { transform: scale(1.06); }
.mm.tapped .mm-figure::after { content: ""; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; background: rgba(51, 102, 255, 0.3); animation: ripple 520ms ease-out forwards; }
/* while Mochi answers out loud, a soft pulse under it */
.mw-speaking .mw-figure::after, .mm.speaking .mm-figure::before { animation: mochi-speak 0.9s ease-in-out infinite; }
.mm-figure::before { content: ""; position: absolute; inset: -20px; z-index: -1; border-radius: 50%; }
@keyframes mochi-speak { 0%, 100% { box-shadow: 0 0 0 0 rgba(51, 102, 255, 0); } 50% { box-shadow: 0 0 0 10px rgba(51, 102, 255, 0.14); } }
.mn-layer:not(.on) { pointer-events: none; }
/* the greeting leaves before "Listening…" arrives, so the two never overlap */
.mw-listening .mw-hello, .mm.listening .mm-hello { transition: opacity 120ms ease-out; }
.mw-listening .mw-listen, .mm.listening .mm-listen { transition-delay: 160ms; }


/* ==========================================================================
   Migration — Mochi moves you in (migrate.js). Colours of the wash, tinted
   not filled (DESIGN-SYSTEM.md); the gradient only on the step numbers.
   ========================================================================== */
.hue-sky { --hue: 94, 200, 255; --hue-text: #075985; }
.hue-violet { --hue: 167, 139, 250; --hue-text: #5b21b6; }
.hue-mint { --hue: 78, 231, 176; --hue-text: #065f46; }
.hue-peach { --hue: 255, 179, 122; --hue-text: #9a3412; }
.hue-pink { --hue: 255, 122, 198; --hue-text: #9d174d; }

.migrate { position: relative; overflow: hidden; isolation: isolate; }
.migrate::before, .migrate::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; }
.migrate::before { left: -200px; top: -220px; background: radial-gradient(closest-side, rgba(94, 200, 255, 0.3), transparent); }
.migrate::after { right: -200px; bottom: -260px; background: radial-gradient(closest-side, rgba(78, 231, 176, 0.28), transparent); }

.mg-steps { list-style: none; margin: 22px auto 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mg-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--radius-full); font-size: 13.5px; font-weight: 600; color: var(--ink); background: rgba(255, 255, 255, 0.75); box-shadow: var(--shadow-glass-sm); }
.mg-steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; color: #fff; background-image: linear-gradient(135deg, var(--primary-mid), var(--violet-500) 60%, var(--bloom-pink)); }

/* the stage */
.mv-stage { margin-top: 8px; padding: 18px; border-radius: var(--radius-4xl); background: rgba(255, 255, 255, 0.45); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), var(--shadow-glass-sm); }
.mv-sources { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.mv-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: var(--radius-full); font: 600 13.5px/1 var(--font-sans); color: var(--ink-muted); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); transition: all 200ms ease-out; }
.mv-tab i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink-muted); background: rgba(148, 163, 184, 0.16); }
.mv-tab:hover { color: var(--ink); background: #fff; }
.mv-tab.on { color: #fff; background-image: linear-gradient(90deg, var(--brand-500), var(--violet-500)); box-shadow: var(--shadow-vivid-sm); }
.mv-tab.on i { color: var(--brand-600); background: #fff; }

.mv-board { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 0.7fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.mv-col { padding: 14px; border-radius: var(--radius-3xl); background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(255, 255, 255, 0.85); min-width: 0; }
.mv-col-label { margin: 0 4px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.mv-col-label b { color: var(--ink); letter-spacing: 0; text-transform: none; font-size: 14px; margin-left: 4px; }
.mv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mv-row { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px 7px 7px; border-radius: var(--radius-2xl); background: rgba(255, 255, 255, 0.8); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.16); transition: opacity 300ms, transform 300ms var(--ease-panel), background-color 300ms; }
.mv-ico { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--hue-text); background: rgba(var(--hue), 0.2); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.4); }
.mv-ico .i { width: 15px; height: 15px; }
.mv-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.mv-txt b { font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-txt em { font-style: normal; font-size: 11.5px; color: var(--ink-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-tick { margin-left: auto; width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #10b981; transform: scale(0); transition: transform 300ms cubic-bezier(.3, 1.6, .5, 1); }
.mv-tick .i { width: 12px; height: 12px; stroke-width: 3; }
.mv-row.going { transform: translateX(6px); background: #fff; box-shadow: inset 0 0 0 1.5px rgba(var(--hue), 0.7), 0 6px 16px -8px rgba(var(--hue), 0.9); }
.mv-row.moved { opacity: 0.55; }
.mv-row.moved .mv-tick { transform: scale(1); }
.mv-dest .mv-bar { margin-left: auto; width: 54px; height: 6px; flex: none; border-radius: 9999px; background: rgba(var(--hue), 0.18); overflow: hidden; }
.mv-dest .mv-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: rgb(var(--hue)); transition: width 500ms var(--ease-panel); }
.mv-dest .mv-n { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 700; }
.mv-dest.land { animation: mv-land 520ms cubic-bezier(.3, 1.6, .5, 1); }
.mv-dest.full { background: rgba(var(--hue), 0.12); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.45); }
@keyframes mv-land { 0% { transform: scale(1); } 35% { transform: scale(1.05); } 100% { transform: scale(1); } }

/* the lane: Mochi hops in the middle under its bubble */
.mv-lane { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mv-path { position: absolute; left: -8%; right: -8%; top: 38%; width: 116%; height: 110px; overflow: visible; }
.mv-path path { fill: none; stroke: rgba(51, 102, 255, 0.35); stroke-width: 2; stroke-dasharray: 5 7; vector-effect: non-scaling-stroke; animation: mv-dash 1.2s linear infinite; }
@keyframes mv-dash { to { stroke-dashoffset: -24; } }
.mv-bubble { position: relative; z-index: 2; max-width: 210px; padding: 9px 14px; border-radius: 18px; border-bottom-left-radius: 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); text-align: center; background: #fff; box-shadow: var(--shadow-glass-lg); }
.mv-bubble.pop { animation: hw-slide-up 260ms var(--ease-panel); }
.mv-mochi { position: relative; z-index: 2; margin-top: 10px; width: 132px; height: 132px; }
.mv-mochi-fig { width: 100%; height: 100%; }
.mv-shadow { position: absolute; left: 50%; bottom: 4px; width: 70px; height: 12px; margin-left: -35px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 41, 99, 0.25), transparent); }
.mv-mochi.busy .mv-mochi-fig { animation: mv-hop 620ms ease-in-out infinite; }
.mv-mochi.busy .mv-shadow { animation: mv-squish 620ms ease-in-out infinite; }
.mv-mochi.cheer .mv-mochi-fig { animation: mv-cheer 1s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes mv-hop { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes mv-squish { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(0.7); opacity: 0.6; } }
@keyframes mv-cheer { 0% { transform: scale(1); } 30% { transform: translateY(-22px) scale(1.08) rotate(-6deg); } 60% { transform: translateY(0) scale(0.96) rotate(4deg); } 100% { transform: none; } }

/* the flying cards */
.mv-fly { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.mv-card { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 7px; border-radius: 12px; font-size: 12px; font-weight: 700; color: var(--hue-text); background: #fff; white-space: nowrap; box-shadow: 0 10px 22px -10px rgba(var(--hue), 1), inset 0 0 0 1.5px rgba(var(--hue), 0.6); will-change: transform; }
.mv-card .i { width: 14px; height: 14px; }

.mv-done { min-height: 22px; margin-top: 14px; display: flex; justify-content: center; }
.mv-done:empty { visibility: hidden; }
.mv-done { align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #065f46; }
.mv-done .i { width: 18px; height: 18px; color: #10b981; }
.all-done .mv-done { animation: hw-slide-up 300ms var(--ease-panel); }

@media (max-width: 1024px) {
  .mv-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .mv-lane { grid-column: 1 / -1; grid-row: 1; flex-direction: row; gap: 10px; }
  .mv-mochi { margin-top: 0; width: 86px; height: 86px; }
  .mv-path { display: none; }
}
@media (max-width: 640px) {
  .mv-stage { padding: 10px; border-radius: var(--radius-3xl); }
  .mv-sources { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 12px; padding: 2px 10px; }
  .mv-sources::-webkit-scrollbar { display: none; }
  .mv-tab { flex: none; height: 34px; font-size: 12.5px; }
  .mv-tab i { width: 22px; height: 22px; font-size: 11px; }
  .mv-board { gap: 8px; }
  .mv-bubble { font-size: 12px; padding: 7px 11px; }
  .mv-col { padding: 8px; border-radius: 20px; }
  .mv-col-label { margin: 2px 2px 8px; font-size: 10px; }
  .mv-col-label b { display: block; margin: 2px 0 0; font-size: 13px; }
  .mv-list { gap: 5px; }
  .mv-row { padding: 5px 6px 5px 5px; gap: 7px; border-radius: 12px; }
  .mv-ico { width: 24px; height: 24px; border-radius: 8px; }
  .mv-ico .i { width: 13px; height: 13px; }
  .mv-txt b { font-size: 11.5px; white-space: normal; line-height: 1.2; }
  .mv-from .mv-txt em, .mv-dest .mv-bar { display: none; }
  .mv-dest .mv-txt em { font-size: 10.5px; }
  .mv-tick { position: absolute; right: -4px; top: -4px; width: 16px; height: 16px; box-shadow: 0 0 0 2px #fff; }
  .mv-tick .i { width: 10px; height: 10px; }
  .mv-row.going { transform: scale(1.03); }
  .mv-txt b { overflow: visible; text-overflow: clip; }
  .mv-card { font-size: 11px; padding: 5px 9px 5px 6px; }
  .mv-done { font-size: 12.5px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mv-path path, .mv-mochi .mv-mochi-fig, .mv-mochi .mv-shadow { animation: none !important; }
}

/* ==========================================================================
   Security: the core question as a comparison, then the controls.
   Guide: glass surfaces, ink text, tint-don't-fill, one saturated element
   (the We-Co column badge), blue-tinted shadows.
   ========================================================================== */
.security { position: relative; overflow: hidden; isolation: isolate; }
.security::before { content: ""; position: absolute; z-index: -1; right: -220px; top: -240px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(closest-side, rgba(51, 102, 255, 0.14), transparent); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; margin-bottom: 32px; }
.sec-head .h2 { margin: 0; }
.sec-head .lede { margin: 0; max-width: 520px; }

.sec-compare { border-radius: var(--radius-4xl); padding: 8px; overflow: hidden; }
.sc-row { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(0, 1.2fr); align-items: stretch; }
.sc-row + .sc-row { border-top: 1px solid rgba(148, 163, 184, 0.18); }
.sc-row > span { display: flex; align-items: center; gap: 10px; padding: 18px 20px; font-size: 14px; line-height: 21px; }
.sc-headrow > span { padding-top: 14px; padding-bottom: 14px; }
.sc-q { font: 700 11px/16px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.sc-headrow .sc-them { font-size: 13px; font-weight: 700; color: var(--ink-subtle); }
.sc-badge { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 10px; border-radius: var(--radius-full); font-size: 14px; font-weight: 700; color: #fff;
  background-image: linear-gradient(90deg, var(--brand-500), var(--violet-500)); box-shadow: var(--shadow-vivid-sm); }
.sc-badge .i { width: 17px; height: 17px; }
.sc-what { align-items: flex-start !important; }
.sc-ico { width: 40px; height: 40px; flex: none; border-radius: var(--radius-2xl); display: grid; place-items: center; color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.18); }
.sc-ico .i { width: 19px; height: 19px; }
.sc-ico .i-mochi { width: 26px; height: 26px; transform: none; }
.sc-what b { display: block; font-size: 15px; line-height: 22px; color: var(--ink); }
.sc-what em { display: block; font-style: normal; font-size: 12.5px; line-height: 18px; color: var(--ink-subtle); }
.sc-them { color: var(--ink-subtle); }
.sc-us { position: relative; color: var(--ink-body); background: rgba(51, 102, 255, 0.06); }
.sc-us b { color: var(--ink); }
/* the We-Co column reads as one tinted band */
.sc-row .sc-us { box-shadow: inset 1px 0 0 rgba(51, 102, 255, 0.16), inset -1px 0 0 rgba(51, 102, 255, 0.16); }
.sc-headrow .sc-us { border-radius: 22px 22px 0 0; box-shadow: inset 1px 0 0 rgba(51, 102, 255, 0.16), inset -1px 0 0 rgba(51, 102, 255, 0.16), inset 0 1px 0 rgba(51, 102, 255, 0.16); }
.sc-row:last-child .sc-us { border-radius: 0 0 22px 22px; box-shadow: inset 1px 0 0 rgba(51, 102, 255, 0.16), inset -1px 0 0 rgba(51, 102, 255, 0.16), inset 0 -1px 0 rgba(51, 102, 255, 0.16); }
.sc-row:not(.sc-headrow) + .sc-row .sc-us { border-top: 0; }
.sc-yes, .sc-no { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; align-self: flex-start; margin-top: 0; }
.sc-yes { color: #065f46; background: rgba(52, 211, 153, 0.22); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.3); }
.sc-no { color: var(--ink-faint); background: rgba(148, 163, 184, 0.14); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25); }
.sc-yes .i, .sc-no .i { width: 12px; height: 12px; stroke-width: 3; }
.sc-them, .sc-us { align-items: flex-start !important; }
.sc-headrow > span { align-items: center !important; }

.sec-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sec-card { display: flex; flex-direction: column; padding: 22px; border-radius: var(--radius-3xl); transition: transform 300ms var(--ease-panel), box-shadow 300ms ease-out; }
.sec-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-glass-lg); }
.sec-ico { width: 40px; height: 40px; border-radius: var(--radius-2xl); display: grid; place-items: center; color: var(--brand-600); background: var(--brand-50); box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.18); }
.sec-ico .i { width: 19px; height: 19px; }
.sec-card h3 { margin: 16px 0 0; font: 700 16px/24px var(--font-sans); color: var(--ink); }
.sec-card p { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--ink-body); }
.sec-tags { list-style: none; margin: auto 0 0; padding: 16px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sec-tags li { padding: 3px 10px; border-radius: var(--radius-full); font-size: 12px; line-height: 18px; font-weight: 600; color: var(--ink-muted); background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3); }

@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; gap: 12px; }
  .sc-headrow { display: none; }
  .sc-row { grid-template-columns: 1fr; padding: 6px 0; }
  .sc-row > span { padding: 10px 14px; }
  .sc-row .sc-us, .sc-row:last-child .sc-us { border-radius: 16px; margin: 0 8px 6px; box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.16); }
  .sc-them, .sc-us { flex-wrap: wrap; }
  .sc-them::before, .sc-us::before { flex-basis: 100%; font: 700 10.5px/14px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; }
  .sc-them::before { content: "Typical cloud suite"; color: var(--ink-faint); }
  .sc-us::before { content: "We-Co Suite"; color: var(--brand-600); }
  .sc-us > span, .sc-them > span { flex: 1; min-width: 0; }
}

/* ==========================================================================
   Deployment: three ways to run it, each in its own colour of the wash
   (same recipe as the migration section: tint, don't fill; a glow per card)
   ========================================================================== */
.deploy { position: relative; overflow: hidden; isolation: isolate; }
.deploy::before, .deploy::after { content: ""; position: absolute; z-index: -1; width: 560px; height: 560px; border-radius: 50%; pointer-events: none; }
.deploy::before { left: -200px; top: -230px; background: radial-gradient(closest-side, rgba(167, 139, 250, 0.26), transparent); }
.deploy::after { right: -200px; bottom: -260px; background: radial-gradient(closest-side, rgba(255, 179, 122, 0.26), transparent); }
.dp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 1440px) { .dp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } .dp-card { padding: 24px 20px 22px; } }
.dp-card { --hue-2: var(--hue); position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 26px 24px 24px; border-radius: var(--radius-3xl); transition: transform 320ms cubic-bezier(.3, 1.4, .5, 1), box-shadow 300ms ease-out; }
.dp-card.hue-sky { --hue-2: 89, 142, 255; }
.dp-card.hue-violet { --hue-2: 255, 122, 198; }
.dp-card.hue-mint { --hue-2: 255, 179, 122; }
.dp-card.hue-peach { --hue-2: 255, 122, 198; }
.dp-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glass-lg); }
.dp-glow { position: absolute; z-index: -1; right: -100px; top: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--hue), 0.55), rgba(var(--hue-2), 0.18) 60%, transparent); transition: transform 700ms var(--ease-panel); animation: dp-breathe 7s ease-in-out infinite; }
.dp-card:nth-child(2) .dp-glow { animation-delay: -2.3s; }
.dp-card:nth-child(3) .dp-glow { animation-delay: -4.6s; }
.dp-card:hover .dp-glow { transform: scale(1.2); }
@keyframes dp-breathe { 0%, 100% { translate: 0 0; } 50% { translate: -18px 14px; } }
.dp-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dp-icon { width: 52px; height: 52px; border-radius: var(--radius-2xl); display: grid; place-items: center; color: var(--hue-text);
  background: linear-gradient(135deg, rgba(var(--hue), 0.34), rgba(var(--hue-2), 0.16));
  box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 6px 16px -8px rgba(var(--hue), 0.85); }
.dp-icon .i { width: 24px; height: 24px; }
.dp-card:hover .dp-icon { animation: mv-cheer 700ms cubic-bezier(.3, 1.6, .5, 1); }
.dp-badge { padding: 4px 11px; border-radius: var(--radius-full); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--hue-text); background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.5); }
.dp-card h3 { margin: 20px 0 0; font: 700 20px/26px var(--font-sans); letter-spacing: -0.01em; color: var(--ink); }
.dp-copy { margin: 8px 0 16px; font-size: 14.5px; line-height: 23px; color: var(--ink-body); }
.dp-best { margin: auto 0 0; position: relative; top: 0; padding: 10px 12px; border-radius: var(--radius-2xl); font-size: 13px; line-height: 19px; color: var(--ink-body); background: rgba(var(--hue), 0.1); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.28); }
.dp-best b { color: var(--hue-text); margin-right: 4px; }
.dp-chips { list-style: none; margin: 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dp-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; line-height: 16px; font-weight: 700; color: var(--hue-text); background: rgba(var(--hue), 0.16); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.38); }
.dp-chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--hue)); }

.dp-always { list-style: none; margin: 18px 0 0; padding: 12px; border-radius: var(--radius-3xl); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.6); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), var(--shadow-glass-sm); }
.dp-always::before { content: "Every option includes"; font: 700 11px/16px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }
.dp-always li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: var(--radius-full); font-size: 13.5px; font-weight: 600; color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.4); }
.dp-always li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--hue-text); background: rgba(var(--hue), 0.22); }
.dp-always li .i { width: 14px; height: 14px; }

@media (max-width: 760px) { .dp-grid { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 640px) { .dp-always { justify-content: flex-start; } .dp-always::before { flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .dp-glow { animation: none; } .dp-card, .dp-glow { transition: none; } }

/* ==========================================================================
   Plans: three cards, a storage switch per card, Mochi add-on, Enterprise.
   One saturated element: the featured card's button (+ its ring).
   ========================================================================== */
.plans { position: relative; overflow: hidden; isolation: isolate; }
.plans::before, .plans::after { content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; border-radius: 50%; pointer-events: none; }
.plans::before { left: -240px; top: -260px; background: radial-gradient(closest-side, rgba(94, 200, 255, 0.24), transparent); }
.plans::after { right: -240px; bottom: -280px; background: radial-gradient(closest-side, rgba(255, 122, 198, 0.2), transparent); }
.pl-sample { margin: 14px auto 0; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-full); font-size: 12.5px; font-weight: 600; color: var(--status-meeting-text, #92400e); background: rgba(245, 158, 11, 0.12); box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3); }
.pl-sample .i { width: 14px; height: 14px; }

.pl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pl-grid.pl-live { grid-template-columns: repeat(var(--pl-n, 3), minmax(0, 1fr)); }
.pl-flat { margin: 6px 0 0; font-size: 13px; color: var(--ink-subtle); }
/* live packages: four across, so the amount scales with the page and never
   squeezes into "per user per month" (it wraps underneath instead). Viewport
   units, not container units: container-type would switch subgrid off below. */
.pl-live .pl-price { flex-wrap: wrap; }
.pl-live .pl-amt { flex: none; font-size: clamp(36px, 2.9vw, 56px); line-height: 1.08; }
.pl-live .pl-per { flex: none; }
/* every live card has the same eight rows (plans.js); subgrid lines them up across cards */
.pl-live .pl-card { display: grid; grid-template-rows: subgrid; grid-row: span 8; row-gap: 0; align-content: start; }
.pl-live .pl-cta { align-self: end; }
.pl-live .pl-notes > .pl-billed + .pl-flat { margin-top: 4px; }
.pl-live .pl-body .pl-apps:last-child, .pl-live .pl-body .pl-extras:last-child { margin-bottom: 24px; }
.pl-card { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: var(--radius-4xl);
  background: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow-glass), inset 0 0 0 1px rgba(255, 255, 255, 0.9); transition: transform 320ms var(--ease-panel), box-shadow 300ms ease-out; }
.pl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glass-lg); }
.pl-band { position: absolute; left: 0; right: 0; top: 0; height: 120px; background: linear-gradient(180deg, rgba(var(--hue), 0.32), rgba(var(--hue), 0) 100%); pointer-events: none; }
.pl-featured { box-shadow: var(--shadow-glass-lg), 0 0 0 2px rgba(51, 102, 255, 0.55); }
.pl-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-top h3 { margin: 0; font: 700 22px/28px var(--font-sans); letter-spacing: -0.015em; color: var(--ink); }
.pl-badge { padding: 4px 11px; border-radius: var(--radius-full); font-size: 12px; font-weight: 700; color: var(--brand-600); background: #fff; box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.35); }
.pl-tag { position: relative; margin: 6px 0 0; font-size: 14.5px; line-height: 22px; color: var(--ink-muted); min-height: 44px; }
.pl-price { margin: 18px 0 0; display: flex; align-items: flex-start; gap: 2px; color: var(--ink); }
.pl-cur { font-size: 15px; line-height: 20px; font-weight: 700; letter-spacing: 0.04em; margin: 10px 6px 0 0; color: var(--ink-muted); }
.pl-amt { font-size: 56px; line-height: 60px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; min-width: 1.2ch; }
.pl-amt.tick { animation: hw-slide-up 260ms var(--ease-panel); }
.pl-per { margin: 12px 0 0 10px; font-size: 12.5px; line-height: 17px; color: var(--ink-subtle); }

.pl-size { --i: 0; position: relative; margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--radius-full); background: rgba(148, 163, 184, 0.14); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2); }
.pl-size::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-full); background: #fff; box-shadow: var(--shadow-glass-sm); transform: translateX(calc(var(--i) * 100%)); transition: transform 300ms var(--ease-panel); }
.pl-opt { position: relative; z-index: 1; height: 34px; border-radius: var(--radius-full); font: 600 13.5px/1 var(--font-sans); color: var(--ink-muted); }
.pl-opt.on { color: var(--ink); }
.pl-opt:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pl-size-fixed { margin: 16px 0 0; height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-full); font-size: 13.5px; font-weight: 600; color: var(--ink-muted); background: rgba(148, 163, 184, 0.1); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2); }
.pl-size-fixed .i { width: 15px; height: 15px; }

.pl-lead { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid rgba(148, 163, 184, 0.2); font: 700 11px/16px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); }
.pl-apps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pl-apps li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--ink); }
.pl-apps li span { width: 32px; height: 32px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--hue-text); background: rgba(var(--hue), 0.2); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.42); transition: transform 300ms cubic-bezier(.3, 1.6, .5, 1); }
.pl-apps .i { width: 16px; height: 16px; }
.pl-card:hover .pl-apps li span { transform: translateY(-2px) rotate(-4deg); }
.pl-card:hover .pl-apps li:nth-child(even) span { transform: translateY(-2px) rotate(4deg); }
.pl-extras { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-extras li { display: flex; gap: 8px; font-size: 13.5px; line-height: 20px; color: var(--ink-body); }
.pl-extras .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: #059669; stroke-width: 2.6; }
.pl-cta { margin-top: auto; justify-content: center; }
.pl-apps, .pl-extras { margin-bottom: 24px; }
.pl-apps + .pl-extras { margin-top: -10px; }

.pl-extra { margin-top: 18px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.pl-kicker { margin: 0; font: 700 11px/16px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-600); }

/* Enterprise: the full-width feature card */
.pl-ent { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px 36px; align-items: center; padding: 34px 36px;
  border-radius: var(--radius-4xl); border: 1.5px solid transparent;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)) padding-box,
              linear-gradient(120deg, var(--bloom-sky), var(--brand-500) 35%, var(--violet-500) 65%, var(--bloom-pink)) border-box;
  box-shadow: var(--shadow-glass-lg), 0 24px 60px -30px rgba(51, 102, 255, 0.45); }
.pl-ent-glow { position: absolute; z-index: -1; inset: -20%; pointer-events: none;
  background: radial-gradient(360px 260px at 12% 18%, rgba(94, 200, 255, 0.32), transparent 70%),
              radial-gradient(380px 280px at 88% 82%, rgba(167, 139, 250, 0.34), transparent 70%),
              radial-gradient(300px 220px at 60% 0%, rgba(255, 122, 198, 0.18), transparent 70%);
  animation: dp-breathe 9s ease-in-out infinite; }
.pl-ent-kicker { margin: 0; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px 5px 6px; border-radius: var(--radius-full); font: 700 12px/16px var(--font-sans); letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-700); background: #fff; box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.3), var(--shadow-glass-sm); }
.pl-ent-kicker span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; background-image: linear-gradient(135deg, var(--brand-400), var(--violet-500)); }
.pl-ent-kicker .i { width: 12px; height: 12px; }
.pl-ent-copy h3 { margin: 14px 0 0; font: 700 clamp(24px, 2.4vw, 30px)/1.2 var(--font-sans); letter-spacing: -0.02em; color: var(--ink); }
.pl-ent-copy > p:not(.pl-ent-kicker) { margin: 10px 0 0; font-size: 15px; line-height: 24px; color: var(--ink-body); max-width: 460px; }
.pl-ent-actions { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pl-ent-btn { height: 46px; padding: 0 24px; color: #fff; background: var(--ink); box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15); }
.pl-ent-btn:hover { background: #1e293b; color: #fff; }
.pl-ent-link { font-size: 14px; font-weight: 600; color: var(--brand-600); text-decoration: none; }
.pl-ent-link:hover { text-decoration: underline; }
.pl-ent-opts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pl-ent-opts li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius-3xl); background: rgba(255, 255, 255, 0.88); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.45), var(--shadow-glass-sm); transition: transform 300ms cubic-bezier(.3, 1.4, .5, 1); }
.pl-ent-opts li:hover { transform: translateX(4px); }
.pl-ent-opts li > span { width: 42px; height: 42px; flex: none; border-radius: var(--radius-2xl); display: grid; place-items: center; color: var(--hue-text); background: linear-gradient(135deg, rgba(var(--hue), 0.34), rgba(var(--hue), 0.14)); box-shadow: inset 0 0 0 1px rgba(var(--hue), 0.45); }
.pl-ent-opts .i { width: 20px; height: 20px; }
.pl-ent-opts b { display: block; font-size: 15px; line-height: 21px; color: var(--ink); }
.pl-ent-opts em { display: block; font-style: normal; font-size: 13px; line-height: 19px; color: var(--ink-subtle); }

/* Mochi add-on: a slim strip under it */
.pl-addon { display: flex; align-items: center; gap: 18px; padding: 14px 24px 14px 14px; border-radius: var(--radius-3xl); }
.pl-addon-fig { width: 80px; height: 80px; flex: none; }
.pl-addon h3 { margin: 2px 0 0; font: 700 18px/24px var(--font-sans); color: var(--ink); }
.pl-addon p:last-child { margin: 4px 0 0; font-size: 14px; line-height: 21px; color: var(--ink-body); }

@media (max-width: 900px) { .pl-ent { grid-template-columns: 1fr; padding: 26px 22px; } }
@media (prefers-reduced-motion: reduce) { .pl-ent-glow { animation: none; } }
@media (max-width: 1100px) { .pl-grid, .pl-grid.pl-live { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .pl-tag { min-height: 0; } }
@media (max-width: 1100px) { .pl-live .pl-amt { font-size: 56px; } }
@media (max-width: 640px) { .pl-card { padding: 24px 20px 20px; } .pl-amt, .pl-live .pl-amt { font-size: 48px; line-height: 52px; } .pl-addon { flex-direction: column; align-items: flex-start; } }

/* ==========================================================================
   Free trial: one bold call to action
   ========================================================================== */
.trial { scroll-margin-top: 90px; }
.tr-card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 36px;
  padding: 44px 48px; border-radius: var(--radius-5xl, 44px); border: 1.5px solid transparent;
  background: linear-gradient(rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.82)) padding-box,
              linear-gradient(120deg, var(--bloom-sky), var(--brand-500) 35%, var(--violet-500) 65%, var(--bloom-pink)) border-box;
  box-shadow: var(--shadow-glass-lg), 0 30px 70px -36px rgba(51, 102, 255, 0.55); }
.tr-glow { position: absolute; z-index: -1; inset: -25%; pointer-events: none;
  background: radial-gradient(420px 300px at 8% 30%, rgba(94, 200, 255, 0.4), transparent 70%),
              radial-gradient(420px 300px at 92% 70%, rgba(255, 122, 198, 0.32), transparent 70%),
              radial-gradient(380px 260px at 55% 110%, rgba(78, 231, 176, 0.28), transparent 70%),
              radial-gradient(320px 220px at 50% -10%, rgba(167, 139, 250, 0.3), transparent 70%);
  animation: dp-breathe 10s ease-in-out infinite; }

.tr-days { position: relative; width: 168px; height: 168px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-glass-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.9); }
.tr-ring { position: absolute; z-index: -1; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--bloom-sky), var(--brand-500), var(--violet-500), var(--bloom-pink), var(--bloom-peach), var(--bloom-mint), var(--bloom-sky));
  animation: tr-spin 12s linear infinite; }
@keyframes tr-spin { to { transform: rotate(360deg); } }
.tr-days b { font-size: 76px; line-height: 76px; font-weight: 800; letter-spacing: -0.05em; font-variant-numeric: tabular-nums;
  background-image: linear-gradient(135deg, var(--primary-mid), var(--violet-500) 55%, var(--bloom-pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-days span:last-child { margin-top: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }

.tr-kicker { margin: 0; font: 700 12px/16px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand-600); }
.tr-title { margin: 8px 0 0; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); text-wrap: balance; }
.tr-sub { margin: 12px 0 0; max-width: 520px; font-size: 16px; line-height: 25px; color: var(--ink-body); }
.tr-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.tr-actions .btn .i { width: 18px; height: 18px; margin-left: 2px; transition: transform 200ms ease-out; }
.tr-actions .btn:hover .i { transform: translateX(3px); }
.tr-note { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: #065f46; }
.tr-note .i { width: 17px; height: 17px; color: #10b981; }

.tr-mochi { position: relative; width: 170px; height: 170px; }
.tr-mochi-fig { width: 100%; height: 100%; animation: mv-hop 1.6s ease-in-out infinite; }
.tr-mochi i { position: absolute; left: 50%; bottom: 2px; width: 80px; height: 14px; margin-left: -40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(30, 41, 99, 0.22), transparent); animation: mv-squish 1.6s ease-in-out infinite; }

@media (max-width: 1024px) { .tr-card { grid-template-columns: auto minmax(0, 1fr); } .tr-mochi { display: none; } }
@media (max-width: 680px) {
  .tr-card { grid-template-columns: 1fr; justify-items: start; gap: 22px; padding: 30px 22px; border-radius: var(--radius-4xl); }
  .tr-days { width: 128px; height: 128px; }
  .tr-days b { font-size: 56px; line-height: 56px; }
}
@media (prefers-reduced-motion: reduce) { .tr-glow, .tr-ring, .tr-mochi-fig, .tr-mochi i { animation: none; } }

/* billing switch: Monthly | Annual (save 20%), annual by default */
.pl-billing { position: relative; margin: 18px auto 0; display: inline-grid; grid-template-columns: auto auto; padding: 5px; border-radius: var(--radius-full); background: rgba(255, 255, 255, 0.7); box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(148, 163, 184, 0.22); }
.pl-bill { position: relative; z-index: 1; height: 40px; padding: 0 20px; border-radius: var(--radius-full); display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px/1 var(--font-sans); color: var(--ink-muted); transition: color 200ms ease-out, background-color 250ms ease-out, box-shadow 250ms ease-out; }
.pl-bill.on { color: var(--ink); background: #fff; box-shadow: var(--shadow-glass-sm), inset 0 0 0 1px rgba(51, 102, 255, 0.25); }
.pl-save { padding: 3px 8px; border-radius: var(--radius-full); font-size: 11.5px; font-weight: 800; color: #065f46; background: rgba(52, 211, 153, 0.22); box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.35); }
.pl-was { margin: 18px 0 -12px; height: 18px; font-size: 12.5px; font-weight: 600; color: var(--ink-faint); opacity: 0; transition: opacity 250ms ease-out; }
.pl-was s { text-decoration-thickness: 1.5px; }
.pl-billed { margin: 2px 0 0; height: 18px; font-size: 12.5px; font-weight: 600; color: #047857; opacity: 0; transition: opacity 250ms ease-out; }
.pl-card.is-annual .pl-was, .pl-card.is-annual .pl-billed { opacity: 1; }

/* ==========================================================================
   Language menu (i18n.js)
   ========================================================================== */
.lang { position: relative; }
.lang-btn { height: 38px; padding: 0 10px 0 8px; display: inline-flex; align-items: center; gap: 7px; border-radius: var(--radius-full); font: 700 13px/1 var(--font-sans); color: var(--ink); background: rgba(255, 255, 255, 0.7); box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28); transition: background-color 200ms ease-out; }
.lang-btn:hover { background: #fff; }
.lang-flag { width: 22px; height: 15px; flex: none; border-radius: 3px; overflow: hidden; display: inline-block; box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12); }
.lang-flag svg { display: block; width: 100%; height: 100%; }
.lang-chev { width: 14px; height: 14px; fill: none; stroke: var(--ink-muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms ease-out; }
.lang.open .lang-chev { transform: rotate(180deg); }
.lang-menu { list-style: none; margin: 0; padding: 6px; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; z-index: 60; border-radius: var(--radius-2xl);
  background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: var(--blur-glass-strong); backdrop-filter: var(--blur-glass-strong); box-shadow: var(--shadow-glass-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  opacity: 0; transform: translateY(-6px) scale(0.98); pointer-events: none; transition: opacity 160ms ease-out, transform 220ms var(--ease-panel); }
.lang.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-opt { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; font: 600 14px/20px var(--font-sans); color: var(--ink); text-align: start; }
.lang-opt:hover { background: rgba(51, 102, 255, 0.07); }
.lang-opt[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-sans); }
.lang-tick { width: 16px; height: 16px; margin-inline-start: auto; fill: none; stroke: var(--brand-600); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.lang-opt[aria-selected="true"] { background: rgba(51, 102, 255, 0.08); }
.lang-opt[aria-selected="true"] .lang-tick { opacity: 1; }
.nav-actions { gap: 8px; }

/* ==========================================================================
   Arabic: right-to-left, an Arabic face, no tight tracking
   ========================================================================== */
html[lang="ar"] body { font-family: "IBM Plex Sans Arabic", var(--font-sans); }
html[lang="ar"] .hero-title, html[lang="ar"] .h2, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] .tr-title, html[lang="ar"] .pl-top h3, html[lang="ar"] .section-label, html[lang="ar"] .eyebrow { letter-spacing: 0; }
html[lang="ar"] .hero-title { line-height: 1.2; }
/* the product itself, the logo strip and the moving boards keep their own (English, left-to-right) layout */
html[dir="rtl"] .mk-fit, html[dir="rtl"] .mn-stage, html[dir="rtl"] .mv-board, html[dir="rtl"] .marquee, html[dir="rtl"] .mn-phone { direction: ltr; }
html[dir="rtl"] .mv-board .mv-col-label, html[dir="rtl"] .mv-board .mv-txt em { direction: rtl; }
/* arrows point the way you read */
html[dir="rtl"] .tr-actions .btn .i, html[dir="rtl"] .btn .i[data-dir], html[dir="rtl"] .pl-ent-link::after { transform: scaleX(-1); }
html[dir="rtl"] .tr-actions .btn:hover .i { transform: scaleX(-1) translateX(3px); }
/* sliding switches slide the other way */
html[dir="rtl"] .pl-size::before { left: auto; right: 4px; transform: translateX(calc(var(--i) * -100%)); }

/* Arabic product screens: what we draw on top reads right-to-left */
html[dir="rtl"] .mk-ov, html[dir="rtl"] .mw, html[dir="rtl"] .mm-body, html[dir="rtl"] .mk-phone:not(.mk-phone-real) .mk-screen { direction: rtl; text-align: right; }
html[dir="rtl"] .mk-ov .mk-row, html[dir="rtl"] .mw-input { direction: rtl; }
/* in the Arabic app the Mochi column sits left of the chats list */
html[lang="ar"] .mw-page > .mw { left: 10px !important; top: 47px !important; width: 807px !important; height: 643px !important; }
html[lang="ar"] .mw-status { left: 116px; top: 19px; }
html[lang="ar"] .mm-bubble, html[lang="ar"] .mw .mm-bubble { font-family: "IBM Plex Sans Arabic", var(--font-sans); }

/* Arabic: the app's sidebar is on the right, so the phone stands on that side */
html[dir="rtl"] .slide-media .mk-fit-phone { left: auto; right: -5%; }
@media (max-width: 768px) { html[dir="rtl"] .slide-media .mk-fit-phone { right: auto; left: 0; } }

/* ==========================================================================
   FREE-TRIAL FORM — a glass dialog over the wash (signup.js)
   ========================================================================== */
html.su-open { overflow: hidden; }
.su-dialog {
  position: fixed; inset: 0; margin: auto;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto; overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-4xl);
  color: var(--ink-body);
}
.su-dialog::backdrop {
  background: rgba(15, 23, 42, 0.28);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.su-dialog[open] { animation: su-in 360ms var(--ease-panel); }
.su-dialog[open]::backdrop { animation: su-fade 360ms ease-out; }
@keyframes su-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes su-fade { from { opacity: 0; } }

.su-close { position: absolute; top: 16px; inset-inline-end: 16px; }
.su-title {
  font-size: clamp(24px, 3vw, 32px); line-height: 1.15;
  font-weight: 700; letter-spacing: -0.025em; color: var(--ink);
  padding-inline-end: 40px;
}
.su-sub { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--ink-muted); }

.su-form { margin-top: 28px; }
.su-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.su-field { min-width: 0; border: 0; }
.su-full { grid-column: 1 / -1; }
.su-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 16px; background-position: right 14px center;
}
html[dir="rtl"] .su-select { background-position: left 14px center; }
.su-select:invalid { color: var(--ink-faint); }
.su-select option { color: var(--ink); }

.su-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.su-chip { position: relative; cursor: pointer; }
.su-chip input { position: absolute; opacity: 0; pointer-events: none; }
.su-chip span {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: var(--radius-full);
  font: 500 13px/18px var(--font-sans); color: var(--ink-body);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow-glass-sm);
  transition: all 150ms ease-out;
}
.su-chip:hover span { background: rgba(255, 255, 255, 0.9); color: var(--ink); }
.su-chip input:checked + span {
  color: var(--brand-700); background: var(--brand-50);
  border-color: rgba(51, 102, 255, 0.45);
  box-shadow: inset 0 0 0 1px rgba(51, 102, 255, 0.25);
}
.su-chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.su-err { display: none; margin-top: 6px; font: 500 12px/16px var(--font-sans); color: #dc2626; }
.su-field.bad .su-err { display: block; }
.su-field.bad .input { border-color: rgba(220, 38, 38, 0.55); box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
.su-fail {
  margin-top: 20px; padding: 10px 14px; border-radius: var(--radius-2xl);
  font-size: 14px; color: #991b1b;
  background: rgba(254, 226, 226, 0.7); border: 1px solid rgba(248, 113, 113, 0.35);
}

.su-submit { margin-top: 28px; width: 100%; position: relative; }
.su-submit.busy { color: transparent; pointer-events: none; }
.su-submit.busy::after {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45); border-top-color: #fff;
  animation: su-spin 700ms linear infinite;
}
@keyframes su-spin { to { transform: rotate(360deg); } }

.su-done { text-align: center; padding: 24px 0 8px; }
.su-done .su-title { padding-inline-end: 0; }
.su-done-icon { color: var(--status-available); margin-bottom: 16px; }
.su-done-icon .i { width: 48px; height: 48px; }
.su-done .btn { margin-top: 28px; }

@media (max-width: 640px) {
  .su-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .su-dialog[open], .su-dialog[open]::backdrop { animation: none; }
}
