/* TOMI UX EVO — Concept 04: Contextual Discovery.
   Uma superfície de decisão flutuante, não uma interface de chat. Tudo isolado
   sob .cd* para coexistir com os três conceitos de pesquisa anteriores. */
.cd {
  --cd-ink: #172126;
  --cd-muted: #617078;
  --cd-soft: #f1f4f3;
  --cd-warm: #fff8dc;
  --cd-line: #dfe5e3;
  --cd-accent: var(--ds-accent, #fac200);
  --cd-accent-ink: var(--ds-accent-ink, #2b2408);
  --cd-ease: cubic-bezier(.2,.88,.22,1);
  position: absolute;
  inset: 0;
  z-index: var(--z-modal);
  overflow: hidden;
  color: var(--cd-ink);
  font-family: Inter, var(--ds-font-sans), system-ui, sans-serif;
  outline: none;
}
.cd *, .cd *::before, .cd *::after { box-sizing: border-box; }
.cd button { border: 0; font: inherit; cursor: pointer; }
.cd button:focus-visible { outline: 4px solid var(--cd-accent); outline-offset: 3px; }
.cd-scrim { position: absolute; inset: 0; background: rgba(10,17,20,.55); backdrop-filter: blur(2px); animation: cd-scrim-in 320ms ease both; }
.cd-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(890px, calc(100% - 54px));
  height: min(790px, calc(100% - 54px));
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgba(23,33,38,.08);
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 34px 100px rgba(0,0,0,.45), 0 2px 0 rgba(255,255,255,.8) inset;
  transform: translate(-50%,-50%);
  transform-origin: var(--cd-ox, 50%) var(--cd-oy, 100%);
  transition: width 500ms var(--cd-ease), height 500ms var(--cd-ease), border-radius 500ms var(--cd-ease);
}
.cd[data-cd-state="question"] .cd-bubble { width: min(850px, calc(100% - 62px)); height: min(820px, calc(100% - 54px)); }
.cd[data-cd-state="results"] .cd-bubble { width: min(920px, calc(100% - 42px)); height: min(820px, calc(100% - 42px)); }
.cd[data-cd-state="detail"] .cd-bubble { width: min(970px, calc(100% - 32px)); height: calc(100% - 34px); max-height: 1100px; border-radius: 44px; }
.cd[data-cd-state="done"] .cd-bubble { width: min(820px, calc(100% - 70px)); height: min(790px, calc(100% - 70px)); }
.cd.is-opening .cd-bubble { animation: cd-open 500ms var(--cd-ease) both; }
.cd.is-closing .cd-bubble { animation: cd-close 240ms ease-in both; }
.cd.is-closing .cd-scrim { animation: cd-scrim-out 240ms ease-in both; }
.cd-tail { position: absolute; left: 50%; bottom: -27px; width: 56px; height: 56px; border-radius: 0 0 14px 0; background: #fff; box-shadow: 13px 13px 22px rgba(0,0,0,.14); transform: translateX(-50%) rotate(45deg); }

.cd-head { position: relative; z-index: 2; flex: 0 0 76px; display: flex; align-items: center; gap: 14px; padding: 13px 18px 11px; border-bottom: 1px solid var(--cd-line); border-radius: 40px 40px 0 0; background: #fff; }
.cd-brand { min-width: 0; display: flex; align-items: center; gap: 12px; }
.cd-brand img { width: 92px; height: 31px; object-fit: contain; }
.cd-brand span { padding-left: 12px; border-left: 1px solid #cfd6d4; color: #6b777c; font-family: "IBM Plex Sans", Inter, sans-serif; font-size: 10px; font-weight: 800; letter-spacing: .085em; }
.cd-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; background: #e9f7ef; color: #276540; font-size: 10px; font-weight: 850; letter-spacing: .055em; }
.cd-live i { width: 8px; height: 8px; border-radius: 50%; background: #35b66f; box-shadow: 0 0 0 4px rgba(53,182,111,.14); }
.cd-close, .cd-back { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--cd-soft); color: var(--cd-ink); }
.cd-close .tomi-icon, .cd-back .tomi-icon { font-size: 21px; }
.cd-back { display: none; }
.cd-back.is-visible { display: grid; }

.cd-contextline { position: relative; z-index: 1; flex: 0 0 54px; display: flex; align-items: center; gap: 7px; padding: 9px 22px; overflow: hidden; border-bottom: 1px solid var(--cd-line); background: #fbfcfb; }
.cd-contextline > span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; overflow: hidden; border-radius: 999px; background: #edf1ef; color: #4d5b61; font-size: 10px; font-weight: 750; white-space: nowrap; text-overflow: ellipsis; }
.cd-contextline > span:first-child { flex: 1 1 auto; }
.cd-contextline .tomi-icon { flex: 0 0 auto; color: #536168; font-size: 15px; }
.cd-contextline .is-busy { background: #fff0c5; color: #735b0a; }
.cd-view { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 25px 28px 30px; border-radius: 0 0 40px 40px; scrollbar-width: thin; scrollbar-color: #b8c2be transparent; }
.cd.is-transitioning .cd-view > * { animation: cd-view-in 240ms ease-out both; }
.cd-kicker { display: block; color: #8a710b; font-family: "IBM Plex Sans", Inter, sans-serif; font-size: 10px; font-weight: 850; letter-spacing: .095em; }

/* Contextual opening: antecipa antes de perguntar. */
.cd-opening { position: relative; min-height: 145px; padding: 23px 27px; overflow: hidden; border-radius: 25px; background: var(--cd-ink); color: #fff; }
.cd-opening::after { content: ''; position: absolute; right: -60px; top: -95px; width: 280px; height: 280px; border: 58px solid rgba(250,194,0,.17); border-radius: 50%; }
.cd-opening .cd-kicker { color: var(--cd-accent); }
.cd-opening h1 { position: relative; z-index: 1; margin: 9px 0 6px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 51px; font-weight: 850; letter-spacing: -.02em; line-height: .9; }
.cd-opening p { position: relative; z-index: 1; max-width: 610px; margin: 0; color: #dce3e1; font-size: 14px; font-weight: 550; line-height: 1.35; }
.cd-section-title { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 2px 10px; }
.cd-section-title b, .cd-section-title small { display: block; }
.cd-section-title b { font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 27px; line-height: 1; }
.cd-section-title small { margin-top: 4px; color: var(--cd-muted); font-size: 11px; font-weight: 650; }
.cd-section-title em { min-width: 48px; padding: 7px 10px; border-radius: 999px; background: var(--cd-soft); color: var(--cd-muted); font-size: 10px; font-style: normal; font-weight: 800; text-align: center; }
.cd-journeys { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.cd-journey { min-height: 116px; display: grid; grid-template-columns: 54px 1fr 22px; gap: 13px; align-items: center; padding: 15px; border: 2px solid var(--cd-line) !important; border-radius: 20px; background: #fff; color: var(--cd-ink); text-align: left; transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.cd-journey.is-prime { border-color: var(--cd-accent) !important; background: var(--cd-warm); }
.cd-journey:active { transform: scale(.985); }
.cd-journey__icon, .cd-journey-head__icon, .cd-option__icon { display: grid; place-items: center; border-radius: 16px; background: var(--cd-accent); color: var(--cd-accent-ink); }
.cd-journey__icon { width: 54px; height: 54px; }
.cd-journey__icon .tomi-icon { font-size: 29px; }
.cd-journey__copy { min-width: 0; }
.cd-journey__copy b, .cd-journey__copy small { display: block; }
.cd-journey__copy b { font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 23px; font-weight: 800; line-height: 1; }
.cd-journey__copy small { margin-top: 6px; color: var(--cd-muted); font-size: 11px; font-weight: 600; line-height: 1.25; }
.cd-journey__arrow { color: #9da7a3; font-size: 16px; }
.cd-intro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cd-intro-actions button, .cd-manual-link, .cd-adjust { min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 17px; background: var(--cd-soft); color: var(--cd-ink); font-size: 12px; font-weight: 800; }
.cd-intro-actions button:last-child { background: var(--cd-ink); color: #fff; }
.cd-intro-actions .tomi-icon, .cd-manual-link .tomi-icon, .cd-adjust .tomi-icon { font-size: 20px; }

/* Progressive question: uma decisão, sem histórico de chat. */
.cd-journey-head { min-height: 76px; display: grid; grid-template-columns: 58px 1fr auto; gap: 13px; align-items: center; margin-bottom: 12px; padding: 10px 15px 10px 10px; border-radius: 20px; background: var(--cd-ink); color: #fff; }
.cd-journey-head__icon { width: 58px; height: 58px; }
.cd-journey-head__icon .tomi-icon { font-size: 31px; }
.cd-journey-head span > small, .cd-journey-head span > b { display: block; }
.cd-journey-head span > small { color: var(--cd-accent); font-size: 9px; font-weight: 800; letter-spacing: .075em; }
.cd-journey-head span > b { margin-top: 4px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 25px; line-height: 1; }
.cd-journey-head > em { padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.11); color: #fff; font-size: 10px; font-style: normal; font-weight: 750; }
.cd-trail { display: flex; gap: 7px; margin-bottom: 13px; overflow: hidden; }
.cd-trail span { min-width: 0; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 999px; background: var(--cd-warm); color: #594a10; font-size: 10px; font-weight: 750; white-space: nowrap; }
.cd-trail .tomi-icon { font-size: 14px; }
.cd-question { padding: 5px 3px 18px; }
.cd-question h1 { margin: 9px 0 7px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 43px; font-weight: 850; letter-spacing: -.02em; line-height: .94; }
.cd-question p { margin: 0; color: var(--cd-muted); font-size: 14px; font-weight: 550; line-height: 1.35; }
.cd-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.cd-options > button { min-height: 98px; display: grid; grid-template-columns: 52px 1fr 20px; gap: 12px; align-items: center; padding: 13px; border: 2px solid var(--cd-line); border-radius: 20px; background: #fff; color: var(--cd-ink); text-align: left; }
.cd-options > button:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cd-options > button:active { background: var(--cd-warm); border-color: var(--cd-accent); }
.cd-option__icon { width: 52px; height: 52px; background: var(--cd-soft); }
.cd-option__icon .tomi-icon { font-size: 27px; }
.cd-options button > span:nth-child(2) b, .cd-options button > span:nth-child(2) small { display: block; }
.cd-options button > span:nth-child(2) b { font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 22px; line-height: 1; }
.cd-options button > span:nth-child(2) small { margin-top: 5px; color: var(--cd-muted); font-size: 10px; font-weight: 600; line-height: 1.2; }
.cd-options button > .tomi-icon { color: #a6afab; font-size: 15px; }
.cd-manual-link { width: 100%; margin-top: 12px; background: transparent; color: var(--cd-muted); }

/* Contextual result set. */
.cd-result-head { padding: 4px 2px 19px; }
.cd-result-head h1 { margin: 8px 0 7px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 43px; line-height: .94; }
.cd-result-head p { max-width: 730px; margin: 0; color: var(--cd-muted); font-size: 13px; line-height: 1.38; }
.cd-result-head p b { color: var(--cd-ink); }
.cd-result-grid { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(2, 190px); gap: 11px; }
.cd-result { min-width: 0; display: grid; grid-template-columns: 42% 1fr 20px; gap: 13px; align-items: center; overflow: hidden; padding: 0 14px 0 0; border: 2px solid var(--cd-line) !important; border-radius: 22px; background: #fff; color: var(--cd-ink); text-align: left; }
.cd-result.is-best { grid-row: 1 / 3; grid-template-columns: 1fr; grid-template-rows: 58% 1fr; gap: 0; padding: 0; border-color: var(--cd-accent) !important; }
.cd-result__media { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background: #dfe5e3; }
.cd-result:not(.is-best) .cd-result__media { border-radius: 19px 0 0 19px; }
.cd-result__media img, .cd-result__media > .cd-media-ph { width: 100%; height: 100%; object-fit: cover; }
.cd-media-ph { display: block; }
.cd-result__media > em { position: absolute; left: 10px; top: 10px; padding: 6px 8px; border-radius: 999px; background: rgba(20,29,33,.88); color: #fff; font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .04em; }
.cd-result__copy { min-width: 0; }
.cd-result.is-best .cd-result__copy { padding: 17px 20px 16px; }
.cd-result__copy small, .cd-result__copy b, .cd-result__copy span { display: block; }
.cd-result__copy small { color: #806907; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.cd-result__copy b { margin-top: 6px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 23px; line-height: .98; }
.cd-result.is-best .cd-result__copy b { font-size: 31px; }
.cd-result__copy span { margin-top: 8px; color: var(--cd-muted); font-size: 10px; font-weight: 650; }
.cd-result__copy span .tomi-icon { margin-right: 5px; color: var(--cd-ink); font-size: 13px; }
.cd-result__arrow { color: #9ea8a4; font-size: 15px; }
.cd-result.is-best .cd-result__arrow { display: none; }
.cd-route-ph { position: relative; width: 100%; height: 100%; display: block; overflow: hidden; background-color: #e8edeb; background-image: linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 28px 28px; }
.cd-route-ph::before { content: ''; position: absolute; left: 4%; right: 5%; top: 51%; height: 6px; border-radius: 99px; background: var(--cd-ink); transform: rotate(-14deg); box-shadow: 0 0 0 7px rgba(255,255,255,.9); }
.cd-route-ph > .tomi-icon { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--cd-accent); color: var(--cd-accent-ink); font-size: 24px; transform: translate(-50%,-50%); }
.cd-adjust { width: 100%; margin-top: 12px; }

/* Focused recommendation: image + reasoning + route, then actions. */
.cd-inline-back { min-height: 43px; display: inline-flex; align-items: center; gap: 8px; padding: 0 15px; border-radius: 999px; background: var(--cd-warm); color: #594a10; font-size: 11px; font-weight: 800; }
.cd-inline-back .tomi-icon { font-size: 16px; }
.cd-detail { min-height: calc(100% - 55px); display: grid; grid-template-columns: .82fr 1.18fr; gap: 19px; margin-top: 12px; }
.cd-detail__media { position: relative; min-height: 650px; overflow: hidden; border-radius: 25px; background: #dfe5e3; }
.cd-detail__media > img, .cd-detail__media > .cd-route-ph, .cd-detail__media > .cd-media-ph { width: 100%; height: 100%; object-fit: cover; }
.cd-detail__media::after { content: ''; position: absolute; inset: 42% 0 0; background: linear-gradient(180deg,transparent,rgba(12,18,21,.94)); pointer-events: none; }
.cd-detail__media > span:last-child { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 24px; color: #fff; }
.cd-detail__media > span:last-child small, .cd-detail__media > span:last-child b, .cd-detail__media > span:last-child em { display: block; }
.cd-detail__media > span:last-child small { color: var(--cd-accent); font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.cd-detail__media > span:last-child b { margin-top: 7px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 34px; line-height: .94; }
.cd-detail__media > span:last-child em { margin-top: 8px; color: #dce3e1; font-size: 11px; font-style: normal; font-weight: 650; }
.cd-detail__copy { min-width: 0; display: flex; flex-direction: column; }
.cd-detail__copy > h1 { margin: 7px 0 8px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 36px; line-height: .95; }
.cd-detail__copy > p { margin: 0; color: var(--cd-muted); font-size: 12px; font-weight: 550; line-height: 1.42; }
.cd-proof { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; margin-top: 12px; }
.cd-proof > span { min-width: 0; min-height: 90px; padding: 11px; border-radius: 15px; background: var(--cd-soft); }
.cd-proof .tomi-icon { display: block; margin-bottom: 8px; color: #7d690f; font-size: 20px; }
.cd-proof b, .cd-proof small { display: block; }
.cd-proof b { font-size: 11px; }
.cd-proof small { margin-top: 4px; overflow: hidden; color: var(--cd-muted); font-size: 8px; font-weight: 600; line-height: 1.2; text-overflow: ellipsis; }
.cd-map { position: relative; min-height: 150px; margin-top: 9px; overflow: hidden; border: 2px solid var(--cd-line); border-radius: 17px; background-color: #eef2f0; background-image: linear-gradient(#fff 1px,transparent 1px),linear-gradient(90deg,#fff 1px,transparent 1px); background-size: 34px 34px; }
.cd-map__labels { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 9px 10px; }
.cd-map__labels span { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 999px; background: #fff; font-size: 8px; font-weight: 800; box-shadow: 0 2px 7px rgba(0,0,0,.08); }
.cd-map__labels span:last-child { justify-self: end; }
.cd-map__labels b { padding: 5px 8px; border-radius: 999px; background: var(--cd-accent); font-size: 8px; }
.cd-map svg { position: absolute; left: 10px; right: 10px; bottom: 4px; width: calc(100% - 20px); height: 105px; overflow: visible; }
.cd-map path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.cd-map__halo { stroke: #fff; stroke-width: 12; }
.cd-map__line { stroke: var(--cd-ink); stroke-width: 4; stroke-dasharray: 10 8; }
.cd-map circle { fill: var(--cd-ink); stroke: #fff; stroke-width: 4; vector-effect: non-scaling-stroke; }
.cd-map .cd-map__end { fill: var(--cd-accent); stroke: var(--cd-ink); }
.cd-detail-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 7px; margin-top: 9px; }
.cd-detail-actions button { min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 10px; border-radius: 15px; background: var(--cd-soft); color: var(--cd-ink); font-size: 9px; font-weight: 800; }
.cd-detail-actions button.is-primary { grid-row: span 2; background: var(--cd-ink); color: #fff; }
.cd-detail-actions button.is-primary > .tomi-icon { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: var(--cd-accent); color: var(--cd-accent-ink); font-size: 22px; }
.cd-detail-actions button span small, .cd-detail-actions button span b { display: block; text-align: left; }
.cd-detail-actions button span small { color: var(--cd-accent); font-size: 7px; letter-spacing: .05em; }
.cd-detail-actions button span b { margin-top: 4px; font-size: 11px; }
.cd-detail-actions button:not(.is-primary) .tomi-icon { font-size: 18px; }
.cd-status { min-height: 17px; padding-top: 5px; color: #4d755e; font-size: 9px; font-weight: 750; text-align: right; }

/* Journey completed. */
.cd-done { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.cd-done__check { width: 86px; height: 86px; display: grid; place-items: center; margin-bottom: 19px; border-radius: 28px; background: var(--cd-accent); color: var(--cd-accent-ink); box-shadow: 0 12px 35px rgba(250,194,0,.28); }
.cd-done__check .tomi-icon { font-size: 43px; }
.cd-done h1 { margin: 9px 0 10px; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 50px; line-height: .92; }
.cd-done > p { max-width: 580px; margin: 0; color: var(--cd-muted); font-size: 14px; line-height: 1.45; }
.cd-done__route { width: 100%; display: grid; grid-template-columns: 1fr 36px 1fr auto; gap: 10px; align-items: center; margin-top: 25px; padding: 17px; border-radius: 20px; background: var(--cd-soft); text-align: left; }
.cd-done__route span small, .cd-done__route span b { display: block; }
.cd-done__route span small { color: var(--cd-muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.cd-done__route span b { margin-top: 5px; font-size: 11px; }
.cd-done__route > .tomi-icon { color: #88938f; font-size: 18px; }
.cd-done__route em { padding: 7px 10px; border-radius: 999px; background: var(--cd-accent); font-size: 10px; font-style: normal; font-weight: 800; }
.cd-done__actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cd-done__actions button { min-height: 62px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 17px; background: var(--cd-soft); color: var(--cd-ink); font-size: 11px; font-weight: 800; }
.cd-done__actions .is-primary { background: var(--cd-ink); color: #fff; }
.cd-done__actions .tomi-icon { font-size: 22px; }

/* O launcher só muda quando o Concept 04 está explicitamente ativo. */
.search-launcher.search-launcher--contextual { padding-left: calc(18px * var(--ds-search-scale)); background: var(--ds-search-bg, #172126); color: var(--ds-search-ink, #fff); letter-spacing: 0; text-transform: none; }
.search-launcher--contextual > .tomi-icon { width: calc(48px * var(--ds-search-scale)); height: calc(48px * var(--ds-search-scale)); display: grid; place-items: center; margin-right: 2px; border-radius: 50%; background: var(--ds-search-circle-bg, var(--ds-accent)); color: var(--ds-search-circle-ink, var(--ds-accent-ink)); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); font-size: calc(25px * var(--ds-search-scale)); }

/* ===== SS006 — launcher editorial contextual =====
   O botão nasce como um pequeno bloco com o tom configurado e cresce à medida que cada carácter
   é escrito. O ícone muda com a intenção e cresce no início de cada ciclo; o
   fluxo aberto continua a ser o Contextual Discovery SS004. */
.search-launcher.search-launcher--SS006 {
  --ss006-ease: cubic-bezier(.2,.88,.22,1);
  width: calc(82px * var(--ds-search-scale));
  min-width: calc(82px * var(--ds-search-scale));
  min-height: calc(66px * var(--ds-search-scale));
  max-width: 90%;
  justify-content: flex-start;
  gap: calc(14px * var(--ds-search-scale));
  padding: calc(9px * var(--ds-search-scale));
  border: 1px solid color-mix(in srgb, currentColor 10%, transparent);
  background: var(--ds-search-bg, #11191d);
  color: var(--ds-search-ink, #fff);
  box-shadow: 0 14px 38px rgba(12,19,23,.32), 0 2px 0 rgba(255,255,255,.06) inset;
  overflow: hidden;
  transition:
    width 120ms var(--ss006-ease),
    padding-right 210ms var(--ss006-ease),
    box-shadow 280ms ease,
    transform 180ms ease;
  will-change: width;
}
.search-launcher--SS006.is-expanded {
  width: var(--ss006-live-width, calc(82px * var(--ds-search-scale)));
  padding-right: calc(18px * var(--ds-search-scale));
}
.search-launcher--SS006.is-ready { width: var(--ss006-target-width, 560px); }
.search-launcher--SS006 .search-launcher__context-icon {
  display: grid;
  width: calc(48px * var(--ds-search-scale));
  height: calc(48px * var(--ds-search-scale));
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ds-search-circle-bg, var(--ds-accent));
  color: var(--ds-search-circle-ink, var(--ds-accent-ink));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent);
  opacity: .76;
  transform: scale(.62) rotate(-7deg);
  transform-origin: center;
  transition: opacity 180ms ease, transform 300ms var(--ss006-ease);
}
.search-launcher--SS006 .search-launcher__context-icon .tomi-icon {
  font-size: calc(25px * var(--ds-search-scale));
  opacity: 0;
  transform: scale(.68);
}
.search-launcher--SS006.is-icon-growing .search-launcher__context-icon {
  opacity: 1;
  animation: ss006-icon-grow 560ms var(--ss006-ease) both;
}
.search-launcher--SS006.is-icon-growing .search-launcher__context-icon .tomi-icon {
  animation: ss006-icon-reveal 180ms var(--ss006-ease) 360ms both;
}
.search-launcher--SS006 .search-launcher__txt {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 100ms ease 70ms, transform 210ms var(--ss006-ease) 55ms;
}
.search-launcher--SS006.is-expanded .search-launcher__txt {
  opacity: 1;
  transform: translateX(0);
}
.search-launcher--SS006.is-switching .search-launcher__context-icon {
  opacity: .25;
  transform: scale(.48) rotate(8deg);
}
.search-launcher--SS006.is-ready {
  box-shadow: 0 16px 42px rgba(12,19,23,.36), 0 0 0 1px rgba(250,194,0,.08);
}
.search-launcher--SS006 .search-launcher__caret {
  height: 1.05em;
  align-self: center;
}
@keyframes ss006-icon-grow {
  0% { opacity: .4; transform: scale(.54) rotate(-9deg); }
  62% { opacity: 1; transform: scale(1.18) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes ss006-icon-reveal {
  from { opacity: 0; transform: scale(.68); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes cd-open { from { opacity: 0; transform: translate(-50%,-50%) scale(.07); border-radius: 999px; } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@keyframes cd-close { to { opacity: 0; transform: translate(-50%,-50%) scale(.06); border-radius: 999px; } }
@keyframes cd-scrim-in { from { opacity: 0; } }
@keyframes cd-scrim-out { to { opacity: 0; } }
@keyframes cd-view-in { from { opacity: 0; transform: translateY(8px) scale(.992); } }

/* ===== SS005 — Contextual Discovery IMAGE-LED: primeiros ecrãs PEQUENOS, opções
   TODAS do mesmo tamanho (ícone bem visível + imagem, redundância); o modal
   cresce a cada interação (intro → pergunta → resultados → detalhe). ===== */
/* intro claramente pequeno; cresce a cada passo (na home o crescimento é sobretudo
   em altura, porque a área de conteúdo é estreita; nos módulos cresce nos 2 eixos) */
/* NOTA: as larguras/alturas por estado são px SIMPLES (não min()/calc()) porque o
   Chrome não interpola uma transition de width/height entre duas expressões
   min()/calc() diferentes (fica preso no valor inicial). O ajuste responsivo vai
   para max-width/max-height, que não entram na transition — logo cresce suave. */
/* transition:none — o Chrome prende a transition de width/height da bolha no valor
   inicial (o modal não crescia). Sem transition, cada passo ENCAIXA no tamanho
   certo (cresce na mesma a cada escolha); o morph de abertura é uma animation à parte. */
.cd--SS005 .cd-bubble { max-width: calc(100% - 32px); max-height: calc(100% - 28px); transition: none; }
.cd--SS005[data-cd-state="intro"] .cd-bubble { width: 600px; height: 600px; }
.cd--SS005[data-cd-state="question"] .cd-bubble { width: 700px; height: 720px; }
.cd--SS005[data-cd-state="results"] .cd-bubble { width: 900px; height: 900px; }
.cd--SS005[data-cd-state="detail"] .cd-bubble { width: 1000px; height: 1140px; }
.cd--SS005.is-opening .cd-bubble { animation-duration: 500ms; }
/* saudação compacta para o intro pequeno */
.cd--SS005 .cd-opening { min-height: 84px; padding: 15px 19px; }
.cd--SS005 .cd-section-title { min-height: 54px; padding: 10px 2px 8px; }

/* jornadas: cartões UNIFORMES e pequenos — ícone visível (badge accent) + imagem */
.cd--SS005 .cd-journeys--rich { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cd-journey--rich { position: relative; min-height: 124px; display: block; overflow: hidden; padding: 0; border: 0 !important; border-radius: 18px; background: #26313a center/cover no-repeat; color: #fff; isolation: isolate; }
.cd-journey--rich::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.14) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,.85) 100%); }
.cd-journey--rich .cd-journey__icon { position: absolute; left: 12px; top: 12px; width: 46px; height: 46px; border-radius: 13px; background: var(--cd-accent); color: var(--cd-accent-ink); box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.cd-journey--rich .cd-journey__icon .tomi-icon { font-size: 25px; }
.cd-journey--rich .cd-journey__copy { position: absolute; left: 14px; right: 14px; bottom: 13px; }
.cd-journey--rich .cd-journey__copy b { font-size: 21px; color: #fff; line-height: 1; }
.cd-journey--rich .cd-journey__copy small { margin-top: 4px; color: #e7ece9; font-size: 10.5px; }
/* sem destaque hero: TODAS iguais */
.cd--SS005 .cd-journey--rich.is-prime { grid-column: auto; min-height: 124px; background-color: #26313a; }
.cd--SS005 .cd-journey--rich.is-prime .cd-journey__copy b { font-size: 21px; }

/* opções da pergunta: mesmo padrão uniforme (ícone visível + imagem) */
.cd--SS005 .cd-options--rich { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cd-option--rich { position: relative; min-height: 132px; display: block; overflow: hidden; padding: 0; border: 0 !important; border-radius: 18px; background: #26313a center/cover no-repeat; color: #fff; isolation: isolate; text-align: left; }
.cd-option--rich::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.3) 45%, rgba(0,0,0,.86) 100%); }
.cd-option--rich .cd-option__icon { position: absolute; left: 11px; top: 11px; width: 44px; height: 44px; border-radius: 13px; background: var(--cd-accent); color: var(--cd-accent-ink); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.cd-option--rich .cd-option__icon .tomi-icon { font-size: 23px; }
.cd-option--rich > span:last-child { position: absolute; left: 13px; right: 13px; bottom: 11px; }
.cd-option--rich > span:last-child b { display: block; font-family: "Barlow Condensed", var(--ds-font-display), sans-serif; font-size: 19px; line-height: 1; color: #fff; }
.cd-option--rich > span:last-child small { display: block; margin-top: 4px; color: #e7ece9; font-size: 10.5px; font-weight: 600; }
/* opção ímpar final mantém-se do mesmo tamanho (não ocupa linha inteira) */
.cd--SS005 .cd-options--rich > button:last-child:nth-child(odd) { grid-column: auto; }

@media (prefers-reduced-motion: reduce) {
  .search-launcher.search-launcher--SS006 { transition: none; }
  .search-launcher--SS006 .search-launcher__context-icon { opacity: 1; transform: none; transition: none; }
  .search-launcher--SS006 .search-launcher__context-icon .tomi-icon { opacity: 1; transform: none; }
  .search-launcher--SS006.is-icon-growing .search-launcher__context-icon { animation: none; }
  .search-launcher--SS006.is-icon-growing .search-launcher__context-icon .tomi-icon { animation: none; }
  .search-launcher--SS006 .search-launcher__txt { opacity: 1; transform: none; transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  .cd *, .cd *::before, .cd *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
