:root {
  color-scheme: light;
  --ink: #293953;
  --paper: #fffcf0;
  --line: #e7e8ed;
  --muted: #586377;
  --blue: #354ef5;
  --header-logo-size: 42px;
  font: 15px/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 0 max(20px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)); overflow: hidden; background: rgb(255 252 240 / 40%); }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
button, a { touch-action: manipulation; }
.app-header, .workspace, .app-footer { width: 100%; max-width: 820px; margin-inline: auto; }
.app-header { min-height: 60px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 34px; font-weight: 850; line-height: 1; text-decoration: none; letter-spacing: -1.5px; }
.brand-logo { display: block; width: var(--header-logo-size); height: var(--header-logo-size); object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.header-whatsapp { display: inline-flex; align-items: center; justify-content: center; margin-inline-start: auto; min-width: 44px; min-height: 44px; flex-shrink: 0; border-radius: 50%; color: #087f46; text-decoration: none; }
.header-whatsapp:hover svg { filter: brightness(.93); }
.header-whatsapp svg { display: block; width: var(--header-logo-size); height: var(--header-logo-size); }
.text-button { border: 0; background: none; padding: 9px 0; font-size: 13px; font-weight: 550; color: var(--muted); }
.text-button:hover { color: var(--blue); }
.service-nav { display: flex; gap: 2px; width: 100%; max-width: 820px; margin: 0 auto 6px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: #f0f2f8; flex-shrink: 0; }
.service-nav button { display: flex; align-items: center; justify-content: center; gap: 4px; flex: 1; min-width: 0; min-height: 44px; padding: 4px 8px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.service-nav button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px #29395312; }
.app-meta, .journey-context > div:first-child, .path-section > .eyebrow { display: none; }
.workspace { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.journey-context { flex-shrink: 0; min-width: 0; padding-block: 3px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #c7cee2 transparent; }
.journey-context:not(.has-choices), .path-empty { display: none; }
.path-section { margin: 0; }
.path-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 4px; flex-wrap: nowrap; }
.path-list > li { flex: 0 0 auto; }
.path-choice { display: inline-flex; align-items: center; min-height: 36px; border: 1px solid #dce2f7; border-radius: 999px; background: #eff2ff; color: #35476e; padding: 4px 9px; font-size: 12px; text-align: start; white-space: nowrap; }
.path-index { color: #68769a; font-size: 10px; margin-right: 6px; }
.screen-panel { min-height: 0; flex: 1; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c7cee2 transparent; }
#screen { display: flex; flex-direction: column; gap: 14px; flex: 1; min-width: 0; padding: 0 2px 2px; }
#screen:not(.is-result) { min-height: 0; }
#screen:not(.is-result) .options { flex: 1; min-height: 0; overflow: auto; align-content: start; scrollbar-width: thin; }
.screen-intro { position: relative; isolation: isolate; overflow: hidden; flex-shrink: 0; border-radius: 24px; background: linear-gradient(135deg, #505fa5, #293953); color: white; padding: 18px 22px; }
.screen-intro::after { content: ""; position: absolute; z-index: -1; width: 140px; height: 140px; border-radius: 50%; background: #ffffff08; right: -40px; top: -56px; box-shadow: -29px 60px 0 -50px #ffffff30; }
h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 740; line-height: 1.18; letter-spacing: -.035em; margin: 0; }
h3 { font-size: 14px; margin: 0 0 8px; font-weight: 650; }
p { margin: 0; }
.service-options, .options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-options { flex: 1; min-height: 0; max-height: 330px; }
.choice, .service-choice { background: white; border: 1px solid var(--line); border-radius: 20px; display: flex; align-items: center; gap: 12px; padding: 16px; text-align: left; min-width: 0; min-height: 64px; transition: border-color .15s, background .15s; }
.service-choice { min-height: 96px; }
.choice:hover, .service-choice:hover { background: #f6f7ff; border-color: #a8b4f4; }
.choice-label { font-size: 16px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.choice-image { width: 74px; height: 74px; flex-shrink: 0; object-fit: contain; border-radius: 13px; background: white; }
.service-choice.picture-choice { padding: 8px; gap: 16px; min-height: 90px; }
.options .picture-choice { padding: 0; overflow: hidden; align-items: center; gap: 0; }
.options .picture-choice .choice-image { width: 104px; height: 96px; border-radius: 0; object-position: center; }
.options .picture-choice .choice-label { padding: 12px 14px; min-width: 0; flex: 1 1 auto; }
.picture-options { grid-auto-rows: max-content; }
.many-pictures { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.back-button { align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 16px; flex-shrink: 0; border: 1px solid #d4dcf6; border-radius: 13px; color: var(--ink); background: #eff2ff; font-size: 14px; font-weight: 650; }
.back-button:hover { background: #e5eaff; border-color: #9aaaf1; }
.back-icon { font-size: 23px; line-height: 1; }
.secondary-button { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 10px 15px; min-height: 42px; font-size: 13px; font-weight: 550; }
.secondary-button:hover { border-color: #a8b4f4; }
.discussion { background: white; border: 1px solid var(--line); border-radius: 20px; padding: 14px 16px; }
.discussion ul { margin: 0; padding-left: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 24px; font-size: 13px; }
.discussion li::marker { color: var(--blue); }
.chat-action { display: flex; flex-shrink: 0; padding-top: 4px; }
.chat-action[hidden] { display: none; }
.external-link { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: white; border-radius: 12px; padding: 12px 17px; min-height: 44px; font-size: 14px; font-weight: 650; text-decoration: none; }
.external-link:hover { background: #2940d8; }
.external-link.whatsapp-link { width: 100%; min-height: 60px; gap: 11px; background: #087f46; color: #fff; border-radius: 16px; font-size: 17px; font-weight: 700; box-shadow: 0 3px 10px #087f4620; }
.external-link.whatsapp-link:hover { background: #066739; }
.source-whatsapp-mark { width: 36px; height: 36px; object-fit: contain; flex-shrink: 0; }
.message-preview { font: 12px/1.45 system-ui, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 0; }
.request-message { background: white; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 0; overflow: auto; scrollbar-width: thin; }
.is-result { min-height: 0; }
.is-result .request-message { flex: 1; min-height: 140px; max-height: 370px; }
.is-result > h3 { margin: 0; }
.request-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-shrink: 0; }
.request-heading h3 { margin: 0; }
.website-link { font-size: 11px; color: var(--blue); padding: 3px 0; text-decoration: none; white-space: nowrap; }
.service-information { display: flex; flex-direction: column; flex: 1; flex-shrink: 0; min-height: 204px; gap: 8px; min-width: 0; }
.service-information-header { flex-shrink: 0; min-width: 0; border: 1px solid var(--line); border-radius: 999px; background: #f0f2f8; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: #c7cee2 transparent; }
.service-information-heading { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.service-information-options { display: flex; flex-wrap: nowrap; align-items: center; gap: 2px; list-style: none; padding: 2px; margin: 0; min-width: max-content; }
.service-information-options li { flex: 1 0 auto; min-width: 0; }
.service-information-options button { display: block; width: 100%; min-height: 44px; padding: 6px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); text-align: center; font-size: 12px; font-weight: 600; white-space: nowrap; }
.service-information-options button:hover { background: #e6eaf6; color: var(--ink); }
.service-information-options button[aria-pressed=true] { color: var(--ink); background: white; box-shadow: 0 1px 4px #29395312; }
.service-information-options button:focus-visible, .path-choice:focus-visible { outline-offset: -3px; }
.service-information-content { display: flex; flex-direction: column; flex: 1; gap: 12px; min-height: 152px; min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: white; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.is-result .service-information-content .request-message { flex: 0 0 auto; min-height: 0; max-height: none; border: 0; border-radius: 0; padding: 0; overflow: visible; }
.service-resource-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 2px 16px; }
.service-resource-link { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; color: var(--blue); font-size: 12px; text-underline-offset: 3px; }
.service-resource-host { font-size: 10px; color: var(--muted); }
.service-topic-link { display: inline-flex; align-self: flex-start; align-items: center; min-height: 44px; max-width: 100%; padding: 8px 12px; border: 1px solid #b5d8c6; border-radius: 11px; color: #066739; background: #f4faf6; font-size: 13px; font-weight: 650; text-decoration: none; }
.service-topic-link:hover { background: #e8f4ed; }
.service-terms-button { align-self: flex-start; min-height: 44px; padding: 7px 0; border: 0; background: transparent; color: var(--blue); text-align: start; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.service-reference-gallery { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.service-reference-gallery figure { margin: 0; min-width: 0; }
.service-reference-gallery img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; }
.service-reference-gallery figcaption, .service-reference-caption { margin-top: 5px; color: var(--muted); font-size: 11px; }
.service-faq { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.service-faq summary { display: list-item; min-height: 44px; padding: 10px 0; font-weight: 650; cursor: pointer; }
.service-faq p { padding: 0 0 4px; }
.service-information-content:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.is-result .screen-intro { padding: 14px 18px; }
#info-dialog .request-message { max-height: 45dvh; }
.error:empty { display: none; }
.error { color: #a52c28; font-size: 13px; margin-top: 8px; }
.app-footer { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; flex-shrink: 0; border-top: 1px solid var(--line); margin-top: 10px; }
.app-footer .text-button { font-size: 11px; padding: 7px 0; }
.app-footer #privacy-button { margin-inline-start: auto; }
dialog { max-width: min(520px, calc(100vw - 28px)); max-height: calc(100dvh - 40px); border: 1px solid var(--line); border-radius: 24px; background: var(--paper); color: var(--ink); padding: 28px 22px; overflow: auto; }
dialog::backdrop { background: #29395366; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; right: 9px; top: 6px; border: 0; background: none; font-size: 25px; padding: 4px 8px; }
#dialog-content { display: flex; flex-direction: column; gap: 14px; }
.skip-link { position: absolute; left: 12px; top: -100px; background: var(--blue); color: white; padding: 8px; z-index: 5; }
.skip-link:focus { top: 4px; }
@media (min-width: 900px) and (min-height: 700px) { .app-header { min-height: 64px; } .service-choice { padding: 22px; } }
@media (max-width: 600px) {
  :root { font-size: 14px; --header-logo-size: 38px; }
  body { padding-left: 16px; padding-right: 16px; }
  .app-header { min-height: 52px; gap: 10px; }
  .wordmark { font-size: 29px; }
  .service-nav { margin-bottom: 5px; }
  .service-nav button { font-size: 12px; }
  .workspace { gap: 7px; }
  #screen { gap: 10px; }
  .screen-intro { padding: 16px 17px; border-radius: 21px; }
  h2 { font-size: 24px; }
  .service-options { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(64px, 1fr)); gap: 7px; max-height: 330px; }
  .service-choice { padding: 10px 12px; gap: 10px; min-height: 64px; border-radius: 18px; }
  .choice-image { width: 58px; height: 58px; border-radius: 11px; }
  .service-choice.picture-choice { padding: 5px; gap: 13px; min-height: 70px; }
  .options .picture-choice { flex-direction: column; align-items: stretch; }
  .options .picture-choice .choice-image { width: 100%; height: 88px; }
  .options .picture-choice .choice-label { padding: 10px 12px; flex: 0 0 auto; }
  .many-pictures .picture-choice .choice-label { font-size: 12px; padding: 8px; }
  .choice-label { font-size: 14px; }
  .options { gap: 7px; }
  .choice { padding: 10px; gap: 8px; min-height: 59px; border-radius: 16px; }
  .path-choice { font-size: 10px; padding: 4px 8px; }
  .discussion { padding: 11px 12px; border-radius: 17px; }
  .discussion ul { font-size: 11px; gap: 4px 18px; }
  h3 { font-size: 12px; margin-bottom: 6px; }
  .external-link { font-size: 12px; padding: 11px 12px; }
  .secondary-button { font-size: 11px; padding: 9px 12px; }
  .app-footer { min-height: 35px; font-size: 10px; margin-top: 7px; }
  .app-footer .text-button { font-size: 10px; }
  .external-link.whatsapp-link { min-height: 58px; font-size: 16px; }
  #screen.is-result { gap: 8px; }
  .is-result h2 { font-size: 21px; }
  .is-result .request-message { padding: 11px 12px; font-size: 11px; min-height: 130px; }
  .service-information-content { padding: 11px 12px; font-size: 12px; }
  .service-information-options button { padding-inline: 10px; font-size: 11px; }
  .is-result .screen-intro { padding: 12px 15px; }
}
@media (max-height: 620px) {
  .app-header { min-height: 48px; }
  #screen { gap: 8px; }
  .screen-intro { padding: 12px 15px; }
  .screen-intro h2 { font-size: 21px; }
  .service-options { max-height: 270px; }
  .service-choice { min-height: 58px; padding: 8px 10px; }
  .app-footer { min-height: 30px; }
  .is-result .request-message { min-height: 96px; }
}
@media (max-width: 600px) and (max-height: 620px) {
  .service-options { grid-template-rows: repeat(4, minmax(58px, 1fr)); }
  .service-choice.picture-choice { min-height: 58px; }
  .service-choice .choice-image { width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
