/* ---------------------------------------------------
   Guava Recruiter — design tokens
--------------------------------------------------- */
:root {
  --bg: #0e0f12;
  --bg-alt: #141519;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.055);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.17);
  --top-light: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --ring: 0 0 0 3px rgba(224, 84, 110, 0.16);
  --text: #f4f2f3;
  --text-dim: #b9b6ba;
  --text-faint: #79767c;
  /* guava — corpo carmim/vinho */
  --rose: #e0546e;
  --rose-deep: #c73f5b;
  --rose-dark: #a52c46;
  --pink: #d94b66;
  --pink-soft: #f0879c;
  /* guava — folhas verdes */
  --green: #3aa64c;
  --green-soft: #5fc06f;
  --gradient: linear-gradient(125deg, var(--rose), var(--rose-dark));
  --danger: #f0879c;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.01em;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------------------------------------------------
   Background decoration
--------------------------------------------------- */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.28;
}

.blob-pink {
  width: 480px;
  height: 480px;
  background: var(--pink);
  top: -160px;
  right: -120px;
}

.blob-green {
  width: 520px;
  height: 520px;
  background: var(--green);
  bottom: -220px;
  left: -160px;
  opacity: 0.22;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
}

/* ---------------------------------------------------
   Layout — split brand panel + form flow
--------------------------------------------------- */
.layout {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
}

/* Brand panel (desktop only) */
.brand-panel {
  display: none;
}

.flow-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.flow-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 28px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: block;
}

.brand-lg .brand-mark {
  width: 44px;
  height: 44px;
}

.brand-word {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  text-transform: lowercase;
  letter-spacing: -0.02em;
}

.brand-lg .brand-word {
  font-size: 22px;
}

.brand-word b {
  font-weight: 700;
  color: var(--rose);
}

.brand-word em {
  font-style: normal;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: 5px;
}

/* Topbar (holds mobile brand + progress) */
.topbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: clamp(24px, 6vh, 56px);
}

.progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gradient);
  border-radius: 999px;
  transition: width 0.5s var(--ease);
}

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.footnote {
  text-align: center;
  color: var(--text-faint);
  font-size: 12px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footnote .mono {
  color: var(--green);
  opacity: 0.8;
}

/* Brand panel content */
.brand-panel-nudge { display: none; }

.brand-tag {
  display: inline-block;
  font-size: 12.5px;
  color: var(--pink-soft);
  margin-bottom: 20px;
}

.brand-hero h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}

.brand-hero p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 34ch;
}

.brand-features {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 15px;
}

.feat-ic {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  background: rgba(58, 166, 76, 0.14);
  border: 1px solid rgba(58, 166, 76, 0.32);
  position: relative;
}

.feat-ic::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 6px;
  height: 10px;
  border: solid var(--green-soft);
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}

.brand-foot {
  font-size: 12px;
  color: var(--text-faint);
}

@media (min-width: 960px) {
  .brand-sm { display: none; }

  .brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 45%;
    max-width: 600px;
    padding: 56px 56px 48px;
    height: 100dvh;
    position: sticky;
    top: 0;
    border-right: 1px solid var(--card-border);
    background:
      radial-gradient(120% 90% at 15% 10%, rgba(199, 63, 91, 0.16), transparent 55%),
      radial-gradient(120% 90% at 90% 100%, rgba(58, 166, 76, 0.12), transparent 55%),
      var(--bg-alt);
  }

  .flow-panel {
    align-items: center;
    justify-content: center;
    padding: 40px;
  }

  .flow-inner {
    min-height: auto;
    max-width: 540px;
    padding: 0;
  }

  .topbar { margin-bottom: 34px; }

  .footnote { margin-top: 34px; }
}

@media (min-width: 1400px) {
  .brand-hero h1 { font-size: 46px; }
}

/* ---------------------------------------------------
   Step card
--------------------------------------------------- */
.step {
  animation: stepIn 0.45s var(--ease);
}

@keyframes stepIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.step.leaving {
  animation: stepOut 0.22s var(--ease) forwards;
}

@keyframes stepOut {
  to { opacity: 0; transform: translateY(-10px); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--green);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(58, 166, 76, 0.18);
}

.step-title {
  font-size: clamp(24px, 5.4vw, 32px);
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 8px;
}

.step-subtitle {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 28px;
  max-width: 46ch;
}

/* ---------------------------------------------------
   Intro / success full-bleed steps
--------------------------------------------------- */
.intro-step, .success-step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 4px 4px;
}

.intro-badge, .success-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--pink-soft);
  background: rgba(217, 75, 102, 0.12);
  border: 1px solid rgba(217, 75, 102, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.success-badge {
  color: var(--green-soft);
  background: rgba(58, 166, 76, 0.12);
  border-color: rgba(58, 166, 76, 0.32);
}

.intro-title {
  font-size: clamp(30px, 8vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 16px;
}

.intro-title .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro-desc {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 42ch;
  margin: 0 0 34px;
}

.intro-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 30px;
}

.intro-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.intro-meta-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.intro-meta-label {
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------------------------------------------------
   Options (single / multi choice)
--------------------------------------------------- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--top-light);
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.option:hover {
  border-color: var(--card-border-hover);
  background: var(--card-hover);
  box-shadow: var(--top-light), 0 8px 24px -16px rgba(0, 0, 0, 0.7);
}

.option:active {
  transform: scale(0.99);
}

.option .opt-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-faint);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.option .opt-check {
  margin-left: auto;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--card-border-hover);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
}

.option.checkbox .opt-check {
  border-radius: 6px;
}

.option.radio .opt-check {
  border-radius: 50%;
}

.option .opt-check svg {
  width: 12px;
  height: 12px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.15s var(--ease);
}

.option.selected {
  border-color: transparent;
  background: linear-gradient(rgba(224,84,110,0.1), rgba(224,84,110,0.05)) padding-box,
              var(--gradient) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--top-light), 0 8px 26px -16px rgba(199, 63, 91, 0.7);
}

.option.selected .opt-index {
  border-color: transparent;
  background: var(--gradient);
  color: #0a0d0b;
  font-weight: 700;
}

.option.selected .opt-check {
  background: var(--gradient);
  border-color: transparent;
}

.option.selected .opt-check svg {
  opacity: 1;
  transform: scale(1);
}

.option .opt-sub {
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 2px;
  display: block;
}

.option-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* Grid layout for compact chip-style choices */
.options.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.options.grid .option {
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px;
}

.options.grid .option .opt-check {
  display: none;
}

/* ---------------------------------------------------
   Interview slots (grouped multi-select)
--------------------------------------------------- */
.slot-group {
  margin-bottom: 18px;
}

.slot-group-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  padding-left: 2px;
}

.slot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 8px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--top-light);
  color: var(--text);
  text-align: center;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), box-shadow 0.15s var(--ease), transform 0.12s var(--ease);
  -webkit-tap-highlight-color: transparent;
}

.slot-chip .st-time {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.slot-chip .st-sub {
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
}

.slot-chip:hover {
  border-color: var(--card-border-hover);
  background: var(--card-hover);
}

.slot-chip:active {
  transform: scale(0.97);
}

.slot-chip.selected {
  border-color: transparent;
  background: var(--gradient);
  box-shadow: var(--top-light), 0 8px 22px -14px rgba(199, 63, 91, 0.7);
}

.slot-chip.selected .st-time { color: #17070b; font-weight: 700; }
.slot-chip.selected .st-sub { color: rgba(23, 7, 11, 0.62); }

.slots-wrap {
  max-height: 46vh;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
}

.slots-wrap::-webkit-scrollbar { width: 5px; }
.slots-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.slot-count {
  font-size: 13px;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.slot-count strong {
  color: var(--green-soft);
}

/* Live calendar badge */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green-soft);
  background: rgba(58, 166, 76, 0.12);
  border: 1px solid rgba(58, 166, 76, 0.3);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 14px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-soft);
  box-shadow: 0 0 0 0 rgba(95, 192, 111, 0.6);
  animation: livePulse 1.6s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 192, 111, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(95, 192, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(95, 192, 111, 0); }
}

/* Calendar sync loading state */
.sync-card {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-top: 6px;
}

.sync-orbit {
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-top-color: var(--rose);
  border-right-color: var(--green);
  animation: syncSpin 0.9s linear infinite;
  position: relative;
}

.sync-dot {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gradient);
}

@keyframes syncSpin {
  to { transform: rotate(360deg); }
}

.sync-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sync-line {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.sync-ping {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
  animation: syncBlink 1.2s ease-in-out infinite;
}

.sync-ping.d2 { animation-delay: 0.4s; }
.sync-ping.d3 { animation-delay: 0.8s; }

@keyframes syncBlink {
  0%, 100% { opacity: 0.25; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1); }
}

/* ---------------------------------------------------
   Text inputs
--------------------------------------------------- */
.field {
  margin-bottom: 22px;
}

.text-input {
  width: 100%;
  padding: 16px 17px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  box-shadow: var(--top-light);
  color: var(--text);
  font-size: 16.5px;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

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

.text-input:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(224, 84, 110, 0.05);
  box-shadow: var(--top-light), var(--ring);
}

.field-error {
  color: var(--pink-soft);
  font-size: 13px;
  margin-top: 8px;
  min-height: 16px;
}

/* ---------------------------------------------------
   Buttons
--------------------------------------------------- */
.btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.btn-row-center {
  justify-content: center;
}

/* Botão que "abraça" o texto (usado no hero e no sucesso) */
.btn-hug {
  flex: 0 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

@media (max-width: 640px) {
  .btn-row-center .btn-hug { width: 100%; }
}

.btn-primary {
  flex: 1;
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #e85c74, var(--rose-deep));
  color: #180608;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s var(--ease), box-shadow 0.18s var(--ease), filter 0.18s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 6px 16px -14px rgba(199, 63, 91, 0.55);
}

.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 9px 22px -14px rgba(199, 63, 91, 0.6); }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
  filter: saturate(0.6);
}

.btn-back {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--top-light);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
}

.btn-back:hover {
  border-color: var(--card-border-hover);
  background: var(--card-hover);
  color: var(--text);
}

.btn-back svg { width: 18px; height: 18px; }

.btn-whatsapp {
  background: linear-gradient(180deg, #2ee06f, #1fa957);
  color: #04170b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 6px 16px -14px rgba(37, 211, 102, 0.55);
}

.btn-whatsapp:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26), 0 9px 22px -14px rgba(37, 211, 102, 0.6); }

/* ---------------------------------------------------
   Review step
--------------------------------------------------- */
.review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.review-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
}

.review-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.review-item-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.review-item-value {
  font-size: 14.5px;
  color: var(--text);
  font-weight: 500;
  word-break: break-word;
}

.review-edit {
  flex: none;
  background: none;
  border: none;
  color: var(--green-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 2px;
}

.review-edit:hover { text-decoration: underline; }

/* ---------------------------------------------------
   Success step
--------------------------------------------------- */
.success-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.success-icon svg {
  width: 32px;
  height: 32px;
  color: #0a0d0b;
}

.success-card {
  width: 100%;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  margin-top: 8px;
  text-align: left;
}

.success-card-row {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.55;
}

.success-card-row + .success-card-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
}

.success-card-row .n {
  font-family: 'JetBrains Mono', monospace;
  color: var(--green);
  flex: none;
}

/* ---------------------------------------------------
   Responsive
--------------------------------------------------- */
@media (max-width: 420px) {
  .options.grid { grid-template-columns: 1fr 1fr; }
  .intro-meta { gap: 16px; }
}

@media (max-width: 340px) {
  .slot-chip { font-size: 12.5px; padding: 11px 6px; }
}

@media (min-width: 720px) {
  .shell { padding-top: 40px; }
  .step-title { font-size: 34px; }
}
