/* ============================================================
   Imobiturbo Design System — Core foundations
   Colors + Type tokens (base + semantic)
   ============================================================ */

@font-face {
  font-family: "Futura LT Cond";
  src: url("FONTS/FuturaLT-CondExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand colors */
  --it-lime:        #BFD730;   /* Pantone 13-0550 TCX Lime Punch */
  --it-lime-hi:     #D2E854;   /* hover / lifted */
  --it-lime-lo:     #A6BC1F;   /* press / darker accent */
  --it-lime-ink:    #1A1E03;   /* readable text-on-lime */

  /* Neutral scale — anchored at true black */
  --it-black:       #000000;
  --it-ink:         #0A0A0A;   /* primary surface */
  --it-ink-2:       #141414;   /* raised surface */
  --it-ink-3:       #1F1F1F;   /* card on dark */
  --it-ink-4:       #2A2A2A;   /* border on dark */
  --it-ink-5:       #3A3A3A;   /* divider on dark */

  --it-fog-1:       #6C6C6C;   /* muted text on dark */
  --it-fog-2:       #9C9C9C;   /* secondary on light */
  --it-fog-3:       #CCCCCC;   /* hairlines on light */

  --it-white:       #FFFFFF;

  /* Semantic accents */
  --it-success:     #6FD16F;
  --it-danger:      #FF5A4E;
  --it-warning:     #FFB020;
  --it-info:        #6FA8FF;

  /* Foreground */
  --fg-1:           var(--it-white);    /* primary text */
  --fg-2:           var(--it-fog-3);    /* secondary text */
  --fg-3:           var(--it-fog-1);    /* muted text */
  --fg-on-lime:     var(--it-black);    /* always black on lime */

  /* Background */
  --bg-0:           var(--it-black);    /* canvas background */
  --bg-1:           var(--it-ink);      /* card / container background */
  --bg-2:           var(--it-ink-2);    /* raised container background */
  --bg-3:           var(--it-ink-3);    /* inner cards background */

  /* Accent */
  --accent:         var(--it-lime);
  --accent-hover:   var(--it-lime-hi);
  --accent-press:   var(--it-lime-lo);

  /* Border / divider */
  --border-1:       var(--it-ink-4);    /* border on dark */
  --border-2:       var(--it-ink-5);

  /* Focus */
  --focus-ring:     0 0 0 3px rgba(191, 215, 48, 0.45);

  /* Typography fonts */
  --font-display:   "Futura LT Cond", "Barlow Condensed", "Oswald", system-ui, sans-serif;
  --font-body:      "Inter", "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --font-mono:      "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Typography scale */
  --fs-xs:    11px;
  --fs-sm:    13px;
  --fs-base:  15px;
  --fs-md:    17px;
  --fs-lg:    20px;
  --fs-xl:    26px;
  --fs-2xl:   34px;
  --fs-3xl:   46px;
  --fs-4xl:   64px;
  --fs-5xl:   88px;
  --fs-6xl:   128px;

  /* Line heights */
  --lh-tight: 0.92;
  --lh-snug:  1.05;
  --lh-base:  1.45;
  --lh-loose: 1.65;

  /* Letter tracking */
  --tracking-display: -0.04em;
  --tracking-eyebrow: 0.12em;
  --tracking-tight:   -0.02em;

  /* Corner radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 0 rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.4);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.5), 0 8px 32px rgba(0,0,0,0.3);
  --shadow-3: 0 16px 48px rgba(0,0,0,0.7);
  --shadow-lime-glow: 0 8px 24px rgba(191, 215, 48, 0.25);

  /* Motion */
  --ease-out:    cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-snap:   cubic-bezier(0.2, 1.2, 0.4, 1);
  
  --dur-quick: 120ms;
  --dur-base:  200ms;
  --dur-slow:  360ms;
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--fg-1);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.form-wrapper {
  width: 100%;
  max-width: 400px;
  height: 100vh;
  height: 100svh;
  position: relative;
}

.form-card {
  background: var(--bg-1);
  border-left: 1px solid var(--border-1);
  border-right: 1px solid var(--border-1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}

/* Back button */
.btn-back {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 10;
  width: 36px;
  height: 36px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  cursor: pointer;
  color: var(--fg-2);
  border-radius: 50%;
  transition: all var(--dur-base) var(--ease-out);
}

.btn-back:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-3);
}

.btn-back.visible {
  display: flex;
}

/* Header */
.form-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0 28px; /* Increased bottom spacing to let content breathe */
  gap: 8px;
  position: relative;
  z-index: 2;
  background: transparent;
  flex-shrink: 0;
}

.header-icon {
  position: relative;
  width: 44px;
  height: 44px;
  background: var(--bg-2);
  border: 1.5px solid var(--border-1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.header-icon-badge {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.header-icon-badge--green {
  background: var(--accent);
  border: 2px solid var(--bg-1);
}

.header-title {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--fg-1);
}

.header-badge {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--accent);
  background: rgba(191, 215, 48, 0.08);
  border: 1px solid rgba(191, 215, 48, 0.25);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

/* Progress Bar */
.progress-bar-track {
  width: 100%;
  height: 4px;
  background: var(--border-1);
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  transition: width var(--dur-slow) var(--ease-out);
}

/* Step Content Container */
.step-content {
  padding: 20px 24px 0; /* Reduced top padding to save vertical space */
  flex: 1;
  overflow-y: auto;
  scrollbar-width: none;
  position: relative;
  display: flex;
  flex-direction: column;
}

.step-content::-webkit-scrollbar {
  display: none;
}

body.is-offer-step {
  overflow-y: auto;
  align-items: flex-start;
}

body.is-offer-step .form-wrapper {
  height: auto;
  min-height: 100vh;
}

body.is-offer-step .form-card {
  min-height: 100vh;
  height: auto;
  overflow: visible;
}

body.is-offer-step .step-content {
  overflow: visible;
  height: auto;
  min-height: 100vh;
}

body.is-welcome-step .form-card,
body.is-welcome-step .step-content {
  overflow: visible !important;
}

body.is-offer-step .step {
  min-height: auto;
}

.step {
  display: none;
  flex-direction: column;
  flex: 1 0 auto; /* Grow to fill space, but never shrink below content height */
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
  padding-bottom: 24px; /* Minimum breathing room before the footer when scrolling */
}

.step.active {
  display: flex;
  opacity: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  line-height: var(--lh-snug);
  color: var(--fg-1);
  margin-bottom: 12px; /* Increased margin */
  text-align: center;
}

.step-subtitle {
  font-size: var(--fs-base);
  color: var(--fg-2);
  margin-bottom: 32px; /* Increased margin to let the title breathe */
  text-align: center;
  line-height: var(--lh-base);
}

/* Welcome Step Special visual */
.welcome-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  width: 100%;
  padding-bottom: 24px;
}

.welcome-hero {
  text-align: center;
  margin-top: 10px;
}

.welcome-logo-wrap {
  width: 100%;
  max-width: 160px;
  margin: 0 auto 12px; /* Reduced margin */
  display: block;
}

.welcome-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.welcome-kicker {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  margin-bottom: 16px; /* Increased margin */
  background: rgba(191, 215, 48, 0.08);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--fg-1);
  line-height: var(--lh-snug);
  margin-bottom: 12px; /* Reduced margin */
}

.text-accent {
  color: var(--accent);
}

.welcome-subtitle-text {
  font-size: var(--fs-md);
  color: var(--fg-2);
  line-height: var(--lh-base);
  padding: 0 10px;
}

.welcome-visual-wrap {
  margin: 12px 0; /* Reduced margin */
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.welcome-visual-inner {
  position: relative;
  width: 100%;
  max-width: 210px;
  aspect-ratio: 3 / 4; /* Portrait 3:4 format globally */
  display: flex;
  justify-content: center;
  border-radius: var(--radius-lg);
}

.welcome-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-1);
  box-shadow: var(--shadow-2);
}

.thought-bubble {
  position: absolute;
  top: 25px; /* Vertically aligned with specialist's face */
  right: -80px; /* Shifted way to the right to clear his face */
  background: #FFFFFF;
  color: #141414;
  border: 1.5px solid #FFFFFF;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  max-width: 115px; /* Slightly narrower to fit comfortably near the edge */
  box-shadow: var(--shadow-2);
  pointer-events: none;
  animation: float-bubble 3s ease-in-out infinite alternate;
  z-index: 15;
}

.thought-bubble::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 15px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  display: block;
}

.thought-bubble::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  display: block;
}

@keyframes float-bubble {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.welcome-funnel-svg {
  max-width: 260px;
  display: block;
}

.welcome-funnel-svg path, 
.welcome-funnel-svg line {
  stroke: var(--border-1);
}

.welcome-funnel-svg path[fill] {
  fill: rgba(255, 255, 255, 0.01);
}

.welcome-footer {
  width: 100%;
  margin-top: 4px;
}

/* Options Lists */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Increased gap between buttons */
  padding-bottom: 40px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 16px 20px; /* Increased padding for larger tap target */
  cursor: pointer;
  text-align: left;
  transition: all var(--dur-base) var(--ease-out);
  font-size: var(--fs-base);
  font-family: var(--font-body);
  color: var(--fg-1);
  box-shadow: var(--shadow-1);
}

.option-btn:hover {
  border-color: var(--accent);
  background: var(--bg-3);
  transform: translateY(-1px);
}

.option-btn.selected {
  border-color: var(--accent);
  background: var(--bg-3);
  font-weight: 600;
}

.option-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  color: var(--accent);
}

.option-label {
  flex: 1;
}

.option-arrow {
  width: 20px;
  height: 20px;
  background: var(--border-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

.option-arrow::after {
  content: '›';
  font-size: 14px;
  line-height: 1;
}

/* Multi-select Grid Chips */
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* Increased gap */
  justify-content: center;
  margin-top: 8px;
  padding-bottom: 20px;
}

.option-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  padding: 12px 18px; /* Increased padding */
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--fg-1);
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-1);
}

.option-chip:hover {
  border-color: var(--accent);
}

.option-chip.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--fg-on-lime);
  font-weight: 600;
}

.option-chip .option-icon {
  color: inherit;
}

/* Inputs styling */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* Generous gap between input fields and elements */
  margin-top: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Increased gap */
  width: 100%;
}

.input-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--fg-2);
  padding-left: 2px;
}

.url-input {
  width: 100%;
  padding: 16px; /* Increased padding */
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--fg-1);
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-1);
}

.url-input:focus {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.url-input.input-error {
  border-color: var(--it-danger);
  background: rgba(255, 90, 78, 0.03);
}

.field-error {
  display: none;
  font-size: var(--fs-sm);
  color: var(--it-danger);
  font-weight: 500;
  margin-top: 4px;
  padding-left: 4px;
}

.field-error.visible {
  display: block;
}

/* Buttons style */
.btn-continuar, .btn-liberar {
  width: 100%;
  padding: 20px 24px; /* Slightly taller */
  background: var(--accent);
  color: var(--fg-on-lime);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lime-glow);
}

.btn-continuar:disabled {
  background: var(--border-1);
  color: var(--fg-3);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-continuar:not(:disabled):hover, .btn-liberar:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-continuar:not(:disabled):active, .btn-liberar:active {
  background: var(--accent-press);
  transform: translateY(0);
}

/* Step 11 Multi select and chips styling */
.imob-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 20px; /* Increased padding */
  display: flex;
  flex-direction: column;
  gap: 20px; /* Increased gap */
  box-shadow: var(--shadow-1);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Increased gap */
}

.chip-select {
  padding: 10px 16px; /* Increased padding */
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  color: var(--fg-2);
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
}

.chip-select:hover {
  border-color: var(--accent);
  color: var(--fg-1);
}

.chip-select.selected {
  border-color: var(--accent);
  background: rgba(191, 215, 48, 0.08);
  color: var(--accent);
  font-weight: 600;
}

/* Lead Capture security footer note */
.lead-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px; /* Increased space */
  font-size: var(--fs-sm);
  color: var(--fg-3);
}

/* Loading step radar scanner animation */
.s0-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 24px;
  gap: 20px; /* Increased gap */
  text-align: center;
}

.s-web-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: 16px; /* Increased space */
}

.s0-label {
  font-family: var(--font-display);
  font-size: 32px; /* Increased by ~25% */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px; /* Tightened display letter-spacing */
  color: var(--fg-1);
}

.s0-ellipsis::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

.s0-sublabel {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: var(--lh-base);
  max-width: 280px;
}

.s0-bg-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0;
  background: rgba(191, 215, 48, 0.02);
  z-index: 0;
  pointer-events: none;
}

.s0-bg-fill.running {
  animation: s0BgFill 4.5s linear forwards;
}

@keyframes sweepRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.s-web-blip {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  animation: blipFade 1.8s ease-out forwards;
}

.s-web-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(191, 215, 48, 0.4);
}

/* Step 15: Result Styling */
.result-ready {
  animation: fadeIn var(--dur-slow) var(--ease-out) forwards;
}

.result-money-box {
  background: var(--bg-2);
  border-left: 4px solid var(--it-danger);
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  border-right: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 20px; /* Increased padding */
  text-align: center;
  font-size: var(--fs-base);
  color: var(--fg-1);
  margin-bottom: 24px; /* Increased margin */
  line-height: var(--lh-base);
}

.maturity-section {
  border-top: 1px solid var(--border-1);
  padding-top: 24px; /* Increased padding */
  margin-bottom: 24px; /* Increased margin */
}

.maturity-title {
  font-family: var(--font-display);
  font-size: 25px; /* Increased by ~25% */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -2px; /* Tightened display letter-spacing */
  color: var(--fg-1);
  text-align: center;
  margin-bottom: 6px;
}

.maturity-subtitle {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  text-align: center;
  line-height: var(--lh-base);
  margin-bottom: 16px; /* Increased space */
}

.maturity-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px; /* Increased gap */
}

.maturity-bar-track {
  position: relative;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--border-1);
}

.maturity-bar-track::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(to right, var(--it-danger) 0%, var(--it-warning) 50%, var(--accent) 100%);
  opacity: 0.85;
}

.maturity-marker {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--fg-1);
  border: 3px solid var(--bg-0);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  transition: left 1s cubic-bezier(0.2, 1.2, 0.4, 1);
}

.maturity-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--fg-2);
}

.imob-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px; /* Increased gap */
  margin-bottom: 24px; /* Increased margin */
}

.imob-metric-card {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 16px 12px; /* Increased padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.imob-metric-label {
  font-size: var(--fs-xs);
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.imob-metric-val {
  font-family: var(--font-mono);
  font-size: var(--fs-base);
  font-weight: 700;
  color: var(--fg-1);
}

.result-divider {
  border: none;
  border-top: 1px solid var(--border-1);
  margin: 20px 0; /* Increased margin */
}

.radar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.radar-chart {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 14px; /* Increased margin */
}

.radar-obs-list {
  display: flex;
  flex-direction: column;
  gap: 12px; /* Increased gap between observation cards */
  margin-top: 24px; /* Increased margin */
  padding-bottom: 24px;
}

.radar-obs-item {
  border-radius: var(--radius-md);
  padding: 16px; /* Increased padding */
  border-left: 3px solid var(--border-2);
  background: var(--bg-2);
  border-top: 1px solid var(--border-1);
  border-right: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}

.radar-obs-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.radar-obs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.radar-obs-topic {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--fg-1);
  flex: 1;
}

.radar-obs-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  border: 1px solid;
  border-radius: var(--radius-pill);
  padding: 1px 6px;
}

.radar-obs-text {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  line-height: var(--lh-loose);
}

.btn-continuar--arrow {
  position: relative;
}

.btn-arrow {
  position: absolute;
  right: 14px;
  width: 24px;
  height: 24px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-arrow::after {
  content: '›';
  color: #000;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

/* Step 16: Offer Styling */
.offer-header {
  text-align: center;
  margin-bottom: 24px; /* Increased margin */
}

.offer-crm-logo {
  max-width: 140px;
  margin: 0 auto 10px; /* Increased margin */
  display: block;
}

.offer-crm-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.offer-tag {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--accent);
}

.next-step-box {
  background: rgba(191, 215, 48, 0.02);
  border: 1px solid var(--border-1);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px; /* Increased padding */
  margin-bottom: 20px; /* Increased margin */
  position: relative;
}

.next-step-box > :not(.pitch-image-sequence) {
  display: none;
}

.pitch-image-sequence {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pitch-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  border: 1px solid rgba(203, 254, 99, 0.16);
  background: #0b0b0b;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.next-step-eyebrow {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -0.02em; /* Tight letter spacing as per feedback */
  margin-bottom: 6px;
}

.next-step-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: var(--tracking-display);
  color: var(--fg-1);
  margin-bottom: 16px; /* Increased margin */
}

.next-step-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px; /* Increased gap */
}

.next-step-bullets li {
  font-size: var(--fs-sm);
  color: var(--fg-2);
  padding-left: 18px;
  position: relative;
  line-height: var(--lh-base);
}

.next-step-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--accent);
  font-size: var(--fs-lg);
  font-weight: 800;
}

/* Plan Selector */
.plan-selector {
  display: flex;
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 20px;
  gap: 4px;
}

.plan-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  color: var(--fg-2);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.plan-tab:hover {
  color: var(--fg-1);
}

.plan-tab.active {
  background: var(--accent);
  color: var(--fg-on-lime);
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(191, 215, 48, 0.25);
}

.plan-badge {
  background: #FF5A4E;
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

/* Seletor de Planos Toggle Switch */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.pricing-toggle-btn {
  position: relative;
  width: 48px;
  height: 26px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  display: flex;
  align-items: center;
}

.pricing-toggle-btn.active {
  background: var(--accent);
  border-color: var(--accent);
}

.pricing-toggle-knob {
  position: absolute;
  top: 3px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-toggle-btn.active .pricing-toggle-knob {
  left: 24px;
  background: var(--it-black);
}

.toggle-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--fg-3);
  cursor: pointer;
  transition: color var(--dur-base);
  display: inline-flex;
  align-items: center;
}

.toggle-label.active {
  color: #FFFFFF;
  font-weight: 700;
}

.toggle-discount-badge {
  background: var(--accent);
  color: var(--fg-on-lime);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  font-family: var(--font-display);
  letter-spacing: 0.05em;
  margin-left: 6px;
  box-shadow: 0 2px 6px rgba(191, 215, 48, 0.2);
}

/* Caixa de Preços Premium (Estilo Creator) */
.s13-pricing-card {
  position: relative;
  background: #0A0A0A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px 20px 20px;
  color: var(--fg-1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  margin-top: 16px;
  margin-bottom: 24px;
}

.s13-card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--fg-on-lime);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  box-shadow: 0 4px 12px rgba(191, 215, 48, 0.3);
}

.s13-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.s13-card-tier {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.s13-card-desc {
  font-size: 13px;
  font-weight: 500;
  color: var(--it-fog-1);
  line-height: 1.45;
}

.s13-card-price-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 18px;
  text-align: left;
}

.s13-card-price-row {
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.s13-card-price {
  font-family: var(--font-body);
  font-size: 44px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  letter-spacing: -0.04em; /* Tight letter spacing for Inter price digits */
}

.s13-card-price-currency {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 800;
  vertical-align: super;
  margin-right: 2px;
  letter-spacing: -0.02em;
}

.s13-card-price-period {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  color: var(--fg-3);
  margin-left: 2px;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.s13-card-price-sub {
  font-size: 12px;
  color: var(--fg-3);
  display: flex;
  flex-direction: column;
}

.s13-original {
  text-decoration: line-through;
  font-family: var(--font-body);
}

.s13-highlight-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 10px 14px;
  margin-top: 16px;
  text-align: left;
}

.s13-highlight-text {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
}

.s13-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--fg-on-lime);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(191, 215, 48, 0.3);
  transition: all var(--dur-base) var(--ease-out);
  margin-top: 18px;
  cursor: pointer;
  border: none;
}

.s13-card-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.s13-card-footer-text {
  font-size: 11px;
  color: var(--fg-3);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
}

.s13-card-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.s13-features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.s13-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-align: left;
}

.s13-features-list li svg {
  margin-top: 1px;
}

/* Unused drawer styles removed */

/* Footer created by logo */
.step-wedo-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0;
  margin-top: auto; /* Pushes the footer to the bottom of the card */
  background: var(--bg-1);
  border-top: 1px solid var(--border-1);
  flex-shrink: 0; /* Prevents the footer from shrinking and getting clipped */
}

.wedo-copy-top {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.wedo-copy-bot {
  font-size: 9px;
  color: var(--fg-3);
  margin-top: 2px;
}

/* Radar SVG animation styles */
@keyframes radarFillIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes radarDotPop {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  body {
    background: var(--bg-1);
    min-height: 100svh;
    min-height: 100dvh;
  }
  .form-wrapper {
    max-width: 100%;
    height: 100svh;
    height: 100dvh;
  }
  .form-card {
    box-shadow: none;
    border: none;
    height: 100svh;
    height: 100dvh;
  }
  
  /* Compact Header for mobile */
  .form-header {
    padding: 0 0 22px; /* Increased bottom spacing to prevent squeezed layout on mobile */
    gap: 4px;
  }
  .header-icon {
    width: 32px;
    height: 32px;
  }
  .header-icon img {
    width: 18px !important;
  }
  .header-title {
    font-size: var(--fs-sm);
  }
  .header-badge {
    font-size: 10px;
    padding: 1px 6px;
  }
  .progress-bar-track {
    height: 3px;
  }
  
  /* Compact Step content padding */
  .step-content {
    padding: 10px 16px max(0px, env(safe-area-inset-bottom));
  }
  .step {
    padding-bottom: 12px;
  }
  
  /* Welcome step compaction */
  .welcome-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .welcome-hero {
    margin-top: 20px; /* Increased distance from header to title */
  }
  .welcome-title {
    font-size: clamp(26px, 7.5vw, 32px) !important; /* Larger, more impactful font size */
    margin-bottom: 12px;
  }
  .welcome-subtitle-text {
    font-size: clamp(14px, 4vw, 16px) !important; /* Increased font size for readability */
    line-height: 1.45;
    padding: 0 4px;
  }
  .welcome-visual-wrap {
    margin: 20px 0; /* Natural margins around visual */
    display: flex;
    justify-content: center;
    width: 100%;
  }
  .welcome-visual-inner {
    position: relative;
    width: 100%;
    max-width: 210px !important;
    max-height: 35dvh !important; /* Allow the tall photo to occupy more vertical space */
    aspect-ratio: 3 / 4 !important; /* Portrait format 3:4 as requested */
    display: flex;
    justify-content: center;
  }
  .welcome-visual-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: var(--radius-lg) !important; /* Rounded corners directly on the image */
  }
  .thought-bubble {
    font-size: clamp(11px, 3.1vw, 13px);
    padding: clamp(6px, 1.2dvh, 10px) clamp(10px, 3vw, 16px);
    top: 25px !important; /* Vertically aligned with the specialist's face height */
    right: -80px !important; /* Shifted to the right, sitting near the right edge of the screen */
    max-width: 115px !important;
    border-radius: 18px !important;
    z-index: 15 !important;
  }
  .thought-bubble::before {
    width: 8px;
    height: 8px;
    bottom: -5px;
    left: 12px;
  }
  .thought-bubble::after {
    width: 5px;
    height: 5px;
    bottom: -11px;
    left: 4px;
  }
  
  /* Buttons compaction */
  .btn-continuar, .btn-liberar {
    padding: clamp(14px, 2dvh, 18px) 20px;
    font-size: clamp(15px, 4.1vw, 17px);
  }

  .welcome-footer {
    margin-top: 0;
  }

  body:not(.is-offer-step) .step-wedo-logo {
    display: none;
  }
  
  .step-title {
    font-size: var(--fs-xl);
  }
}

@media (max-width: 480px) and (max-height: 700px) {
  .step-content {
    padding-top: 8px;
  }

  .welcome-step {
    min-height: auto;
    justify-content: flex-start;
    gap: 10px;
  }

  .welcome-title {
    font-size: 21px;
    margin-bottom: 5px;
  }

  .welcome-subtitle-text {
    font-size: 12.5px;
    line-height: 1.28;
  }

  .welcome-visual-img,
  .welcome-visual-inner {
    max-width: 170px;
  }

  .btn-continuar,
  .btn-liberar {
    padding-top: 13px;
    padding-bottom: 13px;
  }
}

@media (max-width: 480px) and (min-height: 760px) {
  .welcome-step {
    min-height: calc(100dvh - 12px);
    gap: clamp(18px, 3dvh, 34px);
  }

  .welcome-visual-img,
  .welcome-visual-inner {
    max-width: clamp(230px, 31dvh, 280px);
  }

  .thought-bubble {
    right: -45px !important; /* Adjusted for the wider visual container to prevent off-screen clipping */
    top: 30px !important;
  }
}

/* Tools comparison table and summary box */
.tools-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}

.tools-comparison-table th {
  background: rgba(255,255,255,0.03);
  padding: 8px 10px;
  font-weight: 700;
  text-align: left;
  border-bottom: 1px solid var(--border-1);
  color: var(--fg-2);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.05em;
}

.tools-comparison-table td {
  padding: 8px 10px;
  border-bottom: 1px dashed var(--border-2);
  vertical-align: middle;
}

.tools-comparison-table tr:last-child td {
  border-bottom: none;
}

.tools-comparison-table .tool-name {
  color: var(--fg-1);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tools-comparison-table .tool-cost {
  color: var(--it-danger);
  text-align: right;
  font-weight: 600;
}

.comparison-summary-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 90, 78, 0.02);
  border: 1px solid rgba(255, 90, 78, 0.1);
  margin-bottom: 16px;
}

.comparison-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-sm);
}

.comparison-summary-row .label {
  color: var(--fg-2);
}

.comparison-summary-row .val {
  font-weight: 700;
}

.comparison-summary-row.danger-row .val {
  color: var(--it-danger);
  text-decoration: line-through;
}

.comparison-summary-row.success-row {
  background: rgba(191, 215, 48, 0.08);
  border: 1px solid rgba(191, 215, 48, 0.2);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin-top: 4px;
}

.comparison-summary-row.success-row .label {
  color: var(--fg-1);
  font-weight: 600;
}

.comparison-summary-row.success-row .val {
  color: var(--it-lime);
  font-size: 16px;
}

.offer-training-showcase {
  margin: 18px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-training-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
  border: 1px solid rgba(203, 254, 99, 0.18);
  background: #f4f4f4;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.offer-training-card {
  padding: 14px;
  border: 1px solid rgba(203, 254, 99, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(203, 254, 99, 0.07), rgba(255, 255, 255, 0.025));
}

.offer-training-eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--it-lime);
}

.offer-training-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.05;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--fg-1);
}

.offer-training-card p:not(.offer-training-eyebrow) {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--fg-2);
}

.offer-training-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.offer-training-grid span {
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 7px 8px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--fg-1);
  font-size: 10.5px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.offer-disclaimer {
  font-size: 11px;
  color: var(--fg-3);
  line-height: 1.45;
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-1);
  text-align: left;
}
