/* FaceLab Studio — styles.css v2
   Replace existing styles.css with this file.
   Changes from v1:
   - --cta-primary now uses --ink (was --coral) for gender-neutral feel
   - Coral demoted to accent secondary
   - Carousel cards locked to aspect-ratio: 3/4
   - Amber promoted to accent for progress dots & highlights
   - Dark mode CSS variables added
   - Trust strip styling
   - 6-card carousel adjustments
*/

/* =============================================================================
   IMPORTS & TOKENS
   ============================================================================= */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  /* Palette */
  --ink: #172033;
  --paper: #f2fbff;
  --panel: #ffffff;
  --muted: #657386;
  --teal: #008b8b;
  --coral: #ff4d6d;
  --amber: #ffd23f;
  --leaf: #6ff3cf;
  --hot: #ff2bd6;
  --electric: #7c3cff;
  --acid: #c7ff2e;
  --cyan: #20d9ff;
  --peach-pop: #ff9f6e;
  --sage: #dff8ee;
  --blue: #d9edff;
  --lilac: #eee2ff;
  --rose: #ffe2eb;
  --sand: #fff1a8;
  --mint: #d4f8ff;

  /* Semantic */
  --bg-page: var(--paper);
  --bg-panel: var(--panel);
  --bg-soft: var(--sage);
  --text-primary: var(--ink);
  --text-secondary: var(--muted);
  --accent-primary: var(--teal);
  --accent-secondary: var(--coral);
  --accent-highlight: var(--amber);

  --border-color: var(--ink);
  --border-strength: 2px;
  --shadow-tactile: 7px 7px 0 var(--ink);
  --shadow-tactile-active: 3px 3px 0 var(--ink);

  /* Type */
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", "DM Sans", system-ui, sans-serif;

  /* Radius */
  --radius-card: 22px 10px 22px 10px;
  --radius-soft: 18px;
  --radius-pill: 999px;

  /* Spacing */
  --pad-xs: 6px;
  --pad-sm: 10px;
  --pad-md: 16px;
  --pad-lg: 24px;
  --pad-xl: 36px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #101629;
    --bg-panel: #172033;
    --bg-soft: #243049;
    --text-primary: #f0f4fa;
    --text-secondary: #a0aac0;
    --border-color: #f0f4fa;
    --shadow-tactile: 4px 4px 0 #000;
    --shadow-tactile-active: 2px 2px 0 #000;
  }
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-primary);
  background:
    linear-gradient(135deg, rgba(255, 43, 214, 0.13), transparent 34%),
    linear-gradient(315deg, rgba(32, 217, 255, 0.18), transparent 36%),
    repeating-linear-gradient(90deg, rgba(23, 32, 51, 0.06) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(0deg, rgba(23, 32, 51, 0.045) 0 1px, transparent 1px 24px),
    var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: stretch;
  justify-content: center;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea {
  font-family: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =============================================================================
   APP CONTAINER
   ============================================================================= */

#app {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background:
    linear-gradient(145deg, rgba(199, 255, 46, 0.18), transparent 32%),
    linear-gradient(25deg, rgba(255, 77, 109, 0.12), transparent 38%),
    var(--bg-page);
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 768px) {
  body {
    padding: 24px;
    background:
      linear-gradient(115deg, rgba(255, 210, 63, 0.42), transparent 35%),
      linear-gradient(245deg, rgba(124, 60, 255, 0.34), transparent 40%),
      repeating-linear-gradient(135deg, rgba(23, 32, 51, 0.08) 0 2px, transparent 2px 18px),
      #eef8ff;
  }
  #app {
    border: var(--border-strength) solid var(--border-color);
    border-radius: 28px;
    box-shadow: 14px 14px 0 rgba(23, 32, 51, 0.9);
    margin: auto;
    height: 88vh;
    overflow-y: auto;
  }
}

/* =============================================================================
   SCREEN BASE
   ============================================================================= */

.screen {
  padding: var(--pad-lg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--pad-md);
  position: relative;
  isolation: isolate;
}

@media (min-width: 768px) {
  .screen {
    min-height: 100%;
  }
}

/* =============================================================================
   BRAND
   ============================================================================= */

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

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--ink), var(--electric), var(--hot));
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 9px 12px;
}

.brand-pill,
.hero-kicker,
.preview-badge,
.signal-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-pill);
  background: var(--acid);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

/* =============================================================================
   HERO (Landing)
   ============================================================================= */

.hero {
  margin-top: var(--pad-md);
  display: grid;
  gap: var(--pad-md);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 44px;
  line-height: 0.96;
  letter-spacing: 0;
  color: var(--text-primary);
  text-wrap: balance;
}

@supports (-webkit-background-clip: text) {
  .hero-title {
    background: linear-gradient(90deg, var(--ink), var(--electric), var(--hot), var(--teal));
    -webkit-background-clip: text;
    color: transparent;
  }
}

.hero-sub {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 600;
}

/* =============================================================================
   CAROUSEL
   ============================================================================= */

.carousel {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--pad-md);
  margin-top: var(--pad-md);
  min-height: 0;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  gap: var(--pad-md);
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  background: var(--bg-panel);
  border: var(--border-strength) solid var(--border-color);
  border-radius: 28px 12px 28px 12px;
  box-shadow: var(--shadow-tactile);
  overflow: hidden;
  display: block;
  transform: none;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.carousel-card.is-active {
  box-shadow: 9px 9px 0 var(--ink);
}

.carousel-card-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(135deg, rgba(111, 243, 207, 0.18), transparent 32%),
    linear-gradient(315deg, rgba(32, 217, 255, 0.16), transparent 36%),
    var(--panel);
  position: relative;
  overflow: hidden;
  padding: 8px;
}

.carousel-card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(1.02) contrast(1.01);
  opacity: 1;
  pointer-events: auto;
}

.carousel-card-portrait::after {
  content: none;
}

.card-stamp,
.card-score {
  position: absolute;
  z-index: 2;
  border: var(--border-strength) solid var(--border-color);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
}

.card-stamp {
  top: 16px;
  left: 14px;
  border-radius: var(--radius-pill);
  background: var(--acid);
  padding: 8px 10px;
  font-size: 12px;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.card-score {
  right: 14px;
  bottom: 14px;
  border-radius: 16px 8px 16px 8px;
  background: var(--amber);
  padding: 12px 12px 10px;
  font-size: 28px;
}

.carousel-card-meta {
  display: none;
}

.carousel-card-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--text-primary);
  letter-spacing: 0;
}

.carousel-card-caption {
  margin-top: 4px;
  max-width: 290px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.carousel-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--panel);
  border: 1.5px solid var(--border-color);
  opacity: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.dot-active {
  background: var(--amber);
  opacity: 1;
  width: 30px;
  border-radius: var(--radius-pill);
}

.carousel-arrow {
  display: none;
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px;
  height: 42px;
  place-items: center;
  border: var(--border-strength) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--ink);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.carousel-arrow-prev {
  left: -18px;
}

.carousel-arrow-next {
  right: -18px;
}

/* =============================================================================
   CTA
   ============================================================================= */

.cta-row {
  display: flex;
  flex-direction: column;
  gap: var(--pad-sm);
  margin-top: auto;
}

.cta-primary {
  width: 100%;
  padding: var(--pad-md) var(--pad-lg);
  background: linear-gradient(90deg, var(--ink), var(--electric));
  color: #fff;
  border: var(--border-strength) solid var(--border-color);
  border-radius: 18px 8px 18px 8px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  box-shadow: var(--shadow-tactile);
  transition: all 0.15s;
  letter-spacing: 0;
}

.cta-primary:hover {
  transform: translate(-1px, -1px);
}

.cta-primary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-tactile-active);
}

.cta-primary.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cta-pay {
  background: linear-gradient(90deg, var(--hot), var(--electric), var(--teal));
  font-size: 17px;
}

.cta-secondary {
  width: 100%;
  padding: var(--pad-md) var(--pad-lg);
  background: var(--acid);
  color: var(--ink);
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
}

.cta-secondary:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-tactile-active);
}

.link-back, .link-skip {
  background: none;
  border: none;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: var(--pad-sm) 0;
}

.link-back:hover, .link-skip:hover {
  color: var(--text-primary);
}

/* =============================================================================
   QUIZ
   ============================================================================= */

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--pad-md);
}

.progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--pad-sm);
}

.progress-track {
  flex: 1;
  height: 8px;
  background: var(--panel);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: var(--border-strength) solid var(--border-color);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--acid), var(--amber), var(--hot));
  transition: width 0.3s;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.question {
  margin-top: var(--pad-lg);
  display: flex;
  flex-direction: column;
  gap: var(--pad-md);
}

.question-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: 0;
  text-wrap: balance;
}

.question-helper {
  font-size: 13px;
  color: var(--text-secondary);
}

.scale-hints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: var(--pad-sm) var(--pad-md);
  background: var(--panel);
  border-radius: var(--radius-card);
  border: var(--border-strength) solid var(--border-color);
  box-shadow: 4px 4px 0 var(--ink);
}

.scale-hint {
  font-size: 12px;
  color: var(--text-secondary);
}

.scale-hint strong {
  color: var(--text-primary);
  font-family: var(--font-display);
}

.options {
  display: flex;
  flex-direction: column;
  gap: var(--pad-sm);
}

.options-multi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pad-sm);
}

.options-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--pad-sm);
}

.option {
  position: relative;
  width: 100%;
  padding: var(--pad-md);
  background: var(--bg-panel);
  color: var(--text-primary);
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tactile);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  transition: all 0.15s;
  line-height: 1.3;
  overflow: hidden;
}

.option:nth-child(5n + 1) { background: var(--rose); }
.option:nth-child(5n + 2) { background: var(--mint); }
.option:nth-child(5n + 3) { background: var(--sand); }
.option:nth-child(5n + 4) { background: var(--lilac); }
.option:nth-child(5n + 5) { background: var(--blue); }

.options-multi .option,
.options-scale .option {
  text-align: center;
}

.options-scale .option {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  padding: var(--pad-sm);
}

.option:hover {
  transform: translate(-1px, -1px);
}

.option:active {
  transform: translate(2px, 2px);
  box-shadow: var(--shadow-tactile-active);
}

.option.option-selected {
  background: linear-gradient(135deg, var(--hot), var(--electric));
  color: var(--ink);
  border-color: var(--ink);
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 4px var(--acid), var(--shadow-tactile-active);
}

.option.option-selected {
  color: #ffffff;
  padding-right: 58px;
}

.option.option-selected::after {
  content: "✓";
  position: absolute;
  top: 9px;
  right: 10px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: var(--border-strength) solid var(--ink);
  border-radius: 999px;
  background: var(--acid);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.options-scale .option.option-selected {
  padding-right: var(--pad-sm);
  padding-top: 30px;
}

.options-scale .option.option-selected::after {
  top: 5px;
  right: 50%;
  width: 22px;
  height: 22px;
  font-size: 13px;
  transform: translateX(50%);
  box-shadow: 2px 2px 0 var(--ink);
}

.options-multi .option-selected::before {
  content: "dipilih";
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.quiz-footer {
  display: flex;
  flex-direction: column;
  gap: var(--pad-sm);
  margin-top: auto;
  align-items: stretch;
}

/* =============================================================================
   PHOTO UPLOAD
   ============================================================================= */

.photo-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--pad-md);
  margin-top: var(--pad-md);
}

.photo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text-primary);
}

.photo-helper {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--pad-md);
  background: var(--panel);
  border-radius: var(--radius-soft);
  border: var(--border-strength) solid var(--border-color);
  box-shadow: 5px 5px 0 var(--ink);
}

.photo-helper li {
  font-size: 13px;
  color: var(--text-primary);
  padding-left: 18px;
  position: relative;
}

.photo-helper li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: var(--accent-primary);
  font-weight: 700;
}

.photo-helper-footer {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
}

.photo-uploader {
  margin-top: var(--pad-md);
}

.photo-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--pad-md);
  padding: var(--pad-xl) var(--pad-md);
  background:
    repeating-linear-gradient(135deg, rgba(23, 32, 51, 0.08) 0 2px, transparent 2px 16px),
    var(--acid);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: all 0.15s;
}

.photo-upload-area:hover {
  background: var(--bg-soft);
}

.photo-upload-icon {
  font-size: 40px;
}

.photo-upload-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
}

.photo-preview-wrap {
  position: relative;
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-tactile);
  overflow: hidden;
}

.photo-preview {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.photo-clear {
  position: absolute;
  top: var(--pad-sm);
  right: var(--pad-sm);
  padding: 6px 12px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}

.trust-strip {
  padding: var(--pad-sm) var(--pad-md);
  background: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 11px;
  color: #ffffff;
  text-align: center;
  border: 1px solid var(--border-color);
}

/* =============================================================================
   PAYWALL
   ============================================================================= */

.paywall-content {
  display: flex;
  flex-direction: column;
  gap: var(--pad-md);
}

.paywall-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--text-primary);
  margin-top: var(--pad-md);
}

.paywall-pitch {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-primary);
  font-weight: 500;
}

.paywall-body {
  font-size: 13px;
  color: var(--text-secondary);
}

.paywall-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: var(--pad-md);
  background:
    linear-gradient(135deg, rgba(199, 255, 46, 0.72), rgba(32, 217, 255, 0.28)),
    var(--panel);
  border-radius: var(--radius-card);
  border: var(--border-strength) solid var(--border-color);
  box-shadow: 6px 6px 0 var(--ink);
}

.paywall-benefits li {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.4;
}

.comparison {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-soft);
  overflow: hidden;
  font-size: 12px;
}

.comparison th {
  padding: var(--pad-sm);
  background: linear-gradient(90deg, var(--ink), var(--electric));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-align: center;
  font-size: 11px;
}

.comparison th:first-child {
  text-align: left;
}

.comparison td {
  padding: var(--pad-sm);
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-panel);
}

.comparison td.feature-name {
  text-align: left;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--mint);
}

.paywall-form {
  display: flex;
  flex-direction: column;
  gap: var(--pad-sm);
  margin-top: var(--pad-md);
}

.input {
  width: 100%;
  padding: var(--pad-md);
  background: var(--bg-panel);
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-soft);
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 15px;
  color: var(--text-primary);
}

.input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--mint);
}

.input::placeholder {
  color: var(--text-secondary);
}

.trust-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: var(--pad-sm);
}

.trust-item {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
}

.paywall-message {
  margin-top: var(--pad-md);
  padding: var(--pad-md);
  background: var(--amber);
  border: var(--border-strength) solid var(--border-color);
  border-radius: var(--radius-soft);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

/* =============================================================================
   ANALYZING & RESULT
   ============================================================================= */

.analyzing {
  justify-content: center;
}

.analysis-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: var(--pad-md);
}

.analysis-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.analysis-subtitle {
  max-width: 330px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.analysis-photo {
  position: relative;
  width: min(100%, 280px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  align-self: center;
  border: 3px solid var(--ink);
  border-radius: 28px 12px 28px 12px;
  background: #111827;
  box-shadow: 12px 12px 0 var(--ink);
  transform: rotate(-2deg);
}

.analysis-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.analysis-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 14px),
    linear-gradient(180deg, transparent, rgba(23, 32, 51, 0.24));
}

.scan-line {
  position: absolute;
  z-index: 2;
  top: -20%;
  left: 0;
  width: 100%;
  height: 26%;
  background: linear-gradient(180deg, transparent, rgba(199, 255, 46, 0.85), transparent);
  animation: scanPhoto 1.25s ease-in-out infinite;
}

.analysis-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--pad-sm);
}

.analysis-steps span {
  border: var(--border-strength) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--panel);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 9px 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

@keyframes scanPhoto {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(470%); opacity: 0; }
}

.result-screen {
  gap: var(--pad-lg);
}

.result-brand {
  justify-content: flex-start;
}

.result-stage {
  display: grid;
  gap: var(--pad-sm);
  justify-items: center;
}

.result-phone-card {
  position: relative;
  width: min(100%, 292px);
  overflow: hidden;
  border: 4px solid #0f1421;
  border-radius: 31px 16px 31px 16px;
  background: #0f1117;
  box-shadow:
    8px 8px 0 #0f1421,
    14px 14px 0 rgba(23, 32, 51, 0.18);
  transform: rotate(-1.4deg);
}

.result-phone-card::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  left: 13%;
  width: 74%;
  height: 16px;
  border-radius: 0 0 14px 14px;
  background: #0f1117;
}

.result-photo {
  position: relative;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: #151827;
}

.result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.result-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(15, 17, 23, 0), rgba(15, 17, 23, 0.95));
}

.result-card-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  gap: 6px;
  padding: 20px 22px 22px;
  color: #ffffff;
}

.result-score-row {
  display: grid;
  gap: 3px;
}

.result-score-row strong {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.result-score-row span {
  color: var(--acid);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-card-footer p {
  color: #ffc8f5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.result-dot {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(23, 32, 51, 0.2);
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.28);
}

.result-copy-card {
  border: var(--border-strength) solid var(--ink);
  border-radius: 22px 10px 22px 10px;
  background: var(--panel);
  box-shadow: 7px 7px 0 var(--ink);
  padding: 20px;
}

.result-copy-card p {
  color: var(--text-primary);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
}

.result-demo-note {
  border: 1.5px solid rgba(23, 32, 51, 0.18);
  border-radius: var(--radius-soft);
  background: rgba(255, 255, 255, 0.72);
  padding: var(--pad-sm) var(--pad-md);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.result-offer {
  display: flex;
  flex-direction: column;
  gap: var(--pad-md);
  margin-top: var(--pad-md);
}

.result-offer h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 0.98;
}

.result-offer > p {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.result-comparison {
  box-shadow: 7px 7px 0 var(--ink);
}

.free-note {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

/* =============================================================================
   FREE PREVIEW
   ============================================================================= */

.free-preview-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--pad-md);
}

.preview-badge {
  margin-top: var(--pad-md);
  background: var(--hot);
  color: #ffffff;
}

.free-preview-headline {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.free-preview-intro {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.signal-card,
.free-card,
.preview-note {
  border: var(--border-strength) solid var(--border-color);
  box-shadow: var(--shadow-tactile);
}

.signal-card {
  display: grid;
  gap: var(--pad-md);
  border-radius: 28px 12px 28px 12px;
  background:
    linear-gradient(135deg, rgba(255, 210, 63, 0.88), rgba(255, 43, 214, 0.22)),
    var(--panel);
  padding: var(--pad-lg);
}

.signal-card h3 {
  margin-top: var(--pad-sm);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
}

.signal-card p,
.free-card p,
.preview-note {
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--pad-sm);
}

.free-card {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-card);
  padding: var(--pad-md);
}

.free-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.free-card strong {
  display: block;
  margin-top: var(--pad-sm);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
}

.color-card {
  background: var(--acid);
}

.move-card {
  background: var(--cyan);
}

.locked-card {
  grid-column: 1 / -1;
  min-height: 120px;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0 2px, transparent 2px 16px),
    var(--lilac);
}

.preview-note {
  border-radius: var(--radius-soft);
  background: var(--panel);
  padding: var(--pad-md);
}

/* =============================================================================
   MEDIA QUERIES
   ============================================================================= */

@media (max-width: 360px) {
  .options-scale {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-title {
    font-size: 38px;
  }

  .question-text {
    font-size: 24px;
  }
}

@media (min-width: 768px) {
  .carousel-arrow {
    display: grid;
  }
}
