:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --surface-soft: #fef8e6;
  --ink: #1d1d1f;
  --muted: rgba(29, 29, 31, 0.62);
  --faint: rgba(29, 29, 31, 0.36);
  --line: rgba(107, 14, 30, 0.12);
  --line-strong: rgba(107, 14, 30, 0.2);
  --blue: #6b0e1e;
  --blue-hover: #8a1326;
  --blue-soft: #f5ecee;
  --shadow: 0 30px 80px rgba(107, 14, 30, 0.1);
  --font-inter:
    "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-dm-sans: var(--font-inter);
  --font-instrument-serif: var(--font-inter);
  --button-radius: 14px;
  --button-bg: #6b0e1e;
  --button-bg-hover: #8a1326;
  --button-shadow: 0 2px 10px rgba(107, 14, 30, 0.18);
  --glow-burgundy: rgba(107, 14, 30, 0.35);
  --glow-sand: rgba(245, 222, 141, 0.3);
  --sand-accent: #f5de8d;
  --sand-glow: rgba(245, 222, 141, 0.3);
  --brg-glow: rgba(107, 14, 30, 0.35);
  --glass-bg: rgba(250, 247, 242, 0.78);
  --glass-border: rgba(107, 14, 30, 0.06);
  --glass-shadow: 0 8px 32px rgba(107, 14, 30, 0.06);
  --glass-blur: 20px;
}

* {
  box-sizing: border-box;
}

::selection {
  background: #6b0e1e;
  color: #fff;
}

::-moz-selection {
  background: #6b0e1e;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #6b0e1e;
  outline-offset: 2px;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #faf7f2;
}

::-webkit-scrollbar-thumb {
  background: rgba(107, 14, 30, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 14, 30, 0.35);
}

html {
  height: 100%;
  min-height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  color: inherit;
}

.site-shell {
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background: transparent;
  padding: 12px 24px 0;
  pointer-events: none;
}

.home-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 8px 12px 8px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  pointer-events: auto;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    border-radius 0.2s,
    backdrop-filter 0.2s;
}

.home-nav.is-scrolled .home-nav-inner,
.home-nav.mobile-open .home-nav-inner,
.home-nav.usecases-open .home-nav-inner {
  border-color: rgba(107, 14, 30, 0.07);
  border-radius: 22px;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 28px rgba(107, 14, 30, 0.06);
}

.home-nav.is-scrolled .home-nav-inner {
  box-shadow: 0 12px 32px rgba(107, 14, 30, 0.075);
}

.home-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1d1d1f;
  text-decoration: none;
}

.home-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.home-brand span {
  font-family: var(--font-instrument-serif), serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.home-nav-link,
.usecase-trigger {
  color: rgba(29, 29, 31, 0.55);
  font-family: var(--font-dm-sans);
  font-size: 14px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s;
}

.home-nav-link:hover,
.home-nav-link:focus-visible,
.usecase-trigger:hover,
.usecase-trigger:focus-visible {
  color: #1d1d1f;
}

.usecase-menu {
  position: relative;
  padding: 24px 0;
}

.usecase-menu::after {
  content: "";
  position: absolute;
  left: -18px;
  right: -18px;
  top: 42px;
  height: 18px;
}

.usecase-dropdown {
  position: absolute;
  top: 48px;
  left: 50%;
  width: min(520px, calc(100vw - 32px));
  transform: translateX(-50%) translateY(8px);
  display: block;
  padding: 12px 14px 14px;
  background: rgba(252, 251, 248, 0.98);
  border: 1px solid rgba(107, 14, 30, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(107, 14, 30, 0.11);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  backdrop-filter: blur(16px);
  z-index: 80;
}

.usecase-menu:hover .usecase-dropdown,
.usecase-menu:focus-within .usecase-dropdown,
.usecase-menu.preview-open .usecase-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.usecase-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 6px;
  text-decoration: none;
  color: #1d1d1f;
  min-width: 0;
  overflow: hidden;
}

.usecase-item > span:not(.doodle-icon) {
  min-width: 0;
  overflow: hidden;
}

.usecase-item:hover,
.usecase-item:focus-visible {
  color: #6b0e1e;
  background: rgba(107, 14, 30, 0.055);
  border-radius: 10px;
}

.usecase-title {
  display: block;
  font-size: 13px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usecase-copy {
  display: block;
  color: rgba(29, 29, 31, 0.56);
  font-size: 10.75px;
  line-height: 1.16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.usecase-trigger {
  font-weight: 500;
}

.usecase-chevron {
  transition: transform 160ms ease;
}

.usecase-menu:hover .usecase-chevron,
.usecase-menu:focus-within .usecase-chevron,
.usecase-menu.preview-open .usecase-chevron {
  transform: rotate(180deg);
}

.mega-heading {
  display: none;
  margin: 0;
  color: rgba(29, 29, 31, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mega-usecase-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 6px;
  row-gap: 2px;
}

.doodle-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.doodle-icon svg {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.usecase-item:hover .doodle-icon svg,
.usecase-item:focus-visible .doodle-icon svg {
  transform: rotate(-2deg) translateY(-1px);
}

.doodle-icon svg {
  transition: transform 160ms ease;
}

.home-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: var(--button-bg);
  color: #fff;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.home-nav .nav-cta {
  min-height: 0;
  padding: 9px 22px;
  font-size: 13px;
}

.home-nav .nav-cta:hover,
.home-nav .nav-cta:focus-visible {
  background: var(--button-bg-hover);
  transform: translateY(-1px);
}

.home-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #1d1d1f;
}

.menu-icon-close,
.home-nav.mobile-open .menu-icon-open {
  display: none;
}

.home-nav.mobile-open .menu-icon-close {
  display: block;
}

.home-mobile-drawer {
  display: none;
  flex-direction: column;
  width: 100%;
  max-width: 72rem;
  margin: 8px auto 0;
  background: #faf7f2;
  border: 1px solid rgba(107, 14, 30, 0.07);
  border-radius: 22px;
  padding: 16px 24px 28px;
  pointer-events: auto;
  box-shadow: 0 12px 32px rgba(107, 14, 30, 0.075);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.home-mobile-drawer a {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  font-weight: 400;
  color: rgba(29, 29, 31, 0.7);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.06);
  display: block;
}

.home-mobile-drawer .home-mobile-subitem {
  padding-left: 16px;
  font-size: 14px;
  color: rgba(29, 29, 31, 0.55);
}

.home-mobile-drawer .home-mobile-cta {
  margin-top: 16px;
  padding: 14px 0;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: #fff;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.86);
  border-bottom: 1px solid rgba(107, 14, 30, 0.07);
  backdrop-filter: blur(18px);
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a,
.nav-links button {
  color: inherit;
  text-decoration: none;
  border: 0;
  background: transparent;
  font: inherit;
  padding: 0;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
}

.dropdown {
  position: relative;
  padding: 24px 0;
}

.dropdown-button {
  cursor: default;
}

.dropdown-panel {
  position: absolute;
  top: 64px;
  left: 50%;
  width: 540px;
  transform: translateX(-50%) translateY(8px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 13px;
  border-radius: 8px;
  text-decoration: none;
}

.dropdown-item:hover,
.dropdown-item:focus-visible {
  background: var(--surface-soft);
}

.dropdown-title {
  display: block;
  color: var(--ink);
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 4px;
}

.dropdown-copy {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.nav-cta,
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-cta:hover,
.button-primary:hover {
  background: var(--blue-hover);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.55);
}

.hero {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 120px 0 42px;
  text-align: center;
}

.kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

h1 {
  max-width: 880px;
  margin: 0 auto;
  color: #1d1d1f;
  font-size: clamp(48px, 8vw, 104px);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 680px;
  margin: 24px auto 0;
  color: rgba(29, 29, 31, 0.7);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.mac-note {
  margin-top: 12px;
  color: var(--faint);
  font-size: 13px;
}

.screen-stage {
  width: min(1120px, calc(100% - 48px));
  margin: 22px auto 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(
      to right,
      transparent calc(25% - 1px),
      rgba(107, 14, 30, 0.1) calc(25% - 1px),
      rgba(107, 14, 30, 0.1) 25%,
      transparent 25%
    ),
    linear-gradient(
      to right,
      transparent calc(50% - 1px),
      rgba(107, 14, 30, 0.1) calc(50% - 1px),
      rgba(107, 14, 30, 0.1) 50%,
      transparent 50%
    ),
    linear-gradient(
      to right,
      transparent calc(75% - 1px),
      rgba(107, 14, 30, 0.1) calc(75% - 1px),
      rgba(107, 14, 30, 0.1) 75%,
      transparent 75%
    ),
    linear-gradient(
      to bottom,
      transparent calc(50% - 1px),
      rgba(107, 14, 30, 0.1) calc(50% - 1px),
      rgba(107, 14, 30, 0.1) 50%,
      transparent 50%
    );
  border-radius: 8px;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: end;
}

.stage-copy {
  align-self: start;
  padding: 58px 36px 40px;
}

.stage-copy h2 {
  margin: 0;
  max-width: 440px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  font-weight: 480;
  letter-spacing: -0.045em;
}

.stage-copy p {
  margin: 24px 0 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.stage-visual {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 18px;
}

.stage-visual img {
  width: min(540px, 100%);
  display: block;
}

.hero-seo h1 {
  max-width: 1020px;
}

.hero-seo .hero-copy {
  max-width: 820px;
}

.meeting-demo {
  align-items: stretch;
  min-height: 560px;
}

.meeting-demo-copy {
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}

.meeting-demo-copy h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.meeting-demo-copy p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.stage-tabs {
  margin-top: auto;
  display: grid;
  gap: 8px;
  padding-top: 32px;
}

.stage-tab {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.48);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  text-align: left;
  padding: 13px 14px;
  line-height: 1.35;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.stage-tab span {
  display: inline-flex;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
}

.stage-tab:hover,
.stage-tab:focus-visible,
.stage-tab.active {
  background: #fff;
  border-color: rgba(107, 14, 30, 0.34);
  color: var(--ink);
  transform: translateY(-1px);
}

.meeting-demo-visual {
  position: relative;
  min-height: 560px;
  padding: 34px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.meeting-scroll {
  padding-top: 78px;
}

.meeting-scroll-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(440px, 1.22fr);
  gap: 28px;
  align-items: start;
}

.meeting-steps {
  display: grid;
  gap: 24px;
}

.scroll-step {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.42);
  opacity: 0.52;
  cursor: pointer;
  transition:
    opacity 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.scroll-step::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: -1px;
  width: 3px;
  border-radius: 999px;
  background: var(--step-accent, var(--blue));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 220ms ease;
}

.scroll-step.active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(107, 14, 30, 0.42);
  transform: translateY(-2px);
}

.scroll-step.active::before {
  transform: scaleY(1);
}

.scroll-step[data-stage="before"] {
  --step-accent: #6b0e1e;
}

.scroll-step[data-stage="during"] {
  --step-accent: #4a0a14;
}

.scroll-step[data-stage="after"] {
  --step-accent: #e8c95c;
}

.scroll-step[data-stage="schedule"] {
  --step-accent: #8a1326;
}

.scroll-step span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scroll-step h3 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.scroll-step p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.step-command {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 247, 242, 0.74);
  color: rgba(29, 29, 31, 0.72);
  font-size: 14px;
  line-height: 1.45;
}

.meeting-sticky-demo {
  --stage: #6b0e1e;
  --stage-soft: rgba(107, 14, 30, 0.14);
  --stage-glow: rgba(107, 14, 30, 0.2);
  position: sticky;
  top: 104px;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 1px),
      rgba(107, 14, 30, 0.1) calc(33.333% - 1px),
      rgba(107, 14, 30, 0.1) 33.333%,
      transparent 33.333%
    ),
    linear-gradient(
      to right,
      transparent calc(66.666% - 1px),
      rgba(107, 14, 30, 0.1) calc(66.666% - 1px),
      rgba(107, 14, 30, 0.1) 66.666%,
      transparent 66.666%
    ),
    linear-gradient(
      to bottom,
      transparent calc(50% - 1px),
      rgba(107, 14, 30, 0.1) calc(50% - 1px),
      rgba(107, 14, 30, 0.1) 50%,
      transparent 50%
    );
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.meeting-sticky-demo[data-stage="during"] {
  --stage: #4a0a14;
  --stage-soft: rgba(14, 118, 110, 0.15);
  --stage-glow: rgba(14, 118, 110, 0.22);
}

.meeting-sticky-demo[data-stage="after"] {
  --stage: #e8c95c;
  --stage-soft: rgba(182, 92, 18, 0.15);
  --stage-glow: rgba(182, 92, 18, 0.22);
}

.meeting-sticky-demo[data-stage="schedule"] {
  --stage: #8a1326;
  --stage-soft: rgba(124, 58, 237, 0.13);
  --stage-glow: rgba(124, 58, 237, 0.2);
}

.meeting-sticky-demo::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(circle at 28% 26%, var(--stage-glow), transparent 32%),
    radial-gradient(circle at 74% 72%, rgba(107, 14, 30, 0.08), transparent 34%);
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    background 260ms ease,
    transform 420ms ease;
}

.meeting-sticky-demo::after {
  content: "";
  position: absolute;
  inset: 24px;
  z-index: -1;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 8px;
  background: linear-gradient(
    110deg,
    transparent 0 44%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 52% 100%
  );
  transform: translateX(-18%);
  animation: demoSweep 5.6s ease-in-out infinite;
}

.meeting-sticky-demo.is-switching::before {
  transform: translate3d(1%, -1%, 0) scale(1.05);
}

.meeting-progress {
  position: absolute;
  top: 22px;
  left: 32px;
  right: 32px;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.meeting-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.12);
  overflow: hidden;
}

.meeting-progress span::before {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: var(--stage);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.meeting-progress span.active::before {
  transform: scaleX(1);
}

.meeting-sticky-demo .context-window {
  transform: translateY(-38px);
}

.meeting-sticky-demo[data-stage="during"] .context-window {
  transform: translate(-16px, -46px) rotate(-1deg);
}

.meeting-sticky-demo[data-stage="after"] .context-window {
  transform: translate(10px, -34px) rotate(0.7deg);
}

.meeting-sticky-demo[data-stage="schedule"] .context-window {
  transform: translate(-6px, -54px) rotate(1.1deg);
}

.context-window {
  width: min(520px, 100%);
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  transition: transform 360ms ease;
}

.context-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.context-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d0bcc0;
}

.context-bar strong {
  margin-left: 8px;
  font-weight: 600;
  color: rgba(29, 29, 31, 0.66);
}

.context-body {
  padding: 22px;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 18px;
  padding: 0 10px;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  font-size: 12px;
  font-weight: 700;
}

.context-row {
  position: relative;
  overflow: hidden;
  height: 12px;
  width: 72%;
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.1);
  margin-bottom: 12px;
}

.context-row::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  transform: translateX(-120%);
  animation: rowScan 2.8s ease-in-out infinite;
}

.context-row.wide {
  width: 94%;
}

.context-row.short {
  width: 48%;
}

.signal-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}

.signal-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(29, 29, 31, 0.68);
  font-size: 12px;
  font-weight: 650;
  box-shadow: 0 8px 24px rgba(107, 14, 30, 0.06);
}

.signal-chip:nth-child(2) {
  transform: translateY(6px);
}

.signal-chip:nth-child(3) {
  transform: translateY(-4px);
}

.context-card {
  margin-top: 28px;
  padding: 20px;
  min-height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(250, 247, 242, 0.72);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.context-card span {
  color: var(--stage);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.context-card strong {
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.meeting-output-panel {
  left: auto;
  right: 20px;
  bottom: 54px;
  width: min(420px, 82%);
  transition:
    right 360ms ease,
    bottom 360ms ease,
    transform 360ms ease;
}

.meeting-sticky-demo[data-stage="during"] .meeting-output-panel {
  right: 54px;
  bottom: 76px;
}

.meeting-sticky-demo[data-stage="after"] .meeting-output-panel {
  right: 28px;
  bottom: 36px;
}

.meeting-sticky-demo[data-stage="schedule"] .meeting-output-panel {
  right: 70px;
  bottom: 92px;
}

.meeting-sticky-demo.is-switching .context-card,
.meeting-sticky-demo.is-switching .meeting-output-panel {
  animation: panelIn 420ms ease both;
}

.meeting-sticky-demo.is-switching .signal-chip {
  animation: chipIn 360ms ease both;
}

.meeting-sticky-demo.is-switching .signal-chip:nth-child(2) {
  animation-delay: 50ms;
}

.meeting-sticky-demo.is-switching .signal-chip:nth-child(3) {
  animation-delay: 100ms;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.journey-card {
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.journey-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.journey-card h3 {
  margin: 36px 0 10px;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.journey-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.source-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.source-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 11px 15px;
  color: rgba(29, 29, 31, 0.72);
  font-size: 14px;
}

.usecase-flow {
  padding-top: 40px;
}

.flow-header {
  max-width: none;
  text-align: center;
  margin-bottom: 72px;
}

.flow-stack {
  display: grid;
  gap: 18px;
}

.flow-panel {
  --stage: #6b0e1e;
  --stage-soft: rgba(107, 14, 30, 0.12);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 28px;
  align-items: stretch;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 1px),
      rgba(107, 14, 30, 0.08) calc(33.333% - 1px),
      rgba(107, 14, 30, 0.08) 33.333%,
      transparent 33.333%
    ),
    linear-gradient(
      to right,
      transparent calc(66.666% - 1px),
      rgba(107, 14, 30, 0.08) calc(66.666% - 1px),
      rgba(107, 14, 30, 0.08) 66.666%,
      transparent 66.666%
    ),
    rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.flow-panel[data-flow="2"] {
  --stage: #4a0a14;
  --stage-soft: rgba(14, 118, 110, 0.13);
}

.flow-panel[data-flow="3"] {
  --stage: #e8c95c;
  --stage-soft: rgba(182, 92, 18, 0.14);
}

.flow-panel[data-flow="4"] {
  --stage: #8a1326;
  --stage-soft: rgba(124, 58, 237, 0.12);
}

.flow-copy {
  align-self: center;
  max-width: 500px;
}

.flow-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.flow-copy h3 {
  margin: 22px 0 14px;
  color: #1d1d1f;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.flow-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.flow-demo {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-shell {
  position: relative;
  width: min(560px, 100%);
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(circle at 24% 18%, var(--stage-soft), transparent 30%),
    rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.flow-shell::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 8px;
  background: linear-gradient(
    110deg,
    transparent 0 43%,
    rgba(255, 255, 255, 0.5) 48%,
    transparent 53% 100%
  );
  animation: demoSweep 5.8s ease-in-out infinite;
}

.flow-source {
  position: absolute;
  top: 30px;
  left: 30px;
  right: 30px;
  z-index: 1;
  min-height: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.flow-source span {
  display: block;
  margin-bottom: 8px;
  color: var(--stage);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flow-source strong {
  display: block;
  color: #1d1d1f;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.flow-lines {
  position: absolute;
  top: 154px;
  left: 48px;
  right: 48px;
  display: grid;
  gap: 13px;
}

.flow-lines i {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.1);
  overflow: hidden;
}

.flow-lines i:nth-child(2) {
  width: 78%;
}

.flow-lines i:nth-child(3) {
  width: 54%;
}

.flow-lines i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.9),
    transparent
  );
  animation: rowScan 2.9s ease-in-out infinite;
}

.flow-answer {
  position: absolute;
  left: 72px;
  right: 30px;
  bottom: 34px;
  z-index: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(107, 14, 30, 0.16);
  overflow: hidden;
}

.flow-answer .panel-top {
  background: rgba(255, 255, 255, 0.72);
}

.flow-answer .command {
  padding-bottom: 12px;
}

.flow-answer .panel-result {
  padding-bottom: 20px;
}

.invoke-panel {
  position: absolute;
  left: 5%;
  bottom: 34px;
  width: min(390px, 90%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(107, 14, 30, 0.18);
  overflow: hidden;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.panel-dots {
  display: flex;
  gap: 5px;
}

.panel-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0bcc0;
}

.command {
  margin: 0;
  padding: 18px;
  color: #1d1d1f;
  font-size: 15px;
  line-height: 1.45;
}

.panel-action {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 18px 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  font-size: 12px;
  font-weight: 750;
}

.panel-result {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.result-line {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.meeting-sticky-demo.is-switching .result-line {
  animation: resultIn 300ms ease both;
}

.meeting-sticky-demo.is-switching .result-line:nth-child(2) {
  animation-delay: 45ms;
}

.meeting-sticky-demo.is-switching .result-line:nth-child(3) {
  animation-delay: 90ms;
}

.meeting-sticky-demo.is-switching .result-line:nth-child(4) {
  animation-delay: 135ms;
}

.result-line::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--stage, var(--blue));
}

@keyframes demoSweep {
  0%,
  34% {
    transform: translateX(-35%);
    opacity: 0;
  }
  52% {
    opacity: 1;
  }
  100% {
    transform: translateX(35%);
    opacity: 0;
  }
}

@keyframes rowScan {
  0%,
  25% {
    transform: translateX(-120%);
  }
  72%,
  100% {
    transform: translateX(260%);
  }
}

@keyframes panelIn {
  from {
    opacity: 0.55;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chipIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
  }
}

@keyframes resultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 82px 0;
  scroll-margin-top: 110px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.section h2 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.06;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.section-lede {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 18px;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 14, 30, 0.18) transparent;
}

.case-rail::-webkit-scrollbar {
  height: 8px;
}

.case-rail::-webkit-scrollbar-track {
  background: transparent;
}

.case-rail::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.16);
}

.case-rail .case-card {
  flex: 0 0 clamp(286px, 31vw, 342px);
  scroll-snap-align: start;
}

.case-card {
  min-height: 198px;
  padding: 24px 26px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(107, 14, 30, 0.12);
  border-radius: 8px;
  background: #faf7f2;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(107, 14, 30, 0.045);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.case-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(254, 248, 230, 0) 0%,
    rgba(254, 248, 230, 0.78) 52%,
    #faf7f2 100%
  );
  pointer-events: none;
}

.case-card-art {
  position: absolute;
  top: 10px;
  left: 18px;
  z-index: 0;
  width: calc(100% - 36px);
  height: 76%;
  object-fit: contain;
  object-position: center top;
  opacity: 0.9;
  transform: scale(0.96);
  transform-origin: center top;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.case-card:hover,
.case-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(107, 14, 30, 0.35);
}

.case-card:hover .case-card-art,
.case-card:focus-visible .case-card-art {
  opacity: 1;
  transform: scale(0.99);
}

.case-card-icon {
  width: 58px;
  height: 58px;
  display: inline-grid;
  place-items: center;
  color: #1d1d1f;
}

.case-card-icon svg {
  width: 50px;
  height: 50px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 14px rgba(107, 14, 30, 0.08));
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.case-card:hover .case-card-icon svg,
.case-card:focus-visible .case-card-icon svg {
  color: var(--blue);
  transform: rotate(-2deg) translateY(-2px);
}

.case-card-copy {
  position: relative;
  z-index: 2;
  width: min(86%, 360px);
  margin-top: auto;
}

.card-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.case-card h3 {
  margin: 0 0 10px;
  color: #1d1d1f;
  font-size: 26px;
  line-height: 1.05;
  font-weight: 530;
  letter-spacing: -0.035em;
}

.case-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.card-foot {
  margin-top: 24px;
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 900px) {
  .case-card {
    min-height: 178px;
  }

  .case-card-copy {
    width: min(82%, 360px);
  }
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
}

.sticky-copy {
  position: sticky;
  top: 106px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
}

.task-item h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.task-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.output-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.output-card,
.compare-box,
.trust-box,
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
}

.output-card {
  padding: 20px;
}

.output-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.output-card ul,
.trust-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.output-card li,
.trust-box li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  padding: 20px;
}

.step-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 750;
  margin-bottom: 28px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.compare-box,
.trust-box {
  padding: 24px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compare-box h3,
.trust-box h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.compare-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.audience-card {
  min-height: 190px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
}

.audience-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.audience-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.approval-section {
  width: 100%;
  max-width: none;
  padding: 86px 0;
  background: transparent;
  border-block: 0;
}

.approval-panel {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 58px;
  align-items: start;
}

.approval-panel > div:first-child {
  position: relative;
  padding-top: 34px;
}

.approval-ip-accent {
  position: absolute;
  top: -52px;
  right: 8px;
  width: clamp(74px, 7vw, 108px);
  animation: sectionIpFloat 5.8s ease-in-out infinite;
}

.approval-panel h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.approval-panel > div > p {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.approval-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.approval-card {
  min-height: 176px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.approval-card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.approval-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.faq-item {
  padding: 20px;
}

.faq-item h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.cta-band {
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto 72px;
  padding: 58px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #1d1d1f;
  color: #fff;
}

.cta-band h2 {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.68);
  margin: 18px auto 28px;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.5;
}

.cta-band .button-primary {
  background: #fff;
  color: #1d1d1f;
}

.footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 48px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--faint);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

.footer a {
  text-decoration: none;
}

/* Footer (verbatim port of homepage footer — all visual styles inline in markup).
   The snapshot from /home-footer.html uses Tailwind utility classes that don't resolve
   here (no Tailwind compiler). Translate the exact ones used in the footer to real CSS
   so the layout matches production. */
.home-footer .flex {
  display: flex;
}
.home-footer .flex-col {
  flex-direction: column;
}
.home-footer .items-start {
  align-items: flex-start;
}
.home-footer .gap-6 {
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .home-footer .max-md\:\!px-5 {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
  .home-footer .max-md\:\!grid-cols-1 {
    grid-template-columns: 1fr !important;
  }
  .home-footer .max-md\:\!gap-10 {
    gap: 2.5rem !important;
  }
  .home-footer .max-md\:\!px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .home-footer .max-md\:\!py-12 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .home-footer .max-md\:\!min-h-\[210px\] {
    min-height: 210px !important;
  }
  .home-footer .max-md\:\!flex-col {
    flex-direction: column !important;
  }
  .home-footer .max-md\:\!items-start {
    align-items: flex-start !important;
  }
}

.home-footer-link:hover,
.home-footer-link:focus-visible {
  color: #1d1d1f !important;
}

.home-footer .home-footer-bottom a:hover,
.home-footer .home-footer-bottom a:focus-visible {
  color: #1d1d1f !important;
}

@media (max-width: 768px) {
  .home-nav-links {
    display: none;
  }

  .home-menu-button {
    display: flex;
  }

  .home-mobile-drawer:not([hidden]) {
    display: flex;
  }

  .home-footer-inner {
    padding: 18px 20px 38px !important;
  }

  .home-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 48px 8px 40px !important;
  }

  .home-footer-wordmark {
    min-height: 210px !important;
  }

  .home-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    width: min(100% - 32px, 1120px);
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links > .nav-link:not(.nav-cta) {
    display: none;
  }

  .dropdown {
    display: block;
    padding: 24px 0;
  }

  .dropdown-panel {
    left: auto;
    right: -112px;
    width: min(360px, calc(100vw - 24px));
    grid-template-columns: 1fr;
    transform: translateY(8px);
  }

  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel {
    transform: translateY(0);
  }

  .hero,
  .screen-stage,
  .section,
  .cta-band,
  .footer {
    width: min(100% - 32px, 1120px);
  }

  .screen-stage,
  .flow-panel,
  .meeting-scroll-layout,
  .split,
  .output-wrap,
  .compare-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .case-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .stage-copy {
    padding: 36px 22px 0;
  }

  .meeting-demo-copy {
    padding: 34px 22px 8px;
  }

  .meeting-demo-visual {
    min-height: 500px;
    padding: 18px 14px 32px;
  }

  .meeting-sticky-demo {
    position: relative;
    top: auto;
    min-height: 560px;
    order: -1;
  }

  .scroll-step {
    min-height: auto;
    padding: 22px;
  }

  .meeting-output-panel {
    right: 22px;
    bottom: 28px;
    width: min(390px, calc(100% - 44px));
  }

  .usecase-flow {
    padding-top: 66px;
  }

  .flow-panel {
    min-height: auto;
    padding: 22px;
    gap: 24px;
  }

  .flow-copy {
    align-self: start;
  }

  .flow-demo {
    min-height: 430px;
  }

  .flow-source {
    top: 18px;
    left: 18px;
    right: 18px;
  }

  .flow-lines {
    top: 140px;
    left: 34px;
    right: 34px;
  }

  .flow-answer {
    left: 18px;
    right: 18px;
    bottom: 20px;
  }

  .journey-grid {
    grid-template-columns: 1fr;
  }

  .stage-visual {
    min-height: 350px;
  }

  .sticky-copy {
    position: static;
  }

  .footer {
    flex-direction: column;
  }
}

/* Scenario cards: CSV-driven playbook panels */
.flow-copy h3 {
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  text-wrap: pretty;
}

.say-this {
  margin-top: 22px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--stage);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.say-this span {
  display: block;
  margin-bottom: 8px;
  color: var(--stage);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.say-this p {
  margin: 0;
  color: #1d1d1f;
  font-size: 16px;
  line-height: 1.5;
}

.needs-chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.needs-chips .needs-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.needs-chips .chip {
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 999px;
  background: var(--stage-soft);
  color: var(--stage);
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
}

.flow-copy .scenario-fallback {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.flow-safety {
  padding: 12px 18px 14px;
  border-top: 1px solid var(--line);
  background: rgba(107, 14, 30, 0.025);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Scenario demo playback */
.notch-scene .result-line,
.notch-scene .flow-safety {
  transition:
    opacity 0.32s ease,
    transform 0.32s ease;
}

.notch-scene.demo-waiting .result-line {
  opacity: 0;
  transform: translateY(8px);
}

.notch-scene.demo-waiting .result-line.shown {
  opacity: 1;
  transform: none;
}

.notch-scene.demo-waiting .flow-safety {
  opacity: 0;
}

.notch-scene.demo-waiting .flow-safety.shown {
  opacity: 1;
}

.notch-panel .command.typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  background: #1d1d1f;
  vertical-align: -0.15em;
  animation: caretBlink 0.8s steps(1) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.panel-dots.thinking span {
  animation: dotPulse 0.9s ease-in-out infinite;
}

.panel-dots.thinking span:nth-child(2) {
  animation-delay: 0.15s;
}

.panel-dots.thinking span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes dotPulse {
  50% {
    background: var(--stage, #6b0e1e);
    transform: translateY(-2px);
  }
}

/* Scroll-in reveals */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* Hover feedback */
.step,
.output-card,
.compare-box,
.trust-box,
.faq-item {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.step:hover,
.output-card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  border-color: rgba(107, 14, 30, 0.3);
  background: #fff;
  box-shadow: 0 14px 34px rgba(107, 14, 30, 0.08);
}

.compare-box:hover,
.trust-box:hover {
  border-color: rgba(107, 14, 30, 0.3);
  box-shadow: 0 14px 34px rgba(107, 14, 30, 0.08);
}

.case-card:hover,
.case-card:focus-visible {
  box-shadow: 0 16px 40px rgba(107, 14, 30, 0.1);
}

.flow-panel {
  transition:
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.flow-panel:hover {
  border-color: rgba(107, 14, 30, 0.18);
  box-shadow: 0 18px 50px var(--stage-soft);
}

.source-chip {
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.source-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 14, 30, 0.3);
  background: #fff;
}

.needs-chips .chip {
  transition:
    transform 160ms ease,
    filter 160ms ease;
}

.needs-chips .chip:hover {
  transform: translateY(-1px);
  filter: brightness(0.97);
}

.button-primary,
.button-secondary,
.nav-cta {
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.button-primary:hover,
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(107, 14, 30, 0.28);
}

.button-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(107, 14, 30, 0.35);
  background: #fff;
}

/* ----- Bold toC layer ----- */

/* Warmer, rounder shapes */
.case-card,
.step,
.output-card,
.compare-box,
.trust-box,
.faq-item,
.flow-panel,
.invoke-panel {
  border-radius: 20px;
}

.flow-shell {
  border-radius: 26px;
}

.flow-source,
.flow-answer,
.say-this {
  border-radius: 14px;
}

.button-primary,
.button-secondary,
.nav-cta {
  border-radius: 999px;
}

/* Hero: glow, mascot, pill kicker */
.hero {
  position: relative;
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(64px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-glow-a {
  width: 440px;
  height: 440px;
  top: -80px;
  right: 4%;
  background: radial-gradient(
    circle,
    var(--glow-burgundy),
    transparent 65%
  );
  animation: glowDrift 11s ease-in-out infinite alternate;
}

.hero-glow-b {
  width: 380px;
  height: 380px;
  bottom: -90px;
  left: -70px;
  background: radial-gradient(
    circle,
    var(--glow-sand),
    transparent 65%
  );
  animation: glowDrift 14s 1s ease-in-out infinite alternate-reverse;
}

@keyframes glowDrift {
  to {
    transform: translate(44px, 26px) scale(1.08);
  }
}

.hero-usecase-art {
  width: clamp(96px, 11vw, 144px);
  height: auto;
  margin: 0 auto 18px;
  display: block;
  object-fit: contain;
  animation: usecaseArtBreathe 4.8s ease-in-out infinite;
  filter: drop-shadow(0 20px 36px rgba(107, 14, 30, 0.18));
  pointer-events: none;
  user-select: none;
}

@keyframes usecaseArtBreathe {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
}

.hero-ip {
  position: absolute;
  width: 140px;
  top: 40px;
  right: calc(50% - 620px);
  animation: ipFloat 4.6s ease-in-out infinite;
  filter: drop-shadow(0 18px 30px rgba(107, 14, 30, 0.22));
  pointer-events: none;
}

@media (max-width: 1300px) {
  .hero-ip {
    display: none;
  }
}

@keyframes ipFloat {
  50% {
    transform: translateY(-12px) rotate(-3deg);
  }
}

.kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--blue-soft);
  border: 1px solid rgba(107, 14, 30, 0.18);
  color: var(--blue);
}

/* Brighter per-card theme colors */
.flow-panel {
  --stage: #6b0e1e;
  --stage-soft: rgba(107, 14, 30, 0.12);
}

.flow-panel[data-flow="2"] {
  --stage: #4a0a14;
  --stage-soft: rgba(74, 10, 20, 0.14);
}

.flow-panel[data-flow="3"] {
  --stage: #e8c95c;
  --stage-soft: rgba(232, 201, 92, 0.14);
}

.flow-panel[data-flow="4"] {
  --stage: #8a1326;
  --stage-soft: rgba(138, 19, 38, 0.13);
}

/* Mascot status line in the demo panel */
.flow-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.flow-status img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex: 0 0 auto;
}

.flow-status.working img {
  animation: ipWiggle 1.1s ease-in-out infinite;
}

@keyframes ipWiggle {
  50% {
    transform: translateY(-3px) rotate(-7deg);
  }
}

/* Section rhythm: rounded color blocks */
.section:has(.how-grid),
.section:has(.faq-grid) {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 64px 56px;
  box-shadow: 0 18px 60px rgba(107, 14, 30, 0.05);
}

.section:has(.output-wrap) {
  background: linear-gradient(135deg, #f5ecee 0%, #fef8e6 100%);
  border-radius: 32px;
  padding: 64px 56px;
}

/* Gradient CTA band with mascot */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(125deg, #6b0e1e 0%, #8a1326 55%, #d4a0b0 100%);
}

.cta-ip {
  position: absolute;
  right: 40px;
  bottom: -16px;
  width: 150px;
  animation: ipFloat 5s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 900px) {
  .section:has(.how-grid),
  .section:has(.faq-grid),
  .section:has(.output-wrap) {
    padding: 40px 22px;
    border-radius: 24px;
  }

  .cta-ip {
    width: 96px;
    right: 18px;
  }
}

/* ----- Open layout: fewer boxes, more typography ----- */

h1 em,
h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
}

/* How it works: open columns, ghost numbers, hairlines */
.section:has(.how-grid) {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.how-grid {
  gap: 36px;
}

.step,
.step:hover {
  border: 0;
  border-top: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  padding: 26px 0 0;
  transform: none;
  box-shadow: none;
}

.step-number {
  width: auto;
  height: auto;
  display: block;
  background: transparent;
  color: rgba(107, 14, 30, 0.32);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 16px;
}

/* Scenario panels: shed the shell, zigzag, tilted demo windows */
.flow-stack {
  gap: 100px;
}

.flow-panel,
.flow-panel:hover {
  min-height: auto;
  border: 0;
  border-radius: 0;
  background: none;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}

.flow-panel:nth-child(even) {
  grid-template-columns: minmax(420px, 1.2fr) minmax(280px, 0.8fr);
}

.flow-panel:nth-child(even) .flow-copy {
  order: 2;
}

.flow-panel:nth-child(even) .flow-demo {
  order: 1;
}

.say-this {
  border: 0;
  border-left: 3px solid var(--stage);
  border-radius: 0;
  background: transparent;
  padding: 6px 0 6px 20px;
}

.say-this p {
  font-style: normal;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  color: #1a040a;
}

.flow-shell {
  box-shadow: 0 30px 70px rgba(107, 14, 30, 0.13);
  transition: transform 320ms ease;
}

.flow-panel:nth-child(odd) .notch-scene {
  transform: rotate(0.7deg);
}

.flow-panel:nth-child(even) .notch-scene {
  transform: rotate(-0.7deg);
}

.flow-panel:hover .notch-scene {
  transform: rotate(0deg);
}

/* What you get: open checklist + chips inside the color band */
.output-card,
.output-card:hover {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  transform: none;
}

.output-card li {
  font-size: 16px;
  color: rgba(29, 29, 31, 0.78);
}

.output-card:first-child li {
  display: flex;
  gap: 10px;
}

.output-card:first-child li::before {
  content: "✓";
  color: var(--blue);
  font-weight: 700;
  flex: 0 0 auto;
}

.output-card:last-child ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.output-card:last-child li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Compare / trust: two open columns, one divider */
.compare-grid {
  gap: 0;
}

.compare-box,
.trust-box,
.compare-box:hover,
.trust-box:hover {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.compare-box {
  padding: 8px 48px 8px 0;
}

.trust-box {
  padding: 8px 0 8px 48px;
  border-left: 1px solid var(--line-strong);
}

/* FAQ: hairline-divided list */
.section:has(.faq-grid) {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.faq-grid {
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 860px;
}

.faq-item,
.faq-item:hover {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 24px 0;
  transform: none;
  box-shadow: none;
}

/* Springier reveals */
.reveal {
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (max-width: 1100px) {
  .flow-panel:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .flow-panel:nth-child(even) .flow-copy {
    order: 0;
  }

  .flow-panel:nth-child(even) .flow-demo {
    order: 0;
  }

  .flow-stack {
    gap: 64px;
  }

  .compare-grid {
    gap: 28px;
  }

  .compare-box {
    padding: 0;
  }

  .trust-box {
    padding: 28px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .audience-grid,
  .approval-panel,
  .approval-grid {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 0;
  }

  .approval-panel {
    gap: 32px;
  }

  .approval-card {
    min-height: 0;
  }
}

/* ----- Notch demo scene: replica of the real blolp overlay ----- */
.notch-scene {
  position: relative;
  width: min(560px, 100%);
  border-radius: 26px;
  padding: 28px 28px 104px;
  overflow: hidden;
  background:
    radial-gradient(
      90% 70% at 85% 8%,
      rgba(255, 255, 255, 0.5),
      transparent 55%
    ),
    repeating-linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.14) 0 70px,
      rgba(255, 255, 255, 0) 70px 150px
    ),
    linear-gradient(140deg, #d4a0b0 0%, #8a1326 45%, #d4a0b0 100%);
  box-shadow: 0 30px 70px rgba(107, 14, 30, 0.13);
  transition: transform 320ms ease;
}

.notch-ip {
  position: absolute;
  bottom: 14px;
  right: 34px;
  width: 88px;
  animation: ipFloat 4.6s ease-in-out infinite;
  filter: drop-shadow(0 12px 22px rgba(20, 35, 90, 0.25));
  pointer-events: none;
}

.notch-panel {
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(107, 14, 30, 0.28);
  overflow: hidden;
  text-align: left;
}

.notch-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
}

.notch-app {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 14.5px;
  color: #1d1d1f;
}

.notch-app i {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: linear-gradient(135deg, #6b0e1e, #6b0e1e);
  flex: 0 0 auto;
}

.notch-close {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--muted);
  background: #fff;
}

.notch-panel .flow-status {
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  gap: 10px;
  font-size: 13px;
  color: rgba(29, 29, 31, 0.72);
}

.spark {
  color: var(--blue);
  font-size: 15px;
  line-height: 1;
}

.flow-status.working .spark {
  animation: sparkPulse 1s ease-in-out infinite;
}

@keyframes sparkPulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8) rotate(20deg);
  }
}

.notch-result {
  margin-top: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(107, 14, 30, 0.22);
  overflow: hidden;
  text-align: left;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.notch-scene.demo-waiting .notch-result {
  opacity: 0;
  transform: translateY(10px);
}

.notch-scene.demo-waiting .notch-result.shown {
  opacity: 1;
  transform: none;
}

.notch-result .panel-result {
  padding: 14px 16px 12px;
}

.notch-scene .flow-safety {
  padding: 10px 16px 12px;
  font-size: 12px;
}

.notch-input {
  position: relative;
  margin: 10px 14px 14px;
  border: 1.5px solid rgba(107, 14, 30, 0.5);
  border-radius: 14px;
  padding: 13px 46px 13px 14px;
  background: #fff;
}

.notch-panel .command {
  margin: 0;
  padding: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #1d1d1f;
}

.notch-panel .command:empty::before {
  content: "Tell me what you want…";
  color: var(--faint);
}

.notch-send {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

/* Messages focused scene: static thread canvas with blolp floating beside it. */
body[data-page="messages"] .message-focused-scene {
  --message-focused-cycle: 12s;
  position: relative;
  width: min(560px, 100%);
  min-height: 610px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  isolation: isolate;
}

body[data-page="messages"] .message-focused-frame {
  position: relative;
  width: min(450px, calc(100% - 58px));
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 28px;
  background: #e8c95c;
  box-shadow: 0 34px 90px rgba(107, 14, 30, 0.18);
  isolation: isolate;
}

body[data-page="messages"] .message-focused-thread {
  position: absolute;
  z-index: 2;
  top: 50px;
  left: 34px;
  right: 34px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

body[data-page="messages"] .message-focused-bubble {
  margin: 0;
  max-width: 80%;
  padding: 12px 15px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.24;
  font-weight: 400;
  letter-spacing: 0;
  box-shadow: 0 12px 28px rgba(31, 24, 20, 0.12);
}

body[data-page="messages"] .message-focused-bubble.is-light {
  align-self: flex-start;
  border-bottom-left-radius: 7px;
  background: rgba(255, 252, 245, 0.94);
  color: #1a040a;
}

body[data-page="messages"] .message-focused-bubble.is-dark {
  align-self: flex-end;
  border-bottom-right-radius: 7px;
  background: #3a0710;
  color: rgba(255, 255, 255, 0.92);
}

body[data-page="messages"] .message-focused-bubble.is-short {
  max-width: 67%;
}

body[data-page="messages"] .message-focused-bubble.is-sent,
body[data-page="messages"] .message-focused-bubble.is-positive {
  max-width: 84%;
  padding: 10px 13px;
  font-size: 13.5px;
  line-height: 1.22;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  will-change: opacity, transform;
}

body[data-page="messages"] .message-focused-bubble.is-sent {
  animation: messageFocusedSentBubble var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-bubble.is-positive {
  max-width: 66%;
  animation: messageFocusedPositiveBubble var(--message-focused-cycle)
    ease-in-out infinite;
}

body[data-page="messages"] .message-focused-files {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -1px 0 1px 3px;
}

body[data-page="messages"] .message-focused-files span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 174px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(27, 28, 31, 0.72);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(31, 24, 20, 0.08);
}

body[data-page="messages"] .message-focused-files span::before {
  content: "";
  width: 8px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: rgba(63, 104, 255, 0.72);
}

body[data-page="messages"] .message-focused-input {
  position: absolute;
  z-index: 5;
  left: 34px;
  right: 34px;
  bottom: 34px;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px 9px 19px;
  border: 2px solid rgba(63, 94, 186, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(47, 33, 24, 0.16);
  overflow: hidden;
  animation: messageFocusedInputHandoff var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-caret {
  width: 2px;
  height: 27px;
  border-radius: 999px;
  background: #1a040a;
}

body[data-page="messages"] .message-focused-placeholder {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: rgba(20, 24, 36, 0.45);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  animation: messageFocusedPlaceholder var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-draft-text {
  position: absolute;
  left: 51px;
  right: 66px;
  top: 50%;
  min-width: 0;
  overflow: hidden;
  color: rgba(20, 24, 36, 0.78);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(calc(-50% + 6px));
  animation: messageFocusedDraftText var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-send {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #6b0e1e;
  color: #fff;
  box-shadow: 0 8px 18px rgba(107, 14, 30, 0.22);
  animation: messageFocusedSend var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-ip {
  position: absolute;
  z-index: 4;
  right: -4px;
  bottom: 64px;
  width: 132px;
  height: 106px;
  pointer-events: none;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

body[data-page="messages"] .message-focused-ip img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(45, 72, 143, 0.2));
  will-change: opacity, transform;
}

body[data-page="messages"] .message-focused-ip-note {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 184px;
  width: 252px;
  padding: 12px 14px 13px;
  border-radius: 18px;
  border-bottom-right-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a040a;
  font-size: 13px;
  line-height: 1.26;
  box-shadow: 0 18px 34px rgba(31, 24, 20, 0.15);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

body[data-page="messages"] .message-focused-ip-note strong {
  font-weight: 600;
}

body[data-page="messages"] .message-focused-ip-note span {
  display: block;
  margin-top: 6px;
  color: rgba(23, 24, 28, 0.68);
  font-size: 12px;
  font-weight: 600;
}

body[data-page="messages"] .message-focused-ip-note.is-reading {
  right: 58px;
  width: 188px;
  animation: messageFocusedNoteReading var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-ip-note.is-result {
  right: -8px;
  animation: messageFocusedNoteResult var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-use-reply {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 82px;
  height: 30px;
  margin-top: 10px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: #6b0e1e;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 8px 16px rgba(107, 14, 30, 0.18);
  animation: messageFocusedUseButton var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-use-reply span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  grid-area: 1 / 1;
  margin: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

body[data-page="messages"] .message-focused-use-reply .use-label {
  animation: messageFocusedUseLabel var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-use-reply .used-label {
  opacity: 0;
  animation: messageFocusedUsedLabel var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-reading-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
  font-weight: 600;
}

body[data-page="messages"] .message-focused-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 1px;
}

body[data-page="messages"] .message-focused-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b0e1e;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

body[data-page="messages"] .message-focused-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

body[data-page="messages"] .message-focused-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

body[data-page="messages"] .message-focused-ip-idle {
  animation: messageFocusedIpIdle var(--message-focused-cycle) ease-in-out
    infinite;
}

body[data-page="messages"] .message-focused-ip-thinking {
  animation: messageFocusedIpThinking var(--message-focused-cycle) ease-in-out
    infinite;
}

@keyframes messageFocusedIpFloat {
  from {
    transform: translateY(3.5px) rotate(-1.5deg);
  }
  to {
    transform: translateY(-3.5px) rotate(1.5deg);
  }
}

@keyframes messageFocusedNoteReading {
  0%,
  23% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  28%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes messageFocusedNoteResult {
  0%,
  28% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  34%,
  53% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  58%,
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes messageFocusedIpIdle {
  0%,
  29% {
    opacity: 0;
    transform: scale(0.96);
  }
  35%,
  96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes messageFocusedIpThinking {
  0%,
  24% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  30%,
  100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@keyframes messageFocusedUseButton {
  0%,
  38% {
    transform: scale(1);
    background: #6b0e1e;
  }
  42% {
    transform: scale(0.94);
    background: #8a1326;
  }
  45%,
  56% {
    transform: scale(1);
    background: #8a6b3d;
  }
  60%,
  100% {
    transform: scale(0.98);
    background: #8a6b3d;
  }
}

@keyframes messageFocusedUseLabel {
  0%,
  41% {
    opacity: 1;
    transform: translateY(0);
  }
  44%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes messageFocusedUsedLabel {
  0%,
  43% {
    opacity: 0;
    transform: translateY(4px);
  }
  46%,
  56% {
    opacity: 1;
    transform: translateY(0);
  }
  60%,
  100% {
    opacity: 0;
    transform: translateY(-3px);
  }
}

@keyframes messageFocusedInputHandoff {
  0%,
  49% {
    border-color: rgba(63, 94, 186, 0.72);
  }
  54%,
  72% {
    border-color: rgba(107, 14, 30, 0.95);
    box-shadow:
      0 18px 38px rgba(47, 33, 24, 0.14),
      0 0 0 5px rgba(107, 14, 30, 0.08);
  }
  78%,
  100% {
    border-color: rgba(63, 94, 186, 0.72);
  }
}

@keyframes messageFocusedPlaceholder {
  0%,
  51% {
    opacity: 1;
    transform: translateY(0);
  }
  56%,
  75% {
    opacity: 0;
    transform: translateY(-4px);
  }
  80%,
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes messageFocusedDraftText {
  0%,
  51% {
    opacity: 0;
    transform: translateY(calc(-50% + 6px));
  }
  56%,
  72% {
    opacity: 1;
    transform: translateY(-50%);
  }
  78%,
  100% {
    opacity: 0;
    transform: translateY(calc(-50% - 5px));
  }
}

@keyframes messageFocusedSend {
  0%,
  64% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(107, 14, 30, 0.22);
  }
  70% {
    transform: scale(0.9);
    box-shadow: 0 6px 12px rgba(107, 14, 30, 0.18);
  }
  74%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 18px rgba(107, 14, 30, 0.22);
  }
}

@keyframes messageFocusedSentBubble {
  0%,
  69% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  75%,
  96% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes messageFocusedPositiveBubble {
  0%,
  80% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  86%,
  96% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes messageFocusedDot {
  0%,
  80%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  38% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* Static workspace canvas for the meetings use case. */
.flow-panel:has(.meeting-canvas-image-frame) {
  grid-template-columns: minmax(250px, 0.52fr) minmax(560px, 1.48fr);
  gap: 40px;
  align-items: center;
  min-height: 580px;
}

.flow-panel:has(.meeting-canvas-image-frame):nth-child(even) {
  grid-template-columns: minmax(560px, 1.48fr) minmax(250px, 0.52fr);
}

.flow-panel:has(.meeting-canvas-image-frame) .flow-copy {
  max-width: 350px;
}

.meeting-canvas-image-frame {
  position: relative;
  width: min(860px, 100%);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 24px;
  background: #f5ecee;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 80px rgba(107, 14, 30, 0.16),
    0 4px 14px rgba(107, 14, 30, 0.06);
}

.meeting-canvas-image-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.meeting-canvas-image {
  display: block;
  width: 100%;
  height: auto;
}

.meeting-schedule-interaction-frame {
  width: min(860px, 100%);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.meeting-schedule-interaction-frame::after {
  display: none;
}

.meeting-schedule-scene {
  --schedule-cycle: 7.8s;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.9;
  overflow: visible;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 13% 16%,
      rgba(255, 255, 255, 0.76),
      transparent 22%
    ),
    radial-gradient(
      circle at 82% 84%,
      rgba(255, 255, 255, 0.58),
      transparent 23%
    ),
    linear-gradient(135deg, #f5ecee 0%, #f5ecee 42%, #d4a0b0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 80px rgba(107, 14, 30, 0.16),
    0 4px 14px rgba(107, 14, 30, 0.06);
  isolation: isolate;
}

.meeting-schedule-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      transparent 0 22%,
      rgba(255, 255, 255, 0.24) 22% 23.4%,
      transparent 23.4% 43%,
      rgba(255, 255, 255, 0.16) 43% 44.4%,
      transparent 44.4% 100%
    ),
    radial-gradient(
      ellipse at 20% 46%,
      rgba(255, 255, 255, 0.45),
      transparent 21%
    ),
    radial-gradient(
      ellipse at 78% 18%,
      rgba(255, 255, 255, 0.32),
      transparent 18%
    );
  opacity: 0.75;
  pointer-events: none;
}

.meeting-schedule-window {
  position: absolute;
  inset: 10% 7.5% 11% 6.2%;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1.12fr) minmax(220px, 0.82fr);
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(32, 48, 76, 0.12);
}

.meeting-schedule-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding-top: 18px;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: #f7f4ec;
}

.meeting-schedule-rail span {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: rgba(107, 14, 30, 0.16);
}

.meeting-schedule-rail .is-active {
  background: #f5ecee;
  box-shadow: 0 0 0 7px rgba(107, 14, 30, 0.08);
}

.meeting-schedule-thread,
.meeting-schedule-calendar {
  min-width: 0;
  color: #1a040a;
}

.meeting-schedule-thread {
  border-right: 1px solid rgba(107, 14, 30, 0.08);
}

.meeting-schedule-topbar,
.meeting-schedule-calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 19px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
}

.meeting-schedule-topbar strong,
.meeting-schedule-calendar-head strong {
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: 0;
}

.meeting-schedule-topbar span,
.meeting-schedule-calendar-head span {
  color: rgba(21, 25, 35, 0.52);
  font-size: 10px;
  font-weight: 660;
}

.meeting-schedule-message-list {
  display: grid;
  grid-template-columns: 25px 1fr;
  column-gap: 10px;
  row-gap: 11px;
  padding: 18px 20px 20px;
}

.meeting-schedule-avatar {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fef8e6;
  color: rgba(21, 25, 35, 0.72);
  font-size: 8.2px;
  font-weight: 800;
}

.meeting-schedule-avatar.is-blue {
  background: #f5ecee;
}

.meeting-schedule-avatar.is-green {
  background: #f7f4ec;
}

.meeting-schedule-message,
.meeting-schedule-reply {
  min-width: 0;
}

.meeting-schedule-message strong {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 760;
}

.meeting-schedule-message p,
.meeting-schedule-reply {
  margin: 0;
  color: rgba(21, 25, 35, 0.69);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 590;
}

.meeting-schedule-selected-text {
  position: relative;
  display: grid;
  gap: 3px;
  margin-top: 9px;
  padding: 4px 6px;
  width: 94%;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(107, 14, 30, 0.14);
  color: #8a1326;
  font-size: 9.5px;
  line-height: 1.25;
  font-weight: 720;
  animation: meetingScheduleSelectionPulse var(--schedule-cycle) ease-in-out
    infinite;
}

.meeting-schedule-selected-text::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.42),
    transparent
  );
  transform: translateX(-120%);
  animation: meetingScheduleSelectionSweep var(--schedule-cycle) ease-in-out
    infinite;
}

.meeting-schedule-reply {
  width: fit-content;
  max-width: 78%;
  padding: 9px 10px;
  border-radius: 11px;
  background: #faf7f2;
}

.meeting-schedule-calendar {
  background: rgba(255, 255, 255, 0.78);
}

.meeting-schedule-day-grid {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 7px 8px;
  padding: 17px 18px;
}

.meeting-schedule-day-grid span {
  color: rgba(21, 25, 35, 0.48);
  font-size: 8.5px;
  font-weight: 700;
  text-align: right;
}

.meeting-schedule-day-grid i {
  min-height: 28px;
  border-top: 1px solid rgba(107, 14, 30, 0.08);
  color: rgba(21, 25, 35, 0.58);
  font-size: 8.6px;
  font-style: normal;
  font-weight: 700;
}

.meeting-schedule-day-grid .is-event,
.meeting-schedule-day-grid .is-draft {
  display: flex;
  align-items: center;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
}

.meeting-schedule-day-grid .is-event {
  background: rgba(107, 14, 30, 0.08);
}

.meeting-schedule-day-grid .is-draft {
  position: relative;
  background: rgba(107, 14, 30, 0.12);
  color: #6b0e1e;
  box-shadow: inset 0 0 0 1px rgba(107, 14, 30, 0.36);
  opacity: 0;
  transform: translateX(8px) scaleX(0.94);
  transform-origin: left center;
  animation: meetingScheduleDraftSlot var(--schedule-cycle) ease-in-out infinite;
  animation-delay: -3s;
}

.meeting-schedule-blolp-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
}

.meeting-schedule-selection-glow {
  position: absolute;
  left: 31.5%;
  top: 43%;
  width: 28%;
  height: 9.5%;
  border-radius: 8px;
  background: rgba(107, 14, 30, 0.16);
  opacity: 0;
  animation: meetingScheduleSelectionGlow var(--schedule-cycle) ease-in-out
    infinite;
  display: none;
}

.meeting-schedule-ip {
  position: absolute;
  right: -4.1%;
  bottom: 10.8%;
  width: 12.8%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

.meeting-schedule-ip img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(45, 72, 143, 0.2));
  will-change: opacity, transform;
}

.meeting-schedule-ip-bubble {
  position: absolute;
  right: -2.2%;
  bottom: 27.2%;
  width: min(270px, 35%);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

.meeting-schedule-ip-card {
  position: relative;
  padding: 16px 12px;
  border: 1px solid rgba(120, 126, 138, 0.34);
  border-radius: 12px;
  background: #ffffff;
  color: #1a040a;
  font-size: clamp(10px, 0.86vw, 14px);
  line-height: 1.2;
  font-weight: 650;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.meeting-schedule-ip-card::after,
.meeting-schedule-ip-card::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 14px;
  height: 7px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.meeting-schedule-ip-card::before {
  background: rgba(120, 126, 138, 0.34);
  transform: translateY(1px);
}

.meeting-schedule-ip-card::after {
  background: #ffffff;
}

.meeting-schedule-ip-card strong {
  display: block;
  margin: 0 0 4px;
  color: #1a040a;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.1;
  font-weight: 650;
}

.meeting-schedule-ip-card > span:not(.meeting-schedule-dots) {
  display: block;
  color: rgba(21, 25, 35, 0.68);
  font-size: 0.92em;
  font-weight: 560;
}

.meeting-schedule-ip-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-bottom: 6px;
}

.meeting-schedule-ip-actions span {
  display: inline-flex;
  align-items: center;
  min-width: 36px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid rgba(120, 126, 138, 0.34);
  border-radius: 999px;
  background: #ffffff;
  color: rgba(21, 25, 35, 0.62);
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.meeting-schedule-ip-actions .is-primary {
  color: rgba(21, 25, 35, 0.72);
}

.meeting-schedule-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

.meeting-schedule-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b0e1e;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.meeting-schedule-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.meeting-schedule-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

.meeting-schedule-ip-bubble.is-reading {
  width: min(210px, 29%);
  animation: meetingScheduleReadingBubble var(--schedule-cycle) ease-in-out
    infinite;
  animation-delay: -3s;
}

.meeting-schedule-ip-bubble.is-result {
  animation: meetingScheduleResultBubble var(--schedule-cycle) ease-in-out
    infinite;
  animation-delay: -3s;
}

.meeting-schedule-ip-idle {
  animation: meetingScheduleIpIdle var(--schedule-cycle) ease-in-out infinite;
  animation-delay: -3s;
}

.meeting-schedule-ip-thinking {
  animation: meetingScheduleIpThinking var(--schedule-cycle) ease-in-out
    infinite;
  animation-delay: -3s;
}

@keyframes meetingScheduleSelectionPulse {
  0%,
  18% {
    box-shadow: inset 0 0 0 1px rgba(107, 14, 30, 0.1);
  }
  24%,
  62% {
    box-shadow:
      inset 0 0 0 1px rgba(107, 14, 30, 0.34),
      0 0 0 3px rgba(107, 14, 30, 0.06);
  }
  76%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(107, 14, 30, 0.1);
  }
}

@keyframes meetingScheduleSelectionSweep {
  0%,
  10% {
    transform: translateX(-120%);
  }
  22%,
  38% {
    transform: translateX(120%);
  }
  39%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes meetingScheduleSelectionGlow {
  0%,
  16%,
  78%,
  100% {
    opacity: 0;
    transform: scale(0.96);
  }
  23%,
  52% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes meetingScheduleReadingBubble {
  0%,
  18% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  25%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes meetingScheduleResultBubble {
  0%,
  24% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  32%,
  92% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  98%,
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes meetingScheduleDraftSlot {
  0%,
  26% {
    opacity: 0;
    transform: translateX(8px) scaleX(0.94);
  }
  34%,
  94% {
    opacity: 1;
    transform: translateX(0) scaleX(1);
  }
  99%,
  100% {
    opacity: 0;
    transform: translateX(6px) scaleX(0.98);
  }
}

@keyframes meetingScheduleIpIdle {
  0%,
  24% {
    opacity: 0;
    transform: scale(0.96);
  }
  32%,
  96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes meetingScheduleIpThinking {
  0%,
  20% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  28%,
  100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

.meeting-prep-interaction-frame {
  width: min(560px, 100%);
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.meeting-prep-interaction-frame::after {
  display: none;
}

.meeting-prep-scene {
  --meeting-prep-cycle: 8.5s;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: visible;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 22% 6%,
      rgba(255, 255, 255, 0.72),
      transparent 28%
    ),
    radial-gradient(
      circle at 76% 90%,
      rgba(255, 255, 255, 0.62),
      transparent 26%
    ),
    linear-gradient(135deg, #f0e6e8 0%, #f5ecee 48%, #d4a0b0 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 34px 80px rgba(107, 14, 30, 0.16),
    0 4px 14px rgba(107, 14, 30, 0.06);
  isolation: isolate;
}

.meeting-prep-scene::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(
      120deg,
      transparent 0 18%,
      rgba(255, 255, 255, 0.24) 18% 19%,
      transparent 19% 34%,
      rgba(255, 255, 255, 0.18) 34% 35%,
      transparent 35% 100%
    ),
    radial-gradient(
      ellipse at 16% 40%,
      rgba(255, 255, 255, 0.52),
      transparent 22%
    ),
    radial-gradient(
      ellipse at 78% 18%,
      rgba(255, 255, 255, 0.34),
      transparent 18%
    );
  opacity: 0.75;
  pointer-events: none;
}

.meeting-prep-app {
  position: absolute;
  inset: 11% 10% 12%;
  z-index: 1;
  display: grid;
  grid-template-columns: 44% 1fr;
  grid-template-rows: minmax(118px, 0.88fr) 1fr;
  gap: 12px;
}

.meeting-prep-calendar-card,
.meeting-prep-agenda-card,
.meeting-prep-source-card {
  min-width: 0;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 34px rgba(32, 48, 76, 0.1);
}

.meeting-prep-calendar-card {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 17px 18px;
  color: #1a040a;
}

.meeting-prep-kicker,
.meeting-prep-label,
.meeting-prep-source-card span {
  display: block;
  color: rgba(23, 27, 37, 0.52);
  font-size: 9.5px;
  font-weight: 760;
  letter-spacing: 0.02em;
}

.meeting-prep-kicker {
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.11);
  color: #8a1326;
}

.meeting-prep-calendar-card strong {
  display: block;
  margin-bottom: 6px;
  color: #1a040a;
  font-size: 15px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: 0;
}

.meeting-prep-calendar-card > span:not(.meeting-prep-kicker) {
  color: rgba(20, 24, 33, 0.58);
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0;
}

.meeting-prep-attendees {
  display: flex;
  margin-top: 14px;
}

.meeting-prep-attendees i {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  margin-right: -6px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #f5ecee;
  color: rgba(23, 27, 37, 0.72);
  font-size: 8.5px;
  font-style: normal;
  font-weight: 780;
}

.meeting-prep-attendees i:nth-child(2) {
  background: #fef8e6;
}

.meeting-prep-attendees i:nth-child(3) {
  background: #f7f4ec;
}

.meeting-prep-attendees i:nth-child(4) {
  background: #f5ecee;
}

.meeting-prep-agenda-card {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding: 18px 18px 16px;
  color: #1a040a;
}

.meeting-prep-agenda-card ul {
  margin: 0 0 18px;
  padding-left: 15px;
  color: rgba(23, 27, 37, 0.72);
  font-size: 10.5px;
  line-height: 1.65;
  font-weight: 610;
}

.meeting-prep-highlight {
  display: inline-block;
  margin: 0 0 22px;
  max-width: 92%;
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(107, 14, 30, 0.14);
  color: #8a1326;
  font-size: 10px;
  font-weight: 700;
}

.meeting-prep-lines {
  display: grid;
  gap: 9px;
  margin-left: 2px;
}

.meeting-prep-lines span {
  height: 6px;
  border-radius: 999px;
  background: rgba(94, 108, 128, 0.14);
}

.meeting-prep-lines span:nth-child(1) {
  width: 56%;
  background: rgba(94, 108, 128, 0.22);
}

.meeting-prep-lines span:nth-child(2) {
  width: 78%;
}

.meeting-prep-lines span:nth-child(3) {
  width: 64%;
}

.meeting-prep-source-stack {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 10px;
}

.meeting-prep-source-card {
  display: grid;
  gap: 6px;
  padding: 13px 14px;
}

.meeting-prep-source-card strong {
  display: block;
  color: rgba(23, 27, 37, 0.78);
  font-size: 9.6px;
  line-height: 1.12;
  font-weight: 730;
}

.meeting-prep-source-card p {
  margin: 0;
  color: rgba(23, 27, 37, 0.68);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 650;
}

.meeting-prep-ip-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}

.meeting-prep-ip {
  position: absolute;
  right: -5.8%;
  bottom: 10%;
  width: 16.2%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

.meeting-prep-ip img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(45, 72, 143, 0.2));
  will-change: opacity, transform;
}

.meeting-prep-ip-note {
  position: absolute;
  right: -7.2%;
  bottom: 27%;
  width: 34%;
  padding: 2.2% 2.35%;
  border: 1px solid rgba(107, 14, 30, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  color: #1a040a;
  font-size: clamp(10px, 0.82vw, 12px);
  line-height: 1.22;
  box-shadow: 0 12px 24px rgba(107, 14, 30, 0.12);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

.meeting-prep-ip-note::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 14px;
  height: 7px;
  background: inherit;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.meeting-prep-ip-note::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: -7px;
  width: 14px;
  height: 7px;
  background: rgba(107, 14, 30, 0.14);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(1px);
}

.meeting-prep-ip-note strong {
  display: block;
  margin: 0 0 0.28em;
  font-weight: 760;
}

.meeting-prep-ip-note span {
  display: block;
  color: rgba(23, 24, 28, 0.72);
  font-size: 0.95em;
  font-weight: 620;
}

.meeting-prep-ip-note.is-reading {
  right: -1.2%;
  width: 27%;
  animation: meetingPrepNoteReading var(--meeting-prep-cycle) ease-in-out
    infinite;
}

.meeting-prep-ip-note.is-result {
  animation: meetingPrepNoteResult var(--meeting-prep-cycle) ease-in-out
    infinite;
}

.meeting-prep-reading-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0;
}

.meeting-prep-dots {
  display: inline-flex;
  gap: 3px;
  margin-left: 1px;
}

.meeting-prep-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b0e1e;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.meeting-prep-dots i:nth-child(2) {
  animation-delay: 0.16s;
}

.meeting-prep-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

.meeting-prep-ip-idle {
  animation: meetingPrepIpIdle var(--meeting-prep-cycle) ease-in-out infinite;
}

.meeting-prep-ip-thinking {
  animation: meetingPrepIpThinking var(--meeting-prep-cycle) ease-in-out
    infinite;
}

@keyframes meetingPrepNoteReading {
  0%,
  25% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  31%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes meetingPrepNoteResult {
  0%,
  31% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  38%,
  80% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  88%,
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes meetingPrepIpIdle {
  0%,
  31% {
    opacity: 0;
    transform: scale(0.96);
  }
  38%,
  96% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes meetingPrepIpThinking {
  0%,
  26% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  34%,
  100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .meeting-schedule-selected-text,
  .meeting-schedule-selected-text::after,
  .meeting-schedule-selection-glow,
  .meeting-schedule-day-grid .is-draft,
  .meeting-schedule-ip,
  .meeting-schedule-ip-bubble,
  .meeting-schedule-ip img,
  .meeting-schedule-dots i,
  .meeting-prep-ip,
  .meeting-prep-ip-note,
  .meeting-prep-ip img,
  .meeting-prep-dots i {
    animation: none !important;
  }

  .meeting-schedule-ip-bubble.is-reading,
  .meeting-schedule-ip-thinking,
  .meeting-prep-ip-note.is-reading,
  .meeting-prep-ip-thinking {
    opacity: 0 !important;
  }

  .meeting-schedule-ip-bubble.is-result,
  .meeting-schedule-ip-idle,
  .meeting-schedule-day-grid .is-draft,
  .meeting-prep-ip-note.is-result,
  .meeting-prep-ip-idle {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1100px) {
  .flow-panel:has(.meeting-canvas-image-frame),
  .flow-panel:has(.meeting-canvas-image-frame):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-panel:has(.meeting-canvas-image-frame) .flow-copy,
  .flow-panel:has(.meeting-canvas-image-frame):nth-child(even) .flow-copy,
  .flow-panel:has(.meeting-canvas-image-frame) .flow-demo,
  .flow-panel:has(.meeting-canvas-image-frame):nth-child(even) .flow-demo {
    order: 0;
  }

  .meeting-canvas-image-frame {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .flow-panel:has(.meeting-canvas-image-frame) {
    width: 100%;
    overflow: hidden;
  }

  .flow-panel:has(.meeting-canvas-image-frame) .flow-demo {
    min-height: auto;
    width: 100%;
    overflow: hidden;
    justify-content: center;
  }

  .meeting-canvas-image-frame {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    border-radius: 18px;
  }

  .meeting-prep-ip-note {
    font-size: 11px;
  }
}

/* Workflows query scene: product canvas plus blolp guidance overlay. */
.flow-panel:has(.workflow-query-scene) {
  grid-template-columns: minmax(260px, 0.58fr) minmax(520px, 1.42fr);
  gap: 34px;
  align-items: center;
  min-height: 540px;
}

.flow-panel:has(.workflow-query-scene) .flow-copy {
  max-width: 360px;
}

.workflow-query-scene {
  position: relative;
  width: min(780px, 100%);
  aspect-ratio: 780 / 468;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(29, 29, 31, 0.05), transparent 42%), #f0e6e8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 30px 70px rgba(107, 14, 30, 0.14),
    0 2px 8px rgba(107, 14, 30, 0.05);
  isolation: isolate;
}

.workflow-app-window {
  position: absolute;
  inset: 24px;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.11);
  border-radius: 18px;
  background: #faf7f2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 22px 46px rgba(107, 14, 30, 0.12);
}

.workflow-window-bar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(107, 14, 30, 0.52);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.workflow-url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-window-bar strong {
  margin-left: auto;
  color: rgba(107, 14, 30, 0.44);
  font-weight: 700;
}

.workflow-app-body {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 190px;
  background: #f5ecee;
}

.workflow-sidebar {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  padding: 16px 0;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.workflow-logo-mark,
.workflow-sidebar i {
  display: block;
  border-radius: 12px;
}

.workflow-logo-mark {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #1d1d1f, #6b0e1e);
}

.workflow-sidebar i {
  width: 28px;
  height: 28px;
  background: rgba(107, 14, 30, 0.08);
}

.workflow-sidebar i.is-active {
  background: rgba(107, 14, 30, 0.14);
  box-shadow: inset 0 0 0 1px rgba(107, 14, 30, 0.16);
}

.workflow-page {
  min-width: 0;
  padding: 18px;
}

.workflow-page-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.workflow-page-head span,
.workflow-field-label,
.workflow-field-card span,
.workflow-side-panel > span {
  color: rgba(107, 14, 30, 0.48);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.workflow-page-head strong {
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 750;
  line-height: 1.1;
}

.workflow-progress-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.workflow-progress-rail span {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 999px;
  background: #fff;
  color: rgba(107, 14, 30, 0.52);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.workflow-progress-rail span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(38, 132, 92, 0.16);
  transform-origin: left center;
}

.workflow-progress-rail .is-done::before,
.workflow-progress-rail .is-current::before {
  width: 100%;
}

.workflow-progress-rail .is-current {
  color: #4a2a12;
  box-shadow: 0 0 0 3px rgba(38, 132, 92, 0.08);
}

.workflow-form-card,
.workflow-field-card,
.workflow-side-panel {
  border: 1px solid rgba(107, 14, 30, 0.09);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.workflow-form-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
  margin-bottom: 12px;
  padding: 14px;
  border-radius: 16px;
}

.workflow-form-card.is-selected {
  border-color: rgba(38, 132, 92, 0.35);
  box-shadow:
    0 0 0 3px rgba(38, 132, 92, 0.1),
    0 12px 26px rgba(107, 14, 30, 0.06);
  animation: workflowSelectedPulse 3.4s ease-in-out infinite;
}

.workflow-form-card strong,
.workflow-field-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 6px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-form-card button,
.workflow-side-panel button {
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: #6b0e1e;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.workflow-form-card button {
  padding: 0 14px;
}

.workflow-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.workflow-field-card {
  min-width: 0;
  min-height: 74px;
  padding: 13px;
  border-radius: 15px;
}

.workflow-field-card.has-warning {
  border-color: rgba(176, 112, 22, 0.24);
  background: #fef8e6;
}

.workflow-side-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 14px;
  border-width: 0 0 0 1px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.76);
}

.workflow-check {
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 12px;
  background: #fff;
  color: rgba(107, 14, 30, 0.62);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-check.is-done {
  color: #6b4a24;
  background: #f7f4ec;
}

.workflow-check.is-risk {
  color: #e8c95c;
  background: #fef8e6;
}

.workflow-side-panel button {
  width: 100%;
  margin-top: 4px;
  background: rgba(107, 14, 30, 0.16);
  color: rgba(107, 14, 30, 0.48);
}

.workflow-blolp-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}

.workflow-query-card,
.workflow-result-card,
.workflow-context-tabs {
  position: absolute;
  border: 1px solid rgba(107, 14, 30, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 24px 56px rgba(107, 14, 30, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(16px);
}

.workflow-query-card {
  left: 64px;
  top: 62px;
  width: min(384px, calc(100% - 128px));
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  animation: workflowQueryIn 7.2s ease-in-out infinite;
}

.workflow-query-card::after {
  content: "";
  position: absolute;
  left: 28px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(107, 14, 30, 0.12);
  border-bottom: 1px solid rgba(107, 14, 30, 0.12);
  background: rgba(255, 255, 255, 0.96);
  transform: rotate(45deg);
}

.workflow-query-card img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.workflow-query-card p {
  min-width: 0;
  margin: 0;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.workflow-context-tabs {
  right: 58px;
  top: 74px;
  width: 230px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  animation: workflowTabsIn 7.2s ease-in-out infinite;
}

.workflow-context-tabs span {
  position: relative;
  overflow: hidden;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(107, 14, 30, 0.5);
  font-size: 11px;
  font-weight: 800;
}

.workflow-context-tabs span i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: rgba(107, 14, 30, 0.12);
  animation: workflowTabProgress 7.2s linear infinite;
}

.workflow-context-tabs span.is-active {
  color: #6b0e1e;
  background: rgba(107, 14, 30, 0.07);
}

.workflow-context-tabs span:nth-child(2) i {
  animation-delay: 1.7s;
}
.workflow-context-tabs span:nth-child(3) i {
  animation-delay: 3.2s;
}

.workflow-result-card {
  right: 48px;
  bottom: 48px;
  width: min(390px, calc(100% - 96px));
  padding: 16px;
  border-radius: 18px;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  animation: workflowResultIn 7.2s ease-in-out infinite;
}

.workflow-result-card strong {
  display: block;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.25;
}

.workflow-result-card ul {
  display: grid;
  gap: 7px;
  margin: 11px 0 13px;
  padding: 0;
  list-style: none;
}

.workflow-result-card li {
  display: flex;
  gap: 8px;
  color: rgba(107, 14, 30, 0.7);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.36;
}

.workflow-result-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: #8a6b3d;
}

.workflow-result-card b {
  color: #1d1d1f;
}

.workflow-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.workflow-action-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 999px;
  color: rgba(107, 14, 30, 0.6);
  font-size: 11px;
  font-weight: 800;
}

.workflow-action-row span.is-primary {
  border-color: #6b0e1e;
  background: #6b0e1e;
  color: #fff;
}

@keyframes workflowSelectedPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 3px rgba(38, 132, 92, 0.1),
      0 12px 26px rgba(107, 14, 30, 0.06);
  }
  45% {
    box-shadow:
      0 0 0 6px rgba(38, 132, 92, 0.13),
      0 14px 30px rgba(107, 14, 30, 0.08);
  }
}

@keyframes workflowQueryIn {
  0%,
  8% {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  16%,
  92% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

@keyframes workflowTabsIn {
  0%,
  22% {
    opacity: 0;
    transform: translateY(8px);
  }
  32%,
  92% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(5px);
  }
}

@keyframes workflowResultIn {
  0%,
  42% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  52%,
  92% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
}

@keyframes workflowTabProgress {
  0%,
  18% {
    width: 0;
  }
  42%,
  100% {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .flow-panel:has(.workflow-query-scene) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workflow-query-scene {
    width: 100%;
    min-height: 520px;
    aspect-ratio: auto;
  }

  .workflow-app-window {
    inset: 14px;
  }

  .workflow-app-body {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .workflow-side-panel {
    display: none;
  }

  .workflow-page {
    padding: 14px;
  }

  .workflow-progress-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-form-grid {
    grid-template-columns: 1fr;
  }

  .workflow-field-card:nth-child(n + 3) {
    display: none;
  }

  .workflow-query-card {
    left: 26px;
    top: 56px;
    width: calc(100% - 52px);
  }

  .workflow-context-tabs {
    left: 26px;
    right: auto;
    top: 154px;
    width: min(230px, calc(100% - 52px));
  }

  .workflow-result-card {
    left: 26px;
    right: auto;
    bottom: 28px;
    width: calc(100% - 52px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-form-card.is-selected,
  .workflow-query-card,
  .workflow-context-tabs,
  .workflow-context-tabs span i,
  .workflow-result-card {
    animation: none;
  }

  .workflow-query-card,
  .workflow-context-tabs,
  .workflow-result-card {
    opacity: 1;
    transform: none;
  }
}

/* Workflows query scene v2: closer to the focused messages demo and Intercom-style product scene. */
.flow-panel:has(.workflow-query-scene) {
  grid-template-columns: minmax(260px, 0.54fr) minmax(560px, 1.46fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
}

.flow-panel:has(.workflow-query-scene) .flow-copy {
  max-width: 360px;
}

.workflow-query-scene {
  --workflow-cycle: 12s;
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
}

.workflow-workspace-frame {
  position: absolute;
  inset: 24px 22px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.11);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at 82% 10%,
      rgba(45, 91, 255, 0.06),
      transparent 30%
    ),
    #f7f4ec;
  box-shadow:
    0 34px 90px rgba(107, 14, 30, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  isolation: isolate;
}

.workflow-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: rgba(29, 29, 31, 0.48);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.workflow-url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-window-bar strong {
  margin-left: auto;
  color: rgba(29, 29, 31, 0.42);
  font-weight: 700;
}

.workflow-app-shell {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
}

.workflow-app-nav {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 13px;
  padding: 16px 0;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.workflow-logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1d1d1f;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(29, 29, 31, 0.15);
}

.workflow-app-nav i {
  width: 31px;
  height: 31px;
  display: block;
  border-radius: 11px;
  background: rgba(29, 29, 31, 0.08);
}

.workflow-app-nav i.is-active {
  background: #6b0e1e;
  box-shadow:
    0 9px 18px rgba(107, 14, 30, 0.22),
    0 0 0 4px rgba(107, 14, 30, 0.1);
}

.workflow-page-surface {
  min-width: 0;
  padding: 18px 18px 20px;
  background: linear-gradient(90deg, #f7f4ec, #f5ecee);
}

.workflow-page-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.workflow-page-top span,
.workflow-card-head span,
.workflow-risk-card span,
.workflow-detail-card label span {
  display: block;
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
}

.workflow-page-top strong {
  display: block;
  margin-top: 6px;
  color: #1d1d1f;
  font-size: 22px;
  font-weight: 760;
  line-height: 1.05;
}

.workflow-top-actions {
  display: flex;
  gap: 8px;
}

.workflow-top-actions button,
.workflow-row button,
.workflow-note-actions button {
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 760;
  white-space: nowrap;
}

.workflow-top-actions button {
  height: 32px;
  padding: 0 14px;
  background: #fff;
  color: rgba(29, 29, 31, 0.66);
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.1);
}

.workflow-top-actions button.is-disabled {
  background: rgba(29, 29, 31, 0.1);
  color: rgba(29, 29, 31, 0.38);
}

.workflow-step-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.workflow-step-track span {
  position: relative;
  min-width: 0;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: rgba(29, 29, 31, 0.56);
  font-size: 11px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.08);
}

.workflow-step-track b {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.18);
}

.workflow-step-track .is-done {
  color: #6b4a24;
  background: rgba(238, 250, 244, 0.86);
}

.workflow-step-track .is-done b,
.workflow-step-track .is-current b {
  background: #8a6b3d;
}

.workflow-step-track .is-current {
  color: #4a2a12;
  background: #fff;
  box-shadow:
    inset 0 0 0 1px rgba(36, 131, 84, 0.24),
    0 0 0 4px rgba(36, 131, 84, 0.08);
}

.workflow-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(205px, 0.75fr);
  grid-auto-rows: min-content;
  gap: 12px;
}

.workflow-main-card,
.workflow-detail-card,
.workflow-activity-card,
.workflow-risk-card {
  min-width: 0;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 14px 32px rgba(107, 14, 30, 0.055),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.workflow-main-card {
  padding: 14px;
}

.workflow-detail-card,
.workflow-activity-card,
.workflow-risk-card {
  padding: 14px;
}

.workflow-card-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.workflow-card-head strong {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.1;
}

.workflow-row {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 11px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #1d1d1f;
}

.workflow-row + .workflow-row {
  margin-top: 8px;
}

.workflow-row-status {
  width: 12px;
  height: 12px;
  display: block;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.2);
}

.workflow-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.12;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 5px;
  color: rgba(29, 29, 31, 0.52);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-row em {
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-style: normal;
  font-weight: 780;
}

.workflow-row.is-complete {
  background: rgba(240, 250, 245, 0.58);
}

.workflow-row.is-complete .workflow-row-status {
  background: #8a6b3d;
}

.workflow-row.is-selected {
  border-color: rgba(107, 14, 30, 0.34);
  background: #fff;
  box-shadow:
    0 0 0 4px rgba(107, 14, 30, 0.09),
    0 13px 26px rgba(107, 14, 30, 0.06);
  animation: workflowFocusPulse var(--workflow-cycle) ease-in-out infinite;
}

.workflow-row.is-selected .workflow-row-status {
  background: #6b0e1e;
}

.workflow-row.is-warning {
  background: #fef8e6;
}

.workflow-row.is-warning .workflow-row-status {
  background: #e8c95c;
}

.workflow-row button {
  height: 30px;
  padding: 0 12px;
  background: #6b0e1e;
  color: #fff;
  font-size: 11px;
  box-shadow: 0 8px 16px rgba(107, 14, 30, 0.18);
}

.workflow-detail-card {
  display: grid;
  gap: 10px;
}

.workflow-detail-card label {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 11px;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 13px;
  background: #fff;
}

.workflow-detail-card label i {
  min-width: 0;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 12px;
  font-style: normal;
  font-weight: 720;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workflow-detail-card label.is-muted {
  background: #fef8e6;
}

.workflow-activity-card p {
  margin: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(29, 29, 31, 0.07);
  color: rgba(29, 29, 31, 0.58);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.workflow-activity-card b {
  color: #1d1d1f;
}

.workflow-risk-card {
  background: #fef8e6;
}

.workflow-risk-card strong {
  display: block;
  margin-top: 8px;
  color: #e8c95c;
  font-size: 14px;
  font-weight: 780;
}

.workflow-risk-card p {
  margin: 7px 0 0;
  color: rgba(92, 58, 13, 0.68);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
}

.workflow-blolp-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.workflow-selection-ring {
  position: absolute;
  left: 94px;
  top: 368px;
  width: 386px;
  height: 74px;
  border: 2px solid rgba(107, 14, 30, 0.44);
  border-radius: 18px;
  box-shadow:
    0 0 0 5px rgba(107, 14, 30, 0.08),
    0 18px 42px rgba(107, 14, 30, 0.1);
  opacity: 0;
  animation: workflowSelectionRing var(--workflow-cycle) ease-in-out infinite;
}

.workflow-ip {
  position: absolute;
  z-index: 7;
  right: 2px;
  bottom: 110px;
  width: 128px;
  height: 104px;
  transform-origin: 50% 10%;
  animation: messageFocusedIpFloat 2.6s ease-in-out infinite alternate;
}

.workflow-ip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(45, 72, 143, 0.22));
}

.workflow-ip-idle {
  animation: workflowIpIdle var(--workflow-cycle) ease-in-out infinite;
}

.workflow-ip-thinking {
  animation: workflowIpThinking var(--workflow-cycle) ease-in-out infinite;
}

.workflow-ip-note,
.workflow-query-bubble,
.workflow-result-note {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(107, 14, 30, 0.1);
  background: rgba(255, 255, 255, 0.94);
  color: #1a040a;
  box-shadow: 0 20px 44px rgba(31, 34, 46, 0.15);
  backdrop-filter: blur(16px);
}

.workflow-ip-note {
  right: 82px;
  bottom: 205px;
  width: 178px;
  padding: 12px 14px;
  border-radius: 18px;
  border-bottom-right-radius: 7px;
  font-size: 13px;
  font-weight: 650;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: 92% 100%;
  animation: workflowNoteReading var(--workflow-cycle) ease-in-out infinite;
}

.workflow-reading-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.workflow-dots {
  display: inline-flex;
  gap: 3px;
}

.workflow-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b0e1e;
  opacity: 0.32;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.workflow-dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.workflow-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

.workflow-query-bubble {
  left: 74px;
  top: 74px;
  width: 348px;
  padding: 15px 18px;
  border-radius: 20px;
  border-bottom-left-radius: 7px;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transform-origin: 10% 100%;
  animation: workflowQueryBubble var(--workflow-cycle) ease-in-out infinite;
}

.workflow-query-bubble::after {
  content: "";
  position: absolute;
  left: 26px;
  bottom: -8px;
  width: 15px;
  height: 15px;
  border-right: 1px solid rgba(107, 14, 30, 0.1);
  border-bottom: 1px solid rgba(107, 14, 30, 0.1);
  background: rgba(255, 255, 255, 0.94);
  transform: rotate(45deg);
}

.workflow-query-bubble p {
  margin: 0;
  color: #1a040a;
  font-size: 14px;
  font-weight: 690;
  line-height: 1.34;
}

.workflow-result-note {
  right: -10px;
  bottom: 210px;
  width: 304px;
  padding: 14px 15px 15px;
  border-radius: 18px;
  border-bottom-right-radius: 7px;
  opacity: 0;
  transform: translateY(9px) scale(0.96);
  transform-origin: 92% 100%;
  animation: workflowResultNote var(--workflow-cycle) ease-in-out infinite;
}

.workflow-result-note strong {
  display: block;
  color: #1a040a;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.2;
}

.workflow-result-note > span {
  display: block;
  margin-top: 7px;
  color: rgba(29, 29, 31, 0.66);
  font-size: 12.5px;
  font-weight: 630;
  line-height: 1.36;
}

.workflow-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 11px;
}

.workflow-note-actions button {
  height: 29px;
  padding: 0 12px;
  background: #fff;
  color: rgba(29, 29, 31, 0.62);
  font-size: 11.5px;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.1);
}

.workflow-note-actions button.is-primary {
  background: #6b0e1e;
  color: #fff;
  box-shadow: 0 8px 16px rgba(107, 14, 30, 0.18);
}

@keyframes workflowFocusPulse {
  0%,
  30%,
  100% {
    box-shadow:
      0 0 0 4px rgba(107, 14, 30, 0.09),
      0 13px 26px rgba(107, 14, 30, 0.06);
  }
  40%,
  62% {
    box-shadow:
      0 0 0 6px rgba(107, 14, 30, 0.13),
      0 16px 34px rgba(107, 14, 30, 0.08);
  }
}

@keyframes workflowSelectionRing {
  0%,
  21% {
    opacity: 0;
    transform: translateY(5px) scale(0.99);
  }
  28%,
  70% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  78%,
  100% {
    opacity: 0;
    transform: translateY(3px) scale(0.995);
  }
}

@keyframes workflowQueryBubble {
  0%,
  9% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  16%,
  82% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  90%,
  100% {
    opacity: 0;
    transform: translateY(7px) scale(0.99);
  }
}

@keyframes workflowNoteReading {
  0%,
  26% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  32%,
  100% {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
}

@keyframes workflowResultNote {
  0%,
  34% {
    opacity: 0;
    transform: translateY(9px) scale(0.96);
  }
  42%,
  72% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80%,
  100% {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
}

@keyframes workflowIpIdle {
  0%,
  31% {
    opacity: 0;
    transform: scale(0.96);
  }
  38%,
  94% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

@keyframes workflowIpThinking {
  0%,
  28% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  34%,
  100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@media (max-width: 900px) {
  .flow-panel:has(.workflow-query-scene) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .workflow-query-scene {
    width: 100%;
    min-height: 650px;
    aspect-ratio: auto;
  }

  .workflow-workspace-frame {
    inset: 18px 0 18px 0;
    border-radius: 22px;
  }

  .workflow-app-shell {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .workflow-app-nav {
    gap: 11px;
  }

  .workflow-logo-mark {
    width: 30px;
    height: 30px;
  }

  .workflow-app-nav i {
    width: 28px;
    height: 28px;
  }

  .workflow-page-surface {
    padding: 15px 14px 18px;
  }

  .workflow-page-top {
    display: grid;
    gap: 12px;
  }

  .workflow-page-top strong {
    font-size: 18px;
  }

  .workflow-step-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-page-grid {
    grid-template-columns: 1fr;
  }

  .workflow-detail-card,
  .workflow-activity-card,
  .workflow-risk-card {
    display: none;
  }

  .workflow-row {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .workflow-row button,
  .workflow-row em {
    grid-column: 2;
    justify-self: start;
  }

  .workflow-selection-ring {
    left: 67px;
    top: 400px;
    width: calc(100% - 96px);
    height: 102px;
  }

  .workflow-query-bubble {
    left: 44px;
    top: 76px;
    width: calc(100% - 82px);
  }

  .workflow-ip {
    right: -2px;
    bottom: 64px;
    width: 112px;
    height: 92px;
  }

  .workflow-ip-note {
    right: 48px;
    bottom: 146px;
    width: 174px;
  }

  .workflow-result-note {
    left: 34px;
    right: auto;
    bottom: 136px;
    width: calc(100% - 68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-row.is-selected,
  .workflow-selection-ring,
  .workflow-ip,
  .workflow-ip-idle,
  .workflow-ip-thinking,
  .workflow-ip-note,
  .workflow-dots i,
  .workflow-query-bubble,
  .workflow-result-note {
    animation: none;
  }

  .workflow-selection-ring,
  .workflow-query-bubble,
  .workflow-result-note {
    opacity: 1;
    transform: none;
  }

  .workflow-ip-note,
  .workflow-ip-thinking {
    opacity: 0;
  }

  .workflow-ip-idle {
    opacity: 1;
  }
}

/* Workflows automation builder demo: n8n-like canvas, execution state, and blolp guidance. */
.wf-auto-frame {
  position: absolute;
  inset: 24px 22px 18px 0;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.11);
  border-radius: 24px;
  background: #f7f4ec;
  box-shadow:
    0 34px 90px rgba(107, 14, 30, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  isolation: isolate;
}

.wf-auto-browserbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: rgba(29, 29, 31, 0.48);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.wf-auto-browserbar span:not(.window-dot) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-auto-browserbar strong {
  margin-left: auto;
  color: #8a1326;
  font-weight: 800;
  white-space: nowrap;
}

.wf-auto-shell {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
}

.wf-auto-nav {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding: 15px 0;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.wf-auto-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #1d1d1f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 12px 22px rgba(29, 29, 31, 0.15);
}

.wf-auto-nav i {
  width: 31px;
  height: 31px;
  display: block;
  border-radius: 11px;
  background: rgba(29, 29, 31, 0.08);
}

.wf-auto-nav i.is-active {
  background: #e8c95c;
  box-shadow:
    0 9px 18px rgba(255, 107, 53, 0.2),
    0 0 0 4px rgba(255, 107, 53, 0.11);
}

.wf-auto-builder {
  min-width: 0;
  display: grid;
  grid-template-rows: 68px 46px 44px minmax(0, 1fr);
  background: #f7f4ec;
}

.wf-auto-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.78);
}

.wf-auto-topbar span,
.wf-node-type,
.wf-run-status span,
.wf-sample-data span {
  display: block;
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wf-auto-topbar strong {
  display: block;
  margin-top: 6px;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.08;
}

.wf-auto-actions {
  display: flex;
  gap: 8px;
}

.wf-auto-actions button {
  height: 32px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: #fff;
  color: rgba(29, 29, 31, 0.66);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  box-shadow: inset 0 0 0 1px rgba(29, 29, 31, 0.1);
}

.wf-auto-actions button.is-disabled {
  background: #fef8e6;
  color: #6b0e1e;
  box-shadow: inset 0 0 0 1px rgba(166, 62, 36, 0.18);
}

.wf-story-rail {
  display: grid;
  grid-template-columns: 0.9fr 1.18fr 1fr 1.05fr;
  gap: 1px;
  align-items: stretch;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(29, 29, 31, 0.08);
}

.wf-story-rail span {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.82);
  color: rgba(29, 29, 31, 0.62);
  font-size: 10px;
  font-weight: 720;
  line-height: 1.2;
  white-space: normal;
  overflow: hidden;
}

.wf-story-rail b {
  flex: 0 0 auto;
  color: #1d1d1f;
  font-size: 9px;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: 0;
}

.wf-run-path {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.wf-run-path span {
  position: relative;
  min-width: 0;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  color: rgba(29, 29, 31, 0.54);
  font-size: 10.5px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-run-path span::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(29, 29, 31, 0.16);
}

.wf-run-path span:last-child::after {
  display: none;
}

.wf-run-path .is-done {
  background: #f7f4ec;
  color: #8a6b3d;
}

.wf-run-path .is-failed {
  background: #fef8e6;
  color: #6b0e1e;
  animation: wfPathFailed 12s ease-in-out infinite;
}

.wf-run-path .is-next {
  background: #f5ecee;
  color: #6b0e1e;
}

.wf-auto-content {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
}

.wf-auto-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 62% 34%,
      rgba(255, 107, 53, 0.08),
      transparent 26%
    ),
    #f7f4ec;
}

.wf-auto-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(circle at 44% 50%, #000 0 58%, transparent 86%);
}

.wf-node {
  position: absolute;
  z-index: 2;
  width: 170px;
  min-height: 82px;
  padding: 12px 13px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 16px 34px rgba(107, 14, 30, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wf-node::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 13px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a6b3d;
}

.wf-node-type {
  padding-left: 17px;
}

.wf-node strong {
  display: block;
  margin-top: 10px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.12;
}

.wf-node small {
  display: block;
  margin-top: 6px;
  color: rgba(29, 29, 31, 0.54);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.25;
}

.wf-node-trigger {
  left: 34px;
  top: 118px;
}

.wf-node-enrich {
  left: 240px;
  top: 118px;
}

.wf-node-gmail {
  left: 240px;
  top: 250px;
}

.wf-node-slack {
  left: 444px;
  top: 250px;
}

.wf-node-ok {
  border-color: rgba(36, 131, 84, 0.18);
}

.wf-node-selected {
  border-color: rgba(255, 107, 53, 0.46);
  box-shadow:
    0 0 0 4px rgba(255, 107, 53, 0.11),
    0 18px 36px rgba(107, 14, 30, 0.13);
  animation: wfNodePulse 12s ease-in-out infinite;
}

.wf-node-selected::before {
  background: #8a1326;
}

.wf-node-muted {
  opacity: 0.74;
}

.wf-node-muted::before {
  background: rgba(29, 29, 31, 0.24);
}

.wf-connector {
  position: absolute;
  z-index: 1;
  height: 2px;
  background: rgba(36, 131, 84, 0.36);
  transform-origin: left center;
}

.wf-connector i {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8a6b3d;
}

.wf-connector-a {
  left: 204px;
  top: 161px;
  width: 46px;
}

.wf-connector-b {
  left: 324px;
  top: 202px;
  width: 82px;
  transform: rotate(90deg);
}

.wf-connector-c {
  left: 410px;
  top: 293px;
  width: 46px;
}

.wf-connector.is-muted {
  background: rgba(216, 75, 42, 0.28);
}

.wf-connector.is-muted i {
  background: #8a1326;
}

.wf-auto-minimap {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 108px;
  height: 70px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(29, 29, 31, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(107, 14, 30, 0.08);
}

.wf-auto-minimap span {
  border-radius: 6px;
  background: rgba(29, 29, 31, 0.1);
}

.wf-auto-minimap span.is-active {
  background: rgba(255, 107, 53, 0.48);
}

.wf-failure-chip {
  position: absolute;
  z-index: 3;
  left: 254px;
  top: 352px;
  padding: 7px 10px;
  border: 1px solid rgba(166, 62, 36, 0.18);
  border-radius: 999px;
  background: rgba(255, 240, 235, 0.96);
  color: #6b0e1e;
  font-size: 10.5px;
  font-weight: 840;
  box-shadow: 0 12px 26px rgba(166, 62, 36, 0.1);
}

.wf-auto-inspector {
  min-width: 0;
  border-left: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
}

.wf-inspector-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-bottom: 14px;
}

.wf-inspector-tabs span {
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: rgba(29, 29, 31, 0.46);
  font-size: 10.5px;
  font-weight: 800;
}

.wf-inspector-tabs span.is-active {
  background: rgba(255, 107, 53, 0.12);
  color: #6b0e1e;
}

.wf-run-status,
.wf-decision-card,
.wf-sample-data {
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 15px;
  background: #fff;
  padding: 12px;
}

.wf-decision-card {
  margin-top: 12px;
  border-color: rgba(166, 62, 36, 0.17);
  background: #fef8e6;
}

.wf-decision-card span {
  display: block;
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wf-run-status strong {
  display: block;
  margin-top: 8px;
  color: #6b0e1e;
  font-size: 14px;
  font-weight: 820;
}

.wf-decision-card strong {
  display: block;
  margin-top: 8px;
  color: #6b0e1e;
  font-size: 13px;
  font-weight: 840;
}

.wf-run-status p,
.wf-decision-card p {
  margin: 7px 0 0;
  color: rgba(29, 29, 31, 0.58);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.35;
}

.wf-run-log {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.wf-run-log p {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 9px;
  border-radius: 12px;
  background: rgba(29, 29, 31, 0.045);
  color: rgba(29, 29, 31, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}

.wf-run-log b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(29, 29, 31, 0.12);
  color: rgba(29, 29, 31, 0.62);
  font-size: 10px;
}

.wf-run-log .is-ok b {
  background: #f7f4ec;
  color: #8a6b3d;
}

.wf-run-log .is-fail {
  background: #fef8e6;
  color: #6b0e1e;
}

.wf-run-log .is-fail b {
  background: #fef8e6;
  color: #6b0e1e;
}

.wf-run-log .is-skip {
  color: rgba(29, 29, 31, 0.42);
}

.wf-sample-data strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin-top: 8px;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-node-ring {
  position: absolute;
  left: 298px;
  top: 274px;
  width: 178px;
  height: 90px;
  border: 2px solid rgba(255, 107, 53, 0.5);
  border-radius: 18px;
  box-shadow:
    0 0 0 5px rgba(255, 107, 53, 0.1),
    0 18px 42px rgba(255, 107, 53, 0.1);
  opacity: 0;
  animation: workflowSelectionRing var(--workflow-cycle) ease-in-out infinite;
}

.wf-auto-frame ~ .workflow-blolp-layer .workflow-query-bubble {
  left: 86px;
  top: 52px;
  width: 374px;
}

.wf-auto-frame ~ .workflow-blolp-layer .workflow-result-note {
  right: 2px;
  bottom: 154px;
  width: 326px;
}

.wf-auto-frame ~ .workflow-blolp-layer .workflow-ip {
  right: -2px;
  bottom: 66px;
}

.wf-auto-frame ~ .workflow-blolp-layer .workflow-ip-note {
  right: 84px;
  bottom: 166px;
}

@keyframes wfNodePulse {
  0%,
  30%,
  100% {
    box-shadow:
      0 0 0 4px rgba(255, 107, 53, 0.11),
      0 18px 36px rgba(107, 14, 30, 0.13);
  }
  42%,
  64% {
    box-shadow:
      0 0 0 7px rgba(255, 107, 53, 0.15),
      0 20px 40px rgba(107, 14, 30, 0.15);
  }
}

@keyframes wfPathFailed {
  0%,
  30%,
  100% {
    box-shadow: none;
  }
  42%,
  64% {
    box-shadow: 0 0 0 4px rgba(166, 62, 36, 0.1);
  }
}

@media (max-width: 900px) {
  .wf-auto-frame {
    inset: 18px 0;
    border-radius: 22px;
  }

  .wf-auto-browserbar {
    height: 48px;
  }

  .wf-auto-shell {
    height: calc(100% - 48px);
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .wf-auto-builder {
    grid-template-rows: 78px 92px 80px minmax(0, 1fr);
  }

  .wf-auto-topbar {
    display: grid;
    gap: 8px;
    padding: 12px 14px;
  }

  .wf-auto-topbar strong {
    font-size: 15px;
  }

  .wf-auto-actions {
    display: none;
  }

  .wf-run-path {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 10px;
  }

  .wf-story-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wf-story-rail span {
    padding: 0 10px;
    font-size: 10.5px;
  }

  .wf-run-path span::after {
    display: none;
  }

  .wf-auto-content {
    grid-template-columns: 1fr;
  }

  .wf-auto-inspector {
    display: none;
  }

  .wf-node {
    width: 168px;
  }

  .wf-node-trigger {
    left: 32px;
    top: 108px;
  }

  .wf-node-enrich {
    left: 154px;
    top: 228px;
  }

  .wf-node-gmail {
    left: 32px;
    top: 344px;
  }

  .wf-node-slack {
    left: 154px;
    top: 456px;
  }

  .wf-connector-a {
    left: 114px;
    top: 196px;
    width: 74px;
    transform: rotate(55deg);
  }

  .wf-connector-b {
    left: 172px;
    top: 314px;
    width: 92px;
    transform: rotate(126deg);
  }

  .wf-connector-c {
    left: 114px;
    top: 432px;
    width: 76px;
    transform: rotate(54deg);
  }

  .wf-auto-minimap {
    display: none;
  }

  .wf-node-ring {
    left: 49px;
    top: 400px;
    width: 170px;
    height: 88px;
  }

  .wf-failure-chip {
    left: 48px;
    top: 494px;
  }

  .wf-auto-frame ~ .workflow-blolp-layer .workflow-query-bubble {
    left: 42px;
    top: 42px;
    width: calc(100% - 76px);
  }

  .wf-auto-frame ~ .workflow-blolp-layer .workflow-result-note {
    left: 32px;
    right: auto;
    bottom: 118px;
    width: calc(100% - 64px);
  }

  .wf-auto-frame ~ .workflow-blolp-layer .workflow-ip {
    right: -2px;
    bottom: 42px;
  }

  .wf-auto-frame ~ .workflow-blolp-layer .workflow-ip-note {
    right: 48px;
    bottom: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-node-selected,
  .wf-node-ring {
    animation: none;
  }

  .wf-node-ring {
    opacity: 1;
    transform: none;
  }
}

/* Workflows PR review demo: GitHub-like diff plus draft-only blolp risk review. */
.flow-panel:has(.workflow-pr-scene) {
  grid-template-columns: minmax(560px, 1.46fr) minmax(260px, 0.54fr);
  gap: 42px;
  align-items: center;
  min-height: 620px;
}

.flow-panel:has(.workflow-pr-scene) .flow-copy {
  max-width: 420px;
}

.workflow-pr-scene {
  --workflow-cycle: 12s;
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  overflow: visible;
  isolation: isolate;
}

.wf-pr-frame {
  position: absolute;
  inset: 24px 0 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.12);
  border-radius: 24px;
  background: #f7f4ec;
  box-shadow:
    0 34px 90px rgba(107, 14, 30, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wf-pr-browserbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
  color: rgba(29, 29, 31, 0.5);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.wf-pr-browserbar span:not(.window-dot) {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-browserbar strong {
  margin-left: auto;
  color: #8a6b3d;
  font-weight: 800;
  white-space: nowrap;
}

.wf-pr-page {
  height: calc(100% - 42px);
  display: grid;
  grid-template-rows: 70px 40px 38px minmax(0, 1fr);
  background: #f7f4ec;
}

.wf-pr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.wf-pr-header span,
.wf-pr-files > span,
.wf-pr-inline-risk strong {
  display: block;
  color: rgba(29, 29, 31, 0.5);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.wf-pr-header strong {
  display: block;
  margin-top: 6px;
  color: #1d1d1f;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.08;
}

.wf-pr-checks {
  display: flex;
  gap: 8px;
}

.wf-pr-checks span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 800;
}

.wf-pr-checks .is-pass {
  background: #f7f4ec;
  color: #8a6b3d;
}

.wf-pr-checks .is-warn {
  background: #fef8e6;
  color: #8a1326;
}

.wf-pr-tabs {
  display: flex;
  align-items: end;
  gap: 22px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.wf-pr-tabs span {
  height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: rgba(29, 29, 31, 0.58);
  font-size: 12px;
  font-weight: 760;
}

.wf-pr-tabs span.is-active {
  border-bottom-color: #f5de8d;
  color: #1d1d1f;
}

.wf-pr-causal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.76);
}

.wf-pr-causal-strip span {
  position: relative;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 840;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-pr-causal-strip span::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 10px;
  height: 1px;
  background: rgba(29, 29, 31, 0.16);
}

.wf-pr-causal-strip span:last-child::after {
  display: none;
}

.wf-pr-causal-strip .is-source {
  background: #f5ecee;
  color: #6b0e1e;
}

.wf-pr-causal-strip .is-risk {
  background: #fef8e6;
  color: #6b0e1e;
  animation: wfPathFailed 12s ease-in-out infinite;
}

.wf-pr-causal-strip .is-next {
  background: #f7f4ec;
  color: #8a6b3d;
}

.wf-pr-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.wf-pr-files,
.wf-pr-diff {
  min-width: 0;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(107, 14, 30, 0.055);
}

.wf-pr-files {
  padding: 13px;
}

.wf-pr-files strong {
  display: block;
  margin: 8px 0 12px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 800;
}

.wf-pr-files p {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  padding: 9px 10px;
  border-radius: 10px;
  color: rgba(29, 29, 31, 0.62);
  font-size: 11px;
  font-weight: 730;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-files p.is-selected {
  background: #f5ecee;
  color: #8a1326;
}

.wf-pr-diff {
  position: relative;
  overflow: hidden;
}

.wf-pr-filebar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: #f7f4ec;
}

.wf-pr-filebar strong {
  min-width: 0;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-filebar span {
  color: #8a6b3d;
  font-size: 11px;
  font-weight: 800;
}

.wf-pr-code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    monospace;
}

.wf-pr-code p {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  margin: 0;
  min-height: 34px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.04);
  color: rgba(29, 29, 31, 0.72);
  font-size: 11px;
  line-height: 34px;
}

.wf-pr-code b {
  display: block;
  padding-right: 9px;
  background: #f7f4ec;
  color: rgba(29, 29, 31, 0.38);
  font-weight: 600;
  text-align: right;
}

.wf-pr-code span {
  min-width: 0;
  overflow: hidden;
  padding: 0 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-pr-code .is-add {
  background: #f7f4ec;
}

.wf-pr-code .is-remove {
  background: #fef8e6;
}

.wf-pr-code .is-risk-line span {
  background: #fef8e6;
  color: #6b0e1e;
  font-weight: 800;
}

.wf-pr-inline-risk {
  position: absolute;
  right: 16px;
  bottom: 18px;
  width: 210px;
  padding: 12px;
  border: 1px solid rgba(165, 72, 32, 0.2);
  border-radius: 14px;
  background: rgba(255, 248, 241, 0.96);
  box-shadow: 0 16px 34px rgba(107, 14, 30, 0.11);
}

.wf-pr-inline-risk span {
  display: block;
  margin-top: 7px;
  color: #6b0e1e;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.3;
}

.wf-pr-risk-ring {
  position: absolute;
  left: 424px;
  top: 320px;
  width: 324px;
  height: 38px;
  border: 2px solid rgba(255, 107, 53, 0.52);
  border-radius: 9px;
  box-shadow:
    0 0 0 5px rgba(255, 107, 53, 0.1),
    0 18px 42px rgba(255, 107, 53, 0.1);
  opacity: 0;
  animation: workflowSelectionRing var(--workflow-cycle) ease-in-out infinite;
}

.workflow-pr-scene .workflow-query-bubble {
  left: 70px;
  top: 74px;
  width: 392px;
}

.workflow-pr-scene .workflow-result-note {
  right: 8px;
  bottom: 112px;
  width: 324px;
}

.workflow-pr-scene .workflow-ip {
  right: 0;
  bottom: 34px;
}

.workflow-pr-scene .workflow-ip-note {
  right: 84px;
  bottom: 132px;
}

@media (max-width: 900px) {
  .flow-panel:has(.workflow-pr-scene),
  .flow-panel:has(.workflow-pr-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-panel:has(.workflow-pr-scene) .flow-copy,
  .flow-panel:has(.workflow-pr-scene):nth-child(even) .flow-copy,
  .flow-panel:has(.workflow-pr-scene) .flow-demo,
  .flow-panel:has(.workflow-pr-scene):nth-child(even) .flow-demo {
    grid-column: auto;
    grid-row: auto;
  }

  .workflow-pr-scene {
    width: 100%;
    min-height: 650px;
    aspect-ratio: auto;
  }

  .wf-pr-frame {
    inset: 18px 0;
    border-radius: 22px;
  }

  .wf-pr-page {
    grid-template-rows: 76px 42px 80px minmax(0, 1fr);
  }

  .wf-pr-header {
    display: grid;
    align-content: center;
    gap: 8px;
  }

  .wf-pr-header strong {
    font-size: 16px;
  }

  .wf-pr-checks {
    display: none;
  }

  .wf-pr-tabs {
    gap: 14px;
    overflow: hidden;
  }

  .wf-pr-causal-strip {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 7px 12px;
  }

  .wf-pr-causal-strip span::after {
    display: none;
  }

  .wf-pr-body {
    grid-template-columns: 1fr;
  }

  .wf-pr-files {
    display: none;
  }

  .wf-pr-code p {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .wf-pr-inline-risk {
    left: 52px;
    right: auto;
    bottom: 20px;
    width: calc(100% - 78px);
  }

  .wf-pr-risk-ring {
    left: 53px;
    top: 376px;
    width: calc(100% - 75px);
  }

  .workflow-pr-scene .workflow-query-bubble {
    left: 42px;
    top: 84px;
    width: calc(100% - 76px);
  }

  .workflow-pr-scene .workflow-result-note {
    left: 32px;
    right: auto;
    bottom: 82px;
    width: calc(100% - 64px);
  }

  .workflow-pr-scene .workflow-ip {
    right: -2px;
    bottom: 28px;
  }

  .workflow-pr-scene .workflow-ip-note {
    right: 48px;
    bottom: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wf-pr-risk-ring {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Meeting intervention demo: June Notch V3-inspired overlay. */
.blolp-intervention-scene {
  --blolp-notch-bg: #000;
  --blolp-notch-surface: #111;
  --blolp-notch-surface-elevated: #1a040a;
  --blolp-notch-border: #3a0710;
  --blolp-notch-border-strong: #4a2a32;
  --blolp-notch-text: #eee;
  --blolp-notch-text-secondary: #d0bcc0;
  --blolp-notch-text-tertiary: #6b4a52;
  --blolp-notch-accent: #6b0e1e;
  --blolp-notch-compact: 290px;
  --blolp-notch-horizontal: 300px;
  --blolp-notch-wide: 480px;
  --blolp-notch-height: 38px;
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 720 / 424;
  min-height: 420px;
  border-radius: 20px;
  overflow: hidden;
  background: #f7f4ec;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 28px 60px rgba(107, 14, 30, 0.12),
    0 2px 6px rgba(107, 14, 30, 0.06);
  isolation: isolate;
}

.flow-panel:has(.blolp-intervention-scene) {
  grid-template-columns: minmax(260px, 0.62fr) minmax(480px, 1.38fr);
  gap: 32px;
  align-items: center;
  min-height: 520px;
}

.flow-panel:has(.blolp-intervention-scene) .flow-copy {
  max-width: 360px;
}

.meeting-work-canvas {
  position: absolute;
  inset: 18px;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(107, 14, 30, 0.07),
      transparent 38%
    ),
    radial-gradient(circle at 8% 96%, rgba(107, 14, 30, 0.05), transparent 42%),
    #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(255, 255, 255, 0.4) inset;
}

.meet-window-bar {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: #faf7f2;
  color: rgba(107, 14, 30, 0.48);
  font-size: 11px;
  line-height: 1;
}

.meet-window-bar strong {
  margin-left: auto;
  color: rgba(107, 14, 30, 0.42);
  font-weight: 600;
}

.meet-lock {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  box-shadow:
    14px 0 #fbbc04,
    28px 0 #ea4335;
  margin-right: 28px;
}

.meet-app-top {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
}

.meet-app-top div {
  display: grid;
  gap: 4px;
}

.meet-product,
.meet-live {
  color: rgba(107, 14, 30, 0.52);
  font-size: 11px;
  font-weight: 650;
}

.meet-app-top strong {
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 650;
}

.meet-live {
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
}

.meet-layout {
  height: calc(100% - 132px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 10px;
  padding: 12px;
  background: #faf7f2;
}

.meet-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(98px, 1fr);
  gap: 10px;
}

.meet-tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(107, 14, 30, 0.12), rgba(107, 14, 30, 0.04)),
    #f0e6e8;
}

.meet-tile-main {
  grid-row: span 2;
  background:
    radial-gradient(
      circle at 70% 20%,
      rgba(66, 133, 244, 0.2),
      transparent 36%
    ),
    linear-gradient(135deg, #ede0e2, #ede0e2);
}

.meet-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #6b0e1e;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(107, 14, 30, 0.12);
}

.meet-tile span {
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: rgba(107, 14, 30, 0.62);
  font-size: 11px;
  font-weight: 650;
}

.meet-context-panel {
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 12px;
  color: rgba(107, 14, 30, 0.58);
  font-size: 11px;
  line-height: 1.4;
}

.meet-context-panel strong {
  display: block;
  color: rgba(107, 14, 30, 0.78);
  font-size: 12px;
  margin-bottom: 6px;
}

.meet-context-panel p {
  margin: 0 0 12px;
}

.meet-note-line {
  height: 8px;
  width: 72%;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.09);
}

.meet-note-line.wide {
  width: 92%;
}

.meet-note-line.short {
  width: 48%;
  margin-bottom: 14px;
}

.meet-controls {
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.meet-controls span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(107, 14, 30, 0.08);
}

.meet-controls span:nth-child(3) {
  background: #ea4335;
}

.meet-highlight {
  display: none;
}

.meet-badge {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--blolp-notch-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  box-shadow:
    0 0 0 2px #fff,
    0 8px 20px rgba(0, 144, 255, 0.32);
  opacity: 0;
  transform: scale(0.65);
  transition:
    opacity 220ms ease,
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.meet-badge-1 {
  top: 240px;
  left: 30px;
}
.meet-badge-2 {
  top: 108px;
  right: 32px;
}
.meet-badge-3 {
  top: 200px;
  right: 32px;
}

.highlight-title,
.highlight-attendees,
.highlight-notes {
  display: none;
}

.blolp-v3-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.blolp-v3-island {
  --current-notch-width: var(--blolp-notch-compact);
  --current-notch-radius: 9px;
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50%) translateY(-12px) scale(0.96);
  transform-origin: top center;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.28));
  transition:
    opacity 180ms ease,
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blolp-v3-ear {
  width: 9px;
  height: 9px;
  background: var(--blolp-notch-bg);
  flex: 0 0 auto;
}

.blolp-v3-ear-left {
  clip-path: path("M 9 9 C 9 4.03 4.97 0 0 0 L 9 0 L 9 9 Z");
}

.blolp-v3-ear-right {
  clip-path: path("M 0 9 C 0 4.03 4.03 0 9 0 L 0 0 L 0 9 Z");
}

.blolp-v3-body {
  width: min(var(--current-notch-width), calc(100vw - 72px));
  min-height: var(--blolp-notch-height);
  overflow: hidden;
  border-radius: 0 0 var(--current-notch-radius) var(--current-notch-radius);
  background: var(--blolp-notch-bg);
  color: var(--blolp-notch-text);
  transition:
    width 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blolp-v3-status {
  height: var(--blolp-notch-height);
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  box-sizing: border-box;
}

.blolp-v3-cloud {
  width: 23px;
  height: 15px;
  border-radius: 50% 50% 48% 48% / 72% 72% 42% 42%;
  background: #fff;
  transform-origin: bottom center;
}

.blolp-v3-title {
  min-width: 0;
  overflow: hidden;
  color: var(--blolp-notch-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.blolp-v3-spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(238, 238, 238, 0.25);
  border-top-color: var(--blolp-notch-text);
  opacity: 0;
}

.blolp-v3-card {
  margin: 0 8px 8px;
  padding: 10px;
  border: 1px solid var(--blolp-notch-border);
  border-radius: 11px;
  background: var(--blolp-notch-surface);
  color: var(--blolp-notch-text);
}

.blolp-v3-card-label,
.blolp-v3-card-head span,
.blolp-v3-safety {
  color: var(--blolp-notch-text-secondary);
  font-size: 11px;
}

.blolp-v3-query,
.blolp-v3-context,
.blolp-v3-result {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition:
    opacity 180ms ease,
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blolp-v3-query p {
  margin: 5px 0 0;
  color: var(--blolp-notch-text);
  font-size: 13px;
  line-height: 1.42;
}

.stream-cursor {
  color: rgba(238, 238, 238, 0.95);
  animation: streamCursorBlink 0.86s steps(1) infinite;
}

.blolp-v3-context {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 10px 9px;
}

.blolp-v3-context .ctx-chip {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px 0 4px;
  border: 1px solid var(--blolp-notch-border);
  border-radius: 999px;
  background: var(--blolp-notch-surface-elevated);
  color: var(--blolp-notch-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.blolp-v3-context .ctx-emoji {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #3a0710;
  font-size: 11px;
  line-height: 1;
}

.blolp-v3-context .ctx-num {
  display: grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blolp-notch-accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.blolp-v3-card-head {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.blolp-v3-card-head strong {
  font-size: 13px;
  font-weight: 600;
}

.blolp-v3-result ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

.blolp-v3-result li {
  display: flex;
  gap: 8px;
  color: var(--blolp-notch-text);
  font-size: 14px;
  line-height: 1.35;
}

.blolp-v3-result li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--blolp-notch-accent);
}

.blolp-v3-safety {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  line-height: 1.45;
}

.blolp-intervention-scene.stage-invoked .blolp-v3-island,
.blolp-intervention-scene.stage-result .blolp-v3-island {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.blolp-intervention-scene.stage-query .blolp-v3-island,
.blolp-intervention-scene.stage-reading .blolp-v3-island,
.blolp-intervention-scene.stage-result .blolp-v3-island {
  --current-notch-width: var(--blolp-notch-wide);
  --current-notch-radius: 18px;
}

.blolp-intervention-scene.stage-query .blolp-v3-query,
.blolp-intervention-scene.stage-reading .blolp-v3-query,
.blolp-intervention-scene.stage-result .blolp-v3-query,
.blolp-intervention-scene.stage-reading .blolp-v3-context,
.blolp-intervention-scene.stage-result .blolp-v3-context,
.blolp-intervention-scene.stage-result .blolp-v3-result {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.blolp-intervention-scene.stage-reading .blolp-v3-spinner,
.blolp-intervention-scene.stage-result .blolp-v3-spinner {
  opacity: 1;
  animation: v3Spinner 0.8s linear infinite;
}

.blolp-intervention-scene.stage-reading .meet-badge,
.blolp-intervention-scene.stage-result .meet-badge {
  opacity: 1;
  transform: scale(1);
}

.blolp-intervention-scene.stage-reading .meet-badge-1,
.blolp-intervention-scene.stage-result .meet-badge-1 {
  transition-delay: 80ms;
}
.blolp-intervention-scene.stage-reading .meet-badge-2,
.blolp-intervention-scene.stage-result .meet-badge-2 {
  transition-delay: 220ms;
}
.blolp-intervention-scene.stage-reading .meet-badge-3,
.blolp-intervention-scene.stage-result .meet-badge-3 {
  transition-delay: 360ms;
}

.blolp-intervention-scene.stage-reading .blolp-v3-context .ctx-chip,
.blolp-intervention-scene.stage-result .blolp-v3-context .ctx-chip {
  animation: chipPop 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.blolp-intervention-scene.stage-reading
  .blolp-v3-context
  .ctx-chip[data-ctx-num="1"],
.blolp-intervention-scene.stage-result
  .blolp-v3-context
  .ctx-chip[data-ctx-num="1"] {
  animation-delay: 80ms;
}
.blolp-intervention-scene.stage-reading
  .blolp-v3-context
  .ctx-chip[data-ctx-num="2"],
.blolp-intervention-scene.stage-result
  .blolp-v3-context
  .ctx-chip[data-ctx-num="2"] {
  animation-delay: 220ms;
}
.blolp-intervention-scene.stage-reading
  .blolp-v3-context
  .ctx-chip[data-ctx-num="3"],
.blolp-intervention-scene.stage-result
  .blolp-v3-context
  .ctx-chip[data-ctx-num="3"] {
  animation-delay: 360ms;
}

@keyframes chipPop {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.blolp-intervention-scene.stage-reading .blolp-v3-cloud,
.blolp-intervention-scene.stage-result .blolp-v3-cloud {
  animation: cloudBounce 0.9s ease-in-out 2;
}

@keyframes streamCursorBlink {
  50% {
    opacity: 0;
  }
}

@keyframes v3Spinner {
  to {
    transform: rotate(360deg);
  }
}

@keyframes contextPulse {
  0% {
    opacity: 0;
    transform: scale(0.985);
  }
  28%,
  70% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.45;
    transform: scale(1);
  }
}

@keyframes cloudBounce {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  45% {
    transform: translateY(-3px) scale(1.06);
  }
}

@media (max-width: 900px) {
  .notch-scene {
    padding: 16px 16px 84px;
  }

  .notch-ip {
    width: 66px;
    right: 20px;
  }

  .blolp-intervention-scene {
    aspect-ratio: auto;
    min-height: 560px;
  }

  .meeting-work-canvas {
    inset: 14px;
  }

  .meet-layout {
    grid-template-columns: 1fr;
  }

  .meet-context-panel {
    display: none;
  }

  .blolp-v3-body {
    width: min(var(--current-notch-width), calc(100vw - 56px));
  }

  .meet-badge-2,
  .meet-badge-3 {
    display: none;
  }
}

/* Static workspace canvas for the meetings use case. */
.flow-panel:has(.meeting-canvas-scene) {
  grid-template-columns: minmax(260px, 0.58fr) minmax(520px, 1.42fr);
  gap: 34px;
  align-items: center;
  min-height: 540px;
}

.flow-panel:has(.meeting-canvas-scene):nth-child(even) {
  grid-template-columns: minmax(520px, 1.42fr) minmax(260px, 0.58fr);
}

.flow-panel:has(.meeting-canvas-scene) .flow-copy {
  max-width: 360px;
}

.meeting-canvas-scene {
  position: relative;
  width: min(780px, 100%);
  aspect-ratio: 780 / 468;
  min-height: 430px;
  overflow: hidden;
  border-radius: 24px;
  background: #faf7f2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 30px 70px rgba(107, 14, 30, 0.14),
    0 2px 8px rgba(107, 14, 30, 0.05);
  isolation: isolate;
}

.meeting-canvas-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(107, 14, 30, 0.08), transparent 32%),
    radial-gradient(
      circle at 82% 18%,
      rgba(96, 165, 250, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 12% 86%,
      rgba(52, 211, 153, 0.1),
      transparent 36%
    ),
    #f0e6e8;
}

.meeting-canvas-bg::before,
.meeting-canvas-bg::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}

.meeting-canvas-bg::before {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -150px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  filter: blur(4px);
}

.meeting-canvas-bg::after {
  width: 420px;
  height: 260px;
  right: -140px;
  top: -86px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  transform: rotate(-12deg);
}

.meeting-workspace-window {
  position: absolute;
  inset: 26px;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.11);
  border-radius: 18px;
  background: #faf7f2;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 22px 46px rgba(107, 14, 30, 0.12);
}

.workspace-titlebar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(107, 14, 30, 0.52);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.window-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.dot-red {
  background: #ef4444;
}
.dot-yellow {
  background: #f59e0b;
}
.dot-green {
  background: #22c55e;
}

.workspace-url {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.workspace-time {
  margin-left: auto;
  color: rgba(107, 14, 30, 0.42);
}

.workspace-body {
  height: calc(100% - 34px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
  gap: 14px;
  padding: 14px;
}

.workspace-meeting-panel,
.workspace-file-board {
  min-width: 0;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
}

.workspace-meeting-panel {
  display: grid;
  grid-template-rows: 56px minmax(0, 1fr) 48px;
  overflow: hidden;
}

.workspace-panel-head,
.file-board-top {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.workspace-panel-head {
  padding: 0 18px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.07);
}

.workspace-panel-head span,
.file-board-top span {
  color: rgba(107, 14, 30, 0.46);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.workspace-panel-head strong,
.file-board-top strong {
  min-width: 0;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.12;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meeting-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(96px, 0.65fr);
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: #f5ecee;
}

.meeting-video-tile {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(
      circle at 76% 20%,
      rgba(66, 133, 244, 0.16),
      transparent 34%
    ),
    linear-gradient(135deg, #f0e6e8, #ede0e2);
}

.meeting-video-main {
  grid-row: 1 / span 3;
  background:
    radial-gradient(
      circle at 66% 24%,
      rgba(107, 14, 30, 0.15),
      transparent 35%
    ),
    linear-gradient(135deg, #f0e6e8, #d0bcc0);
}

.speaker-avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #6b0e1e;
  font-size: 13px;
  font-weight: 760;
  box-shadow: 0 10px 28px rgba(107, 14, 30, 0.12);
}

.meeting-video-main .speaker-avatar {
  width: 58px;
  height: 58px;
  font-size: 15px;
}

.meeting-video-tile span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  overflow: hidden;
  color: rgba(107, 14, 30, 0.62);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.meeting-control-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid rgba(107, 14, 30, 0.07);
  background: #fff;
}

.meeting-control-row span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(107, 14, 30, 0.08);
}

.meeting-control-row span:nth-child(3) {
  background: #ef4444;
}

.workspace-file-board {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
}

.file-board-top {
  margin-bottom: 4px;
}

.source-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(107, 14, 30, 0.05);
}

.source-card strong,
.workspace-floating-doc strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.15;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.source-card p,
.workspace-floating-doc p,
.workspace-transcript-card p {
  margin: 4px 0 0;
  color: rgba(107, 14, 30, 0.55);
  font-size: 11px;
  line-height: 1.35;
}

.source-icon {
  width: 30px;
  height: 34px;
  border-radius: 8px;
  background:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(135deg, rgba(107, 14, 30, 0.4), rgba(96, 165, 250, 0.26))
      border-box;
  border: 1px solid transparent;
  box-shadow: 0 8px 18px rgba(107, 14, 30, 0.06);
}

.source-card-1 .source-icon {
  background:
    linear-gradient(to bottom, #6b0e1e 0 8px, #fff 8px 100%) padding-box,
    linear-gradient(135deg, rgba(107, 14, 30, 0.36), rgba(96, 165, 250, 0.22))
      border-box;
}

.source-card-2 .source-icon {
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0 8px,
      rgba(107, 14, 30, 0.1) 8px 9px,
      transparent 9px 14px
    ),
    #fff;
}

.source-card-3 .source-icon {
  border-radius: 50%;
  background:
    radial-gradient(circle at 60% 38%, #fff 0 22%, transparent 23%), #f5ecee;
}

.message-thread-board {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 18px;
  background:
    radial-gradient(
      circle at 18% 12%,
      rgba(107, 14, 30, 0.08),
      transparent 32%
    ),
    #f5ecee;
}

.thread-row {
  display: flex;
  max-width: 82%;
}

.thread-row span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 14px;
  background: #fff;
  color: rgba(107, 14, 30, 0.7);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 10px 24px rgba(107, 14, 30, 0.05);
}

.thread-row-outgoing {
  justify-self: end;
}

.thread-row-outgoing span {
  background: #f5ecee;
  color: #6b0e1e;
}

.thread-row.is-active span {
  border-color: rgba(0, 144, 255, 0.34);
  box-shadow:
    0 0 0 3px rgba(0, 144, 255, 0.08),
    0 10px 24px rgba(107, 14, 30, 0.05);
}

.workspace-floating-doc {
  position: absolute;
  left: 37%;
  bottom: 28px;
  z-index: 2;
  width: 238px;
  padding: 14px;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 24px 48px rgba(107, 14, 30, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.86) inset;
  transform: rotate(-1.6deg);
}

.floating-doc-toolbar {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.floating-doc-toolbar span {
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.12);
}

.doc-line {
  width: 74%;
  height: 7px;
  margin-top: 8px;
  border-radius: 999px;
  background: rgba(107, 14, 30, 0.1);
}

.doc-line.wide {
  width: 92%;
}
.doc-line.short {
  width: 46%;
}

.workspace-transcript-card {
  position: absolute;
  right: 42px;
  bottom: 42px;
  z-index: 3;
  width: 218px;
  padding: 12px 14px;
  border: 1px solid rgba(107, 14, 30, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 18px 42px rgba(107, 14, 30, 0.12);
}

.workspace-transcript-card span {
  color: rgba(107, 14, 30, 0.75);
  font-size: 11px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .flow-panel:has(.meeting-canvas-scene) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .meeting-canvas-scene {
    width: 100%;
    min-height: 430px;
  }

  .meeting-workspace-window {
    inset: 16px;
  }

  .workspace-body {
    grid-template-columns: 1fr;
  }

  .workspace-file-board {
    display: none;
  }

  .workspace-floating-doc {
    left: 30px;
    bottom: 28px;
    width: min(230px, calc(100% - 60px));
  }

  .workspace-transcript-card {
    right: 28px;
    bottom: 34px;
    width: min(210px, calc(100% - 56px));
  }
}

/* Use-case page rhythm: align with the main site typography and button system. */
.button-primary,
.button-secondary,
.nav-cta,
.home-nav .nav-cta,
.home-mobile-drawer .home-mobile-cta {
  border-radius: var(--button-radius);
  letter-spacing: 0;
}

.button-primary,
.button-secondary {
  min-height: 46px;
  padding: 0 26px;
  font-size: 14px;
  font-weight: 600;
}

.nav-cta,
.home-nav .nav-cta {
  min-height: 40px;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 500;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(107, 14, 30, 0.18);
}

.hero {
  min-height: min(760px, 78vh);
  padding: 132px 0 104px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h1 {
  max-width: 860px;
  font-size: clamp(50px, 5.25vw, 76px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

.hero h1 em {
  display: block;
  font-style: normal;
}

.hero-copy {
  max-width: 700px;
  margin-top: 28px;
  font-size: clamp(18px, 1.65vw, 22px);
  line-height: 1.48;
}

.hero-actions {
  margin-top: 36px;
}

.section {
  padding-block: 112px;
  scroll-margin-top: 132px;
}

.section-header {
  margin-bottom: 54px;
}

.section h2 {
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.section-header.has-ip-accent {
  position: relative;
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
}

.section-header.has-ip-accent h2 {
  max-width: 640px;
  position: relative;
  z-index: 1;
}

.section-ip-accent {
  display: block;
  width: clamp(78px, 8vw, 118px);
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(107, 14, 30, 0.14));
  pointer-events: none;
  user-select: none;
}

.section-header > .section-ip-accent {
  position: absolute;
  top: -44px;
  right: -10px;
  z-index: 0;
  animation: sectionIpFloat 5.8s ease-in-out infinite;
}

.section-header.ip-accent-left > .section-ip-accent {
  right: auto;
  left: -12px;
}

@keyframes sectionIpFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-6px) rotate(1.5deg);
  }
}

.section:has(.how-grid),
.section:has(.faq-grid) {
  padding: 84px 56px 92px;
}

.section:has(.output-wrap) {
  padding: 92px 56px;
}

.usecase-flow {
  padding-block: 136px;
}

.audience-section {
  padding-block: 128px;
}

.approval-section {
  padding-block: 122px;
}

.approval-panel h2 {
  letter-spacing: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 112px 0 72px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 60px);
    line-height: 1.04;
  }

  .hero-copy {
    font-size: 17px;
  }

  .button-primary,
  .button-secondary {
    min-height: 44px;
    padding: 0 20px;
  }

  .section-header.has-ip-accent {
    min-height: 0;
    display: block;
  }

  .section-header.has-ip-accent h2 {
    max-width: 100%;
  }

  .section-header > .section-ip-accent {
    position: static;
    display: block;
    width: 64px;
    margin: 0 0 14px;
    animation: sectionIpFloat 6.4s ease-in-out infinite;
  }

  .section {
    padding-block: 82px;
  }

  .section:has(.how-grid),
  .section:has(.faq-grid),
  .section:has(.output-wrap) {
    padding: 54px 22px 62px;
  }

  .usecase-flow,
  .audience-section,
  .approval-section {
    padding-block: 92px;
  }

  .approval-panel > div:first-child {
    padding-top: 0;
  }

  .approval-ip-accent {
    position: static;
    display: block;
    width: 64px;
    margin: 0 0 14px;
  }
}

/* Messages feature page: Littlebird-inspired pacing and short, task-led copy. */
body[data-page="messages"] .hero {
  min-height: min(720px, 74vh);
  padding: 132px 0 116px;
}

body[data-page="messages"] .hero h1 {
  max-width: 900px;
  font-size: clamp(50px, 5.25vw, 76px);
  line-height: 1.05;
}

body[data-page="messages"] .hero-copy {
  max-width: 560px;
  margin-top: 30px;
  font-size: clamp(18px, 1.45vw, 21px);
}

body[data-page="messages"] .feature-story-section {
  width: min(1040px, calc(100% - 56px));
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(280px, 0.72fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
  padding-block: clamp(132px, 14vw, 188px);
  border-top: 1px solid rgba(29, 29, 31, 0.1);
}

body[data-page="messages"] .feature-story-section:first-child {
  border-top: 0;
}

body[data-page="messages"] .feature-story-section.is-alt {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 0.98fr);
}

body[data-page="messages"] .feature-story-section.is-alt .feature-story-copy {
  grid-column: 2;
}

body[data-page="messages"] .feature-story-section.is-alt .feature-story-points {
  grid-column: 1;
  grid-row: 1;
}

body[data-page="messages"] .feature-story-copy {
  max-width: 520px;
}

body[data-page="messages"] .feature-story-copy.has-feature-ip-accent {
  position: relative;
  isolation: isolate;
}

body[data-page="messages"] .feature-story-ip-accent {
  position: absolute;
  top: -92px;
  right: -18px;
  width: clamp(72px, 7vw, 104px);
  z-index: 0;
  animation: sectionIpFloat 5.8s ease-in-out infinite;
}

body[data-page="messages"]
  .feature-story-section.is-alt
  .feature-story-ip-accent {
  right: auto;
  left: -18px;
}

body[data-page="messages"] .feature-story-copy h2 {
  max-width: 460px;
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.03;
  font-weight: 560;
}

body[data-page="messages"] .feature-story-copy > p {
  max-width: 520px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

body[data-page="messages"] .feature-story-points {
  display: grid;
  gap: 0;
}

body[data-page="messages"] .feature-story-point {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  min-height: 78px;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
}

body[data-page="messages"] .feature-story-point:last-child {
  border-bottom: 1px solid rgba(29, 29, 31, 0.12);
}

body[data-page="messages"] .feature-story-point span {
  color: rgba(37, 94, 255, 0.42);
  font-size: 14px;
  font-weight: 750;
}

body[data-page="messages"] .feature-story-point strong {
  color: #1d1d1f;
  font-size: 22px;
  line-height: 1.14;
  font-weight: 560;
  letter-spacing: 0;
}

body[data-page="messages"] .feature-steps-section,
body[data-page="messages"] .feature-output-section {
  padding-block: 132px;
}

body[data-page="messages"] .feature-steps-section .how-grid {
  gap: 32px;
  border-top: 1px solid rgba(29, 29, 31, 0.12);
}

body[data-page="messages"] .feature-steps-section .step {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 30px 0 0;
}

body[data-page="messages"] .feature-steps-section .step:hover {
  transform: none;
  background: transparent;
}

body[data-page="messages"] .feature-steps-section .step-number {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 28px;
  border-radius: 0;
  background: transparent;
  color: rgba(37, 94, 255, 0.3);
  font-size: 58px;
  line-height: 0.95;
  font-weight: 650;
}

body[data-page="messages"] .feature-steps-section .step h3 {
  font-size: 24px;
  line-height: 1.1;
  font-weight: 620;
}

body[data-page="messages"] .feature-steps-section .step p {
  max-width: 300px;
  font-size: 17px;
  line-height: 1.5;
}

body[data-page="messages"] .feature-example-section {
  padding-block: 140px;
}

body[data-page="messages"] .feature-example-section .section-header,
body[data-page="messages"] .feature-output-section .section-header,
body[data-page="messages"] .feature-steps-section .section-header {
  max-width: 520px;
}

body[data-page="messages"] .message-timeline-section {
  width: min(1080px, calc(100% - 56px));
  padding-block: 4px 122px;
}

body[data-page="messages"] .message-timeline-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.58fr) minmax(520px, 1fr);
  gap: clamp(40px, 6vw, 78px);
  align-items: center;
}

body[data-page="messages"] .message-timeline-copy {
  max-width: 360px;
}

body[data-page="messages"] .message-timeline-copy h2 {
  max-width: 340px;
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(34px, 3.45vw, 46px);
  line-height: 1.05;
  font-weight: 540;
  letter-spacing: -0.035em;
}

body[data-page="messages"] .message-timeline-copy > p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

body[data-page="messages"] .message-timeline-screen {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 86% 16%,
      rgba(107, 14, 30, 0.075),
      transparent 34%
    ),
    rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 52px rgba(107, 14, 30, 0.07);
}

body[data-page="messages"] .message-timeline-screen::before {
  content: "";
  position: absolute;
  top: 82px;
  bottom: 38px;
  left: 60px;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(107, 14, 30, 0.08),
    rgba(107, 14, 30, 0.28),
    rgba(107, 14, 30, 0.06)
  );
}

body[data-page="messages"] .message-timeline-topbar {
  position: relative;
  z-index: 1;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px;
  border-bottom: 1px solid rgba(29, 29, 31, 0.065);
  color: rgba(29, 29, 31, 0.64);
  font-size: 13px;
  font-weight: 650;
}

body[data-page="messages"] .message-timeline-topbar em {
  margin-left: auto;
  color: rgba(29, 29, 31, 0.46);
  font-size: 12px;
  font-style: normal;
  font-weight: 660;
}

body[data-page="messages"] .message-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: #6b0e1e;
  box-shadow: 0 8px 16px rgba(107, 14, 30, 0.16);
}

body[data-page="messages"] .message-timeline-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 14px 26px 20px;
  list-style: none;
}

body[data-page="messages"] .message-timeline-list li {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 16px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(29, 29, 31, 0.065);
}

body[data-page="messages"] .message-timeline-list li:last-child {
  border-bottom: 0;
}

body[data-page="messages"] .message-timeline-number {
  position: relative;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(107, 14, 30, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #6b0e1e;
  font-size: 11px;
  font-weight: 720;
  box-shadow: 0 8px 18px rgba(107, 14, 30, 0.06);
}

body[data-page="messages"] .message-timeline-list h3 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.12;
  font-weight: 620;
  letter-spacing: -0.018em;
}

body[data-page="messages"] .message-timeline-list p {
  max-width: 540px;
  margin: 7px 0 0;
  color: rgba(29, 29, 31, 0.62);
  font-size: 14.5px;
  line-height: 1.48;
}

@media (max-width: 900px) {
  body[data-page="messages"] .hero {
    min-height: auto;
    padding: 108px 0 98px;
  }

  body[data-page="messages"] .hero h1 {
    max-width: 310px;
    font-size: clamp(42px, 12.5vw, 54px);
  }

  body[data-page="messages"] .hero-copy {
    max-width: 310px;
    margin-top: 24px;
    font-size: 16.5px;
    line-height: 1.48;
  }

  body[data-page="messages"] .feature-story-section,
  body[data-page="messages"] .feature-story-section.is-alt {
    width: min(100% - 48px, 620px);
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 108px;
  }

  body[data-page="messages"] .feature-story-section.is-alt .feature-story-copy,
  body[data-page="messages"]
    .feature-story-section.is-alt
    .feature-story-points {
    grid-column: auto;
    grid-row: auto;
  }

  body[data-page="messages"] .feature-story-copy h2 {
    max-width: 300px;
    font-size: clamp(34px, 10vw, 42px);
  }

  body[data-page="messages"] .feature-story-ip-accent,
  body[data-page="messages"]
    .feature-story-section.is-alt
    .feature-story-ip-accent {
    position: static;
    display: block;
    width: 64px;
    margin: 0 0 14px;
  }

  body[data-page="messages"] .feature-story-copy > p {
    font-size: 17px;
    line-height: 1.52;
  }

  body[data-page="messages"] .feature-story-point {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 72px;
  }

  body[data-page="messages"] .feature-story-point strong {
    font-size: 20px;
  }

  body[data-page="messages"] .feature-steps-section,
  body[data-page="messages"] .feature-output-section,
  body[data-page="messages"] .feature-example-section {
    padding-block: 104px;
  }

  body[data-page="messages"] .feature-steps-section .how-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body[data-page="messages"] .feature-steps-section .step-number {
    font-size: 52px;
  }

  body[data-page="messages"] .feature-steps-section .step p {
    max-width: 100%;
  }

  body[data-page="messages"] .message-timeline-section {
    width: min(100% - 48px, 620px);
    padding-block: 0 96px;
  }

  body[data-page="messages"] .message-timeline-wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body[data-page="messages"] .message-timeline-copy h2 {
    max-width: 280px;
    font-size: clamp(32px, 8.9vw, 38px);
  }

  body[data-page="messages"] .message-timeline-copy > p {
    font-size: 16px;
  }

  body[data-page="messages"] .message-timeline-screen {
    border-radius: 18px;
  }

  body[data-page="messages"] .message-timeline-screen::before {
    left: 40px;
    top: 72px;
    bottom: 28px;
  }

  body[data-page="messages"] .message-timeline-topbar {
    min-height: 56px;
    padding: 0 18px;
  }

  body[data-page="messages"] .message-timeline-list {
    padding: 10px 18px 16px;
  }

  body[data-page="messages"] .message-timeline-list li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  body[data-page="messages"] .message-timeline-number {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 11px;
  }

  body[data-page="messages"] .message-timeline-list h3 {
    font-size: 18px;
  }

  body[data-page="messages"] .message-timeline-list p {
    font-size: 13.5px;
  }

  body[data-page="messages"] .message-focused-scene {
    width: min(520px, 100%);
    min-height: 590px;
  }

  body[data-page="messages"] .message-focused-frame {
    width: calc(100% - 16px);
    aspect-ratio: 3 / 4.8;
  }

  body[data-page="messages"] .message-focused-thread {
    top: 36px;
    left: 23px;
    right: 23px;
    gap: 8px;
  }

  body[data-page="messages"] .message-focused-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 16px;
    font-size: 13.5px;
  }

  body[data-page="messages"] .message-focused-bubble.is-short {
    max-width: 72%;
  }

  body[data-page="messages"] .message-focused-bubble.is-sent,
  body[data-page="messages"] .message-focused-bubble.is-positive {
    max-width: 84%;
    padding: 9px 11px;
    font-size: 12.2px;
  }

  body[data-page="messages"] .message-focused-bubble.is-positive {
    max-width: 70%;
  }

  body[data-page="messages"] .message-focused-files span {
    max-width: 150px;
    padding: 6px 9px;
    font-size: 11px;
  }

  body[data-page="messages"] .message-focused-input {
    left: 22px;
    right: 22px;
    bottom: 30px;
    min-height: 60px;
    border-radius: 20px;
  }

  body[data-page="messages"] .message-focused-placeholder {
    font-size: 13.5px;
  }

  body[data-page="messages"] .message-focused-draft-text {
    left: 48px;
    right: 62px;
    font-size: 12.5px;
  }

  body[data-page="messages"] .message-focused-send {
    width: 38px;
    height: 38px;
  }

  body[data-page="messages"] .message-focused-ip {
    right: -6px;
    bottom: 92px;
    width: 116px;
    height: 94px;
  }

  body[data-page="messages"] .message-focused-ip-note {
    right: 24px;
    bottom: 160px;
    width: 222px;
    padding: 11px 12px 12px;
    font-size: 12.5px;
  }

  body[data-page="messages"] .message-focused-ip-note.is-reading {
    right: 48px;
    width: 176px;
  }

  body[data-page="messages"] .message-focused-ip-note.is-result {
    right: 16px;
  }

  body[data-page="messages"] .message-focused-use-reply {
    min-width: 76px;
    height: 28px;
    font-size: 11.5px;
  }
}

/* Workflows final pass: multi-scenario, product-native demos instead of a single illustration. */
body[data-page="workflows"] .flow-panel:has(.workflow-query-scene),
body[data-page="workflows"] .flow-panel:has(.workflow-pr-scene),
body[data-page="workflows"] .flow-panel:has(.workflow-mail-scene),
body[data-page="workflows"] .flow-panel:has(.workflow-admin-scene) {
  grid-template-columns: minmax(280px, 0.56fr) minmax(560px, 1.44fr);
  gap: 38px;
  min-height: 610px;
  align-items: center;
}

body[data-page="workflows"] .flow-panel:has(.workflow-pr-scene):nth-child(even),
body[data-page="workflows"]
  .flow-panel:has(.workflow-mail-scene):nth-child(even),
body[data-page="workflows"]
  .flow-panel:has(.workflow-admin-scene):nth-child(even) {
  grid-template-columns: minmax(560px, 1.44fr) minmax(280px, 0.56fr);
}

body[data-page="workflows"] .flow-copy {
  max-width: 390px;
}

body[data-page="workflows"] .wf-node-ring,
body[data-page="workflows"] .wf-pr-risk-ring {
  display: none;
}

body[data-page="workflows"] .wf-auto-builder {
  grid-template-rows: 68px 44px minmax(0, 1fr);
}

body[data-page="workflows"] .wf-story-rail {
  display: none;
}

body[data-page="workflows"] .workflow-query-bubble {
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(107, 14, 30, 0.1);
}

body[data-page="workflows"]
  .wf-auto-frame
  ~ .workflow-blolp-layer
  .workflow-query-bubble {
  left: 96px;
  top: 66px;
  width: 270px;
}

body[data-page="workflows"]
  .wf-auto-frame
  ~ .workflow-blolp-layer
  .workflow-result-note {
  right: 20px;
  bottom: 132px;
  width: 290px;
}

body[data-page="workflows"]
  .wf-auto-frame
  ~ .workflow-blolp-layer
  .workflow-ip-note {
  right: 102px;
  bottom: 150px;
}

body[data-page="workflows"] .wf-node-selected {
  border-color: rgba(216, 75, 42, 0.28);
  box-shadow: 0 18px 36px rgba(107, 14, 30, 0.11);
  animation: none;
}

body[data-page="workflows"] .wf-failure-chip {
  left: 252px;
  top: 342px;
  box-shadow: none;
}

.workflow-mail-scene,
.workflow-admin-scene {
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  overflow: visible;
  isolation: isolate;
}

.wf-mail-frame,
.wf-admin-frame {
  position: absolute;
  inset: 24px 0 18px 22px;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.11);
  border-radius: 24px;
  background: #fff;
  box-shadow:
    0 34px 90px rgba(107, 14, 30, 0.15),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.wf-mail-topbar,
.wf-admin-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
  color: rgba(29, 29, 31, 0.48);
  font-size: 12px;
  font-weight: 720;
}

.wf-mail-topbar strong,
.wf-admin-topbar strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-mail-topbar em,
.wf-admin-topbar em {
  margin-left: auto;
  color: #8a6b3d;
  font-style: normal;
  font-weight: 840;
  white-space: nowrap;
}

.wf-mail-layout {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 218px;
  background: #f7f4ec;
}

.wf-mail-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 12px;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.wf-mail-sidebar button {
  height: 34px;
  border: 0;
  border-radius: 16px;
  background: #e8d0d4;
  color: #1a040a;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
}

.wf-mail-sidebar span {
  padding: 8px 10px;
  border-radius: 11px;
  color: rgba(29, 29, 31, 0.58);
  font-size: 12px;
  font-weight: 760;
}

.wf-mail-sidebar span.is-active {
  background: #f5ecee;
  color: #8a1326;
}

.wf-mail-thread {
  min-width: 0;
  padding: 15px;
  overflow: hidden;
}

.wf-mail-subject {
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
}

.wf-mail-subject span,
.wf-mail-policy span,
.wf-mail-compose span,
.wf-admin-grid span,
.wf-admin-check span,
.wf-admin-record header span {
  display: block;
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.wf-mail-subject strong {
  display: block;
  margin-top: 7px;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 820;
}

.wf-mail-message,
.wf-mail-compose,
.wf-mail-policy,
.wf-mail-blolp,
.wf-admin-grid > div,
.wf-admin-audit,
.wf-admin-check {
  border: 1px solid rgba(107, 14, 30, 0.09);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(107, 14, 30, 0.055);
}

.wf-mail-message {
  margin-top: 12px;
  padding: 13px;
}

.wf-mail-message b,
.wf-admin-audit b {
  color: #1d1d1f;
  font-size: 12px;
}

.wf-mail-message p,
.wf-mail-compose p,
.wf-mail-policy p,
.wf-mail-blolp p,
.wf-admin-audit p,
.wf-admin-check p {
  margin: 7px 0 0;
  color: rgba(29, 29, 31, 0.62);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.wf-mail-message.is-internal {
  background: #fef8e6;
  border-color: rgba(170, 121, 22, 0.18);
}

.wf-mail-compose {
  margin-top: 12px;
  padding: 13px;
  border-color: rgba(107, 14, 30, 0.18);
}

.wf-mail-compose div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.wf-mail-compose button,
.wf-admin-record header button,
.wf-admin-check button {
  height: 30px;
  border: 0;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(29, 29, 31, 0.08);
  color: rgba(29, 29, 31, 0.64);
  font: inherit;
  font-size: 11px;
  font-weight: 820;
}

.wf-mail-compose button.is-primary,
.wf-admin-record header button {
  background: #fef8e6;
  color: #6b0e1e;
  box-shadow: inset 0 0 0 1px rgba(166, 62, 36, 0.16);
}

.wf-mail-sidepanel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 15px;
  border-left: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.wf-mail-policy,
.wf-mail-blolp,
.wf-admin-check {
  padding: 13px;
}

.wf-mail-policy strong,
.wf-mail-blolp strong,
.wf-admin-grid strong,
.wf-admin-check strong,
.wf-admin-record header strong {
  display: block;
  margin-top: 8px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 840;
}

.wf-mail-policy {
  background: #f7f4ec;
  border-color: rgba(31, 136, 61, 0.16);
}

.wf-mail-blolp {
  background: #fef8e6;
}

.wf-mail-blolp img,
.wf-admin-check img {
  width: 54px;
  height: auto;
  float: right;
  margin: -4px -2px 6px 8px;
}

.wf-admin-body {
  height: calc(100% - 42px);
  display: grid;
  grid-template-columns: 134px minmax(0, 1fr) 232px;
  background: #f7f4ec;
}

.wf-admin-nav {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 16px 12px;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: #1d1d1f;
}

.wf-admin-nav span {
  padding: 9px 10px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.wf-admin-nav span.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.wf-admin-record {
  min-width: 0;
  padding: 16px;
}

.wf-admin-record header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.wf-admin-record header strong {
  font-size: 20px;
}

.wf-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wf-admin-grid > div {
  padding: 14px;
}

.wf-admin-audit {
  margin-top: 14px;
  padding: 14px;
}

.wf-admin-check {
  margin: 16px 16px 16px 0;
  border-color: rgba(166, 62, 36, 0.17);
  background: #fef8e6;
  align-self: start;
}

.wf-admin-check strong {
  color: #6b0e1e;
}

.wf-admin-check button {
  margin-top: 13px;
  width: 100%;
  background: #1d1d1f;
  color: #fff;
}

@media (max-width: 900px) {
  body[data-page="workflows"] .flow-panel:has(.workflow-query-scene),
  body[data-page="workflows"] .flow-panel:has(.workflow-pr-scene),
  body[data-page="workflows"] .flow-panel:has(.workflow-mail-scene),
  body[data-page="workflows"] .flow-panel:has(.workflow-admin-scene),
  body[data-page="workflows"]
    .flow-panel:has(.workflow-pr-scene):nth-child(even),
  body[data-page="workflows"]
    .flow-panel:has(.workflow-mail-scene):nth-child(even),
  body[data-page="workflows"]
    .flow-panel:has(.workflow-admin-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body[data-page="workflows"] .workflow-query-scene,
  body[data-page="workflows"] .workflow-pr-scene,
  .workflow-mail-scene,
  .workflow-admin-scene {
    width: 100%;
    min-height: 650px;
    aspect-ratio: auto;
  }

  body[data-page="workflows"] .wf-auto-builder {
    grid-template-rows: 78px 80px minmax(0, 1fr);
  }

  body[data-page="workflows"]
    .wf-auto-frame
    ~ .workflow-blolp-layer
    .workflow-query-bubble {
    left: 42px;
    top: 62px;
    width: calc(100% - 76px);
  }

  body[data-page="workflows"]
    .wf-auto-frame
    ~ .workflow-blolp-layer
    .workflow-result-note {
    left: 32px;
    right: auto;
    bottom: 104px;
    width: calc(100% - 64px);
  }

  .wf-mail-frame,
  .wf-admin-frame {
    inset: 18px 0;
    border-radius: 22px;
  }

  .wf-mail-layout,
  .wf-admin-body {
    grid-template-columns: 1fr;
  }

  .wf-mail-sidebar,
  .wf-admin-nav {
    display: none;
  }

  .wf-mail-sidepanel,
  .wf-admin-check {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    margin: 0;
    border-left: 1px solid rgba(107, 14, 30, 0.09);
    box-shadow: 0 18px 38px rgba(107, 14, 30, 0.13);
  }

  .wf-mail-thread,
  .wf-admin-record {
    padding: 14px;
    padding-bottom: 190px;
  }

  .wf-admin-grid {
    grid-template-columns: 1fr;
  }

  .wf-admin-record header {
    display: grid;
  }

  .wf-admin-record header button {
    justify-self: start;
  }
}

body[data-page="workflows"] .approval-section {
  background: transparent;
  border-block: 0;
  padding-block: 112px;
}

body[data-page="workflows"] .approval-panel {
  width: min(1120px, calc(100% - 48px));
}

body[data-page="workflows"] .approval-card {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(107, 14, 30, 0.1);
  box-shadow: none;
}

body[data-page="workflows"] .workflow-showcase-section {
  width: min(1280px, calc(100% - 48px));
  max-width: none;
  padding-block: 118px 96px;
}

.workflow-showcase-copy {
  max-width: 760px;
  margin: 0 auto 34px;
  text-align: center;
}

.workflow-showcase-copy h2 {
  margin: 0;
  color: #1d1d1f;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 620;
  line-height: 0.98;
  letter-spacing: 0;
}

.workflow-showcase-copy p {
  max-width: 620px;
  margin: 20px auto 0;
  color: rgba(29, 29, 31, 0.62);
  font-size: 18px;
  line-height: 1.5;
}

.workflow-showcase-shell {
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.12);
  border-radius: 0;
  background: #fff;
  box-shadow: 0 30px 80px rgba(107, 14, 30, 0.12);
}

.wf-showcase-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid rgba(107, 14, 30, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.wf-showcase-tab {
  position: relative;
  min-width: 0;
  height: 68px;
  border: 0;
  border-right: 1px solid rgba(107, 14, 30, 0.1);
  background: transparent;
  color: rgba(29, 29, 31, 0.46);
  font: inherit;
  font-size: 18px;
  font-weight: 560;
  letter-spacing: 0;
  text-align: left;
  padding: 0 22px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-showcase-tab:last-child {
  border-right: 0;
}

.wf-showcase-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 2px;
  background: #6b0e1e;
  transition: width 220ms ease;
}

.wf-showcase-tab.is-active {
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.76);
}

.wf-showcase-tab.is-active::before {
  width: 100%;
}

.wf-showcase-stage {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background:
    radial-gradient(
      circle at 78% 22%,
      rgba(255, 184, 205, 0.48),
      transparent 31%
    ),
    radial-gradient(
      circle at 18% 72%,
      rgba(156, 190, 255, 0.48),
      transparent 33%
    ),
    linear-gradient(135deg, #f5ecee 0%, #fef8e6 52%, #fef8e6 100%);
}

.wf-showcase-stage::before {
  content: "";
  position: absolute;
  inset: -12%;
  background:
    linear-gradient(
      115deg,
      rgba(255, 255, 255, 0),
      rgba(255, 255, 255, 0.44) 48%,
      rgba(255, 255, 255, 0)
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.12) 0 1px,
      transparent 1px 160px
    );
  opacity: 0.72;
  pointer-events: none;
}

.wf-showcase-frame {
  position: absolute;
  inset: 0;
  display: none;
  opacity: 1;
  transform: none;
  pointer-events: none;
  transition: none;
}

.wf-showcase-frame.is-active {
  display: block;
  pointer-events: auto;
}

.wf-showcase-frame.is-pr {
  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(115, 187, 255, 0.4),
      transparent 32%
    ),
    linear-gradient(
      160deg,
      rgba(15, 117, 196, 0.92),
      rgba(222, 242, 255, 0.34) 58%,
      transparent
    );
}

.wf-showcase-frame.is-mail {
  background:
    radial-gradient(
      circle at 24% 22%,
      rgba(194, 231, 255, 0.62),
      transparent 34%
    ),
    radial-gradient(
      circle at 72% 76%,
      rgba(255, 221, 142, 0.46),
      transparent 32%
    );
}

.wf-showcase-frame.is-admin {
  background:
    radial-gradient(circle at 28% 26%, rgba(29, 29, 31, 0.13), transparent 28%),
    radial-gradient(
      circle at 78% 68%,
      rgba(255, 195, 164, 0.48),
      transparent 34%
    );
}

.wf-stage-main {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  width: min(650px, 58%);
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.14);
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 34px 78px rgba(107, 14, 30, 0.2),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translate(-50%, -50%);
}

.wf-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(29, 29, 31, 0.48);
  font-size: 12px;
  font-weight: 760;
}

.wf-window-bar b {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ef4444;
}

.wf-window-bar b:nth-child(2) {
  background: #f59e0b;
}

.wf-window-bar b:nth-child(3) {
  background: #22c55e;
}

.wf-window-bar span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wf-window-bar em {
  margin-left: auto;
  color: #8a6b3d;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.wf-stage-card {
  position: absolute;
  z-index: 4;
  width: 280px;
  padding: 18px 20px;
  border: 1px solid rgba(107, 14, 30, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 54px rgba(107, 14, 30, 0.13);
  backdrop-filter: blur(16px);
}

.wf-stage-card span {
  display: block;
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.wf-stage-card strong {
  display: block;
  margin-top: 9px;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 820;
  line-height: 1.12;
}

.wf-stage-card p {
  margin: 8px 0 0;
  color: rgba(29, 29, 31, 0.58);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.42;
}

.wf-stage-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.wf-stage-card li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(29, 29, 31, 0.055);
  color: rgba(29, 29, 31, 0.62);
  font-size: 12px;
  font-weight: 760;
}

.wf-stage-card li.is-ok {
  background: #f7f4ec;
  color: #8a6b3d;
}

.wf-stage-card li.is-risk {
  background: #fef8e6;
  color: #6b0e1e;
}

.wf-stage-instruction {
  left: 9%;
  top: 92px;
}

.wf-stage-runlog {
  right: 9%;
  bottom: 92px;
}

.wf-builder-body,
.wf-pr-workspace,
.wf-mail-workspace,
.wf-admin-workspace {
  height: calc(100% - 42px);
  display: grid;
  min-height: 0;
}

.wf-builder-body {
  grid-template-columns: 54px minmax(0, 1fr) 210px;
  background: #f7f4ec;
}

.wf-builder-sidebar,
.wf-mail-workspace > aside:first-child,
.wf-admin-workspace > aside:first-child {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 10px;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.wf-builder-sidebar i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(29, 29, 31, 0.1);
}

.wf-builder-sidebar i.is-active {
  background: #e8c95c;
}

.wf-builder-canvas {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
}

.wf-builder-node {
  position: absolute;
  width: 168px;
  padding: 14px;
  border: 1px solid rgba(31, 136, 61, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(107, 14, 30, 0.09);
}

.wf-builder-node span,
.wf-builder-inspector span,
.wf-pr-copilot span,
.wf-mail-draft span,
.wf-mail-copilot span,
.wf-admin-workspace main > span,
.wf-admin-copilot span,
.wf-admin-metrics span {
  display: block;
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-weight: 820;
}

.wf-builder-node strong,
.wf-builder-inspector strong,
.wf-pr-copilot strong,
.wf-mail-copilot strong,
.wf-admin-copilot strong {
  display: block;
  margin-top: 7px;
  color: #1d1d1f;
  font-size: 14px;
  font-weight: 840;
  line-height: 1.12;
}

.wf-builder-node small {
  display: block;
  margin-top: 6px;
  color: rgba(29, 29, 31, 0.58);
  font-size: 11px;
  font-weight: 690;
}

.wf-builder-node:first-child {
  left: 30px;
  top: 132px;
}

.wf-builder-node.is-mid {
  left: 202px;
  top: 132px;
}

.wf-builder-node.is-low {
  left: 202px;
  top: 292px;
}

.wf-builder-node.is-muted {
  left: 30px;
  top: 292px;
  opacity: 0.62;
}

.wf-builder-node.is-risk {
  border-color: rgba(166, 62, 36, 0.3);
}

.wf-builder-line {
  position: absolute;
  left: 198px;
  top: 172px;
  width: 24px;
  height: 2px;
  background: rgba(31, 136, 61, 0.42);
}

.wf-builder-line.is-down {
  left: 286px;
  top: 226px;
  width: 2px;
  height: 84px;
}

.wf-builder-inspector,
.wf-pr-copilot,
.wf-mail-copilot,
.wf-admin-copilot {
  padding: 16px;
  border-left: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.86);
}

.wf-builder-inspector p,
.wf-pr-copilot p,
.wf-mail-copilot p,
.wf-admin-copilot p {
  margin: 9px 0 0;
  color: rgba(29, 29, 31, 0.62);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.45;
}

.wf-builder-inspector button {
  width: 100%;
  height: 32px;
  margin-top: 14px;
  border: 0;
  border-radius: 999px;
  background: #1d1d1f;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
}

.wf-pr-workspace {
  grid-template-columns: 155px minmax(0, 1fr) 220px;
  background: #f7f4ec;
}

.wf-pr-workspace > aside:first-child {
  padding: 15px;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: #fff;
}

.wf-pr-workspace aside strong {
  font-size: 12px;
}

.wf-pr-workspace aside p,
.wf-mail-workspace aside p,
.wf-admin-workspace aside p {
  margin: 10px 0 0;
  padding: 8px 9px;
  border-radius: 9px;
  color: rgba(29, 29, 31, 0.58);
  font-size: 11px;
  font-weight: 760;
}

.wf-pr-workspace aside p.is-active,
.wf-mail-workspace aside p.is-active,
.wf-admin-workspace aside p.is-active {
  background: #f5ecee;
  color: #8a1326;
}

.wf-pr-workspace main {
  min-width: 0;
  overflow: hidden;
}

.wf-pr-filebar {
  height: 42px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  font-size: 12px;
  font-weight: 820;
}

.wf-pr-filebar span {
  color: #8a6b3d;
}

.wf-pr-workspace pre {
  margin: 0;
  padding: 14px 0;
  color: rgba(29, 29, 31, 0.74);
  font:
    12px/2 ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;
  white-space: pre;
}

.wf-pr-workspace pre span {
  display: inline-block;
  width: 40px;
  margin-right: 10px;
  color: rgba(29, 29, 31, 0.36);
  text-align: right;
}

.wf-pr-workspace pre span:nth-of-type(3) {
  color: #6b0e1e;
}

.wf-mail-workspace {
  grid-template-columns: 118px minmax(0, 1fr) 218px;
  background: #f7f4ec;
}

.wf-mail-workspace aside button {
  height: 32px;
  border: 0;
  border-radius: 16px;
  background: #e8d0d4;
  color: #1a040a;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
}

.wf-mail-workspace main {
  padding: 16px;
  min-width: 0;
  overflow: hidden;
}

.wf-mail-workspace h3,
.wf-admin-workspace h3 {
  margin: 0 0 14px;
  color: #1d1d1f;
  font-size: 18px;
  font-weight: 840;
}

.wf-mail-message,
.wf-mail-draft {
  padding: 13px;
  border: 1px solid rgba(107, 14, 30, 0.09);
  border-radius: 14px;
  background: #fff;
}

.wf-mail-message p,
.wf-mail-draft p {
  margin: 7px 0 0;
  color: rgba(29, 29, 31, 0.62);
  font-size: 12px;
  font-weight: 660;
  line-height: 1.42;
}

.wf-mail-draft {
  margin-top: 12px;
  border-color: rgba(107, 14, 30, 0.18);
}

.wf-mail-copilot img,
.wf-admin-copilot img {
  width: 58px;
  float: right;
  margin: -6px -4px 6px 8px;
}

.wf-admin-workspace {
  grid-template-columns: 126px minmax(0, 1fr) 220px;
  background: #f7f4ec;
}

.wf-admin-workspace > aside:first-child {
  background: #1d1d1f;
}

.wf-admin-workspace > aside:first-child p {
  color: rgba(255, 255, 255, 0.62);
}

.wf-admin-workspace > aside:first-child p.is-active {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.wf-admin-workspace main {
  padding: 16px;
}

.wf-admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.wf-admin-metrics div {
  padding: 13px;
  border: 1px solid rgba(107, 14, 30, 0.09);
  border-radius: 14px;
  background: #fff;
}

.wf-admin-metrics strong {
  display: block;
  margin-top: 7px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 820;
}

@media (max-width: 900px) {
  body[data-page="workflows"] .approval-section {
    padding-block: 84px;
  }

  body[data-page="workflows"] .approval-panel {
    width: min(100%, calc(100% - 32px));
  }

  body[data-page="workflows"] .workflow-showcase-section {
    width: min(100%, calc(100% - 28px));
    padding-block: 82px 70px;
  }

  .workflow-showcase-copy {
    text-align: left;
    margin-bottom: 22px;
  }

  .workflow-showcase-copy h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .workflow-showcase-copy p {
    margin-left: 0;
    font-size: 16px;
  }

  .wf-showcase-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .wf-showcase-tab {
    height: 54px;
    padding: 0 12px;
    font-size: 13px;
  }

  .wf-showcase-stage {
    min-height: 720px;
  }

  .wf-stage-main {
    left: 50%;
    top: 50%;
    width: calc(100% - 28px);
    height: 520px;
  }

  .wf-stage-card {
    display: none;
  }

  .wf-builder-body,
  .wf-pr-workspace,
  .wf-mail-workspace,
  .wf-admin-workspace {
    grid-template-columns: 1fr;
  }

  .wf-builder-sidebar,
  .wf-pr-workspace > aside:first-child,
  .wf-mail-workspace > aside:first-child,
  .wf-admin-workspace > aside:first-child {
    display: none;
  }

  .wf-builder-inspector,
  .wf-pr-copilot,
  .wf-mail-copilot,
  .wf-admin-copilot {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    border: 1px solid rgba(107, 14, 30, 0.1);
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(107, 14, 30, 0.12);
  }

  .wf-builder-node:first-child {
    left: 30px;
    top: 90px;
  }

  .wf-builder-node.is-mid {
    left: 118px;
    top: 212px;
  }

  .wf-builder-node.is-low {
    left: 30px;
    top: 336px;
  }

  .wf-builder-node.is-muted {
    display: none;
  }
}

/* Documents: same query-card structure, but grounded in real document tasks. */
.flow-panel:has(.document-scene) {
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 36px;
  min-height: 600px;
  align-items: center;
}

.flow-panel:has(.document-scene):nth-child(even) {
  grid-template-columns: minmax(560px, 1.42fr) minmax(280px, 0.58fr);
}

body[data-page="documents"] .flow-copy {
  max-width: 390px;
}

.document-scene {
  position: relative;
  width: min(820px, 100%);
  min-height: 560px;
  aspect-ratio: 820 / 560;
  isolation: isolate;
}

.doc-window {
  position: absolute;
  inset: 18px 0 18px 18px;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 26px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.97),
      rgba(254, 248, 230, 0.4)
    ),
    #fff;
  box-shadow:
    0 36px 90px rgba(107, 14, 30, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

.doc-window-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(29, 29, 31, 0.52);
  font-size: 12px;
  font-weight: 750;
}

.doc-window-bar strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doc-window-bar em {
  margin-left: auto;
  color: rgba(29, 29, 31, 0.5);
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.doc-layout {
  height: calc(100% - 42px);
}

.doc-pdf-layout {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 246px;
  background: linear-gradient(180deg, #f5ecee 0%, #f0e6e8 100%);
}

.doc-thumb-rail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px 12px;
  border-right: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(250, 247, 242, 0.9);
}

.doc-thumb-rail span {
  height: 62px;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  color: rgba(29, 29, 31, 0.56);
  font-size: 12px;
  font-weight: 820;
  box-shadow: 0 8px 20px rgba(107, 14, 30, 0.05);
}

.doc-thumb-rail span.is-active {
  border-color: rgba(107, 14, 30, 0.26);
  background: #f5ecee;
  color: #8a1326;
}

.doc-page-stack {
  padding: 22px;
  display: grid;
  align-items: center;
}

.doc-page {
  position: relative;
  width: min(100%, 430px);
  min-height: 430px;
  margin: 0 auto;
  padding: 28px 28px 30px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(252, 252, 253, 1), rgba(248, 249, 251, 1)),
    #fff;
  box-shadow:
    0 22px 44px rgba(107, 14, 30, 0.09),
    0 1px 0 rgba(255, 255, 255, 0.95) inset;
}

.doc-page-header span,
.doc-mini-card span,
.doc-tax-header span,
.doc-tax-row span,
.doc-tax-footer span,
.doc-site-chip {
  display: block;
  color: rgba(29, 29, 31, 0.48);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.1;
}

.doc-page-header strong,
.doc-mini-card strong,
.doc-tax-header strong,
.doc-article-card strong {
  display: block;
  margin-top: 8px;
  color: #1d1d1f;
  font-size: 17px;
  font-weight: 840;
  line-height: 1.25;
}

.doc-copy-block {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.doc-copy-block p,
.doc-mini-card p,
.doc-tax-footer p,
.doc-article-card p {
  margin: 0;
  color: rgba(29, 29, 31, 0.66);
  font-size: 13px;
  font-weight: 630;
  line-height: 1.5;
}

.doc-copy-block b {
  color: #1d1d1f;
}

.doc-copy-block mark {
  padding: 0 5px;
  border-radius: 6px;
  background: #f5de8d;
  color: inherit;
}

.doc-highlight {
  position: absolute;
  left: 22px;
  right: 22px;
  border-radius: 12px;
  pointer-events: none;
}

.doc-highlight-deadline {
  top: 136px;
  height: 38px;
  background: rgba(255, 233, 122, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 191, 36, 0.2);
}

.doc-highlight-risk {
  top: 312px;
  height: 46px;
  background: rgba(255, 216, 214, 0.32);
  box-shadow: inset 0 0 0 1px rgba(205, 80, 61, 0.12);
}

.doc-sidecards,
.doc-tax-rail,
.doc-brief-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border-left: 1px solid rgba(107, 14, 30, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.doc-mini-card {
  padding: 14px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(107, 14, 30, 0.05);
}

.doc-mini-card ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.doc-mini-card li {
  position: relative;
  padding-left: 18px;
  color: rgba(29, 29, 31, 0.68);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.doc-mini-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #6b0e1e;
}

.doc-mini-card.is-reading {
  background: #fef8e6;
}

.doc-mini-card.is-checklist {
  background: #f7f4ec;
  border-color: rgba(31, 136, 61, 0.14);
}

.doc-mini-card.is-risk {
  background: #fef8e6;
  border-color: rgba(197, 101, 53, 0.14);
}

.doc-tax-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  background: linear-gradient(180deg, #f7f4ec 0%, #f0e6e8 100%);
}

.doc-tax-main {
  padding: 18px;
  min-width: 0;
}

.doc-tax-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.doc-tax-state {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.doc-tax-state span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 820;
}

.doc-tax-state .is-warn {
  background: #fef8e6;
  color: #8a1326;
}

.doc-tax-state .is-muted {
  background: rgba(29, 29, 31, 0.08);
  color: rgba(29, 29, 31, 0.58);
}

.doc-tax-sheet {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(107, 14, 30, 0.06);
}

.doc-tax-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 13px;
  background: #faf7f2;
}

.doc-tax-row strong {
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 820;
  white-space: nowrap;
}

.doc-tax-row.is-missing {
  background: #fef8e6;
}

.doc-tax-row.is-missing strong {
  color: #8a1326;
}

.doc-tax-row.is-review {
  background: #fef8e6;
}

.doc-tax-row.is-review strong {
  color: #e8c95c;
}

.doc-tax-footer {
  margin-top: 14px;
  padding: 13px 14px 0;
}

.doc-brief-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 266px;
  background: linear-gradient(180deg, #f7f4ec 0%, #f0e6e8 100%);
}

.doc-article-column {
  padding: 18px;
  min-width: 0;
}

.doc-site-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.07);
  color: rgba(29, 29, 31, 0.58);
}

.doc-article-card {
  margin-top: 12px;
  padding: 18px;
  border: 1px solid rgba(107, 14, 30, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(107, 14, 30, 0.06);
}

.doc-article-card p + p {
  margin-top: 12px;
}

.doc-transcript-strip {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.doc-transcript-strip span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.08);
  color: rgba(29, 29, 31, 0.56);
  font-size: 11px;
  font-weight: 800;
}

.doc-transcript-strip span.is-active {
  background: #f5ecee;
  color: #8a1326;
}

.doc-mini-card.is-brief {
  background: #fef8e6;
  border-color: rgba(107, 14, 30, 0.14);
}

.doc-mini-card.is-next {
  background: #f7f4ec;
  border-color: rgba(31, 136, 61, 0.14);
}

@media (max-width: 900px) {
  .flow-panel:has(.document-scene),
  .flow-panel:has(.document-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .document-scene {
    width: 100%;
    min-height: 680px;
    aspect-ratio: auto;
  }

  .doc-window {
    inset: 12px 0;
  }

  .doc-pdf-layout,
  .doc-tax-layout,
  .doc-brief-layout {
    grid-template-columns: 1fr;
  }

  .doc-thumb-rail {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(107, 14, 30, 0.08);
  }

  .doc-thumb-rail span {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .doc-sidecards,
  .doc-tax-rail,
  .doc-brief-rail {
    border-left: 0;
    border-top: 1px solid rgba(107, 14, 30, 0.08);
  }

  .doc-tax-header {
    display: grid;
    gap: 10px;
  }

  .doc-tax-state {
    justify-items: start;
  }

  .doc-page {
    min-height: 380px;
    width: 100%;
  }
}

/* ============================================================
 * Documents · PDF scene v4
 * Photo backdrop · PDF page in cream window · blolp reads → blolp Brief
 * Animation cycle: 0–28% PDF idle · 28–48% mark pulse + IP thinking + Reading bubble
 *                  48–98% brief card slides up + IP idle · 98–100% reset
 * ============================================================ */

.document-pdf-scene {
  --doc-cycle: 8.4s;
  width: min(940px, 100%);
  aspect-ratio: 940 / 640;
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 60% 55% at 14% 24%,
      rgba(214, 196, 232, 0.55),
      transparent 58%
    ),
    radial-gradient(
      ellipse 50% 48% at 86% 32%,
      rgba(252, 220, 214, 0.5),
      transparent 62%
    ),
    radial-gradient(
      ellipse 70% 55% at 78% 88%,
      rgba(204, 220, 240, 0.55),
      transparent 60%
    ),
    radial-gradient(
      ellipse 55% 45% at 22% 82%,
      rgba(228, 215, 240, 0.5),
      transparent 60%
    ),
    linear-gradient(155deg, #f0e6e8 0%, #f7f4ec 38%, #f0e6e8 70%, #ede0e2 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 30px 70px rgba(107, 14, 30, 0.14),
    0 4px 14px rgba(107, 14, 30, 0.06);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

.document-pdf-scene .doc-scene-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 255, 255, 0.9) 0.6px,
      transparent 1.4px
    ),
    radial-gradient(
      circle at 28% 42%,
      rgba(255, 255, 255, 0.7) 0.5px,
      transparent 1.2px
    ),
    radial-gradient(
      circle at 64% 12%,
      rgba(255, 255, 255, 0.8) 0.6px,
      transparent 1.4px
    ),
    radial-gradient(
      circle at 84% 56%,
      rgba(255, 255, 255, 0.6) 0.5px,
      transparent 1.2px
    ),
    radial-gradient(
      circle at 8% 72%,
      rgba(255, 255, 255, 0.7) 0.5px,
      transparent 1.3px
    ),
    radial-gradient(
      circle at 92% 80%,
      rgba(255, 255, 255, 0.6) 0.5px,
      transparent 1.2px
    ),
    radial-gradient(
      circle at 46% 88%,
      rgba(255, 255, 255, 0.5) 0.4px,
      transparent 1.1px
    );
  background-size: 100% 100%;
  opacity: 0.85;
}

/* --- The PDF page (no application chrome — just a sheet of paper on the canvas) --- */

.document-pdf-scene .doc-pdf-paper {
  position: absolute;
  inset: 3% 24% 2.5% 4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 24px 32px 18px;
  border-radius: 4px;
  background: #fef8e6;
  background-image: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.6) 0%,
    rgba(255, 255, 255, 0) 12%,
    rgba(0, 0, 0, 0) 88%,
    rgba(0, 0, 0, 0.02) 100%
  );
  color: #6b0e1e;
  font-family: "Charter", "Iowan Old Style", "Times New Roman", Times, serif;
  font-size: 11px;
  line-height: 1.55;
  box-shadow:
    0 0 0 1px rgba(28, 24, 20, 0.08),
    0 24px 60px rgba(107, 14, 30, 0.18),
    0 4px 10px rgba(107, 14, 30, 0.06);
  -webkit-font-smoothing: antialiased;
}

.document-pdf-scene .doc-pdf-letterhead {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.document-pdf-scene .doc-pdf-seal svg {
  display: block;
  width: 28px;
  height: 28px;
  color: #6b0e1e;
}

.document-pdf-scene .doc-pdf-letterhead-text {
  display: grid;
  gap: 1px;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
}

.document-pdf-scene .doc-pdf-letterhead-text strong {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #6b0e1e;
}

.document-pdf-scene .doc-pdf-letterhead-text span {
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(28, 24, 20, 0.6);
}

.document-pdf-scene .doc-pdf-letterhead-date {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.62);
}

.document-pdf-scene .doc-pdf-rule {
  margin: 14px 0 18px;
  height: 1px;
  background: rgba(28, 24, 20, 0.16);
}

.document-pdf-scene .doc-pdf-doctitle {
  margin: 0 0 6px;
  font-family: "Charter", "Iowan Old Style", "Times New Roman", Times, serif;
  font-weight: 700;
  font-size: clamp(16px, 1.65vw, 21px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: #6b0e1e;
  text-wrap: balance;
}

.document-pdf-scene .doc-pdf-subtitle {
  margin: 0 0 14px;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

.document-pdf-scene .doc-pdf-body {
  flex: 1;
  display: grid;
  gap: 7px;
}

.document-pdf-scene .doc-pdf-body p {
  margin: 0;
  font-family: inherit;
  font-size: 10.5px;
  line-height: 1.52;
  font-weight: 400;
  letter-spacing: 0;
  color: #6b0e1e;
  text-align: justify;
  text-wrap: pretty;
  hyphens: auto;
}

.document-pdf-scene .doc-pdf-body b {
  font-weight: 700;
  color: #6b0e1e;
}

.document-pdf-scene .doc-pdf-pagefoot {
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 18px;
  border-top: 1px solid rgba(28, 24, 20, 0.14);
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.5);
}

/* --- Scene 2: 1040 form layout --- */

.document-pdf-scene .doc-pdf-paper.is-form {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
}

.document-pdf-scene .doc-pdf-letterhead.is-form {
  grid-template-columns: 1fr auto;
  align-items: flex-end;
  padding-bottom: 10px;
  border-bottom: 2px solid #6b0e1e;
}

.document-pdf-scene .doc-pdf-formno strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #6b0e1e;
}

.document-pdf-scene .doc-pdf-formno span {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.62);
  margin-top: 2px;
}

.document-pdf-scene .doc-pdf-formyear {
  text-align: right;
}

.document-pdf-scene .doc-pdf-formyear strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #6b0e1e;
}

.document-pdf-scene .doc-pdf-formyear span {
  display: block;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(28, 24, 20, 0.62);
  margin-top: 2px;
}

.document-pdf-scene .doc-pdf-paper.is-form .doc-pdf-doctitle {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 17px);
  letter-spacing: -0.004em;
  margin: 14px 0 12px;
}

.document-pdf-scene .doc-pdf-formrow {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(28, 24, 20, 0.14);
  margin-top: -1px;
  background: #ffffff;
  font-size: 11px;
  line-height: 1.35;
  color: #6b0e1e;
}

.document-pdf-scene .doc-pdf-formrow b {
  font-weight: 700;
  margin-right: 6px;
  color: rgba(28, 24, 20, 0.7);
}

.document-pdf-scene .doc-pdf-formrow-head {
  background: #f7f4ec;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: rgba(28, 24, 20, 0.66);
  padding: 6px 12px;
}

.document-pdf-scene .doc-pdf-formrow.is-flagged {
  background: #fef8e6;
}

.document-pdf-scene .doc-pdf-formnote {
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 1px dashed rgba(28, 24, 20, 0.22);
  background: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 1.5;
  color: rgba(28, 24, 20, 0.74);
}

.document-pdf-scene .doc-pdf-formnote b {
  font-weight: 700;
  color: #6b0e1e;
}

/* --- Scene 3: Article layout --- */

.document-pdf-scene .doc-pdf-paper.is-article {
  background: #ffffff;
}

.document-pdf-scene .doc-pdf-articlehead {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.12);
}

.document-pdf-scene .doc-pdf-articlepub {
  font-family: "Charter", "Iowan Old Style", Georgia, serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 700;
  color: #6b0e1e;
}

.document-pdf-scene .doc-pdf-articlesection {
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

.document-pdf-scene .doc-pdf-paper.is-article .doc-pdf-doctitle {
  font-family: "Charter", "Iowan Old Style", Georgia, serif;
  font-weight: 700;
  font-size: clamp(18px, 1.9vw, 24px);
  line-height: 1.18;
  margin: 16px 0 10px;
}

.document-pdf-scene .doc-pdf-byline {
  display: flex;
  gap: 12px;
  margin: 0 0 18px;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.58);
}

.document-pdf-scene .doc-pdf-byline span:first-child {
  color: #6b0e1e;
  font-weight: 600;
}

.document-pdf-scene .doc-pdf-lede {
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: #6b0e1e;
  text-align: left;
}

.document-pdf-scene .doc-pdf-pagefoot.is-article {
  font-style: italic;
}

.document-pdf-scene .doc-mark {
  position: relative;
  padding: 1px 4px;
  border-radius: 3px;
  background: transparent;
  color: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* Cycle only starts when the scene is scrolled into view.
   Default = NO animation attached → idle PDF (no marks, no brief, IP idle visible).
   IntersectionObserver in site.js adds .is-playing which mounts the animations. */

.document-pdf-scene.is-playing .doc-mark.is-deadline {
  animation: documentMarkPulse var(--doc-cycle) ease-in-out infinite;
}

.document-pdf-scene.is-playing .doc-mark.is-fee {
  animation: documentMarkPulseFee var(--doc-cycle) ease-in-out infinite;
}

.document-pdf-scene.is-playing .doc-mark.is-risk {
  animation: documentMarkPulseRisk var(--doc-cycle) ease-in-out infinite;
}

/* --- blolp overlay layer --- */

.document-blolp-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

/* Reading bubble — sits next to IP, visible during the "reading" phase. */
.doc-reading-bubble {
  position: absolute;
  right: 4.5%;
  bottom: 22%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(120, 126, 138, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a040a;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
  white-space: nowrap;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 6px rgba(107, 14, 30, 0.08),
    0 14px 28px rgba(107, 14, 30, 0.12);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: 100% 100%;
  will-change: opacity, transform;
}

.document-pdf-scene.is-playing .doc-reading-bubble {
  animation: documentReadingBubble var(--doc-cycle) ease-in-out infinite;
}

.doc-reading-bubble-text {
  color: #1a040a;
}

.doc-reading-dots {
  display: inline-flex;
  gap: 3px;
}

.doc-reading-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b0e1e;
  opacity: 0.36;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

.doc-reading-dots i:nth-child(2) {
  animation-delay: 0.16s;
}
.doc-reading-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

/* Brief card — blolp output, slides in during the "result" phase. */
.document-pdf-scene .doc-brief-card {
  position: absolute;
  right: 3%;
  bottom: 18%;
  z-index: 3;
  width: min(340px, 42%);
  padding: 14px 18px 16px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(107, 14, 30, 0.05),
    0 2px 6px rgba(107, 14, 30, 0.06),
    0 26px 56px rgba(107, 14, 30, 0.18);
  color: #1a040a;
  opacity: 0;
  transform: translateY(20px);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

.document-pdf-scene.is-playing .doc-brief-card {
  animation: documentBriefCard var(--doc-cycle) ease-out infinite;
}

.document-pdf-scene .doc-brief-card::after,
.document-pdf-scene .doc-brief-card::before {
  content: "";
  position: absolute;
  right: 64px;
  bottom: -8px;
  width: 16px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.document-pdf-scene .doc-brief-card::before {
  background: rgba(107, 14, 30, 0.05);
  transform: translateY(1px);
}

.document-pdf-scene .doc-brief-card::after {
  background: #ffffff;
}

.doc-brief-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
}

.doc-brief-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5ecee;
  box-shadow: inset 0 0 0 1px rgba(28, 24, 20, 0.08);
}

.doc-brief-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center 30%;
  filter: drop-shadow(0 1px 1px rgba(45, 72, 143, 0.18));
}

.doc-brief-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.006em;
  color: #1a040a;
}

.doc-brief-mark {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: #6b0e1e;
  opacity: 0.78;
}

.doc-brief-mark svg {
  display: block;
}

.document-pdf-scene .doc-brief-lede {
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 580;
  line-height: 1.42;
  letter-spacing: -0.006em;
  color: #1a040a;
  text-wrap: pretty;
}

.document-pdf-scene .doc-brief-source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: -2px;
  margin-right: 4px;
  color: #6b0e1e;
}

.document-pdf-scene .doc-brief-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.document-pdf-scene .doc-brief-list li {
  position: relative;
  padding-left: 13px;
  color: rgba(22, 20, 18, 0.78);
  font-size: 12.5px;
  font-weight: 520;
  line-height: 1.42;
  letter-spacing: -0.003em;
  text-wrap: pretty;
}

.document-pdf-scene .doc-brief-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(22, 20, 18, 0.42);
}

.document-pdf-scene .doc-brief-source-tag {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 24, 20, 0.08);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: rgba(28, 24, 20, 0.46);
}

/* IP avatar — bottom-right corner, swaps idle ↔ thinking on the cycle. */
.document-ip {
  position: absolute;
  right: 4.5%;
  bottom: 6%;
  width: 12%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 100%;
  animation: messageFocusedIpFloat 2.8s ease-in-out infinite alternate;
}

.document-ip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(45, 72, 143, 0.22));
  will-change: opacity, transform;
}

.document-pdf-scene.is-playing .document-ip-idle {
  animation: documentIpIdle var(--doc-cycle) ease-in-out infinite;
}

.document-pdf-scene.is-playing .document-ip-thinking {
  animation: documentIpThinking var(--doc-cycle) ease-in-out infinite;
}

/* When paused (no .is-playing), force the IP to its idle state: idle face visible, thinking hidden. */
.document-pdf-scene:not(.is-playing) .document-ip-idle {
  opacity: 1;
}
.document-pdf-scene:not(.is-playing) .document-ip-thinking {
  opacity: 0;
}

/* --- Keyframes (one master cycle = 8.4s) --- */

/* Marks appear ONLY after blolp reads. Initial state: transparent (not yet annotated).
   Staggered fade-in during reading phase, then stay visible while brief is shown. */
@keyframes documentMarkPulse {
  0%,
  26% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(255, 191, 36, 0);
  }
  32% {
    background: rgba(255, 220, 110, 0.62);
    box-shadow: 0 0 0 4px rgba(255, 191, 36, 0.18);
  }
  40%,
  94% {
    background: rgba(255, 220, 110, 0.42);
    box-shadow: 0 0 0 0 rgba(255, 191, 36, 0);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(255, 191, 36, 0);
  }
}

@keyframes documentMarkPulseFee {
  0%,
  30% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(107, 14, 30, 0);
  }
  36% {
    background: rgba(160, 196, 255, 0.62);
    box-shadow: 0 0 0 4px rgba(107, 14, 30, 0.16);
  }
  44%,
  94% {
    background: rgba(160, 196, 255, 0.42);
    box-shadow: 0 0 0 0 rgba(107, 14, 30, 0);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(107, 14, 30, 0);
  }
}

@keyframes documentMarkPulseRisk {
  0%,
  34% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(205, 80, 61, 0);
  }
  40% {
    background: rgba(255, 170, 158, 0.62);
    box-shadow: 0 0 0 4px rgba(205, 80, 61, 0.16);
  }
  48%,
  94% {
    background: rgba(255, 170, 158, 0.42);
    box-shadow: 0 0 0 0 rgba(205, 80, 61, 0);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 0 rgba(205, 80, 61, 0);
  }
}

@keyframes documentReadingBubble {
  0%,
  20% {
    opacity: 0;
    transform: translateY(8px) scale(0.94);
  }
  28%,
  46% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  54%,
  100% {
    opacity: 0;
    transform: translateY(-4px) scale(0.96);
  }
}

@keyframes documentBriefCard {
  0%,
  46% {
    opacity: 0;
    transform: translateY(28px);
  }
  54%,
  96% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes documentIpIdle {
  0%,
  22% {
    opacity: 1;
    transform: scale(1);
  }
  30%,
  46% {
    opacity: 0;
    transform: scale(0.96);
  }
  54%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes documentIpThinking {
  0%,
  24% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
  30%,
  46% {
    opacity: 1;
    transform: scale(1.02) rotate(-1deg);
  }
  54%,
  100% {
    opacity: 0;
    transform: scale(0.96) rotate(1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .document-pdf-scene .doc-mark,
  .doc-reading-bubble,
  .doc-reading-dots i,
  .document-pdf-scene .doc-brief-card,
  .document-ip,
  .document-ip img {
    animation: none !important;
  }
  .doc-reading-bubble,
  .document-ip-thinking {
    opacity: 0 !important;
  }
  .document-pdf-scene .doc-brief-card,
  .document-ip-idle {
    opacity: 1 !important;
    transform: none !important;
  }
  .document-pdf-scene .doc-mark.is-deadline {
    background: rgba(255, 220, 110, 0.42) !important;
  }
  .document-pdf-scene .doc-mark.is-fee {
    background: rgba(160, 196, 255, 0.42) !important;
  }
  .document-pdf-scene .doc-mark.is-risk {
    background: rgba(255, 170, 158, 0.42) !important;
  }
}

@media (max-width: 1100px) {
  .flow-panel:has(.document-pdf-scene),
  .flow-panel:has(.document-pdf-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .flow-panel:has(.document-pdf-scene) .flow-copy,
  .flow-panel:has(.document-pdf-scene) .flow-demo {
    order: 0;
  }
}

@media (max-width: 900px) {
  .flow-panel:has(.document-pdf-scene) {
    width: 100%;
    overflow: hidden;
  }

  .flow-panel:has(.document-pdf-scene) .flow-demo {
    min-height: auto;
    width: 100%;
    overflow: hidden;
    justify-content: center;
    padding: 0 12px;
  }

  .document-pdf-scene {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    aspect-ratio: 4 / 5.6;
    border-radius: 22px;
  }

  .document-pdf-scene .doc-pdf-paper {
    inset: 3% 4% 26% 4%;
    padding: 18px 18px 14px;
  }

  .document-pdf-scene .doc-pdf-doctitle {
    font-size: clamp(14px, 4.4vw, 18px);
  }

  .document-pdf-scene .doc-pdf-body p {
    font-size: 10.5px;
    line-height: 1.55;
  }

  .document-pdf-scene .doc-pdf-formrow {
    font-size: 10px;
    padding: 6px 10px;
  }

  .doc-reading-bubble {
    right: 6%;
    bottom: 26%;
    font-size: 11.5px;
    padding: 7px 12px 7px 10px;
  }

  .document-pdf-scene .doc-brief-card {
    right: 4%;
    left: auto;
    bottom: 22%;
    width: min(86%, 340px);
    padding: 14px 18px 16px;
  }

  .document-pdf-scene .doc-brief-card::after,
  .document-pdf-scene .doc-brief-card::before {
    right: 48px;
  }

  .document-pdf-scene .doc-brief-lede {
    font-size: 13.5px;
  }

  .document-pdf-scene .doc-brief-list li {
    font-size: 12.5px;
  }

  .document-ip {
    right: 5%;
    bottom: 2%;
    width: 18%;
  }
}

/* ============================================================
 * Memory canvases (scene 1: Gmail thread / scene 2: semantic search)
 * Same cosmic backdrop + blolp overlay + scroll-trigger pattern as documents v8.
 * ============================================================ */

body[data-page="memory"] .memory-scene {
  --doc-cycle: 8.4s;
  position: relative;
  width: min(940px, 100%);
  aspect-ratio: 940 / 640;
  min-height: 0;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 60% 55% at 14% 24%,
      rgba(214, 196, 232, 0.55),
      transparent 58%
    ),
    radial-gradient(
      ellipse 50% 48% at 86% 32%,
      rgba(252, 220, 214, 0.5),
      transparent 62%
    ),
    radial-gradient(
      ellipse 70% 55% at 78% 88%,
      rgba(204, 220, 240, 0.55),
      transparent 60%
    ),
    radial-gradient(
      ellipse 55% 45% at 22% 82%,
      rgba(228, 215, 240, 0.5),
      transparent 60%
    ),
    linear-gradient(155deg, #f0e6e8 0%, #f7f4ec 38%, #f0e6e8 70%, #ede0e2 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 30px 70px rgba(107, 14, 30, 0.14),
    0 4px 14px rgba(107, 14, 30, 0.06);
  isolation: isolate;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body[data-page="memory"] .memory-scene .doc-scene-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 12% 18%,
      rgba(255, 255, 255, 0.9) 0.6px,
      transparent 1.4px
    ),
    radial-gradient(
      circle at 28% 42%,
      rgba(255, 255, 255, 0.7) 0.5px,
      transparent 1.2px
    ),
    radial-gradient(
      circle at 64% 12%,
      rgba(255, 255, 255, 0.8) 0.6px,
      transparent 1.4px
    ),
    radial-gradient(
      circle at 84% 56%,
      rgba(255, 255, 255, 0.6) 0.5px,
      transparent 1.2px
    ),
    radial-gradient(
      circle at 8% 72%,
      rgba(255, 255, 255, 0.7) 0.5px,
      transparent 1.3px
    ),
    radial-gradient(
      circle at 92% 80%,
      rgba(255, 255, 255, 0.6) 0.5px,
      transparent 1.2px
    );
  opacity: 0.85;
}

/* === Scene 1 — Gmail thread === */

body[data-page="memory"] .memory-mail {
  position: absolute;
  inset: 4% 24% 4.5% 4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 12px;
  color: #6b0e1e;
  box-shadow:
    0 0 0 1px rgba(28, 24, 20, 0.08),
    0 24px 60px rgba(107, 14, 30, 0.16),
    0 4px 10px rgba(107, 14, 30, 0.06);
}

body[data-page="memory"] .memory-mail-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.08);
  background: linear-gradient(180deg, #f7f4ec, #f0e6e8);
}

body[data-page="memory"] .memory-mail-tabs {
  display: inline-flex;
  gap: 14px;
  font-size: 11px;
  font-weight: 620;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-mail-tabs .is-active {
  color: #c5221f;
}

body[data-page="memory"] .memory-mail-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(28, 24, 20, 0.06);
  color: rgba(28, 24, 20, 0.55);
  font-size: 11px;
  font-weight: 500;
}

body[data-page="memory"] .memory-mail-thread {
  flex: 1;
  padding: 20px 24px;
  overflow: hidden;
}

body[data-page="memory"] .memory-mail-subject {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.08);
  margin-bottom: 16px;
}

body[data-page="memory"] .memory-mail-subject strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #6b0e1e;
  letter-spacing: -0.005em;
}

body[data-page="memory"] .memory-mail-label {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-mail-message {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 12px;
  row-gap: 4px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(28, 24, 20, 0.06);
}

body[data-page="memory"] .memory-mail-message:last-child {
  border-bottom: 0;
}

body[data-page="memory"] .memory-mail-message.is-prior {
  opacity: 0.66;
}

body[data-page="memory"] .memory-mail-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fef8e6;
  color: #e8c95c;
  font-size: 10.5px;
  font-weight: 700;
  grid-row: span 2;
}

body[data-page="memory"] .memory-mail-avatar.is-muted {
  background: #ede0e2;
  color: rgba(28, 24, 20, 0.55);
}

body[data-page="memory"] .memory-mail-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 11px;
}

body[data-page="memory"] .memory-mail-meta strong {
  font-weight: 700;
  color: #6b0e1e;
}

body[data-page="memory"] .memory-mail-meta span {
  color: rgba(28, 24, 20, 0.5);
  font-weight: 500;
}

body[data-page="memory"] .memory-mail-meta em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  color: rgba(28, 24, 20, 0.46);
}

body[data-page="memory"] .memory-mail-body {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(28, 24, 20, 0.78);
}

body[data-page="memory"] .memory-mail-quote {
  font-style: italic;
  color: rgba(28, 24, 20, 0.5);
}

/* === Scene 2 — Notes archive + semantic search === */

body[data-page="memory"] .memory-notebook {
  position: absolute;
  inset: 4% 24% 4.5% 4%;
  z-index: 1;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: #fef8e6;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 12px;
  color: #6b0e1e;
  box-shadow:
    0 0 0 1px rgba(28, 24, 20, 0.08),
    0 24px 60px rgba(107, 14, 30, 0.16),
    0 4px 10px rgba(107, 14, 30, 0.06);
}

body[data-page="memory"] .memory-notebook-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 245, 236, 0.95)
  );
}

body[data-page="memory"] .memory-notebook-app {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(28, 24, 20, 0.7);
}

body[data-page="memory"] .memory-notebook-count {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-notebook-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.06);
  background: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

body[data-page="memory"] .memory-search-icon {
  color: rgba(28, 24, 20, 0.5);
  display: inline-flex;
  align-items: center;
}

body[data-page="memory"] .memory-search-query {
  font-family: "Charter", Georgia, serif;
  font-style: italic;
  color: #6b0e1e;
  font-weight: 500;
}

body[data-page="memory"] .memory-search-meta {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: -0.003em;
  color: rgba(28, 24, 20, 0.42);
}

body[data-page="memory"] .memory-notebook-list {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  overflow: hidden;
}

body[data-page="memory"] .memory-notebook-list li {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px dashed rgba(28, 24, 20, 0.06);
  font-size: 12px;
  color: rgba(28, 24, 20, 0.4);
  transition: background 200ms ease;
}

body[data-page="memory"] .memory-notebook-list li.is-hit {
  background: rgba(255, 236, 188, 0.42);
  color: #6b0e1e;
}

body[data-page="memory"] .memory-note-date {
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body[data-page="memory"] .memory-note-title {
  font-weight: 500;
}

body[data-page="memory"] .memory-notebook-list li.is-hit .memory-note-title {
  font-weight: 700;
  color: #6b0e1e;
}

body[data-page="memory"] .memory-note-fade {
  font-size: 10px;
  font-weight: 500;
  font-style: italic;
  color: rgba(28, 24, 20, 0.34);
}

body[data-page="memory"] .memory-note-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8c95c;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 220, 110, 0.42);
}

/* === blolp overlay layer (shared by both memory scenes) === */

body[data-page="memory"] .memory-blolp-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

body[data-page="memory"] .memory-reading-bubble {
  position: absolute;
  right: 4.5%;
  bottom: 22%;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 14px 9px 12px;
  border: 1px solid rgba(120, 126, 138, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1a040a;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.004em;
  white-space: nowrap;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 2px 6px rgba(107, 14, 30, 0.08),
    0 14px 28px rgba(107, 14, 30, 0.12);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: 100% 100%;
  will-change: opacity, transform;
}

body[data-page="memory"] .memory-scene.is-playing .memory-reading-bubble {
  animation: documentReadingBubble var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-reading-dots {
  display: inline-flex;
  gap: 3px;
}

body[data-page="memory"] .memory-reading-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6b0e1e;
  opacity: 0.36;
  animation: messageFocusedDot 1s ease-in-out infinite;
}

body[data-page="memory"] .memory-reading-dots i:nth-child(2) {
  animation-delay: 0.16s;
}
body[data-page="memory"] .memory-reading-dots i:nth-child(3) {
  animation-delay: 0.32s;
}

body[data-page="memory"] .memory-brief-card {
  position: absolute;
  right: 3%;
  bottom: 22%;
  z-index: 3;
  width: min(360px, 44%);
  padding: 16px 20px 18px;
  border-radius: 18px;
  background: #ffffff;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  color: #1a040a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 0 0 1px rgba(107, 14, 30, 0.05),
    0 2px 6px rgba(107, 14, 30, 0.06),
    0 26px 56px rgba(107, 14, 30, 0.18);
  opacity: 0;
  transform: translateY(20px);
  transform-origin: 92% 100%;
  will-change: opacity, transform;
}

body[data-page="memory"] .memory-scene.is-playing .memory-brief-card {
  animation: documentBriefCard var(--doc-cycle) ease-out infinite;
}

body[data-page="memory"] .memory-brief-card::after,
body[data-page="memory"] .memory-brief-card::before {
  content: "";
  position: absolute;
  right: 64px;
  bottom: -8px;
  width: 16px;
  height: 8px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

body[data-page="memory"] .memory-brief-card::before {
  background: rgba(107, 14, 30, 0.05);
  transform: translateY(1px);
}

body[data-page="memory"] .memory-brief-card::after {
  background: #ffffff;
}

body[data-page="memory"] .memory-brief-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

body[data-page="memory"] .memory-brief-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  overflow: hidden;
  background: #f5ecee;
  box-shadow: inset 0 0 0 1px rgba(28, 24, 20, 0.08);
}

body[data-page="memory"] .memory-brief-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  object-position: center 30%;
  filter: drop-shadow(0 1px 1px rgba(45, 72, 143, 0.18));
}

body[data-page="memory"] .memory-brief-label {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.006em;
  color: #6b0e1e;
}

body[data-page="memory"] .memory-brief-mark {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: #6b0e1e;
  opacity: 0.78;
}

body[data-page="memory"] .memory-brief-mark svg {
  display: block;
}

body[data-page="memory"] .memory-brief-lede {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 580;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: #1a040a;
  text-wrap: pretty;
}

body[data-page="memory"] .memory-brief-lede em {
  font-style: italic;
  color: #6b0e1e;
  font-weight: 660;
}

body[data-page="memory"] .memory-brief-evidence {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

body[data-page="memory"] .memory-brief-evidence li {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(232, 234, 240, 0.4);
  display: grid;
  gap: 2px;
}

body[data-page="memory"] .memory-evidence-tag {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-brief-evidence li strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #6b0e1e;
  letter-spacing: -0.003em;
}

body[data-page="memory"] .memory-evidence-source {
  font-size: 10px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.52);
}

body[data-page="memory"]
  .memory-brief-card.memory-brief-excerpt
  .memory-brief-excerpt-quote {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid rgba(255, 191, 36, 0.5);
  background: rgba(255, 248, 222, 0.42);
  font-family: "Charter", Georgia, serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #6b0e1e;
  font-style: italic;
}

body[data-page="memory"] .memory-brief-source-row {
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(28, 24, 20, 0.08);
  font-size: 11px;
}

body[data-page="memory"] .memory-brief-source-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.5);
}

body[data-page="memory"] .memory-brief-source-name {
  font-weight: 600;
  color: rgba(28, 24, 20, 0.78);
}

body[data-page="memory"] .memory-mark {
  padding: 1px 4px;
  border-radius: 3px;
  background: transparent;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

body[data-page="memory"] .memory-scene.is-playing .memory-mark.is-deadline {
  animation: documentMarkPulse var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-scene.is-playing .memory-mark.is-fee {
  animation: documentMarkPulseFee var(--doc-cycle) ease-in-out infinite;
}

/* IP avatar — bottom-right (mirrors documents pattern) */

body[data-page="memory"] .memory-ip {
  position: absolute;
  right: 4%;
  bottom: 6%;
  width: 12%;
  aspect-ratio: 1.24 / 1;
  transform-origin: 50% 100%;
  animation: messageFocusedIpFloat 2.8s ease-in-out infinite alternate;
}

body[data-page="memory"] .memory-ip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(45, 72, 143, 0.22));
  will-change: opacity, transform;
}

body[data-page="memory"] .memory-scene.is-playing .memory-ip-idle {
  animation: documentIpIdle var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-scene.is-playing .memory-ip-thinking {
  animation: documentIpThinking var(--doc-cycle) ease-in-out infinite;
}

body[data-page="memory"] .memory-scene:not(.is-playing) .memory-ip-idle {
  opacity: 1;
}
body[data-page="memory"] .memory-scene:not(.is-playing) .memory-ip-thinking {
  opacity: 0;
}

/* Flow-panel column for memory scenes */
body[data-page="memory"] .flow-panel:has(.memory-scene),
body[data-page="memory"] .flow-panel:has(.memory-scene):nth-child(even) {
  grid-template-columns: minmax(320px, 0.72fr) minmax(520px, 1.28fr);
  gap: 36px;
  min-height: 600px;
  align-items: center;
}

body[data-page="memory"] .flow-panel:has(.memory-scene):nth-child(even) {
  grid-template-columns: minmax(520px, 1.28fr) minmax(320px, 0.72fr);
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="memory"] .memory-reading-bubble,
  body[data-page="memory"] .memory-brief-card,
  body[data-page="memory"] .memory-ip,
  body[data-page="memory"] .memory-ip img,
  body[data-page="memory"] .memory-reading-dots i,
  body[data-page="memory"] .memory-mark {
    animation: none !important;
  }
  body[data-page="memory"] .memory-reading-bubble,
  body[data-page="memory"] .memory-ip-thinking {
    opacity: 0 !important;
  }
  body[data-page="memory"] .memory-brief-card,
  body[data-page="memory"] .memory-ip-idle {
    opacity: 1 !important;
    transform: none !important;
  }
  body[data-page="memory"] .memory-mark.is-deadline {
    background: rgba(255, 220, 110, 0.42) !important;
  }
  body[data-page="memory"] .memory-mark.is-fee {
    background: rgba(160, 196, 255, 0.42) !important;
  }
}

@media (max-width: 1100px) {
  body[data-page="memory"] .flow-panel:has(.memory-scene),
  body[data-page="memory"] .flow-panel:has(.memory-scene):nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  body[data-page="memory"] .flow-panel:has(.memory-scene) {
    width: 100%;
    overflow: hidden;
  }
  body[data-page="memory"] .memory-scene {
    width: min(100%, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    aspect-ratio: 4 / 5.4;
    border-radius: 22px;
  }
  body[data-page="memory"] .memory-mail,
  body[data-page="memory"] .memory-notebook {
    inset: 4% 4% 28% 4%;
    font-size: 11px;
  }
  body[data-page="memory"] .memory-brief-card {
    right: 4%;
    bottom: 4%;
    width: min(82%, 330px);
    padding: 14px 16px;
  }
  body[data-page="memory"] .memory-reading-bubble {
    right: 5%;
    bottom: 26%;
    font-size: 11px;
  }
  body[data-page="memory"] .memory-ip {
    right: 5%;
    bottom: 2%;
    width: 18%;
  }
}

/* ============================================================
 * FAQ accordion — native <details>+<summary>, no section title.
 * Toki-style: light card per question, chevron on right, expands inline.
 * ============================================================ */

.faq-section {
  padding: 56px 0 72px;
}

.section.faq-section {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.faq-section .faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-section .faq-item {
  border: 0;
  border-radius: 16px;
  background: rgba(250, 247, 242, 0.78);
  padding: 0;
  margin: 0;
  transition: background 180ms ease;
  overflow: hidden;
}

.faq-section .faq-item:hover {
  background: rgba(241, 243, 248, 1);
  transform: none;
  border: 0;
  box-shadow: none;
}

.faq-section .faq-item[open] {
  background: rgba(241, 243, 248, 1);
}

.faq-section .faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-section .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-section .faq-item summary::marker {
  content: "";
}

.faq-section .faq-item summary h3 {
  margin: 0;
  font-family: var(--font-dm-sans);
  font-size: clamp(16px, 1.15vw, 18px);
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: #1d1d1f;
}

.faq-section .faq-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: rgba(29, 29, 31, 0.62);
  transition:
    transform 240ms cubic-bezier(0.2, 0, 0, 1),
    color 200ms ease;
}

.faq-section .faq-item[open] .faq-toggle {
  transform: rotate(180deg);
  color: #1d1d1f;
}

.faq-section .faq-answer {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.faq-section .faq-answer p {
  margin: 0;
  color: rgba(29, 29, 31, 0.72);
  font-weight: 500;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}

.faq-section .faq-answer p + p {
  margin-top: 12px;
}

.faq-section .faq-answer a {
  color: #6b0e1e;
  text-decoration: underline;
  text-decoration-color: rgba(29, 78, 216, 0.4);
  text-underline-offset: 2px;
  transition:
    text-decoration-color 160ms ease,
    color 160ms ease;
}

.faq-section .faq-answer a:hover {
  color: #8a1326;
  text-decoration-color: currentColor;
}

@media (max-width: 760px) {
  .faq-section .faq-grid {
    padding: 0 16px;
    gap: 10px;
  }
  .faq-section .faq-item summary {
    padding: 18px 20px;
    gap: 16px;
  }
  .faq-section .faq-item summary h3 {
    font-size: 15.5px;
  }
  .faq-section .faq-answer {
    padding: 0 20px 20px;
    font-size: 14.5px;
  }
}

/* ============================================================
 * Reports canvases — reuse documents v8 paper + blolp overlay.
 * Scene 1 (competitor): research draft with comparison table
 * Scene 2 (contract):  reuses doc-pdf-* clauses + risk marks
 * ============================================================ */

/* Reports paper: slightly wider for table breathing room */
body[data-page="reports"] .document-pdf-scene .doc-pdf-paper {
  padding: 26px 32px 18px;
}

body[data-page="reports"] .document-pdf-scene .doc-pdf-paper.is-reports {
  font-family: "Charter", "Iowan Old Style", "Times New Roman", Times, serif;
}

body[data-page="reports"] .reports-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  font-family: "Helvetica Neue", "Inter", system-ui, sans-serif;
  font-size: 10.5px;
  line-height: 1.45;
  color: #6b0e1e;
  table-layout: fixed;
}

body[data-page="reports"] .reports-table thead th {
  text-align: left;
  padding: 8px 10px 7px;
  border-bottom: 1.5px solid rgba(28, 24, 20, 0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(28, 24, 20, 0.6);
}

body[data-page="reports"] .reports-table tbody td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(28, 24, 20, 0.12);
  vertical-align: top;
  color: rgba(28, 24, 20, 0.82);
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

body[data-page="reports"] .reports-cell-meta {
  display: inline-block;
  margin-left: 4px;
  font-size: 9.5px;
  font-weight: 500;
  color: rgba(28, 24, 20, 0.5);
  white-space: nowrap;
}

body[data-page="reports"] .reports-table tbody tr:last-child td {
  border-bottom: 0;
}

body[data-page="reports"] .reports-table tbody td strong {
  color: #6b0e1e;
  font-weight: 700;
  white-space: nowrap;
}

body[data-page="reports"] .reports-table tbody td:nth-child(2) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Article-mode footer color a touch lighter on reports */
body[data-page="reports"] .document-pdf-scene .doc-pdf-byline {
  font-size: 10px;
  margin: 0 0 14px;
}

@media (max-width: 900px) {
  body[data-page="reports"] .reports-table {
    font-size: 9.5px;
  }
  body[data-page="reports"] .reports-table thead th,
  body[data-page="reports"] .reports-table tbody td {
    padding: 6px 7px;
  }
}

/* ============================================================
 * Trigger demo — shows how to invoke blolp (Fn key + notch)
 * Sits between hero and how-it-works on every use-case page.
 * ============================================================ */

.trigger-demo {
  width: 100%;
  padding: 24px 0 56px;
  background: transparent;
}

.trigger-demo-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 0.58fr);
  gap: 56px;
  align-items: center;
}

.trigger-demo-title {
  margin: 0 0 18px;
  font-family: var(--font-dm-sans);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  font-weight: 600;
  color: #1d1d1f;
  text-wrap: pretty;
}

.trigger-demo-open,
.trigger-demo-action {
  margin: 0 0 12px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: rgba(29, 29, 31, 0.72);
  text-wrap: pretty;
}

.trigger-demo-action {
  margin-bottom: 0;
  color: #1d1d1f;
}

.fn-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  margin: 0 2px;
  padding: 0 8px;
  border-radius: 6px;
  background: #ffffff;
  box-shadow:
    0 0 0 1px rgba(29, 29, 31, 0.16),
    0 1px 0 rgba(29, 29, 31, 0.12),
    0 2px 4px rgba(107, 14, 30, 0.06);
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1d1d1f;
  vertical-align: -2px;
}

.trigger-demo-shot {
  position: relative;
  margin: 0;
  min-height: 360px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7f4ec 0%, #f5ecee 100%);
  box-shadow:
    0 0 0 1px rgba(107, 14, 30, 0.06),
    0 24px 60px rgba(107, 14, 30, 0.1),
    0 4px 12px rgba(107, 14, 30, 0.04);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.trigger-demo-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 900px) {
  .trigger-demo-wrap {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .trigger-demo-shot {
    min-height: 260px;
  }
}
.top-screen-section {
  background: #faf7f2;
  padding: 76px 48px 12px;
  overflow: hidden;
}

.top-moodboard {
  position: relative;
  width: min(1500px, calc(100vw - 96px));
  min-height: 820px;
  margin: 0 auto;
  background-image:
    linear-gradient(rgba(29, 29, 31, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 29, 31, 0.12) 1px, transparent 1px);
  background-size: 245px 185px;
  background-position: -84px -6px;
}

.top-moodboard::before,
.top-moodboard::after,
.mood-corner {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(29, 29, 31, 0.18);
}

.top-moodboard::before {
  left: 14px;
  top: 14px;
}

.top-moodboard::after {
  right: 14px;
  top: 14px;
}

.mood-corner.bl {
  left: 14px;
  bottom: 14px;
}

.mood-corner.br {
  right: 14px;
  bottom: 14px;
}

.board-title {
  position: absolute;
  left: 76px;
  top: 64px;
  width: 470px;
  margin: 0;
  font-family: var(--font-inter);
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #1d1d1f;
}

.board-title span {
  display: block;
}

.mood-reminder {
  position: absolute;
  left: 470px;
  top: 214px;
  width: 350px;
  margin: 0;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  line-height: 0.95;
  letter-spacing: -0.07em;
  font-weight: 400;
  color: #1d1d1f;
}

.mood-reminder .blue-note {
  color: #6b0e1e;
}

.text-item {
  position: absolute;
  width: 250px;
  font-family: var(--font-dm-sans);
  color: #1d1d1f;
}

.text-item strong {
  display: inline-block;
  font-family: var(--font-inter);
  font-size: clamp(23px, 1.75vw, 30px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  font-weight: 400;
  padding-bottom: 2px;
}

.text-item.is-underlined strong {
  border-bottom: 2px solid #6b0e1e;
}

.text-item span {
  display: block;
  margin-top: 8px;
  font-size: 17px;
  line-height: 0.98;
  letter-spacing: -0.06em;
  color: rgba(29, 29, 31, 0.72);
}

.text-item em {
  font-style: normal;
}

.item-ask {
  left: 118px;
  top: 84px;
}

.item-reply {
  left: 34px;
  top: 252px;
}

.item-write {
  left: 794px;
  top: 182px;
}

.item-walk {
  left: 1160px;
  top: 294px;
}

.item-explain {
  left: 748px;
  top: 650px;
}

.item-handoff {
  left: 1030px;
  top: 588px;
}

.item-remember {
  left: 54px;
  top: 555px;
  width: 180px;
}

.screen-peek {
  position: absolute;
  left: 604px;
  top: 302px;
  width: 500px;
  height: auto;
  overflow: visible;
}

.screen-mockup {
  display: none;
  width: 100%;
  height: auto;
  filter: none;
}

.mac-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 1.78;
  overflow: hidden;
  border-radius: 22px 22px 0 0;
  background:
    radial-gradient(
      circle at 50% 40%,
      rgba(255, 255, 255, 0.7),
      transparent 34%
    ),
    linear-gradient(135deg, #fef8e6 0%, #f5ecee 52%, #e8d0d4 100%);
  box-shadow:
    inset 0 0 0 10px #1a040a,
    inset 0 0 0 12px rgba(255, 255, 255, 0.16),
    0 18px 50px rgba(29, 29, 31, 0.16);
}

.mac-screen::before {
  content: "";
  position: absolute;
  left: 39%;
  top: 0;
  width: 22%;
  height: 10.5%;
  border-radius: 0 0 14px 14px;
  background: #1a040a;
  z-index: 3;
}

.mac-screen::after {
  content: "";
  position: absolute;
  left: 48.7%;
  top: 3.4%;
  width: 2.5%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(107, 14, 30, 0.9), #1a040a 62%);
  z-index: 4;
}

.screen-cloud {
  position: absolute;
  left: 50%;
  top: 23%;
  width: 76px;
  transform: translateX(-50%);
  opacity: 0.9;
  filter: drop-shadow(0 14px 22px rgba(107, 14, 30, 0.22));
}

.board-title,
.mood-reminder,
.text-item,
.screen-peek {
  will-change: transform;
}

[data-tune-layer="title"] {
  transform: translate(-36px, 4px);
}

[data-tune-layer="reminder"] {
  transform: translate(-430px, -22px);
}

[data-tune-layer="screen"] {
  transform: translate(45px, -219px);
}

[data-tune-layer="ask"] {
  transform: translate(543px, 390px);
}

[data-tune-layer="reply"] {
  transform: translate(225px, 121px);
}

[data-tune-layer="write"] {
  transform: translate(111px, 475px);
}

[data-tune-layer="walk"] {
  transform: translate(83px, -106px);
}

[data-tune-layer="explain"] {
  transform: translate(237px, 437px);
}

[data-tune-layer="handoff"] {
  transform: translate(223px, -158px);
}

[data-tune-layer="remember"] {
  transform: translate(-15px, 0px);
}

.is-top-screen-tuning [data-tune-layer] {
  outline: 1px dashed rgba(107, 14, 30, 0.45);
  outline-offset: 8px;
  z-index: 20;
}

.top-screen-tune-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: min(620px, calc(100vw - 32px));
  max-height: 44vh;
  overflow: auto;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 10, 18, 0.88);
  color: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  font:
    12px/1.55 ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  text-align: left;
  white-space: pre-wrap;
}

@media (max-width: 1080px) {
  .top-screen-section {
    padding: 82px 24px 12px;
  }

  .top-moodboard {
    width: 100%;
    min-height: 980px;
  }

  .board-title {
    left: 0;
    top: 50px;
  }

  .mood-reminder {
    left: 0;
    top: 210px;
    width: min(440px, 100%);
  }

  .screen-peek {
    left: 18%;
    top: 326px;
    width: min(560px, 82vw);
  }

  .item-ask {
    left: 0;
    top: 690px;
  }

  .item-reply {
    left: 300px;
    top: 690px;
  }

  .item-write {
    left: 0;
    top: 820px;
  }

  .item-walk {
    left: 300px;
    top: 820px;
  }

  .item-explain,
  .item-handoff,
  .item-remember {
    display: none;
  }
}

@media (max-width: 760px) {
  .top-screen-section {
    padding: 24px 18px 24px;
  }

  .top-moodboard {
    width: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 30px 18px 32px;
    border: 1px solid rgba(107, 14, 30, 0.13);
    background-size: 135px 135px;
    background-position: -18px -18px;
    overflow: hidden;
  }

  .board-title {
    position: relative;
    left: auto;
    top: auto;
    order: 1;
    width: 100%;
    font-size: clamp(33px, 8.6vw, 40px);
    line-height: 1.06;
    transform: none !important;
  }

  .mood-reminder {
    position: relative;
    left: auto;
    top: auto;
    order: 2;
    width: min(100%, 320px);
    font-size: 15px;
    line-height: 1.42;
    letter-spacing: -0.018em;
    transform: none !important;
  }

  .screen-peek {
    position: relative;
    left: auto;
    top: auto;
    order: 3;
    width: min(100%, 420px);
    align-self: center;
    margin: 2px 0 0;
    transform: none !important;
  }

  .text-item {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    padding-top: 16px;
    border-top: 1px solid rgba(107, 14, 30, 0.14);
    transform: none !important;
  }

  .text-item strong {
    font-size: 24px;
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .text-item span {
    margin-top: 7px;
    font-size: 16px;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #1d1d1f;
  }

  .item-ask {
    order: 4;
    display: block;
  }

  .item-reply {
    order: 5;
    display: block;
  }

  .item-write {
    order: 6;
    display: block;
  }

  .item-walk,
  .item-explain,
  .item-handoff,
  .item-remember {
    display: none;
  }

  .is-top-screen-tuning [data-tune-layer] {
    outline-offset: 4px;
  }
}

.what-blolp {
  background: #faf7f2;
  padding: 76px 48px 12px;
  overflow: hidden;
}

.what-wrap {
  width: min(1500px, calc(100vw - 96px));
  margin: 0 auto;
}

.what-block {
  position: relative;
  background:
    radial-gradient(
      circle at 78% 16%,
      rgba(107, 14, 30, 0.15),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(251, 252, 254, 0.95) 0%,
      rgba(232, 236, 243, 0.91) 100%
    );
  border: 1px solid rgba(107, 14, 30, 0.13);
  box-shadow: 0 24px 80px rgba(107, 14, 30, 0.08);
  overflow: hidden;
  padding: 52px 58px 58px;
}

.what-intro {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(420px, 0.58fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
}

.what-intro h2 {
  margin: 0;
  max-width: 500px;
  font-family: var(--font-inter);
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #1d1d1f;
}

.what-intro h2 span {
  display: block;
  color: #1d1d1f;
}

.what-intro p {
  display: none;
}

.voice-permission {
  justify-self: end;
  width: min(520px, 100%);
  min-height: 112px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 26px 20px 18px;
}

.voice-permission-label {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  font-family: var(--font-dm-sans);
  color: #1d1d1f;
}

.voice-permission-sketch {
  width: 98px;
  height: 72px;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: contrast(1.55) brightness(1.08);
  opacity: 0.92;
  flex: 0 0 auto;
}

.voice-permission-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #6b0e1e;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.voice-permission-text {
  display: grid;
  gap: 3px;
}

.voice-permission-text strong {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.voice-permission-text span {
  font-size: 15px;
  line-height: 1.2;
  color: #1d1d1f;
}

.voice-toggle {
  width: 76px;
  height: 42px;
  border-radius: 999px;
  background: #6b0e1e;
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.voice-toggle::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e9eef6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.what-intro p strong {
  color: #1d1d1f;
  font-weight: 400;
}

.what-demo-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1.64fr);
  gap: 44px;
  align-items: center;
}

.what-main-shot {
  position: relative;
  min-height: 470px;
  margin: 0;
  border: 1px solid rgba(107, 14, 30, 0.08);
  background: #faf7f2;
  box-shadow: 0 24px 70px rgba(107, 14, 30, 0.1);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.what-demo-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.what-caption {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.what-caption h3 {
  margin: 0 0 16px;
  max-width: 320px;
  font-family: var(--font-inter);
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: #1d1d1f;
}

.what-caption p {
  margin: 0;
  font-family: var(--font-dm-sans);
  max-width: 330px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  font-weight: 400;
  color: #1d1d1f;
}

.fn-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  margin: 0 3px;
  padding: 0 9px;
  border-radius: 8px;
  background: #6b0e1e;
  color: #fff;
  font-family: var(--font-dm-sans);
  font-size: 0.82em;
  line-height: 1;
  letter-spacing: 0;
  vertical-align: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(29, 29, 31, 0.14);
}

.what-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.what-proof span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(107, 14, 30, 0.13);
  background: rgba(255, 255, 255, 0.56);
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 400;
  color: #1d1d1f;
}

.block-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(29, 29, 31, 0.18);
  z-index: 4;
}

.block-corner.tl {
  top: 14px;
  left: 14px;
}

.block-corner.tr {
  top: 14px;
  right: 14px;
}

.block-corner.bl {
  bottom: 14px;
  left: 14px;
}

.block-corner.br {
  bottom: 14px;
  right: 14px;
}

@media (max-width: 1080px) {
  .what-blolp {
    padding: 82px 24px 12px;
  }

  .what-wrap {
    width: 100%;
  }

  .what-block {
    padding: 42px 32px;
  }

  .what-demo-row {
    grid-template-columns: 1fr;
  }

  .what-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 34px;
  }

  .voice-permission {
    justify-self: start;
    width: 100%;
  }

  .what-intro p {
    font-size: 20px;
    line-height: 1.35;
  }

  .what-caption {
    padding: 0;
  }

  .what-main-shot {
    min-height: 0;
    aspect-ratio: 16 / 9;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .what-blolp {
    padding: 64px 18px 12px;
  }

  .what-block {
    padding: 30px 18px 32px;
  }

  .what-intro {
    gap: 24px;
    margin-bottom: 30px;
  }

  .what-intro h2 {
    max-width: 100%;
    font-size: clamp(33px, 8.6vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .voice-permission {
    min-height: auto;
    width: 100%;
    padding: 4px 0 0;
    justify-content: flex-start;
    overflow: visible;
  }

  .voice-permission-label {
    width: 100%;
    gap: 11px;
    min-width: 0;
  }

  .voice-permission-sketch {
    width: 64px;
    height: 48px;
  }

  .voice-permission-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .voice-permission-text strong {
    font-size: 18px;
    line-height: 1.1;
  }

  .voice-permission-text span {
    font-size: 14px;
    line-height: 1.15;
  }

  .voice-toggle {
    display: none;
  }

  .what-demo-row {
    gap: 26px;
  }

  .what-caption h3 {
    max-width: 315px;
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.12;
  }

  .what-caption p {
    max-width: 310px;
    font-size: 15px;
    line-height: 1.55;
  }

  .fn-key {
    min-width: 34px;
    height: 26px;
    border-radius: 8px;
  }
}

@media (max-width: 380px) {
  .what-block {
    padding: 28px 16px 30px;
  }

  .what-intro h2 {
    font-size: clamp(30px, 8.3vw, 34px);
  }

  .voice-permission-sketch {
    width: 54px;
    height: 42px;
  }

  .voice-permission-label {
    gap: 9px;
  }

  .voice-permission-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .voice-permission-text strong {
    font-size: 16px;
  }

  .voice-permission-text span {
    font-size: 13px;
  }
}

.levels-section {
  background: #faf7f2;
  padding: 88px 48px 124px;
  color: #1d1d1f;
}

.levels-wrap {
  width: min(1500px, calc(100vw - 96px));
  margin: 0 auto;
}

.level-block {
  position: relative;
  background:
    radial-gradient(
      circle at 78% 16%,
      rgba(107, 14, 30, 0.15),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(251, 252, 254, 0.95) 0%,
      rgba(232, 236, 243, 0.91) 100%
    );
  border: 1px solid rgba(107, 14, 30, 0.13);
  box-shadow: 0 24px 80px rgba(107, 14, 30, 0.08);
  overflow: hidden;
}

.level-block + .level-block {
  margin-top: 100px;
}

.block-corner {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(29, 29, 31, 0.18);
  z-index: 4;
}

.block-corner.active {
  background: #8a1326;
}

.block-corner.tl {
  top: 14px;
  left: 14px;
}

.block-corner.tr {
  top: 14px;
  right: 14px;
}

.block-corner.bl {
  bottom: 14px;
  left: 14px;
}

.block-corner.br {
  bottom: 14px;
  right: 14px;
}

.compact-block {
  min-height: 390px;
  padding: 58px;
  display: grid;
  grid-template-columns: minmax(300px, 0.55fr) minmax(360px, 0.62fr) minmax(
      560px,
      1.15fr
    );
  gap: 48px;
  align-items: center;
  background:
    radial-gradient(
      circle at 78% 44%,
      rgba(107, 14, 30, 0.15),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(251, 252, 254, 0.95) 0%,
      rgba(232, 236, 243, 0.91) 100%
    );
}

.level-title {
  margin: 0;
  font-family: var(--font-inter);
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #1d1d1f;
}

.muted-line {
  display: block;
  color: #1d1d1f;
}

.level-copy {
  margin: 0;
  max-width: 520px;
  font-family: var(--font-dm-sans);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.38;
  letter-spacing: -0.015em;
  color: #1d1d1f;
}

.voice-visual {
  justify-self: center;
  display: grid;
  gap: 16px;
  justify-items: center;
}

.notch-pill {
  width: 238px;
  height: 54px;
  border-radius: 0 0 28px 28px;
  background: #3a0710;
  box-shadow: 0 18px 38px rgba(29, 29, 31, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-dm-sans);
  font-size: 13px;
}

.voice-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #8a1326;
  box-shadow: 0 0 0 7px rgba(118, 169, 255, 0.14);
}

.voice-icons {
  display: flex;
  gap: 18px;
  color: rgba(29, 29, 31, 0.62);
  font-family: var(--font-dm-sans);
  font-size: 13px;
}

.showcase-block {
  min-height: 660px;
  padding: 52px 58px 58px;
  background:
    radial-gradient(
      circle at 78% 16%,
      rgba(107, 14, 30, 0.15),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(251, 252, 254, 0.95) 0%,
      rgba(232, 236, 243, 0.91) 100%
    );
}

.level-intro {
  display: grid;
  grid-template-columns: minmax(340px, 0.72fr) minmax(420px, 0.58fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 34px;
}

.level-intro h2 {
  margin: 0;
  max-width: 520px;
  font-family: var(--font-inter);
  font-size: clamp(36px, 3.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 400;
  color: #1d1d1f;
}

.level-intro h2 span {
  display: block;
  color: #1d1d1f;
}

.level-intro p {
  display: none;
}

.level-intro p strong {
  color: #1d1d1f;
  font-weight: 400;
}

.screen-permission {
  justify-self: end;
  width: min(520px, 100%);
  min-height: 112px;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 26px 20px 18px;
}

.screen-permission-label {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  font-family: var(--font-dm-sans);
  color: #1d1d1f;
}

.screen-permission-sketch {
  width: 98px;
  height: 72px;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: contrast(1.55) brightness(1.08);
  opacity: 0.92;
  flex: 0 0 auto;
}

.screen-permission-doodle {
  width: 106px;
  height: 74px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.18) brightness(1.03)
    drop-shadow(0 10px 22px rgba(107, 14, 30, 0.06));
  flex: 0 0 auto;
  opacity: 0.95;
}

.screen-permission-icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #6b0e1e;
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.screen-permission-text {
  display: grid;
  gap: 3px;
}

.screen-permission-text strong {
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.screen-permission-text span {
  font-size: 15px;
  line-height: 1.2;
  color: #1d1d1f;
}

.screen-toggle {
  width: 76px;
  height: 42px;
  border-radius: 999px;
  background: #6b0e1e;
  position: relative;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.screen-toggle::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #e9eef6;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(260px, 0.42fr);
  gap: 44px;
  align-items: center;
}

.control-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1.58fr);
  gap: 44px;
  align-items: center;
}

.mock-area {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 470px;
  padding: 0;
}

.context-video-frame {
  width: 100%;
  min-height: 470px;
  aspect-ratio: 16 / 9;
  border-radius: 0;
  background: #faf7f2;
  border: 1px solid rgba(107, 14, 30, 0.08);
  box-shadow: 0 24px 70px rgba(107, 14, 30, 0.1);
  overflow: hidden;
}

.context-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.showcase-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  overflow: visible;
}

.showcase-copy::before {
  display: none;
}

.showcase-copy-inner {
  position: relative;
  z-index: 1;
  max-width: 430px;
  text-align: left;
}

.showcase-copy h3 {
  margin: 0 0 16px;
  max-width: 330px;
  font-family: var(--font-inter);
  font-size: clamp(22px, 1.8vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: #1d1d1f;
}

.showcase-copy p {
  margin: 0;
  max-width: 340px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: #1d1d1f;
}

.compact-block h3 .muted-line {
  margin-bottom: 3px;
}

.ip-rail {
  position: absolute;
  right: -82px;
  top: 46px;
  bottom: 46px;
  width: 104px;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: none;
  display: none;
}

.ip-rail img {
  width: 86px;
  opacity: 0.72;
  filter: blur(0.1px) drop-shadow(0 22px 24px rgba(107, 14, 30, 0.2));
}

.ip-rail img:nth-child(2) {
  opacity: 0.52;
  transform: translateY(12px) scale(0.9);
}

.ip-rail img:nth-child(3) {
  opacity: 0.38;
  transform: translateY(20px) scale(0.82);
}

.ip-rail img:nth-child(4) {
  opacity: 0.24;
  transform: translateY(28px) scale(0.74);
}

.accessibility-video-frame {
  justify-self: center;
  width: 100%;
  min-height: 470px;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(107, 14, 30, 0.13);
  background: #faf7f2;
  box-shadow: 0 22px 70px rgba(107, 14, 30, 0.11);
  overflow: hidden;
}

.accessibility-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (max-width: 980px) {
  .levels-section {
    padding: 82px 24px 104px;
  }

  .levels-wrap {
    width: 100%;
  }

  .level-block + .level-block {
    margin-top: 94px;
  }

  .compact-block,
  .control-row,
  .showcase-row,
  .level-intro {
    grid-template-columns: 1fr;
  }

  .showcase-block {
    min-height: 0;
    padding: 42px 32px;
  }

  .level-intro {
    gap: 20px;
    margin-bottom: 34px;
  }

  .screen-permission {
    justify-self: start;
    width: 100%;
  }

  .level-intro p {
    font-size: 20px;
    line-height: 1.35;
  }

  .compact-block {
    padding: 42px 32px;
    gap: 28px;
  }

  .mock-area {
    min-height: auto;
    padding: 0;
  }

  .context-video-frame {
    width: 100%;
    transform: none;
    min-height: 0;
  }

  .showcase-copy {
    padding: 0;
    min-height: 0;
  }

  .showcase-copy h3 {
    margin-bottom: 22px;
  }

  .ip-rail {
    display: none;
  }

  .mock-body {
    grid-template-columns: 1fr;
  }

  .accessibility-video-frame {
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .levels-section {
    padding: 64px 18px 86px;
  }

  .level-block + .level-block {
    margin-top: 94px;
  }

  .showcase-block {
    padding: 30px 18px 32px;
  }

  .level-intro {
    gap: 24px;
    margin-bottom: 30px;
  }

  .level-intro h2 {
    max-width: 100%;
    font-size: clamp(33px, 8.6vw, 40px);
    line-height: 1.06;
    letter-spacing: -0.045em;
  }

  .screen-permission {
    min-height: auto;
    width: 100%;
    padding: 4px 0 0;
    justify-content: flex-start;
    overflow: visible;
  }

  .screen-permission-label {
    width: 100%;
    gap: 11px;
  }

  .screen-permission-sketch {
    width: 64px;
    height: 48px;
  }

  .screen-permission-doodle {
    width: 66px;
    height: 48px;
  }

  .screen-permission-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .screen-permission-text strong {
    font-size: 18px;
    line-height: 1.1;
  }

  .screen-permission-text span {
    font-size: 14px;
    line-height: 1.15;
  }

  .screen-toggle {
    display: none;
  }

  .showcase-row,
  .control-row {
    gap: 26px;
  }

  .showcase-copy h3 {
    max-width: 315px;
    font-size: clamp(26px, 7vw, 32px);
    line-height: 1.12;
    margin-bottom: 14px;
  }

  .showcase-copy p {
    max-width: 310px;
    font-size: 15px;
    line-height: 1.55;
  }
}

@media (max-width: 380px) {
  .level-intro h2 {
    font-size: clamp(30px, 8.3vw, 34px);
  }

  .screen-permission-label {
    gap: 9px;
  }

  .screen-permission-sketch {
    width: 54px;
    height: 42px;
  }

  .screen-permission-doodle {
    width: 56px;
    height: 42px;
  }

  .screen-permission-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .screen-permission-text strong {
    font-size: 16px;
  }

  .screen-permission-text span {
    font-size: 13px;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.marquee-track {
  animation: marquee 50s linear infinite !important;
}
button[style*="var(--button-bg)"]:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px) !important;
}
[aria-label^="Ask"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 14px rgba(29, 29, 31, 0.14) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}
nav a[style*="transition:color"],
nav button[style*="transition:color"] {
  transition: color 0.15s !important;
}
nav a[style*="transition:color"]:hover,
nav button[style*="transition:color"]:hover {
  color: #1d1d1f !important;
}

.hero-root {
  min-height: 100vh;
  padding-top: 68px;
  background: #faf7f2;
  overflow: hidden;
  position: relative;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.hero-root.is-scroll-cue-hidden .hero-scroll-cue {
  opacity: 0;
  transform: translateY(8px);
}

.hero-scroll-cue span {
  font-family: var(--font-dm-sans);
  font-size: 11px;
  font-weight: 400;
  color: rgba(29, 29, 31, 0.36);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-scroll-cue svg {
  opacity: 0.28;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 68px);
  text-align: center;
}

.hero-line {
  display: block;
  font-family: var(--font-inter);
  font-weight: 430;
  color: #1d1d1f;
  white-space: nowrap;
  will-change: transform, opacity;
}

.hero-heading,
.hero-subcopy,
.hero-cta-group {
  position: relative;
  left: 0;
  top: 0;
}

.hero-ph-badge {
  position: absolute;
  top: clamp(82px, 10svh, 106px);
  left: 50%;
  display: flex;
  justify-content: center;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-ph-cluster {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-heading {
  top: -14px;
}

.hero-subcopy {
  top: 74px;
}

.hero-cta-group {
  --hero-cta-button-width: 220px;
  top: 110px;
}

@media (min-width: 761px) {
  .hero-download-stack > button,
  .hero-cta-group > .hero-secondary-button {
    width: var(--hero-cta-button-width);
  }
}

.hero-download-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hero-platform-note {
  font-family: var(--font-dm-sans);
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: rgba(29, 29, 31, 0.42);
}

.hero-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 12px 22px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(29, 29, 31, 0.13);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(29, 29, 31, 0.78);
  cursor: pointer;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px rgba(107, 14, 30, 0.06);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.hero-secondary-button:hover {
  border-color: rgba(107, 14, 30, 0.2);
  background: rgba(255, 255, 255, 0.92);
  color: #1d1d1f;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(107, 14, 30, 0.08);
}

.hero-secondary-button:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
}

.hero-windows-form {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-windows-form input {
  width: 210px;
  min-height: 45px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(29, 29, 31, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: #1d1d1f;
  outline: none;
  padding: 0 16px;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 400;
  box-shadow: 0 12px 30px rgba(107, 14, 30, 0.05);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.hero-windows-form input:focus {
  border-color: rgba(107, 14, 30, 0.38);
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(107, 14, 30, 0.08),
    0 12px 30px rgba(107, 14, 30, 0.05);
}

.hero-windows-error {
  position: absolute;
  left: 0;
  top: calc(100% + 7px);
  font-family: var(--font-dm-sans);
  font-size: 11px;
  color: rgba(162, 42, 42, 0.78);
  white-space: nowrap;
}

.hero-windows-success {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(107, 14, 30, 0.18);
  background: rgba(107, 14, 30, 0.08);
  color: #6b0e1e;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
}

.hero-line-one,
.hero-line-two {
  font-size: clamp(58px, 7.25vw, 106px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero-line-two {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(2px, 0.45vw, 8px);
}

.hero-line-single {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(36px, 6.4vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.hero-blolp-word {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hero-ip-mark {
  position: relative;
  width: 0.62em;
  height: 0.78em;
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 -0.015em 0 0.005em;
  cursor: default;
  transform: translateY(0.005em);
  z-index: 2;
}

.hero-ip-base {
  position: absolute;
  left: 50%;
  top: 61%;
  width: 0.58em;
  height: 0.58em;
  border-radius: 50%;
  background: #6b0e1e;
  transform: translate(-50%, -50%);
  box-shadow: 0 20px 42px rgba(107, 14, 30, 0.18);
  transition:
    transform 0.42s ease,
    box-shadow 0.42s ease;
  z-index: 0;
}

.hero-ip-mask {
  position: absolute;
  left: 50%;
  top: 61%;
  width: 0.58em;
  height: 0.58em;
  border-radius: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  transition: transform 0.42s ease;
  z-index: 6;
}

.hero-ip-cloud {
  position: absolute;
  height: auto;
  filter: drop-shadow(0 18px 26px rgba(107, 14, 30, 0.16));
  transition:
    transform 0.42s ease,
    filter 0.42s ease;
}

.hero-ip-idle {
  left: 50%;
  top: 48%;
  width: 1.02em;
  transform: translate(-35%, -50%) rotate(1deg);
  animation: heroIPIdleFloat 5.2s ease-in-out infinite;
}

.hero-ip-thinking {
  left: 50%;
  top: 44%;
  width: 1.58em;
  opacity: 0;
  transform: translate(-43%, -43%) rotate(-1deg) scale(0.88);
  filter: drop-shadow(0 18px 26px rgba(107, 14, 30, 0.12));
  pointer-events: none;
  z-index: 8;
}

.hero-nudge-note {
  position: absolute;
  left: 0.34em;
  top: 0.76em;
  width: 1.48em;
  height: auto;
  opacity: 0.9;
  pointer-events: none;
  z-index: 12;
}

.hero-nudge-note img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-app-icon,
.hero-permission-orbit {
  position: absolute;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.42s cubic-bezier(0.2, 0.85, 0.2, 1),
    transform 0.5s cubic-bezier(0.2, 0.85, 0.2, 1);
}

.hero-app-icon {
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  opacity: 0;
  filter: drop-shadow(0 18px 26px rgba(107, 14, 30, 0.14));
  z-index: 1;
  will-change: transform, opacity;
}

.hero-app-icon img {
  width: var(--app-icon-size, 30px);
  height: var(--app-icon-size, 30px);
  object-fit: contain;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero-permission-orbit {
  left: 50%;
  top: -73%;
  width: 170px;
  height: 58px;
  transform: translate(-50%, -50%) scale(0.54);
  z-index: 12;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.hero-permission-orbit::before {
  display: none;
}

.hero-orbit-node {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #6b0e1e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 10px 20px rgba(107, 14, 30, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: none;
  z-index: 1;
}

.hero-app-gmail {
  --app-icon-size: 44px;
  left: -356%;
  top: -220%;
  transform: translate(160px, 124px) rotate(-8deg) scale(0.32);
  --icon-drift-y: -5px;
}

.hero-app-chrome {
  --app-icon-size: 48px;
  left: 425%;
  top: -197%;
  right: auto;
  transform: translate(-158px, 118px) rotate(7deg) scale(0.32);
  --icon-drift-y: 4px;
}

.hero-app-youtube {
  --app-icon-size: 46px;
  left: 37%;
  top: -279%;
  right: auto;
  transform: translate(-154px, -12px) rotate(8deg) scale(0.32);
  --icon-drift-y: -4px;
}

.hero-app-github {
  --app-icon-size: 42px;
  left: -197%;
  top: -327%;
  transform: translate(92px, 158px) rotate(5deg) scale(0.32);
  --icon-drift-y: 5px;
}

.hero-app-notion {
  --app-icon-size: 40px;
  left: -168%;
  top: 75%;
  transform: translate(158px, -12px) rotate(-7deg) scale(0.32);
  --icon-drift-y: 4px;
}

.hero-app-calendar {
  --app-icon-size: 42px;
  left: 342%;
  top: -302%;
  right: auto;
  transform: translate(-104px, -52px) rotate(-5deg) scale(0.32);
  --icon-drift-y: -5px;
}

.hero-app-drive {
  --app-icon-size: 44px;
  left: -230%;
  top: -42%;
  right: auto;
  transform: translate(-30px, 182px) rotate(5deg) scale(0.32);
  --icon-drift-y: 4px;
}

.hero-app-docs {
  --app-icon-size: 38px;
  left: 246%;
  top: -19%;
  right: auto;
  transform: translate(-190px, 60px) rotate(-4deg) scale(0.32);
  --icon-drift-y: -4px;
}

.hero-app-sheets {
  --app-icon-size: 40px;
  left: 398%;
  top: -30%;
  transform: translate(190px, 58px) rotate(4deg) scale(0.32);
  --icon-drift-y: 5px;
}

.hero-app-figma {
  --app-icon-size: 38px;
  left: -99%;
  top: -193%;
  transform: translate(78px, -72px) rotate(-6deg) scale(0.32);
  --icon-drift-y: -4px;
}

.hero-app-discord {
  --app-icon-size: 40px;
  left: 190%;
  top: -243%;
  right: auto;
  transform: translate(-78px, -74px) rotate(5deg) scale(0.32);
  --icon-drift-y: 4px;
}

.hero-app-linear {
  --app-icon-size: 36px;
  left: -427%;
  top: -19%;
  transform: translate(204px, 0) rotate(-8deg) scale(0.32);
  --icon-drift-y: -5px;
}

.hero-cap-voice {
  left: 0;
  top: 18px;
}

.hero-cap-screen {
  left: 63px;
  top: 0;
}

.hero-cap-accessibility {
  left: 126px;
  top: 18px;
  transform: none;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-ip-base {
  transform: translate(-50%, -50%) scale(1.28);
  box-shadow: 0 34px 80px rgba(107, 14, 30, 0.24);
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-ip-mask {
  transform: translate(-50%, -50%) scale(1.02);
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-ip-idle {
  transform: translate(-35%, -58%) rotate(-1deg) scale(1.02);
  opacity: 0;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-ip-thinking {
  opacity: 1;
  transform: translate(-49%, -70%) rotate(-1deg) scale(2.18);
  filter: drop-shadow(0 48px 78px rgba(107, 14, 30, 0.3));
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-icon {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-icon img {
  animation: heroIconDrift 8.5s ease-in-out infinite;
  animation-delay: var(--icon-drift-delay, 0s);
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-icon {
  opacity: 1;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing)
  .hero-permission-orbit {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0.02s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-gmail {
  transition-delay: 0.05s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-chrome {
  transition-delay: 0.09s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-youtube {
  transition-delay: 0.13s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-github {
  transition-delay: 0.17s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-notion {
  transition-delay: 0.21s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-calendar {
  transition-delay: 0.25s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-drive {
  transition-delay: 0.11s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-docs {
  transition-delay: 0.16s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-sheets {
  transition-delay: 0.2s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-figma {
  transition-delay: 0.24s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-discord {
  transition-delay: 0.28s;
}

.hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-linear {
  transition-delay: 0.32s;
}

.hero-app-gmail {
  --icon-drift-delay: -0.8s;
}

.hero-app-chrome {
  --icon-drift-delay: -3.4s;
}

.hero-app-youtube {
  --icon-drift-delay: -1.9s;
}

.hero-app-github {
  --icon-drift-delay: -4.7s;
}

.hero-app-notion {
  --icon-drift-delay: -2.7s;
}

.hero-app-calendar {
  --icon-drift-delay: -5.6s;
}

.hero-app-drive {
  --icon-drift-delay: -1.2s;
}

.hero-app-docs {
  --icon-drift-delay: -4.1s;
}

.hero-app-sheets {
  --icon-drift-delay: -6.2s;
}

.hero-app-figma {
  --icon-drift-delay: -2.2s;
}

.hero-app-discord {
  --icon-drift-delay: -5.1s;
}

.hero-app-linear {
  --icon-drift-delay: -3s;
}

@media (hover: none) {
  .hero-app-icon,
  .hero-permission-orbit,
  .hero-nudge-note {
    display: none;
  }
}

@keyframes heroIPIdleFloat {
  0%,
  100% {
    transform: translate(-35%, -50%) rotate(1deg) scale(1);
  }

  50% {
    transform: translate(-35%, -55%) rotate(-1deg) scale(1.03);
  }
}

@keyframes heroIconDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, var(--icon-drift-y, -4px), 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-ip-idle,
  .hero-ip-mark:is(:hover, :focus-visible, .is-previewing) .hero-app-icon img {
    animation: none;
  }
}

@media (max-width: 760px) {
  .hero-root {
    min-height: 100svh;
    padding-top: 0;
  }

  .hero-scroll-cue {
    display: none;
  }

  .hero-inner {
    min-height: 100svh;
    justify-content: flex-start;
    padding: clamp(94px, 12svh, 112px) 22px 58px;
  }

  .hero-heading,
  .hero-ph-badge,
  .hero-subcopy,
  .hero-cta-group {
    left: 0 !important;
    top: 0 !important;
  }

  .hero-ph-badge {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 auto 34px;
    transform: none;
  }

  .hero-ph-cluster {
    transform: scale(0.86);
    transform-origin: center;
  }

  .hero-line-one,
  .hero-line-two {
    font-size: clamp(38px, 10.8vw, 52px);
    line-height: 0.94;
    letter-spacing: -0.04em;
  }

  .hero-line {
    white-space: normal;
  }

  .hero-line-single {
    display: flex;
    flex-wrap: wrap;
    column-gap: 0.12em;
    row-gap: 0.08em;
    max-width: 345px;
    margin: 0 auto;
    font-size: clamp(39px, 11.4vw, 48px);
    line-height: 0.92;
    letter-spacing: -0.04em;
  }

  .hero-line-single > span:first-child {
    flex-basis: 100%;
  }

  .hero-blolp-word {
    white-space: nowrap;
  }

  .hero-line-two {
    margin-top: 4px;
  }

  .hero-app-icon,
  .hero-permission-orbit,
  .hero-nudge-note {
    display: none;
  }

  .hero-subcopy {
    max-width: 342px !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
    font-size: 16px !important;
    line-height: 1.55 !important;
    color: rgba(29, 29, 31, 0.72) !important;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center !important;
    gap: 8px !important;
  }

  .hero-download-stack,
  .hero-windows-form,
  .hero-windows-success {
    width: min(100%, 312px);
  }

  .hero-cta-group button,
  .hero-windows-form input {
    width: min(100%, 312px);
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px !important;
    font-size: 16px !important;
  }

  .hero-windows-form {
    flex-direction: column;
    gap: 8px;
  }

  .hero-windows-error {
    position: static;
    white-space: normal;
    max-width: 268px;
    text-align: center;
  }

  .hero-platform-note {
    font-size: 12px !important;
    color: rgba(29, 29, 31, 0.48) !important;
  }
}

@media (max-width: 380px), (max-height: 680px) {
  .hero-inner {
    padding-top: 82px;
    padding-bottom: 42px;
  }

  .hero-line-one,
  .hero-line-two {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-line-single {
    font-size: clamp(22px, 6.65vw, 36px);
  }

  .hero-subcopy {
    max-width: 310px !important;
    font-size: 14px !important;
    line-height: 1.42 !important;
    margin-bottom: 14px !important;
  }

  .hero-cta-group button {
    width: min(100%, 240px);
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* Scroll reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Extracted Inline Styles */
.gen-style-1 {
  height: 100%;
}
.gen-style-2 {
  height: 100%;
  background: rgb(244, 246, 250);
}
.gen-style-3 {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.gen-style-4 {
  background: #faf7f2;
  min-height: 100vh;
}
.gen-style-5 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 12px 24px 0;
  pointer-events: none;
}
.gen-style-6 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 8px 12px 8px 18px;
  border-radius: 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s,
    border-radius 0.2s,
    backdrop-filter 0.2s;
  pointer-events: auto;
}
.gen-style-7 {
  color: #1d1d1f;
  text-decoration: none;
}
.gen-style-8 {
  color: transparent;
  border-radius: 7px;
}
.gen-style-9 {
  font-family: var(--font-instrument-serif), serif;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.gen-style-10 {
  gap: 32px;
}
.gen-style-11 {
  color: rgba(29, 29, 31, 0.55);
  font-family: var(--font-dm-sans);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color 0.15s;
}
.gen-style-12 {
  position: relative;
  padding: 24px 0;
}
.gen-style-13 {
  transform: rotate(0);
  transition: transform 160ms ease;
}
.gen-style-14 {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(520px, calc(100vw - 32px));
  padding: 12px 14px 14px;
  background: rgba(252, 251, 248, 0.98);
  border: 1px solid rgba(107, 14, 30, 0.18);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(107, 14, 30, 0.11);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  z-index: 80;
}
.gen-style-15 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 6px;
  row-gap: 2px;
}
.gen-style-16 {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 6px;
  text-decoration: none;
  color: #1d1d1f;
  min-width: 0;
  overflow: hidden;
  transition:
    background 0.12s,
    color 0.12s;
}
.gen-style-17 {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.gen-style-18 {
  width: 23px;
  height: 23px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}
.gen-style-19 {
  min-width: 0;
  overflow: hidden;
}
.gen-style-20 {
  display: block;
  font-family: var(--font-dm-sans);
  font-size: 13px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gen-style-21 {
  display: block;
  font-family: var(--font-dm-sans);
  color: rgba(29, 29, 31, 0.56);
  font-size: 10.75px;
  line-height: 1.16;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gen-style-22 {
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 22px;
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  gap: 7px;
}
.gen-style-23 {
  display: block;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.gen-style-24 {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #1d1d1f;
}
.gen-style-25 {
  width: 100%;
}
.gen-style-26 {
  margin: 0;
  color: #1d1d1f;
  line-height: 0.98;
  letter-spacing: -0.035em;
}
.gen-style-27 {
  translate: none;
  rotate: none;
  scale: none;
  transform: translate(0px, 0px);
  opacity: 1;
}
.gen-style-28 {
  translate: none;
  rotate: none;
  scale: none;
  transform: translate(0px, 0px);
  opacity: 0.9;
}
.gen-style-29 {
  margin-top: 34px;
  translate: none;
  rotate: none;
  scale: none;
  transform: translate(0px, 0px);
  opacity: 1;
}
.gen-style-30 {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 1.75;
  color: rgba(29, 29, 31, 0.62);
  font-weight: 400;
  max-width: 620px;
  margin: 0 auto 26px;
}
.gen-style-31 {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.gen-style-32 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 45px;
  padding: 13px 28px;
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  cursor: pointer;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition:
    background 0.18s,
    opacity 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}
.gen-style-33 {
  padding: 140px 24px;
  background: #faf7f2;
}
.gen-style-34 {
  max-width: 800px;
  margin: 0 auto;
}
.gen-style-35 {
  transition-delay: 0ms;
}
.gen-style-36 {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}
.gen-style-37 {
  width: min(168px, 32vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 28px rgba(107, 14, 30, 0.04));
  opacity: 0.9;
}
.gen-style-38 {
  transition-delay: 20ms;
}
.gen-style-39 {
  text-align: center;
  margin-bottom: 56px;
}
.gen-style-40 {
  font-family: var(--font-instrument-serif), serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin-bottom: 16px;
}
.gen-style-41 {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 1.65;
  color: #86868b;
  max-width: 520px;
  margin: 0 auto;
}
.gen-style-42 {
  transition-delay: 60ms;
}
.gen-style-43 {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
}
.gen-style-44 {
  position: absolute;
  inset: -40px;
  border-radius: 32px;
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(173, 216, 255, 0.25) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 70% 60%,
      rgba(255, 200, 220, 0.2) 0%,
      transparent 60%
    );
  filter: blur(20px);
  z-index: 0;
}
.gen-style-45 {
  position: absolute;
  top: 12px;
  left: 16px;
  right: 16px;
  bottom: -8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.04);
  z-index: 1;
}
.gen-style-46 {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
.gen-style-47 {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  background: #faf7f2;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.gen-style-48 {
  display: flex;
  gap: 7px;
}
.gen-style-49 {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}
.gen-style-50 {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #febc2e;
}
.gen-style-51 {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #28c840;
}
.gen-style-52 {
  padding: 24px 32px 28px;
}
.gen-style-53 {
  font-family: var(--font-dm-sans);
  font-size: 11px;
  font-weight: 600;
  color: #86868b;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.gen-style-54 {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gen-style-55 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.gen-style-56 {
  flex: 1;
}
.gen-style-57 {
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}
.gen-style-58 {
  font-family: var(--font-dm-sans);
  font-size: 11.5px;
  color: #86868b;
  margin-top: 2px;
  line-height: 1.4;
}
.gen-style-59 {
  width: 38px;
  height: 22px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.1);
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.25s;
}
.gen-style-60 {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 2px;
  left: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: left 0.25s;
}
.gen-style-61 {
  padding: 5px 12px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: var(--button-bg);
  font-family: var(--font-dm-sans);
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.15s,
    transform 0.15s;
  text-decoration: none;
  display: inline-block;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}
.gen-style-62 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 16px;
}
.gen-style-63 {
  text-align: center;
  margin-top: 32px;
}
.gen-style-64 {
  font-family: var(--font-dm-sans);
  font-size: 14px;
  color: #86868b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.gen-style-65 {
  background: #faf7f2;
  padding-bottom: 120px;
}
.gen-style-66 {
  overflow: hidden;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 18px 0;
  position: relative;
}
.gen-style-67 {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to right, #faf7f2, transparent);
  z-index: 2;
  pointer-events: none;
}
.gen-style-68 {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 120px;
  background: linear-gradient(to left, #faf7f2, transparent);
  z-index: 2;
  pointer-events: none;
}
.gen-style-69 {
  display: flex;
  gap: 64px;
  width: max-content;
  transform: translateX(-35.0737%);
}
.gen-style-70 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: 15px;
  font-weight: 300;
  font-style: italic;
  color: rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  flex-shrink: 0;
}
.gen-style-71 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 48px 0;
}
.gen-style-72 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}
.gen-style-73 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: rgb(15, 13, 12);
  margin: 0px;
}
.gen-style-74 {
  font-family: var(--font-dm-sans);
  font-size: 13px;
  color: rgba(107, 101, 96, 0.55);
  text-align: right;
  line-height: 1.6;
  max-width: 220px;
}
.gen-style-75 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gen-style-76 {
  background: rgb(255, 255, 255);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.gen-style-77 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: 48px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
  user-select: none;
}
.gen-style-78 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: #1d1d1f;
  flex: 1;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.gen-style-79 {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}
.gen-style-80 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(120, 28%, 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 600;
  color: hsl(120, 28%, 38%);
  flex-shrink: 0;
}
.gen-style-81 {
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 500;
  color: #1d1d1f;
}
.gen-style-82 {
  font-family: var(--font-dm-sans);
  font-size: 12px;
  color: rgba(0, 0, 0, 0.4);
  margin-top: 1px;
}
.gen-style-83 {
  font-style: italic;
}
.gen-style-84 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(197, 28%, 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 600;
  color: hsl(197, 28%, 38%);
  flex-shrink: 0;
}
.gen-style-85 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: hsl(274, 28%, 88%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 600;
  color: hsl(274, 28%, 38%);
  flex-shrink: 0;
}
.gen-style-86 {
  padding: 132px 60px;
  background: #faf7f2;
}
.gen-style-87 {
  max-width: 1120px;
}
.gen-style-88 {
  font-family: var(--font-instrument-serif), serif;
  font-weight: 400;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin: 0 0 44px;
  text-align: center;
}
.gen-style-89 {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.gen-style-90 {
  position: absolute;
  left: -24px;
  right: -24px;
  top: 0;
  height: 1px;
  background: rgba(107, 14, 30, 0.92);
  pointer-events: none;
  z-index: 2;
}
.gen-style-91 {
  position: absolute;
  left: -24px;
  right: -24px;
  bottom: 0;
  height: 1px;
  background: rgba(107, 14, 30, 0.92);
  pointer-events: none;
  z-index: 2;
}
.gen-style-92 {
  position: absolute;
  left: 0;
  top: -24px;
  bottom: -24px;
  width: 1px;
  background: rgba(107, 14, 30, 0.92);
  pointer-events: none;
  z-index: 2;
}
.gen-style-93 {
  position: absolute;
  right: 0;
  top: -24px;
  bottom: -24px;
  width: 1px;
  background: rgba(107, 14, 30, 0.92);
  pointer-events: none;
  z-index: 2;
}
.gen-style-94 {
  position: relative;
  z-index: 1;
  padding: 64px 56px;
  background: #fff;
  overflow: hidden;
}
.gen-style-95 {
  position: absolute;
  width: clamp(104px, 11vw, 170px);
  height: auto;
  left: clamp(0px, 0.4vw, 6px);
  top: clamp(16px, 2.4vw, 34px);
  opacity: 0.13;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}
.gen-style-96 {
  position: absolute;
  width: clamp(270px, 32vw, 440px);
  height: auto;
  right: clamp(-104px, -5.8vw, -44px);
  bottom: clamp(-104px, -6.4vw, -62px);
  opacity: 0.16;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
}
.gen-style-97 {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
}
.gen-style-98 {
  font-family: var(--font-dm-sans);
  font-size: 18px;
  font-weight: 500;
  color: #1d1d1f;
  margin-bottom: 18px;
}
.gen-style-99 {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 1.55;
  color: #515154;
  max-width: 500px;
  margin: 0 auto 42px;
}
.gen-style-100 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: var(--button-radius);
  background: var(--button-bg);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}
.gen-style-101 {
  text-align: center;
  margin: 28px auto 0;
  max-width: 420px;
  font-family: var(--font-dm-sans);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  color: rgba(29, 29, 31, 0.48);
}
.gen-style-102 {
  padding: 120px 48px;
  background: #faf7f2;
}
.gen-style-103 {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 88px;
  align-items: start;
}
.gen-style-104 {
  transition-delay: 80ms;
}
.gen-style-105 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 400;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin: 0;
  line-height: 1.05;
  position: sticky;
  top: 120px;
}
.gen-style-106 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gen-style-107 {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
.gen-style-108 {
  padding: 24px 0;
  gap: 28px;
  background: none;
  border: none;
  cursor: pointer;
}
.gen-style-109 {
  font-family: var(--font-dm-sans);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.25;
  letter-spacing: 0;
}
.gen-style-110 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #6b0e1e;
  color: #ffffff;
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.3s;
  transform: rotate(45deg);
  font-size: 18px;
  line-height: 1;
  font-family: system-ui;
  padding-bottom: 1px;
}
.gen-style-111 {
  max-height: 360px;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gen-style-112 {
  max-width: 700px;
  border-left: 2px solid rgba(107, 14, 30, 0.34);
  padding: 0 0 28px 18px;
}
.gen-style-113 {
  font-family: var(--font-dm-sans);
  font-size: 17px;
  font-weight: 500;
  color: #1d1d1f;
  line-height: 1.55;
  margin: 0 0 8px;
}
.gen-style-114 {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  font-weight: 400;
  color: rgba(71, 85, 105, 0.86);
  line-height: 1.7;
  margin: 0;
}
.gen-style-115 {
  transition-delay: 40ms;
}
.gen-style-116 {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  color: rgba(100, 116, 139, 0.78);
  transition:
    background 0.2s,
    color 0.2s,
    transform 0.3s;
  transform: none;
  font-size: 18px;
  line-height: 1;
  font-family: system-ui;
  padding-bottom: 1px;
}
.gen-style-117 {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gen-style-118 {
  transition-delay: 120ms;
}
.gen-style-119 {
  transition-delay: 160ms;
}
.gen-style-120 {
  transition-delay: 200ms;
}
.gen-style-121 {
  transition-delay: 240ms;
}
.gen-style-122 {
  transition-delay: 280ms;
}
.gen-style-123 {
  transition-delay: 320ms;
}
.gen-style-124 {
  background: #faf7f2;
}
.gen-style-125 {
  min-height: 100svh;
  padding: 160px 48px 120px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gen-style-126 {
  font-family: var(--font-dm-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(29, 29, 31, 0.35);
  margin-bottom: 32px;
}
.gen-style-127 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin-bottom: 56px;
}
.gen-style-128 {
  transition-delay: 180ms;
}
.gen-style-129 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 40px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: var(--button-bg);
  color: #fff;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  gap: 7px;
}
.gen-style-130 {
  padding: 18px 28px 72px;
  background: #faf7f2;
}
.gen-style-131 {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(107, 14, 30, 0.1);
  border-radius: 28px;
  background-image:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.7) 0%,
      rgba(238, 242, 248, 0.78) 100%
    ),
    url(/images/ask-ai-about-blolp.webp);
  background-size: 100% auto;
  background-position: center 56%;
  background-repeat: no-repeat;
}
.gen-style-132 {
  position: relative;
  padding: 64px 48px 104px;
}
.gen-style-133 {
  text-align: center;
  max-width: 1160px;
  margin: 0 auto 32px;
}
.gen-style-134 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #1d1d1f;
  margin-bottom: 16px;
  white-space: nowrap;
}
.gen-style-135 {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 1.65;
  color: #000;
  max-width: 520px;
  margin: 0 auto;
  font-weight: 400;
}
.gen-style-136 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.gen-style-137 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  min-width: 178px;
  padding: 0 28px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(29, 29, 31, 0.08);
  background: rgba(255, 255, 255, 0.84);
  color: #141414;
  font-family: var(--font-dm-sans);
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(29, 29, 31, 0.1);
  transition:
    transform 0.15s,
    background 0.2s,
    box-shadow 0.2s;
}
.gen-style-138 {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.gen-style-139 {
  transition-delay: 140ms;
}
.gen-style-140,
.gen-js-style-202 {
  border-top: 1px solid rgba(29, 29, 31, 0.08);
  background: linear-gradient(180deg, #f7f4ec 0%, #fef8e6 100%);
  overflow: hidden;
}
.gen-style-141,
.gen-js-style-203 {
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 48px 38px;
}
.gen-style-142,
.gen-js-style-204 {
  display: grid;
  grid-template-columns: minmax(230px, 0.74fr) repeat(4, minmax(0, 1fr));
  gap: 54px;
  padding: 64px 86px 48px;
}
.gen-style-143,
.gen-js-style-206 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1d1d1f;
  text-decoration: none;
}
.gen-style-144 {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #1d1d1f;
  mask-image: url("/logo.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("/logo.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  flex-shrink: 0;
}
.gen-style-145,
.gen-js-style-208 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.gen-style-146 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: var(--button-bg);
  color: #fff;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
  gap: 7px;
}
.gen-style-147,
.gen-js-style-210 {
  font-family: var(--font-instrument-serif), Georgia, serif;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: rgba(29, 29, 31, 0.56);
  margin: 2px 0 24px;
}
.gen-style-148,
.gen-js-style-201 {
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 300;
  color: rgba(29, 29, 31, 0.78);
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
  transition: color 0.15s;
}
.gen-style-149,
.gen-js-style-211 {
  position: relative;
  min-height: 390px;
  margin-top: 6px;
}
.gen-style-150,
.gen-js-style-212 {
  position: absolute;
  left: 50%;
  bottom: -22px;
  transform: translateX(-50%);
  display: inline-block;
  width: max-content;
  padding-inline: 0.08em;
  font-family: var(--font-dm-sans);
  font-size: clamp(128px, 21.5vw, 330px);
  line-height: 0.82;
  letter-spacing: -0.095em;
  font-weight: 800;
  background: linear-gradient(
    180deg,
    rgba(29, 29, 31, 0.9) 0%,
    rgba(107, 14, 30, 0.76) 72%,
    rgba(245, 222, 141, 0.35) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.gen-style-151,
.gen-js-style-213 {
  position: absolute;
  left: 54%;
  bottom: 42%;
  width: clamp(94px, 13vw, 190px);
  transform: translate(-50%, 50%);
  filter: drop-shadow(0 24px 46px rgba(107, 14, 30, 0.2));
  user-select: none;
  pointer-events: none;
}
.gen-style-152,
.gen-js-style-214 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  color: rgba(29, 29, 31, 0.72);
}
.gen-style-153,
.gen-js-style-215 {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-family: var(--font-dm-sans);
  font-size: 13px;
  font-weight: 500;
}
.gen-style-154,
.gen-js-style-216 {
  display: flex;
  gap: 18px;
  align-items: center;
}
.gen-style-155,
.gen-js-style-217 {
  color: rgba(29, 29, 31, 0.78);
  transition: color 0.15s;
}
.gen-style-156 {
  height: 100%;
  background: #faf7f2;
}
.gen-style-157,
.gen-js-style-200 {
  display: block;
  margin-left: 7px;
  flex-shrink: 0;
  transform: translateY(-2px);
}
.gen-style-158 {
  transition-delay: 90ms;
}
.gen-style-159 {
  transition-delay: 270ms;
}
.gen-style-160 {
  transition-delay: 360ms;
}
.gen-style-161,
.gen-js-style-205 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.gen-style-162,
.gen-js-style-207 {
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #1d1d1f;
  mask-image: url("/assets/logo.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("/assets/logo.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  flex-shrink: 0;
}
.gen-style-163,
.gen-js-style-209 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--button-radius);
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: var(--button-bg);
  color: #fff;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  box-shadow: var(--button-shadow);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.16);
}
.gen-style-164 {
  width: 18%;
}
.gen-style-165 {
  width: 22%;
}
.gen-style-166 {
  width: 32%;
}
.gen-style-167 {
  width: 28%;
}

/* ---- gen-style hover effects ---- */
.gen-style-11:hover,
.gen-style-11:focus-visible {
  color: #1d1d1f;
}

.gen-style-16:hover,
.gen-style-16:focus-visible {
  background: rgba(107, 14, 30, 0.06);
  border-radius: 6px;
}

.gen-style-22:hover,
.gen-style-22:focus-visible,
.gen-style-32:hover,
.gen-style-32:focus-visible,
.gen-style-61:hover,
.gen-style-61:focus-visible,
.gen-style-100:hover,
.gen-style-100:focus-visible,
.gen-style-129:hover,
.gen-style-129:focus-visible,
.gen-style-146:hover,
.gen-style-146:focus-visible,
.gen-style-163:hover,
.gen-style-163:focus-visible,
.gen-js-style-209:hover,
.gen-js-style-209:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.gen-style-108:hover,
.gen-style-108:focus-visible {
  opacity: 0.75;
}

.gen-style-143:hover,
.gen-style-143:focus-visible {
  opacity: 0.7;
}

.gen-style-7:hover,
.gen-style-7:focus-visible {
  opacity: 0.7;
}

.gen-style-148:hover,
.gen-style-148:focus-visible,
.gen-js-style-201:hover,
.gen-js-style-201:focus-visible,
.gen-style-155:hover,
.gen-style-155:focus-visible,
.gen-js-style-217:hover,
.gen-js-style-217:focus-visible {
  color: #1d1d1f;
}

/* index.html hero: neutralise global h1 rule (max-width was never applied before merge) */
.hero-heading.gen-style-26 {
  max-width: none;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

/* =============================================
   🍷 UI/UX ENHANCEMENT LAYER
   Burgundy (#6b0e1e) + Sand (#f5de8d) palette
   Apple Premium Design Language
   ============================================= */

:root {
  /* --- Burgundy scale --- */
  --brg-900: #1a040a;
  --brg-800: #3a0710;
  --brg-700: #4a0a14;
  --brg-600: #6b0e1e;
  --brg-500: #8a1326;
  --brg-400: #a83040;
  --brg-300: #c45a68;
  --brg-200: #d4a0b0;
  --brg-100: #e8d0d4;
  --brg-50: #f5ecee;
  --brg-10: #fcf5f6;

  /* --- Sand scale --- */
  --sand-900: #5c4e1a;
  --sand-800: #8a7730;
  --sand-700: #b8a24a;
  --sand-600: #d4c060;
  --sand-500: #e8d47a;
  --sand-400: #f0de8a;
  --sand-300: #f5de8d;
  --sand-200: #f8e8a8;
  --sand-100: #fcf0c8;
  --sand-50: #fef8e6;
  --sand-10: #fffcf2;

  /* --- Semantic tokens --- */
  --sand-accent: var(--sand-300);
  --sand-glow: rgba(245, 222, 141, 0.35);
  --brg-glow: rgba(107, 14, 30, 0.35);

  /* --- Refined glass --- */
  --glass-bg: rgba(250, 247, 242, 0.78);
  --glass-border: rgba(107, 14, 30, 0.06);
  --glass-shadow: 0 8px 32px rgba(107, 14, 30, 0.06);
  --glass-blur: 20px;
}

/* ---- Typography refinements ---- */
::selection {
  background: var(--brg-600);
  color: #fff;
}

/* Smooth font rendering */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* ---- Glass navigation (elevated) ---- */
.home-nav.is-scrolled .home-nav-inner,
.home-nav.mobile-open .home-nav-inner,
.home-nav.usecases-open .home-nav-inner {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---- Sand accent: hero glow complement ---- */
.hero-glow-a {
  background: radial-gradient(circle, var(--brg-glow), transparent 65%);
}
.hero-glow-b {
  background: radial-gradient(circle, var(--sand-glow), transparent 65%);
}

/* ---- Buttons: refined Apple-style ---- */
.home-nav .nav-cta,
.gen-style-100,
.gen-style-129,
.gen-style-32,
button.gen-style-32 {
  border-radius: 999px !important;
  font-weight: 500 !important;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    box-shadow 0.2s ease !important;
}

.home-nav .nav-cta:hover,
.gen-style-100:hover,
.gen-style-129:hover,
.gen-style-32:hover,
button.gen-style-32:hover {
  transform: translateY(-1.5px) scale(1.015);
  box-shadow:
    0 4px 14px rgba(107, 14, 30, 0.25),
    0 0 0 3px rgba(107, 14, 30, 0.08);
}

.home-nav .nav-cta:active,
.gen-style-100:active,
.gen-style-129:active,
.gen-style-32:active,
button.gen-style-32:active {
  transform: translateY(0) scale(0.97);
}

/* ---- Sand secondary button ---- */
.hero-secondary-button {
  border-color: var(--sand-400);
  background: rgba(245, 222, 141, 0.12);
  color: var(--brg-700);
  backdrop-filter: blur(4px);
}
.hero-secondary-button:hover {
  background: rgba(245, 222, 141, 0.22);
  border-color: var(--sand-500);
  color: var(--brg-600);
  box-shadow: 0 8px 20px rgba(245, 222, 141, 0.2);
}

/* ---- Dropdown / usecase panels: sand warmth ---- */
.usecase-dropdown {
  background: rgba(255, 252, 242, 0.98);
  border-color: var(--sand-400);
  box-shadow:
    0 14px 32px rgba(107, 14, 30, 0.08),
    0 0 0 1px rgba(245, 222, 141, 0.15);
}

.usecase-item:hover,
.usecase-item:focus-visible {
  color: var(--brg-600);
  background: rgba(245, 222, 141, 0.12);
}

/* ---- Section blocks: sand gradient warmth ---- */
.what-block,
.level-block,
.showcase-block {
  background:
    radial-gradient(
      circle at 78% 16%,
      rgba(245, 222, 141, 0.08),
      transparent 34%
    ),
    radial-gradient(
      circle at 22% 84%,
      rgba(107, 14, 30, 0.06),
      transparent 34%
    ),
    linear-gradient(
      135deg,
      rgba(255, 252, 242, 0.98) 0%,
      rgba(245, 238, 238, 0.95) 100%
    ) !important;
}

.block-corner.active {
  background: var(--sand-500);
}

/* ---- Permission toggles: sand accent ---- */
.voice-toggle,
.screen-toggle {
  background: var(--brg-600);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.voice-toggle::after,
.screen-toggle::after {
  background: var(--sand-200);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.3);
}

/* ---- Text item underlines: sand instead of burgundy ---- */
.text-item.is-underlined strong {
  border-bottom-color: var(--sand-500);
}

/* ---- Mood reminder highlight ---- */
.blue-note {
  display: inline;
  background: linear-gradient(to top, rgba(245, 222, 141, 0.25) 0%, transparent 8px);
}

/* ---- Cards: warmer hover with sand glow ---- */
.case-card:hover,
.case-card:focus-visible {
  border-color: var(--sand-500);
  box-shadow:
    0 16px 40px rgba(107, 14, 30, 0.06),
    0 0 0 1px rgba(245, 222, 141, 0.15);
}

.case-card:hover .case-card-icon svg,
.case-card:focus-visible .case-card-icon svg {
  color: var(--sand-600);
}

/* ---- Step chips: sand accent ---- */
.step-number {
  color: var(--sand-600) !important;
}

/* ---- Permissions icons: sand accent bg ---- */
.voice-permission-icon,
.screen-permission-icon {
  background: var(--brg-600);
}
.voice-permission-icon svg,
.screen-permission-icon svg {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ---- Fn key: refined pill ---- */
.fn-key {
  background: var(--brg-600);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 6px rgba(0, 0, 0, 0.12);
  border-radius: 7px;
  letter-spacing: -0.01em;
}

/* ---- Scroll cue: sand dot ---- */
.hero-scroll-cue svg rect {
  stroke: var(--brg-400) !important;
}
.hero-scroll-cue svg circle {
  fill: var(--sand-500) !important;
}
.hero-scroll-cue svg path {
  stroke: var(--brg-400) !important;
}

/* ---- Sand glow behind hero IP mark ---- */
.hero-ip-base {
  background: var(--brg-600);
  box-shadow:
    0 0 30px rgba(245, 222, 141, 0.15),
    0 20px 42px rgba(107, 14, 30, 0.18);
}

.hero-ip-idle {
  filter: drop-shadow(0 12px 20px rgba(245, 222, 141, 0.08)) drop-shadow(0 18px 26px rgba(107, 14, 30, 0.16));
}

/* ---- Testimonial cards: sand quote ---- */
.gen-style-77 {
  color: var(--sand-500) !important;
  font-size: 3em !important;
  line-height: 0.6 !important;
}

/* ---- Pricing/beta section: sand accents ---- */
.gen-style-88 {
  background: linear-gradient(135deg, var(--brg-600), var(--brg-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- FAQ accordion: sand hover ---- */
.gen-style-107 button:hover {
  color: var(--brg-600);
}
.gen-style-107 button:hover .gen-style-110,
.gen-style-107 button:hover .gen-style-116 {
  color: var(--sand-500);
}

/* ---- Footer: refined ---- */
.home-footer-wordmark [aria-hidden="true"] {
  background: linear-gradient(135deg, var(--brg-600), var(--brg-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Hero orbit nodes: sand glow ---- */
.hero-orbit-node {
  background: var(--brg-600);
  border-color: rgba(245, 222, 141, 0.12);
  box-shadow:
    0 8px 16px rgba(107, 14, 30, 0.12),
    0 0 0 1px rgba(245, 222, 141, 0.06);
}

/* ---- macOS screen inset: refined ---- */
.mac-screen {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 252, 242, 0.6), transparent 34%),
    linear-gradient(135deg, var(--sand-50) 0%, var(--brg-50) 42%, var(--brg-100) 100%) !important;
  box-shadow:
    inset 0 0 0 10px var(--brg-900),
    inset 0 0 0 12px rgba(255, 255, 255, 0.12),
    0 18px 50px rgba(29, 29, 31, 0.16);
}
.mac-screen::after {
  background: radial-gradient(circle, var(--brg-400), var(--brg-900) 62%) !important;
}

/* ---- Screen cloud drop shadow: warm ---- */
.screen-cloud {
  filter: drop-shadow(0 12px 18px rgba(245, 222, 141, 0.08)) drop-shadow(0 14px 22px rgba(107, 14, 30, 0.22));
}

/* ---- Accessibility video frame: warmer border ---- */
.accessibility-video-frame {
  border-color: rgba(245, 222, 141, 0.15) !important;
}

/* ---- Context video: warmer border ---- */
.context-video-frame {
  border-color: rgba(245, 222, 141, 0.1) !important;
}

/* ---- Marquee testimonials: subtle sand accent ---- */
.gen-style-70 {
  color: rgba(29, 29, 31, 0.58) !important;
  font-weight: 400 !important;
  letter-spacing: -0.01em !important;
}

/* ---- CTA band: burgundy gradient with sand glow ---- */
.cta-band {
  background: linear-gradient(125deg, var(--brg-700) 0%, var(--brg-600) 45%, var(--sand-600) 100%) !important;
}

/* ---- Mobile drawer: sand accent border ---- */
.home-mobile-drawer {
  border-color: rgba(245, 222, 141, 0.12) !important;
}

/* ---- Nav links: refined hover ---- */
.home-nav-link:hover,
.usecase-trigger:hover {
  color: var(--brg-600);
}

/* ---- Scrollbar: sand thumb ---- */
::-webkit-scrollbar-thumb {
  background: rgba(245, 222, 141, 0.3) !important;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 222, 141, 0.5) !important;
}

/* ---- Case rail: sand scrollbar ---- */
.case-rail::-webkit-scrollbar-thumb {
  background: rgba(245, 222, 141, 0.35) !important;
}

/* ---- Notch scene: warm gradient ---- */
.notch-scene {
  background:
    radial-gradient(
      90% 70% at 85% 8%,
      rgba(255, 255, 255, 0.4),
      transparent 55%
    ),
    linear-gradient(140deg, var(--sand-50) 0%, var(--brg-600) 35%, var(--sand-300) 100%) !important;
}

/* ---- Demo shell: soft sand underlay ---- */
.flow-shell {
  background:
    radial-gradient(circle at 24% 18%, rgba(245, 222, 141, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.64) !important;
}

/* ---- Flow panels: warm tint ---- */
.flow-panel {
  background:
    linear-gradient(
      to right,
      transparent calc(33.333% - 1px),
      rgba(245, 222, 141, 0.04) calc(33.333% - 1px),
      rgba(245, 222, 141, 0.04) 33.333%,
      transparent 33.333%
    ),
    linear-gradient(
      to right,
      transparent calc(66.666% - 1px),
      rgba(245, 222, 141, 0.04) calc(66.666% - 1px),
      rgba(245, 222, 141, 0.04) 66.666%,
      transparent 66.666%
    ),
    rgba(255, 252, 242, 0.5) !important;
}

/* ---- Shadows: warm cast ---- */
.meeting-sticky-demo {
  box-shadow: 0 24px 80px rgba(107, 14, 30, 0.08), 0 1px 0 rgba(245, 222, 141, 0.06);
}

/* ---- Context window: warm sheen ---- */
.context-window {
  background: rgba(255, 252, 242, 0.6) !important;
}

/* ---- Flow answer: sand-tinted shadow ---- */
.flow-answer {
  box-shadow:
    0 24px 60px rgba(107, 14, 30, 0.1),
    0 0 0 1px rgba(245, 222, 141, 0.06) !important;
}

/* ---- Invoke panel: warm shadow ---- */
.invoke-panel {
  box-shadow:
    0 24px 60px rgba(107, 14, 30, 0.12),
    0 0 0 1px rgba(245, 222, 141, 0.06) !important;
}

/* ---- Meeting output panel: warm shadow ---- */
.meeting-output-panel {
  box-shadow:
    0 20px 50px rgba(107, 14, 30, 0.1),
    0 0 0 1px rgba(245, 222, 141, 0.05) !important;
}

/* ---- Privacy section: warm toggle ---- */
.gen-style-59[role="switch"] {
  background: var(--brg-600) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}
.gen-style-59[role="switch"] .gen-style-60 {
  background: var(--sand-200) !important;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.3) !important;
}

/* ---- "Ask ChatGPT / Claude / Perplexity" buttons ---- */
.gen-style-137 {
  border-radius: 999px !important;
  transition:
    transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.2s ease,
    box-shadow 0.2s ease !important;
}
.gen-style-137:hover {
  transform: translateY(-1.5px) scale(1.015);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 0 3px rgba(245, 222, 141, 0.15);
  background: #fff !important;
}

/* ---- AI helper card buttons ---- */
.gen-style-61,
a.gen-style-61 {
  border-radius: 999px !important;
  transition:
    transform 0.15s ease,
    background 0.15s ease !important;
}
.gen-style-61:hover,
a.gen-style-61:hover {
  transform: translateY(-1px);
  background: var(--brg-50) !important;
}

/* ---- Pricing/beta castle art: warm glow ---- */
.gen-style-95,
.gen-style-96 {
  filter: drop-shadow(0 20px 36px rgba(245, 222, 141, 0.06)) drop-shadow(0 20px 36px rgba(107, 14, 30, 0.12)) !important;
}

/* ---- Footer link hover: burgundy ---- */
a.gen-style-148:hover {
  color: var(--brg-600) !important;
}

/* ---- Social icons: warm hover ---- */
a.gen-style-155:hover {
  color: var(--brg-500) !important;
  transform: translateY(-1px);
}
a.gen-style-155 {
  transition:
    transform 0.15s ease,
    color 0.15s ease !important;
}

/* ---- Scroll cue hide animation: smoother ---- */
.hero-root.is-scroll-cue-hidden .hero-scroll-cue {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* ---- Card hover: universal lift ---- */
.approval-card:hover,
.context-card:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 222, 141, 0.2);
  box-shadow: 0 12px 28px rgba(107, 14, 30, 0.06);
}
.approval-card,
.context-card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* ---- Journey card: sand label ---- */
.journey-card span {
  color: var(--sand-600) !important;
}
.journey-card:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 222, 141, 0.2);
  box-shadow: 0 14px 34px rgba(107, 14, 30, 0.06);
}
.journey-card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: default;
}

/* ---- Signal chips: sand accent ---- */
.signal-chip {
  border-color: rgba(245, 222, 141, 0.15) !important;
}

/* ---- Panel dots: warm color ---- */
.panel-dots span {
  background: var(--sand-400) !important;
}

/* ---- Context bar dots: warm ---- */
.context-bar span {
  background: var(--sand-400) !important;
}

/* ---- Flow panel stage colors: sand variants ---- */
.flow-panel[data-flow="3"] {
  --stage: var(--sand-600);
  --stage-soft: rgba(245, 222, 141, 0.14);
}
.flow-panel[data-flow="4"] {
  --stage: var(--brg-500);
  --stage-soft: rgba(138, 19, 38, 0.13);
}

/* ---- Demo status badges: sand accent ---- */
.demo-status {
  border-color: rgba(245, 222, 141, 0.2) !important;
}

/* ---- Scroll step active: sand accent line ---- */
.scroll-step.active {
  border-color: var(--sand-500) !important;
}

/* ---- Meeting progress: sand active ---- */
.meeting-progress span.active::before {
  background: var(--sand-500) !important;
}

/* ---- Dot pulse animation: sand ---- */
@keyframes dotPulse {
  50% {
    background: var(--sand-500);
    transform: translateY(-2px);
  }
}

/* ---- Smooth reveal: springier ---- */
.reveal {
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Live region: respecting reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}



