:root {
  --navy-950: #062737;
  --navy-900: #0b3445;
  --navy-800: #15495b;
  --navy-700: #246175;
  --green-600: #149c79;
  --green-500: #28b990;
  --green-100: #dff6ee;
  --mint-50: #f5faf8;
  --paper: #ffffff;
  --ink: #102d3a;
  --muted: #667b84;
  --line: #dce8e5;
  --shadow: 0 22px 70px rgba(0, 24, 37, 0.24);
}

* { box-sizing: border-box; }
html { background: var(--navy-950); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--navy-950); color: var(--ink); }
button, a { font: inherit; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
.icon { display: block; width: 22px; height: 22px; flex: 0 0 auto; }

.app-stage {
  position: relative;
  display: grid;
  min-height: 100svh;
  background:
    radial-gradient(circle at 12% 8%, rgba(40, 185, 144, 0.17), transparent 31rem),
    linear-gradient(135deg, #062737 0%, #0a3a4b 100%);
  overflow: hidden;
}

.app-stage::before,
.app-stage::after {
  position: fixed;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.app-stage::before { width: 420px; height: 420px; right: -180px; top: -210px; }
.app-stage::after { width: 260px; height: 260px; left: -130px; bottom: -100px; }

.brand-rail { display: none; }

.device-shell {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 100svh;
  flex-direction: column;
  background: var(--mint-50);
  overflow: hidden;
}

.topbar {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 11px;
  padding: max(14px, env(safe-area-inset-top)) 20px 10px;
  background: rgba(245, 250, 248, 0.94);
  border-bottom: 1px solid rgba(220, 232, 229, 0.82);
  backdrop-filter: blur(14px);
}

.brand-mark,
.lawyer-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  box-shadow: 0 7px 18px rgba(6, 39, 55, 0.16);
  color: white;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: -0.05em;
}

.brand-mark--light { background: rgba(255, 255, 255, 0.12); box-shadow: none; }
.topbar-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.topbar-copy strong { overflow: hidden; color: var(--navy-900); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.topbar-copy span { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: 0.03em; }
.secure-chip { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; background: var(--green-100); padding: 7px 9px; color: #087255; font-size: 10px; font-weight: 800; }
.secure-chip .icon { width: 12px; height: 12px; }
.icon-button { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--navy-900); cursor: pointer; }
.icon-button:active { transform: scale(0.96); }

.screen {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 22px 18px calc(104px + env(safe-area-inset-bottom));
}

.screen--home { padding-top: 14px; }

.hero-card {
  position: relative;
  padding: 25px 22px 20px;
  border-radius: 27px;
  background:
    radial-gradient(circle at 94% 4%, rgba(63, 213, 167, 0.2), transparent 12rem),
    linear-gradient(145deg, #0c3b4c 0%, #062737 100%);
  box-shadow: 0 17px 38px rgba(8, 47, 64, 0.16);
  color: white;
  overflow: hidden;
}

.hero-card::after {
  position: absolute;
  width: 130px;
  height: 130px;
  right: -73px;
  bottom: -71px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.hero-icon,
.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #79e4c3;
}
.hero-icon .icon { width: 24px; height: 24px; }
.eyebrow { margin: 19px 0 9px; color: #73dfbd; font-size: 10px; font-weight: 850; letter-spacing: 0.16em; }
.hero-card h1 { max-width: 330px; margin: 0; font-size: clamp(27px, 8vw, 37px); font-weight: 790; letter-spacing: -0.045em; line-height: 1.06; }
.hero-text { max-width: 410px; margin: 14px 0 20px; color: #d4e3e6; font-size: 14px; line-height: 1.57; }

.primary-button,
.continue-button {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 57px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 17px;
  background: linear-gradient(135deg, #30c69b, #19a37c);
  box-shadow: 0 12px 26px rgba(20, 156, 121, 0.26);
  color: #052f29;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}
.primary-button:hover,
.continue-button:hover { box-shadow: 0 15px 31px rgba(20, 156, 121, 0.33); transform: translateY(-1px); }
.primary-button:active,
.continue-button:active { transform: scale(0.985); }
.primary-button .icon,
.continue-button .icon { width: 19px; height: 19px; }
.time-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; color: #b9ced3; font-size: 10px; font-weight: 650; }
.time-note .icon { width: 13px; height: 13px; }

.entry-section { padding-top: 27px; }
.section-heading span { color: var(--green-600); font-size: 9px; font-weight: 850; letter-spacing: 0.14em; }
.section-heading h2 { margin: 6px 0 15px; color: var(--navy-900); font-size: 18px; font-weight: 780; letter-spacing: -0.025em; }
.entry-grid { display: grid; gap: 10px; }
.entry-card {
  display: flex;
  min-height: 77px;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 5px 17px rgba(25, 67, 79, 0.045);
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.entry-card:hover { border-color: #a9d9cb; box-shadow: 0 10px 24px rgba(25, 67, 79, 0.08); transform: translateY(-1px); }
.entry-card:active { transform: scale(0.988); }
.entry-icon { display: grid; width: 45px; height: 45px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: var(--green-100); color: #0d8c6b; }
.entry-icon .icon { width: 21px; height: 21px; }
.entry-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.entry-copy strong { color: var(--navy-900); font-size: 14px; font-weight: 790; }
.entry-copy small { margin-top: 3px; color: var(--muted); font-size: 10.5px; line-height: 1.35; }
.entry-arrow { width: 17px; height: 17px; color: #93a9b0; }

.lawyer-card { display: flex; align-items: center; gap: 12px; margin-top: 20px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: #eef7f4; }
.lawyer-card div { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.lawyer-card strong { color: var(--navy-900); font-size: 13px; }
.lawyer-card span:not(.lawyer-avatar, .verified) { margin-top: 2px; color: var(--muted); font-size: 10px; }
.lawyer-card small { margin-top: 2px; color: var(--navy-700); font-size: 9px; font-weight: 750; }
.verified { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--green-500); color: white; }
.verified .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.privacy-note,
.question-privacy { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 13px auto 0; color: #81949b; font-size: 9px; line-height: 1.45; text-align: center; }
.privacy-note .icon,
.question-privacy .icon { width: 12px; height: 12px; }

.progress-wrap { padding: 10px 20px 4px; background: var(--mint-50); }
.progress-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #71878f; font-size: 9px; font-weight: 750; letter-spacing: 0.04em; }
.progress-meta strong { color: var(--green-600); }
.progress-track { height: 5px; border-radius: 99px; background: #dce9e6; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-600), #4dd2a9); transition: width 280ms ease; }

.screen--question { display: flex; min-height: calc(100svh - 103px); flex-direction: column; padding-top: 28px; }
.question-heading { margin-bottom: 19px; }
.question-number { display: grid; width: 34px; height: 28px; place-items: center; border-radius: 9px; background: var(--green-100); color: var(--green-600); font-size: 10px; font-weight: 850; }
.question-heading h1 { max-width: 430px; margin: 13px 0 7px; color: var(--navy-900); font-size: clamp(25px, 7vw, 33px); font-weight: 790; letter-spacing: -0.045em; line-height: 1.11; }
.question-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.option-list { display: grid; gap: 9px; }
.option-button {
  display: flex;
  width: 100%;
  min-height: 67px;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1.5px solid var(--line);
  border-radius: 18px;
  background: white;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.option-button:hover { border-color: #a8d7ca; }
.option-button:active { transform: scale(0.99); }
.option-button.is-selected { border-color: var(--green-500); background: #effbf7; box-shadow: 0 6px 17px rgba(21, 158, 121, 0.09); }
.option-button.is-confirming { transform: scale(0.985); }
.option-button:disabled { cursor: default; }
.option-icon { display: grid; width: 41px; height: 41px; flex: 0 0 auto; place-items: center; border-radius: 13px; background: #f0f6f4; color: var(--navy-700); }
.is-selected .option-icon { background: var(--green-100); color: var(--green-600); }
.option-icon .icon { width: 20px; height: 20px; }
.option-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.option-copy strong { color: var(--navy-900); font-size: 13.5px; font-weight: 750; line-height: 1.3; }
.option-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.35; }
.option-radio { display: grid; width: 22px; height: 22px; flex: 0 0 auto; place-items: center; border: 1.5px solid #c7d8d4; border-radius: 50%; color: white; }
.is-selected .option-radio { border-color: var(--green-500); background: var(--green-500); }
.option-radio .icon { width: 13px; height: 13px; stroke-width: 2.8; }
.continue-button { margin-top: auto; transform: translateY(16px); color: white; }
.continue-button:hover { transform: translateY(15px); }
.continue-button:disabled { background: #cbd8d5; box-shadow: none; color: #79908c; cursor: not-allowed; transform: translateY(16px); }
.question-privacy { margin-top: 18px; }

.screen--result { padding-top: 18px; }
.result-card { padding: 23px 20px; border: 1px solid #bae6d8; border-radius: 25px; background: linear-gradient(145deg, #edfaf5, #ffffff); box-shadow: 0 10px 30px rgba(15, 84, 73, 0.07); }
.result-symbol { display: grid; width: 49px; height: 49px; place-items: center; border-radius: 16px; background: linear-gradient(145deg, #2ac195, #149c79); box-shadow: 0 8px 18px rgba(20, 156, 121, 0.2); color: white; }
.result-symbol .icon { width: 25px; height: 25px; stroke-width: 2.5; }
.result-badge { display: inline-flex; margin: 17px 0 8px !important; border-radius: 999px; background: var(--green-100); padding: 6px 9px; color: #08795c !important; font-size: 8px !important; font-weight: 850; letter-spacing: 0.09em; }
.result-card h1 { margin: 0; color: var(--navy-900); font-size: 23px; font-weight: 790; letter-spacing: -0.04em; line-height: 1.18; }
.result-card > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.58; }
.documents-card { margin-top: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.documents-heading { display: flex; align-items: center; gap: 11px; }
.documents-heading > span { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px; background: #edf4f7; color: var(--navy-700); }
.documents-heading > span .icon { width: 19px; height: 19px; }
.documents-heading div { display: flex; flex-direction: column; }
.documents-heading small { color: var(--green-600); font-size: 8px; font-weight: 850; letter-spacing: 0.1em; }
.documents-heading h2 { margin: 2px 0 0; color: var(--navy-900); font-size: 16px; }
.documents-card ul { display: grid; gap: 9px; margin: 15px 0 0; padding: 0; list-style: none; }
.documents-card li { display: flex; align-items: flex-start; gap: 8px; color: #536d77; font-size: 10.5px; line-height: 1.42; }
.documents-card li .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--green-600); stroke-width: 2.5; }
.conversion-card { display: grid; gap: 9px; margin-top: 14px; }
.conversion-card > p { margin: 0 0 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.conversion-button { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 18px; transition: transform 150ms ease, box-shadow 150ms ease; }
.conversion-button:hover { transform: translateY(-1px); }
.conversion-button--whatsapp { background: #179b72; box-shadow: 0 10px 22px rgba(23, 155, 114, 0.2); color: white; }
.conversion-button--schedule { border: 1px solid var(--line); background: white; color: var(--navy-900); }
.conversion-button > .icon:first-child { width: 23px; height: 23px; }
.conversion-button > .icon:last-child { width: 18px; height: 18px; margin-left: auto; }
.conversion-button span { display: flex; flex: 1; flex-direction: column; }
.conversion-button strong { font-size: 13px; }
.conversion-button small { margin-top: 2px; font-size: 9px; opacity: 0.75; }
.text-button { display: flex; align-items: center; gap: 7px; margin: 17px auto 0; background: transparent; color: var(--navy-700); font-size: 10px; font-weight: 750; cursor: pointer; }
.text-button .icon { width: 14px; height: 14px; }
.legal-note { margin: 15px 4px 0; color: #82969d; font-size: 8.5px; line-height: 1.5; text-align: center; }

.screen--contact { padding-top: 20px; }
.contact-hero { padding: 24px 21px; border-radius: 25px; background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); color: white; }
.contact-icon { margin-bottom: 18px; }
.contact-hero .eyebrow { margin: 0 0 8px; }
.contact-hero h1 { margin: 0; font-size: 27px; font-weight: 790; letter-spacing: -0.04em; }
.contact-hero > p:last-child { margin: 10px 0 0; color: #c8dadd; font-size: 12px; line-height: 1.55; }
.contact-actions { display: grid; gap: 10px; margin-top: 14px; }
.contact-action { display: flex; min-height: 76px; align-items: center; gap: 12px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 5px 17px rgba(25, 67, 79, 0.045); }
.contact-action--primary { border-color: transparent; background: #1ca67c; color: white; }
.contact-action-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #eef7f4; color: var(--navy-700); }
.contact-action--primary .contact-action-icon { background: rgba(255, 255, 255, 0.14); color: white; }
.contact-action > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.contact-action strong { font-size: 13px; }
.contact-action small { margin-top: 3px; font-size: 9.5px; opacity: 0.75; }
.contact-action > .icon { width: 17px; height: 17px; }
.professional-card { display: flex; align-items: center; gap: 13px; margin-top: 14px; padding: 16px; border-radius: 20px; background: #eaf5f1; }
.lawyer-avatar--large { width: 49px; height: 49px; border-radius: 16px; }
.professional-card div { display: flex; min-width: 0; flex-direction: column; }
.professional-card small { color: var(--green-600); font-size: 8px; font-weight: 850; letter-spacing: 0.08em; }
.professional-card strong { margin-top: 4px; color: var(--navy-900); font-size: 13px; }
.professional-card span:not(.lawyer-avatar) { margin-top: 2px; color: var(--muted); font-size: 9.5px; }
.privacy-card { display: flex; align-items: flex-start; gap: 11px; margin-top: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 19px; background: white; }
.privacy-card > .icon { width: 19px; height: 19px; color: var(--green-600); }
.privacy-card strong { color: var(--navy-900); font-size: 11px; }
.privacy-card p { margin: 4px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.45; }

.bottom-nav {
  position: fixed;
  z-index: 10;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, 1fr);
  left: 0;
  bottom: 0;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(212, 226, 222, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -8px 28px rgba(17, 56, 67, 0.055);
  backdrop-filter: blur(16px);
}
.nav-item { position: relative; display: flex; min-height: 48px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 13px; background: transparent; color: #80939a; cursor: pointer; }
.nav-item .icon { width: 19px; height: 19px; }
.nav-item span { font-size: 9px; font-weight: 700; }
.nav-item.is-active { color: var(--green-600); }
.nav-item.is-active::after { position: absolute; width: 4px; height: 4px; left: calc(50% - 2px); bottom: 1px; border-radius: 50%; background: var(--green-500); content: ""; }

.view-enter { animation: view-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

button:focus-visible,
a:focus-visible { outline: 3px solid rgba(40, 185, 144, 0.4); outline-offset: 2px; }

@media (min-width: 600px) {
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-card { min-height: 108px; flex-wrap: wrap; align-content: center; }
  .entry-copy { flex-basis: calc(100% - 78px); }
}

@media (min-width: 960px) {
  .app-stage { grid-template-columns: minmax(360px, 1fr) 570px; align-items: center; min-height: 100vh; padding: 34px clamp(34px, 6vw, 92px); }
  .brand-rail { position: relative; z-index: 1; display: flex; max-width: 530px; min-height: 690px; flex-direction: column; justify-content: space-between; padding: 20px 50px 20px 0; color: white; }
  .rail-brand { display: flex; align-items: center; gap: 12px; }
  .rail-brand div { display: flex; flex-direction: column; }
  .rail-brand strong { font-size: 14px; }
  .rail-brand span:not(.brand-mark) { margin-top: 2px; color: #9cb7be; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
  .rail-copy { margin: auto 0; }
  .rail-kicker { color: #4ad1a8; font-size: 10px; font-weight: 850; letter-spacing: 0.16em; }
  .rail-copy h2 { max-width: 480px; margin: 15px 0; font-size: clamp(43px, 4.2vw, 64px); font-weight: 730; letter-spacing: -0.055em; line-height: 0.99; }
  .rail-copy p { max-width: 450px; margin: 0; color: #b9cdd2; font-size: 15px; line-height: 1.65; }
  .rail-points { display: grid; gap: 11px; margin-top: 35px; }
  .rail-points span { display: flex; align-items: center; gap: 9px; color: #d5e2e5; font-size: 11px; }
  .rail-points .icon { width: 16px; height: 16px; color: #4ad1a8; }
  .rail-registration { margin: 0; color: #799aa4; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
  .device-shell { width: 500px; height: min(860px, calc(100vh - 68px)); min-height: 690px; max-height: 900px; justify-self: end; border: 7px solid rgba(255, 255, 255, 0.11); border-radius: 38px; box-shadow: var(--shadow); overflow-y: auto; scrollbar-width: none; }
  .device-shell::-webkit-scrollbar { display: none; }
  .topbar { position: sticky; top: 0; padding-top: 14px; }
  .bottom-nav { position: sticky; margin-top: auto; }
  .screen { padding-bottom: 34px; }
  .screen--question { min-height: calc(100% - 145px); padding-bottom: 30px; }
  .screen--result,
  .screen--contact { padding-bottom: 34px; }
}

@media (max-width: 380px) {
  .topbar { padding-inline: 14px; }
  .screen { padding-inline: 14px; }
  .hero-card { padding-inline: 18px; }
  .hero-card h1 { font-size: 26px; }
  .entry-card { min-height: 71px; }
}

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