/* MIRALA v8 UI refresh: preserve generator engine */
@keyframes miralaFloat {
  0%,100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes miralaFloatB {
  0%,100% {
    transform: translateY(0) rotate(4deg);
  }
  50% {
    transform: translateY(-6px) rotate(1deg);
  }
}
@keyframes miralaPop {
  0% {
    transform: scale(.96);
  }
  100% {
    transform: scale(1);
  }
}
.benefit-card,.lp-flow article,.audience-chips span,.idea-pills span,.faq-list details {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}
.benefit-card:hover,.lp-flow article:hover,.audience-chips span:hover,.idea-pills span:hover,.faq-list details:hover {
  transform: translateY(-6px) scale(1.018);
  box-shadow: 0 18px 34px rgba(108,65,97,.12);
  border-color: #eeb0cc;
}
.benefit-icon {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 26px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(200,145,172,.19);
  box-shadow: 0 9px 20px #71557812;
  margin-bottom: 18px;
}
.benefit-icon svg {
  height: 58px;
  width: 58px;
  overflow: visible;
}
.benefit-card:nth-child(2) .benefit-icon {
  background: #faf4ff;
}
.benefit-card:nth-child(3) .benefit-icon {
  background: #f1fcf8;
}
.benefit-card h3 {
  font-size: 20px;
}
.audience-chips span {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  min-height: 81px;
  padding: 12px 19px;
}
.chip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  font-size: 27px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 15px #75537312;
}
.lp-flow article {
  min-height: 174px;
}
.lp-flow article i {
  height: 54px;
  width: 54px;
  display: grid;
  place-items: center;
  font-style: normal;
  border-radius: 17px;
  background: #ffedf5;
  margin-bottom: 16px;
  font-size: 21px;
}
.lp-flow article strong {
  font-size: 19px;
  margin-bottom: 8px;
}
.lp-flow article small {
  font-size: 13px;
  line-height: 1.58;
}
.idea-pills span {
  padding: 12px 17px;
}
.hero-float {
  animation: miralaFloatB 5s ease-in-out infinite;
}
.studio-welcome {
  min-height: 265px;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px 42px;
}
.studio-intro {
  position: relative;
  z-index: 2;
  max-width: 540px;
}
.studio-intro .pill {
  align-self: flex-start;
}
.studio-intro h1 {
  font-size: clamp(32px,3.4vw,44px);
}
.studio-hint {
  display: inline-flex;
  margin-top: 17px;
  padding: 8px 13px;
  border-radius: 25px;
  background: #ffffff2b;
  font-weight: 850;
  font-size: 11px;
  color: #fff;
}
.studio-mascot-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 207px;
  height: 207px;
  display: grid;
  place-items: center;
  animation: miralaFloat 4.5s ease-in-out infinite;
  filter: drop-shadow(0 14px 16px #3d4ea622);
}
.studio-mascot-wrap .otter-svg {
  height: 205px;
  width: 205px;
}
.studio-welcome .welcome-tag {
  min-width: 133px;
}
.login-art .login-picture {
  max-width: 470px;
  height: 280px;
  border: 1px solid #e8d9f4;
  border-radius: 25px;
  background: radial-gradient(circle at 50% 95%,#fff9f0 0 22%,transparent 23%),linear-gradient(135deg,#fce4f3,#f8f0ff 54%,#e1f6ff);
  box-shadow: 0 14px 40px #62407712;
  position: relative;
  overflow: hidden;
}
.login-otter {
  height: 230px;
  width: 240px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  filter: drop-shadow(0 15px 12px #9b70b333);
}
.login-otter .otter-svg {
  width: 216px;
  height: 216px;
}
.login-craft {
  height: 96px;
  width: 96px;
  display: grid;
  place-items: center;
  position: absolute;
  border: 2px solid #fff;
  border-radius: 25px;
  box-shadow: 0 12px 24px #79567820;
  background: #fff9fb;
  animation: miralaFloat 4.6s ease-in-out infinite;
}
.login-craft svg {
  width: 66px;
  height: 66px;
}
.login-craft-left {
  left: 30px;
  top: 67px;
  animation-delay: .8s;
}
.login-craft-right {
  right: 29px;
  top: 67px;
  animation-delay: 1.5s;
}
.login-star {
  position: absolute;
  font-size: 27px;
  color: #dd62a0;
  animation: miralaFloat 3.2s ease-in-out infinite;
}
.login-star-a {
  top: 23px;
  left: 100px;
}
.login-star-b {
  top: 25px;
  right: 90px;
  color: #8eb5ed;
  animation-delay: .6s;
}
.login-picture .login-bubble {
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  font-size: 12px;
  background: #fff;
  padding: 8px 12px;
  box-shadow: 0 5px 12px #76567a18;
}
.video-showcase {
  margin: 48px 0 40px;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(115deg,#f7edff,#fff3f7 66%,#fff9eb);
  border: 1px solid #ead8ed;
  box-shadow: var(--softshadow);
}
.video-showcase-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 19px;
}
.video-showcase-header h2 {
  margin: 7px 0 8px;
  font-size: clamp(26px,3.2vw,37px);
}
.video-showcase-header p {
  margin: 0;
  max-width: 590px;
}
.video-tag {
  background: #fff;
  border: 1px solid #eed9e7;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 900;
  color: #b44b80;
  white-space: nowrap;
}
.video-slot {
  aspect-ratio: 16/9;
  max-height: 490px;
  border-radius: 21px;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e7d6e9;
}
.video-slot iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  color: #8d6c89;
}
.video-empty strong {
  font-size: 20px;
  color: #70536f;
}
.video-art {
  width: 94px;
  height: 94px;
  border-radius: 29px;
  background: linear-gradient(130deg,#fd98be,#a994ee);
  display: grid;
  place-items: center;
  font-size: 41px;
  color: white;
  box-shadow: 0 15px 25px #ad79ac33;
  animation: miralaFloat 4s ease-in-out infinite;
  margin-bottom: 12px;
}
@media(max-width:930px) {
  .studio-welcome {
    gap: 16px;
    padding: 26px;
  }
  .studio-mascot-wrap {
    flex-basis: 165px;
    height: 175px;
  }
  .studio-mascot-wrap .otter-svg {
    width: 172px;
    height: 172px;
  }
  .studio-welcome .welcome-tag {
    display: none;
  }
}
@media(max-width:700px) {
  .benefit-icon {
    height: 66px;
    width: 66px;
    border-radius: 20px;
    margin: 0 16px 0 0;
    grid-row: span 2;
  }
  .benefit-icon svg {
    height: 48px;
    width: 48px;
  }
  .benefit-card {
    display: grid;
    grid-template-columns: 66px minmax(0,1fr);
    align-items: center;
    column-gap: 16px;
    padding: 22px;
  }
  .benefit-card h3 {
    font-size: 19px;
    margin: 0 0 6px;
  }
  .benefit-card p {
    grid-column: 2;
    margin: 0;
    font-size: 13px;
  }
  .chip-icon {
    width: 41px;
    height: 41px;
    font-size: 24px;
  }
  .audience-chips span {
    min-height: 70px;
    padding: 8px 12px;
    gap: 7px;
    font-size: 11px;
  }
  .studio-welcome {
    padding: 23px 21px;
    display: flex;
    flex-wrap: wrap;
  }
  .studio-intro {
    flex: 1 1 235px;
  }
  .studio-hint {
    font-size: 10px;
  }
  .studio-mascot-wrap {
    margin-left: auto;
    flex-basis: 115px;
    height: 120px;
  }
  .studio-mascot-wrap .otter-svg {
    width: 130px;
    height: 130px;
  }
  .login-art .login-picture {
    height: 243px;
  }
  .login-otter {
    height: 210px;
    width: 200px;
    top: -3px;
  }
  .login-otter .otter-svg {
    width: 198px;
    height: 198px;
  }
  .login-craft {
    width: 63px;
    height: 72px;
    top: 57px;
    border-radius: 17px;
  }
  .login-craft svg {
    height: 52px;
    width: 52px;
  }
  .login-craft-left {
    left: 17px;
  }
  .login-craft-right {
    right: 17px;
  }
  .login-star-a {
    left: 74px;
  }
  .login-star-b {
    right: 74px;
  }
  .video-showcase {
    margin: 34px 0;
    padding: 19px;
    border-radius: 22px;
  }
  .video-showcase-header {
    display: block;
  }
  .video-tag {
    display: inline-flex;
    margin-top: 12px;
  }
  .video-slot {
    aspect-ratio: auto;
    min-height: 210px;
    width: 100%;
    min-width: 0;
  }
  .video-empty {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .video-art {
    width: 66px;
    height: 66px;
    border-radius: 22px;
    font-size: 30px;
  }
  .video-empty strong {
    font-size: 16px;
  }
  .video-empty span:last-child {
    font-size: 12px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .studio-mascot-wrap,.login-star,.login-craft,.video-art,.hero-float {
    animation: none!important;
  }
  .benefit-card,.lp-flow article,.audience-chips span,.idea-pills span,.faq-list details {
    transition: none!important;
  }
}
/* v9 patch */
.progress-overview {
  position: sticky;
  top: 82px;
  z-index: 34;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.step-card {
  scroll-margin-top: 190px;
}
@media(max-width:768px) {
  .progress-overview {
    top: 74px;
    padding: 14px 14px 12px;
    border-radius: 16px;
  }
  .progress-overview-top {
    margin-bottom: 8px;
  }
  .progress-track {
    margin: 10px 0 12px;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
  }
  .progress-chip {
    justify-content: flex-start;
    font-size: 10px;
    padding: 8px 9px;
  }
  .step-card {
    scroll-margin-top: 210px;
  }
}
.studio-hint {
  background: #ffffff36;
}
.squishy-mascot-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 215px;
  height: 215px;
  display: grid;
  place-items: center;
  animation: miralaFloat 4.8s ease-in-out infinite;
  filter: drop-shadow(0 18px 18px rgba(61,78,166,.18));
}
.squishy-mascot {
  width: 210px;
  height: 210px;
  display: block;
}
.squishy-mascot.small {
  width: 216px;
  height: 216px;
}
.squishy-spark {
  position: absolute;
  font-size: 26px;
  animation: miralaFloat 3.2s ease-in-out infinite;
}
.spark-a {
  left: 12px;
  top: 20px;
  color: #ffd86f;
}
.spark-b {
  right: 16px;
  top: 34px;
  color: #ff7ab1;
  animation-delay: .8s;
}
.spark-c {
  right: 18px;
  bottom: 26px;
  color: #92d6ff;
  animation-delay: 1.4s;
}
.login-squishy {
  height: 230px;
  width: 240px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  filter: drop-shadow(0 15px 12px rgba(155,112,179,.2));
}
.login-squishy .squishy-mascot {
  width: 208px;
  height: 208px;
}
.proof-pop {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 120;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: min(390px,calc(100vw - 24px));
  padding: 15px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.98);
  border: 1px solid #eadde5;
  box-shadow: 0 18px 40px rgba(91,67,99,.18);
  transform: translateY(22px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease,transform .28s ease;
}
.proof-pop.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.proof-pop-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #f8edc7;
  flex: none;
}
.proof-pop-icon svg {
  width: 34px;
  height: 34px;
}
.proof-pop-body {
  min-width: 0;
}
.proof-pop-title {
  display: block;
  font-size: 12px;
  letter-spacing: .14em;
  color: #42759c;
  font-weight: 1000;
  margin-bottom: 2px;
}
.proof-pop-name {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 1000;
  color: #2b4c74;
}
.proof-pop-text {
  font-size: 13px;
  line-height: 1.5;
  color: #6c8097;
  margin-top: 4px;
}
.proof-pop-time {
  font-size: 12px;
  color: #9ba8b5;
  margin-top: 2px;
}
.proof-pop-close {
  border: 0;
  background: transparent;
  color: #8ea0b1;
  font-size: 28px;
  line-height: 1;
  padding: 2px 0 0;
  flex: none;
  cursor: pointer;
}
.proof-pop-close:hover {
  color: #5d7893;
}
@media(max-width:640px) {
  .proof-pop {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 22px;
  }
  .proof-pop-icon {
    width: 52px;
    height: 52px;
  }
  .proof-pop-name {
    font-size: 17px;
  }
  .proof-pop-text {
    font-size: 12px;
  }
}


/* v10.2 — visual next action after prompt generation */
#copy-prompt.is-ready:not(:disabled) {
  color: #175f48;
  background: linear-gradient(135deg,#d9fbe7,#b7efd1);
  border: 2px solid #7fcbab;
  box-shadow: 0 5px 0 #74b99b, 0 12px 22px rgba(65,155,110,.15);
  font-weight: 1000;
  min-height: 44px;
  padding: 9px 17px;
  animation: miralaCopyHint .85s ease-in-out 2;
}
#copy-prompt.is-ready:not(:disabled):hover {
  background: #b1e9cb;
  box-shadow: 0 7px 0 #74b99b, 0 15px 28px rgba(65,155,110,.2);
}
#copy-prompt.is-ready.is-copied:not(:disabled) {
  animation: none;
  background: #c3f2d9;
  border-color: #6fc69d;
}
@keyframes miralaCopyHint {
  0%,100% { transform: rotate(0) scale(1); }
  35% { transform: rotate(-2deg) scale(1.05); }
  70% { transform: rotate(2deg) scale(1.04); }
}
.copy-next-hint {
  display: none;
  color: #22785a;
  font-size: 12px;
  font-weight: 900;
  margin: 6px 0 0;
}
.copy-next-hint.show { display: block; }
@media (prefers-reduced-motion: reduce) {
  #copy-prompt.is-ready:not(:disabled) { animation: none; }
}


/* Gentle Squishy generation overlay. A successful request stays visible
   for at least ~1 second even when the server responds instantly. */
.magic-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility 0s linear .24s;
}
.magic-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .24s ease, visibility 0s linear 0s;
}
.magic-overlay .magic-modal {
  transform: translateY(10px) scale(.98);
  transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.magic-overlay.is-open .magic-modal {
  transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
  .magic-overlay,
  .magic-overlay.is-open,
  .magic-overlay .magic-modal {
    transition: none;
  }
}
