/* ==========================================================
   DEALCRAFT - INTERACTIVE PRODUCT WALKTHROUGH
   Standalone page, embedded in Squarespace as an iframe
   Design canvas: 960 x 540 (16:9)
   ========================================================== */


/* 1. DESIGN VARIABLES
   ========================================================== */

:root {
  --green: #1da52e;
  --mint: #f3fcf6;
  --line: #cfe5d5;
  --ink: #101820;
  --muted: #74808b;

  /* Marketing site font and accent green */
  --brand-font: 'Plus Jakarta Sans', Arial, Helvetica, sans-serif;
  --brand-green: #01ad1e;

  /* Lighter accent so it reads on the dark intro background */
  --intro-accent: #6fe07f;
}


/* 2. BASE STYLES
   ========================================================== */

/* The page is only the demo (shown in an iframe), so no
   browser margin and no horizontal scrolling. */

html,
body {
  margin: 0;
  padding: 0;

  background: #fff;

  overflow-x: hidden;
}

#viewport,
#viewport * {
  box-sizing: border-box;
}

#viewport {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
}

#viewport button,
#viewport input,
#viewport select,
#viewport textarea {
  font-family: inherit;
}

#viewport button {
  cursor: pointer;
}


/* 3. RESPONSIVE VIEWPORT AND STAGE
   ========================================================== */

/*
   The JavaScript scales the original 960 x 540 canvas
   to match the available width.

   The viewport maintains a 16:9 aspect ratio.
*/

#viewport {
  position: relative;
  display: block;

  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;

  min-height: 0;

  margin: 0;
  padding: 0;

  overflow: hidden;

  background: #fff;
}

#stage {
  position: absolute;

  top: 0;
  left: 0;

  width: 960px;
  height: 540px;

  transform-origin: top left;

  overflow: hidden;

  background: #fff;
}


/* 4. SLIDE TRANSITIONS
   ========================================================== */

.slide {
  position: absolute;
  inset: 0;

  opacity: 0;
  visibility: hidden;

  transform: translateX(34px);

  transition:
    opacity 0.42s ease,
    transform 0.42s ease,
    visibility 0.42s;
}

.slide.active {
  opacity: 1;
  visibility: visible;

  transform: translateX(0);
}

.slide.out-left {
  transform: translateX(-34px);
}


/* 5. INTRODUCTION SLIDE
   ========================================================== */

.intro {
  display: flex;

  align-items: center;
  justify-content: center;

  background:
    linear-gradient(
      120deg,
      rgba(4, 39, 22, 0.86),
      rgba(8, 93, 40, 0.7)
    ),
    linear-gradient(
      145deg,
      #123f30,
      #47845e
    );

  color: #fff;
}

.intro::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image: var(--hero-image, none);
  background-position: center;
  background-size: cover;

  opacity: 0.36;

  filter: blur(7px);

  transform: scale(1.06);
}

/* Typography matches the marketing site (Plus Jakarta Sans) */

.intro-content {
  position: relative;

  text-align: center;

  max-width: 780px;

  font-family: var(--brand-font);
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 700;

  color: #a9f3b5;

  margin-bottom: 22px;
}

.intro h1 {
  font-size: 66px;
  line-height: 1.1;
  letter-spacing: -0.02em;

  margin: 0 0 24px;

  font-weight: 700;
}

.intro h1 .line {
  display: block;
}

.intro h1 .accent {
  color: var(--intro-accent);
}

.intro p {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;

  color: #e1f7e7;

  margin: 0;
}


/* 5b. CLOSING SLIDE
   Logo in place of the eyebrow, and the website's heading
   green (hsl(130, 99%, 34%) = #01AD1E) for the accent line.
   ========================================================== */

.closing-logo {
  display: block;

  height: 36px;
  margin: 0 auto 26px;
}

.closing h1 .accent {
  color: var(--brand-green);
}


/* 5c. INTRO PLAY BUTTON
   The big button under the intro strapline. It starts the
   demo, and fades out while the demo is running.
   ========================================================== */

.intro-play {
  display: grid;
  place-items: center;

  width: 84px;
  height: 84px;
  margin: 10px auto 0;

  border: 0;
  border-radius: 50%;

  background: var(--brand-green);
  color: #fff;

  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);

  cursor: pointer;

  transition: transform 0.2s ease, background 0.2s ease, opacity 0.3s ease;
}

.intro-play:hover {
  transform: scale(1.07);

  background: #02c423;
}

.intro-play .ico {
  width: 46px;
  height: 46px;

  /* A triangle looks centred when nudged right */
  margin-left: 5px;
}

#stage.playing .intro-play {
  opacity: 0;

  pointer-events: none;
}


/* 5d. CLOSING BUTTONS
   Book a demo and Play again. The slideshow controls are
   hidden on the closing slide (.nav.on-closing).
   ========================================================== */

.closing-actions {
  display: flex;
  justify-content: center;

  gap: 14px;

  margin-top: 34px;
}

#viewport .closing-btn {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  height: 48px;
  padding: 0 26px;

  border: 0;
  border-radius: 30px;

  background: #fff;
  color: #0b3a22;

  font-family: var(--brand-font);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;

  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);

  cursor: pointer;

  transition: transform 0.2s ease, background 0.2s ease;
}

#viewport .closing-btn:hover {
  transform: translateY(-2px);
}

#viewport .closing-btn.primary {
  background: var(--brand-green);
  color: #fff;
}

#viewport .closing-btn.primary:hover {
  background: #02c423;
}

.closing-btn .ico {
  width: 20px;
  height: 20px;
}

.nav.on-closing {
  display: none;
}


/* 6. TEXT ANIMATIONS
   ==========================================================

   Add to any element inside a slide. It plays each time
   the slide becomes active.

     class="anim fade"    fade in
     class="anim rise"    fade in, moving up
     class="anim drop"    fade in, moving down
     class="anim left"    fade in from the right, moving left
     class="anim right"   fade in from the left, moving right
     class="anim zoom"    fade in, growing slightly
     class="anim words"   each word rises in turn
                          (script.js splits the words into spans)

   Optional custom properties (set via style="..."):
     --delay      wait before starting     (default 0s)
     --duration   length of the animation  (default 0.7s)
     --stagger    gap between words        (default 0.06s)
*/

.anim {
  --anim-name: fade;
  --delay: 0s;
  --duration: 0.7s;
  --stagger: 0.06s;
}

/* Hidden until the slide is active, so it doesn't flash */
.slide .anim:not(.words),
.slide .anim.words .word {
  opacity: 0;
}

.slide.active .anim:not(.words) {
  animation: var(--anim-name) var(--duration) ease-out var(--delay) both;
}

.anim.rise  { --anim-name: rise; }
.anim.drop  { --anim-name: drop; }
.anim.left  { --anim-name: from-right; }
.anim.right { --anim-name: from-left; }
.anim.zoom  { --anim-name: zoom; }

/* Word-by-word */
.anim.words .word {
  display: inline-block;
}

.slide.active .anim.words .word {
  animation: rise var(--duration) ease-out
    calc(var(--delay) + var(--i) * var(--stagger)) both;
}

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

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes drop {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes from-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: none; }
}

@keyframes from-left {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: none; }
}

@keyframes zoom {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: none; }
}


/* 7. WORKFLOW SCREEN LAYOUT
   ========================================================== */

.screen {
  padding: 10px 32px 16px;

  background: #fff;
}


/* 8. PROGRESS INDICATOR
   ========================================================== */

/* Dot + label is 46px; the margin gives the same gap
   above the panel as the real app. */
.progress {
  height: 46px;
  margin-bottom: 26px;

  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  padding: 0 46px 0 30px;

  position: relative;
}

.progress::before {
  content: "";

  position: absolute;

  left: 48px;
  right: 64px;
  top: 12px;

  height: 2px;

  background: #d6e9dc;
}

.step {
  z-index: 1;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 7px;

  width: 94px;

  font-size: 11px;

  color: #687580;
}

.step .dot {
  height: 26px;
  width: 26px;

  border-radius: 50%;

  display: grid;
  place-items: center;

  background: #eff5f2;

  color: #66747b;

  font-size: 13px;

  border: 3px solid #fff;
}

.step.current {
  font-weight: 700;
  color: #111;
}

.step.current .dot {
  background: var(--green);
  color: #fff;
}

.step.done .dot {
  background: #29b47a;
  color: #fff;
}


/* 9. STANDARD FORM PANEL
   ========================================================== */

.panel {
  margin: 0 auto;

  border: 1px solid var(--line);
  border-radius: 13px;

  box-shadow: 0 2px 2px rgba(17, 66, 29, 0.025);

  padding: 31px 31px 25px;

  width: 920px;
  max-width: 100%;
}

.panel h2 {
  font-size: 19px;

  margin: 0 0 12px;
}

.panel .sub {
  color: #73808c;

  font-size: 14px;

  margin: 0 0 30px;
}


/* 10. FORM FIELDS
   ========================================================== */

.fields {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 19px 14px;
}

.field label {
  display: block;

  font-size: 14px;

  margin-bottom: 8px;
}

.required {
  color: #e35b67;
}

.field input {
  width: 100%;
  height: 42px;

  border: 1px solid var(--line);
  border-radius: 11px;

  padding: 0 13px;

  outline: 0;

  color: #26362b;
  background: #fff;

  font-size: 14px;
}

.field input:focus {
  border-color: #1dab45;

  box-shadow: 0 0 0 3px #d9f8df;
}

.span2 {
  grid-column: span 2;
}


/* 11. CURRENCY FIELD
   ========================================================== */

.money {
  display: flex;

  gap: 8px;
}

.money input {
  flex: 1;

  min-width: 0;
}

.money select {
  width: 90px;

  border: 1px solid var(--line);
  border-radius: 9px;

  background: #fff;

  padding: 0 8px;
}


/* 12. FORM BUTTONS
   ========================================================== */

.actions {
  display: flex;

  justify-content: space-between;
  align-items: center;

  margin-top: 29px;
}

.btn {
  border: 1px solid #d2dce4;
  border-radius: 10px;

  background: #f1f5fa;

  color: #15232e;

  padding: 11px 19px;

  font-size: 14px;
  font-weight: 600;
}

.btn.primary {
  border-color: var(--green);

  background: var(--green);

  color: #fff;
}

.btn.primary:hover {
  background: #168c26;
}


/* 13. PRODUCTS SCREEN
   ========================================================== */

.products-panel {
  padding-top: 33px;
}

.products-panel .sub {
  margin-bottom: 29px;
}

.chips {
  display: flex;
  flex-wrap: wrap;

  gap: 10px;
}

.chip {
  border: 0;
  border-radius: 12px;

  background: #edf4ef;

  padding: 9px 14px;

  color: #34413b;

  font-size: 13px;
  font-weight: 600;
}

.chip.selected {
  color: #fff;

  background: var(--green);
}

.selection {
  font-size: 13px;

  color: #74808b;

  margin-top: 14px;
}

.products-panel .actions {
  margin-top: 32px;
}


/* 14. SOURCE SCREEN
   ========================================================== */

.source-panel .sub,
.situation-panel .sub,
.documents-panel .sub {
  margin-bottom: 21px;
}

.question {
  font-size: 14px;

  margin: 17px 0 8px;
}

/* Source and Situation have the most content, so they
   use tighter spacing to fit the 540px canvas. */

.source-panel {
  padding: 20px 31px 16px;
}

.source-panel h2 {
  margin-bottom: 8px;
}

.source-panel .sub {
  margin-bottom: 10px;
}

.source-panel .question {
  margin: 12px 0 6px;
}

.source-panel .help {
  margin: 2px 0 7px;
}

.source-panel .actions,
.situation-panel .actions {
  margin-top: 18px;
}

.help {
  font-size: 12px;
  line-height: 1.45;

  color: #74808b;

  margin: 4px 0 9px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;

  gap: 7px;
}

.option {
  border: 0;
  border-radius: 10px;

  background: #edf4ef;

  padding: 8px 12px;

  font-size: 12px;
  font-weight: 600;

  color: #34413b;
}

.option.selected {
  background: var(--green);

  color: #fff;
}

.full-input,
.long-text {
  width: 100%;

  border: 1px solid var(--line);
  border-radius: 10px;

  font: 14px Arial, Helvetica, sans-serif;

  padding: 12px;

  color: #243329;

  outline: 0;
}

.full-input {
  height: 36px;
}

.two-inputs {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 13px;
}


/* 15. SITUATION SCREEN
   ========================================================== */

.long-text {
  height: 110px;

  resize: none;

  line-height: 1.5;
}

.callout {
  border: 1px solid #d9eee0;
  border-radius: 12px;

  background: #f8fffa;

  padding: 15px;

  font-size: 12px;
  line-height: 1.55;

  color: #364a3e;

  margin-top: 15px;
}

.callout strong {
  display: block;

  color: #16872b;

  margin-bottom: 4px;
}


/* 16. DOCUMENT UPLOAD
   ========================================================== */

.dropzone {
  height: 160px;

  border: 2px dashed #cfe5d5;
  border-radius: 12px;

  background: #fbfffc;

  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  gap: 9px;

  text-align: center;

  font-size: 13px;
}

.dropzone .upload-icon {
  font-size: 25px;

  color: #1ca535;
}

.dropzone small {
  color: #78848b;

  font-size: 11px;
}

.dropzone .btn {
  font-size: 12px;

  padding: 7px 12px;
}

.files-list {
  font-size: 12px;

  color: #1b8535;

  margin-top: 9px;
}


/* 17. REVIEW SCREEN
   ========================================================== */

.review-panel {
  padding: 19px 25px 16px;
}

.review-panel h2 {
  font-size: 17px;

  margin-bottom: 7px;
}

.review-panel .sub {
  font-size: 12px;

  margin-bottom: 17px;
}

.review-scroll {
  height: 300px;

  overflow: auto;

  scrollbar-width: thin;

  padding-right: 5px;
}

.review-group {
  margin: 0 0 13px;
}

.review-heading {
  display: flex;

  justify-content: space-between;
  align-items: center;

  color: #6b7781;

  font-size: 11px;

  margin-bottom: 7px;
}

.review-heading button {
  border: 0;

  background: none;

  color: #12852a;

  text-decoration: underline;

  cursor: pointer;
}

.review-row {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  border-bottom: 1px solid #e2efe6;

  padding: 7px 0;

  font-size: 12px;
}

.review-row span:first-child {
  color: #75818a;
}

.review-row span:last-child {
  text-align: right;

  font-weight: 600;
}

.warning {
  border: 1px solid #ffd98b;
  border-radius: 7px;

  background: #fffcf4;

  color: #c47c11;

  padding: 9px;

  font-size: 11px;
}

.review-panel .callout {
  font-size: 11px;

  margin-top: 8px;

  padding: 10px;
}

.review-panel .callout ol {
  margin: 6px 0 0;

  padding-left: 18px;
}

.review-panel .actions {
  margin-top: 12px;
}

.review-panel .btn {
  padding: 9px 12px;

  font-size: 12px;
}


/* 18. ASSISTANT PREPARING SCREEN
   ========================================================== */

.preparing {
  display: flex;
  flex-direction: column;

  align-items: center;
  justify-content: center;

  text-align: center;
}

.robot {
  width: 64px;
  height: 64px;

  border: 1px solid #d5e9dc;
  border-radius: 13px;

  display: grid;
  place-items: center;

  color: #24a545;

  font-size: 27px;

  margin-bottom: 20px;

  background: #fafffc;
}

.preparing h2 {
  font-size: 21px;
}

.preparing p {
  max-width: 470px;

  color: #657681;

  line-height: 1.65;

  font-size: 15px;
}

.spinner {
  display: inline-block;

  width: 14px;
  height: 14px;

  border: 2px solid #b7e4c0;
  border-top-color: #1da52e;

  border-radius: 50%;

  animation: spin 0.8s linear infinite;

  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* 18a. ICONS
   ========================================================== */

/* Icons: Material Design paths used as masks, so they take
   the text colour. Add new ones as .ico-NAME { --icon: … } */

.ico {
  display: inline-block;
  flex-shrink: 0;

  width: 20px;
  height: 20px;

  background: currentColor;

  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

.ico-bars     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 9.2h3V19H5zM10.6 5h2.8v14h-2.8zm5.6 8H19v6h-2.8z'/%3E%3C/svg%3E"); }
.ico-sparkle  { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9l1.25-2.75L23 5l-2.75-1.25L19 1l-1.25 2.75L15 5l2.75 1.25L19 9zm-7.5.5L9 4 6.5 9.5 1 12l5.5 2.5L9 20l2.5-5.5L17 12l-5.5-2.5zM19 15l-1.25 2.75L15 19l2.75 1.25L19 23l1.25-2.75L23 19l-2.75-1.25L19 15z'/%3E%3C/svg%3E"); }
.ico-send    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4.01 6.03l7.51 3.22-7.52-1 .01-2.22m7.5 8.72L4 17.97v-2.22l7.51-1M2.01 3L2 10l15 2-15 2 .01 7L23 12 2.01 3z'/%3E%3C/svg%3E"); }
.ico-edit    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E"); }
.ico-play    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.ico-refresh { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35A7.958 7.958 0 0 0 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08A5.99 5.99 0 0 1 12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E"); }

/* Slides in the same app fade in without sliding */
.slide.still,
.slide.still.out-left {
  transform: none;
}


/* 18d. DEAL PANEL (Snapshot / Insights / Vault)
   ========================================================== */

.ico-back     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E"); }
.ico-bulb     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 0 1 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z'/%3E%3C/svg%3E"); }
.ico-robot    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 9V7c0-1.1-.9-2-2-2h-3c0-1.66-1.34-3-3-3S9 3.34 9 5H6c-1.1 0-2 .9-2 2v2c-1.66 0-3 1.34-3 3s1.34 3 3 3v4c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-4c1.66 0 3-1.34 3-3s-1.34-3-3-3zm-2 10H6V7h12v12zm-9-6c-.83 0-1.5-.67-1.5-1.5S8.17 10 9 10s1.5.67 1.5 1.5S9.83 13 9 13zm7.5-1.5c0 .83-.67 1.5-1.5 1.5s-1.5-.67-1.5-1.5.67-1.5 1.5-1.5 1.5.67 1.5 1.5zM8 15h8v2H8v-2z'/%3E%3C/svg%3E"); }
.ico-folder   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V8h16v10z'/%3E%3C/svg%3E"); }
.ico-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z'/%3E%3C/svg%3E"); }
.ico-link     { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3.1s-1.39 3.1-3.1 3.1h-4V17h4c2.76 0 5-2.24 5-5s-2.24-5-5-5z'/%3E%3C/svg%3E"); }
.ico-upload   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z'/%3E%3C/svg%3E"); }
.ico-trash    { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E"); }
.ico-attach   { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.5-2.5V5c0-2.21-1.79-4-4-4S7 2.79 7 5v12.5c0 3.04 2.46 5.5 5.5 5.5s5.5-2.46 5.5-5.5V6h-1.5z'/%3E%3C/svg%3E"); }

.deal {
  padding: 8px;

  background: #f1f5f2;

  color: var(--ink);
}

.deal .muted {
  color: #74808b;
}

.deal .green {
  color: #15872b;
}

.deal .ico {
  width: 14px;
  height: 14px;
}

.deal-panel {
  height: 100%;

  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: 46px 1fr;

  border: 1px solid #e0ebe4;
  border-radius: 12px;

  background: #fff;

  overflow: hidden;
}

/* Deal header */

.deal-top {
  grid-column: 1 / -1;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 14px;

  border-bottom: 1px solid #e6ece8;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;

  border: 1px solid #dfe7e2;
  border-radius: 7px;

  font-size: 10.5px;
}

.deal-top-title strong {
  display: block;

  font-size: 12.5px;
}

.deal-top-title small {
  font-size: 9.5px;
  color: #74808b;
}

/* Deal menu */

.deal-nav {
  display: flex;
  flex-direction: column;

  padding: 8px 6px;

  border-right: 1px solid #e3efe7;

  background: #f7fdf9;
}

.deal-nav > div {
  display: flex;
  align-items: center;
  gap: 9px;

  height: 28px;
  padding: 0 9px;
  margin-bottom: 3px;

  border: 1px solid transparent;
  border-radius: 7px;

  font-size: 11.5px;
  white-space: nowrap;
  color: #33413a;
}

.deal-nav .ico {
  color: #55635c;
}

.deal-nav .active {
  border-color: #bfe6c9;

  background: #e8f7ed;

  color: #15872b;
  font-weight: 700;
}

.deal-nav .active .ico {
  color: #15872b;
}

.deal-nav .disabled {
  color: #b3bcb7;
}

.deal-nav .disabled .ico {
  color: #c5ccc8;
}

.deal-nav .pro {
  margin-left: auto;
  padding: 1px 6px;

  border: 1px solid #9fdcaf;
  border-radius: 8px;

  background: #effaf2;
  color: #15872b;

  font-size: 8.5px;
  font-weight: 700;
}

.deal-nav .ai-insight {
  display: block;

  height: auto;
  margin: auto 0 0;
  padding: 9px 10px;

  border-color: #bfe6c9;

  background: #f0fbf3;

  font-size: 9.5px;
  line-height: 1.45;
  white-space: normal;
  color: #3f4d45;
}

.ai-insight strong {
  display: flex;
  align-items: center;
  gap: 5px;

  margin-bottom: 3px;

  font-size: 10.5px;
  color: #15872b;
}

.ai-insight .ico {
  width: 11px;
  height: 11px;

  color: #15872b !important;
}

/* Content area */

.deal-body {
  padding: 14px 18px;

  overflow: hidden;

  font-size: 11px;
}

.deal-h {
  margin: 0 0 10px;

  font-size: 15px;
}

.deal-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;

  padding: 8px 0;

  border-top: 1px solid #e6ece8;

  font-size: 11px;
  font-weight: 700;
}

.deal-meta.sub {
  padding-left: 8px;

  border-bottom: 1px solid #e6ece8;

  font-weight: 600;
}

.deal-meta em {
  margin-right: 4px;

  font-style: normal;
  font-weight: 400;
  font-size: 8.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #74808b;
}

.deal-meta .muted {
  font-weight: 400;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 6px;

  padding: 4px 10px;

  border: 1px solid #bfe6c9;
  border-radius: 12px;
}

.status-pill .dot,
.updated .dot {
  width: 6px;
  height: 6px;

  border-radius: 50%;

  background: #1da52e;
}

/* "Where this deal stands" card */

.stands {
  margin-top: 10px;
  padding: 11px 14px;

  border: 1px solid #e0ebe4;
  border-radius: 10px;

  line-height: 1.45;
}

.stands-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 6px;

  font-size: 12px;
}

.updated {
  display: flex;
  align-items: center;
  gap: 5px;

  font-size: 9.5px;
  color: #74808b;
}

.stands ul {
  margin: 0;
  padding-left: 16px;
}

.stands li.grey::marker {
  color: #b3bcb7;
}

.stands .sub-line {
  font-size: 10px;
  color: #45524b;
}

.mini-btns {
  display: flex;
  gap: 6px;

  margin: 4px 0 2px;
}

.mini-btns span {
  padding: 3px 8px;

  border: 1px solid #dfe4e8;
  border-radius: 6px;

  background: #eef1f4;

  font-size: 9.5px;
  font-weight: 700;
}

.stands .label {
  margin: 7px 0 3px;

  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #74808b;
}

.stands .label.rule {
  padding-top: 7px;

  border-top: 1px solid #edf1ee;
}

.stands p {
  margin: 0;
}

.stands .gaps {
  font-size: 9.5px;
  color: #6a7670;
}

.stands-foot {
  display: flex;
  justify-content: flex-end;

  margin-top: 4px;
}

.btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  padding: 5px 10px;

  border: 1px solid #dfe4e8;
  border-radius: 7px;

  background: #eef1f4;

  font-size: 10px;
  font-weight: 700;
}

/* Insights */

.insights-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  margin-bottom: 12px;
}

.insights-head p {
  max-width: 470px;
  margin: 0;

  font-size: 10.5px;
  line-height: 1.5;
}

.insights-head .sort {
  margin-left: auto;

  font-size: 10px;
  color: #74808b;
}

.insights-head .select {
  margin-left: 4px;
  padding: 4px 8px;

  border: 1px solid #dfe4e8;
  border-radius: 6px;

  color: var(--ink);
}

.insights-head > .muted {
  font-size: 10.5px;
}

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

.insight {
  display: flex;
  flex-direction: column;

  padding: 11px 12px;

  border: 1px solid #e0ebe4;
  border-radius: 10px;
}

.insight-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;

  margin-bottom: 7px;

  font-size: 11.5px;
}

.deal .tag {
  flex-shrink: 0;

  padding: 1px 7px;

  border: 1px solid #dfe4e8;
  border-radius: 8px;

  background: #f4f6f8;

  font-size: 8.5px;
  color: #6a7670;
}

.deal .tag.draft {
  border-color: #f3d58a;

  background: #fff8e6;
  color: #b07a12;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;

  margin-bottom: 7px;
}

.roles span {
  padding: 2px 7px;

  border: 1px dashed #8fd3a0;
  border-radius: 8px;

  font-size: 8.5px;
  font-weight: 600;
  color: #15872b;
}

.insight p {
  flex: 1;

  margin: 0 0 8px;

  font-size: 10px;
  line-height: 1.5;
  color: #3a4540;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;

  margin-bottom: 8px;

  font-size: 8.5px;
}

.sources span:not(.muted) {
  padding: 1px 6px;

  border: 1px solid #e3e7ea;
  border-radius: 6px;

  background: #f7f8f9;
}

.insight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding-top: 7px;
  margin-bottom: 7px;

  border-top: 1px solid #edf1ee;

  font-size: 9.5px;
}

.running {
  padding: 6px 9px;

  border: 1px solid #bfe6c9;
  border-radius: 6px;

  background: #f0fbf3;

  font-size: 9.5px;
  font-weight: 700;
  color: #15872b;
}

/* Vault */

.deal-body.vault {
  display: flex;

  padding: 0;
}

.vault-main {
  flex: 1;
  min-width: 0;

  padding: 12px 14px;
}

.vault-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vault-head .deal-h {
  margin-bottom: 8px;
}

.vault-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;

  padding-bottom: 10px;
  margin-bottom: 10px;

  border-bottom: 1px solid #e6ece8;
}

.vault-filters span {
  padding: 3px 9px;

  border: 1px solid #e3e7ea;
  border-radius: 10px;

  background: #f4f6f8;

  font-size: 9.5px;
  font-weight: 600;
  color: #55635c;
}

.vault-filters .active {
  border-color: #9fdcaf;

  background: #effaf2;
  color: #15872b;
}

.vault-item {
  display: flex;
  gap: 10px;

  padding: 10px 12px;
  margin-bottom: 8px;

  border: 1px solid #e0ebe4;
  border-radius: 10px;
}

.vault-icon {
  flex-shrink: 0;

  width: 26px;
  height: 26px;

  border-radius: 7px;

  display: grid;
  place-items: center;

  background: #effaf2;
  color: #15872b;
}

.vault-text {
  flex: 1;
  min-width: 0;
}

.vault-text strong {
  font-size: 11.5px;
}

.vault-text .chips {
  display: flex;
  gap: 4px;

  margin: 4px 0;
}

.vault-text .chips span {
  padding: 1px 6px;

  border-radius: 6px;

  background: #eef1f4;

  font-size: 8.5px;
  color: #55635c;
}

.vault-text .chips .ai {
  border: 1px solid #bfe6c9;

  background: #f0fbf3;
  color: #15872b;
}

.vault-text p {
  margin: 0 0 5px;

  font-size: 9.5px;
  line-height: 1.45;
  color: #3a4540;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vault-meta {
  display: flex;
  align-items: center;
  gap: 8px;

  font-size: 9px;
}

.vault-meta .conf {
  padding: 2px 7px;

  border: 1px solid #bfe6c9;
  border-radius: 8px;

  background: #f0fbf3;
  color: #15872b;

  font-weight: 700;
}

.vault-actions {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.vault-actions > span {
  padding: 3px 8px;

  border: 1px solid #e3e7ea;
  border-radius: 6px;

  background: #f4f6f8;

  font-size: 9px;
  font-weight: 600;
  color: #8a959d;
}

.vault-actions .view {
  border-color: #bfe6c9;

  background: #f0fbf3;
  color: #15872b;
}

.vault-actions .del {
  border-color: #f5c2c4;

  background: #fff5f5;
  color: #e5484d;
}

.vault-actions .del .ico {
  width: 10px;
  height: 10px;

  vertical-align: middle;
}

.quick-add {
  display: flex;
  flex-direction: column;

  width: 210px;
  padding: 12px 14px;

  border-left: 1px solid #e6ece8;
}

.quick-add > strong {
  font-size: 11.5px;
}

.quick-add > p {
  margin: 3px 0 10px;

  font-size: 9.5px;
}

.quick-tip {
  padding: 8px 10px;

  border: 1px solid #bfe6c9;
  border-radius: 8px;

  background: #f7fdf9;

  font-size: 9.5px;
  line-height: 1.45;
  color: #45524b;
}

.quick-input {
  display: flex;
  align-items: flex-end;
  gap: 6px;

  margin-top: auto;
  padding: 8px 10px;

  border: 1px solid #dfe4e8;
  border-radius: 8px;

  font-size: 9.5px;
  line-height: 1.4;
}

.quick-input .muted {
  flex: 1;
}

.quick-input .ico {
  color: #74808b;
}


/* 18f. POPUP (MODAL) SLIDES
   ==========================================================

   <section class="slide deal still modal-slide" data-backdrop="prev">
     <div class="modal anim zoom">…</div>
   </section>

   data-backdrop="prev" makes script.js copy the previous
   slide in behind the popup; it's blurred and dimmed here.
*/

.modal-backdrop {
  position: absolute;
  inset: 0;

  padding: 8px;

  filter: blur(3px);

  pointer-events: none;
}

/* Dim layer over the copied slide */
.modal-slide::after {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 1;

  background: rgba(60, 72, 66, 0.28);
}

/* Bottom edge clears the nav controls */
.modal {
  position: absolute;
  top: 20px;
  bottom: 60px;
  left: 50%;
  z-index: 2;

  display: flex;
  flex-direction: column;

  width: 600px;
  margin-left: -300px;
  padding: 18px 20px 14px;

  border-radius: 16px;

  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 30, 20, 0.28);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  margin-bottom: 12px;
}

.modal-head strong {
  display: block;

  margin-bottom: 4px;

  font-size: 14px;
}

.deal .tag.research {
  border-color: #fde2a8;

  background: #fff6e0;
  color: #c98a12;
}

#viewport .modal-close {
  margin-left: auto;

  border: 0;

  background: none;

  font-size: 22px;
  line-height: 1;
  color: #55635c;
}

.modal-body {
  position: relative;
  flex: 1;
  min-height: 0;

  padding: 14px 18px;

  border: 1px solid #d9eee0;
  border-radius: 10px;

  background: #f7fdf9;

  overflow: hidden;

  font-size: 10.5px;
  line-height: 1.6;
  color: #3a4540;
}

/* Fade at the bottom and a scrollbar, to show there's more */
.modal-body::after {
  content: "";

  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 40px;

  background: linear-gradient(rgba(247, 253, 249, 0), #f7fdf9);
}

.modal-body::before {
  content: "";

  position: absolute;
  top: 6px;
  right: 4px;

  width: 4px;
  height: 90px;

  border-radius: 2px;

  background: #c9d2cd;
}

.modal-body h3 {
  margin: 0 0 10px;

  font-size: 13.5px;
  color: var(--ink);
}

.modal-body h4 {
  margin: 12px 0 8px;
  padding-top: 10px;

  border-top: 1px solid #e3efe7;

  font-size: 12.5px;
  color: var(--ink);
}

.modal-body p {
  margin: 0 0 8px;
}

/* Signals & Triggers layout: a grey bold phase line, a
   section heading with a rule under it, numbered events
   (h5) and green-bulleted details. */
.modal-body .phase {
  font-weight: 700;
  color: #5d6863;
}

.modal-body h4.section {
  margin: 14px 0 10px;
  padding: 0 0 6px;

  border-top: 0;
  border-bottom: 1px solid #e3efe7;

  font-weight: 500;
}

.modal-body h5 {
  margin: 10px 0 5px;

  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}

.modal-body ul {
  margin: 0 0 8px;
  padding-left: 16px;
}

.modal-body li {
  margin-bottom: 3px;
}

.modal-body li::marker {
  color: var(--brand-green);
}

.modal-body strong {
  color: #26322c;
}

.modal-foot {
  display: flex;
  align-items: center;
  gap: 8px;

  margin-top: 10px;

  font-size: 9.5px;
}

.modal-foot .muted {
  margin-right: auto;
}

.modal-foot .ico {
  width: 11px;
  height: 11px;
}


/* 18g. DEAL ASSISTANT (chat)
   ========================================================== */

.deal-body.assistant {
  display: flex;
  flex-direction: column;

  padding: 0 0 50px;   /* keeps the input clear of the nav */
}

/* Chat column leaves room on the right for an annotation */
.chat-scroll {
  flex: 1;
  min-height: 0;

  padding: 14px 262px 14px 26px;

  overflow-y: auto;
  scrollbar-width: none;
}

.chat-scroll::-webkit-scrollbar {
  display: none;
}

.chat-user {
  max-width: 440px;
  margin: 0 0 12px auto;
  padding: 10px 14px;

  border-radius: 12px;

  background: #22a82d;
  color: #fff;

  font-size: 11px;
  line-height: 1.5;
}

.chat-agent {
  padding: 12px 16px 6px;

  border-radius: 12px;

  background: #f0f4f1;

  font-size: 10.5px;
  line-height: 1.6;
  color: #26322c;
}

.agent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 8px;

  font-size: 9.5px;
}

.agent-name {
  display: flex;
  align-items: center;
  gap: 5px;

  font-weight: 700;
  color: #15872b;
}

.agent-head .ico {
  width: 11px;
  height: 11px;

  vertical-align: middle;
}

.chat-agent h4 {
  margin: 10px 0 6px;
  padding-bottom: 5px;

  border-bottom: 1px solid #dde5df;

  font-size: 12px;
  color: var(--ink);
}

.chat-agent p {
  margin: 0 0 8px;
}

.chat-agent p.point {
  padding-left: 12px;
}

.chat-agent ul {
  margin: 0 0 8px;
  padding-left: 28px;
}

.chat-agent li {
  margin-bottom: 3px;
}

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 8px 26px 4px;
  padding: 9px 12px;

  border: 1px solid #dfe4e8;
  border-radius: 10px;

  font-size: 10.5px;
}

.chat-input .muted {
  flex: 1;
}

.chat-input .ico {
  color: #74808b;
}

.chat-access {
  display: flex;
  align-items: center;
  gap: 5px;

  margin: 0 26px;

  font-size: 9px;
}

.chat-access .ico {
  width: 10px;
  height: 10px;
}


/* 18e. ANNOTATIONS
   ==========================================================

   A callout describing what's on screen. Put it inside the
   slide it belongs to:

     <div class="note" style="top: 90px; right: 50px;">
       It all starts when…
     </div>

   Position:  top / left / right / bottom, in canvas px
   Width:     style="width: 320px"   (default 280px)
   Delay:     style="--delay: 1s"    (default 0.5s)
   Reading:   the demo waits for people to read each note,
              based on its word count. Override per note
              with data-read-ms="4000".
*/

.note {
  --delay: 0.5s;

  position: absolute;
  z-index: 40;

  width: 280px;
  padding: 13px 16px 13px 18px;

  border-radius: 12px;

  background: linear-gradient(135deg, #0b3a22, #146b34);
  box-shadow: 0 12px 32px rgba(8, 40, 22, 0.3);

  font-family: var(--brand-font);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #fff;

  pointer-events: none;
}

/* Accent bar */
.note::before {
  content: "";

  position: absolute;
  left: 7px;
  top: 12px;
  bottom: 12px;

  width: 3px;

  border-radius: 2px;

  background: var(--intro-accent);
}

/* Hidden until its slide is active, then rises in */
.slide .note {
  opacity: 0;
}

.slide.active .note {
  animation: note-in 0.5s ease-out var(--delay) both;
}

@keyframes note-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}


/* 19. SLIDESHOW NAVIGATION
   ========================================================== */

/*
   Keep the controls inside the fixed 960 x 540
   canvas so they remain visible when scaled.
*/

/* Bottom centre: the gap between Back and Continue,
   so the controls never cover a button. */
.nav {
  position: absolute;

  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;

  align-items: center;

  gap: 9px;

  z-index: 50;
}

.nav .pill {
  display: flex;

  align-items: center;

  gap: 9px;

  background: rgba(255, 255, 255, 0.94);

  padding: 5px 7px;

  border-radius: 30px;

  box-shadow: 0 2px 12px #1232;
}

/* Faded out by script.js when the mouse is still */
.nav .nav-fade {
  transition: opacity 0.4s ease;
}

.nav.idle .nav-fade {
  opacity: 0;

  pointer-events: none;
}

.nav button {
  border: 1px solid #cfe3d5;

  background: #fff;

  border-radius: 50%;

  width: 29px;
  height: 29px;

  color: #23653a;
}

/* Slide scrubber, like a video progress bar: one stop per
   slide, green up to the current one. The white ticks
   (added by script.js) mark the stops. */
.scrub {
  position: relative;

  display: flex;
  align-items: center;

  width: 190px;
  height: 29px;
  margin: 0 5px;

  cursor: pointer;

  /* Dragging on a touch screen shouldn't scroll the page */
  touch-action: none;

  outline: none;
}

.scrub-track {
  position: relative;

  width: 100%;
  height: 4px;

  border-radius: 2px;

  background: #d5e4da;

  transition: height 0.15s ease;
}

.scrub:hover .scrub-track,
.scrub.dragging .scrub-track,
.scrub:focus-visible .scrub-track {
  height: 6px;
}

.scrub-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;

  width: 0;

  border-radius: inherit;

  background: var(--brand-green);

  transition: width 0.25s ease;
}

.scrub-tick {
  position: absolute;
  top: 0;
  bottom: 0;

  width: 2px;
  margin-left: -1px;

  background: #fff;
}

.scrub-knob {
  position: absolute;
  top: 50%;
  left: 0;

  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;

  border-radius: 50%;

  background: var(--brand-green);
  box-shadow: 0 0 0 2px #fff, 0 1px 4px #1234;

  transition: left 0.25s ease, transform 0.15s ease;
}

.scrub:hover .scrub-knob,
.scrub.dragging .scrub-knob,
.scrub:focus-visible .scrub-knob {
  transform: scale(1.2);
}

/* "5 / 14" above the pointer while hovering or dragging */
.scrub-tip {
  position: absolute;
  bottom: 30px;
  left: 0;

  transform: translateX(-50%);

  padding: 3px 7px;

  border-radius: 6px;

  background: #0b3a22;
  color: #fff;

  font-size: 11px;
  white-space: nowrap;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.15s ease;
}

.scrub:hover .scrub-tip,
.scrub.dragging .scrub-tip,
.scrub:focus-visible .scrub-tip {
  opacity: 1;
}

.nav #restart {
  display: grid;
  place-items: center;
}

.nav #restart .ico {
  width: 15px;
  height: 15px;
}

#viewport .nav button:disabled {
  opacity: 0.35;

  cursor: default;
}

/* Same width for Play / Pause / Continue so the pill doesn't jump */
.nav #demo {
  min-width: 90px;
}

.nav #speed {
  min-width: 70px;
  padding: 0 8px;
}

.nav .play {
  width: auto;

  border-radius: 20px;

  padding: 0 12px;

  font-size: 11px;
}


/* 20. INTRODUCTION HINT
   ========================================================== */

.hint {
  position: absolute;

  bottom: 21px;
  left: 30px;

  font-size: 12px;

  color: #91bba0;

  z-index: 2;
}

.intro .hint {
  color: #e6f9eb;
}


/* 21. DEMO CURSOR
   ========================================================== */

/*
   Moved by script.js with transform: translate(x, y).
   The arrow's tip sits at the element's top-left corner.
*/

.demo-cursor {
  position: absolute;

  left: 0;
  top: 0;

  width: 20px;
  height: 26px;

  z-index: 80;

  pointer-events: none;

  opacity: 0;

  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(0.45, 0, 0.2, 1);

  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.demo-cursor.visible {
  opacity: 1;
}

/* Arrow pointer */
.demo-cursor::before {
  content: "";

  position: absolute;
  inset: 0;

  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 26'%3E%3Cpath d='M1.5 1.5v20.5l5.2-5 3.4 7.6 3.3-1.5-3.3-7.4h7.1z' fill='%23101820' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;

  transition: transform 0.12s ease;
  transform-origin: 2px 2px;
}

/* Click ripple at the tip */
.demo-cursor::after {
  content: "";

  position: absolute;

  left: -12px;
  top: -12px;

  width: 28px;
  height: 28px;

  border-radius: 50%;

  background: rgba(29, 165, 46, 0.35);

  opacity: 0;
  transform: scale(0.3);
}

.demo-cursor.clicking::before {
  transform: scale(0.85);
}

.demo-cursor.clicking::after {
  animation: cursor-ripple 0.45s ease-out;
}

@keyframes cursor-ripple {
  from { opacity: 1; transform: scale(0.3); }
  to   { opacity: 0; transform: scale(1.4); }
}

/* Button being pressed by the demo pointer */
.demo-press {
  transform: scale(0.96);
  filter: brightness(0.93);
  transition: transform 0.1s ease, filter 0.1s ease;
}

/* Field "focused" by the demo, without taking real focus */
.field input.is-focused,
.full-input.is-focused,
.long-text.is-focused {
  border-color: #1dab45;

  box-shadow: 0 0 0 3px #d9f8df;
}


/* 22. ACCESSIBILITY
   ========================================================== */

.btn:focus-visible,
.chip:focus-visible,
.option:focus-visible,
.nav button:focus-visible {
  outline: 3px solid #91e9a0;

  outline-offset: 3px;
}

/* Reduced motion (e.g. Windows "Animation effects" off):
   no sliding, and text animations become a plain fade. */
@media (prefers-reduced-motion: reduce) {
  .slide {
    transition: none;
  }

  .slide.active .anim:not(.words),
  .slide.active .anim.words .word {
    animation-name: fade;
  }

  .slide.active .note {
    animation-name: fade;
  }
}


/* ==========================================================
   END OF DEALCRAFT CSS
   ========================================================== */