/* Conversion-focused homepage and signup refinements. */
html { scroll-behavior: smooth; }

.conversion-demo { overflow: hidden; }
.conversion-demo-head { max-width: 820px; }
.conversion-demo-head h2 { text-wrap: balance; }

.walkthrough-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 30px;
  background: linear-gradient(150deg, rgba(17,25,43,.98), rgba(5,12,20,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 34px 90px rgba(0,0,0,.25);
}

.walkthrough-tabs {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border-right: 1px solid rgba(255,255,255,.085);
  background: rgba(4,9,16,.42);
}

.walkthrough-tabs button {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 12px;
  width: 100%;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 18px;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.walkthrough-tabs button:hover { background: rgba(255,255,255,.045); }
.walkthrough-tabs button[aria-selected="true"] {
  border-color: rgba(54,245,155,.25);
  background: linear-gradient(120deg, rgba(139,92,246,.16), rgba(54,245,155,.1));
  box-shadow: inset 0 1px rgba(255,255,255,.055);
  transform: translateX(3px);
}

.walkthrough-tabs button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  color: #71f5c0;
  font-size: 12px;
  font-weight: 900;
}

.walkthrough-tabs button strong { font-size: 14px; line-height: 1.25; }
.walkthrough-tabs button small { color: #8f9baa; font-size: 12px; line-height: 1.4; }

.walkthrough-stage { min-width: 0; }
.walkthrough-chrome {
  min-height: 55px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(255,255,255,.085);
  color: #9da9b8;
  font-size: 12px;
}

.walkthrough-chrome > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.walkthrough-chrome strong { margin-left: 10px; color: #dce4ed; }
.walkthrough-chrome em {
  margin-left: auto;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  color: #7de9be;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.walkthrough-panel {
  min-height: 500px;
  grid-template-columns: minmax(0, .9fr) minmax(330px, 1.1fr);
  gap: clamp(28px, 5vw, 65px);
  align-items: center;
  padding: clamp(30px, 5vw, 64px);
}

.walkthrough-panel.is-active { display: grid; animation: walkthrough-in .35s ease both; }
.walkthrough-panel[hidden] { display: none; }

@keyframes walkthrough-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-status {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  padding: 8px 11px;
  border: 1px solid rgba(54,245,155,.17);
  border-radius: 999px;
  background: rgba(54,245,155,.065);
  color: #84edc4;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.walkthrough-copy h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.walkthrough-copy p { max-width: 530px; margin: 0; font-size: 16px; line-height: 1.68; }
.walkthrough-copy ul { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.walkthrough-copy li { color: #dce5ee; font-size: 14px; font-weight: 700; }
.walkthrough-copy li::before { content: "✓"; margin-right: 9px; color: #36f59b; font-weight: 950; }
.walkthrough-copy .btn { margin-top: 25px; }

.demo-upload-card,
.demo-analysis-card,
.demo-result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  background: radial-gradient(circle at 85% 8%, rgba(54,245,155,.1), transparent 35%), linear-gradient(145deg, rgba(255,255,255,.065), rgba(5,11,20,.78));
  box-shadow: inset 0 1px rgba(255,255,255,.055), 0 28px 65px rgba(0,0,0,.2);
}

.demo-upload-card {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 315px;
  padding: 32px;
  text-align: center;
}

.demo-upload-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px dashed rgba(123,104,246,.46);
  border-radius: 18px;
}

.demo-upload-card > * { position: relative; z-index: 1; }
.demo-upload-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 17px;
  border: 1px solid rgba(139,92,246,.45);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(139,92,246,.35), rgba(79,128,255,.19));
  color: #fff;
  font-size: 29px;
  font-weight: 900;
}

.demo-upload-card strong { color: #fff; font-size: 16px; }
.demo-upload-card small { margin-top: 8px; color: #8f9baa; }
.demo-file-progress { width: min(310px, 80%); height: 7px; margin: 24px 0 10px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.07); }
.demo-file-progress span { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7b34f6, #36f59b); }
.demo-upload-card em { color: #65e8b5; font-size: 12px; font-style: normal; font-weight: 850; }

.demo-analysis-card { padding: 25px; }
.demo-analysis-head { display: flex; justify-content: space-between; gap: 15px; color: #93a0ae; font-size: 12px; }
.demo-analysis-head strong { color: #72f3c2; }
.demo-timeline { position: relative; height: 8px; margin: 23px 0 27px; border-radius: 999px; background: linear-gradient(90deg, rgba(139,92,246,.45), rgba(79,128,255,.35), rgba(54,245,155,.35)); }
.demo-timeline i { position: absolute; top: 50%; width: 14px; height: 14px; border: 3px solid #0a111d; border-radius: 50%; background: #61efb8; transform: translate(-50%,-50%); box-shadow: 0 0 0 3px rgba(97,239,184,.13); }
.demo-moment { display: grid; grid-template-columns: 37px 1fr auto; gap: 13px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.07); }
.demo-moment b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(139,92,246,.14); color: #ae90ff; font-size: 11px; }
.demo-moment span { display: grid; gap: 3px; }
.demo-moment span strong { color: #f4f7fa; font-size: 13px; }
.demo-moment span small { color: #7f8c9b; font-size: 11px; }
.demo-moment em { display: grid; place-items: center; width: 39px; height: 29px; border-radius: 999px; background: rgba(54,245,155,.1); color: #6aefbb; font-size: 12px; font-style: normal; font-weight: 900; }

.demo-result-card { width: min(330px, 100%); min-height: 405px; justify-self: center; background: #080e17; }
.demo-result-card img { width: 100%; height: 405px; display: block; object-fit: cover; object-position: center 38%; filter: saturate(.86) contrast(1.05) brightness(.78); }
.demo-caption { position: absolute; left: 10%; right: 10%; top: 52%; color: #fff; font-size: 22px; font-weight: 950; line-height: 1.08; text-align: center; text-shadow: 0 3px 12px #000, 0 1px 2px #000; text-transform: uppercase; }
.demo-result-meta { position: absolute; left: 14px; right: 14px; bottom: 14px; display: flex; justify-content: center; gap: 7px; }
.demo-result-meta span { padding: 7px 9px; border: 1px solid rgba(255,255,255,.13); border-radius: 999px; background: rgba(5,9,14,.74); color: #dce5ee; font-size: 10px; font-weight: 850; backdrop-filter: blur(10px); }
.conversion-demo-note { margin: 17px 0 0; color: #82909e; font-size: 13px; font-weight: 700; text-align: center; }

.conversion-faq .faq-shell { max-width: 1050px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.faq-grid details { border: 1px solid rgba(255,255,255,.09); border-radius: 19px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(7,13,22,.82)); box-shadow: inset 0 1px rgba(255,255,255,.045); }
.faq-grid summary { position: relative; padding: 20px 48px 20px 21px; color: #f6f8fb; font-size: 15px; font-weight: 850; cursor: pointer; list-style: none; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary::after { content: "+"; position: absolute; top: 50%; right: 20px; color: #65e8b5; font-size: 24px; font-weight: 500; transform: translateY(-50%); }
.faq-grid details[open] summary::after { content: "−"; }
.faq-grid details p { margin: -4px 0 0; padding: 0 21px 21px; font-size: 14px; line-height: 1.65; }

body.auth-page.conversion-auth .auth-shell { padding-top: 34px; }
body.auth-page.conversion-auth .auth-card { padding: clamp(26px, 3vw, 40px); }
body.auth-page.conversion-auth .auth-card-head { margin-bottom: 18px; }
body.auth-page.conversion-auth .auth-card h2 { margin-top: 13px; }
body.auth-page.conversion-auth .auth-card-head p { max-width: 470px; }
body.auth-page.conversion-auth .auth-form { gap: 13px; }
body.auth-page.conversion-auth .auth-input { min-height: 52px; }
body.auth-page.conversion-auth .auth-switch { margin-top: 16px; padding-top: 16px; }

@media (max-width: 900px) {
  .walkthrough-shell { grid-template-columns: 1fr; }
  .walkthrough-tabs { grid-template-columns: repeat(3, minmax(0,1fr)); padding: 14px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.085); }
  .walkthrough-tabs button { grid-template-columns: 32px 1fr; padding: 12px; }
  .walkthrough-tabs button > span { width: 32px; height: 32px; }
  .walkthrough-tabs button small { display: none; }
  .walkthrough-tabs button[aria-selected="true"] { transform: translateY(2px); }
}

@media (max-width: 700px) {
  body.public-v2 nav.unified-site-nav .nav-links { min-width: 0; }
  .walkthrough-tabs { grid-template-columns: 1fr; }
  .walkthrough-tabs button small { display: block; }
  .walkthrough-panel { min-height: 0; grid-template-columns: 1fr; padding: 28px 19px; }
  .walkthrough-chrome { padding: 0 16px; }
  .walkthrough-chrome strong { overflow: hidden; max-width: 145px; text-overflow: ellipsis; white-space: nowrap; }
  .walkthrough-chrome em { font-size: 9px; }
  .walkthrough-copy h3 { font-size: 36px; }
  .demo-upload-card { min-height: 270px; padding: 26px 18px; }
  .demo-analysis-card { padding: 19px; }
  .demo-result-card { width: min(290px, 100%); }
  .demo-result-card img { height: 390px; }
  .faq-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .walkthrough-panel.is-active { animation: none; }
}
