/* Quiz Salário-Maternidade — base styles
   Card-building metaphor (Auxílio Brasil-inspired). */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800;900&family=Geist+Mono:wght@400;500&display=swap');

* { box-sizing: border-box; }

/* Autofill detection: dispara onAnimationStart no React pra forçar sync do state */
@keyframes onAutoFillStart { from { opacity: 1; } to { opacity: 1; } }
input:-webkit-autofill { animation-name: onAutoFillStart; animation-duration: 0.001s; }

:root {
  --primary: #0F5F4C;
  --primary-deep: #0A4537;
  --primary-soft: #E8F0EC;
  --primary-tint: #D4E3DB;
  --accent: #F5C26B;
  --accent-deep: #E2A538;
  --accent-soft: #FDF3DE;
  --gold: #FFC200;

  --pink: #FF6B9D;
  --pink-deep: #E84B85;
  --pink-soft: #FFE6EF;

  --ink: #0F1410;
  --ink-2: #2A322D;
  --ink-3: #5A645E;
  --ink-4: #8A938D;

  --paper: #FAF8F4;
  --paper-2: #F2EFE8;
  --paper-3: #E9E5DC;
  --line: rgba(15, 20, 16, 0.08);
  --line-2: rgba(15, 20, 16, 0.14);

  --ok: #1F7A56;
  --warn: #B8742B;
  --bad: #9A3A2E;

  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.frame {
  width: 375px;
  height: 810px;
  background: var(--paper);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.frame * { font-family: inherit; }

.statusbar {
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 0 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }

.top-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 20px 12px;
  flex-shrink: 0;
  gap: 12px;
}

.back-btn {
  width: 36px; height: 36px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none; cursor: pointer;
  color: var(--ink-2);
  transition: background .15s, transform .15s;
  flex-shrink: 0;
}
.back-btn:hover { background: var(--paper-2); }
.back-btn:active { transform: scale(0.92); }

.progress-track {
  position: relative;
  height: 5px;
  background: var(--paper-3);
  border-radius: 999px;
  overflow: hidden;
  flex: 1;
}
.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--primary);
  border-radius: 999px;
  transition: width .55s cubic-bezier(.2,.8,.2,1);
}

.progress-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  min-width: 30px;
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
}

.stage { flex: 1; position: relative; overflow: hidden; }
.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 4px 22px 22px;
  overflow-y: auto;
  opacity: 1;
}
.screen::-webkit-scrollbar { display: none; }
.screen { scrollbar-width: none; }

/* === BENEFIT CARD === */
.benefit-card-wrap {
  perspective: 1400px;
  margin-bottom: 14px;
  flex-shrink: 0;
  padding: 4px 2px;
}

.benefit-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1.4 / 1;
  min-height: 245px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,255,255,0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(180, 130, 30, 0.18) 0%, transparent 55%),
    linear-gradient(140deg, #FFD24A 0%, #F5B82A 55%, #E29A1A 100%);
  color: #1A2B14;
  padding: 12px 14px 8px;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -10px 24px rgba(160, 110, 20, 0.18) inset,
    0 1px 2px rgba(80, 50, 0, 0.15),
    0 6px 14px -4px rgba(80, 50, 0, 0.18),
    0 24px 44px -18px rgba(180, 130, 30, 0.55);
  transform-style: preserve-3d;
  transform: perspective(1400px) rotateX(4deg) rotateY(-3deg);
  transition: transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}

.bc-wave {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

/* TOP — brand block + status */
.bc-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.bc-brand-block { display: flex; flex-direction: column; line-height: 1; }
.bc-pre {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-deep);
}
.bc-pre-sub {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(20, 50, 30, 0.55);
  margin-top: 3px;
}

.bc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid;
}
.bc-status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  display: inline-block;
}
.bc-status--analysis {
  background: rgba(20, 50, 30, 0.1);
  border-color: rgba(20, 50, 30, 0.25);
  color: var(--primary-deep);
}
.bc-status--analysis .bc-status-dot {
  background: #C84A1F;
  box-shadow: 0 0 6px rgba(200, 74, 31, 0.5);
  animation: dotPulse 1.6s ease-in-out infinite;
}
.bc-status--final {
  background: var(--primary);
  border-color: var(--primary-deep);
  color: white;
}
.bc-status--final .bc-status-dot {
  background: #B0F0CC;
  box-shadow: 0 0 6px #B0F0CC;
}
@keyframes dotPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* WORDMARK — Auxílio Brasil style */
.bc-wordmark {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin: 6px 0 14px;
  line-height: 0.88;
}
.bc-wordmark-1 {
  font-family: var(--font-sans);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.025em;
  color: var(--primary-deep);
  text-shadow: 0 1px 0 rgba(255,255,255,0.4);
}
.bc-wordmark-2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-top: 1px;
}
.bc-stripe {
  position: absolute;
  left: -4px; right: -4px;
  top: 50%;
  transform: translateY(-50%);
  height: 70%;
  background: var(--primary);
  border-radius: 2px;
  z-index: 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.bc-wordmark-text {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #FFD24A;
  padding: 2px 6px;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 0 rgba(0, 30, 10, 0.2);
}

/* VALUE row */
.bc-value-row {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.bc-chip {
  width: 38px;
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(135deg, #F0E0A8 0%, #C8A848 100%);
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 2px 4px rgba(80, 50, 0, 0.25);
  overflow: hidden;
  flex-shrink: 0;
  margin-bottom: 2px;
}
.bc-chip-inner {
  position: absolute;
  inset: 4px;
  border-radius: 3px;
  background:
    linear-gradient(to right, transparent 47%, rgba(80,50,0,0.35) 47%, rgba(80,50,0,0.35) 53%, transparent 53%),
    linear-gradient(to bottom, transparent 47%, rgba(80,50,0,0.35) 47%, rgba(80,50,0,0.35) 53%, transparent 53%);
}
.bc-value-block { flex: 1; min-width: 0; }
.bc-value-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 50, 30, 0.65);
  margin-bottom: 3px;
}
.bc-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(20, 50, 30, 0.75);
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.bc-value-num {
  font-size: 26px;
  font-weight: 900;
  color: var(--primary-deep);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-left: 2px;
}

/* TAGS — single line, scroll if overflow */
.bc-tags {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 8px;
  min-height: 22px;
  padding-bottom: 2px;
  mask-image: linear-gradient(to right, black 92%, transparent 100%);
}
.bc-tags::-webkit-scrollbar { display: none; }
.bc-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(20, 50, 30, 0.08);
  border: 1.5px solid var(--primary);
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-deep);
  letter-spacing: 0.005em;
  white-space: nowrap;
  flex-shrink: 0;
  animation: tagAppear .55s cubic-bezier(.2,.8,.2,1) both;
}
.bc-tag.empty {
  background: transparent;
  border: 1px dashed rgba(20, 50, 30, 0.2);
  color: rgba(20, 50, 30, 0.4);
  font-weight: 400;
  font-style: italic;
}
@keyframes tagAppear {
  0% { opacity: 0; transform: scale(.85) translateY(4px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* BOTTOM row */
.bc-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(20, 50, 30, 0.15);
}
.bc-titular-wrap { min-width: 0; flex: 1; }
.bc-titular-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 50, 30, 0.55);
  margin-bottom: 3px;
}
.bc-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-deep);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bc-name .placeholder {
  color: rgba(20, 50, 30, 0.35);
  font-weight: 400;
  text-transform: none;
  font-style: italic;
  letter-spacing: 0;
}
.bc-num-wrap { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; }
.bc-num-label {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(20, 50, 30, 0.55);
  margin-bottom: 3px;
}
.bc-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(20, 50, 30, 0.7);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Card animations */
@keyframes cardBump {
  0% { transform: perspective(1400px) rotateX(4deg) rotateY(-3deg) scale(1); }
  40% { transform: perspective(1400px) rotateX(0deg) rotateY(0deg) scale(1.025); }
  100% { transform: perspective(1400px) rotateX(4deg) rotateY(-3deg) scale(1); }
}
.benefit-card.bump { animation: cardBump .6s cubic-bezier(.2,.8,.2,1); }

.benefit-card.final {
  transform: perspective(1400px) rotateX(0deg) rotateY(0deg) scale(1.02);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 -10px 24px rgba(160, 110, 20, 0.18) inset,
    0 30px 56px -22px rgba(180, 130, 30, 0.7),
    0 10px 20px -4px rgba(80, 50, 0, 0.22);
}

/* === Question UI === */
.q-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0 0 6px;
  text-wrap: balance;
}
.q-sub {
  font-size: 14.5px;
  color: var(--ink-3);
  line-height: 1.45;
  margin: 0 0 18px;
  text-wrap: pretty;
}

.opt-card {
  width: 100%;
  min-height: 70px;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  color: var(--ink);
  text-align: left;
  transition: border-color .15s, background .15s, transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .15s;
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 1px 2px rgba(15, 20, 16, 0.03);
}
.opt-card:hover {
  border-color: var(--line-2);
  box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset, 0 4px 10px -4px rgba(15, 20, 16, 0.08);
}
.opt-card:active { transform: scale(0.985); }
.opt-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(15, 95, 76, 0.1), 0 4px 12px -4px rgba(15, 95, 76, 0.18);
}
.opt-card .icon-wrap {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--ink-2);
  transition: background .15s, color .15s, transform .2s;
}
.opt-card.selected .icon-wrap {
  background: var(--primary);
  color: white;
  transform: scale(1.04);
}
.opt-card .opt-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.opt-card .opt-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.25;
  color: var(--ink);
}
.opt-card .opt-sub {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 400;
  line-height: 1.3;
}
.opt-card .chev { color: var(--ink-4); flex-shrink: 0; transition: transform .15s, color .15s; }
.opt-card:hover .chev { transform: translateX(2px); color: var(--ink-2); }
.opt-card.selected .chev { color: var(--primary); }

@keyframes optTap {
  0% { transform: scale(1); }
  40% { transform: scale(.96); }
  100% { transform: scale(1); }
}
.opt-card.tapped { animation: optTap .35s cubic-bezier(.2,.8,.2,1); }

.cta {
  width: 100%;
  height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  border: none;
  background: var(--primary);
  color: white;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .15s;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 -2px 0 rgba(0,0,0,0.08) inset,
    0 8px 18px -8px rgba(15, 95, 76, 0.55);
}
.cta:hover { background: var(--primary-deep); }
.cta:active { transform: scale(0.985); }
.cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: var(--paper-3);
  color: var(--ink-4);
  box-shadow: none;
}
.cta-whatsapp {
  background: #25D366;
  height: 84px;
  font-size: 19px;
  font-weight: 700;
  gap: 12px;
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.18) inset,
    0 -2px 0 rgba(0,0,0,0.08) inset,
    0 10px 22px -10px rgba(37, 211, 102, 0.6);
}
.cta-whatsapp:hover { background: #1FB658; }
.cta-whatsapp:active { transform: scale(0.985); }
.cta-whatsapp svg { flex-shrink: 0; width: 28px !important; height: 28px !important; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input {
  height: 56px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: white;
  padding: 0 16px;
  font-size: 17px;
  font-family: var(--font-sans);
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.field input::placeholder { color: var(--ink-4); font-weight: 400; }
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 95, 76, 0.12);
}

/* Phone field com prefixo +55 fixo */
.phone-field {
  display: flex;
  align-items: stretch;
  height: 56px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: white;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.phone-field:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 95, 76, 0.12);
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--paper-2);
  border-right: 1.5px solid var(--line);
  user-select: none;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.phone-flag { font-size: 18px; line-height: 1; }
.phone-code { color: var(--ink); }
.phone-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0 14px;
  font-size: 17px;
  font-family: var(--font-sans);
  color: var(--ink);
  outline: none;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.phone-field input::placeholder { color: var(--ink-4); font-weight: 400; }
.phone-field input:focus { box-shadow: none; }

.trust-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-4);
  font-weight: 500;
  white-space: nowrap;
}
.trust-strip svg { opacity: 0.7; }

/* Hero */
.hero { display: flex; flex-direction: column; height: 100%; position: relative; padding-top: 4px; }
.hero-photo {
  width: 100%;
  aspect-ratio: 6/5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #DCE5DD 0%, #E8DDC8 50%, #D4C0AB 100%);
  margin-bottom: 14px;
  box-shadow: 0 16px 38px -22px rgba(58, 50, 35, 0.4);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .photo-overlay {
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(to bottom, transparent 0%, rgba(20, 28, 22, 0.4) 100%);
  pointer-events: none;
}
.hero-photo .photo-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--primary-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.hero-photo .photo-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 12px;
  width: fit-content;
  white-space: nowrap;
}
.hero-eyebrow .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--pink); position: relative; }
.hero-eyebrow .pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--pink);
  opacity: 0.5;
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 .em-amount {
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(180deg, transparent 65%, var(--pink-soft) 65%);
  padding: 0 2px;
}

/* Trust pills logo abaixo do CTA do hero */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 4px;
}
.hero-trust .trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
}
.hero-trust .trust-pill svg { color: var(--primary); }

.capture-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FEE9E1;
  color: var(--bad);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.hero p.sub {
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 0 0 16px;
  text-wrap: pretty;
}

.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ink-4);
  font-weight: 500;
  white-space: nowrap;
}
.hero-trust .ts { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.hero-trust .ts svg { color: var(--primary); opacity: 0.85; }
.hero-trust .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); opacity: 0.4; }

/* Result screen — distinct layout, fits viewport */
.result-screen { display: flex; flex-direction: column; height: 100%; }

.result-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.result-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.result-chip svg { flex-shrink: 0; }
.result-chip.ok { background: rgba(31, 122, 86, 0.12); color: var(--ok); }
.result-chip.warn { background: rgba(184, 116, 43, 0.14); color: var(--warn); }
.result-chip.bad { background: rgba(154, 58, 46, 0.1); color: var(--bad); }

.result-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
  text-wrap: balance;
}

.result-body {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: 12px 0 10px;
  text-wrap: pretty;
}

.result-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.result-bullets li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.3;
  font-weight: 500;
}
.result-bullets .rb-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.result-note {
  font-size: 11.5px;
  color: var(--ink-4);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.4;
  padding: 0 4px;
}

/* Result — celebration variant */
.result-screen.result-positive {
  background: linear-gradient(180deg, var(--primary-soft) 0%, transparent 60%);
  margin: -20px -20px 0;
  padding: 20px;
}
.result-screen.result-technical {
  background: linear-gradient(180deg, rgba(184, 116, 43, 0.10) 0%, transparent 60%);
  margin: -20px -20px 0;
  padding: 20px;
}
.result-screen.result-expired {
  background: linear-gradient(180deg, rgba(154, 58, 46, 0.08) 0%, transparent 60%);
  margin: -20px -20px 0;
  padding: 20px;
}

.result-celebrate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin: 4px 0 16px;
}
.celebrate-icon {
  color: var(--primary);
  animation: celebrate 0.6s cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 8px 18px rgba(58, 112, 51, 0.25));
}
.result-screen.result-technical .celebrate-icon { color: var(--warn); }
.result-screen.result-expired .celebrate-icon { color: var(--bad); }

@keyframes celebrate {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.result-title-big {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

/* Loading screen */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 28px;
  padding: 24px;
}
.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--primary-soft);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.loading-greeting {
  font-size: 14px;
  color: var(--ink-3);
  margin: 0;
  font-weight: 500;
}
.loading-phase {
  font-size: 17px;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
  animation: phaseIn 0.4s ease;
}
@keyframes phaseIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.loading-dots {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.loading-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper-3);
  transition: background 0.3s;
}
.loading-dots span.on {
  background: var(--primary);
}
