/* ==========================================================================
   Assistant pages (/muse, /grok, /chatgpt-dots, /instinct)
   Shared, hand-written CSS for the coded device demos and section layouts.
   Palette = BRAND.md tokens only. Animation = transform/opacity only; the
   choreography lives in assets/assistants.js (GSAP). Everything renders
   statically without JS: the `.js` class on <html> is what hides pending
   demo beats, and `prefers-reduced-motion` shows the finished conversation.
   ========================================================================== */

:root {
  --as-ink: #0A0A0A;
  --as-charcoal: #1A1A1A;
  --as-body: #4A4A4A;
  --as-muted: #808080;
  --as-canvas: #FAFAFA;
  --as-surface: #FFFFFF;
  --as-border: #E5E7EB;
  --as-hairline: #F0F0F0;
  --as-dot: #D4D4D8;
  --as-blue: #3B82F6;
  --as-blue-hover: #2563EB;
  --as-blue-deep: #1E40AF;
  --as-blue-tint: #DBEAFE;
  --as-blue-wash: #EFF6FF;
  --as-pos: #16A34A;
  --as-pos-bg: #DCFCE7;
  --as-warn: #B45309;
  --as-warn-bg: #FEF3C7;
  --as-neg: #DC2626;
  --as-neg-bg: #FEE2E2;
  --as-ease: cubic-bezier(0, 0, 0.2, 1);
  --as-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --as-shadow-card: 0 4px 16px rgba(10, 10, 10, 0.06), 0 1px 3px rgba(10, 10, 10, 0.04);
  --as-shadow-float: 0 8px 24px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.04);
  --as-shadow-device: 0 2px 4px rgba(10, 10, 10, 0.08), 0 24px 48px -12px rgba(10, 10, 10, 0.08), 0 64px 120px -40px rgba(10, 10, 10, 0.08);
}

.as-mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace; font-variant-ligatures: none; }

/* ---------- Hero -------------------------------------------------------- */
.as-hero {
  position: relative;
  overflow: hidden;
  background-color: #FAFAFA;
  background-image:
    radial-gradient(circle, #D4D4D8 1px, transparent 1px);
  background-size: 24px 24px;
}
.as-hero::before {
  /* single-hue blue wash that fades into the dotted canvas */
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 72% 38%, rgba(219, 234, 254, 0.95) 0%, rgba(239, 246, 255, 0.75) 38%, rgba(250, 250, 250, 0) 70%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.9) 0%, rgba(250, 250, 250, 0.2) 55%, #FAFAFA 100%);
  pointer-events: none;
}
.as-hero > * { position: relative; z-index: 1; }
.as-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (min-width: 1024px) {
  .as-hero__grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 40px; }
}
.as-hero h1 {
  font-size: clamp(2.125rem, 3.15vw, 2.875rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #0A0A0A;
}
.as-hero h1 .as-h1-soft { color: #808080; }
.as-lede { font-size: clamp(1.0625rem, 0.4vw + 1rem, 1.25rem); line-height: 1.6; color: #4A4A4A; max-width: 34rem; }

.as-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #1A1A1A;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
}
.as-pill__logos { display: inline-flex; align-items: center; }
.as-pill__logos > * {
  width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center;
  background: #FFFFFF; box-shadow: 0 0 0 2px #FFFFFF, 0 1px 3px rgba(10, 10, 10, 0.12);
}
.as-pill__logos > * + * { margin-left: -6px; }
.as-pill__logos img { width: 16px; height: 16px; }
.as-pill__live { display: inline-flex; align-items: center; gap: 6px; color: #16A34A; font-weight: 600; font-size: 13px; }
.as-pill__live::before { content: ''; width: 6px; height: 6px; border-radius: 999px; background: #16A34A; box-shadow: 0 0 0 3px #DCFCE7; }

.as-urlbar {
  display: flex; align-items: center; gap: 8px;
  max-width: 30rem;
  padding: 6px 6px 6px 16px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(59, 130, 246, 0.08);
}
.as-urlbar code { flex: 1; min-width: 0; font-size: 15px; color: #1A1A1A; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.as-urlbar code::-webkit-scrollbar { display: none; }
.as-urlbar__label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #808080; }

.as-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.as-btn-ink {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 12px;
  color: #FFFFFF; font-weight: 600; font-size: 15px;
  background: linear-gradient(180deg, #1F1F21, #0A0A0A);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 12px rgba(10, 10, 10, 0.08);
  transition: transform 200ms var(--as-ease), background 200ms var(--as-ease);
}
.as-btn-ink:hover { background: #000000; transform: translateY(-1px); }
.as-btn-ink:active { transform: translateY(0) scale(0.98); }
.as-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; font-size: 15px; color: #1A1A1A;
}
.as-btn-ghost svg { transition: transform 200ms var(--as-ease); }
.as-btn-ghost:hover svg { transform: translateX(3px); }
.as-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  color: #1A1A1A; font-weight: 600; font-size: 15px;
  background: #FFFFFF; border: 1px solid #E5E7EB;
  transition: transform 200ms var(--as-ease), border-color 200ms var(--as-ease);
}
.as-btn-outline:hover { transform: translateY(-1px); border-color: #D4D4D8; }
@media (max-width: 639px) {
  .as-cta-row .as-btn-ink, .as-cta-row .as-btn-outline { width: 100%; }
}

/* Stage = device + floating data-source cards */
.as-stage { position: relative; display: flex; justify-content: center; padding: 8px 0 8px; }
.as-stage__glow {
  position: absolute; left: 50%; top: 46%; width: 520px; height: 520px; max-width: 120%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16) 0%, rgba(59, 130, 246, 0.06) 36%, rgba(59, 130, 246, 0) 68%);
  pointer-events: none;
}
.as-caption { margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 13px; color: #808080; }
.as-replay {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px;
  border-radius: 999px; border: 1px solid #E5E7EB; background: #FFFFFF;
  font-size: 13px; font-weight: 600; color: #1A1A1A; cursor: pointer;
  transition: border-color 200ms var(--as-ease), transform 200ms var(--as-ease);
}
.as-replay:hover { border-color: #3B82F6; transform: translateY(-1px); }
.as-replay svg { width: 14px; height: 14px; }

.as-source {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 24px rgba(10, 10, 10, 0.08);
  width: 184px;
  transition: translate 400ms var(--as-ease-out), scale 400ms var(--as-ease-out), box-shadow 400ms var(--as-ease-out);
}
.as-source__ico { width: 36px; height: 36px; border-radius: 10px; background: #FFFFFF; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(10, 10, 10, 0.08); flex-shrink: 0; }
.as-source__ico img { width: 20px; height: 20px; object-fit: contain; }
.as-source__txt { display: block; min-width: 0; flex: 1; }
.as-source__name { display: block; font-size: 13px; font-weight: 700; color: #1A1A1A; line-height: 1.2; white-space: nowrap; }
.as-source__state { display: block; position: relative; margin-top: 2px; font-size: 12px; color: #808080; line-height: 16px; height: 16px; overflow: hidden; white-space: nowrap; }
.as-source__state span { display: block; transition: transform 300ms var(--as-ease-out), opacity 300ms var(--as-ease-out); }
.as-source__state .s-live, .as-source__state .s-read { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(100%); }
.as-source__state .s-live { color: #2563EB; font-weight: 600; }
.as-source__state .s-read { color: #16A34A; font-weight: 600; }
.as-source.live .s-idle, .as-source.read .s-idle { opacity: 0; transform: translateY(-100%); }
.as-source.live .s-live { opacity: 1; transform: none; }
.as-source.read .s-read { opacity: 1; transform: none; }
.as-source.live { translate: 0 -3px; scale: 1.03; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 2px rgba(59, 130, 246, 0.35), 0 12px 28px rgba(59, 130, 246, 0.16); }
.as-source__pulse { position: absolute; right: 12px; top: 12px; width: 7px; height: 7px; border-radius: 999px; background: #D4D4D8; transition: background 300ms var(--as-ease); }
.as-source.live .as-source__pulse { background: #3B82F6; animation: as-pulse 1.1s ease-in-out infinite; }
.as-source.read .as-source__pulse { background: #16A34A; }
@keyframes as-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.5; } }
/* Cards sit beside the device and only kiss its frame, never the chat. */
.as-source--a { left: calc(50% - 152px - 168px); top: 13%; }
.as-source--b { left: calc(50% - 152px - 176px); top: 50%; }
.as-source--c { right: calc(50% - 152px - 168px); top: 27%; }
.as-source--d { right: calc(50% - 152px - 176px); top: 64%; }
@media (max-width: 1279px) {
  .as-source { width: 164px; }
  .as-source--a, .as-source--b { left: calc(50% - 152px - 150px); }
  .as-source--c, .as-source--d { right: calc(50% - 152px - 150px); }
}
@media (max-width: 1100px) and (min-width: 1024px) { .as-source--b, .as-source--d { display: none; } }
@media (max-width: 1023px) {
  .as-source { width: 156px; padding: 8px 10px 8px 8px; }
  .as-source__ico { width: 30px; height: 30px; }
  .as-source--a, .as-source--b { left: calc(50% - 152px - 132px); }
  .as-source--c, .as-source--d { right: calc(50% - 152px - 132px); }
}
@media (max-width: 767px) { .as-source { display: none; } }

/* ---------- iPhone frame ------------------------------------------------ */
.iphone {
  --w: min(304px, calc(100vw - 48px));
  position: relative; z-index: 2;
  width: var(--w);
  aspect-ratio: 304 / 630;
  padding: 11px;
  border-radius: 54px;
  background: linear-gradient(145deg, #4A4A4A 0%, #1A1A1A 18%, #0A0A0A 50%, #1A1A1A 82%, #4A4A4A 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.16), inset 0 0 0 4px #0A0A0A, var(--as-shadow-device);
}
.iphone::before, .iphone::after {
  content: ''; position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #1A1A1A, #4A4A4A);
}
.iphone::before { left: -2px; top: 120px; height: 52px; box-shadow: 0 -40px 0 -0px #1A1A1A, 0 64px 0 0 #1A1A1A; }
.iphone::after { right: -2px; top: 170px; height: 84px; }
.iphone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 44px;
  background: #FFFFFF; display: flex; flex-direction: column;
  isolation: isolate;
}
.iphone__island {
  position: absolute; top: 10px; left: 50%; width: 92px; height: 27px; transform: translateX(-50%);
  border-radius: 20px; background: #0A0A0A; z-index: 20;
}
.iphone__status {
  height: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 4px 26px 0 30px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #0A0A0A; z-index: 10;
}
.iphone__status svg { height: 11px; width: auto; display: block; }
.iphone__status-r { display: flex; align-items: center; gap: 5px; }
.iphone__home { position: absolute; bottom: 8px; left: 50%; width: 118px; height: 5px; border-radius: 3px; transform: translateX(-50%); background: #0A0A0A; z-index: 20; }
.iphone--dark .iphone__screen { background: #0A0A0A; }
.iphone--dark .iphone__status { color: #FFFFFF; }
.iphone--dark .iphone__home { background: #FFFFFF; }

/* ---------- Desktop window frame ---------------------------------------- */
.window {
  position: relative; z-index: 2;
  width: min(640px, 100%);
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.08), var(--as-shadow-device);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.window__bar {
  height: 40px; flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: #FAFAFA; border-bottom: 1px solid #F0F0F0;
}
.window__dots { display: flex; gap: 7px; }
.window__dots i { width: 11px; height: 11px; border-radius: 999px; background: #E5E7EB; display: block; }
.window__url {
  flex: 1; max-width: 300px; margin: 0 auto; height: 26px; border-radius: 8px; background: #F0F0F0;
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12.5px; color: #808080; font-weight: 500;
}
.window__url svg { width: 11px; height: 11px; }
.window__body { display: flex; height: 470px; min-height: 0; }
.window--dark { background: #0A0A0A; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), var(--as-shadow-device); }
.window--dark .window__bar { background: #1A1A1A; border-bottom-color: rgba(255, 255, 255, 0.06); }
.window--dark .window__dots i { background: rgba(255, 255, 255, 0.16); }
.window--dark .window__url { background: rgba(255, 255, 255, 0.06); color: #808080; }
@media (max-width: 639px) { .window__body { height: 500px; } }

/* ---------- Demo engine (shared by every skin) -------------------------- */
.demo { display: flex; flex-direction: column; flex: 1; min-height: 0; position: relative; }
.demo__viewport { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.demo__viewport::-webkit-scrollbar { display: none; }
html.js .demo.is-live .demo__viewport { overflow: hidden; }
.demo__thread { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px 16px; will-change: transform; }
/* Beats ship with .pending in the markup, so they are hidden from first paint
   when JS is on. assistants.js shows them finished if GSAP is missing, and the
   inline head script drops .js after 4 s if assistants.js never ran. */
html.js [data-beat].pending { display: none; }
.demo__fade {
  position: absolute; left: 0; right: 0; top: 0; height: 28px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, #FFFFFF, rgba(255, 255, 255, 0));
}

/* Messages */
.msg { max-width: 84%; font-size: 14px; line-height: 1.45; letter-spacing: -0.005em; }
.msg p { margin: 0; }
.msg p + p { margin-top: 6px; }
.msg--out { align-self: flex-end; }
.msg--in { align-self: flex-start; }
.msg__bubble { padding: 9px 13px; border-radius: 19px; }
.msg--out .msg__bubble { background: #1A1A1A; color: #FFFFFF; border-bottom-right-radius: 6px; }
.msg--in .msg__bubble { background: #F0F0F0; color: #0A0A0A; border-bottom-left-radius: 6px; }
.msg__meta { margin-top: 4px; font-size: 11px; color: #808080; padding: 0 6px; }
.msg--out .msg__meta { text-align: right; }
.sep { align-self: center; font-size: 11.5px; font-weight: 600; color: #808080; padding: 4px 0; }

/* Typing indicator (inserted by JS) */
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 19px; border-bottom-left-radius: 6px; background: #F0F0F0; }
.typing i { width: 7px; height: 7px; border-radius: 999px; background: #808080; display: block; animation: as-typing 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes as-typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Tool call row: Bytown reading the platforms */
.tool {
  align-self: flex-start; display: flex; align-items: center; gap: 8px; max-width: 92%;
  padding: 6px 10px 6px 6px; border-radius: 12px;
  background: #FFFFFF; border: 1px solid #E5E7EB; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04);
  font-size: 12.5px; line-height: 1.3; color: #4A4A4A;
}
.tool__mark { width: 22px; height: 22px; border-radius: 7px; background: #1A1A1A; display: grid; place-items: center; flex-shrink: 0; }
.tool__mark img { width: 14px; height: 14px; }
.tool__label b { color: #1A1A1A; font-weight: 600; }
.tool__state { display: grid; width: 16px; height: 16px; flex-shrink: 0; }
.tool__state > * { grid-area: 1 / 1; transition: opacity 250ms var(--as-ease), transform 250ms var(--as-ease); }
.tool__spin { width: 14px; height: 14px; margin: 1px; border-radius: 999px; border: 2px solid #DBEAFE; border-top-color: #3B82F6; animation: as-spin 0.8s linear infinite; }
.tool__ok { color: #16A34A; opacity: 0; transform: scale(0.6); }
.tool .tool__done { display: none; }
.tool.ok .tool__run { display: none; }
.tool.ok .tool__done { display: inline; }
.tool.ok .tool__spin { opacity: 0; }
.tool.ok .tool__ok { opacity: 1; transform: none; }
@keyframes as-spin { to { transform: rotate(360deg); } }
/* Without JS the conversation is shown finished. */
html:not(.js) .tool .tool__run { display: none; }
html:not(.js) .tool .tool__done { display: inline; }
html:not(.js) .tool .tool__spin { opacity: 0; }
html:not(.js) .tool .tool__ok { opacity: 1; transform: none; }

/* Result list inside an answer */
.rlist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ritem {
  display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start;
  padding: 8px 10px; border-radius: 12px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05);
  font-size: 12.5px; line-height: 1.4; color: #1A1A1A;
}
.ritem__n { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.ritem__n--neg { background: #FEE2E2; color: #DC2626; }
.ritem__n--pos { background: #DCFCE7; color: #16A34A; }
.ritem__n--warn { background: #FEF3C7; color: #B45309; }
.ritem__plat { display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: #808080; margin-bottom: 1px; }
.ritem__plat img { width: 11px; height: 11px; }
.ritem b { font-weight: 700; }

/* Approval card (ported from guide-template .ap-card, hex instead of vars) */
.apc { align-self: stretch; border-radius: 16px; overflow: hidden; background: #FFFFFF; box-shadow: 0 4px 16px rgba(10, 10, 10, 0.08), 0 1px 3px rgba(10, 10, 10, 0.05); font-size: 13px; }
.apc__band { padding: 12px 14px 11px; background: linear-gradient(135deg, #EFF6FF, #DBEAFE); transition: background 300ms var(--as-ease); }
.apc__eyebrow { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2563EB; }
.apc__eyebrow .on-done { display: none; }
.apc__head { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.apc__ico { width: 32px; height: 32px; border-radius: 10px; background: #FFFFFF; color: #3B82F6; display: grid; place-items: center; flex-shrink: 0; }
.apc__ico svg { width: 16px; height: 16px; }
.apc__title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; color: #0A0A0A; line-height: 1.25; }
.apc__target { display: flex; align-items: center; gap: 5px; margin-top: 2px; font-size: 11.5px; color: #4A4A4A; }
.apc__target img { width: 12px; height: 12px; }
.apc__rows { padding: 4px 14px; }
.apc__row { display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid #F0F0F0; line-height: 1.4; }
.apc__row:last-child { border-bottom: 0; }
.apc__k { color: #808080; font-weight: 500; font-size: 12px; }
.apc__v { color: #0A0A0A; font-weight: 600; font-size: 12.5px; }
.apc__from { color: #808080; font-weight: 500; }
.apc__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.apc__chip { padding: 2px 7px; border-radius: 6px; background: #EFF6FF; color: #2563EB; font-size: 11.5px; font-weight: 600; }
.apc__chip--more { background: transparent; color: #808080; padding-left: 2px; }
.apc__foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 14px 12px; border-top: 1px solid #F0F0F0; }
.apc__btn { position: relative; display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 10px; font-size: 12.5px; font-weight: 600; border: 1px solid #E5E7EB; color: #1A1A1A; background: #FFFFFF; transition: transform 150ms var(--as-ease); }
.apc__btn--go { border: 0; color: #FFFFFF; background: linear-gradient(180deg, #3B82F6, #2563EB); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 12px rgba(59, 130, 246, 0.2); }
.apc__btn.is-pressed { transform: scale(0.94); }
.apc__done { display: none; align-items: center; gap: 6px; margin-right: auto; font-weight: 600; font-size: 12.5px; color: #15803D; }
.apc__done svg { width: 14px; height: 14px; }
.apc.done .apc__band { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
.apc.done .apc__eyebrow { color: #15803D; }
.apc.done .apc__eyebrow .on-wait { display: none; }
.apc.done .apc__eyebrow .on-done { display: inline; }
.apc.done .apc__ico { color: #16A34A; }
.apc.done .apc__btn { display: none; }
.apc.done .apc__done { display: inline-flex; }
.apc.done .apc__from { text-decoration: line-through; }

/* Simulated finger tap */
.tap { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 999px; pointer-events: none; z-index: 30;
  background: rgba(10, 10, 10, 0.16); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7); opacity: 0; }

/* Composer */
.composer { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px 28px; background: #FFFFFF; }
.composer__plus, .composer__send {
  width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0;
}
.composer__plus { background: #F0F0F0; color: #4A4A4A; }
.composer__plus svg, .composer__send svg { width: 16px; height: 16px; }
.composer__field {
  flex: 1; min-width: 0; min-height: 36px; display: flex; align-items: center; gap: 8px;
  padding: 7px 8px 7px 14px; border-radius: 20px; border: 1px solid #E5E7EB; background: #FFFFFF;
  font-size: 14px; color: #0A0A0A;
}
.composer__text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: clip; direction: ltr; }
.composer__text:empty::before { content: attr(data-placeholder); color: #808080; }
.composer__text.typing-now::after { content: ''; display: inline-block; width: 1.5px; height: 16px; margin-left: 1px; vertical-align: -3px; background: #3B82F6; animation: as-caret 0.9s steps(1) infinite; }
@keyframes as-caret { 50% { opacity: 0; } }
.composer__mic { color: #808080; display: grid; }
.composer__mic svg { width: 16px; height: 16px; }
.composer__send { background: #E5E7EB; color: #FFFFFF; transition: background 200ms var(--as-ease), transform 150ms var(--as-ease); }
.composer__send.armed { background: #0A0A0A; }
.composer__send.is-pressed { transform: scale(0.88); }

/* ---------- Muse skin ---------------------------------------------------- */
.muse-head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 2px 14px 10px; border-bottom: 1px solid #F0F0F0; background: #FFFFFF; z-index: 3; }
.muse-head__back { color: #0A0A0A; display: grid; }
.muse-head__back svg { width: 20px; height: 20px; }
.muse-ava {
  width: 34px; height: 34px; border-radius: 999px; flex-shrink: 0; position: relative;
  background: radial-gradient(circle at 35% 30%, #FFFFFF 0%, #FEF3C7 46% 100%);
  box-shadow: inset 0 0 0 1px rgba(180, 83, 9, 0.18);
}
.muse-ava::before, .muse-ava::after { content: ''; position: absolute; top: 40%; width: 12%; height: 15%; border-radius: 999px; background: #1A1A1A; }
.muse-ava::before { left: 31%; }
.muse-ava::after { right: 31%; }
.muse-head__name { font-size: 15px; font-weight: 700; color: #0A0A0A; line-height: 1.15; }
.muse-head__sub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: #808080; }
.muse-head__sub i { width: 6px; height: 6px; border-radius: 999px; background: #16A34A; display: block; }
.muse-head__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; color: #1A1A1A; }
.muse-head__actions svg { width: 20px; height: 20px; }
.muse-badge { position: relative; display: grid; }
.muse-badge b { position: absolute; top: -5px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: #DC2626; color: #FFFFFF; font-size: 10px; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform 300ms var(--as-ease-out); }
.muse-badge.has b { transform: scale(1); }
.muse-chip { align-self: center; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border-radius: 999px; background: #FAFAFA; border: 1px solid #F0F0F0; font-size: 11.5px; font-weight: 600; color: #4A4A4A; }
.muse-chip .tool__mark { width: 18px; height: 18px; border-radius: 6px; }
.muse-chip .tool__mark img { width: 11px; height: 11px; }

/* ---------- iMessage skin (Instinct) ------------------------------------ */
.imsg-head { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 0 14px 8px; background: rgba(250, 250, 250, 0.92); border-bottom: 1px solid #F0F0F0; position: relative; z-index: 3; }
.imsg-head__back { position: absolute; left: 12px; top: 10px; color: #3B82F6; display: grid; }
.imsg-head__back svg { width: 22px; height: 22px; }
.imsg-ava { width: 46px; height: 46px; border-radius: 999px; display: grid; place-items: center; background: linear-gradient(180deg, #808080, #4A4A4A); color: #FFFFFF; font-size: 19px; font-weight: 600; }
.imsg-head__name { display: inline-flex; align-items: center; gap: 2px; font-size: 11.5px; color: #0A0A0A; }
.imsg-head__name svg { width: 10px; height: 10px; color: #808080; }
.skin-imsg .msg--out .msg__bubble { background: #3B82F6; }
.skin-imsg .msg--in .msg__bubble { background: #E5E7EB; }
.skin-imsg .msg { font-size: 14.5px; }
.skin-imsg .composer__field { border-color: #E5E7EB; }
.skin-imsg .composer__send.armed { background: #3B82F6; }
.skin-imsg .composer__plus { background: #F0F0F0; }
.imsg-link { display: block; margin-top: 6px; overflow: hidden; border-radius: 14px; background: #FFFFFF; }
.imsg-link__img { height: 64px; display: grid; place-items: center; background: linear-gradient(180deg, #EFF6FF, #DBEAFE); }
.imsg-link__img img { width: 28px; height: 28px; }
.imsg-link__t { padding: 7px 10px 8px; }
.imsg-link__t b { display: block; font-size: 12.5px; color: #0A0A0A; }
.imsg-link__t span { font-size: 11px; color: #808080; }
/* Incoming call sheet (Instinct can phone you) */
.callsheet {
  position: absolute; inset: 0; z-index: 15; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 92px 24px 56px; color: #FFFFFF; text-align: center;
  background: radial-gradient(ellipse at 50% 20%, #4A4A4A 0%, #1A1A1A 55%, #0A0A0A 100%);
  opacity: 0; visibility: hidden;
}
.callsheet.on { visibility: visible; }
.callsheet__ava { width: 84px; height: 84px; border-radius: 999px; margin: 0 auto 12px; display: grid; place-items: center; background: linear-gradient(180deg, #808080, #4A4A4A); font-size: 34px; font-weight: 600; }
.callsheet__name { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; }
.callsheet__sub { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-top: 4px; }
.callsheet__note { margin-top: 20px; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.85); padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); }
.callsheet__btns { display: flex; gap: 72px; }
.callsheet__btn { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.callsheet__btn i { width: 60px; height: 60px; border-radius: 999px; display: grid; place-items: center; }
.callsheet__btn i svg { width: 26px; height: 26px; color: #FFFFFF; }
.callsheet__btn--no i { background: #DC2626; }
.callsheet__btn--yes i { background: #16A34A; }
html:not(.js) .callsheet { display: none; }

/* ---------- Grok Bot skin (dark desktop app) ----------------------------- */
.skin-grok { color: #FFFFFF; }
.grok-rail { width: 176px; flex-shrink: 0; padding: 12px 10px; border-right: 1px solid rgba(255, 255, 255, 0.06); display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.grok-rail__brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 12px; font-weight: 700; font-size: 13px; }
.grok-rail__brand i { width: 20px; height: 20px; border-radius: 6px; background: #FFFFFF; color: #0A0A0A; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
.grok-rail__label { padding: 12px 8px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #808080; }
.grok-rail__item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: rgba(255, 255, 255, 0.72); }
.grok-rail__item svg { width: 14px; height: 14px; flex-shrink: 0; }
.grok-rail__item.on { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.grok-rail__item .tool__mark { width: 16px; height: 16px; border-radius: 5px; background: #FFFFFF; }
.grok-rail__item .tool__mark img { width: 10px; height: 10px; }
.grok-rail__dot { margin-left: auto; width: 6px; height: 6px; border-radius: 999px; background: #16A34A; }
.grok-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.grok-main__head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.grok-bot-ava { width: 28px; height: 28px; border-radius: 9px; background: linear-gradient(180deg, #4A4A4A, #1A1A1A); display: grid; place-items: center; font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.grok-main__title { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.grok-main__sub { font-size: 11.5px; color: #808080; }
.grok-main__pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 11.5px; color: rgba(255, 255, 255, 0.8); }
.grok-main__pill i { width: 6px; height: 6px; border-radius: 999px; background: #16A34A; }
.skin-grok .demo__fade { background: linear-gradient(180deg, #0A0A0A, rgba(10, 10, 10, 0)); }
.skin-grok .msg--in .msg__bubble { background: transparent; color: rgba(255, 255, 255, 0.92); padding-left: 0; padding-right: 0; }
.skin-grok .msg--in { max-width: 100%; }
.skin-grok .msg--out .msg__bubble { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.skin-grok .sep { color: #808080; }
.skin-grok .tool { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.72); box-shadow: none; }
.skin-grok .tool__label b { color: #FFFFFF; }
.skin-grok .tool__mark { background: #FFFFFF; }
.skin-grok .tool__spin { border-color: rgba(59, 130, 246, 0.25); border-top-color: #3B82F6; }
.skin-grok .ritem { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.92); box-shadow: none; }
.skin-grok .ritem__plat { color: #808080; }
.skin-grok .typing { background: rgba(255, 255, 255, 0.08); }
.skin-grok .composer { background: #0A0A0A; padding: 10px 16px 14px; }
.skin-grok .composer__field { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: #FFFFFF; border-radius: 14px; }
.skin-grok .composer__text:empty::before { color: #808080; }
.skin-grok .composer__plus { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.72); }
.skin-grok .composer__send { background: rgba(255, 255, 255, 0.12); color: #0A0A0A; }
.skin-grok .composer__send.armed { background: #FFFFFF; }
.routine-card { align-self: stretch; border-radius: 14px; padding: 12px 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.routine-card__top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #808080; }
.routine-card__top svg { width: 13px; height: 13px; color: #3B82F6; }
.routine-card__name { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: #FFFFFF; }
.routine-card__meta { margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.slack-card { align-self: stretch; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #FFFFFF; color: #1A1A1A; font-size: 12.5px; line-height: 1.45; }
.slack-card__ava { width: 28px; height: 28px; border-radius: 7px; background: #1A1A1A; color: #FFFFFF; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.slack-card__who { font-size: 12.5px; font-weight: 700; }
.slack-card__who span { font-weight: 500; color: #808080; margin-left: 6px; font-size: 11px; }
.skin-grok .apc { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
@media (max-width: 639px) { .grok-rail { display: none; } }

/* ---------- ChatGPT dots skin ------------------------------------------- */
.gpt-rail { width: 168px; flex-shrink: 0; padding: 12px 8px; background: #FAFAFA; border-right: 1px solid #F0F0F0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #1A1A1A; }
.gpt-rail__item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; }
.gpt-rail__item svg { width: 14px; height: 14px; color: #4A4A4A; flex-shrink: 0; }
.gpt-rail__item.on { background: #F0F0F0; font-weight: 600; }
.gpt-rail__label { padding: 12px 8px 4px; font-size: 11px; font-weight: 600; color: #808080; }
.gpt-rail__count { margin-left: auto; font-size: 11px; color: #808080; }
.gpt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #FFFFFF; }
.gpt-main__head { flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.gpt-main__title { font-size: 13.5px; font-weight: 600; color: #0A0A0A; }
.gpt-main__tabs { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: #F0F0F0; font-size: 11.5px; font-weight: 600; color: #808080; }
.gpt-main__tabs span { padding: 4px 9px; border-radius: 7px; }
.gpt-main__tabs span.on { background: #FFFFFF; color: #0A0A0A; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.06); }
.dot-ava { width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px; position: relative;
  background: radial-gradient(circle at 34% 28%, #FFFFFF 0%, #DBEAFE 30%, #60A5FA 70%, #3B82F6 100%);
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.28); animation: as-bob 3.2s ease-in-out infinite; }
.dot-ava::before, .dot-ava::after { content: ''; position: absolute; top: 38%; width: 12%; height: 17%; border-radius: 999px; background: #0A0A0A; animation: as-blink 4.8s infinite; }
.dot-ava::before { left: 31%; }
.dot-ava::after { right: 31%; }
.dot-ava--lg { width: 64px; height: 64px; }
@keyframes as-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes as-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.skin-gpt .msg--out .msg__bubble { background: #F0F0F0; color: #0A0A0A; border-radius: 18px; }
.skin-gpt .msg--in { max-width: 100%; display: grid; grid-template-columns: 26px 1fr; gap: 8px; }
.skin-gpt .msg--in .msg__bubble { background: transparent; padding: 2px 0 0; color: #0A0A0A; }
.skin-gpt .msg--in > .dot-ava { width: 24px; height: 24px; }
.skin-gpt .ritem { background: #FAFAFA; box-shadow: none; border: 1px solid #F0F0F0; }
.skin-gpt .composer { padding: 8px 16px 14px; }
.skin-gpt .composer__field { border-radius: 22px; box-shadow: 0 2px 8px rgba(10, 10, 10, 0.05); }
.sched-card { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid #E5E7EB; background: #FFFFFF; }
.sched-card__ico { width: 30px; height: 30px; border-radius: 9px; background: #EFF6FF; color: #3B82F6; display: grid; place-items: center; flex-shrink: 0; }
.sched-card__ico svg { width: 15px; height: 15px; }
.sched-card__t { font-size: 12.5px; font-weight: 700; color: #0A0A0A; }
.sched-card__s { font-size: 11.5px; color: #808080; }
.sched-card__st { margin-left: auto; font-size: 11px; font-weight: 600; color: #15803D; background: #DCFCE7; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 639px) { .gpt-rail { display: none; } }

/* ---------- Section scaffolding ----------------------------------------- */
.as-section { padding: 80px 0; }
@media (min-width: 768px) { .as-section { padding: 112px 0; } }
.as-h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; color: #0A0A0A; }
.as-sub { font-size: clamp(1rem, 0.3vw + 0.95rem, 1.125rem); line-height: 1.65; color: #4A4A4A; max-width: 40rem; }
.as-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #2563EB; }
.as-dark { background: #0A0A0A; color: #FFFFFF; }
.as-dark .as-h2 { color: #FFFFFF; }
.as-dark .as-sub { color: rgba(255, 255, 255, 0.66); }

/* Platform strip */
.as-plats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.as-plat { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #1A1A1A; }
.as-plat img { width: 26px; height: 26px; object-fit: contain; }
.as-plat__chip { width: 40px; height: 40px; border-radius: 12px; background: #FFFFFF; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(10, 10, 10, 0.08); }

/* Compare: assistant alone vs + Bytown */
.cmp { border-radius: 24px; background: #FFFFFF; box-shadow: var(--as-shadow-card); overflow: hidden; }
.cmp__head, .cmp__row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
.cmp__head > div { padding: 20px 20px 16px; }
.cmp__head .cmp__k { font-size: 13px; font-weight: 600; color: #808080; align-self: end; }
.cmp__col-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: #0A0A0A; }
.cmp__col-title small { display: block; font-size: 12px; font-weight: 500; color: #808080; }
.cmp__by { background: linear-gradient(180deg, #EFF6FF, #FFFFFF 70%); }
.cmp__row > div { padding: 14px 20px; font-size: 14.5px; line-height: 1.45; color: #4A4A4A; display: flex; align-items: flex-start; gap: 10px; }
.cmp__row .cmp__k { color: #1A1A1A; font-weight: 600; }
.cmp__row:nth-child(even) > div { background: #FAFAFA; }
.cmp__row:nth-child(even) > .cmp__by { background: #EFF6FF; }
.cmp__row > .cmp__by { background: #EFF6FF; }
.cmp__ic { width: 20px; height: 20px; border-radius: 999px; display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.cmp__ic svg { width: 12px; height: 12px; }
.cmp__ic--yes { background: #DCFCE7; color: #16A34A; }
.cmp__ic--no { background: #F0F0F0; color: #808080; }
.cmp__ic--blue { background: #3B82F6; color: #FFFFFF; }
.cmp__by-text { color: #0A0A0A; font-weight: 600; }
@media (max-width: 767px) {
  .cmp__head { grid-template-columns: 1fr 1fr; }
  .cmp__head .cmp__k { display: none; }
  .cmp__row { grid-template-columns: 1fr 1fr; }
  .cmp__row .cmp__k { grid-column: 1 / -1; padding: 14px 16px 4px; background: transparent !important; font-size: 13px; color: #808080; }
  .cmp__row > div { padding: 6px 16px 14px; font-size: 14px; }
  .cmp__row:nth-child(even) > div { background: transparent; }
  .cmp__row > .cmp__by, .cmp__row:nth-child(even) > .cmp__by { background: #EFF6FF; }
  .cmp__row { border-top: 1px solid #F0F0F0; }
  .cmp__head > div { padding: 16px; }
}

/* Steps with a sticky device (desktop) */
.steps { display: grid; grid-template-columns: 1fr; gap: 40px; }
.steps > ol { display: grid; gap: 56px; }
.steps-device { display: none; }
@media (min-width: 1024px) {
  .steps { grid-template-columns: minmax(0, 1fr) 360px; gap: 72px; align-items: stretch; }
  .steps > ol { gap: 0; }
  html.js .steps-device { display: block; }
  html.js .steps-device__pin { position: sticky; top: calc(50vh - 315px); display: flex; justify-content: center; }
  html.js .step-shot { display: none; }
  html.js .step { min-height: 56vh; display: flex; flex-direction: column; justify-content: center; }
}
@media (min-width: 1024px) and (max-height: 760px) { html.js .steps-device__pin { top: 96px; } }
.step__n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: #808080; background: #FFFFFF; box-shadow: 0 1px 3px rgba(10, 10, 10, 0.08);
  transition: background 300ms var(--as-ease), color 300ms var(--as-ease);
}
.step.on .step__n, html:not(.js) .step__n { background: #0A0A0A; color: #FFFFFF; }
.step__t { margin-top: 16px; font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; color: #0A0A0A; }
.step__p { margin-top: 10px; font-size: 16.5px; line-height: 1.65; color: #4A4A4A; max-width: 34rem; }
.step__p b { color: #1A1A1A; font-weight: 600; }
.step__path { margin-top: 14px; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: #1A1A1A; }
.step__path span { padding: 5px 10px; border-radius: 8px; background: #FFFFFF; border: 1px solid #E5E7EB; }
.step__path svg { width: 12px; height: 12px; color: #808080; }
@media (min-width: 1024px) { html.js .step { opacity: 0.5; transition: opacity 400ms var(--as-ease); } html.js .step.on { opacity: 1; } }
.step-shot { margin-top: 20px; display: flex; justify-content: center; }
.steps-device .iphone, .step-shot .iphone { --w: 300px; }
.step-shot .iphone { --w: min(280px, calc(100vw - 64px)); }
.steps-device .screens { position: relative; flex: 1; min-height: 0; }
.steps-device .screen { position: absolute; inset: 0; opacity: 0; transform: translateY(10px) scale(0.985); transition: opacity 450ms var(--as-ease-out), transform 450ms var(--as-ease-out); }
.steps-device .screen.on { opacity: 1; transform: none; }
.screen { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.step-shot .screen { flex: 1; }

/* Mock screens used inside the steps */
.scr-pad { padding: 10px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.scr-title { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: #0A0A0A; }
.scr-sub { font-size: 12.5px; color: #808080; line-height: 1.4; }
.scr-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #FFFFFF; border: 1px solid #F0F0F0; font-size: 13px; font-weight: 600; color: #1A1A1A; }
.scr-row img { width: 22px; height: 22px; object-fit: contain; }
.scr-row small { display: block; font-weight: 500; font-size: 11.5px; color: #808080; }
.scr-ok { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #15803D; background: #DCFCE7; padding: 3px 8px; border-radius: 999px; }
.scr-btn { margin-top: auto; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: #FFFFFF; background: linear-gradient(180deg, #3B82F6, #2563EB); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.scr-btn--ink { background: linear-gradient(180deg, #1F1F21, #0A0A0A); }
.scr-canvas { background-color: #FAFAFA; background-image: radial-gradient(circle, #D4D4D8 1px, transparent 1px); background-size: 20px 20px; }
.scr-consent { margin: auto 0; border-radius: 20px; background: #FFFFFF; box-shadow: var(--as-shadow-card); padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.scr-consent__logos { display: flex; align-items: center; justify-content: center; gap: 10px; color: #808080; }
.scr-consent__logos > span { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #1A1A1A; }
.scr-consent__logos img { width: 22px; height: 22px; }
.scr-consent__h { font-size: 15px; font-weight: 800; color: #0A0A0A; text-align: center; line-height: 1.3; letter-spacing: -0.01em; }
.scr-select { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; border: 1.5px solid #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12); font-size: 13px; font-weight: 600; color: #0A0A0A; }
.scr-select small { display: block; font-size: 10.5px; font-weight: 600; color: #808080; text-transform: uppercase; letter-spacing: 0.06em; }
.scr-list { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #4A4A4A; }
.scr-list li { display: flex; gap: 6px; align-items: flex-start; }
.scr-list svg { width: 13px; height: 13px; color: #16A34A; flex-shrink: 0; margin-top: 2px; }

/* Prompt cards (bento) */
.prompts { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .prompts { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.prompt {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 20px;
  background: #FFFFFF; box-shadow: var(--as-shadow-card);
  transition: translate 200ms var(--as-ease), box-shadow 200ms var(--as-ease);
}
.prompt:hover { translate: 0 -2px; box-shadow: var(--as-shadow-float); }
@media (min-width: 768px) {
  .prompt { grid-column: span 2; }
  .prompt--wide { grid-column: span 3; }
  .prompt--feature { grid-column: span 6; }
}
.prompt__cat { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: #FAFAFA; border: 1px solid #F0F0F0; font-size: 12px; font-weight: 600; color: #4A4A4A; }
.prompt__cat img { width: 13px; height: 13px; }
.prompt__q { font-size: 17px; line-height: 1.45; font-weight: 600; color: #0A0A0A; letter-spacing: -0.01em; }
.prompt__note { font-size: 14px; line-height: 1.55; color: #808080; }
.prompt__copy {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border-radius: 10px; border: 1px solid #E5E7EB; background: #FFFFFF; font-size: 13px; font-weight: 600; color: #1A1A1A; cursor: pointer;
  transition: border-color 200ms var(--as-ease), color 200ms var(--as-ease);
}
.prompt__copy:hover { border-color: #3B82F6; color: #2563EB; }
.prompt__copy svg { width: 14px; height: 14px; }
.prompt--feature { padding: 0; overflow: hidden; display: grid; grid-template-columns: 1fr; background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }
@media (min-width: 900px) { .prompt--feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); } }
.prompt--feature:hover { translate: none; }
.pf-left { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.pf-quote { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.35; font-weight: 700; letter-spacing: -0.015em; color: #0A0A0A; }
.pf-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.pf-who img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 3px #FFFFFF; }
.pf-who b { display: block; font-size: 14px; color: #0A0A0A; }
.pf-who span { font-size: 13px; color: #4A4A4A; }
.pf-right { padding: 20px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.pf-item { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.86); box-shadow: 0 1px 3px rgba(10, 10, 10, 0.05); }
.pf-item p { flex: 1; font-size: 15px; font-weight: 600; line-height: 1.4; color: #0A0A0A; }
.pf-item .prompt__copy { margin: 0; flex-shrink: 0; }
.pf-item__n { width: 26px; height: 26px; border-radius: 8px; background: #0A0A0A; color: #FFFFFF; display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
@media (max-width: 767px) {
  .prompts--scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -24px; padding: 4px 24px 16px; scrollbar-width: none; }
  .prompts--scroll::-webkit-scrollbar { display: none; }
  .prompts--scroll > .prompt { flex: 0 0 84%; scroll-snap-align: center; }
  .pf-item { flex-wrap: wrap; }
}
.copy-btn .label-copied, .prompt__copy .label-copied { display: none; }
.copy-btn.copied .label-copy, .prompt__copy.copied .label-copy { display: none; }
.copy-btn.copied .label-copied, .prompt__copy.copied .label-copied { display: inline-flex; align-items: center; gap: 6px; }
.prompt__copy.copied { border-color: #16A34A; color: #16A34A; }

/* Routine timeline (dark section) */
.tl { position: relative; display: grid; gap: 20px; padding-left: 36px; }
.tl::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, 0.1); }
.tl__fill { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, #3B82F6, #2563EB); transform-origin: top; transform: scaleY(1); }
html.anim .tl__fill { transform: scaleY(0); }
.tl__item { position: relative; display: grid; grid-template-columns: 1fr; gap: 16px; padding: 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
@media (min-width: 900px) { .tl__item { grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.tl__node { position: absolute; left: -32px; top: 24px; width: 16px; height: 16px; border-radius: 999px; background: #0A0A0A; border: 2px solid #3B82F6; box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16); }
.tl__when { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.tl__when b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.tl__col h3 { font-size: 16px; font-weight: 700; color: #FFFFFF; line-height: 1.35; }
.tl__col p { margin-top: 6px; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.66); }
.tl__tag { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tl__tag--auto { color: #60A5FA; }
.tl__tag--you { color: #4ADE80; }
.tl__tag svg { width: 12px; height: 12px; }

/* Control bento */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: minmax(0, auto); }
  .bento__a { grid-column: span 3; grid-row: span 2; }
  .bento__b { grid-column: span 3; }
  .bento__c { grid-column: span 3; }
  .bento__d { grid-column: span 2; }
  .bento__e { grid-column: span 2; }
  .bento__f { grid-column: span 2; }
}
.cell { position: relative; overflow: hidden; border-radius: 24px; padding: 24px; background: #FFFFFF; box-shadow: var(--as-shadow-card); }
.cell h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #0A0A0A; line-height: 1.3; }
.cell p { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #4A4A4A; }
.cell--canvas { background-color: #FAFAFA; background-image: radial-gradient(circle, #D4D4D8 1px, transparent 1px); background-size: 22px 22px; display: flex; flex-direction: column; gap: 20px; }
.cell--canvas .apc { max-width: 380px; width: 100%; margin: auto; }
.cell--ink { background: #0A0A0A; color: #FFFFFF; }
.cell--ink h3 { color: #FFFFFF; }
.cell--ink p { color: rgba(255, 255, 255, 0.66); }
.cell--wash { background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%); }
.cell__ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #EFF6FF; color: #3B82F6; margin-bottom: 16px; }
.cell--ink .cell__ico { background: rgba(255, 255, 255, 0.08); color: #60A5FA; }
.cell__ico svg { width: 20px; height: 20px; }
.cell .bignum, .bignum { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; font-weight: 800; letter-spacing: -0.04em; color: #0A0A0A; }
.toolcount { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.toolcount div { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.8); }
.toolcount img { width: 20px; height: 20px; object-fit: contain; }
.toolcount b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #0A0A0A; }
.toolcount span { display: block; font-size: 12px; color: #4A4A4A; line-height: 1.2; }

/* Founder / who block */
.who { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .who { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.who__quote { font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; color: #0A0A0A; }
.who__by { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.who__by img { width: 56px; height: 56px; border-radius: 999px; object-fit: cover; }
.who__by b { display: block; font-size: 15px; color: #0A0A0A; }
.who__by span { font-size: 14px; color: #808080; }
.who__list { display: grid; gap: 12px; }
.who__row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; border-radius: 20px; background: #FFFFFF; box-shadow: var(--as-shadow-card); }
.who__row h3 { font-size: 16px; font-weight: 700; color: #0A0A0A; }
.who__row p { margin-top: 4px; font-size: 15px; line-height: 1.6; color: #4A4A4A; }
.who__ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #0A0A0A; color: #FFFFFF; }
.who__ico svg { width: 20px; height: 20px; }

/* Pricing strip */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { border-radius: 24px; padding: 28px; background: #FFFFFF; box-shadow: var(--as-shadow-card); display: flex; flex-direction: column; gap: 12px; }
.plan--max { background: #0A0A0A; color: #FFFFFF; }
.plan__name { display: flex; align-items: center; justify-content: space-between; font-size: 15px; font-weight: 700; color: #1A1A1A; }
.plan--max .plan__name { color: #FFFFFF; }
.plan__tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: #EFF6FF; color: #2563EB; }
.plan--max .plan__tag { background: rgba(59, 130, 246, 0.18); color: #DBEAFE; }
.plan__price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: #0A0A0A; }
.plan--max .plan__price { color: #FFFFFF; }
.plan__price small { font-size: 15px; font-weight: 500; color: #808080; letter-spacing: 0; }
.plan__then { font-size: 14px; color: #808080; }
.plan__list { display: grid; gap: 8px; margin-top: 4px; font-size: 15px; color: #4A4A4A; }
.plan--max .plan__list { color: rgba(255, 255, 255, 0.72); }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; }
.plan__list svg { width: 16px; height: 16px; color: #3B82F6; flex-shrink: 0; margin-top: 3px; }
.plan .as-btn-ink, .plan .as-btn-outline { margin-top: auto; }
.plan--max .as-btn-outline { background: #FFFFFF; border-color: #FFFFFF; color: #0A0A0A; }
.claims { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.claims span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E5E7EB; font-size: 13.5px; font-weight: 600; color: #1A1A1A; }
.claims svg { width: 14px; height: 14px; color: #16A34A; }

/* Related links */
.rel { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .rel { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .rel { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rel a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 18px; background: #FFFFFF; border: 1px solid #F0F0F0; transition: transform 200ms var(--as-ease), border-color 200ms var(--as-ease), box-shadow 200ms var(--as-ease); }
.rel a:hover { transform: translateY(-2px); border-color: #DBEAFE; box-shadow: var(--as-shadow-float); }
.rel b { display: flex; align-items: center; justify-content: space-between; font-size: 15px; color: #0A0A0A; }
.rel b svg { width: 16px; height: 16px; color: #808080; transition: transform 200ms var(--as-ease); }
.rel a:hover b svg { transform: translateX(3px); color: #3B82F6; }
.rel span { font-size: 13.5px; line-height: 1.5; color: #4A4A4A; }

.as-note { font-size: 13px; line-height: 1.6; color: #4A4A4A; }
.as-note a { color: #4A4A4A; text-decoration: underline; text-underline-offset: 2px; }

/* Scroll reveal: content is visible by default; JS opts elements in. */
/* Paused off-screen: stop CSS loops inside a demo stage nobody can see. */
.is-paused *, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .as-source.live .as-source__pulse, .dot-ava, .dot-ava::before, .dot-ava::after, .typing i, .tool__spin { animation: none !important; }
  html.anim .tl__fill { transform: scaleY(1); }
  .steps-device .screen { transition: opacity 1ms; transform: none; }
  html.js .step { transition: none; }
}

/* ---------- Window-frame pages (/grok, /chatgpt-dots) -------------------- */
.as-stage--window { flex-direction: column; align-items: center; }
.as-sources-row { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.as-stage--window .as-source { position: relative; left: auto; right: auto; top: auto; bottom: auto; display: flex; width: 172px; }
@media (max-width: 1279px) { .as-stage--window .as-source { width: 160px; } }
@media (max-width: 767px) {
  .as-stage--window .as-source { width: calc(50% - 5px); padding: 6px 8px 6px 6px; gap: 8px; }
  .as-stage--window .as-source__ico { width: 28px; height: 28px; }
  .as-stage--window .as-source__ico img, .as-stage--window .as-source__ico svg { width: 16px; height: 16px; }
}
.window .screens { position: relative; flex: 1; min-height: 0; }
.steps-device .window { width: 100%; }
.steps-device .window .window__body, .step-shot .window .window__body { height: 400px; }
.window .screen { flex: 1; min-width: 0; }
@media (min-width: 1024px) {
  .steps--window { grid-template-columns: minmax(0, 1fr) 500px; gap: 56px; }
  html.js .steps--window .steps-device__pin { top: calc(50vh - 220px); }
}
.step-shot .window { width: 100%; max-width: 520px; }

/* Settings-style mock screens inside windows */
.set-pad { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.set-title { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.set-sub { font-size: 12.5px; color: #808080; line-height: 1.45; }
.set-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; }
.set-field span { color: #808080; font-weight: 600; font-size: 11.5px; }
.set-input { padding: 9px 11px; border-radius: 10px; border: 1px solid #E5E7EB; background: #FFFFFF; font-size: 12.5px; color: #0A0A0A; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.set-input.is-focus { border-color: #3B82F6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14); }
.set-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 1px solid #E5E7EB; font-size: 12.5px; font-weight: 600; }
.set-toggle small { display: block; font-weight: 500; color: #808080; font-size: 11.5px; margin-top: 1px; }
.set-switch { width: 34px; height: 20px; border-radius: 999px; background: #16A34A; position: relative; flex-shrink: 0; }
.set-switch::after { content: ''; position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 999px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(10, 10, 10, 0.2); }
.set-radio { display: flex; flex-direction: column; gap: 6px; }
.set-radio div { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; color: #4A4A4A; border: 1px solid transparent; }
.set-radio div::before { content: ''; width: 12px; height: 12px; border-radius: 999px; border: 1.5px solid #D4D4D8; flex-shrink: 0; }
.set-radio div.on { border-color: #DBEAFE; background: #EFF6FF; color: #0A0A0A; font-weight: 600; }
.set-radio div.on::before { border: 4px solid #3B82F6; }
.set-btns { margin-top: auto; display: flex; justify-content: flex-end; gap: 8px; }
.set-btn { height: 32px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; border: 1px solid #E5E7EB; }
.set-btn--go { background: #0A0A0A; color: #FFFFFF; border-color: #0A0A0A; }
.skin-grok .set-input { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); color: #FFFFFF; }
.skin-grok .set-input.is-focus { border-color: #3B82F6; }
.skin-grok .set-btn { border-color: rgba(255, 255, 255, 0.14); color: #FFFFFF; }
.skin-grok .set-btn--go { background: #FFFFFF; color: #0A0A0A; border-color: #FFFFFF; }
.skin-grok .set-toggle { border-color: rgba(255, 255, 255, 0.12); }
.screen--light { background: #FAFAFA; color: #0A0A0A; }

/* Instinct: status lines in an iMessage thread */
.skin-imsg .tool { align-self: center; background: transparent; border: 0; box-shadow: none; padding: 2px 0; font-size: 11.5px; color: #808080; }
.skin-imsg .tool__mark { width: 16px; height: 16px; border-radius: 5px; }
.skin-imsg .tool__mark img { width: 10px; height: 10px; }
.skin-imsg .tool__label b { color: #4A4A4A; }
.skin-imsg .tool__state { width: 14px; height: 14px; }
.skin-imsg .tool__spin { width: 12px; height: 12px; }
.imsg-read { align-self: flex-end; font-size: 11px; color: #808080; margin-top: -6px; padding-right: 4px; }
.scr-consent__logos > svg { width: 18px; height: 18px; flex-shrink: 0; }
.tool__ok { width: 16px; height: 16px; }
.as-btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }
.as-btn-ghost { white-space: nowrap; }
@media (min-width: 768px) { .as-stage--window .as-source { width: calc((100% - 20px) / 3); max-width: 184px; } }
.as-stage--window .as-sources-row { width: 100%; flex-wrap: nowrap; }
@media (max-width: 767px) {
  .as-stage--window .as-source { width: calc((100% - 16px) / 3); min-width: 0; gap: 6px; }
  .as-stage--window .as-sources-row { gap: 8px; }
  .as-stage--window .as-source__name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
  .as-stage--window .as-source__state { font-size: 11px; }
  .as-stage--window .as-source__pulse { display: none; }
}
@media (max-width: 479px) { .as-stage--window .as-source__ico { display: none; } .as-stage--window .as-source { padding: 8px 10px; } }
.as-source__state span { overflow: hidden; text-overflow: ellipsis; }
html:not(.js) .as-replay { display: none; }
