
:root {
  --primary: #1A1A1A;
  --primary-soft: #2B2B2B;
  --secondary: #7DA67D;
  --secondary-light: #B8CFB8;
  --secondary-pale: #E5EFE5;
  --secondary-dark: #4A6B4A;
  --tertiary: #FFFFFF;
  --neutral: #F9F9F7;
  --neutral-warm: #F4F1EA;
  --neutral-deep: #ECE8DD;
  --line: rgba(26, 26, 26, 0.08);
  --line-soft: rgba(26, 26, 26, 0.05);
  --line-strong: rgba(26, 26, 26, 0.14);
  --text-muted: #6B6B6B;
  --text-light: #9A9A9A;
  --shadow-soft: 0 24px 80px -20px rgba(26, 26, 26, 0.15), 0 8px 30px -10px rgba(26, 26, 26, 0.06);
  --shadow-card: 0 12px 40px -8px rgba(26, 26, 26, 0.08), 0 4px 12px -4px rgba(26, 26, 26, 0.04);
  --shadow-bubble: 0 8px 24px -6px rgba(26, 26, 26, 0.10);
  --shadow-glow: 0 0 0 6px rgba(125, 166, 125, 0.12), 0 12px 40px -8px rgba(125, 166, 125, 0.30);
  --radius-pill: 999px;
  --radius-card: 20px;
  --radius-soft: 12px;
  --ease: cubic-bezier(0.32, 0.72, 0.32, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--neutral);
  color: var(--primary);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.serif { font-family: 'Newsreader', Georgia, serif; }
.mono { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ===== CONFETTI (favicon shower after personalize) ===== */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -60px;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  background: white;
  padding: 3px;
  object-fit: contain;
  animation: confettiFall cubic-bezier(0.28, 0.6, 0.4, 1) forwards;
  opacity: 0;
}

@keyframes confettiFall {
  0%   { transform: translate(0, 0) rotate(0deg) scale(0.5); opacity: 0; }
  8%   { opacity: 1; transform: translate(0, 30px) rotate(15deg) scale(1); }
  100% { transform: translate(var(--x-drift, 0px), 110vh) rotate(var(--rotate-end, 720deg)) scale(0.95); opacity: 0; }
}

/* ===== FIRST-LOAD OVERLAY ===== */
.first-overlay {
  position: fixed;
  inset: 0;
  background: rgba(249, 249, 247, 0.42);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.first-overlay.visible { opacity: 1; pointer-events: auto; }
.first-overlay.dismissing { opacity: 0; }

.first-overlay-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(26, 26, 26, 0.2), 0 12px 30px -10px rgba(26, 26, 26, 0.08);
  max-width: 540px;
  width: 100%;
  padding: 44px 44px 36px;
  text-align: center;
  position: relative;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.4s var(--ease);
}

.first-overlay.visible .first-overlay-card { transform: translateY(0) scale(1); }

.first-overlay-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
  color: var(--primary);
}

.first-overlay-headline {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--primary);
  margin-bottom: 16px;
}

.first-overlay-headline em {
  font-style: italic;
  color: var(--secondary-dark);
  font-weight: 300;
}

.first-overlay-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 28px;
}

.first-overlay-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--neutral);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 18px;
  margin-bottom: 18px;
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}

.first-overlay-form:focus-within {
  background: white;
  box-shadow: 0 0 0 1px var(--secondary), 0 0 0 4px rgba(125, 166, 125, 0.15);
}

.first-overlay-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  padding: 10px 0;
  color: var(--primary);
  min-width: 0;
}

.first-overlay-input::placeholder { color: var(--text-light); }

.first-overlay-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  flex-shrink: 0;
}

.first-overlay-submit:hover:not(:disabled) {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.first-overlay-submit:disabled { opacity: 0.5; cursor: wait; transform: none; }

.first-overlay-privacy {
  margin: 8px auto 22px;
  width: 100%;
  max-width: 460px;
  padding: 14px 18px 12px;
  background: var(--secondary-pale);
  border: 1px solid rgba(125, 166, 125, 0.32);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.first-overlay-privacy-head {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--secondary-dark);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.first-overlay-privacy-head svg { flex-shrink: 0; }

.first-overlay-privacy-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2px;
}

.first-overlay-privacy-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  background: white;
  color: var(--secondary-dark);
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.03em;
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(125, 166, 125, 0.22);
}

.first-overlay-privacy-chip svg { color: var(--secondary); flex-shrink: 0; }

.first-overlay-privacy-foot {
  font-size: 11px;
  color: var(--secondary-dark);
  opacity: 0.78;
  text-align: center;
  line-height: 1.5;
  letter-spacing: -0.005em;
  max-width: 360px;
}

.first-overlay-skip {
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: color 0.15s var(--ease);
}

.first-overlay-skip:hover { color: var(--primary); }

/* Loading state */
.first-overlay.loading .first-overlay-form,
.first-overlay.loading .first-overlay-skip,
.first-overlay.loading .first-overlay-privacy { display: none; }

.first-overlay-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.first-overlay.loading .first-overlay-loading { display: flex; }

.first-overlay-loading-status {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--primary);
  font-weight: 400;
}

.first-overlay-loading-status em {
  font-style: italic;
  color: var(--secondary-dark);
}

.first-overlay-loading-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.first-overlay-loading-step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.first-overlay-loading-step.visible { opacity: 1; }

.first-overlay-loading-step::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--secondary);
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

.first-overlay-loading-step.done::before {
  background: var(--secondary);
  border-color: var(--secondary);
  border-top-color: var(--secondary);
  animation: none;
}

@media (max-width: 560px) {
  .first-overlay-card { padding: 32px 24px 24px; }
  .first-overlay-form { flex-wrap: wrap; padding: 8px; }
  .first-overlay-input { padding: 8px 12px; }
  .first-overlay-submit { width: 100%; justify-content: center; }
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 28px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  max-width: 1480px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
  color: var(--primary);
}

.brand-logo.sm { height: 18px; }
.brand-logo.lg { height: 30px; }
.brand-logo.sage { color: var(--secondary-dark); }

.brand-mark {
  display: block;
  border-radius: 7px;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}

.brand-mark.sm { width: 22px; height: 22px; border-radius: 6px; }

.nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.nav-logo svg { width: 16px; height: 16px; }

.nav-pill {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 28px -8px rgba(26, 26, 26, 0.12),
    0 2px 8px -2px rgba(26, 26, 26, 0.06),
    0 0 0 1px rgba(26, 26, 26, 0.04);
}

.nav-link {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.2s var(--ease);
}

.nav-link:hover { background: rgba(26, 26, 26, 0.04); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(26, 26, 26, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.08);
}
.btn-secondary:hover { background: white; transform: translateY(-1px); }

.btn-arrow { width: 14px; height: 14px; flex-shrink: 0; }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 24px;
  overflow: hidden;
  isolation: isolate;
}

/* Landscape image pinned to the hero's bottom edge, full viewport width.
   Sits BEHIND the activity-feed card (z-index: -1) so the card overlaps it
   and creates visual depth — the landscape peeks from behind. */
.hero-landscape {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: clamp(320px, 34vw, 480px);
  background: url('/assets/backgroundlandscape.png') center bottom / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 720px) {
  .hero-landscape {
    height: clamp(220px, 50vw, 340px);
  }
}

/* Firefly — small white glowing dot that rises from the grass on mouse move.
   Depth: --depth (0.35 = far/small, 1 = near/big) drives size, glow, opacity, rise. */
.firefly {
  position: absolute;
  width: calc(3px * var(--depth, 1));
  height: calc(3px * var(--depth, 1));
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 0 calc(6px * var(--depth, 1)) calc(1.5px * var(--depth, 1)) rgba(255, 255, 255, 0.85),
    0 0 calc(14px * var(--depth, 1)) calc(3px * var(--depth, 1)) rgba(255, 245, 200, 0.45);
  pointer-events: none;
  opacity: 0;
  z-index: 1;
  will-change: transform, opacity;
}
.firefly.alive {
  animation: firefly-rise var(--dur, 1800ms) cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes firefly-rise {
  0%   { opacity: 0; transform: translate(0, 0) scale(0.4); }
  15%  { opacity: var(--max-opacity, 1); transform: translate(calc(var(--sway, 0px) * 0.3), calc(-14px * var(--depth, 1))) scale(1); }
  50%  { opacity: calc(var(--max-opacity, 1) * 0.95); transform: translate(calc(var(--sway, 0px) * 0.7), calc(-50px * var(--depth, 1))) scale(1); }
  100% { opacity: 0; transform: translate(var(--sway, 0px), calc(-110px * var(--depth, 1))) scale(0.55); }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(255, 226, 180, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(220, 230, 240, 0.6) 0%, transparent 65%),
    linear-gradient(180deg,
      #C8D9DF 0%,
      #D8E0DC 18%,
      #E5E5D7 38%,
      #EFE9D5 58%,
      #F4F1EA 78%,
      #F9F9F7 100%
    );
}

.hero-horizon {
  position: absolute;
  bottom: 0;
  left: -10%;
  right: -10%;
  height: 22%;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 100% at 50% 100%, rgba(125, 166, 125, 0.18) 0%, transparent 60%);
  filter: blur(12px);
}

.hero-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 200px 0 80px;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.06);
  margin-bottom: 36px;
}

.badge-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #7DA67D;
  position: relative;
}
.badge-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: white;
  opacity: 0.4;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(0.6); opacity: 0.7; }
}

.hero-headline {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  color: var(--primary);
  margin-bottom: 32px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--secondary-dark);
}

.hero-sub {
  font-size: 18.5px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 44px;
  font-weight: 400;
}

.hero-ctas {
  display: inline-flex;
  gap: 12px;
  margin-bottom: 88px;
}

.hero-card-wrap {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.hero-character {
  position: absolute;
  top: 200px;
  right: 32px;
  width: clamp(120px, 13vw, 160px);
  height: auto;
  z-index: 3;
  transform: rotate(-6deg);
  filter: drop-shadow(0 18px 32px rgba(95, 136, 95, 0.22));
  pointer-events: none;
  animation: hero-character-float 7s ease-in-out infinite;
}

@keyframes hero-character-float {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-10px); }
}

/* Hero side bubbles - only 2 now, more subtle */
.hero-side-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: 14px;
  padding: 9px 14px 9px 9px;
  box-shadow: var(--shadow-bubble);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary);
  white-space: nowrap;
  z-index: 2;
  opacity: 0;
  will-change: translate, opacity;
}

.hero-side-bubble.left {
  top: 80px;
  left: -120px;
  rotate: -3deg;
  animation: bubbleRise 0.7s cubic-bezier(0.32, 0.72, 0.32, 1.2) 0.5s forwards,
             bubbleFloatA 5.4s ease-in-out 1.4s infinite;
}

.hero-side-bubble.right {
  top: 30px;
  right: -100px;
  rotate: 2.5deg;
  animation: bubbleRise 0.7s cubic-bezier(0.32, 0.72, 0.32, 1.2) 1.0s forwards,
             bubbleFloatB 6.2s ease-in-out 1.9s infinite;
}

@keyframes bubbleRise {
  0%   { opacity: 0; translate: 0 26px; scale: 0.9; }
  60%  { opacity: 1; scale: 1.05; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}

@keyframes bubbleFloatA {
  0%, 100% { translate: 0 0; }
  50%      { translate: -2px -7px; }
}

@keyframes bubbleFloatB {
  0%, 100% { translate: 0 0; }
  50%      { translate: 3px -5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-side-bubble.left,
  .hero-side-bubble.right {
    animation: bubbleRise 0.4s ease-out 0.3s forwards;
  }
}

.bubble-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.bubble-status { font-size: 13px; color: var(--secondary-dark); }

/* Product card */
.product-card {
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: left;
  position: relative;
}

/* Hero workspace preview, compacted version of the full workspace card */
.hero-workspace-card {
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: left;
  position: relative;
}

.hero-workspace-card .workspace-studio-bar {
  padding: 11px 22px;
}

.hero-workspace-card .workspace-header {
  padding: 16px 22px;
}

.hero-workspace-card .workspace-header-title {
  font-size: 14px;
}

.hero-workspace-body {
  padding: 6px 0 4px;
}

.hero-workspace-card .workspace-section-label {
  margin-bottom: 0;
  padding: 12px 22px 4px;
}

.hero-workspace-card .workspace-task {
  padding: 11px 22px;
  border-bottom: 1px solid var(--line-soft);
}

.hero-workspace-card .workspace-task:hover {
  margin: 0;
  padding: 11px 22px;
  border-radius: 0;
  background: var(--neutral);
}

.hero-workspace-card .workspace-task:last-child {
  border-bottom: none;
}

.hero-workspace-card .workspace-task-name {
  font-size: 13px;
}

.hero-workspace-card .workspace-task-meta {
  font-size: 10.5px;
}

.hero-workspace-card .workspace-footer {
  padding: 12px 22px;
}

/* ===== Hero animated feed card ===== */
.hero-feed-card {
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  text-align: left;
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}

.hero-feed-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

.hero-feed-brand {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  border: 1px solid rgba(125, 166, 125, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.06);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.hero-feed-brand[hidden] { display: none; }
.hero-feed-brand.is-visible {
  opacity: 1;
  transform: scale(1);
}

.hero-feed-brand img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
}

.hero-feed-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 8px;
}

.hero-feed-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7DA67D;
  position: relative;
  flex-shrink: 0;
}

.hero-feed-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #7DA67D;
  opacity: 0.5;
  animation: hero-feed-pulse-ring 2s ease-out infinite;
}

@keyframes hero-feed-pulse-ring {
  0%   { transform: scale(0.7); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-feed-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.hero-feed-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-height: 246px;
  position: relative;
  transition: opacity 0.6s var(--ease);
}

.hero-feed-list.fading { opacity: 0; }

.hero-feed-item {
  display: grid;
  grid-template-columns: 48px 22px 1fr;
  gap: 14px;
  align-items: center;
  padding: 10px 26px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.hero-feed-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-feed-item-time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.hero-feed-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(125, 166, 125, 0.14);
  color: var(--secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.hero-feed-item-icon.is-caught {
  background: var(--secondary-dark);
  color: white;
}

.hero-feed-item-text {
  font-size: 13.5px;
  color: var(--primary);
  line-height: 1.4;
}

.hero-feed-item-text strong {
  font-weight: 600;
}

.hero-feed-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  background: linear-gradient(180deg, var(--neutral) 0%, rgba(125, 166, 125, 0.07) 100%);
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  gap: 14px;
}

.hero-feed-counters {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.hero-feed-counter-sep {
  width: 1px;
  height: 24px;
  background: rgba(26, 26, 26, 0.10);
}

.hero-feed-counter {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.hero-feed-counter-num {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  font-feature-settings: 'tnum';
  letter-spacing: -0.025em;
  line-height: 1;
}

.hero-feed-counter-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}

.hero-feed-counter-label {
  font-size: 12px;
  color: var(--text-muted);
}

.hero-feed-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-feed-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7DA67D;
  animation: blink 1.6s ease-in-out infinite;
}

@media (max-width: 640px) {
  .hero-feed-card { max-width: 100%; }
  .hero-feed-header { padding: 18px 20px 14px; }
  .hero-feed-title { font-size: 15px; }
  .hero-feed-item { padding: 9px 20px; grid-template-columns: 44px 20px 1fr; gap: 12px; }
  .hero-feed-item-text { font-size: 12.5px; }
  .hero-feed-footer { padding: 14px 20px; }
  .hero-feed-counter-num { font-size: 19px; }
  .hero-feed-list { min-height: 220px; }
}

.card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--neutral);
}

.card-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.card-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--secondary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-dark);
}

.card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 500;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
}

.card-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

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

.card-body { padding: 24px 28px 22px; }

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.card-meta-label { color: var(--text-light); }
.card-meta-value { color: var(--primary); font-weight: 500; }
.card-meta-sep { color: var(--text-light); }

.card-subject {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--primary-soft);
  margin-bottom: 12px;
}

.card-text:last-of-type { margin-bottom: 22px; }

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.card-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-meta-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.card-buttons { display: flex; gap: 8px; }

.btn-sm {
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s var(--ease);
}

.btn-sm.primary { background: var(--primary); color: white; }
.btn-sm.primary:hover { background: var(--primary-soft); }
.btn-sm.ghost {
  background: transparent;
  color: var(--text-muted);
  box-shadow: 0 0 0 1px var(--line);
}
.btn-sm.ghost:hover { background: var(--neutral); color: var(--primary); }

.btn-sm.success {
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  pointer-events: none;
}

/* ===== SECTIONS ===== */
section { padding: 140px 24px; position: relative; }

.container { max-width: 1200px; margin: 0 auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary-dark);
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.section-headline {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--primary);
  max-width: 880px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--secondary-dark);
}

.section-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 72px;
  text-align: center;
}

/* ===== EVERYTHING CONNECTS ===== */
.connects {
  background: var(--neutral);
  padding: 160px 24px;
  position: relative;
  overflow: hidden;
}

.connects-canvas {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  height: 540px;
}

.connects-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.connects-svg path {
  stroke: var(--secondary);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  opacity: 0.35;
  transition: opacity 0.4s var(--ease), stroke-width 0.3s var(--ease);
}

.connects-svg path.active {
  opacity: 1;
  stroke-width: 2;
}

.connects-svg circle.flow {
  fill: var(--secondary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connects-svg circle.flow.active {
  opacity: 1;
  animation: flow 1.6s ease-in-out infinite;
}

@keyframes flow {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.tool-node {
  position: absolute;
  width: 88px;
  height: 88px;
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  z-index: 2;
}

.tool-node:hover, .tool-node.active {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.tool-node-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tool-node-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-node-name {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.tool-node[data-tool="slack"] { top: 50px; left: 0; }
.tool-node[data-tool="telegram"] { top: 20px; left: 200px; }
.tool-node[data-tool="teams"] { top: 0; left: 380px; }
.tool-node[data-tool="gmail"] { top: 0; right: 380px; }
.tool-node[data-tool="outlook"] { top: 50px; right: 0; }
.tool-node[data-tool="proton"] { top: 20px; right: 200px; }
.tool-node[data-tool="asana"] { top: 175px; left: 60px; }
.tool-node[data-tool="toggl"] { top: 175px; left: 170px; }
.tool-node[data-tool="clockify"] { top: 175px; right: 60px; }
.tool-node[data-tool="fireflies"] { top: 290px; right: 120px; }
.tool-node[data-tool="clickup"] { top: 290px; left: 0px; }
.tool-node[data-tool="google"] { top: 290px; right: 0px; }
.tool-node[data-tool="claude"] { bottom: 30px; left: 80px; }
.tool-node[data-tool="notion"] { bottom: 30px; left: 280px; }
.tool-node[data-tool="copilot"] { bottom: 30px; left: calc(50% - 44px); }
.tool-node[data-tool="ollama"] { bottom: 30px; right: 280px; }
.tool-node[data-tool="mistral"] { bottom: 30px; right: 80px; }

.connects-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 22px;
  z-index: 3;
}

.connects-center-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.connects-center-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}

.connects-center-brand .nav-logo {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}

.connects-center-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--secondary-dark);
  background: var(--secondary-pale);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-weight: 500;
}

.connects-center-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.connects-center-content {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  min-height: 48px;
  transition: opacity 0.2s ease;
}

.connects-center-content strong {
  color: var(--primary);
  font-weight: 600;
}

.connects-center-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.connects-center-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.connects-center-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

.connects-hint {
  text-align: center;
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-light);
  font-style: italic;
}

/* ===== KNOWS YOUR BUSINESS ===== */
.knows {
  background: var(--neutral-warm);
  padding: 160px 24px;
}

.knows-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 40px auto 0;
  align-items: center;
}

.knows-text {
  padding-right: 24px;
}

.knows-text .section-headline {
  text-align: left;
  margin: 0 0 24px;
  max-width: 100%;
}

.knows-text .section-sub {
  text-align: left;
  margin: 0 0 32px;
}

.knows-text .eyebrow { margin-bottom: 28px; }

.knows-bullet {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--primary-soft);
  line-height: 1.5;
}

.knows-bullet-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.memory-card {
  background: white;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.memory-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.memory-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.memory-header-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B8CFB8, #7DA67D);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
}

.memory-header-title {
  font-weight: 600;
  font-size: 14px;
}

.memory-header-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.memory-header-badge {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.memory-header-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
}

.memory-list {
  padding: 8px 0;
}

.memory-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 22px;
  cursor: pointer;
  transition: background 0.15s var(--ease);
  border-bottom: 1px solid var(--line-soft);
}

.memory-item:last-child { border-bottom: none; }
.memory-item:hover { background: var(--neutral); }

.memory-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.memory-item-content { flex: 1; min-width: 0; }

.memory-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-item-source {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.memory-item-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
}

.memory-item.open .memory-item-detail {
  max-height: 100px;
  margin-top: 8px;
}

.memory-item-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-light);
  transition: transform 0.25s var(--ease);
  flex-shrink: 0;
  margin-top: 4px;
}

.memory-item.open .memory-item-chevron { transform: rotate(180deg); }

.memory-footer {
  padding: 14px 22px;
  background: var(--neutral);
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--line-soft);
}

.memory-footer strong { color: var(--primary); }

.memory-divider {
  padding: 11px 22px;
  background: var(--neutral);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.memory-divider-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.memory-divider-count {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  color: var(--text-light);
}

.workflow-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 10px;
  vertical-align: middle;
}

.workflow-status.active {
  background: var(--secondary-pale);
  color: var(--secondary-dark);
}

.workflow-status.active::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.workflow-status.ready {
  background: rgba(212, 152, 86, 0.16);
  color: #8B5E2B;
}

/* ===== CATCHES WHAT YOU'D MISS ===== */
.watch {
  background: var(--neutral);
  padding: 160px 24px;
}

.watch-card {
  max-width: 920px;
  margin: 32px auto 0;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.watch-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--neutral);
}

.watch-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.watch-card-header-left .nav-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}
.watch-card-header-left .nav-logo svg { width: 14px; height: 14px; }

.watch-card-title {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--primary);
}

.watch-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 1px;
}

.watch-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 500;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
}

.watch-list { padding: 4px 0; }

.watch-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s var(--ease);
  position: relative;
}

.watch-item:last-child { border-bottom: none; }
.watch-item:hover { background: var(--neutral); }

.watch-item.handled {
  background: var(--secondary-pale);
}

.watch-item-icon-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.watch-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.watch-item[data-category="quiet"] .watch-item-icon {
  background: rgba(125, 145, 166, 0.14);
  color: #4A5C6B;
}

.watch-item[data-category="money"] .watch-item-icon {
  background: rgba(212, 152, 86, 0.16);
  color: #8B5E2B;
}

.watch-item[data-category="opportunity"] .watch-item-icon {
  background: var(--secondary-pale);
  color: var(--secondary-dark);
}

.watch-item[data-category="sentiment"] .watch-item-icon {
  background: rgba(190, 106, 100, 0.14);
  color: #8B3F38;
}

.watch-item-category {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
}

.watch-item-body { min-width: 0; }

.watch-item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}

.watch-item-context {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.watch-item-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: white;
  box-shadow: 0 0 0 1px var(--line);
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}

.watch-item-action:hover {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 0 1px var(--primary);
}

.watch-item-handled {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--secondary-dark);
  font-weight: 500;
  white-space: nowrap;
}

.watch-item-handled-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-item.handled .watch-item-action { display: none; }
.watch-item.handled .watch-item-handled { display: inline-flex; }

.watch-card-footer {
  padding: 18px 26px;
  background: var(--neutral);
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.watch-card-footer strong {
  color: var(--primary);
  font-style: normal;
}

.watch-card-footer-stat {
  display: block;
  margin-top: 8px;
  font-style: italic;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.watch-card-footer-stat strong {
  font-style: normal;
  color: var(--secondary-dark);
  font-weight: 600;
}

/* ===== HAPPY MONDAY: super-powered mailbox ===== */
.monday {
  background: linear-gradient(180deg, var(--neutral) 0%, #FEF8EF 100%);
  padding: 160px 24px;
  position: relative;
  overflow: hidden;
}

.mailbox {
  max-width: 1080px;
  margin: 56px auto 0;
  background: white;
  border-radius: 20px;
  box-shadow:
    0 32px 80px -20px rgba(26, 26, 26, 0.14),
    0 12px 28px -8px rgba(26, 26, 26, 0.06),
    0 0 0 1px var(--line-soft);
  overflow: hidden;
}

/* Top strip — Rivilo identity + stats */
.mailbox-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(125, 166, 125, 0.08), rgba(255, 230, 180, 0.16));
  border-bottom: 1px solid var(--line-soft);
}

.mailbox-top-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mailbox-top-avatar img { width: 26px; height: 26px; object-fit: contain; }

.mailbox-top-meta { flex: 1; min-width: 0; }

.mailbox-top-line {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.mailbox-top-line strong { color: var(--primary); font-weight: 500; }

.mailbox-top-author {
  color: var(--primary);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -0.005em;
}

.mailbox-top-stats {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-top: 2px;
  flex-wrap: wrap;
}

.mailbox-top-stats strong { color: var(--secondary-dark); font-weight: 500; }

.mailbox-top-arrow { color: var(--secondary-dark); font-weight: 500; }
.mailbox-top-sep { color: var(--line-strong); }

.mailbox-top-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  background: white;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--line-soft);
  flex-shrink: 0;
}

/* Two-pane body */
.mailbox-body {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

/* Left pane — inbox list */
.mailbox-list {
  background: var(--neutral);
  border-right: 1px solid var(--line-soft);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mailbox-filters {
  display: flex;
  gap: 4px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.mailbox-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: transparent;
  color: var(--text-muted);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.mailbox-filter:hover { color: var(--primary); }

.mailbox-filter.active {
  background: var(--primary);
  color: white;
}

.mailbox-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.mailbox-filter.active .mailbox-filter-count {
  background: rgba(255, 255, 255, 0.22);
}

.mailbox-group-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: 10px 8px 4px;
  overflow: hidden;
  max-height: 40px;
  transition:
    opacity 0.45s var(--ease),
    max-height 0.5s var(--ease),
    padding 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.mailbox-group-label.muted { color: var(--text-light); padding-top: 14px; }

.mailbox-group-label.removing {
  opacity: 0;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  transform: translateX(-8px);
}

/* Suggestions panel that fills the cleared inbox space */
.mailbox-suggest {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0 8px;
  animation: mailbox-suggest-fade 0.5s var(--ease);
}

.mailbox-suggest[hidden] { display: none; }

@keyframes mailbox-suggest-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mailbox-suggest-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  padding: 4px 8px 6px;
  font-weight: 500;
}

.mailbox-suggest-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 12px;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(4px);
  animation: mailbox-suggest-item-arrive 0.4s var(--ease) forwards;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.mailbox-suggest-item:hover {
  border-color: var(--line-strong);
  box-shadow: 0 2px 8px -4px rgba(26, 26, 26, 0.08);
}

.mailbox-suggest-item[data-suggest="1"] { animation-delay: 0.08s; }
.mailbox-suggest-item[data-suggest="2"] { animation-delay: 0.20s; }
.mailbox-suggest-item[data-suggest="3"] { animation-delay: 0.32s; }

@keyframes mailbox-suggest-item-arrive {
  to { opacity: 1; transform: translateY(0); }
}

.mailbox-suggest-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  margin-top: 1px;
}

.mailbox-suggest-body { flex: 1; min-width: 0; }

.mailbox-suggest-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
  line-height: 1.4;
  margin-bottom: 3px;
}

.mailbox-suggest-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.mailbox-suggest-cta {
  margin-top: 6px;
  width: 100%;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.18s var(--ease);
  opacity: 0;
  animation: mailbox-suggest-item-arrive 0.4s var(--ease) 0.46s forwards;
}

.mailbox-suggest-cta:hover { background: var(--primary-soft); transform: translateY(-1px); }

.mailbox-suggest-cta:disabled { background: var(--secondary); cursor: default; transform: none; }

.mailbox-email {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  background: white;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.mailbox-email:hover { border-color: var(--line-soft); box-shadow: 0 2px 8px -4px rgba(26, 26, 26, 0.08); }

.mailbox-email.active {
  border-color: var(--secondary);
  background: linear-gradient(180deg, rgba(125, 166, 125, 0.08), white);
  box-shadow: 0 2px 10px -4px rgba(125, 166, 125, 0.3);
}

.mailbox-email-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  margin-top: 2px;
}

.mailbox-email-content { flex: 1; min-width: 0; }

.mailbox-email-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 1px;
}

.mailbox-email-from {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mailbox-email-time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.mailbox-email-subject {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  letter-spacing: -0.005em;
}

.mailbox-email-preview {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mailbox-email-flag {
  flex-shrink: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  font-weight: 600;
  margin-top: 4px;
}

.mailbox-collapsed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: white;
  border-radius: 10px;
  margin-bottom: 4px;
  opacity: 0.85;
  transition: opacity 0.15s var(--ease);
}

.mailbox-collapsed:hover { opacity: 1; }

.mailbox-collapsed-icon {
  font-size: 14px;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mailbox-collapsed-body { flex: 1; min-width: 0; }

.mailbox-collapsed-text {
  font-size: 12.5px;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.mailbox-collapsed-text strong { font-weight: 600; }

.mailbox-collapsed-meta {
  font-size: 11px;
  color: var(--text-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right pane — Rivilo chat panel */
.mailbox-chat {
  position: relative;
  background: white;
  min-height: 420px;
  display: flex;
}

.mailbox-chat-panel {
  display: none;
  flex-direction: column;
  padding: 22px 26px 24px;
  width: 100%;
  animation: mailbox-chat-fade 0.3s var(--ease);
}

.mailbox-chat-panel.active { display: flex; }

@keyframes mailbox-chat-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mailbox-chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 18px;
}

.mailbox-chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.mailbox-chat-avatar img { width: 30px; height: 30px; object-fit: contain; }

.mailbox-chat-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}

.mailbox-chat-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.mailbox-chat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.mailbox-chat-summary { margin-bottom: 16px; }
.mailbox-chat-summary-label,
.mailbox-chat-draft-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.mailbox-chat-summary p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.mailbox-chat-summary strong, .mailbox-chat-draft-body strong { color: var(--secondary-dark); font-weight: 500; }
.mailbox-chat-summary em { color: var(--secondary-dark); font-style: italic; }

.mailbox-chat-draft {
  background: var(--secondary-pale);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.mailbox-chat-draft-label { color: var(--secondary-dark); margin-bottom: 8px; }

.mailbox-chat-draft-body {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.mailbox-chat-draft-meta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  color: var(--secondary-dark);
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.mailbox-chat-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.mailbox-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.mailbox-chat-btn.primary {
  background: var(--primary);
  color: white;
}

.mailbox-chat-btn.primary:hover { background: var(--primary-soft); transform: translateY(-1px); }

.mailbox-chat-btn.ghost {
  background: white;
  color: var(--text-muted);
  box-shadow: 0 0 0 1px var(--line);
}

.mailbox-chat-btn.ghost:hover { color: var(--primary); box-shadow: 0 0 0 1px var(--line-strong); }

/* Inline keyboard shortcut badge inside each action button */
.mailbox-chat-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.85);
}

.mailbox-chat-btn.ghost .mailbox-chat-kbd {
  background: var(--neutral);
  color: var(--text-light);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

/* Secondary action — turn this thread into scheduled work in the calendar.
   Inherits the ghost button style; just sits on its own line below the action row. */
.mailbox-chat-plan {
  margin-top: 10px;
  align-self: flex-start;
}

/* Email row marked as handled: brief strike-through, then collapses and fades away */
.mailbox-email {
  overflow: hidden;
  max-height: 200px;
  transition:
    background 0.15s var(--ease),
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease),
    opacity 0.45s var(--ease),
    max-height 0.5s var(--ease),
    margin 0.5s var(--ease),
    padding 0.5s var(--ease),
    transform 0.5s var(--ease);
}

.mailbox-email.handled {
  opacity: 0.55;
  background: var(--neutral);
  border-color: transparent;
  box-shadow: none;
  pointer-events: none;
}

.mailbox-email.handled .mailbox-email-subject,
.mailbox-email.handled .mailbox-email-preview {
  text-decoration: line-through;
  text-decoration-color: var(--secondary-dark);
  text-decoration-thickness: 1px;
}

.mailbox-email.handled .mailbox-email-flag {
  background: var(--secondary);
  color: white;
}

.mailbox-email.handled .mailbox-email-flag::before {
  content: '✓ ';
  letter-spacing: -0.04em;
}

/* Once removed, collapse the row entirely so the inbox visibly empties */
.mailbox-email.removing {
  opacity: 0;
  max-height: 0;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  transform: translateX(-8px);
}

/* Peace-of-mind empty state when all 3 priority emails are handled */
.mailbox-chat-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 0;
  min-height: 380px;
}

.mailbox-chat-empty-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--secondary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
  animation: mailbox-empty-bob 4.5s ease-in-out infinite;
}

.mailbox-chat-empty-avatar img { width: 50px; height: 50px; object-fit: contain; }

@keyframes mailbox-empty-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.mailbox-chat-empty-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px 5px 11px;
  background: var(--secondary);
  color: white;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.mailbox-chat-empty-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin: 0 0 8px;
  font-weight: 400;
}

.mailbox-chat-empty-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 0 18px;
}

.mailbox-chat-empty-text em {
  font-style: italic;
  color: var(--secondary-dark);
}

.mailbox-chat-empty-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 10px 18px 10px 20px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all 0.18s var(--ease);
}

.mailbox-chat-empty-btn:hover { background: var(--primary-soft); transform: translateY(-1px); }

/* Suggestions list, revealed after clicking the suggestions button */
.mailbox-chat-suggestions {
  width: 100%;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  text-align: left;
  animation: mailbox-suggest-slide 0.45s var(--ease);
}

.mailbox-chat-suggestions[hidden] { display: none; }

@keyframes mailbox-suggest-slide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.mailbox-chat-suggestions-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 12px;
  text-align: center;
}

.mailbox-chat-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--neutral);
  border-radius: 12px;
  margin-bottom: 8px;
  opacity: 0;
  animation: mailbox-suggest-stagger 0.42s var(--ease) forwards;
}

.mailbox-chat-suggestion:nth-child(2) { animation-delay: 0.08s; }
.mailbox-chat-suggestion:nth-child(3) { animation-delay: 0.18s; }
.mailbox-chat-suggestion:nth-child(4) { animation-delay: 0.28s; }

@keyframes mailbox-suggest-stagger {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.mailbox-chat-suggestion-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  margin-top: 1px;
}

.mailbox-chat-suggestion-title {
  font-size: 13.5px;
  color: var(--primary);
  letter-spacing: -0.005em;
  font-weight: 500;
  line-height: 1.45;
}

.mailbox-chat-suggestion-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
  margin-top: 3px;
  line-height: 1.45;
}

.mailbox-chat-suggestion-foot {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--secondary-dark);
  font-weight: 500;
  margin-top: 12px;
  padding: 10px 0;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: -0.005em;
  opacity: 0;
  animation: mailbox-suggest-stagger 0.42s var(--ease) 0.4s forwards;
}

.mailbox-chat-suggestion-foot:hover { color: var(--primary); }

/* Mini week-calendar revealed on "Add to this week" */
.mailbox-week {
  margin-top: 18px;
  padding: 18px 20px 16px;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  text-align: left;
  animation: mailbox-week-slide 0.45s var(--ease);
}

.mailbox-week[hidden] { display: none; }

@keyframes mailbox-week-slide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mailbox-week-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.mailbox-week-eyebrow {
  display: block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  font-weight: 500;
  margin-bottom: 3px;
}

.mailbox-week-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 18px;
  letter-spacing: -0.018em;
  color: var(--primary);
  font-weight: 400;
}

.mailbox-week-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.mailbox-week-meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.mailbox-week-grid {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.mailbox-week-times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 0 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  width: 32px;
}

.mailbox-week-days {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  flex: 1;
}

.mailbox-week-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mailbox-week-day-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
  margin-bottom: 6px;
}

.mailbox-week-day-grid {
  position: relative;
  flex: 1;
  height: 220px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(12.5% - 1px),
      var(--line-soft) calc(12.5% - 1px),
      var(--line-soft) 12.5%
    ),
    var(--neutral);
  border-radius: 8px;
}

.mailbox-week-block {
  position: absolute;
  left: 4px;
  right: 4px;
  background: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
  color: white;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 11px;
  line-height: 1.35;
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(74, 107, 74, 0.4);
  opacity: 0;
  transform: translateY(6px) scale(0.96);
  transform-origin: top center;
  animation: mailbox-week-block-arrive 0.42s var(--ease) forwards;
  overflow: hidden;
}

.mailbox-week-block[data-block="1"] { animation-delay: 0.1s; }
.mailbox-week-block[data-block="2"] { animation-delay: 0.28s; }
.mailbox-week-block[data-block="3"] { animation-delay: 0.46s; }

@keyframes mailbox-week-block-arrive {
  from { opacity: 0; transform: translateY(6px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mailbox-week-block:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 16px -4px rgba(74, 107, 74, 0.5);
}

.mailbox-week-block-time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  opacity: 0.85;
  margin-bottom: 2px;
}

.mailbox-week-block-title {
  font-weight: 600;
  letter-spacing: -0.005em;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mailbox-week-block-meta {
  font-size: 9.5px;
  opacity: 0.78;
  margin-top: 3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mailbox-week-block.compact {
  padding: 4px 8px;
  background: linear-gradient(180deg, var(--secondary-dark), #3D5C3D);
}

.mailbox-week-block.compact .mailbox-week-block-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.mailbox-week-block.compact .mailbox-week-block-time {
  margin-bottom: 0;
  font-size: 9.5px;
  opacity: 1;
}

.mailbox-week-block.compact .mailbox-week-block-title {
  font-size: 10px;
}

.mailbox-week-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.mailbox-week-foot-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 720px) {
  .mailbox-week-times { display: none; }
  .mailbox-week-day-grid { height: 180px; }
  .mailbox-week-block { font-size: 10px; padding: 6px 8px; }
  .mailbox-week-block-meta { display: none; }
}

/* Full-width Google-Calendar-style week, slots Rivilo's blocks between existing meetings */
.weekcal {
  margin: 24px auto 0;
  max-width: 1080px;
  background: white;
  border-radius: 20px;
  box-shadow:
    0 24px 60px -16px rgba(26, 26, 26, 0.14),
    0 8px 24px -6px rgba(26, 26, 26, 0.06),
    0 0 0 1px var(--line-soft);
  overflow: hidden;
  animation: weekcal-slide 0.55s var(--ease);
}

.weekcal[hidden] { display: none; }

@keyframes weekcal-slide {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.weekcal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.weekcal-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.weekcal-source-icon { color: #4285F4; flex-shrink: 0; }

.weekcal-source-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.weekcal-source-sep { color: var(--line-strong); }

.weekcal-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--primary);
  margin: 0;
  font-weight: 400;
}

.weekcal-head-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.weekcal-legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.weekcal-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.weekcal-legend-dot.existing { background: #DDE3E8; }
.weekcal-legend-dot.rivilo { background: var(--secondary); }

.weekcal-grid {
  display: flex;
  gap: 10px;
  padding: 16px 22px 22px;
}

.weekcal-times {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 0 4px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  width: 38px;
  height: 480px;
}

.weekcal-days {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  min-width: 0;
}

.weekcal-day {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.weekcal-day-head {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 6px 0 8px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}

.weekcal-day-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 500;
}

.weekcal-day-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.weekcal-day-grid {
  position: relative;
  height: 480px;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(12.5% - 1px),
    var(--line-soft) calc(12.5% - 1px),
    var(--line-soft) 12.5%
  );
}

.weekcal-event {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 6px;
  padding: 5px 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.weekcal-event:hover {
  transform: scale(1.015);
  z-index: 2;
}

.weekcal-event.existing {
  background: #EDF1F4;
  color: #2D3748;
  border-left: 2px solid #A8B0B7;
}

.weekcal-event.existing .weekcal-event-time {
  color: #6A7280;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  letter-spacing: 0.02em;
  margin-bottom: 1px;
}

.weekcal-event.existing .weekcal-event-title {
  font-weight: 500;
  color: #2D3748;
  font-size: 11px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekcal-event.rivilo {
  background: linear-gradient(180deg, var(--secondary), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 12px -4px rgba(74, 107, 74, 0.4);
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: scale(0.94) translateY(6px);
  animation: weekcal-event-arrive 0.55s var(--ease) forwards;
}

.weekcal-event.rivilo[data-block="1"] { animation-delay: 0.3s; }
.weekcal-event.rivilo[data-block="2"] { animation-delay: 0.55s; }
.weekcal-event.rivilo[data-block="3"] { animation-delay: 0.78s; }

@keyframes weekcal-event-arrive {
  0% { opacity: 0; transform: scale(0.94) translateY(6px); }
  60% { opacity: 1; transform: scale(1.04) translateY(0); box-shadow: 0 0 0 4px rgba(125, 166, 125, 0.18), 0 8px 22px -4px rgba(74, 107, 74, 0.5); }
  100% { opacity: 1; transform: scale(1) translateY(0); box-shadow: 0 4px 12px -4px rgba(74, 107, 74, 0.4); }
}

.weekcal-event-mark {
  flex-shrink: 0;
  font-size: 11px;
  color: white;
  opacity: 0.9;
  line-height: 1.3;
}

.weekcal-event.rivilo .weekcal-event-body { flex: 1; min-width: 0; }

.weekcal-event.rivilo .weekcal-event-time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-bottom: 2px;
}

.weekcal-event.rivilo .weekcal-event-title {
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: -0.005em;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekcal-event.rivilo .weekcal-event-meta {
  font-size: 9.5px;
  opacity: 0.78;
  margin-top: 3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.weekcal-event.rivilo.compact {
  padding: 3px 7px;
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

.weekcal-event.rivilo.compact .weekcal-event-time {
  margin-bottom: 0;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.weekcal-event.rivilo.compact .weekcal-event-title {
  font-size: 10px;
  font-weight: 600;
}

.weekcal-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--neutral);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  flex-wrap: wrap;
}

.weekcal-foot strong {
  color: var(--secondary-dark);
  font-weight: 500;
}

.weekcal-foot-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

@media (max-width: 880px) {
  .weekcal-grid { padding: 12px 14px 16px; }
  .weekcal-times { width: 32px; }
  .weekcal-days { gap: 3px; }
  .weekcal-event { padding: 4px 6px; }
  .weekcal-event.existing .weekcal-event-title { font-size: 10px; }
  .weekcal-event.rivilo .weekcal-event-title { font-size: 10.5px; }
  .weekcal-event.rivilo .weekcal-event-meta { display: none; }
}

@media (max-width: 720px) {
  .weekcal-times { display: none; }
  .weekcal-grid { padding: 10px 12px 14px; }
  .weekcal-day-grid { height: 360px; }
  .weekcal-times { height: 360px; }
}

.mailbox-chat-shortcut {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line-soft);
}

/* Bottom progress strip */
.mailbox-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--neutral);
}

.mailbox-progress-bar {
  flex: 1;
  height: 4px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}

.mailbox-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary), var(--secondary-dark));
  border-radius: 2px;
  transition: width 0.5s var(--ease);
}

.mailbox-progress-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.mailbox-progress-text strong { color: var(--secondary-dark); font-weight: 500; }

@media (max-width: 880px) {
  .mailbox-body { grid-template-columns: 1fr; }
  .mailbox-list { border-right: none; border-bottom: 1px solid var(--line-soft); max-height: 380px; overflow-y: auto; }
  .mailbox-chat { min-height: 0; }
  .mailbox-chat-panel { padding: 18px 20px; }
}

@media (max-width: 720px) {
  .monday { padding: 100px 18px; }
  .mailbox { margin-top: 36px; border-radius: 16px; }
  .mailbox-top { flex-wrap: wrap; padding: 12px 16px; }
  .mailbox-top-pill { order: -1; margin-left: auto; }
  .mailbox-list { padding: 12px 10px; }
  .mailbox-filters { gap: 3px; padding-bottom: 10px; }
  .mailbox-filter { padding: 4px 8px; font-size: 11px; }
  .mailbox-chat-actions { flex-direction: column; align-items: stretch; }
  .mailbox-chat-btn { justify-content: center; }
  .mailbox-progress { flex-direction: column; align-items: stretch; gap: 8px; }
  .mailbox-progress-text { text-align: center; }
}

/* ===== INSIDE GMAIL (Chrome extension) ===== */
.extension {
  background: var(--neutral-warm);
  padding: 160px 24px 140px;
  position: relative;
  overflow: hidden;
}

.extension-mockup {
  max-width: 880px;
  margin: 70px auto 0;
  position: relative;
}

.gmail-compose {
  background: #FFFFFF;
  border-radius: 14px 14px 8px 8px;
  box-shadow:
    0 36px 80px -24px rgba(26, 26, 26, 0.18),
    0 12px 32px -8px rgba(26, 26, 26, 0.08),
    0 1px 2px rgba(26, 26, 26, 0.04);
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #202124;
  font-size: 13px;
  position: relative;
}

.gmail-compose-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #E8EAED;
}

.gmail-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5F6368;
  font-size: 14px;
}

.gmail-back-arrow {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #F1F3F4;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.gmail-recipient {
  flex: 1;
  font-size: 14px;
  color: #1F1F1F;
  font-weight: 500;
  border-bottom: 1px solid #E0E2E5;
  padding-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gmail-recipient-meta {
  font-size: 12px;
  color: #5F6368;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gmail-rivi-summary {
  margin: 16px 18px 4px;
  padding: 14px 16px 14px;
  background: rgba(125, 166, 125, 0.06);
  border: 1px solid rgba(125, 166, 125, 0.18);
  border-radius: 10px;
}

.gmail-rivi-summary-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.gmail-rivi-summary-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(125, 166, 125, 0.18),
    0 1px 2px rgba(95, 136, 95, 0.12);
}

.gmail-rivi-summary-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gmail-rivi-summary-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.gmail-rivi-summary-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--secondary-dark);
  letter-spacing: 0;
  line-height: 1.3;
}

.gmail-rivi-summary-dot {
  display: inline-block;
  margin: 0 4px;
  color: rgba(95, 136, 95, 0.45);
  font-weight: 400;
}

.gmail-rivi-summary-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

.gmail-rivi-summary-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--primary);
  margin: 0 0 12px;
}

.gmail-rivi-summary-body strong {
  color: var(--primary);
  font-weight: 600;
}

.gmail-rivi-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gmail-rivi-summary-tag {
  font-size: 11px;
  color: #4A6B4A;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(125, 166, 125, 0.22);
  padding: 3px 9px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.gmail-rivi-summary-tag.tag-warning {
  color: #B45309;
  background: rgba(254, 243, 199, 0.5);
  border-color: rgba(245, 158, 11, 0.28);
}

.gmail-rivi-summary-tag.tag-warning::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #D97706;
  flex-shrink: 0;
}

.gmail-window-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid #5F6368;
  border-radius: 2px;
  flex-shrink: 0;
}

.gmail-body {
  padding: 22px 22px 18px;
  min-height: 120px;
  font-size: 14px;
  color: #202124;
  line-height: 1.55;
}

.gmail-body p { margin: 0 0 12px; }

.gmail-cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #1A73E8;
  vertical-align: middle;
  animation: blink 1.1s step-end infinite;
}

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

.gmail-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #F1F3F4;
}

.gmail-send {
  display: inline-flex;
  align-items: center;
  background: #0B57D0;
  color: #FFFFFF;
  border-radius: 999px;
  padding: 0;
  font-weight: 500;
  font-size: 14px;
  height: 36px;
  flex-shrink: 0;
}

.gmail-send-main {
  padding: 0 18px 0 22px;
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.gmail-send-divider {
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.3);
}

.gmail-send-arrow {
  padding: 0 12px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
}

.gmail-rivi {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary-dark);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 0 18px 0 6px;
  font-weight: 600;
  font-size: 13px;
  height: 36px;
  letter-spacing: 0.01em;
  position: relative;
  box-shadow:
    0 0 0 4px rgba(125, 166, 125, 0.18),
    0 8px 22px -4px rgba(74, 107, 74, 0.45);
  flex-shrink: 0;
  transform-origin: center;
  animation: rivi-pulse 3.6s ease-in-out infinite;
}

@keyframes rivi-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 4px rgba(125, 166, 125, 0.18), 0 8px 22px -4px rgba(74, 107, 74, 0.45); }
  50% { transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(125, 166, 125, 0.22), 0 12px 28px -4px rgba(74, 107, 74, 0.5); }
}

.gmail-rivi-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gmail-rivi-avatar img {
  width: 14px;
  height: 14px;
  display: block;
}

.gmail-trash {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5F6368;
}

/* Rivilo reply card that slides in below the email when "Check with Rivilo" is clicked */
.gmail-mira-popover {
  position: relative;
  margin-top: 18px;
  width: 100%;
  background: white;
  border-radius: 18px;
  box-shadow:
    0 24px 60px -16px rgba(26, 26, 26, 0.14),
    0 8px 24px -6px rgba(26, 26, 26, 0.06),
    0 0 0 1px var(--line-soft);
  padding: 22px 26px 24px;
  z-index: 8;
  opacity: 0;
  transform: translateY(-8px) scale(0.99);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity 0.36s var(--ease), transform 0.36s var(--ease);
  overflow: hidden;
}

.gmail-mira-popover[hidden] { display: none; }

.gmail-mira-popover.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Tail points up at the "Check with Rivilo" button on the email card above */
.gmail-mira-pop-tail {
  position: absolute;
  top: -7px;
  left: 198px;
  width: 14px;
  height: 14px;
  background: white;
  transform: rotate(45deg);
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
  border-radius: 2px;
}

.gmail-mira-pop-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 16px;
}

.gmail-mira-pop-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.gmail-mira-pop-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.gmail-mira-pop-meta { flex: 1; min-width: 0; }

.gmail-mira-pop-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.gmail-mira-pop-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}

.gmail-mira-pop-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.gmail-mira-pop-suggestions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gmail-mira-pop-suggestion {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--primary);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}

.gmail-mira-pop-suggestion.visible {
  opacity: 1;
  transform: translateY(0);
}

.gmail-mira-pop-suggestion-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.gmail-mira-pop-adjust {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.gmail-mira-pop-adjust[hidden] { display: none; }

.gmail-mira-pop-adjust-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  flex-shrink: 0;
}

.gmail-mira-pop-adjust-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}

.gmail-mira-pop-chip {
  background: white;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--line);
  transition: all 0.18s var(--ease);
  cursor: pointer;
}

.gmail-mira-pop-chip:hover {
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.gmail-mira-pop-chip.active {
  background: var(--secondary);
  color: white;
  box-shadow: 0 0 0 4px rgba(125, 166, 125, 0.2);
}

.gmail-mira-pop-chip.ghost {
  color: var(--text-light);
  margin-left: auto;
}

.gmail-mira-pop-chip.ghost:hover { color: var(--primary); }

.gmail-body {
  transition: opacity 0.45s var(--ease);
  position: relative;
}

.gmail-body.fading { opacity: 0.35; }

/* Green marker sweep applied when the body swaps, signals "this just changed" */
.gmail-body > * { position: relative; z-index: 1; }

.gmail-body.just-changed::before {
  content: '';
  position: absolute;
  inset: -6px -10px;
  background: linear-gradient(110deg,
    rgba(125, 166, 125, 0) 0%,
    rgba(125, 166, 125, 0) 30%,
    rgba(125, 166, 125, 0.18) 45%,
    rgba(125, 166, 125, 0.34) 50%,
    rgba(125, 166, 125, 0.18) 55%,
    rgba(125, 166, 125, 0) 70%,
    rgba(125, 166, 125, 0) 100%);
  background-size: 240% 100%;
  background-position: 100% 0;
  pointer-events: none;
  border-radius: 6px;
  animation: gmail-marker-sweep 1.25s cubic-bezier(0.32, 0.72, 0.32, 1) forwards;
  z-index: 0;
}

@keyframes gmail-marker-sweep {
  0% { background-position: 100% 0; opacity: 0; }
  15% { opacity: 1; }
  70% { background-position: -40% 0; opacity: 1; }
  100% { background-position: -40% 0; opacity: 0; }
}

.gmail-rivi.active {
  animation: none;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 6px rgba(125, 166, 125, 0.28),
    0 14px 30px -6px rgba(74, 107, 74, 0.55);
}

@media (max-width: 720px) {
  .gmail-mira-popover { padding: 18px 20px 20px; }
  .gmail-mira-pop-tail { left: 50%; transform: translateX(-50%) rotate(45deg); }
  .gmail-mira-pop-adjust { gap: 10px; }
  .gmail-mira-pop-adjust-label { width: 100%; }
  .gmail-mira-pop-chip.ghost { margin-left: 0; }
}

.extension-callout {
  position: absolute;
  bottom: -54px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.extension-callout-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, transparent, var(--secondary-dark));
  margin-bottom: 10px;
}

.extension-callout-card {
  background: var(--primary);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px -8px rgba(26, 26, 26, 0.25);
}

.extension-hint {
  text-align: center;
  margin-top: 110px;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.extension-hint-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.extension-hint strong {
  color: var(--primary);
  font-style: normal;
  font-weight: 600;
}

@media (max-width: 720px) {
  .gmail-bottom { flex-wrap: wrap; }
  .gmail-rivi { order: -1; width: 100%; justify-content: center; }
  .extension-callout { display: none; }
  .extension-hint { margin-top: 60px; }
}

/* ===== FOUNDER FREEDOM ===== */
.founder {
  background: var(--neutral-warm);
  padding: 160px 24px;
}

.founder-card {
  max-width: 820px;
  margin: 40px auto 0;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.founder-card-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--neutral);
  display: flex;
  align-items: center;
  gap: 14px;
}

.founder-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #B8CFB8 0%, #7DA67D 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.35),
    0 1px 3px rgba(95, 136, 95, 0.22);
}

.founder-card-rivilo {
  position: absolute;
  width: 58px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%) rotate(-5deg);
  filter:
    drop-shadow(0 0 8px rgba(143, 180, 143, 0.4))
    drop-shadow(0 4px 8px rgba(95, 136, 95, 0.28));
  pointer-events: none;
  transition: transform 0.4s var(--ease);
}

.founder-card:hover .founder-card-rivilo {
  transform: translate(-50%, -58%) rotate(-2deg);
}

.founder-card-headtext { flex: 1; min-width: 0; }

.founder-card-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--primary);
}

.founder-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.founder-card-tag {
  margin-left: auto;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(125, 166, 125, 0.12);
  border: 1px solid rgba(125, 166, 125, 0.22);
  line-height: 1.2;
}

.founder-card-tag-num {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--secondary-dark);
  font-feature-settings: 'tnum';
  letter-spacing: -0.01em;
}

.founder-card-tag-label {
  font-size: 10.5px;
  color: var(--secondary-dark);
  opacity: 0.75;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.founder-list { padding: 4px 0; }

.founder-row {
  display: grid;
  grid-template-columns: 56px 14px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s var(--ease);
  position: relative;
}

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

/* Timeline rail with dot, the column between time and text */
.founder-row-rail {
  position: relative;
  width: 14px;
  height: 100%;
  align-self: stretch;
  display: flex;
  justify-content: center;
}

.founder-row-rail::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--line-soft);
}

.founder-row-rail::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 1.5px rgba(125, 166, 125, 0.45);
}

/* First row's rail line stops at top, last row's stops at dot */
.founder-row:first-child .founder-row-rail::before { top: 50%; }
.founder-row:last-child .founder-row-rail::before { bottom: 50%; }

/* Value rows — proactive Rivilo moments highlighted */
.founder-row.is-value { background: rgba(125, 166, 125, 0.04); }
.founder-row.is-value .founder-row-rail::after {
  background: var(--secondary-dark);
  box-shadow: 0 0 0 3px rgba(125, 166, 125, 0.18);
}
.founder-row.is-value .founder-row-meta { color: var(--secondary-dark); }

.founder-row-time {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.founder-row-text {
  font-size: 14.5px;
  color: var(--primary-soft);
  line-height: 1.45;
}

.founder-row-text strong {
  color: var(--primary);
  font-weight: 600;
}

.founder-row-meta {
  font-size: 11.5px;
  color: var(--text-light);
  text-align: right;
  white-space: nowrap;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.founder-card-footer {
  padding: 22px 28px;
  background: linear-gradient(180deg, var(--neutral) 0%, rgba(125, 166, 125, 0.06) 100%);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.founder-card-footer-line {
  flex: 1;
}

/* Approve button at the bottom-right collapses the entire card */
.founder-card-approve {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 9px 16px 9px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.18s var(--ease);
  flex-shrink: 0;
  margin-left: auto;
}

.founder-card-approve:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.founder-card-approve.approved {
  background: var(--secondary);
  pointer-events: none;
}

/* Collapsed state — the whole card shrinks to a tidy "approved" summary */
.founder-card {
  transition:
    max-height 0.6s var(--ease),
    box-shadow 0.4s var(--ease);
  max-height: 2400px;
  overflow: hidden;
}

.founder-card.collapsed {
  max-height: 84px;
}

.founder-card.collapsed .founder-list,
.founder-card.collapsed .founder-card-footer-line,
.founder-card.collapsed .founder-card-tag,
.founder-card.collapsed .founder-card-sub {
  opacity: 0;
  transition: opacity 0.32s var(--ease);
}

.founder-card.collapsed .founder-card-header {
  border-bottom: none;
}

.founder-card.collapsed .founder-card-title::after {
  content: ' · approved, tucked away';
  color: var(--secondary-dark);
  font-weight: 400;
  letter-spacing: -0.005em;
  font-size: 14px;
}

.founder-card.collapsed .founder-card-approve {
  background: transparent;
  color: var(--secondary-dark);
  box-shadow: 0 0 0 1px var(--line-soft);
  font-size: 12px;
  padding: 6px 12px;
}

.founder-card-footer-line {
  font-size: 16px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.founder-card-footer-line strong {
  color: var(--primary);
  font-weight: 600;
}

.founder-card-footer-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-light);
  opacity: 0.5;
}

.founder-card-footer-emph {
  color: var(--secondary-dark);
  font-weight: 600;
}

.founder-arc {
  max-width: 720px;
  margin: 88px auto 0;
  text-align: center;
}

.founder-arc-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  margin-bottom: 28px;
}

.founder-arc-lead {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
  font-weight: 400;
  margin: 0 0 18px;
}

.founder-arc-lead em {
  font-style: italic;
  color: var(--secondary-dark);
  font-weight: 300;
}

.founder-arc-pain {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 14px;
}

.founder-arc-pain strong {
  color: var(--primary);
  font-weight: 500;
}

.founder-arc-pain em {
  font-style: italic;
  color: var(--secondary-dark);
  font-weight: 400;
}

.founder-arc-support {
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
}

.founder-arc-support strong {
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 720px) {
  .founder-arc { margin-top: 64px; }
}

/* ===== TEAM ENABLEMENT ===== */
.team {
  background: var(--neutral);
  padding: 160px 24px;
}

.team-card {
  max-width: 880px;
  margin: 40px auto 0;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.team-card-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--neutral);
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.team-card-title {
  font-weight: 600;
  font-size: 15px;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.team-card-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.team-card-tag {
  margin-left: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-light);
}

.team-list { padding: 4px 0; }

.team-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.15s var(--ease);
}

.team-row:last-child { border-bottom: none; }
.team-row:hover { background: var(--neutral); }

.team-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
  letter-spacing: -0.005em;
  overflow: hidden;
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.team-role {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.team-help-title {
  font-size: 14.5px;
  color: var(--primary-soft);
  line-height: 1.4;
  margin-bottom: 4px;
}

.team-help-title strong {
  color: var(--primary);
  font-weight: 600;
}

.team-help-meta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  color: var(--text-light);
}

.team-card-footer {
  padding: 20px 28px;
  background: var(--neutral);
  border-top: 1px solid var(--line-soft);
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
}

.team-card-footer strong {
  color: var(--primary);
  font-weight: 500;
  font-style: normal;
}

@media (max-width: 900px) {
  .team-row { grid-template-columns: 1fr; gap: 10px; padding: 18px 20px; }
}

/* ===== WORKSPACE ===== */
.workspace {
  background: var(--neutral);
  padding: 160px 24px;
}

.workspace-card {
  max-width: 1080px;
  margin: 40px auto 0;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

/* Initial "generating workspace" overlay, shown once on scroll-in */
.workspace-generating {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 60px 40px;
  border-radius: 24px;
  opacity: 1;
  transition: opacity 0.5s var(--ease);
}

.workspace-generating.fading {
  opacity: 0;
  pointer-events: none;
}

.workspace-generating[hidden] { display: none; }

.workspace-generating-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(125, 166, 125, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(125, 166, 125, 0.06) 0%, transparent 65%);
  pointer-events: none;
  border-radius: 24px;
}

.workspace-generating-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}


.workspace-generating-mark::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid var(--secondary);
  opacity: 0;
  animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

.workspace-generating-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--primary);
  text-align: center;
  position: relative;
  z-index: 1;
}

.workspace-generating-title em {
  font-style: italic;
  color: var(--secondary-dark);
}

.workspace-generating-sub {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: -8px;
  position: relative;
  z-index: 1;
}

.workspace-generating-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  width: 100%;
  max-width: 360px;
  position: relative;
  z-index: 1;
}

.workspace-generating-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--neutral);
  border-radius: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.workspace-generating-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.workspace-generating-step.done {
  color: var(--primary);
}

.workspace-generating-step-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workspace-generating-step .workspace-generating-step-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Look-and-feel progress bar at the top of the generating overlay */
.workspace-generating-lookfeel {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 60px));
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
}

.workspace-generating-lookfeel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.workspace-generating-lookfeel-pct {
  color: var(--secondary-dark);
  font-weight: 500;
}

.workspace-generating-lookfeel-bar {
  height: 3px;
  background: var(--line-soft);
  border-radius: 2px;
  overflow: hidden;
}

.workspace-generating-lookfeel-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--secondary-dark) 100%);
  border-radius: 2px;
  transition: width 80ms linear;
}

/* Sweep overlay that wipes across the workspace card after generation */
.workspace-lookfeel-sweep {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(125, 166, 125, 0) 38%,
    rgba(125, 166, 125, 0.42) 50%,
    rgba(125, 166, 125, 0) 62%,
    transparent 100%);
  transform: translateY(-100%);
}

.workspace-lookfeel-sweep[hidden] { display: none; }

.workspace-lookfeel-sweep.sweeping {
  animation: lookfeel-sweep 1.4s ease-in-out forwards;
}

@keyframes lookfeel-sweep {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Pre-themed (raw) state of the workspace card, removed once the sweep applies the brand.
   `filter: grayscale(1)` cascades to all child elements (including the favicon img) and
   transitions smoothly back to none, giving the visual impression of color snapping in.
   Typography swaps in parallel for a clear before/after shift. */
.workspace-card {
  transition: filter 0.9s var(--ease);
}

.workspace-card.unthemed {
  filter: grayscale(1) brightness(1.04) contrast(0.94);
}

.workspace-card .workspace-header-title,
.workspace-card .workspace-task-name,
.workspace-card .workspace-studio-name,
.workspace-card .workspace-msg-bubble,
.workspace-card .workspace-kanban-card-title,
.workspace-card .workspace-list-name,
.workspace-card .workspace-timeline-name {
  transition: font-family 0.4s var(--ease), letter-spacing 0.4s var(--ease), font-weight 0.4s var(--ease);
}

.workspace-card.unthemed .workspace-header-title,
.workspace-card.unthemed .workspace-task-name,
.workspace-card.unthemed .workspace-studio-name,
.workspace-card.unthemed .workspace-msg-bubble,
.workspace-card.unthemed .workspace-msg-author,
.workspace-card.unthemed .workspace-kanban-card-title,
.workspace-card.unthemed .workspace-list-name,
.workspace-card.unthemed .workspace-timeline-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  letter-spacing: 0;
}

.workspace-rivilo {
  position: absolute;
  top: 0;
  left: 0;
  width: 72px;
  height: auto;
  z-index: 5;
  opacity: 0;
  transform: translate3d(40px, 40px, 0) rotate(-4deg);
  transition:
    transform 1100ms cubic-bezier(0.65, 0, 0.35, 1),
    opacity 600ms ease;
  pointer-events: none;
  filter:
    drop-shadow(0 0 14px rgba(143, 180, 143, 0.55))
    drop-shadow(0 0 6px rgba(143, 180, 143, 0.45))
    drop-shadow(0 10px 18px rgba(95, 136, 95, 0.22));
  will-change: transform, opacity;
}

.workspace-rivilo.is-visible { opacity: 1; }

@media (max-width: 720px) {
  .workspace-rivilo { display: none; }
}

/* Pulse on the element the character is "touching" */
.rivilo-touch {
  animation: rivilo-touch-pulse 1.4s ease-out;
}

@keyframes rivilo-touch-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(125, 166, 125, 0); }
  30%  { box-shadow: 0 0 0 6px rgba(125, 166, 125, 0.18); }
  100% { box-shadow: 0 0 0 0 rgba(125, 166, 125, 0); }
}

/* Floating "+ note" badge that appears briefly */
.rivilo-note-badge {
  position: absolute;
  top: -10px;
  right: 10px;
  background: var(--secondary-dark);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
  box-shadow: 0 4px 10px rgba(95, 136, 95, 0.25);
  white-space: nowrap;
}

.rivilo-note-badge.show {
  opacity: 1;
  transform: translateY(0);
}

/* Position relative so badges and pulse rings anchor correctly */
.workspace-kanban-card,
.workspace-task,
.workspace-msg,
.workspace-list-row,
.workspace-timeline-row { position: relative; }

/* Footer status text fade transition */
.workspace-footer-left {
  transition: opacity 240ms ease;
}
.workspace-footer-left.fading { opacity: 0.35; }

.workspace-studio-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 28px;
  background: white;
  border-bottom: 1px solid var(--line-soft);
}

.workspace-studio-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: white;
}

.workspace-studio-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.workspace-studio-name {
  font-weight: 600;
  font-size: 13px;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.workspace-studio-suffix {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workspace-studio-suffix::before {
  content: '·';
  margin-right: 8px;
  color: var(--text-light);
}

/* Subtle Work / Build mode toggle, communicates the dual nature without dominating the bar */
.workspace-mode {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  background: var(--neutral);
  border-radius: 999px;
  padding: 2px;
  gap: 0;
  flex-shrink: 0;
}

.workspace-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  border-radius: 999px;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
  background: transparent;
  border: none;
  cursor: pointer;
}

.workspace-mode-pill:hover { color: var(--primary); }

.workspace-mode-pill.active {
  background: white;
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--line-soft), 0 1px 2px rgba(26, 26, 26, 0.05);
  font-weight: 500;
}

.workspace-mode-icon { color: currentColor; opacity: 0.7; }
.workspace-mode-pill.active .workspace-mode-icon { opacity: 1; color: var(--secondary-dark); }

/* Build mode panel — takes over the workspace body when Build is toggled */
.workspace-build {
  padding: 36px 40px 32px;
  border-bottom: 1px solid var(--line-soft);
  animation: workspace-build-slide 0.42s var(--ease);
}

.workspace-build[hidden] { display: none; }

.workspace-build-state[hidden] { display: none; }

@keyframes workspace-build-slide {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}

.workspace-build-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.workspace-build-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.workspace-build-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.workspace-build-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

.workspace-build-author {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
  text-transform: none;
}

.workspace-build-meta-sep { color: var(--line-strong); }

.workspace-build-bubble {
  background: var(--secondary-pale);
  color: var(--primary);
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  padding: 16px 20px;
  border-radius: 14px;
  border-top-left-radius: 4px;
  margin-left: 50px;
  margin-bottom: 18px;
}

.workspace-build-bubble strong {
  color: var(--secondary-dark);
  font-weight: 500;
}

.workspace-build-bubble-quote {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(125, 166, 125, 0.22);
  font-style: italic;
  color: var(--secondary-dark);
  font-size: 13.5px;
}

.workspace-build-proposal {
  margin-left: 50px;
  margin-bottom: 18px;
  padding: 16px 20px;
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 4px 14px -6px rgba(26, 26, 26, 0.06);
}

.workspace-build-proposal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}

.workspace-build-proposal-icon {
  color: var(--secondary-dark);
  flex-shrink: 0;
}

.workspace-build-proposal-eyebrow {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  font-weight: 500;
}

.workspace-build-proposal-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--primary);
  margin-bottom: 6px;
  font-weight: 400;
}

.workspace-build-proposal-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.workspace-build-proposal-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.workspace-build-proposal-meta-sep { color: var(--line-strong); }

.workspace-build-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-left: 50px;
}

.workspace-build-adjust {
  background: white;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--line);
  transition: all 0.18s var(--ease);
}

.workspace-build-adjust:hover { color: var(--primary); box-shadow: 0 0 0 1px var(--line-strong); }

.workspace-build-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 9px 16px 9px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
}

.workspace-build-go:hover { background: var(--primary-soft); transform: translateY(-1px); }

/* Build log streaming steps */
.workspace-build-log {
  margin-left: 50px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}

.workspace-build-step {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 14px;
  background: var(--neutral);
  border-radius: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12.5px;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s var(--ease);
}

.workspace-build-step.visible {
  opacity: 1;
  transform: translateX(0);
}

.workspace-build-step.done { color: var(--primary); }

.workspace-build-step-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.workspace-build-step-spinner {
  width: 11px;
  height: 11px;
  border: 1.4px solid var(--secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* The "NEW" badge that pulses on the freshly-added Pulse tab */
.workspace-view-tab[hidden] { display: none; }

.workspace-view-tab-pulse {
  position: relative;
}

.workspace-view-tab-new {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: var(--secondary);
  color: white;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  vertical-align: middle;
  animation: workspace-view-tab-new-pulse 1.6s ease-in-out infinite;
}

.workspace-view-tab.active .workspace-view-tab-new {
  background: white;
  color: var(--primary);
}

@keyframes workspace-view-tab-new-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.workspace-view-tab-pulse.just-arrived {
  animation: workspace-tab-arrive 0.6s var(--ease);
}

@keyframes workspace-tab-arrive {
  0% { opacity: 0; transform: scale(0.85) translateX(-6px); }
  60% { opacity: 1; transform: scale(1.05) translateX(0); }
  100% { opacity: 1; transform: scale(1) translateX(0); }
}

/* Pulse view content */
.workspace-pulse {
  padding: 24px 28px;
}

.workspace-pulse-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.workspace-pulse-eyebrow {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.workspace-pulse-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  letter-spacing: -0.018em;
  color: var(--primary);
  margin: 0;
  font-weight: 400;
}

.workspace-pulse-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 6px 0 0;
  line-height: 1.5;
  max-width: 540px;
}

.workspace-pulse-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.workspace-pulse-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.workspace-pulse-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workspace-pulse-row {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 18px 22px 16px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  position: relative;
  overflow: hidden;
}

.workspace-pulse-row:hover {
  border-color: var(--line-strong);
  box-shadow: 0 4px 14px -8px rgba(26, 26, 26, 0.08);
}

/* Risk row gets an amber accent line on the left edge */
.workspace-pulse-row[data-state="risk"] {
  border-color: rgba(217, 144, 85, 0.32);
  background: linear-gradient(90deg, rgba(217, 144, 85, 0.05), white 14%);
}

.workspace-pulse-row[data-state="opportunity"] {
  border-color: rgba(125, 166, 125, 0.4);
  background: linear-gradient(90deg, rgba(125, 166, 125, 0.06), white 14%);
}

.workspace-pulse-row[data-state="ok"] {
  border-color: var(--line-soft);
}

.workspace-pulse-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.workspace-pulse-client {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1;
  min-width: 220px;
}

.workspace-pulse-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.workspace-pulse-flag.risk {
  background: rgba(217, 144, 85, 0.16);
  color: #B47140;
}

.workspace-pulse-flag.opportunity {
  background: var(--secondary-pale);
  color: var(--secondary-dark);
}

.workspace-pulse-flag.ok {
  background: var(--neutral);
  color: var(--text-muted);
}

.workspace-pulse-insights {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--neutral);
  border-radius: 10px;
  margin-bottom: 12px;
}

.workspace-pulse-row[data-state="ok"] .workspace-pulse-insights {
  background: rgba(245, 245, 245, 0.45);
}

.workspace-pulse-insight {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--primary);
}

.workspace-pulse-insight strong {
  color: var(--primary);
  font-weight: 600;
}

.workspace-pulse-insight-mark {
  flex-shrink: 0;
  width: 18px;
  display: inline-flex;
  justify-content: center;
  font-size: 12px;
  margin-top: 1px;
}

.workspace-pulse-insight.handled .workspace-pulse-insight-mark { color: var(--secondary-dark); font-weight: 600; }
.workspace-pulse-insight.action .workspace-pulse-insight-mark { color: var(--secondary-dark); }
.workspace-pulse-insight.signal .workspace-pulse-insight-mark { color: #B47140; }
.workspace-pulse-insight.context {
  color: var(--text-muted);
  font-size: 12px;
}
.workspace-pulse-insight.context .workspace-pulse-insight-mark { color: var(--line-strong); }

.workspace-pulse-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.workspace-pulse-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.18s var(--ease);
}

.workspace-pulse-action.primary {
  background: var(--primary);
  color: white;
}

.workspace-pulse-action.primary:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.workspace-pulse-action.ghost {
  background: white;
  color: var(--text-muted);
  box-shadow: 0 0 0 1px var(--line);
}

.workspace-pulse-action.ghost:hover {
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--line-strong);
}

.workspace-pulse-saved {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.workspace-pulse-favicon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}

.workspace-pulse-favicon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.workspace-pulse-favicon-text {
  font-family: 'Inter', sans-serif;
}

.workspace-pulse-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
  margin-bottom: 2px;
}

.workspace-pulse-project {
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.02em;
}

.workspace-pulse-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.workspace-pulse-cell-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}

.workspace-pulse-cell-value {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.workspace-pulse-cell-value.warn { color: var(--secondary-dark); font-weight: 500; }

.workspace-pulse-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  width: max-content;
}

.workspace-pulse-pill.ok { background: var(--secondary-pale); color: var(--secondary-dark); }
.workspace-pulse-pill.warn { background: rgba(217, 144, 85, 0.16); color: #B47140; }

.workspace-pulse-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.workspace-pulse-pill.ok .workspace-pulse-pill-dot { animation: blink 1.6s ease-in-out infinite; }

.workspace-pulse-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  background: var(--neutral);
  border-radius: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.workspace-pulse-footer-icon {
  color: var(--secondary-dark);
  display: inline-flex;
}

.workspace-pulse-footer strong {
  color: var(--secondary-dark);
  font-weight: 500;
}

@media (max-width: 800px) {
  .workspace-build { padding: 24px 22px 22px; }
  .workspace-build-bubble,
  .workspace-build-proposal,
  .workspace-build-actions,
  .workspace-build-log { margin-left: 0; }
  .workspace-pulse { padding: 18px 18px; }
  .workspace-pulse-row { padding: 16px 16px 14px; }
  .workspace-pulse-row-foot { flex-direction: column; align-items: flex-start; }
  .workspace-pulse-action { width: 100%; justify-content: center; }
}

@media (max-width: 720px) {
  .workspace-studio-bar { flex-wrap: wrap; gap: 8px; }
  .workspace-mode { margin-left: auto; }
  .workspace-mode-pill { padding: 4px 9px; font-size: 10px; }
}

.workspace-header {
  padding: 22px 28px;
  background: var(--neutral);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.workspace-header-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--primary);
}

.workspace-header-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.workspace-header-meta-sep { color: var(--text-light); }

.workspace-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--secondary-dark);
  background: var(--secondary-pale);
  padding: 5px 11px 5px 9px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.workspace-status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.workspace-views {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: white;
  flex-wrap: wrap;
}

.workspace-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s var(--ease);
}

.workspace-view-tab:hover { background: var(--neutral); color: var(--primary); }
.workspace-view-tab.active { background: var(--primary); color: white; }
.workspace-view-tab svg { opacity: 0.65; }
.workspace-view-tab.active svg { opacity: 1; }

.workspace-views-hint {
  margin-left: auto;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}



/* Context line — explains why THIS view was generated for THIS studio */
.workspace-view-context {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 28px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--secondary-dark);
  background: rgba(125, 166, 125, 0.06);
  border-bottom: 1px solid rgba(125, 166, 125, 0.18);
  letter-spacing: 0.005em;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}


.workspace-view-context.regenerating {
  opacity: 0;
  transform: translateY(-2px);
}

.workspace-view-context-text { transition: opacity 0.25s var(--ease); }

/* Regeneration overlay — brief shimmer on view switch */
.workspace-regenerating {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: white;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  pointer-events: none;
}

.workspace-regenerating.active {
  display: flex;
  animation: regenFlash 0.7s var(--ease) forwards;
}

@keyframes regenFlash {
  0%   { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

.workspace-regen-shimmer {
  width: 60%;
  max-width: 360px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(125, 166, 125, 0.08) 0%,
    rgba(125, 166, 125, 0.25) 50%,
    rgba(125, 166, 125, 0.08) 100%
  );
  background-size: 200% 100%;
  animation: shimmerSlide 1s linear infinite;
}

@keyframes shimmerSlide {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.workspace-regen-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  color: var(--secondary-dark);
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}


.workspace-content {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
  min-height: 380px;
}

.workspace-view {
  display: none;
  animation: viewFadeIn 0.32s var(--ease);
}

.workspace-view.active { display: block; }

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

.workspace-body {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
}

/* KANBAN */
.workspace-kanban {
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.workspace-kanban-col {
  background: var(--neutral);
  border-radius: 12px;
  padding: 14px;
  min-height: 320px;
}

.workspace-kanban-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.workspace-kanban-col-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 500;
}

.workspace-kanban-col-count {
  font-size: 10.5px;
  color: var(--text-muted);
  background: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.workspace-kanban-card {
  background: white;
  border-radius: 9px;
  padding: 11px 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.workspace-kanban-card-name {
  font-size: 12.5px;
  color: var(--primary);
  line-height: 1.4;
  margin-bottom: 9px;
  letter-spacing: -0.005em;
}

.workspace-kanban-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.workspace-kanban-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: white;
}

.workspace-kanban-card-due {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  color: var(--text-light);
}

.workspace-kanban-card-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: var(--secondary-dark);
  background: var(--secondary-pale);
  padding: 2px 7px;
  border-radius: 8px;
  font-weight: 500;
  margin-bottom: 9px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* TIMELINE */
.workspace-timeline {
  padding: 18px 24px 22px;
}

.workspace-timeline-grid {
  display: grid;
  grid-template-columns: 180px repeat(5, 1fr);
  align-items: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0 10px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.workspace-timeline-grid > span { text-align: center; }
.workspace-timeline-grid > span:first-child { text-align: left; }

.workspace-timeline-row {
  display: grid;
  grid-template-columns: 180px repeat(5, 1fr);
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
  position: relative;
}

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

.workspace-timeline-name-cell {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--primary);
  letter-spacing: -0.005em;
  padding-right: 12px;
}

.workspace-timeline-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--secondary);
  flex-shrink: 0;
}

.workspace-timeline-name-cell.done { color: var(--text-muted); text-decoration: line-through; }
.workspace-timeline-name-cell.done .workspace-timeline-dot { background: var(--text-light); }
.workspace-timeline-name-cell.flagged .workspace-timeline-dot {
  box-shadow: 0 0 0 3px var(--secondary-pale);
}

.workspace-timeline-bar {
  height: 22px;
  border-radius: 7px;
  background: var(--secondary-pale);
  border: 1px solid rgba(125, 166, 125, 0.45);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 10.5px;
  color: var(--secondary-dark);
  font-weight: 500;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  white-space: nowrap;
}

.workspace-timeline-bar.done {
  background: var(--neutral);
  border-color: var(--line-strong);
  color: var(--text-light);
}

.workspace-timeline-bar.upcoming {
  background: white;
  border: 1.5px dashed rgba(125, 166, 125, 0.5);
  color: var(--secondary-dark);
}

/* LIST */
.workspace-list { padding: 0; }

.workspace-list-row {
  display: grid;
  grid-template-columns: 1.6fr 140px 120px 90px;
  gap: 14px;
  padding: 14px 28px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  transition: background 0.15s var(--ease);
}

.workspace-list-row:last-child { border-bottom: none; }
.workspace-list-row:hover:not(.header) { background: var(--neutral); }

.workspace-list-row.header {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  font-weight: 500;
  background: var(--neutral);
  padding: 11px 28px;
}

.workspace-list-name {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  letter-spacing: -0.005em;
  min-width: 0;
}

.workspace-list-name.done { color: var(--text-muted); text-decoration: line-through; }

.workspace-list-check {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.workspace-list-name.done .workspace-list-check {
  background: var(--secondary);
  border-color: var(--secondary);
}

.workspace-list-name.flagged .workspace-list-check {
  background: var(--secondary-pale);
  border-color: var(--secondary);
}

.workspace-list-assignee {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-muted);
}

.workspace-list-assignee-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.workspace-list-due {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-muted);
}

.workspace-list-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.workspace-list-status-pill.todo { background: var(--neutral); color: var(--text-muted); }
.workspace-list-status-pill.progress { background: rgba(212, 152, 86, 0.16); color: #8B5E2B; }
.workspace-list-status-pill.done { background: var(--secondary-pale); color: var(--secondary-dark); }

.workspace-tasks {
  padding: 22px 28px;
  border-right: 1px solid var(--line-soft);
}

.workspace-comms {
  padding: 22px 28px;
}

.workspace-section-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workspace-section-count {
  font-size: 10.5px;
  color: var(--text-light);
}

.workspace-task {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.workspace-task:hover { background: var(--neutral); margin: 0 -12px; padding: 12px; border-radius: 8px; }
.workspace-task:last-child { border-bottom: none; }
.workspace-task:hover { border-bottom-color: transparent; }

.workspace-task-check {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid var(--line-strong);
  flex-shrink: 0;
  margin-top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.workspace-task.done .workspace-task-check {
  background: var(--secondary);
  border-color: var(--secondary);
}

.workspace-task.flagged .workspace-task-check {
  border-color: var(--secondary);
  background: var(--secondary-pale);
}

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

.workspace-task-name {
  font-size: 13.5px;
  color: var(--primary);
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.workspace-task.done .workspace-task-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.workspace-task-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 3px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.workspace-task-meta strong {
  color: var(--secondary-dark);
  font-weight: 500;
}

.workspace-msg {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.workspace-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 600;
  color: white;
  flex-shrink: 0;
}

.workspace-msg-content { flex: 1; min-width: 0; }

.workspace-msg-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 3px;
}

.workspace-msg-author-meta {
  font-weight: 400;
  color: var(--text-light);
}

.workspace-msg-bubble {
  background: var(--neutral);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--primary);
  display: inline-block;
}

.workspace-msg.mira .workspace-msg-bubble {
  background: var(--secondary-pale);
  color: var(--secondary-dark);
}

.workspace-msg.mira .workspace-msg-author-meta {
  color: var(--secondary-dark);
}

.workspace-msg-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.workspace-msg-action {
  font-size: 11.5px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: all 0.15s var(--ease);
}

.workspace-msg-action.primary {
  background: var(--primary);
  color: white;
}
.workspace-msg-action.primary:hover { background: var(--primary-soft); }

.workspace-msg-action.ghost {
  background: white;
  color: var(--text-muted);
  box-shadow: 0 0 0 1px var(--line);
}
.workspace-msg-action.ghost:hover { color: var(--primary); }

.workspace-footer {
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--neutral);
  flex-wrap: wrap;
  gap: 10px;
}

.workspace-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.workspace-footer-left::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.workspace-footer-left strong {
  color: var(--primary);
  font-weight: 500;
}

.workspace-footer-link {
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 800px) {
  .workspace-body { grid-template-columns: 1fr; }
  .workspace-tasks { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .workspace-header { flex-direction: column; align-items: flex-start; }
  .workspace-header-meta { flex-wrap: wrap; }
  .workspace-views-hint { display: none; }
  .workspace-kanban { grid-template-columns: 1fr; }
  .workspace-kanban-col { min-height: auto; }
  .workspace-timeline-grid,
  .workspace-timeline-row { grid-template-columns: 130px repeat(5, 1fr); font-size: 9.5px; }
  .workspace-timeline-name-cell { font-size: 11.5px; padding-right: 6px; }
  .workspace-list-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 20px; }
  .workspace-list-row.header { display: none; }
}

/* ===== WORKFLOW PROPOSALS ===== */
.workflow-proposals {
  max-width: 1080px;
  margin: 28px auto 0;
  position: relative;
}

/* State 1 — Rivilo's discovery message, conversational chat-bubble pattern */
.workflow-discovery {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: white;
  border-radius: 20px;
  padding: 22px 26px 24px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), max-height 0.5s var(--ease), padding 0.5s var(--ease), margin 0.5s var(--ease);
  overflow: hidden;
  max-height: 320px;
}

.workflow-proposals.in-view .workflow-discovery {
  opacity: 1;
  transform: translateY(0);
}

.workflow-discovery.collapsing {
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: 0;
  pointer-events: none;
}

.workflow-discovery[hidden] { display: none; }

.workflow-discovery-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--secondary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  margin-top: 2px;
}

.workflow-discovery-avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  animation: workflow-discovery-bob 4.5s ease-in-out infinite;
}

@keyframes workflow-discovery-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.workflow-discovery-content { flex: 1; min-width: 0; }

.workflow-discovery-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-light);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.workflow-discovery-author {
  color: var(--secondary-dark);
  font-weight: 500;
  text-transform: none;
  letter-spacing: -0.005em;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.workflow-discovery-meta-sep { color: var(--line-strong); }
.workflow-discovery-meta-text { text-transform: uppercase; }

.workflow-discovery-bubble {
  font-size: 15px;
  color: var(--primary);
  line-height: 1.55;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}

.workflow-discovery-bubble strong {
  color: var(--secondary-dark);
  font-weight: 500;
}

.workflow-discovery-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-discovery-show {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 9px 16px 9px 18px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.18s var(--ease);
}

.workflow-discovery-show:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.workflow-discovery-skip {
  background: none;
  color: var(--text-muted);
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.15s ease;
}

.workflow-discovery-skip:hover { color: var(--primary); }

/* State 2 — proposals card */
.workflow-proposed {
  background: white;
  border-radius: 24px;
  padding: 32px 36px 30px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.workflow-proposed[hidden] { display: none; }

.workflow-proposed.visible {
  opacity: 1;
  transform: translateY(0);
}

.workflow-proposed-header {
  text-align: center;
  margin-bottom: 24px;
}

.workflow-proposed-eyebrow {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--secondary-dark);
  text-transform: uppercase;
  margin-bottom: 8px;
  transition: color 0.4s var(--ease);
}

.workflow-proposed-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.018em;
  color: var(--primary);
  margin: 0 0 8px;
  transition: opacity 0.3s var(--ease);
}

.workflow-proposed-title em {
  font-style: italic;
  color: var(--secondary-dark);
}

.workflow-proposed-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
  transition: opacity 0.3s var(--ease);
}

.workflow-proposed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 28px 0 22px;
}

.workflow-card {
  background: white;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 16px 20px 14px;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}

.workflow-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.workflow-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--neutral);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.workflow-card-name {
  flex: 1;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: -0.005em;
  margin: 0;
}

.workflow-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--neutral);
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

.workflow-card-body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-left: 36px;
}

.workflow-card-row {
  font-size: 13px;
  line-height: 1.5;
  color: var(--primary);
}

.workflow-card-row-label {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-right: 8px;
  font-weight: 500;
  min-width: 64px;
}

.workflow-card-row-text { color: var(--text-muted); }

.workflow-card-foot {
  margin-top: 12px;
  padding-left: 36px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  display: flex;
  gap: 8px;
}

.workflow-card-foot-sep { color: var(--line-strong); }

/* Approved state — applied per-card on approval, staggered */
.workflow-card.approved {
  border-color: rgba(125, 166, 125, 0.45);
  background: linear-gradient(180deg, rgba(125, 166, 125, 0.04), white 60%);
  box-shadow: 0 8px 22px -10px rgba(125, 166, 125, 0.4);
  animation: workflow-approve-pop 0.5s var(--ease);
}

@keyframes workflow-approve-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.012); box-shadow: 0 0 0 4px rgba(125, 166, 125, 0.18), 0 12px 28px -10px rgba(125, 166, 125, 0.5); }
  100% { transform: scale(1); box-shadow: 0 8px 22px -10px rgba(125, 166, 125, 0.4); }
}

.workflow-card.approved .workflow-card-icon {
  background: var(--secondary-pale);
  color: var(--secondary-dark);
}

.workflow-card.approved .workflow-card-pill {
  background: var(--secondary);
  color: white;
}

.workflow-card.approved .workflow-card-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: white;
  margin-right: 1px;
  animation: blink 1.6s ease-in-out infinite;
}

.workflow-proposed-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
  transition: opacity 0.4s var(--ease);
}

.workflow-proposed-summary {
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: -0.005em;
}

.workflow-proposed-summary strong {
  color: var(--primary);
  font-weight: 500;
}

.workflow-proposed-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-adjust {
  background: white;
  color: var(--text-muted);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 0 0 1px var(--line);
  transition: all 0.18s var(--ease);
}

.workflow-adjust:hover { color: var(--primary); box-shadow: 0 0 0 1px var(--line-strong); }

.workflow-approve {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--primary);
  color: white;
  border-radius: 999px;
  padding: 9px 18px 9px 19px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.2s var(--ease);
}

.workflow-approve:hover { background: var(--primary-soft); transform: translateY(-1px); }

.workflow-approve.approved {
  background: var(--secondary);
  color: white;
  pointer-events: none;
}

.workflow-proposed-actions.done {
  opacity: 0.85;
}

.workflow-proposed-actions.done .workflow-adjust { display: none; }

@media (max-width: 720px) {
  .workflow-discovery { padding: 18px 20px 20px; gap: 12px; }
  .workflow-discovery-avatar { width: 34px; height: 34px; }
  .workflow-discovery-bubble { font-size: 14px; }
  .workflow-proposed { padding: 24px 22px 22px; border-radius: 20px; }
  .workflow-card-body, .workflow-card-foot { padding-left: 0; }
  .workflow-card-row-label { display: block; min-width: 0; margin-bottom: 2px; }
  .workflow-proposed-actions { flex-direction: column; align-items: stretch; }
  .workflow-proposed-buttons { justify-content: flex-end; }
}

/* ===== TESTIMONIALS ===== */
.voices {
  background: var(--neutral);
  padding: 160px 24px;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 56px auto 0;
}

.voice-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 40px 38px 36px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.voice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.voice-quote-mark {
  font-family: 'Newsreader', serif;
  font-size: 80px;
  line-height: 0.6;
  color: var(--secondary-light);
  margin-bottom: 8px;
  height: 32px;
  font-style: italic;
}

.voice-quote {
  font-family: 'Newsreader', serif;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 32px;
  flex: 1;
}

.voice-quote em {
  font-style: italic;
  color: var(--secondary-dark);
  font-weight: 300;
}

.voice-attr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.voice-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: white;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.voice-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.voice-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.voice-role {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.voice-role a {
  color: var(--secondary-dark);
  border-bottom: 1px solid rgba(125, 166, 125, 0.3);
  transition: border-color 0.15s var(--ease);
}

.voice-role a:hover { border-bottom-color: var(--secondary-dark); }

@media (max-width: 900px) {
  .voices-grid { grid-template-columns: 1fr; }
  .voice-card { padding: 32px 28px 28px; }
  .voice-quote { font-size: 20px; }
}

/* ===== LIVE DEMO ===== */
.demo {
  background: var(--neutral);
  padding: 160px 24px;
  position: relative;
}

.demo-customize {
  max-width: 600px;
  margin: 36px auto 24px;
  text-align: center;
}

.demo-customize-form {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.2s var(--ease);
}

.demo-customize-form:focus-within {
  box-shadow: 0 0 0 1px var(--secondary), 0 0 0 4px rgba(125, 166, 125, 0.15);
}

.demo-customize-label {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.demo-customize-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  padding: 8px 12px;
  color: var(--primary);
  min-width: 0;
}

.demo-customize-input::placeholder { color: var(--text-light); }

.demo-customize-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
  flex-shrink: 0;
}

.demo-customize-btn:hover {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.demo-customize-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.demo-customize-reset {
  display: inline-flex;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--text-light);
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: color 0.15s var(--ease);
}

.demo-customize-reset:hover { color: var(--primary); }

.demo-learn-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.demo-learn-overlay.active {
  display: flex;
  opacity: 1;
}

.demo-learn-content {
  text-align: center;
  max-width: 460px;
  padding: 20px;
}

.demo-learn-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 32px;
  line-height: 1.25;
  font-weight: 400;
}

.demo-learn-title em {
  font-style: italic;
  color: var(--secondary-dark);
  font-weight: 300;
}

.demo-learn-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  text-align: left;
  max-width: 360px;
  margin: 0 auto;
}

.demo-learn-step em {
  font-style: italic;
  color: var(--secondary-dark);
  font-weight: 500;
}

@media (max-width: 600px) {
  .demo-customize-form {
    flex-wrap: wrap;
    padding: 10px;
    gap: 8px;
  }
  .demo-customize-label {
    width: 100%;
    text-align: center;
    padding: 4px 0 0;
  }
  .demo-customize-input { padding: 8px 12px; }
}

.demo-frame {
  max-width: 980px;
  margin: 8px auto 0;
  background: white;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.demo-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px;
  background: var(--neutral);
  border-bottom: 1px solid var(--line-soft);
}

.demo-tab {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-tab:hover { background: rgba(26, 26, 26, 0.04); color: var(--primary); }
.demo-tab.active { background: var(--primary); color: white; }
.demo-tab.active .demo-tab-icon { background: rgba(255, 255, 255, 0.2); color: white; }

.demo-tab-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}

.demo-body {
  padding: 24px;
  min-height: 520px;
  position: relative;
  background: var(--neutral);
}

.demo-split {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 20px;
  align-items: stretch;
  min-height: 520px;
}

/* ===== CHAT PANEL ===== */
.demo-chat {
  background: white;
  border-radius: 16px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px var(--line-soft);
  min-height: 520px;
  max-height: 600px;
}

.demo-chat-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 14px;
}

.demo-chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}

.demo-chat-id { flex: 1; min-width: 0; }

/* Choose-your-model side note below the demo split */
.demo-models-note {
  max-width: 1080px;
  margin: 28px auto 0;
  padding: 6px 22px;
  display: flex;
  flex-direction: column;
  background: rgba(125, 166, 125, 0.05);
  border: 1px solid rgba(125, 166, 125, 0.16);
  border-radius: 14px;
}

.demo-models-note-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.demo-models-note-row + .demo-models-note-row {
  border-top: 1px solid rgba(125, 166, 125, 0.14);
}

.demo-models-note-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(125, 166, 125, 0.12);
  color: var(--secondary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.demo-models-note-icon-private {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: rgba(125, 166, 125, 0.10);
}

.demo-models-note-row-private .demo-models-note-text {
  font-size: 12.5px;
  color: var(--text-muted);
}

.demo-models-note-text {
  flex: 1;
  min-width: 200px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.demo-models-note-text strong {
  color: var(--primary);
  font-weight: 600;
}

.demo-models-note-logos {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 14px;
  background: white;
  border-radius: 999px;
  border: 1px solid rgba(125, 166, 125, 0.16);
  flex-shrink: 0;
}

.demo-models-note-logos img {
  height: 18px;
  width: auto;
  max-width: 24px;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
}

.demo-models-note-logos img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.demo-models-note-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  padding: 6px 12px;
  background: white;
  border: 1px solid rgba(125, 166, 125, 0.22);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--secondary-dark);
  letter-spacing: 0.005em;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), transform 0.15s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}

.demo-models-note-cta:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
  transform: translateX(2px);
}

.demo-models-note-cta svg {
  flex-shrink: 0;
  transition: transform 0.15s var(--ease);
}

.demo-models-note-cta:hover svg {
  transform: translateX(2px);
}

@media (max-width: 640px) {
  .demo-models-note { padding: 4px 18px; }
  .demo-models-note-row { padding: 12px 0; }
  .demo-models-note-text { font-size: 12.5px; min-width: 0; }
  .demo-models-note-logos { padding: 6px 12px; gap: 12px; }
  .demo-models-note-logos img { height: 16px; }
}

.demo-chat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.demo-chat-status {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 1px;
}

.demo-chat-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
  animation: blink 1.6s ease-in-out infinite;
}

.demo-chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 14px;
  min-height: 0;
}

.demo-chat-messages::-webkit-scrollbar { width: 4px; }
.demo-chat-messages::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

.demo-chat-msg {
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  align-items: flex-start;
}

.demo-chat-msg.visible { opacity: 1; transform: translateY(0); }
.demo-chat-msg.user { flex-direction: row-reverse; }

.demo-chat-msg-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary-light), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.demo-chat-msg.user .demo-chat-msg-mini {
  background: var(--primary);
}

.demo-chat-msg-bubble {
  background: var(--neutral);
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--primary);
  max-width: 85%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.demo-chat-msg.user .demo-chat-msg-bubble {
  background: var(--primary);
  color: white;
}

.demo-chat-msg-bubble.thinking {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.demo-chat-msg-bubble.thinking::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

.demo-chat-msg-bubble.done::before {
  content: '✓';
  color: var(--secondary-dark);
  margin-right: 6px;
  font-weight: 600;
}

.demo-chat-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.demo-chat-run {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: white;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  width: 100%;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.demo-chat-run:hover:not(:disabled) {
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.demo-chat-run:disabled { opacity: 0.5; cursor: wait; transform: none; }

.demo-chat-input-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}

.demo-chat-input {
  flex: 1;
  border: none;
  background: var(--neutral);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  outline: none;
  font-family: inherit;
  color: var(--primary);
  min-width: 0;
  transition: background 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.demo-chat-input::placeholder { color: var(--text-light); }

.demo-chat-input:focus {
  background: white;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.demo-chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 1px var(--line);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
}

.demo-chat-send:hover {
  color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

/* ===== DRAFT PANEL (right) ===== */
.demo-draft {
  display: flex;
  align-items: stretch;
  min-height: 520px;
}

.demo-draft-inner {
  width: 100%;
  background: white;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--line-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.demo-draft-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 16px;
  z-index: 1;
}

.demo-draft-empty[hidden] { display: none; }

.demo-draft-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.demo-draft-empty-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin-bottom: 6px;
}

.demo-draft-empty-text {
  font-size: 13.5px;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.demo-draft-card {
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.demo-draft-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.demo-draft-card .card-actions {
  margin-top: auto;
}

.demo-draft-success {
  height: 100%;
  border-radius: 16px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  gap: 16px;
}

.demo-draft-success[hidden] { display: none; }
.demo-draft-card[hidden] { display: none; }

/* Slack-style draft view (used by Friday wrap-up scenario) */
.draft-slack-view[hidden] { display: none; }

/* ===== Invoice PDF view (used by May invoicing scenario) ===== */
.draft-invoice-view[hidden] { display: none; }

.invoice-paper {
  background: #FFFFFF;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 8px;
  padding: 28px 30px 24px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 18px 40px -18px rgba(26, 26, 26, 0.10),
    0 4px 12px -4px rgba(26, 26, 26, 0.06);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--primary);
  position: relative;
}

.invoice-paper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(125, 166, 125, 0.35), transparent);
  border-radius: 2px;
}

.invoice-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.invoice-logo {
  width: 32px;
  height: 32px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(95, 136, 95, 0.18));
}

.invoice-logo svg { display: block; width: 100%; height: 100%; }

.invoice-doc-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.invoice-meta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  margin-bottom: 18px;
  align-items: start;
}

.invoice-meta-block-right { text-align: right; }

.invoice-meta-eyebrow {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}

.invoice-bill-to-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.invoice-bill-to-email {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.invoice-meta-row {
  display: flex;
  gap: 14px;
  align-items: baseline;
  justify-content: flex-end;
  font-size: 11.5px;
  line-height: 1.7;
}

.invoice-meta-key {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  min-width: 44px;
  text-align: left;
}

.invoice-meta-val {
  font-weight: 500;
  color: var(--primary);
  font-feature-settings: 'tnum';
}

.invoice-divider {
  height: 1px;
  background: rgba(26, 26, 26, 0.08);
  margin: 14px 0;
}

.invoice-table-head {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
  padding: 4px 0 10px;
}

.invoice-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invoice-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
}

.invoice-line-desc {
  font-size: 13px;
  color: var(--primary);
  line-height: 1.45;
  font-weight: 500;
}

.invoice-line-detail {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 400;
}

.invoice-line-amount {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}

.invoice-totals {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.invoice-total-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 14px;
  align-items: baseline;
  font-size: 12px;
  color: var(--text-muted);
}

.invoice-total-label {
  text-align: right;
}

.invoice-total-amount {
  text-align: right;
  font-feature-settings: 'tnum';
  font-weight: 500;
  color: var(--primary);
}

.invoice-total-row.is-grand {
  font-size: 14px;
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.invoice-total-row.is-grand .invoice-total-label,
.invoice-total-row.is-grand .invoice-total-amount {
  color: var(--primary);
  font-weight: 600;
}

.invoice-paper-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed rgba(26, 26, 26, 0.10);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-light);
  text-align: center;
}

.invoice-stripe {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(125, 166, 125, 0.06) 0%, rgba(125, 166, 125, 0.10) 100%);
  border: 1px solid rgba(125, 166, 125, 0.22);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  text-align: left;
}

.invoice-stripe:hover {
  background: linear-gradient(180deg, rgba(125, 166, 125, 0.10) 0%, rgba(125, 166, 125, 0.16) 100%);
  border-color: rgba(125, 166, 125, 0.35);
  box-shadow: 0 1px 4px rgba(95, 136, 95, 0.10);
}

.invoice-stripe-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--secondary-dark);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(95, 136, 95, 0.25);
}

.invoice-stripe-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.invoice-stripe-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.invoice-stripe-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.invoice-stripe-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 9px 4px 8px;
  background: white;
  border-radius: 999px;
  border: 1px solid rgba(26, 26, 26, 0.06);
}

.invoice-stripe-brand-via {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 500;
}

.invoice-stripe-brand img {
  height: 14px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ===== Meeting briefing view (used by Meeting I missed scenario) ===== */
.draft-meeting-view[hidden] { display: none; }

.draft-meeting-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.meeting-session {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.meeting-session-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.meeting-session-date {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.meeting-takeaway {
  background: linear-gradient(135deg, rgba(125, 166, 125, 0.10) 0%, rgba(125, 166, 125, 0.04) 100%);
  border: 1px solid rgba(125, 166, 125, 0.22);
  border-radius: 12px;
  padding: 16px 18px;
  position: relative;
}

.meeting-takeaway::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: var(--secondary-dark);
  border-radius: 0 3px 3px 0;
}

.meeting-takeaway-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  margin-bottom: 8px;
}

.meeting-takeaway-eyebrow svg {
  flex-shrink: 0;
}

.meeting-takeaway-headline {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.meeting-takeaway-support {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.45;
}

/* Audio player */
/* Hide native audio element (we drive playback from custom button) */
#meeting-audio-source { display: none; }

.meeting-audio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px 11px 13px;
  background: linear-gradient(180deg, #FAFAF8 0%, #F5F5F2 100%);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
  text-align: left;
  width: 100%;
}

.meeting-audio:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, rgba(125, 166, 125, 0.05) 100%);
  border-color: rgba(125, 166, 125, 0.28);
  box-shadow: 0 1px 3px rgba(95, 136, 95, 0.06);
}

.meeting-audio-play {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7DA67D 0%, #5F885F 100%);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.35),
    0 2px 6px rgba(95, 136, 95, 0.30);
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
  position: relative;
}

.meeting-audio:hover .meeting-audio-play {
  transform: scale(1.06);
  box-shadow:
    inset 0 0.5px 0 rgba(255, 255, 255, 0.35),
    0 3px 10px rgba(95, 136, 95, 0.38);
}

.meeting-audio-play svg {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.meeting-audio-icon-play { margin-left: 2px; }
.meeting-audio .meeting-audio-icon-pause { display: none; }
.meeting-audio.playing .meeting-audio-icon-play { display: none; }
.meeting-audio.playing .meeting-audio-icon-pause { display: block; }

.meeting-audio-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex-shrink: 0;
}

.meeting-audio-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.005em;
}

.meeting-audio-meta {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.meeting-audio-wave {
  display: flex;
  align-items: center;
  gap: 2.5px;
  flex: 1;
  height: 28px;
  margin-left: auto;
  --progress: 28%;
}

.meeting-audio-wave span {
  flex: 1;
  background: rgba(125, 166, 125, 0.28);
  border-radius: 1px;
  min-height: 3px;
  transform-origin: center;
  transition: background 0.4s var(--ease);
}

/* Played progress: first ~28% bars get the deeper green */
.meeting-audio-wave span:nth-child(-n+9) {
  background: var(--secondary-dark);
}

/* 32 bars with natural voice-waveform envelope */
.meeting-audio-wave span:nth-child(1)  { height: 18%; }
.meeting-audio-wave span:nth-child(2)  { height: 35%; }
.meeting-audio-wave span:nth-child(3)  { height: 58%; }
.meeting-audio-wave span:nth-child(4)  { height: 78%; }
.meeting-audio-wave span:nth-child(5)  { height: 92%; }
.meeting-audio-wave span:nth-child(6)  { height: 70%; }
.meeting-audio-wave span:nth-child(7)  { height: 42%; }
.meeting-audio-wave span:nth-child(8)  { height: 28%; }
.meeting-audio-wave span:nth-child(9)  { height: 50%; }
.meeting-audio-wave span:nth-child(10) { height: 75%; }
.meeting-audio-wave span:nth-child(11) { height: 92%; }
.meeting-audio-wave span:nth-child(12) { height: 65%; }
.meeting-audio-wave span:nth-child(13) { height: 38%; }
.meeting-audio-wave span:nth-child(14) { height: 22%; }
.meeting-audio-wave span:nth-child(15) { height: 32%; }
.meeting-audio-wave span:nth-child(16) { height: 55%; }
.meeting-audio-wave span:nth-child(17) { height: 80%; }
.meeting-audio-wave span:nth-child(18) { height: 70%; }
.meeting-audio-wave span:nth-child(19) { height: 48%; }
.meeting-audio-wave span:nth-child(20) { height: 28%; }
.meeting-audio-wave span:nth-child(21) { height: 36%; }
.meeting-audio-wave span:nth-child(22) { height: 60%; }
.meeting-audio-wave span:nth-child(23) { height: 72%; }
.meeting-audio-wave span:nth-child(24) { height: 50%; }
.meeting-audio-wave span:nth-child(25) { height: 32%; }
.meeting-audio-wave span:nth-child(26) { height: 25%; }
.meeting-audio-wave span:nth-child(27) { height: 42%; }
.meeting-audio-wave span:nth-child(28) { height: 58%; }
.meeting-audio-wave span:nth-child(29) { height: 38%; }
.meeting-audio-wave span:nth-child(30) { height: 22%; }
.meeting-audio-wave span:nth-child(31) { height: 14%; }
.meeting-audio-wave span:nth-child(32) { height: 8%; }

/* When playing, played bars subtly pulse */
.meeting-audio.playing .meeting-audio-wave span:nth-child(-n+9) {
  animation: meeting-wave-pulse 1.4s ease-in-out infinite;
}

.meeting-audio.playing .meeting-audio-wave span:nth-child(1)  { animation-delay: 0.0s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(2)  { animation-delay: 0.06s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(3)  { animation-delay: 0.12s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(4)  { animation-delay: 0.18s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(5)  { animation-delay: 0.24s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(6)  { animation-delay: 0.30s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(7)  { animation-delay: 0.36s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(8)  { animation-delay: 0.42s; }
.meeting-audio.playing .meeting-audio-wave span:nth-child(9)  { animation-delay: 0.48s; }

@keyframes meeting-wave-pulse {
  0%, 100% { transform: scaleY(0.85); opacity: 0.85; }
  50%      { transform: scaleY(1);    opacity: 1; }
}

/* Detail sections */
.meeting-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.meeting-section-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
}

.meeting-section-count {
  font-weight: 500;
  color: rgba(125, 166, 125, 0.9);
  letter-spacing: 0.1em;
}

.meeting-section-count::before {
  content: '·';
  margin-right: 8px;
  color: var(--text-light);
  opacity: 0.6;
}

.meeting-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.meeting-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--primary);
  align-items: baseline;
}

/* Decisions: small green checkmark circle (these are decisions MADE) */
.meeting-list li::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M5 8.2l2 2 4-4.4' fill='none' stroke='%234A6B4A' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px 12px no-repeat,
    rgba(125, 166, 125, 0.16);
  align-self: center;
  margin-top: 2px;
}

/* Next step: light, inline, no card chrome — just an arrow + text */
.meeting-next-step {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--primary);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: baseline;
}

.meeting-next-step::before {
  content: '→';
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: 14px;
  align-self: center;
  text-align: center;
  margin-top: 1px;
}

/* Action items: clean to-do row with empty checkbox */
.meeting-actions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.meeting-actions li {
  display: grid;
  grid-template-columns: 18px auto 1fr;
  gap: 12px;
  align-items: center;
  font-size: 13.5px;
  line-height: 1.45;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.meeting-actions li:last-child { border-bottom: none; }

.meeting-actions li::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 1.5px solid rgba(125, 166, 125, 0.45);
  border-radius: 4px;
  background: white;
  margin-top: 1px;
}

.meeting-actions-who {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  background: rgba(125, 166, 125, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  align-self: center;
  white-space: nowrap;
}

.meeting-actions-what {
  color: var(--primary);
  align-self: center;
}

.meeting-actions-what {
  color: var(--primary);
}

.slack-channel-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.slack-channel-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.slack-channel-hash {
  color: var(--text-light);
  font-size: 13px;
}

.slack-channel-name {
  color: var(--primary);
  font-weight: 500;
}

.slack-msg {
  display: flex;
  gap: 12px;
  background: #1a1d21;
  border-radius: 12px;
  padding: 16px 18px 18px;
  color: #e8e8e8;
  font-size: 14px;
  line-height: 1.5;
}

.slack-msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  flex-shrink: 0;
  background: var(--secondary);
  overflow: hidden;
}

.slack-msg-content {
  flex: 1;
  min-width: 0;
}

.slack-msg-header {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.slack-msg-author {
  color: #f5f5f5;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.005em;
}

.slack-msg-app-badge {
  background: #3a3d42;
  color: #b3b3b3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}

.slack-msg-time {
  font-size: 11.5px;
  color: #8a8c91;
  font-weight: 400;
}

.slack-msg-title {
  font-size: 14.5px;
  font-weight: 600;
  color: #f5f5f5;
  margin-top: 6px;
  letter-spacing: -0.005em;
}

.slack-msg-text {
  margin-top: 6px;
  color: #d8d8d8;
  font-size: 13.5px;
  line-height: 1.55;
}

.slack-msg-divider {
  height: 1px;
  background: #2c2f34;
  margin: 14px 0 12px;
}

.slack-msg-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  font-size: 13px;
}

.slack-stat {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #d8d8d8;
  line-height: 1.45;
}

.slack-stat-emoji {
  flex-shrink: 0;
  line-height: 1.4;
}

.slack-stat-label {
  color: #f5f5f5;
  font-weight: 600;
  margin-right: 4px;
}

.slack-msg-footer {
  margin-top: 14px;
  font-size: 12px;
  color: #8a8c91;
  letter-spacing: 0.005em;
}

@media (max-width: 600px) {
  .slack-msg-stats { grid-template-columns: 1fr; }
}

.demo-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: var(--neutral);
  border-radius: 14px;
  margin-bottom: 24px;
}

.demo-prompt-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--primary);
  flex: 1;
}

.demo-prompt-text-muted {
  color: var(--text-muted);
  font-weight: 400;
  margin-left: 4px;
}

.demo-run-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}

.demo-run-btn:hover { background: var(--primary-soft); transform: translateY(-1px); }
.demo-run-btn:disabled { opacity: 0.5; cursor: wait; }

.demo-run-btn .demo-run-icon {
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-stage {
  position: relative;
  min-height: 280px;
}

.demo-progress {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.demo-progress.active { display: flex; }

.demo-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--neutral);
  border-radius: 12px;
  font-size: 13.5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.demo-step.visible { opacity: 1; transform: translateX(0); }

.demo-step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--line);
}

.demo-step.done .demo-step-icon {
  background: var(--secondary);
  color: white;
  box-shadow: none;
}

.demo-step.done { color: var(--primary); }

.demo-step-spinner {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.demo-result {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.demo-result.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.demo-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.demo-success.active { display: flex; }

.demo-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scaleIn 0.4s var(--ease);
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.demo-success-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.demo-success-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.demo-success-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 14px;
  background: var(--secondary-pale);
  border-radius: var(--radius-pill);
}

.demo-success-item-check {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--secondary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-reset {
  margin-top: 20px;
  padding: 9px 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: transparent;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 1px var(--line);
  transition: all 0.15s var(--ease);
}

.demo-reset:hover { background: white; color: var(--primary); }

/* ===== HUMAN-FIRST ===== */
.human {
  padding: 200px 24px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(255, 226, 180, 0.3) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 80% 70%, rgba(125, 166, 125, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, var(--neutral) 0%, var(--neutral-deep) 100%);
  text-align: center;
  position: relative;
}

.human-statement {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--primary);
  max-width: 920px;
  margin: 0 auto;
  font-weight: 400;
}

.human-statement em {
  font-style: italic;
  color: var(--secondary-dark);
  font-weight: 300;
}

.human-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  margin: 0 10px 14px;
  vertical-align: middle;
}

/* ===== COMPARE ===== */
.compare {
  background: var(--neutral-warm);
  padding: 140px 24px;
}

.compare-table {
  margin-top: 32px;
  background: white;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.compare-row {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  align-items: stretch;
  border-bottom: 1px solid var(--line-soft);
}

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

.compare-row.header { background: var(--neutral); }

.compare-cell {
  padding: 20px 16px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  border-right: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
}

.compare-cell:last-child {
  background: rgba(125, 166, 125, 0.07);
  border-right: none;
  color: var(--primary);
  font-weight: 500;
}

.compare-cell.label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  background: var(--neutral);
}

.compare-row.header .compare-cell {
  padding: 18px 16px;
  gap: 10px;
}

.compare-row.header .compare-cell.label { background: var(--neutral); }

.compare-col-logo {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.compare-col-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(0.6);
  opacity: 0.85;
}

.compare-col-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

.compare-col-name.brand { color: var(--secondary-dark); }

.compare-rivilo-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.compare-rivilo-mark svg { width: 12px; height: 12px; }

.compare-disclaimer {
  text-align: center;
  margin-top: 32px;
  font-size: 14.5px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.compare-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-bottom: 56px;
  flex-wrap: wrap;
  opacity: 0.55;
  filter: grayscale(1);
}

.compare-logos img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

.compare-logos img.tall { height: 28px; }

/* ===== OUTGROW / STACK EVOLUTION ===== */
.evolve {
  background: var(--neutral);
  padding: 160px 24px;
}

.evolve-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  position: relative;
}

.evolve-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 32px 32px 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.evolve-card-marker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.evolve-card-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--secondary-pale);
  color: var(--secondary-dark);
  font-family: 'Newsreader', serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.evolve-card-when {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
}

.evolve-card-title {
  font-family: 'Newsreader', serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: var(--primary);
  line-height: 1.1;
}

.evolve-card-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex: 1;
}

.evolve-card-visual {
  background: var(--neutral);
  border-radius: 12px;
  padding: 16px;
}

.evolve-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.evolve-tool-chip {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: opacity 0.4s var(--ease), filter 0.4s var(--ease);
}

.evolve-tool-chip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.evolve-tool-chip.faded {
  opacity: 0.3;
  filter: grayscale(1);
}

.evolve-tool-chip.faded::after {
  content: '';
  position: absolute;
}

.evolve-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--secondary-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.evolve-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary);
}

.evolve-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  color: var(--text-muted);
}

.evolve-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.evolve-stat-row:last-child { border-bottom: none; padding-bottom: 0; }

.evolve-stat-row strong {
  color: var(--primary);
  font-weight: 600;
}

.evolve-cost {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.evolve-cost-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin-bottom: 8px;
}

.evolve-cost-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: 'Newsreader', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.evolve-cost-before {
  font-size: 22px;
  color: var(--text-light);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.evolve-cost-arrow {
  font-size: 16px;
  color: var(--text-light);
}

.evolve-cost-after {
  font-size: 32px;
  color: var(--secondary-dark);
  font-weight: 500;
}

.evolve-cost-saving {
  margin-top: 6px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11.5px;
  color: var(--secondary-dark);
  font-weight: 500;
}

.evolve-summary {
  text-align: center;
  margin-top: 56px;
  font-family: 'Newsreader', serif;
  font-size: clamp(20px, 2.4vw, 26px);
  font-style: italic;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

.evolve-summary strong {
  font-style: normal;
  font-weight: 400;
  color: var(--primary);
}

/* ===== POWERED BY ===== */
.powered {
  padding: 80px 24px;
  background: var(--neutral);
}

.powered-strip {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 28px 36px;
  background: white;
  border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--line-soft);
}

.powered-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.powered-logos {
  display: flex;
  align-items: center;
  gap: 28px;
}

.powered-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
  filter: grayscale(0.5);
  opacity: 0.78;
}

.powered-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}

.powered-text strong {
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 700px) {
  .powered-strip { padding: 22px 24px; gap: 18px; }
  .powered-text { text-align: center; }
}

/* ===== PRICING ===== */
.pricing {
  background: var(--neutral);
  padding: 160px 24px;
  text-align: center;
}

.pricing .section-headline { margin-bottom: 16px; }

.pricing-sub {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-cta { padding: 16px 32px; font-size: 15px; }

/* ===== FAQ ===== */
.faq { background: var(--neutral-warm); padding: 140px 24px; }

.faq-list { max-width: 760px; margin: 56px auto 0; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 28px 4px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--primary);
  text-align: left;
  transition: color 0.15s var(--ease);
}

.faq-q:hover { color: var(--secondary-dark); }

.faq-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--neutral);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 24px;
  transition: transform 0.25s var(--ease), background 0.15s var(--ease);
  color: var(--primary);
}

.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background: var(--primary);
  color: white;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease), padding 0.3s var(--ease);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--text-muted);
  padding: 0 4px;
}

.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 4px 28px;
}

/* ===== FOOTER ===== */
footer {
  background: var(--neutral);
  border-top: 1px solid var(--line-soft);
  padding: 80px 24px 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand { max-width: 360px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-tagline {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-social { display: flex; gap: 8px; }

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--primary);
}

.footer-social a:hover { background: var(--primary); color: white; box-shadow: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-weight: 400;
  transition: color 0.15s var(--ease);
}

.footer-credit:hover { color: var(--primary); }

.footer-credit strong {
  font-weight: 600;
  color: var(--primary);
  position: relative;
}

.footer-credit strong::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  opacity: 0.3;
}

.footer-credit-arrow {
  width: 11px;
  height: 11px;
  opacity: 0.5;
  transition: transform 0.15s var(--ease);
}

.footer-credit:hover .footer-credit-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .hero-side-bubble { display: none; }
  .hero-character { top: 160px; right: 16px; width: 100px; }
}

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

@media (max-width: 900px) {
  .nav-pill { display: none; }
  .nav { padding: 0 20px; top: 20px; }
  .hero-inner { padding: 140px 0 40px; }
  .knows-grid { grid-template-columns: 1fr; gap: 40px; }
  .knows-text { padding-right: 0; text-align: center; }
  .knows-text .section-headline,
  .knows-text .section-sub { text-align: center; }
  .knows-bullet { text-align: left; }
  .compare-table { overflow-x: auto; }
  .compare-row { grid-template-columns: 130px repeat(5, 160px); width: max-content; min-width: 100%; }
  .compare-cell { padding: 16px 14px; font-size: 12.5px; }
  .compare-row.header .compare-cell { padding: 14px; }
  section { padding: 100px 20px; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 60px; }
  .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .footer-right { align-items: flex-start; }
  .connects-canvas { height: 800px; }
  .tool-node { width: 70px; height: 70px; }
  .tool-node-icon { width: 30px; height: 30px; }
  .tool-node-name { font-size: 10.5px; }
  .connects-canvas { height: 920px; }
  .tool-node[data-tool="slack"] { top: 10px; left: 10px; }
  .tool-node[data-tool="telegram"] { top: 150px; left: 10px; }
  .tool-node[data-tool="teams"] { top: 80px; left: 100px; }
  .tool-node[data-tool="gmail"] { top: 80px; right: 100px; }
  .tool-node[data-tool="outlook"] { top: 10px; right: 10px; }
  .tool-node[data-tool="proton"] { top: 150px; right: 10px; }
  .tool-node[data-tool="asana"] { top: 220px; left: 80px; }
  .tool-node[data-tool="toggl"] { top: 340px; left: 80px; }
  .tool-node[data-tool="clockify"] { top: 220px; right: 80px; }
  .tool-node[data-tool="fireflies"] { top: 340px; right: 80px; }
  .tool-node[data-tool="clickup"] { top: 460px; left: 0; }
  .tool-node[data-tool="google"] { top: 460px; right: 0; }
  .tool-node[data-tool="claude"] { bottom: 100px; left: 30px; }
  .tool-node[data-tool="mistral"] { bottom: 100px; right: 30px; }
  .tool-node[data-tool="notion"] { bottom: 20px; left: 30px; }
  .tool-node[data-tool="copilot"] { bottom: 20px; right: 30px; }
  .tool-node[data-tool="ollama"] { bottom: 200px; left: calc(50% - 35px); }
  .connects-center { width: 240px; }
  .demo-body { padding: 24px; }
  .demo-tabs { padding: 12px; flex-wrap: wrap; gap: 6px; }
  .demo-tab { padding: 8px 14px; font-size: 12.5px; }
  .watch-item {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }
  .watch-item-action { justify-self: start; }
  .evolve-timeline { grid-template-columns: 1fr; }
  .founder-row {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 4px 14px;
    padding: 14px 20px;
  }
  .founder-row-rail { display: none; }
  .founder-row-time { grid-row: 1; grid-column: 1; }
  .founder-row-text { grid-row: 1; grid-column: 2; }
  .founder-row-meta {
    grid-row: 2;
    grid-column: 2;
    text-align: left;
    color: var(--text-muted);
  }
  .founder-card-tag { padding: 5px 11px; }
  .founder-card-tag-num { font-size: 12px; }
  .founder-card-tag-label { font-size: 10px; }
}

@media (max-width: 560px) {
  .product-card { margin: 0 -8px; }
  .card-body { padding: 20px; }
  .card-actions { flex-direction: column; gap: 12px; align-items: stretch; }
  .card-buttons { justify-content: stretch; }
  .card-buttons .btn-sm { flex: 1; justify-content: center; }
  .demo-prompt { flex-direction: column; gap: 14px; align-items: stretch; }
  .demo-run-btn { justify-content: center; }
}
