/* ───────────────────────────────────────────
   Landing Page
   ─────────────────────────────────────────── */

.landing {
  background-color: var(--color-surface-light);
  color: var(--color-text-primary);
}

/* ───────────────────────────────────────────
   Hero
   ─────────────────────────────────────────── */

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14rem var(--space-8) 8rem;
  position: relative;
  overflow: hidden;
  background: var(--color-surface-light);
}

/* Warm ambient glow behind hero content */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f5a44a 0%, #f0c76e 35%, #fae0a8 60%, transparent 100%);
  opacity: 0.18;
  filter: blur(60px);
  pointer-events: none;
}

/* Bottom fade into content area */
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, var(--color-surface-light));
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 720px;
  width: 100%;
}

.display {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-light);
  font-size: 4.5rem;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  margin: 0 0 1rem 0;
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 0.5s forwards;
}

.subhead {
  font-size: 1.25rem;
  line-height: var(--line-height-normal);
  color: var(--color-text-secondary);
  margin: 0 0 2rem;
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 0.85s forwards;
}

.hero-cta {
  max-width: 480px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 1.1s forwards;
}

.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeInUp 0.7s ease-out 1.35s forwards;
}

.hero-yc-logo {
  height: 18px;
  width: auto;
  opacity: 0.6;
}

/* ───────────────────────────────────────────
   Shared section layout
   ─────────────────────────────────────────── */

.section {
  padding: 6rem var(--space-8);
  position: relative;
  z-index: 1;
}

.section-inner {
  max-width: 680px;
  margin: 0 auto;
}

.section-wide {
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin: 0 0 1rem 0;
}

/* ───────────────────────────────────────────
   Value proposition cards
   ─────────────────────────────────────────── */

.section-values {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.values-header {
  text-align: center;
  margin-bottom: 3rem;
}

.values-eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-accent-orange);
  margin-bottom: 0.625rem;
}

.values-header h2 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-light);
  font-size: 2rem;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text-primary);
  margin: 0 0 0.75rem 0;
}

.values-subhead {
  font-size: 1rem;
  color: var(--color-text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

.values-control {
  margin-top: 2rem;
  max-width: 640px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.15);
  border-radius: 16px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.value-card-num {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-tertiary);
  background: var(--color-surface-light);
  border: 1px solid rgba(160, 160, 160, 0.18);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  margin-bottom: 1rem;
  width: fit-content;
  letter-spacing: 0.02em;
}

.value-card-num-orange,
.value-card-num-yellow,
.value-card-num-blue {
  color: #c49a00;
  background: rgba(255, 228, 87, 0.15);
  border-color: rgba(255, 228, 87, 0.5);
}

.display-accent {
  color: var(--color-accent-orange);
}

.value-card h3 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-normal);
  font-size: 1.1875rem;
  line-height: var(--line-height-snug);
  margin: 0 0 0.5rem 0;
}

.value-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin: 0;
}

/* Value card visual — pinned to bottom of each card */
.value-card-visual {
  padding: 1rem 0.875rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Card 3: notification stack spans full card width */
.value-card-visual-flush {
  padding-left: 0;
  padding-right: 0;
}

/* Card 2: visual bleeds to card right + bottom edges */
.value-card-visual-extend {
  padding: 0;
  background: transparent;
  border-radius: 0 0 15px 15px;
  margin-right: -1.5rem;
  margin-bottom: -1.5rem;
  height: 215px;
  display: block;
  position: relative;
}

.value-windows {
  position: relative;
  width: 100%;
  height: 100%;
}

.value-window {
  position: absolute;
  right: 0;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.14);
  border-right: none;
  border-radius: 8px 0 0 8px;
  overflow: hidden;
  box-shadow: -2px 2px 12px rgba(26, 26, 26, 0.06);
}

.vw-back {
  top: 0;
  left: 28px;
  height: 30px;
  opacity: 0.38;
  z-index: 1;
}

.vw-mid {
  top: 16px;
  left: 14px;
  height: 96px;
  opacity: 0.62;
  z-index: 2;
}

.vw-front {
  top: 32px;
  left: 0;
  bottom: 0;
  z-index: 3;
  border-bottom: none;
  border-bottom-left-radius: 0;
}

.vw-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-surface-light);
  border-bottom: 1px solid rgba(160, 160, 160, 0.1);
  flex-shrink: 0;
}

.vw-dots {
  display: flex;
  gap: 4px;
}

.vw-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(160, 160, 160, 0.28);
}

.vw-title {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-tertiary);
  letter-spacing: 0.01em;
}

.vw-heading {
  font-size: 0.8125rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  padding: 0.75rem 0.75rem 0.375rem;
  letter-spacing: -0.01em;
}

.vw-body {
  padding: 0 0.75rem 0.5rem;
}

.vw-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid rgba(160, 160, 160, 0.06);
}

.vw-row:last-child {
  border-bottom: none;
}

.vw-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.vw-dot.running {
  background: var(--color-accent-blue);
  box-shadow: 0 0 4px rgba(34, 175, 255, 0.5);
  animation: dot-pulse 1.8s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 4px rgba(34, 175, 255, 0.5);
  }
  50% {
    box-shadow: 0 0 6px 2px rgba(34, 175, 255, 0.65);
  }
}

.vw-dot.complete {
  background: var(--color-accent-green);
}

.vw-dot.scheduled {
  background: rgba(160, 160, 160, 0.35);
}

.vw-label {
  flex: 1;
  font-size: 11px;
  color: var(--color-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vw-freq {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.vw-freq-icon {
  width: 11px;
  height: 11px;
  object-fit: contain;
  flex-shrink: 0;
}

/* ── Hub connector diagram (card 1) ── */
.value-hub {
  position: relative;
  width: 200px;
  height: 180px;
  flex-shrink: 0;
}

.value-hub-ring {
  position: absolute;
  border-radius: 50%;
}

.value-hub-ring-inner {
  width: 100px;
  height: 100px;
  top: 40px;
  left: 50px;
  border: 1px dashed rgba(160, 160, 160, 0.32);
}

.value-hub-ring-outer {
  width: 156px;
  height: 156px;
  top: 12px;
  left: 22px;
  border: 1px dashed rgba(160, 160, 160, 0.16);
}

.value-hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-text-primary);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
  white-space: nowrap;
  z-index: 3;
}

.value-hub-icon {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.15);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.value-hub-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.value-hub-svg-icon {
  width: 18px;
  height: 18px;
}

.value-hub-magnifier {
  position: absolute;
  top: calc(50% - 11px);
  left: calc(50% - 11px);
  width: 22px;
  height: 22px;
  z-index: 2;
  pointer-events: none;
  color: var(--color-text-primary);
  filter: drop-shadow(0 1px 3px rgba(26, 26, 26, 0.18));
}

/* ── Scheduled tasks list (card 2) ── */
.value-schedule {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.value-schedule-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 0.125rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(160, 160, 160, 0.12);
}

.value-schedule-icon {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.value-schedule-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-light);
}

.value-sched-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.value-sched-dot.running {
  background: var(--color-accent-blue);
  box-shadow: 0 0 5px rgba(34, 175, 255, 0.5);
}

.value-sched-dot.complete {
  background: var(--color-accent-green);
}

.value-sched-dot.scheduled {
  background: rgba(160, 160, 160, 0.35);
}

.value-sched-label {
  flex: 1;
  font-size: 11px;
  color: var(--color-text-primary);
}

.value-sched-freq {
  font-size: 10px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

/* ── Approval notifications (card 3) ── */
.value-notifs-stack {
  position: relative;
  width: 100%;
  height: 118px;
}

.value-notif {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.05);
  transform-origin: top center;
}

@keyframes notifToBack {
  0% {
    transform: translateY(0px) scaleX(1) rotate(0deg);
    opacity: 1;
    z-index: 10;
  }
  25% {
    transform: translateY(-18px) scaleX(0.97) rotate(4deg);
    opacity: 1;
    z-index: 10;
  }
  45% {
    transform: translateY(-22px) scaleX(0.94) rotate(3deg);
    opacity: 0.85;
    z-index: 2;
  }
  70% {
    transform: translateY(10px) scaleX(0.92) rotate(1.5deg);
    opacity: 0.95;
    z-index: 2;
  }
  100% {
    transform: translateY(42px) scaleX(0.91) rotate(0deg);
    opacity: 1;
    z-index: 2;
  }
}

.value-notif-animate-to-back {
  animation: notifToBack 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform, opacity;
  transform-origin: bottom right;
}

.value-notif-sliding {
  transition: transform 0.42s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.value-notif-icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--color-surface-light);
  border: 1px solid rgba(160, 160, 160, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-notif-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.value-notif-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.value-notif-title {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.value-notif-sub {
  font-size: 10px;
  color: var(--color-text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.value-notif-time {
  font-size: 10px;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
}

.value-mini-btns {
  display: flex;
  gap: 0.375rem;
}

.value-mini-btn {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
}

.value-mini-btn.deny {
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.2);
  color: var(--color-text-secondary);
}

.value-mini-btn.approve {
  background: var(--color-text-primary);
  color: #fff;
}

/* ── Workflow diagram (teams) ── */
.workflow-diagram-wrap {
  margin-top: 2rem;
  padding: 1.25rem 1rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.15);
  border-radius: 16px;
  overflow-x: auto;
}

.workflow-diagram {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 860px;
  min-height: 260px;
  padding: 0.5rem 0.25rem;
}

.workflow-diagram-wrap .workflow-col {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-width: 0;
}

.workflow-col-label {
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 0.125rem;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.workflow-col.active .workflow-col-label {
  opacity: 1;
}

.workflow-node {
  flex-shrink: 0;
  padding: 0.75rem 0.875rem;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.05);
  opacity: 0.55;
  transition:
    opacity 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-node.active {
  opacity: 1;
  border-color: rgba(34, 175, 255, 0.35);
  box-shadow: 0 2px 12px rgba(34, 175, 255, 0.1);
}

.workflow-node.done {
  opacity: 0.82;
  border-color: rgba(160, 160, 160, 0.14);
  box-shadow: 0 1px 4px rgba(26, 26, 26, 0.05);
}

.workflow-col.done .workflow-col-label {
  opacity: 0.75;
}

.workflow-node-prompt {
  width: 168px;
}

.workflow-node-tag {
  display: block;
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 0.375rem;
}

.workflow-node-tag-green {
  color: var(--color-accent-green);
}

.workflow-prompt-text {
  font-size: 11px;
  line-height: 1.45;
  color: var(--color-text-primary);
  margin: 0;
  min-height: 2.9em;
}

.workflow-cursor {
  display: inline-block;
  width: 1px;
  height: 11px;
  background: var(--color-text-primary);
  margin-left: 1px;
  vertical-align: -1px;
  animation: cursorBlink 0.8s steps(1) infinite;
}

.workflow-h-line {
  flex-shrink: 0;
  width: 32px;
  height: 2px;
  margin: 0 2px;
  border-radius: 1px;
  background: rgba(160, 160, 160, 0.2);
  opacity: 0.35;
  transition: opacity 0.3s ease;
}

.workflow-h-line.active {
  opacity: 1;
  background: linear-gradient(90deg, rgba(160, 160, 160, 0.15), var(--color-accent-blue), rgba(160, 160, 160, 0.15));
  background-size: 200% 100%;
  animation: workflow-flow 1.1s ease-in-out infinite;
}

@keyframes workflow-flow {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

.workflow-fan {
  flex-shrink: 0;
  width: 28px;
  height: 108px;
  position: relative;
  opacity: 0.3;
  transition: opacity 0.35s ease;
}

.workflow-fan.active {
  opacity: 1;
}

.workflow-fan span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(160, 160, 160, 0.22);
  transform-origin: left center;
  transition: background 0.3s ease;
}

.workflow-fan.active span {
  background: linear-gradient(90deg, rgba(160, 160, 160, 0.15), var(--color-accent-blue), rgba(160, 160, 160, 0.15));
  background-size: 200% 100%;
  animation: workflow-flow 1.1s ease-in-out infinite;
}

.workflow-fan span:nth-child(1) {
  top: 18px;
  transform: rotate(-18deg);
  width: 108%;
}

.workflow-fan span:nth-child(2) {
  top: 52px;
}

.workflow-fan span:nth-child(3) {
  bottom: 18px;
  transform: rotate(18deg);
  width: 108%;
}

.workflow-col-sources {
  width: 128px;
}

.workflow-source {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-light);
  border: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.workflow-source.pulsing {
  border-color: rgba(34, 175, 255, 0.4);
  background: #fff;
  transform: scale(1.02);
  box-shadow: 0 1px 6px rgba(34, 175, 255, 0.12);
}

.workflow-source.done {
  border-color: rgba(52, 168, 83, 0.25);
}

.workflow-source-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workflow-source-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.workflow-source-icon .workflow-connector-icon {
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
}

.workflow-source-label {
  font-size: 10px;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-node-hub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  width: 96px;
  text-align: center;
}

.workflow-hub-pill {
  background: var(--color-text-primary);
  color: #fff;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  padding: 0.3125rem 0.75rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}

.workflow-node-sub {
  font-size: 9px;
  color: var(--color-text-tertiary);
}

.workflow-col-agents {
  width: 148px;
}

.workflow-agent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-light);
  border: 1px solid transparent;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.workflow-agent.pulsing {
  border-color: rgba(34, 175, 255, 0.4);
  background: #fff;
  transform: scale(1.02);
  box-shadow: 0 1px 6px rgba(34, 175, 255, 0.12);
}

.workflow-agent.done {
  border-color: rgba(52, 168, 83, 0.25);
}

.workflow-agent-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-text-secondary);
}

.workflow-agent-icon svg {
  width: 12px;
  height: 12px;
}

.workflow-agent-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.workflow-agent-title {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.workflow-agent-sub {
  font-size: 9px;
  color: var(--color-text-tertiary);
}

.workflow-node-review {
  width: 152px;
}

.workflow-doc {
  position: relative;
  padding: 0.5rem 0.5rem 1.25rem;
  background: var(--color-surface-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
}

.workflow-doc-bar {
  height: 4px;
  width: 28px;
  border-radius: 2px;
  background: rgba(160, 160, 160, 0.2);
  margin-bottom: 0.375rem;
}

.workflow-doc-line {
  height: 3px;
  border-radius: 2px;
  background: rgba(160, 160, 160, 0.14);
  margin-bottom: 0.25rem;
  width: 72%;
}

.workflow-doc-line.wide {
  width: 88%;
}

.workflow-doc-title {
  position: absolute;
  bottom: 0.375rem;
  left: 0.5rem;
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.workflow-review-btns {
  display: flex;
  gap: 0.375rem;
}

.workflow-review-btn {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-md);
}

.workflow-review-btn.deny {
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.2);
  color: var(--color-text-secondary);
}

.workflow-review-btn.approve {
  background: var(--color-text-primary);
  color: #fff;
}

.workflow-review-btn.approve.glow {
  box-shadow: 0 0 8px rgba(52, 168, 83, 0.45);
}

/* ───────────────────────────────────────────
   Feature sections
   ─────────────────────────────────────────── */

.section-feature {
}

.section-feature.alt {
}

.section-feature .section-wide {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: center;
}

.section-feature.alt .section-wide {
  grid-template-columns: 1.4fr 1fr;
}

.section-feature.alt .feature-text {
  order: 2;
}

.section-feature.alt .feature-visual {
  order: 1;
}

.feature-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 1rem;
}

.feature-label-blue {
  color: var(--color-accent-blue);
}
.feature-label-green {
  color: var(--color-accent-green);
}
.feature-label-orange {
  color: var(--color-accent-orange);
}
.feature-label-yellow {
  color: #c49a00;
}

.feature-text h2 {
  font-size: 1.75rem;
}

.feature-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ───────────────────────────────────────────
   Product preview: shared
   ─────────────────────────────────────────── */

.preview {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(160, 160, 160, 0.2);
  box-shadow:
    0 4px 24px rgba(26, 26, 26, 0.06),
    0 1px 4px rgba(26, 26, 26, 0.04);
  background: #fff;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
  user-select: none;
}

.preview-app {
  pointer-events: auto;
  user-select: auto;
}

.preview-chrome {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1rem;
  background: var(--color-surface-light);
  border-bottom: 1px solid rgba(160, 160, 160, 0.15);
}

.preview-chrome.dark {
  background: var(--color-surface-darkest);
  border-bottom-color: rgba(250, 250, 250, 0.08);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(160, 160, 160, 0.3);
}

.preview-chrome.dark .preview-dots span {
  background: rgba(250, 250, 250, 0.15);
}

.preview-title {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-tertiary);
  letter-spacing: 0.01em;
}

.preview-chrome.dark .preview-title {
  color: rgba(250, 250, 250, 0.5);
}

.preview-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  background: var(--color-surface-light);
  border: 1px solid rgba(160, 160, 160, 0.2);
  color: var(--color-text-secondary);
}

.preview-btn.primary {
  background: var(--color-text-primary);
  border-color: var(--color-text-primary);
  color: #fff;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(160, 160, 160, 0.12);
  color: var(--color-text-secondary);
}

.preview-badge.green {
  background: rgba(78, 199, 34, 0.15);
  color: #15803d;
}

/* ───────────────────────────────────────────
   Preview: App session (hero)
   ─────────────────────────────────────────── */

.preview-app-body {
  display: grid;
  grid-template-columns: 220px 1fr;
}

/* Sidebar */
.preview-sidebar-track {
  position: relative;
  overflow: hidden;
}

.preview-sidebar {
  position: absolute;
  inset: 0;
  padding: 0.75rem;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  scrollbar-width: none;
}

.preview-sidebar::-webkit-scrollbar {
  display: none;
}

.preview-sidebar-section {
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.15);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
}

.preview-sidebar-label {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: 0.25rem;
  padding: 0 0.25rem;
  user-select: none;
}

.preview-sidebar-label-toggle {
  cursor: pointer;
}

.preview-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.25rem 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-sidebar-item.active {
  background: rgba(26, 26, 26, 0.05);
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.preview-sidebar-item[draggable] {
  cursor: grab;
}

.preview-sidebar-item[draggable]:active {
  cursor: grabbing;
}

.preview-sidebar-item.sidebar-item-dragging {
  opacity: 0.35;
}

.preview-sidebar-drop-line {
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 1px;
  margin: 1px 0.25rem;
  opacity: 0.4;
}

/* Conversation */
.preview-conversation-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  overflow: hidden;
}

.preview-conversation {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  gap: 0.875rem;
  overflow: hidden;
  flex: 1;
}

.preview-conversation.scrollable {
  overflow-y: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.preview-conversation.scrollable::-webkit-scrollbar {
  display: none;
}

.preview-msg {
  display: flex;
  flex-direction: column;
}

.preview-msg.user {
  align-items: flex-end;
}

.preview-msg-bubble {
  max-width: 82%;
  padding: 0.625rem 0.875rem;
  font-size: 12px;
  line-height: 1.6;
  border-radius: var(--radius-lg);
  background: var(--color-surface-light);
  border: 1px solid rgba(160, 160, 160, 0.12);
  color: var(--color-text-primary);
}

.preview-msg.user .preview-msg-bubble {
  border-bottom-right-radius: 3px;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
  background: #f0f0f0;
  border-color: rgba(160, 160, 160, 0.25);
}

.preview-msg-text {
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-text-primary);
  padding: 0.25rem 0;
}

/* Tool calls */
.preview-tool-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0.375rem 0;
  padding: 0.375rem 0;
}

.preview-tool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--color-text-secondary);
  padding: 0.2rem 0;
}

.preview-tool-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.preview-tool-icon.read {
  background: rgba(34, 175, 255, 0.15);
  border: 1px solid rgba(34, 175, 255, 0.2);
}

.preview-tool-icon.edit {
  background: rgba(255, 156, 54, 0.15);
  border: 1px solid rgba(255, 156, 54, 0.2);
}

.preview-tool-icon.shell {
  background: rgba(78, 199, 34, 0.15);
  border: 1px solid rgba(78, 199, 34, 0.2);
}

.preview-tool-icon.email {
  background: rgba(255, 156, 54, 0.1);
  border: 1px solid rgba(255, 156, 54, 0.15);
}

/* Connector icons in tool calls */
img.preview-tool-connector-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: contain;
}

img.preview-tool-connector-icon[src*="github.png"] {
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.preview-tool-label {
  font-family: var(--font-family-mono);
  font-size: 10px;
  color: var(--color-text-secondary);
}

.preview-tool-right-slot {
  margin-left: auto;
  display: grid;
}

.preview-tool-right-slot > * {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.preview-tool-loader {
  color: var(--color-text-tertiary);
}

.preview-tool-loader svg {
  width: 11px;
  height: 11px;
}

.preview-tool-detail {
  font-size: 10px;
  color: var(--color-text-tertiary);
}

.preview-tool-diff {
  margin-left: auto;
  font-family: var(--font-family-mono);
  font-size: 10px;
}

.diff-add {
  color: #15803d;
}

.diff-del {
  color: #c53a2a;
}

.preview-tool-status {
  margin-left: auto;
  font-size: 10px;
}

.preview-tool-status.pass {
  color: #15803d;
}

.preview-tool-status.ready {
  color: #15803d;
}

.preview-changes-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--color-text-tertiary);
  padding: 0.375rem 0;
}

.preview-changes-bar {
  display: flex;
  gap: 2px;
}

.preview-changes-bar span {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.bar-add {
  background: rgba(78, 199, 34, 0.5);
}

.bar-del {
  background: rgba(197, 58, 42, 0.4);
}

/* Inline draft card */
.preview-inline-draft {
  margin: 0.375rem 0;
  border: 1px solid rgba(160, 160, 160, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.preview-inline-draft-header {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-light);
  border-bottom: 1px solid rgba(160, 160, 160, 0.1);
}

.preview-inline-draft-to {
  font-size: 10px;
  color: var(--color-text-tertiary);
}

.preview-inline-draft-subject {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.preview-inline-draft-body {
  padding: 0.625rem 0.75rem;
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-primary);
}

.preview-inline-draft-body p {
  margin: 0 0 0.375rem 0;
}

.preview-inline-draft-body p:last-child {
  margin-bottom: 0;
}

.preview-inline-draft-body strong {
  font-weight: var(--font-weight-medium);
}

.preview-inline-draft-fade {
  color: var(--color-text-tertiary);
  mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.preview-inline-draft-actions {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid rgba(160, 160, 160, 0.1);
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.preview-inline-draft-actions--confirm {
  background: rgba(255, 156, 54, 0.18);
  border-top-color: rgba(255, 156, 54, 0.4);
}

.preview-btn-clickable {
  cursor: pointer;
}

.preview-btn-clickable:hover {
  filter: brightness(0.9);
}

.preview-send-confirm-msg {
  font-size: 11px;
  color: var(--color-text-secondary);
  margin-right: auto;
}

.preview-send-status {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-accent-green-dark, #15803d);
}

.preview-send-status.sent {
  margin-left: auto;
}

.preview-send-undo {
  font-size: 11px;
  font-family: inherit;
  color: var(--color-text-primary);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Todo dock */
.preview-todo-dock {
  background: var(--color-surface-light);
  border: 1px solid rgba(160, 160, 160, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.625rem 0.875rem;
  margin-top: auto;
}

.preview-todo-progress {
  margin-bottom: 0.375rem;
}

.preview-todo-count {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-tertiary);
}

.preview-todo-items {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.preview-todo {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.preview-todo.done {
  color: var(--color-text-tertiary);
  text-decoration: line-through;
}

.preview-todo.active {
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.preview-todo-check {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1.5px solid var(--color-surface-mid);
  flex-shrink: 0;
}

.preview-todo .preview-todo-check {
  border-color: var(--color-surface-mid);
}

.preview-todo.done .preview-todo-check {
  background: var(--color-accent-green);
  border-color: var(--color-accent-green);
}

.preview-todo-check.active {
  border-color: var(--color-accent-blue);
}

/* Prompt */
.preview-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem 0.875rem;
  margin: 0 1.25rem 1rem 1.25rem;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.2);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
}

.preview-prompt-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: 12px;
  font-family: var(--font-family-body);
  color: var(--color-text-primary);
}

.preview-prompt-input::placeholder {
  color: var(--color-text-tertiary);
}

.preview-prompt-disabled {
  cursor: not-allowed;
}

.preview-prompt-disabled .preview-prompt-input {
  cursor: not-allowed;
}

.preview-prompt-send {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  background: var(--color-surface-mid);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.preview-prompt-send.preview-prompt-send-active {
  background: var(--color-text-primary);
}

.preview-prompt-send svg {
  width: 14px;
  height: 14px;
  color: #fff;
}

.preview-msg-bubble-sent {
  animation: popIn 0.15s ease-out forwards;
}

.preview-reply-text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-primary);
  margin-bottom: 0.875rem;
}

.preview-reply-cta .signup-form {
  display: flex;
  gap: 0.5rem;
}

.preview-reply-cta .email-input {
  font-size: 11px;
  padding: 0.4rem 0.625rem;
  min-height: unset;
  height: 32px;
}

.preview-reply-cta .submit-button {
  font-size: 11px;
  padding: 0.4rem 0.75rem;
  min-height: unset;
  height: 32px;
  white-space: nowrap;
}

.preview-reply-cta .success-message {
  font-size: 12px;
  color: var(--color-text-secondary);
}

/* ───────────────────────────────────────────
   Preview: Workspace
   ─────────────────────────────────────────── */

.preview-workspace-content,
.preview-workspace-body {
  height: 240px;
}

.preview-workspace-content {
  display: flex;
  flex-direction: column;
}

.preview-workspace-body {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.preview-workspace-search {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(160, 160, 160, 0.08);
  border: 1px solid transparent;
  color: var(--color-text-tertiary);
  font-size: 10px;
  min-height: 22px;
}

.preview-workspace-search--active {
  background: #fff;
  border-color: rgba(160, 160, 160, 0.25);
  color: var(--color-text-primary);
  font-size: 13px;
  padding: 0.5rem 0.75rem;
  min-height: 34px;
  margin: 0.75rem;
}

.preview-workspace-search-typed {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.preview-workspace-search-cursor {
  display: inline-block;
  width: 1px;
  height: 13px;
  background: var(--color-text-primary);
  margin-left: 1px;
  animation: cursorBlink 0.8s steps(1) infinite;
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.preview-workspace-search-icon {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
}

.preview-workspace-search--active .preview-workspace-search-icon {
  width: 13px;
  height: 13px;
}

.preview-workspace-content--searching > .preview-workspace-chats {
  flex: 1;
  padding-top: 0.5rem;
}

.preview-workspace .preview-sidebar-item {
  cursor: pointer;
}

.preview-workspace-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-workspace-main-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(160, 160, 160, 0.08);
}

.preview-workspace-main-title {
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
}

.preview-workspace-main-title--search {
  display: flex;
  align-items: center;
}

.preview-workspace-main-meta {
  font-size: 10px;
  color: var(--color-text-tertiary);
  font-family: var(--font-family-mono);
}

.preview-workspace-chats {
  flex: 1;
}

.preview-workspace-chat {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(160, 160, 160, 0.06);
  gap: 0 0.75rem;
}

.preview-workspace-chat.active {
  background: rgba(160, 160, 160, 0.06);
}

.preview-workspace-chat:last-child {
  border-bottom: none;
}

.preview-workspace-chat-name {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
  grid-column: 1;
  grid-row: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-workspace-chat-snippet {
  font-size: 10px;
  color: var(--color-text-tertiary);
  grid-column: 1;
  grid-row: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.preview-workspace-chat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background: rgba(160, 160, 160, 0.1);
  color: var(--color-text-secondary);
  font-size: 9px;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  flex-shrink: 0;
}

.preview-workspace-chat-hit {
  background: var(--color-accent-yellow);
  border-radius: 3px;
  padding: 0 0.18rem;
  color: var(--color-text-primary);
  font-weight: var(--font-weight-medium);
}

.preview-workspace-chat-time {
  font-size: 9px;
  color: var(--color-text-tertiary);
  font-family: var(--font-family-mono);
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.preview-workspace-conversation {
  flex: 1;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow: hidden;
}

/* ───────────────────────────────────────────
   Preview: Review & Approve
   ─────────────────────────────────────────── */

.preview-editor-body {
  display: flex;
  flex-direction: column;
}

.preview-editor-meta {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(160, 160, 160, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.preview-editor-field {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 11px;
  color: var(--color-text-secondary);
}

.preview-editor-label {
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  width: 48px;
  flex-shrink: 0;
}

.preview-editor-content {
  padding: 1rem 1rem 1rem calc(1rem + 48px + 0.5rem);
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text-primary);
  min-height: 200px;
}

.preview-editor-content p {
  margin: 0 0 0.625rem 0;
}

.preview-editor-content p:last-child {
  margin-bottom: 0;
}

.preview-editor-heading {
  font-weight: var(--font-weight-medium);
  margin-top: 0.25rem;
}

.preview-editor-content strong {
  font-weight: var(--font-weight-medium);
}

.preview-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: var(--color-surface-light);
}

.preview-editor-source {
  font-size: 10px;
  color: var(--color-text-tertiary);
}

.preview-review-bottom-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 1rem 0.75rem;
  border-top: 1px solid rgba(160, 160, 160, 0.1);
  background: var(--color-surface-light);
}

.preview-review-bottom-buttons {
  display: flex;
  gap: 0.375rem;
}

.preview-editor-edit-word {
  color: var(--color-text-primary);
}

.preview-editor-edit-deleting {
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.preview-editor-edit-typing {
  color: var(--color-accent-blue);
}

.preview-editor-edit-done {
  color: var(--color-text-primary);
}

.preview-editor-cursor {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--color-accent-blue);
  margin-left: 1px;
  animation: cursorBlink 0.8s steps(1) infinite;
  vertical-align: middle;
}

/* ───────────────────────────────────────────
   Preview: Scheduled tasks
   ─────────────────────────────────────────── */

.preview-scheduled {
  background: var(--color-surface-darkest);
}

.preview-scheduled-body {
  padding: 0.5rem;
}

.preview-task-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  align-items: flex-start;
}

.preview-task-item:not(:last-child) {
  border-bottom: 1px solid rgba(250, 250, 250, 0.05);
}

.preview-task-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}

.preview-task-status.running {
  background: var(--color-accent-blue);
  box-shadow: 0 0 6px rgba(34, 175, 255, 0.4);
}

.preview-task-status.complete {
  background: var(--color-accent-green);
}

.preview-task-status.scheduled {
  background: rgba(250, 250, 250, 0.25);
}

.preview-task-icon-wrap {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.preview-task-icon-wrap.recurring {
  background: transparent;
  color: rgba(78, 199, 34, 0.9);
}

.preview-task-icon-wrap.recurring.running {
  background: transparent;
  color: rgba(34, 175, 255, 0.9);
}

.preview-task-icon-wrap.triggered {
  background: transparent;
  color: rgba(251, 191, 36, 0.9);
}

.preview-task-icon {
  width: 14px;
  height: 14px;
}

.preview-task-icon.running {
  animation: clock-pulse 1.8s ease-in-out infinite;
}

@keyframes clock-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(34, 175, 255, 0.4));
    opacity: 1;
  }
  50% {
    filter: drop-shadow(0 0 4px rgba(34, 175, 255, 0.7));
    opacity: 0.85;
  }
}

.preview-task-status-text.running {
  color: rgba(34, 175, 255, 0.9);
  animation: text-pulse 1.8s ease-in-out infinite;
}

@keyframes text-pulse {
  0%,
  100% {
    opacity: 1;
    text-shadow: 0 0 2px rgba(34, 175, 255, 0.3);
  }
  50% {
    opacity: 0.7;
    text-shadow: 0 0 6px rgba(34, 175, 255, 0.5);
  }
}

.preview-task-content {
  flex: 1;
  min-width: 0;
}

.preview-task-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.preview-task-schedule {
  font-size: 10px;
  color: rgba(250, 250, 250, 0.5);
  flex-shrink: 0;
}

.preview-task-name {
  display: block;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  color: rgba(250, 250, 250, 0.9);
}

.preview-task-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  font-size: 10px;
  color: rgba(250, 250, 250, 0.4);
  margin-top: 2px;
}

.preview-task-connector-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1px 4px;
  background: rgba(250, 250, 250, 0.08);
  border-radius: var(--radius-full);
  font-size: 9px;
  color: rgba(250, 250, 250, 0.6);
}

.preview-task-connector-inline img,
.preview-task-connector-icon {
  width: 10px;
  height: 10px;
  object-fit: contain;
}

.preview-task-connector-icon {
  stroke: currentColor;
}

.preview-task-connector-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(250, 250, 250, 0.4);
}

.preview-connectors-strip {
  display: flex;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  border-top: 1px solid rgba(250, 250, 250, 0.06);
}

.preview-connector-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 10px;
  font-weight: var(--font-weight-medium);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(250, 250, 250, 0.1);
  color: rgba(250, 250, 250, 0.7);
}

.preview-connector-pill.dim {
  background: transparent;
  color: rgba(250, 250, 250, 0.5);
}

.preview-connector-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  object-fit: contain;
}

.preview-connector-icon[src*="github.png"] {
  border: 1px solid rgba(255, 255, 255, 0.9);
}

/* ───────────────────────────────────────────
   Founder
   ─────────────────────────────────────────── */

.founder-card {
  padding: 2rem 2.5rem;
  background: #fff;
  border: 1px solid rgba(160, 160, 160, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.04);
}

.founder-quote {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-style: italic;
  margin: 0 0 1.25rem 0;
}

.founder-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
}

.founder-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.founder-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.founder-info strong {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-primary);
}

.founder-info span {
  font-size: 0.8125rem;
  color: var(--color-text-tertiary);
}

/* ───────────────────────────────────────────
   CTA
   ─────────────────────────────────────────── */

/* ───────────────────────────────────────────
   Bottom glow (CTA + footer)
   ─────────────────────────────────────────── */

.landing-bottom {
  position: relative;
  overflow: hidden;
}

.landing-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60px;
  right: -60px;
  bottom: -120px;
  background: linear-gradient(180deg, transparent 35%, #a8d8f8 60%, #6db8f0 80%, #4a9be8 100%);
  opacity: 0.1;
  filter: blur(60px);
  pointer-events: none;
}

.landing-bottom::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, transparent, var(--color-surface-light));
  pointer-events: none;
}

.section-cta {
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-cta .email-input {
  background: #fff;
  position: relative;
  z-index: 2;
}

/* Sky blue ambient glow at page bottom */
.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #4a9be8 0%, #6db8f0 35%, #a8d8f8 60%, transparent 100%);
  opacity: 0.14;
  filter: blur(60px);
  pointer-events: none;
}

/* Top fade from content area */
.section-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, transparent, var(--color-surface-light));
  pointer-events: none;
}

.section-cta h2 {
  color: var(--color-text-primary);
}

.section-cta p {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 1.25rem 0;
}

.cta-form {
  max-width: 420px;
  margin: 2rem auto;
}

.section-cta .aside {
  color: var(--color-text-tertiary);
  margin-top: 1.5rem;
}

/* ───────────────────────────────────────────
   Email form (shared)
   ─────────────────────────────────────────── */

.signup-form {
  margin: 0;
}

.input-group {
  display: flex;
  gap: var(--space-3);
  width: 100%;
}

.email-input {
  width: 100%;
  font-family: var(--font-family-body);
  padding: var(--space-3) var(--space-4);
  font-size: 0.875rem;
  border: 1px solid var(--color-surface-mid);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--color-text-primary);
  flex: 1;
  min-width: 0;
  min-height: 44px;
  line-height: var(--line-height-normal);
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.email-input::placeholder {
  color: var(--color-text-tertiary);
}

.email-input:focus {
  border-color: var(--color-surface-dark);
  box-shadow:
    0 0 0 2px var(--color-surface-light),
    0 0 0 3px var(--color-surface-dark);
}

.email-input:disabled {
  background: rgba(160, 160, 160, 0.15);
  color: var(--color-text-tertiary);
  cursor: not-allowed;
}

.submit-button {
  padding: var(--space-3) var(--space-6);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  font-family: var(--font-family-body);
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-text-primary);
  color: #ffffff;
  cursor: pointer;
  transition:
    filter 0.15s ease,
    transform 0.15s ease;
  white-space: nowrap;
  min-height: 44px;
}

.submit-button:hover:not(:disabled) {
  filter: brightness(0.85);
}

.submit-button:active:not(:disabled) {
  filter: brightness(0.75);
  scale: 0.99;
}

.submit-button:disabled {
  background: var(--color-surface-mid);
  color: var(--color-text-inverse);
  cursor: not-allowed;
}

.error-message {
  color: var(--color-error, #fc533a);
  font-size: 0.875rem;
  margin: var(--space-3) 0 0 0;
  font-weight: var(--font-weight-medium);
}

.success-message {
  background: #f0fdf0;
  border: 1px solid var(--color-accent-green-light, #86efac);
  color: var(--color-accent-green-dark, #15803d);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
}

.aside {
  font-size: 0.875rem;
  color: var(--color-text-tertiary);
  font-style: italic;
}

/* ───────────────────────────────────────────
   Footer
   ─────────────────────────────────────────── */

.landing-footer {
  padding: var(--space-8) var(--space-8);
  border-top: none;
  position: relative;
  z-index: 1;
}

.landing-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.footer-links {
  display: flex;
  align-items: center;
}

.landing-footer a {
  color: rgba(26, 26, 26, 0.62);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.landing-footer a:hover {
  color: rgba(26, 26, 26, 0.9);
  text-decoration: none;
}

.footer-dot {
  color: rgba(26, 26, 26, 0.35);
  margin: 0 var(--space-2);
  font-size: 0.875rem;
}

.footer-backer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-backer-label {
  font-size: 0.6875rem;
  color: rgba(26, 26, 26, 0.45);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
}

.footer-logo {
  height: 16px;
  width: auto;
  opacity: 0.5;
  filter: grayscale(100%);
}

/* ───────────────────────────────────────────
   Animations
   ─────────────────────────────────────────── */

@keyframes wordIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes toolSearch {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes loaderFade {
  to {
    opacity: 0;
  }
}

@keyframes detailFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* tool-loader-N: pulse from row appear time, then fade out when detail arrives */
/* search durations: gmail 0.8s, mercury 1.4s, jira 0.9s, slack 1.2s, github 1.0s */
.tool-loader-1 {
  animation:
    toolSearch 0.7s ease-in-out 4.3s infinite,
    loaderFade 0.2s ease-out 5.1s forwards;
}
.tool-loader-2 {
  animation:
    toolSearch 1.1s ease-in-out 4.55s infinite,
    loaderFade 0.2s ease-out 5.95s forwards;
}
.tool-loader-3 {
  animation:
    toolSearch 0.75s ease-in-out 4.8s infinite,
    loaderFade 0.2s ease-out 5.7s forwards;
}
.tool-loader-4 {
  animation:
    toolSearch 0.95s ease-in-out 5.05s infinite,
    loaderFade 0.2s ease-out 6.25s forwards;
}
.tool-loader-5 {
  animation:
    toolSearch 0.85s ease-in-out 5.3s infinite,
    loaderFade 0.2s ease-out 6.3s forwards;
}

/* tool-detail-N: hidden until result arrives */
.tool-detail-1 {
  opacity: 0;
  animation: detailFadeIn 0.25s ease-out 5.1s forwards;
}
.tool-detail-2 {
  opacity: 0;
  animation: detailFadeIn 0.25s ease-out 5.95s forwards;
}
.tool-detail-3 {
  opacity: 0;
  animation: detailFadeIn 0.25s ease-out 5.7s forwards;
}
.tool-detail-4 {
  opacity: 0;
  animation: detailFadeIn 0.25s ease-out 6.25s forwards;
}
.tool-detail-5 {
  opacity: 0;
  animation: detailFadeIn 0.25s ease-out 6.3s forwards;
}

@keyframes checkFill {
  from {
    background: transparent;
    border-color: var(--color-surface-mid);
  }
  to {
    background: var(--color-accent-green);
    border-color: var(--color-accent-green);
  }
}

@keyframes checkActivate {
  from {
    border-color: var(--color-surface-mid);
  }
  to {
    border-color: var(--color-accent-blue);
  }
}

@keyframes todoTextDim {
  to {
    color: var(--color-text-tertiary);
  }
}

@keyframes strikeGrow {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.preview-todo-text {
  position: relative;
  display: inline-block;
  color: var(--color-text-primary);
}

.preview-todo-text::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  width: 0;
  background: var(--color-text-tertiary);
}

/* fires ~0.35s after corresponding detail resolves */
.todo-anim-1 .preview-todo-check {
  animation: checkFill 0.35s ease-out 5.45s forwards;
}
.todo-anim-1 .preview-todo-text {
  animation: todoTextDim 0.35s ease-out 5.45s forwards;
}
.todo-anim-1 .preview-todo-text::after {
  animation: strikeGrow 0.35s ease-out 5.45s forwards;
}

.todo-anim-2 .preview-todo-check {
  animation: checkFill 0.35s ease-out 6.3s forwards;
}
.todo-anim-2 .preview-todo-text {
  animation: todoTextDim 0.35s ease-out 6.3s forwards;
}
.todo-anim-2 .preview-todo-text::after {
  animation: strikeGrow 0.35s ease-out 6.3s forwards;
}

/* fires after last of tools 3/4/5 resolves (github detail at 6.3s) */
.todo-anim-3 .preview-todo-check {
  animation: checkFill 0.35s ease-out 6.65s forwards;
}
.todo-anim-3 .preview-todo-text {
  animation: todoTextDim 0.35s ease-out 6.65s forwards;
}
.todo-anim-3 .preview-todo-text::after {
  animation: strikeGrow 0.35s ease-out 6.65s forwards;
}

.todo-anim-4 .preview-todo-check {
  animation: checkFill 0.35s ease-out 7.55s forwards;
}
.todo-anim-4 .preview-todo-text {
  animation: todoTextDim 0.35s ease-out 7.55s forwards;
}
.todo-anim-4 .preview-todo-text::after {
  animation: strikeGrow 0.35s ease-out 7.55s forwards;
}

.todo-anim-5 .preview-todo-check {
  animation: checkActivate 0.35s ease-out 8.2s forwards;
}

/* ───────────────────────────────────────────
   Responsive
   ─────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 7rem var(--space-6) 4rem;
  }

  .display {
    font-size: 2.25rem;
  }

  .subhead {
    font-size: 1.0625rem;
  }

  .section {
    padding: 4rem var(--space-6);
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .values-header {
    margin-bottom: 2rem;
  }

  .values-header h2 {
    font-size: 1.5rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .value-card {
    padding: 1.25rem;
  }

  .value-card-visual {
    height: 180px;
  }

  .value-card-visual-extend {
    height: 195px;
  }

  .workflow-diagram {
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 0;
    gap: 0.5rem;
  }

  .workflow-h-line,
  .workflow-fan {
    display: none;
  }

  .workflow-node-prompt,
  .workflow-col-sources,
  .workflow-node-hub,
  .workflow-col-agents,
  .workflow-node-review {
    width: auto;
  }

  .workflow-node-hub {
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
  }

  .section-feature .section-wide,
  .section-feature.alt .section-wide {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-feature.alt .feature-text {
    order: 1;
  }

  .section-feature.alt .feature-visual {
    order: 2;
  }

  .feature-text h2 {
    font-size: 1.375rem;
  }

  .preview-app-body {
    grid-template-columns: 1fr;
  }

  .preview-sidebar-track {
    display: none;
  }

  .preview-workspace .preview-sidebar-track {
    display: block;
  }

  .preview-workspace-body {
    grid-template-columns: 160px 1fr;
  }

  .input-group {
    flex-direction: column;
    align-items: stretch;
  }

  .submit-button {
    width: 100%;
  }

  .founder-card {
    padding: 1.5rem;
    gap: 1rem;
  }

  .landing-footer-inner {
    flex-direction: column;
    justify-content: center;
    gap: var(--space-3);
  }
}

@media (max-width: 480px) {
  .display {
    font-size: 1.75rem;
  }
}
