/* ==========================================================
   DEALCRAFT - INTERACTIVE PRODUCT WALKTHROUGH
   Complete CSS for Squarespace
   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
   ========================================================== */

/*
   Scope these styles to the slideshow so they don't
   interfere with Squarespace's own interface.
*/

#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;
}


/* 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);
  }
}


/* 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;

  background: rgba(255, 255, 255, 0.94);

  padding: 5px 7px;

  border-radius: 30px;

  box-shadow: 0 2px 12px #1232;
}

.nav button {
  border: 1px solid #cfe3d5;

  background: #fff;

  border-radius: 50%;

  width: 29px;
  height: 29px;

  color: #23653a;
}

.nav .count {
  font-size: 11px;

  color: #4a6652;

  min-width: 34px;

  text-align: center;
}

.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;
  }
}


/* ==========================================================
   23. SQUARESPACE - DEDICATED SLIDESHOW PAGE
   ========================================================== */

/*
   These rules apply only to the page containing
   #viewport.

   They remove the normal Squarespace page chrome,
   section spacing and Fluid Engine grid constraints.
*/


/* Hide the normal Squarespace header and footer */

body:has(#viewport) #header,
body:has(#viewport) #footer-sections {
  display: none !important;
}


/* Remove the normal page background and margins */

html:has(#viewport) {
  margin: 0 !important;
  padding: 0 !important;

  overflow-x: hidden;
}

body:has(#viewport) {
  margin: 0 !important;
  padding: 0 !important;

  background: #fff;

  overflow-x: hidden !important;
}


/* Remove Squarespace's outer page spacing */

body:has(#viewport) #siteWrapper,
body:has(#viewport) #page,
body:has(#viewport) main {
  margin: 0 !important;
  padding: 0 !important;

  min-height: 0 !important;
}


/*
   Restore the slideshow's own stage positioning.

   Squarespace layout rules above must not interfere
   with the internal slideshow.
*/

body:has(#viewport) #stage {
  position: absolute;

  width: 960px;
  height: 540px;

  margin: 0 !important;
  padding: 0 !important;
}


/* Remove section padding and minimum height */

body:has(#viewport) .page-section {
  margin: 0 !important;
  padding: 0 !important;

  min-height: 0 !important;
}


/* Remove Squarespace content wrapper constraints */

body:has(#viewport) .page-section .content-wrapper {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;

  min-height: 0 !important;
}


/* Remove Fluid Engine's reserved grid height */

body:has(#viewport) .fluid-engine {
  display: block !important;

  width: 100% !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  grid-template-rows: none !important;
}


/* Remove the Code Block's grid positioning and spacing */

body:has(#viewport) .sqs-block-code {
  display: block !important;

  position: relative !important;

  width: 100% !important;
  max-width: none !important;

  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;

  left: auto !important;
  top: auto !important;

  transform: none !important;
}


/* Remove internal Code Block spacing */

body:has(#viewport) .sqs-block-code .sqs-block-content {
  display: block !important;

  width: 100% !important;

  height: auto !important;
  min-height: 0 !important;

  margin: 0 !important;
  padding: 0 !important;
}


/* Remove unwanted spacing around the slideshow */

body:has(#viewport) #viewport {
  display: block;

  position: relative;

  width: 100%;

  aspect-ratio: 16 / 9;

  min-height: 0;

  margin: 0 !important;
  padding: 0 !important;

  overflow: hidden;
}


/* Ensure the slideshow is aligned with the page edges */

body:has(#viewport) .page-section,
body:has(#viewport) .content-wrapper,
body:has(#viewport) .fluid-engine,
body:has(#viewport) .sqs-block-code {
  padding-left: 0 !important;
  padding-right: 0 !important;
}


/* Remove spacing between the section and page footer */

body:has(#viewport) .page-section:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}


/* Prevent horizontal scrolling */

body:has(#viewport) {
  overflow-x: hidden !important;
}


/* Allow natural vertical scrolling when the browser
   is shorter than the slideshow's 16:9 height. */

body:has(#viewport) {
  overflow-y: auto !important;
}


/* ==========================================================
   END OF DEALCRAFT CSS
   ========================================================== */