
/* ==================================================
   FIGUROOS V3 — ANIMATED ONBOARDING
   Standalone modal styles
   WHITE COLOUR SCHEME
   ================================================== */


/* ==================================================
   MODAL
   ================================================== */

.fo-dialog {
  box-sizing: border-box;
  width: min(92vw, 560px);
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  color: #171717;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .25);
  font-family: "Plus Jakarta Sans", sans-serif;
}


/* ==================================================
   MODAL BACKDROP
   ================================================== */

.fo-dialog::backdrop {
  background: rgba(0, 0, 0, .78);
  backdrop-filter: blur(5px);
}


/* ==================================================
   BOX SIZING
   ================================================== */

.fo-dialog *,
.fo-dialog *::before,
.fo-dialog *::after {
  box-sizing: border-box;
}


/* ==================================================
   MODAL SHELL
   ================================================== */

.fo-shell {
  display: flex;
  flex-direction: column;
  height: min(760px, 88dvh);
  min-height: 0;
  background: #ffffff;
}


/* ==================================================
   HEADER
   ================================================== */

.fo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 20px 24px 12px;
}


/* ==================================================
   BRAND
   ================================================== */

.fo-brand {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #171717;
}


/* ==================================================
   SKIP BUTTON
   ================================================== */

.fo-skip {
  padding: 8px 12px;
  border: 0;
  background: #FFEB00;
  color: #171717;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}


/* ==================================================
   PANELS
   ================================================== */

.fo-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  touch-action: pan-y;
}


/* ==================================================
   PANEL TRACK
   ================================================== */

.fo-track {
  display: flex;
  width: 600%;
  height: 100%;
  transform: translateX(0);
  will-change: transform;
}


/* ==================================================
   INDIVIDUAL PANEL
   ================================================== */

.fo-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 calc(100% / 6);
  width: calc(100% / 6);
  height: 100%;
  min-width: 0;
  padding: 12px 30px;
  text-align: center;
  overflow: hidden;
}


/* ==================================================
   PANEL HEADINGS
   ================================================== */

.fo-panel h2 {
  max-width: 460px;
  margin: 0 0 10px;
  color: #171717;
  font-size: clamp(25px, 5vw, 39px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.045em;
}


/* ==================================================
   PANEL BODY TEXT
   ================================================== */

.fo-panel p {
  max-width: 350px;
  margin: 12px 0;
  color: #555555;
  font-size: 14px;
  line-height: 1.5;
}


/* ==================================================
   PANEL KICKER
   ================================================== */

.fo-kicker {
  margin-bottom: 12px;
  color: #910bff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}


/* ==================================================
   HERO FIGURE
   ================================================== */

.fo-hero-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  flex: 1 1 auto;
  max-height: 400px;
  margin: 8px 0;
  overflow: hidden;
}

.fo-hero-figure {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 390px;
  object-fit: contain;
  transform-origin: 50% 72%;
  will-change: transform;
}


/* ==================================================
   SECONDARY PANEL VISUALS
   ================================================== */

.fo-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: min(100%, 340px);
  height: min(35dvh, 250px);
  min-height: 145px;
  margin: 18px 0;
  border: 1px solid #e5e0ea;
  border-radius: 14px;
  background: #f5f2f8;
  overflow: hidden;
}


/* ==================================================
   VISUAL SYMBOLS
   ================================================== */

.fo-symbol {
  font-size: clamp(52px, 12vw, 90px);
  font-weight: 900;
  line-height: 1;
  color: #171717;
}


/* ==================================================
   PURPLE ACCENT
   ================================================== */

.fo-purple {
  color: #910bff;
}


/* ==================================================
   LARGE NUMBER
   ================================================== */

.fo-number {
  font-size: clamp(90px, 20vw, 150px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.08em;
}


/* ==================================================
   VISUAL LABEL
   ================================================== */

.fo-visual-label {
  margin-top: 14px;
  color: #171717;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}


/* ==================================================
   PHOTO ALIGNMENT DEMONSTRATION
   ================================================== */

.fo-photo-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 165px;
  height: 165px;
  border-radius: 10px;
  background: #30243d;
  overflow: hidden;
}


/* ==================================================
   PHOTO HEAD
   ================================================== */



.fo-photo-box {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 130px;
    margin: 0 auto;
    background: transparent;
    overflow: visible;
}

.fo-photo-box .fo-face-image,
.fo-photo-box .fo-face-illustration {
    position: absolute;
    top: 0;
    left: 50%;
    width: 155px !important;
height: 155px !important;
    border-radius: 12px;
    object-fit: cover;
    object-position: center;
    will-change: transform, opacity;
}



/* ==================================================
   PHOTO SHOULDERS
   ================================================== */

.fo-photo-shoulders {
  position: absolute;
  bottom: -35px;
  width: 145px;
  height: 90px;
  border-radius: 50% 50% 0 0;
  background: #910bff;
}


/* ==================================================
   TURQUOISE EYE ALIGNMENT LINE
   ================================================== */

.fo-eye-line {
  position: absolute;
  z-index: 2;
  top: 40%;
  left: 5%;
  width: 90%;
  height: 2px;
  background: #86ffdb;
  box-shadow: 0 0 12px #86ffdb;
}


/* ==================================================
   FACE ALIGNMENT GUIDE
   ================================================== */

.fo-face-guide {
  position: absolute;
  z-index: 2;
  width: 110px;
  height: 135px;
  border: 2px dashed #ffffff;
  border-radius: 50%;
}


/* ==================================================
   START BUTTON
   ================================================== */

.fo-start {
  margin-top: 20px;
  padding: 16px 26px;
  border: 0;
  border-radius: 8px;
  background: #910bff;
  color: #ffffff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .03em;
  cursor: pointer;
}


/* ==================================================
   FOOTER AND NAVIGATION
   ================================================== */

.fo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  padding: 14px 24px 22px;
}


/* ==================================================
   NAVIGATION BUTTONS
   ================================================== */

.fo-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid #cccccc;
  border-radius: 50%;
  background: #910bff;
color: #ffffff;
  font: inherit;
  font-size: 22px;
  cursor: pointer;
}

.fo-nav:disabled {
  opacity: .25;
  cursor: default;
}


/* ==================================================
   PROGRESS INDICATOR
   ================================================== */

.fo-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}


/* ==================================================
   PROGRESS DOTS
   ================================================== */

.fo-dot {
  display: block;
  width: 7px;
  height: 7px;
  border: 0;
  border-radius: 20px;
  background: #cccccc;
  transition: width .25s ease, background .25s ease;
}

.fo-dot.is-active {
  width: 24px;
  background: #910bff;
}


/* ==================================================
   KEYBOARD FOCUS
   ================================================== */

.fo-dialog :focus-visible {
  outline: 3px solid #bb7bff;
  outline-offset: 3px;
}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 620px) {

  .fo-dialog {
    width: 94vw;
    max-height: 94dvh;
    border-radius: 12px;
  }

  .fo-shell {
    height: 88dvh;
  }

  .fo-header {
    padding: 15px 18px 8px;
  }

  .fo-panel {
    padding: 10px 20px;
  }

  .fo-panel h2 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .fo-panel p {
    font-size: 13px;
  }

  .fo-hero-frame {
    max-height: 36dvh;
  }

  .fo-hero-figure {
    max-height: 36dvh;
  }

  .fo-footer {
    padding: 10px 18px 16px;
  }

  .fo-visual {
    height: min(30dvh, 230px);
  }

}


/* ==================================================
   REDUCED MOTION
   ================================================== */

@media (prefers-reduced-motion: reduce) {

  .fo-dot {
    transition: none;
  }

  .fo-hero-figure,
  .fo-track {
    will-change: auto;
  }

}


.fo-card-panel h2 {
    font-size: 36px;
    line-height: 1.15;
}

.fo-dialog:focus,
.fo-dialog:focus-visible {
    outline: none;
}

.fo-skip:focus,
.fo-skip:focus-visible {
    outline: none;
}

.fo-card-panel .fo-visual {
    height: 360px;
    min-height: 360px;
}

/* Greeting card — mobile only */
@media (max-width: 620px) {

    .fo-card-panel h2 {
        font-size: 26px;
        line-height: 1.12;
    }

    .fo-card-panel .fo-visual {
        height: min(34dvh, 280px);
        min-height: 0;
        margin: 10px 0;
        flex-shrink: 1;
    }

    .fo-card-panel .fo-card-cycle {
        height: 100% !important;
        min-height: 0;
    }

    .fo-card-panel .fo-card-book {
        width: auto !important;
        height: min(30dvh, 260px) !important;
        aspect-ratio: 11 / 17;
        flex-shrink: 0;
    }
}


@media (max-width: 620px) {
    .fo-card-panel {
        transform: translateY(-25px);
    }
}

.fo-photo-box .fo-face-illustration {
    object-fit: contain !important;
}