@import url(https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Vollkorn:wght@600;700&display=swap);


/* ─── Keyframes ─────────────────────────────────────────────────────────── */

/* Icon floats in from above, slightly scaled up — hangs above the drop zone */
@keyframes suzyDragFloat {
  0%   { transform: translateY(-28px) scale(1.22); opacity: 0; }
  18%  { opacity: 1; }
  100% { transform: translateY(-20px) scale(1.18); opacity: 1; }
}

/* Icon drops from float position into slot */
@keyframes suzyDragDrop {
  0%   { transform: translateY(-20px) scale(1.18); opacity: 1; }
  60%  { transform: translateY(2px) scale(0.96); }
  80%  { transform: translateY(-3px) scale(1.02); }
  100% { transform: translateY(0px) scale(1); opacity: 0; }
}

/* Static icon spring-settles in after drop */
@keyframes suzyDropLand {
  0%   { transform: scale(0.88); opacity: 0; }
  55%  { transform: scale(1.07); opacity: 1; }
  78%  { transform: scale(0.97); }
  100% { transform: scale(1);    opacity: 1; }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

/* ─── Animation Utility Classes ─────────────────────────────────────────── */

.suzy-anim-step {
  opacity: 0;
  animation: stepEnter 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.suzy-anim-slide-right {
  opacity: 0;
  animation: slideInRight 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.suzy-anim-scale {
  opacity: 0;
  animation: scaleIn 260ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ─── Root Container ─────────────────────────────────────────────────────── */

.suzy-demo-root {
  background: #e5d8ee;
  border-radius: 28px;
  width: 1080px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: "DM Sans", sans-serif;
  position: relative;
  user-select: none;
  margin: 0 auto;
  box-shadow: 0 24px 64px rgba(39, 29, 59, 0.18), 0 6px 20px rgba(39, 29, 59, 0.1);
}

/* ─── Tab Bar ────────────────────────────────────────────────────────────── */

.suzy-tab-bar {
  background: rgba(167, 125, 197, 0.4);
  border-radius: 28px 28px 0 0;
  display: flex;
  overflow: hidden;
  height: 55px;
  flex-shrink: 0;
}

.suzy-tab {
  flex: 1;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(39, 29, 59, 0.4);
  letter-spacing: 0.1px;
  cursor: pointer;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: color 220ms ease;
}

.suzy-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 40px;
  height: 3px;
  background: #271d3b;
  border-radius: 3px 3px 0 0;
  transform: translateX(-50%) scaleX(0);
  transition: transform 300ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.suzy-tab:hover {
  color: rgba(39, 29, 59, 0.65);
}

.suzy-tab-active {
  color: #271d3b;
  font-weight: 600;
  background: rgba(39, 29, 59, 0.07);
}

.suzy-tab-active::after {
  transform: translateX(-50%) scaleX(1);
}

/* ─── Panel ──────────────────────────────────────────────────────────────── */

.suzy-panel {
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.suzy-container {
  background: #e5d8ee;
  padding: 28px 0;
  flex: 1;
  border-radius: 0 0 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.suzy-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 20px;
  width: 920px;
}

/* ─── Headline ───────────────────────────────────────────────────────────── */

.suzy-headline-area {
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suzy-headline {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 32px;
  color: #271d3b;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.3px;
  text-align: center;
}
.sz-sentence { display: inline; }


.suzy-subheadline {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #271d3b;
  margin: 0 auto;
  line-height: 1.3;
  text-align: center;
  max-width: 600px;
}

/* ─── Tab Content Area ───────────────────────────────────────────────────── */

.suzy-tab-content {
  flex: 1;
}

/* ─── Card Base ──────────────────────────────────────────────────────────── */

.suzy-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 15px 30px 0px rgba(167, 125, 197, 0.25);
  overflow: hidden;
}

.suzy-card-inner {
  padding: 20px;
}

/* ─── Shared Elements ────────────────────────────────────────────────────── */

.suzy-tag {
  display: inline-block;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #b185ce;
  background: rgba(177, 133, 206, 0.12);
  border-radius: 100px;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.suzy-card-h3 {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 17px;
  color: #271d3b;
  margin: 0 0 8px;
  line-height: 1.3;
}

.suzy-card-h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #271d3b;
  margin: 0 0 8px;
  line-height: 1.3;
}

.suzy-body-text {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #4e5258;
  line-height: 1.55;
  margin: 0 0 12px;
}

.suzy-read-more {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #b185ce;
  text-decoration: none;
  font-weight: 600;
}

.suzy-img-placeholder {
  width: 100%;
  border-radius: 0;
}

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

.suzy-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  background: #271d3b;
  color: #f7f4fd;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 100px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(39, 29, 59, 0.18), 0 1px 2px rgba(39, 29, 59, 0.12);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.22s ease;
}

.suzy-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(39, 29, 59, 0.22), 0 2px 6px rgba(39, 29, 59, 0.14);
  opacity: 0.92;
}

.suzy-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(39, 29, 59, 0.18), 0 1px 2px rgba(39, 29, 59, 0.12);
  transition-duration: 0.08s;
}

.suzy-cta-area {
  padding: 4px 0 0;
  display: flex;
  justify-content: center;
}

.suzy-cta-learn-more {
  /* inherits .suzy-cta-btn */
}

/* ─── Progress Bar ───────────────────────────────────────────────────────── */

.suzy-progress-track {
  height: 3px;
  background: rgba(177, 133, 206, 0.25);
  width: 100%;
  position: relative;
}

.suzy-progress-fill {
  height: 3px;
  background: #b185ce;
  width: 0%;
  border-radius: 0 2px 2px 0;
  animation: progressFill linear both;
}

/* ─── Tab 0: Intelligence ────────────────────────────────────────────────── */

.suzy-intel-layout {
  display: flex;
  gap: 20px;
  height: 356px;
}

.suzy-intel-left-col {
  flex: 0 0 450px;
}

.suzy-intel-right-col {
  flex: 0 0 450px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Dark card base for Intelligence */
.suzy-intel-card {
  background: #271d3b;
  border-radius: 20px;
  box-shadow: 0px 15px 30px rgba(167, 125, 197, 0.25);
  overflow: hidden;
}

/* Main (left) card — 447×356px, horizontal layout */
.suzy-intel-main-card {
  height: 100%;
}

.suzy-intel-main-card-inner {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

.suzy-intel-main-card-text {
  width: 199px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suzy-intel-main-card-img {
  flex: 0 0 198px;
  border-radius: 8px;
  overflow: hidden;
  background-repeat: no-repeat;
}

/* Small (right) cards — 453×173px each, horizontal layout */
.suzy-intel-small-card {
  flex: 1;
}

.suzy-intel-card-horiz {
  display: flex;
  flex-direction: row;
  height: 100%;
  overflow: hidden;
}

.suzy-intel-card-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.suzy-intel-card-img {
  width: 190px;
  flex-shrink: 0;
  overflow: hidden;
  background-repeat: no-repeat;
}

/* Dark tag variant — play icon + label, no pill */
.suzy-tag-dark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(215, 196, 231, 1);
}

/* Dark heading variants */
.suzy-card-h3-dark {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.24px;
}

.suzy-card-h4-dark {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 20px;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

/* Dark read-more link */
.suzy-read-more-dark {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(215, 196, 231, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: default;
}

@keyframes readMoreClick {
  0%   { transform: scale(1);    opacity: 1; }
  15%  { transform: scale(0.95); opacity: 0.7; }
  50%  { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1);    opacity: 1; }
}

.suzy-read-more-clicking {
  animation: readMoreClick 500ms cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Expanded card (steps 1-3) */
.suzy-intel-expanded-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  background: #ffffff;
}

.suzy-intel-expanded-scroll {
  flex-shrink: 0;
}

/* Full-width image at top of expanded card */
.suzy-intel-expanded-img {
  width: 100%;
  height: 200px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  flex-shrink: 0;
  background-repeat: no-repeat;
}

/* Content padding area */
.suzy-intel-expanded-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Tag row on white card */
.suzy-intel-expanded-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #271d3b;
  margin-bottom: 12px;
}

/* .suzy-intel-expanded-tag-icon replaced by inline SVG PlayIcon */

/* Title on white card */
.suzy-intel-expanded-title {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  color: #271d3b;
  letter-spacing: -0.24px;
  line-height: 1.3;
  margin: 0 0 12px;
}

/* Body text */
.suzy-intel-expanded-body {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #4e5258;
  line-height: 1.5;
  margin: 0 0 16px;
}

.suzy-intel-expanded-subhead {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  color: #271d3b;
  margin: 0 0 8px;
  line-height: 1.4;
}

.suzy-intel-strategic {
  background: #e5d8ee;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

@keyframes strategicPop {
  0%   { background: #e5d8ee; box-shadow: 0 4px 0px rgba(167, 125, 197, 0); }
  45%  { background: #cdb1e2; box-shadow: 0 4px 24px rgba(167, 125, 197, 0.35); }
  100% { background: #e5d8ee; box-shadow: 0 4px 0px rgba(167, 125, 197, 0); }
}

.suzy-intel-strategic-emphasis {
  animation: strategicPop 1600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes likePop {
  0%   { transform: scale(1) translateY(0);      box-shadow: 0 0 0px rgba(167, 125, 197, 0);    animation-timing-function: cubic-bezier(0.34, 1.3, 0.64, 1); }
  28%  { transform: scale(1.18) translateY(-1px); box-shadow: 0 0 14px rgba(167, 125, 197, 0.5); animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94); }
  62%  { transform: scale(0.96) translateY(0);   box-shadow: 0 0 5px rgba(167, 125, 197, 0.18); }
  100% { transform: scale(1) translateY(0);      box-shadow: 0 0 0px rgba(167, 125, 197, 0); }
}
.suzy-intel-icon-btn-liked {
  animation: likePop 520ms linear forwards;
  background: rgba(167, 125, 197, 0.12) !important;
  border-color: rgba(167, 125, 197, 0.35) !important;
}
.suzy-intel-icon-btn-liked svg path {
  stroke: #a77dc5;
}
.suzy-intel-icon-btn-liked svg path:first-child {
  fill: rgba(167, 125, 197, 0.2);
}

.suzy-intel-strategic-label {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 16px;
  color: #271d3b;
  margin-bottom: 4px;
}

.suzy-intel-strategic-text {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #4e5258;
  line-height: 1.5;
  margin: 0;
}

/* Bottom action bar */
.suzy-intel-sources-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suzy-intel-action-btns {
  display: flex;
  align-items: center;
  gap: 16px;
}

.suzy-intel-icon-btn {
  background: transparent;
  border: 1.5px solid transparent;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  line-height: 0;
  transition: background 220ms ease, border-color 220ms ease;
}
.suzy-intel-icon-btn svg path {
  transition: stroke 250ms ease, fill 250ms ease;
}

.suzy-intel-icon-btn:hover {
  background: #f0eaf6;
}

.suzy-intel-sources-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.suzy-intel-source-avatars {
  display: flex;
  align-items: center;
}

.suzy-intel-source-avatar {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid white;
  margin-right: -5px;
  flex-shrink: 0;
}

.suzy-intel-sources {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #a77dc5;
  font-weight: 400;
  margin-left: 8px;
}

/* Scrollbar */
.suzy-intel-scrollbar-track {
  position: absolute;
  right: 6px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: rgba(167, 125, 197, 0.15);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease;
}

.suzy-intel-expanded-card:hover .suzy-intel-scrollbar-track {
  opacity: 1;
}

.suzy-intel-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  background: rgba(167, 125, 197, 0.5);
  border-radius: 4px;
  cursor: grab;
  transition: background 150ms ease;
}

.suzy-intel-scrollbar-thumb:hover {
  background: #a77dc5;
}

.suzy-intel-scrollbar-thumb:active {
  cursor: grabbing;
  background: #a77dc5;
}

/* Chat input bar */
.suzy-intel-chat-bar {
  border: 1px solid #b185ce;
  border-radius: 0 0 20px 20px;
  background: white;
  padding: 16px;
  flex-shrink: 0;
}

.suzy-intel-chat-placeholder {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: #757a83;
  margin: 0 0 12px;
}

.suzy-intel-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.suzy-intel-chat-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4E8DF5;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: white;
}

.suzy-intel-chat-cta {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  background: #271d3b;
  color: white;
  border-radius: 100px;
  padding: 6px 16px;
  white-space: nowrap;
}

/* ─── Tab 1: Insight ─────────────────────────────────────────────────────── */

.suzy-insight-layout {
  display: flex;
  gap: 20px;
  height: 356px;
}

.suzy-insight-left-col {
  flex: 0 0 450px;
}

.suzy-insight-left-card {
  height: 100%;
}

.suzy-insight-right-col {
  flex: 0 0 450px;
}

.suzy-insight-right-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.suzy-insight-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 20px;
  gap: 12px;
}

.suzy-insight-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suzy-insight-pill-wrap {
  margin-bottom: 4px;
}

.suzy-insight-pill {
  display: inline-flex;
  align-items: center;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(39, 29, 59, 0.55);
  background: rgba(39, 29, 59, 0.06);
  border-radius: 100px;
  padding: 4px 12px;
  height: 25px;
  box-sizing: border-box;
  line-height: 1;
}

.suzy-insight-project-title {
  font-family: "Vollkorn", Georgia, serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.24px;
  color: #271d3b;
  margin: 0;
  line-height: 1.3;
}

.suzy-insight-project-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: rgba(39, 29, 59, 0.65);
  margin: 0;
  line-height: 1.4;
}

.suzy-insight-rows {
  display: flex;
  flex-direction: column;
}

.suzy-insight-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(167, 125, 197, 0.2);
}

.suzy-insight-row-last {
  border-bottom: none;
}

.suzy-insight-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suzy-insight-row-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.suzy-insight-row-icon {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #f0f0f0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.suzy-insight-row-label {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #271d3b;
  white-space: nowrap;
  line-height: 1;
}

.suzy-insight-row-count {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: #757a83;
  white-space: nowrap;
}

.suzy-badge {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1;
  height: 28px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

.suzy-badge-green {
  background: #d1fadf;
  color: #21c277;
}

.suzy-badge-ready {
  background: rgba(167, 125, 197, 0.2);
  color: #a77dc5;
}

/* File icons area */
.suzy-insight-files-area {
  flex: 1;
  background: #f6f6f6;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 16px;
  min-height: 0;
  position: relative;
  transition: background 220ms ease, box-shadow 220ms ease;
}

.suzy-insight-file-icons-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.suzy-insight-file-uploaded {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Drag-and-drop animation */

/* Overlay: centered above the drop zone */
.suzy-drag-center-overlay {
  position: absolute;
  left: calc(50% - 20px);
  top: calc(50% - 20px);
  pointer-events: none;
  z-index: 10;
}

/* Floating state — icon hangs above, scaled up */
.suzy-drag-float-anim {
  animation: suzyDragFloat 0.35s cubic-bezier(0, 0, 0.2, 1) both;
  transform-origin: center center;
}

/* Drop state — icon falls into slot and fades as static replaces it */
.suzy-drag-drop-anim {
  animation: suzyDragDrop 0.32s cubic-bezier(0.4, 0, 1, 1) forwards;
  transform-origin: center center;
}

/* Drop zone hover highlight */
.suzy-insight-files-area.suzy-drag-active {
  overflow: visible;
}
.suzy-insight-files-area.suzy-drag-hover {
  background: rgba(167, 125, 197, 0.12);
  box-shadow: inset 0 0 0 1.5px rgba(167, 125, 197, 0.45);
}

/* Soft spring settle on drop */
.suzy-drop-land {
  display: flex;
  align-items: center;
  animation: suzyDropLand 0.38s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transform-origin: center center;
}

/* Right panel inner structure */
.suzy-insight-content-area {
  flex: 1;
  overflow: hidden;
  padding: 20px 20px 0;
}

/* Ensures the last element in the scroll content has breathing room
   at the bottom and the full content is reachable */
.suzy-insight-content-area > div {
  padding-bottom: 24px;
}

/* Scrollbar — matches Intelligence tab style */
.suzy-insight-scrollbar-track {
  position: absolute;
  right: 6px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background: rgba(167, 125, 197, 0.15);
  border-radius: 4px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 200ms ease;
}
.suzy-insight-right-card:hover .suzy-insight-scrollbar-track {
  opacity: 1;
}
.suzy-insight-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: rgba(167, 125, 197, 0.35);
  cursor: grab;
  transition: background 150ms ease;
}
.suzy-insight-scrollbar-thumb:hover,
.suzy-insight-scrollbar-thumb:active {
  background: #a77dc5;
  cursor: grabbing;
}

/* User question + thinking state */
.suzy-insight-user-msg {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.suzy-insight-user-question {
  font-size: 15px;
  font-family: "DM Sans", sans-serif;
  color: #271d3b;
  line-height: 1.55;
  margin: 0;
}
.suzy-insight-thinking {
  display: flex;
  align-items: center;
  gap: 8px;
}
.suzy-insight-thinking span {
  font-size: 14px;
  font-family: "DM Sans", sans-serif;
  color: #757a83;
}

/* Typewriter cursor */
@keyframes suzy-cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.suzy-typewriter-cursor {
  animation: suzy-cursor-blink 900ms ease-in-out infinite;
  color: #9ca3af;
  font-weight: 200;
  margin-left: 1px;
}

/* Chat text wrapper — grid trick for buttery height reveal */
.suzy-insight-chat-text-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 280ms ease;
  opacity: 0;
  will-change: grid-template-rows, opacity;
}
.suzy-insight-chat-text-wrap > p {
  overflow: hidden;
  min-height: 0;
}
.suzy-insight-chat-text-wrap.chat-text-visible {
  grid-template-rows: 1fr;
  opacity: 1;
}

/* Persistent chat input bar */
.suzy-insight-chat-bar {
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: 20px;
  padding: 10px 16px;
  margin: 0 20px 20px;
  flex-shrink: 0;
  background: white;
  box-shadow: 0px 15px 30px 0px rgba(167, 125, 197, 0.25);
  position: relative;
  transition: padding 420ms cubic-bezier(0.34, 1.1, 0.64, 1);
}
.suzy-insight-chat-bar.chat-bar-expanded {
  padding: 14px 16px 10px;
}
.suzy-insight-chat-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #d4b5f0 0%, #b185ce 35%, #f4b030 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.suzy-insight-chat-text {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: #757a83;
  margin: 0;
  line-height: 23px;
  padding-left: 8px;
  padding-top: 4px;
}

.suzy-insight-chat-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 29px;
  padding: 0 8px;
}

.suzy-insight-chat-plus {
  background: none;
  border: none;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.suzy-insight-chat-send {
  background: none;
  border: none;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

/* AI intro text */
.suzy-insight-ai-intro {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #4e5258;
  line-height: 1.5;
  margin: 0 0 8px;
}

/* Bullet list */
.suzy-insight-bullets {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suzy-insight-bullets li {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #4e5258;
  line-height: 1.5;
}

.suzy-insight-bullets li strong {
  font-weight: 700;
  color: #271d3b;
}

.suzy-insight-bullets li::marker {
  color: #b185ce;
}

/* Packaging recs */
.suzy-insight-recs-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suzy-insight-recs-intro {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #4e5258;
  line-height: 1.5;
  margin: 0;
}

.suzy-insight-recs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suzy-insight-rec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}


.suzy-insight-rec-name {
  font-family: "Vollkorn", serif;
  font-size: 16px;
  font-weight: 700;
  color: #271d3b;
  line-height: 1.4;
  letter-spacing: -0.043px;
  margin: 0;
}

.suzy-insight-rec-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: #4e5258;
  line-height: 1.5;
  margin: 0;
}

/* ─── Tab 2: Impact ──────────────────────────────────────────────────────── */

.suzy-impact-layout {
  display: flex;
  gap: 20px;
  height: 356px;
}

/* Both cards are dark */
.suzy-impact-left-card,
.suzy-impact-right-card {
  background: #271d3b;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

/* Card header — "Story Details" */
.suzy-impact-card-header {
  padding: 20px 20px 0;
}

/* Section labels — white 14px medium */
.suzy-impact-section-label {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #f7f4fd;
}

/* Copy section — bordered bottom */
.suzy-impact-copy-section {
  border-bottom: 1px solid rgba(167, 125, 197, 0.25);
  padding: 8px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suzy-impact-field-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Small muted labels e.g. "Story Title" */
.suzy-impact-field-label {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #d7c4e7;
  line-height: 1.4;
}

/* Field value — white 16px */
.suzy-impact-field-value {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  line-height: 1.3;
}

/* Override h3 margin in this context */
.suzy-impact-copy-section .suzy-card-h3-dark {
  margin: 0;
  font-size: 24px;
}

/* Brand style section — fills remaining height */
.suzy-impact-brand-section {
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

/* Brand logo + text row */
.suzy-impact-brand-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
  height: 50px;
}

.suzy-impact-brand-logo {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  flex-shrink: 0;
  object-fit: contain;
}

.suzy-impact-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 4px 0;
  overflow: hidden;
  flex: 1;
}

.suzy-impact-brand-name {
  font-family: 'Vollkorn', Georgia, serif;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  white-space: nowrap;
}

.suzy-impact-brand-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: rgba(215, 196, 231, 0.75);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Color swatches */
.suzy-impact-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
}

.suzy-impact-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Right card inner layout */
.suzy-impact-right-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  flex: 1;
  min-height: 0;
}

/* Sources file area — dark inset box */
.suzy-impact-sources-area {
  background: #342749;
  border: 1px solid rgba(167, 125, 197, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 60px;
  position: relative;
  transition: background 200ms, border-color 200ms;
}
.suzy-impact-sources-area.suzy-drag-active { overflow: visible; }
.suzy-impact-sources-area.suzy-drag-hover {
  background: rgba(167, 125, 197, 0.12);
  border-color: rgba(167, 125, 197, 0.45);
}

.suzy-impact-source-icons {
  display: flex;
  align-items: center;
  flex: 1;
}

/* Deliverable tiles */
.suzy-impact-tiles {
  display: flex;
  gap: 8px;
}

.suzy-impact-tile {
  flex: 1;
  background: rgba(167, 125, 197, 0.1);
  border: 1px solid rgba(167, 125, 197, 0.2);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
  height: 75px;
  transition: background 200ms ease, border-color 200ms ease;
}

.suzy-impact-tile-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
}

.suzy-impact-tile-label {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #f7f4fd;
  letter-spacing: 0.12px;
}

/* Generate Story button */
.suzy-impact-generate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #342749;
  border-radius: 1000px;
  padding: 7px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #ffffff;
  border: 1px solid rgba(167, 125, 197, 0.2);
  cursor: pointer;
  align-self: flex-start;
  white-space: nowrap;
  transition: background 200ms ease, border-color 200ms ease;
}

/* Tile selected state */
@keyframes suzyTileClick {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}
.suzy-impact-tile.suzy-tile-selected {
  border-color: rgba(167, 125, 197, 0.75);
  background: rgba(167, 125, 197, 0.22);
  animation: suzyTileClick 0.22s cubic-bezier(0.4, 0, 1, 1) both;
}

/* Generate Story button active state */
@keyframes suzyBtnPress {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.93); }
  100% { transform: scale(1); }
}
.suzy-impact-generate-btn.suzy-btn-active {
  animation: suzyBtnPress 0.22s cubic-bezier(0.4, 0, 1, 1) both;
  background: rgba(167, 125, 197, 0.22);
  border-color: rgba(167, 125, 197, 0.75);
}

/* ── Generating state ───────────────────────────────────────────────────── */

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

@keyframes impactProgressFill {
  0%   { width: 0%; }
  60%  { width: 72%; }
  85%  { width: 88%; }
  100% { width: 95%; }
}

.suzy-impact-generating {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.suzy-impact-gen-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Pulsing dot — indicates active work */
.suzy-impact-gen-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a77dc5;
  flex-shrink: 0;
  animation: impactGenPulse 1.2s ease-in-out infinite;
}

/* Progress bar track */
.suzy-impact-gen-progress {
  height: 3px;
  background: rgba(167, 125, 197, 0.15);
  border-radius: 100px;
  overflow: hidden;
}

.suzy-impact-gen-progress-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #a77dc5 0%, #d4a0e8 50%, #f4b030 100%);
  animation: impactProgressFill 4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Large main slide skeleton */
.suzy-impact-gen-main {
  flex: 1;
  border-radius: 8px;
  background: linear-gradient(90deg, #2d1f45 0%, #3d2f56 30%, #342749 60%, #2d1f45 100%);
  background-size: 600px 100%;
  animation:
    stepEnter 300ms ease both,
    shimmer 2s ease-in-out infinite;
}

/* Row of smaller strip skeletons below */
.suzy-impact-gen-strips {
  display: flex;
  gap: 8px;
  height: 48px;
}

.suzy-impact-gen-strip {
  flex: 1;
  border-radius: 6px;
  background: linear-gradient(90deg, #2d1f45 0%, #3d2f56 30%, #342749 60%, #2d1f45 100%);
  background-size: 400px 100%;
  animation:
    stepEnter 300ms ease both,
    shimmer 2s ease-in-out infinite;
}

/* Stagger the shimmer phase across strips */
.suzy-impact-gen-strip:nth-child(2) { animation-delay: 0s, 0.3s; }

/* Generated deck view */
.suzy-impact-deck-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.suzy-impact-deck-scroll {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(167, 125, 197, 0.4) transparent;
}
.suzy-impact-deck-scroll::-webkit-scrollbar {
  width: 4px;
}
.suzy-impact-deck-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.suzy-impact-deck-scroll::-webkit-scrollbar-thumb {
  background: rgba(167, 125, 197, 0.4);
  border-radius: 100px;
}
.suzy-impact-deck-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(167, 125, 197, 0.7);
}

/* Two-up row */
.suzy-impact-deck-row {
  display: flex;
  gap: 8px;
}

.suzy-impact-deck-row .suzy-impact-deck-slide {
  flex: 1;
  min-width: 0;
}

.suzy-impact-deck-slide {
  width: 100%;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
}

.suzy-impact-deck-slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 5px;
}


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

@media (max-width: 768px) {

  /* ── Shell ──────────────────────────────────────────────────────────────── */

  .suzy-demo-root {
    width: 100%;
    border-radius: 20px;
  }

  .suzy-container {
    padding: 16px 0;
    gap: 14px;
  }

  .suzy-content {
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
    gap: 12px;
  }

  .suzy-tab-bar {
    border-radius: 20px 20px 0 0;
    height: 44px;
  }

  .suzy-tab { font-size: 13px; }

  .suzy-headline   { font-size: 20px; }
  .suzy-subheadline { display: none; }
  .sz-sentence     { display: block; }

  /* ── Consistent card sizing across all three tabs ───────────────────────── */
  /*
     Top card    — 200px tall, full width  (left col on desktop)
     Bottom card — 280px tall, full width  (right col on desktop)
     All three tabs share these exact dimensions.
  */

  /* All three layouts: stack top → bottom */
  .suzy-intel-layout,
  .suzy-insight-layout,
  .suzy-impact-layout {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  /* All left/right cols: full width, no flex-shrink */
  .suzy-intel-left-col,  .suzy-intel-right-col,
  .suzy-insight-left-col, .suzy-insight-right-col,
  .suzy-impact-left-card, .suzy-impact-right-card {
    flex: none;
    width: 100%;
  }

  /* ── All cards: same 360px height, full width ──────────────────────────── */

  /* Intelligence — top card: image on top, text below */
  .suzy-intel-main-card          { height: 360px; }
  .suzy-intel-main-card-inner    { flex-direction: column; gap: 0; padding: 0; }
  .suzy-intel-main-card-img      { flex: none; width: 100%; height: 180px; order: -1; border-radius: 20px 20px 0 0; background-size: cover !important; background-position: center 40% !important; }
  .suzy-intel-main-card-text     { width: 100%; padding: 16px; box-sizing: border-box; }
  .suzy-intel-expanded-card      { height: 360px; }
  .suzy-intel-expanded-img       { height: 160px; background-size: cover !important; background-position: center center !important; }

  /* Intelligence — bottom card */
  .suzy-intel-right-col          { height: 360px; gap: 10px; }
  .suzy-intel-small-card         { flex: 1; }
  .suzy-intel-card-img           { width: 110px; background-size: cover !important; background-position: center center !important; }
  .suzy-intel-right-col .suzy-intel-small-card:first-child .suzy-intel-card-img { background-position: 20% center !important; }
  .suzy-intel-right-col .suzy-intel-small-card:last-child  .suzy-intel-card-img { background-position: 75% center !important; }

  /* Insight — top card */
  .suzy-insight-left-card        { height: 360px; }
  .suzy-insight-card-inner       { height: 100%; }

  /* Insight — bottom card */
  .suzy-insight-right-card       { height: 360px; }
  .suzy-insight-content-area     { overflow: hidden; padding: 14px 14px 0; }
  .suzy-insight-chat-bar         { margin: 0 10px 10px; }

  /* Impact — top card */
  .suzy-impact-left-card         { height: 360px; }

  /* Impact — bottom card */
  .suzy-impact-right-card        { height: 360px; }
  .suzy-impact-right-inner       { height: 100%; box-sizing: border-box; }
  .suzy-impact-deck-scroll       { flex: 1; max-height: none; }
}

/* ─── Reduced Motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .suzy-anim-step,
  .suzy-anim-slide-right,
  .suzy-anim-scale-in {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .suzy-drag-icon-floating,
  .suzy-drag-icon-dropping,
  .suzy-drop-land-icon {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .suzy-progress-bar-fill,
  .suzy-impact-gen-pulse,
  .suzy-impact-progress-fill {
    animation: none;
  }

  .suzy-cursor-blink {
    animation: none;
    opacity: 1;
  }
}

