:root {
  --purple-950: #18062f;
  --purple-900: #27104f;
  --purple-800: #3b146d;
  --purple-700: #5c20b2;
  --purple-500: #8b39ff;
  --purple-100: #f0e8ff;
  --coral: #ff6e79;
  --ink: #151124;
  --muted: #6f687c;
  --line: #e8e1f2;
  --paper: #ffffff;
  --surface: #faf8ff;
  --success: #13a76f;
  --shadow: 0 20px 60px rgba(39, 16, 79, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  background:
    linear-gradient(135deg, rgba(139, 57, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbf8ff 46%, #ffffff 100%);
  overflow-x: hidden;
}

.site-header,
.auth-header {
  width: min(1160px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid rgba(232, 225, 242, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 52px rgba(39, 16, 79, 0.08);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  min-width: 210px;
  height: 44px;
}

.brand-mark img {
  width: 230px;
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-weight: 700;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: var(--purple-700);
}

.nav-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ghost-link,
.secondary-link,
.primary-link,
.ghost-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  border: 1px solid transparent;
  cursor: pointer;
}

.ghost-link,
.ghost-button {
  background: #ffffff;
  color: var(--purple-800);
  border-color: var(--line);
}

.secondary-link {
  background: #ffffff;
  color: var(--purple-800);
  border-color: rgba(92, 32, 178, 0.18);
}

.secondary-link.light {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.primary-link {
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(92, 32, 178, 0.24);
}

.primary-link.large,
.secondary-link.large {
  min-height: 52px;
  padding: 0 24px;
}

.primary-link.full {
  width: 100%;
  margin-top: 8px;
}

.button {
  width: 100%;
  border: 0;
}

.button.compact {
  width: auto;
  min-width: 104px;
}

.hero-section {
  width: min(1160px, calc(100% - 40px));
  margin: 38px auto 0;
  min-height: 590px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: 46px;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 20px;
  position: relative;
}

.eyebrow {
  margin: 0;
  color: var(--purple-700);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-copy h1 {
  margin-bottom: 0;
  font-size: 5rem;
  line-height: 0.94;
  max-width: 760px;
  letter-spacing: 0;
  color: var(--purple-950);
}

.hero-lead {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 650px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.hero-proof span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  box-shadow: 0 12px 34px rgba(39, 16, 79, 0.06);
}

.hero-proof strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.capital-visual {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(92, 32, 178, 0.16);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 232, 255, 0.9)),
    #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.capital-visual::after {
  content: "";
  position: absolute;
  inset: auto -18px 18px auto;
  width: 150px;
  height: 220px;
  transform: skewX(-14deg);
  background: linear-gradient(180deg, rgba(139, 57, 255, 0.18), rgba(255, 110, 121, 0.1));
  border-radius: 8px;
}

.visual-card,
.mini-metric,
.calculator-card,
.panel-card,
.status-card,
.trust-strip article,
.benefit-grid article,
.policy-note {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
}

.visual-card {
  position: relative;
  z-index: 1;
  padding: 26px;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.visual-card p,
.mini-metric span,
.trust-strip span,
.status-card span,
.panel-heading span {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.visual-card strong {
  font-size: 3.1rem;
  line-height: 0.96;
  color: var(--purple-800);
}

.amount-range {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.amount-range small {
  font-size: 1.15rem;
  color: var(--muted);
}

.visual-card span {
  color: var(--muted);
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  position: relative;
  z-index: 1;
}

.mini-metric {
  padding: 18px;
}

.mini-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.6rem;
}

.mini-metric.accent {
  background: linear-gradient(145deg, var(--purple-950), var(--purple-800));
  color: #ffffff;
}

.mini-metric.accent span {
  color: rgba(255, 255, 255, 0.72);
}

.signal-chart {
  height: 176px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px) 0 0 / 42px 42px,
    linear-gradient(135deg, #2d115e, #7f32ee);
  position: relative;
  z-index: 1;
}

.signal-chart i {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #ffffff, #ffb0b8);
}

.trust-strip {
  width: min(1160px, calc(100% - 40px));
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.trust-strip article {
  padding: 22px;
}

.trust-strip strong {
  display: block;
  margin: 10px 0 6px;
  font-size: 2rem;
}

.trust-strip p,
.benefit-grid p,
.section-heading p,
.status-card p,
.auth-copy p,
.auth-card p {
  color: var(--muted);
  line-height: 1.65;
}

.section-grid,
.benefits-section,
.app-access-section,
.faq-section,
.conversion-band {
  width: min(1160px, calc(100% - 40px));
  margin: 96px auto 0;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 46px;
  align-items: start;
}

.section-heading h2 {
  font-size: 3.2rem;
  line-height: 1.05;
  margin-bottom: 16px;
}

.section-heading.center {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}

.calculator-card {
  display: grid;
  gap: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
}

label {
  color: #433a55;
  font-weight: 850;
}

input,
select,
textarea,
.input-row,
.phone-field {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
}

input {
  padding: 0 16px;
  color: var(--ink);
  outline: none;
}

select {
  padding: 0 16px;
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 96px;
  padding: 14px 16px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(139, 57, 255, 0.12);
}

input[type="range"] {
  padding: 0;
  min-height: 18px;
  accent-color: var(--purple-700);
  border: 0;
  background: transparent;
}

.input-row,
.phone-field {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.input-row span,
.phone-field span {
  flex: 0 0 auto;
  padding: 0 16px;
  color: var(--purple-800);
  font-weight: 900;
}

.input-row input,
.phone-field input {
  min-height: 50px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calc-results div {
  padding: 18px;
  border-radius: 8px;
  background: var(--purple-100);
}

.calc-results span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}

.calc-results strong {
  font-size: 1.45rem;
  color: var(--purple-800);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.benefit-grid article {
  padding: 26px;
}

.benefit-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--purple-100);
  color: var(--purple-800);
  font-weight: 900;
}

.benefit-grid h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
}

.app-access-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  gap: 54px;
  align-items: center;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(240, 232, 255, 0.86), rgba(255, 255, 255, 0.94)),
    #ffffff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.device-showcase {
  min-height: 520px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 0.84fr) minmax(210px, 1fr);
  align-items: center;
  gap: 24px;
}

.device-showcase::before {
  content: "";
  position: absolute;
  inset: 22px auto 0 8%;
  width: 54%;
  height: 88%;
  transform: rotate(-17deg);
  border-radius: 8px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(92, 32, 178, 0.09) 0,
      rgba(92, 32, 178, 0.09) 86px,
      transparent 86px,
      transparent 128px
    );
}

.phone-device {
  width: 230px;
  height: 440px;
  padding: 12px;
  border-radius: 36px;
  background: linear-gradient(145deg, #171120, #6b5b7b);
  box-shadow: 0 28px 70px rgba(39, 16, 79, 0.24);
  transform: rotate(-5deg);
  position: relative;
  z-index: 2;
  justify-self: center;
}

.phone-screen {
  height: 100%;
  padding: 22px 18px;
  border-radius: 28px;
  color: #ffffff;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(180deg, var(--purple-700), var(--purple-950));
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.phone-app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.phone-app-head img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.phone-screen p {
  margin-top: auto;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.phone-screen strong {
  font-size: 2.15rem;
  line-height: 1;
}

.phone-progress {
  display: grid;
  gap: 8px;
}

.phone-progress i {
  height: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.22);
}

.phone-progress i:nth-child(1) {
  width: 92%;
  background: #ffffff;
}

.phone-progress i:nth-child(2) {
  width: 74%;
}

.phone-progress i:nth-child(3) {
  width: 56%;
}

.phone-screen small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.access-points {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 16px;
  width: 100%;
}

.access-points article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(39, 16, 79, 0.08);
}

.access-points span {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--purple-700);
  color: #ffffff;
  font-weight: 900;
}

.access-points strong {
  line-height: 1.35;
  color: var(--ink);
}

.access-copy h2 {
  font-size: 3rem;
  line-height: 1.05;
  margin-bottom: 16px;
}

.access-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.store-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.store-badge,
.online-badge {
  min-width: 0;
  min-height: 82px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(39, 16, 79, 0.07);
}

.app-status-badge {
  cursor: default;
}

.store-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.store-badge small,
.online-badge small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.store-badge strong,
.online-badge strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.1;
  white-space: nowrap;
}

.store-badge em {
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  border-radius: 8px;
  background: rgba(109, 40, 217, 0.1);
  color: var(--purple-800);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}

.play-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
  border-radius: 8px;
  background:
    linear-gradient(30deg, #1eb980 0 34%, transparent 34%),
    linear-gradient(150deg, #4b7cff 0 48%, transparent 48%),
    linear-gradient(210deg, #ffc342 0 56%, #ff5a6f 56%);
  clip-path: polygon(22% 10%, 86% 50%, 22% 90%);
}

.store-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.ios-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--purple-950);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.online-badge {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  align-content: center;
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
}

.online-badge small,
.online-badge strong {
  color: #ffffff;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(39, 16, 79, 0.06);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--purple-950);
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--purple-700);
  font-weight: 900;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.conversion-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px;
  border-radius: 8px;
  background: var(--purple-900);
  color: #ffffff;
}

.conversion-band .eyebrow,
.conversion-band p {
  color: #ffb0b8;
}

.conversion-band h2 {
  margin: 8px 0 0;
  max-width: 760px;
  font-size: 2.8rem;
  line-height: 1.08;
}

.conversion-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.landing-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  justify-items: end;
  gap: 14px;
  pointer-events: none;
}

.landing-chat > * {
  pointer-events: auto;
}

.landing-chat-launcher {
  width: min(330px, calc(100vw - 32px));
  min-height: 74px;
  border: 1px solid rgba(92, 32, 178, 0.16);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 58px rgba(39, 16, 79, 0.2);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(16px);
}

.landing-chat-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 66px rgba(39, 16, 79, 0.26);
}

.landing-chat-launcher strong,
.landing-chat-launcher small {
  display: block;
}

.landing-chat-launcher strong {
  font-size: 0.98rem;
}

.landing-chat-launcher small {
  margin-top: 3px;
  color: var(--muted);
  font-weight: 750;
}

.chat-launcher-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-500));
  position: relative;
  box-shadow: 0 12px 28px rgba(92, 32, 178, 0.28);
}

.chat-launcher-icon::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 13px;
  width: 22px;
  height: 16px;
  border: 3px solid #ffffff;
  border-radius: 8px;
}

.chat-launcher-icon::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid #ffffff;
}

.landing-chat-panel {
  width: min(410px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 42px));
  display: grid;
  grid-template-rows: auto minmax(190px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(92, 32, 178, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 78px rgba(24, 6, 47, 0.26);
}

.landing-chat-panel[hidden] {
  display: none;
}

.landing-chat-head {
  min-height: 78px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(145deg, var(--purple-950), var(--purple-700));
}

.landing-chat-head span,
.landing-chat-head strong {
  display: block;
}

.landing-chat-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-chat-head strong {
  margin-top: 4px;
  font-size: 1.35rem;
}

.landing-chat-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
}

.landing-chat-close::before,
.landing-chat-close::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 19px;
  height: 3px;
  border-radius: 8px;
  background: #ffffff;
}

.landing-chat-close::before {
  transform: rotate(45deg);
}

.landing-chat-close::after {
  transform: rotate(-45deg);
}

.landing-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background:
    linear-gradient(180deg, #fbf9ff, #ffffff 44%),
    #ffffff;
}

.landing-message {
  max-width: 86%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 760;
}

.landing-message.client {
  justify-self: end;
  border-color: transparent;
  color: #ffffff;
  background: var(--purple-700);
}

.landing-message small {
  display: block;
  margin-top: 5px;
  color: inherit;
  opacity: 0.7;
  font-weight: 850;
}

.landing-lead-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.landing-lead-form p {
  margin: 0 0 2px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 750;
}

.landing-lead-form label:not(.check-row) {
  font-size: 0.82rem;
}

.landing-consent {
  font-size: 0.82rem;
  line-height: 1.35;
}

.landing-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.landing-message-form[hidden],
.landing-lead-form[hidden] {
  display: none;
}

.landing-message-form input {
  min-height: 50px;
}

#landingChatStatus {
  min-height: 0;
  margin: 0;
  padding: 0 16px 14px;
  background: #ffffff;
  font-size: 0.82rem;
}

.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 74px auto 0;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, rgba(139, 57, 255, 0.18), transparent 44%),
    linear-gradient(145deg, #160629, #2a0b55 55%, #0f071a);
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 24px 34px;
  box-shadow: 0 -18px 46px rgba(40, 7, 82, 0.12);
}

.footer-brand {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.footer-brand img {
  width: 180px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-brand strong {
  color: #ffffff;
  display: block;
  font-size: 1.12rem;
  line-height: 1.2;
}

.footer-brand p {
  margin: 8px 0 0;
  max-width: 520px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 720;
}

.footer-contact {
  display: grid;
  gap: 12px;
  margin: 0;
  font-style: normal;
}

.footer-contact span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  line-height: 1.4;
}

.footer-contact strong {
  color: #ffffff;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer-contact a {
  width: fit-content;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
}

.footer-contact a::after {
  content: "Abrir WhatsApp";
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 117, 132, 0.18);
  color: #ffccd4;
  font-size: 0.74rem;
  text-transform: uppercase;
}

.footer-legal {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-page {
  background:
    linear-gradient(135deg, rgba(139, 57, 255, 0.09), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
}

.auth-layout {
  width: min(1080px, calc(100% - 40px));
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) 460px;
  gap: 42px;
  align-items: center;
}

.register-layout {
  align-items: start;
  padding-top: 54px;
  padding-bottom: 54px;
}

.auth-copy {
  color: #ffffff;
  min-height: 620px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(145deg, var(--purple-950), var(--purple-800));
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.auth-copy::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: 64px;
  width: 260px;
  height: 72px;
  transform: rotate(-28deg);
  background: linear-gradient(90deg, rgba(255, 110, 121, 0.72), rgba(139, 57, 255, 0.08));
  border-radius: 8px;
}

.auth-copy .eyebrow {
  color: #ffb0b8;
}

.auth-copy h1 {
  max-width: 620px;
  font-size: 4rem;
  line-height: 1;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}

.auth-copy p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 560px;
  position: relative;
  z-index: 1;
}

.policy-note {
  margin-top: 22px;
  padding: 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.auth-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  width: 100%;
}

.auth-card h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.auth-card form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  color: var(--muted);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-row.compact {
  display: flex;
  justify-content: flex-end;
  font-weight: 800;
  color: var(--purple-700);
}

.text-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--purple-700);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 0;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--purple-500);
  text-decoration: underline;
}

.recovery-guide {
  border: 1px solid rgba(110, 40, 205, 0.16);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(247, 241, 255, 0.95), rgba(255, 255, 255, 0.98));
  color: var(--muted);
  display: grid;
  gap: 6px;
  padding: 14px 16px;
}

.recovery-guide strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.recovery-guide p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.form-status.error {
  color: #b42318;
}

.form-status.success {
  color: var(--success);
}

.dashboard-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f8f5ff;
}

.app-sidebar {
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 28px;
  background: var(--purple-900);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.app-sidebar .brand-mark {
  min-width: 0;
  width: 100%;
  height: auto;
  padding: 10px;
  background: #ffffff;
  border-radius: 8px;
}

.app-sidebar nav {
  display: grid;
  gap: 8px;
}

.app-sidebar nav a {
  padding: 13px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 850;
}

.app-sidebar nav a.active,
.app-sidebar nav a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.app-sidebar .ghost-button {
  margin-top: auto;
  width: 100%;
}

.client-app {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 54px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.app-topbar span {
  color: var(--muted);
  font-weight: 800;
}

.app-topbar h1 {
  margin: 6px 0 0;
  font-size: 3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.22fr repeat(3, minmax(0, 0.78fr));
  gap: 16px;
}

.status-card {
  padding: 24px;
}

.status-card.primary {
  background: linear-gradient(135deg, var(--purple-900), var(--purple-700));
  color: #ffffff;
}

.status-card.primary span,
.status-card.primary p {
  color: rgba(255, 255, 255, 0.78);
}

.status-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 1.7rem;
}

.status-card.icon-summary {
  position: relative;
  overflow: hidden;
}

.status-card.icon-summary img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 14px;
  box-shadow: 0 14px 28px rgba(92, 32, 178, 0.18);
}

.app-section {
  margin-top: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.panel-card {
  padding: 24px;
  box-shadow: 0 14px 40px rgba(39, 16, 79, 0.08);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-heading h2 {
  margin: 4px 0 0;
}

.summary-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-summary-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(92, 32, 178, 0.16);
}

.panel-note {
  margin: -6px 0 16px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.document-list {
  display: grid;
  gap: 10px;
}

.document-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.document-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.document-row em {
  font-style: normal;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--purple-100);
  color: var(--purple-800);
  font-weight: 900;
}

.document-row.loaded em {
  background: #e8fff5;
  color: var(--success);
}

.document-row.locked {
  cursor: default;
  background: linear-gradient(135deg, #ffffff, #f7fff9);
  border-color: rgba(19, 167, 111, 0.32);
}

.document-row.locked strong::after {
  content: " Bloqueado";
  display: inline-flex;
  margin-left: 8px;
  padding: 4px 7px;
  border-radius: 8px;
  background: #e8fff5;
  color: var(--success);
  font-size: 0.68rem;
  vertical-align: middle;
}

.account-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.account-card dl > div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-card dt {
  color: var(--muted);
  font-weight: 800;
}

.account-card dd {
  margin: 6px 0 0;
  font-weight: 900;
}

.disbursement-card {
  max-width: 820px;
}

.disbursement-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.disbursement-form .button,
.disbursement-form .form-status {
  grid-column: 1 / -1;
}

.chat-card {
  min-height: 470px;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
}

.web-chat-messages {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  max-height: 430px;
  padding: 16px;
  border-radius: 8px;
  background: #fbf9ff;
  border: 1px solid var(--line);
}

.chat-bubble {
  max-width: min(680px, 78%);
  padding: 13px 15px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  line-height: 1.45;
  font-weight: 750;
}

.chat-bubble p {
  margin: 0;
}

.chat-bubble p + img,
.chat-bubble p + audio,
.chat-bubble p + .chat-file-card {
  margin-top: 10px;
}

.chat-bubble.client {
  justify-self: end;
  background: var(--purple-700);
  color: #ffffff;
  border-color: transparent;
}

.chat-bubble audio {
  width: min(320px, 100%);
}

.chat-image-preview {
  max-width: min(320px, 100%);
  max-height: 260px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  object-fit: cover;
}

.chat-file-card {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.web-chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 14px;
}

.chat-toolbox {
  display: flex;
  gap: 8px;
}

.chat-tool-button {
  width: 52px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.chat-tool-button:hover,
.chat-tool-button.recording {
  transform: translateY(-1px);
  border-color: rgba(92, 32, 178, 0.34);
  background: var(--purple-100);
}

.chat-tool-button.recording {
  box-shadow: 0 0 0 4px rgba(255, 110, 121, 0.16);
}

.tool-glyph {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
}

.tool-glyph.paperclip::before {
  content: "";
  position: absolute;
  inset: 2px 5px 2px 7px;
  border: 3px solid var(--purple-800);
  border-left-color: transparent;
  border-radius: 12px;
  transform: rotate(38deg);
}

.tool-glyph.camera::before {
  content: "";
  position: absolute;
  inset: 5px 2px 3px;
  border: 3px solid var(--purple-800);
  border-radius: 5px;
}

.tool-glyph.camera::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 9px;
  width: 6px;
  height: 6px;
  border: 2px solid var(--purple-800);
  border-radius: 50%;
}

.tool-glyph.mic::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 13px;
  border: 3px solid var(--purple-800);
  border-radius: 12px;
}

.tool-glyph.mic::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 1px;
  width: 12px;
  height: 8px;
  border: 3px solid var(--purple-800);
  border-top: 0;
  border-radius: 0 0 10px 10px;
}

.tool-status {
  min-height: 22px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.tool-status.error {
  color: #b42318;
}

.tool-status.success {
  color: var(--success);
}

.success-modal[hidden] {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 6, 47, 0.52);
  backdrop-filter: blur(10px);
}

.success-modal-card {
  width: min(440px, 100%);
  padding: 30px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(24, 6, 47, 0.28);
  text-align: center;
}

.success-check {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e8fff5;
  margin-bottom: 16px;
}

.success-check::before {
  content: "";
  width: 24px;
  height: 12px;
  border-left: 4px solid var(--success);
  border-bottom: 4px solid var(--success);
  transform: rotate(-45deg) translate(2px, -2px);
}

.success-modal-card h2 {
  margin-bottom: 8px;
}

.success-modal-card p {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 920px) {
  .site-header,
  .auth-header {
    width: min(680px, calc(100% - 28px));
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
  }

  .hero-section,
  .section-grid,
  .auth-layout,
  .app-access-section,
  .dashboard-page {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    margin-top: 18px;
  }

  .hero-copy h1,
  .auth-copy h1 {
    font-size: 3.25rem;
  }

  .section-heading h2,
  .app-topbar h1,
  .conversion-band h2 {
    font-size: 2.45rem;
  }

  .visual-card strong {
    font-size: 2.55rem;
  }

  .capital-visual {
    order: 2;
  }

  .hero-proof,
  .trust-strip,
  .benefit-grid,
  .store-actions,
  .dashboard-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .app-access-section {
    padding: 30px;
    gap: 30px;
  }

  .device-showcase {
    min-height: 470px;
  }

  .auth-page {
    background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  }

  .auth-layout {
    min-height: auto;
    padding: 28px 0 54px;
    gap: 24px;
  }

  .auth-copy {
    min-height: auto;
    padding: 34px;
  }

  .dashboard-page {
    display: block;
  }

  .app-sidebar {
    min-height: auto;
    position: static;
    padding: 18px;
  }

  .app-sidebar nav {
    display: flex;
    overflow-x: auto;
  }

  .app-sidebar nav a {
    white-space: nowrap;
  }

  .client-app {
    width: min(680px, calc(100% - 28px));
    padding-top: 22px;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    min-width: 0;
  }

  .brand-mark img {
    width: 190px;
  }

  .nav-actions,
  .hero-actions,
  .conversion-band,
  .conversion-actions,
  .app-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .ghost-link,
  .secondary-link,
  .primary-link {
    width: 100%;
  }

  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .site-header .brand-mark {
    justify-content: center;
    width: 100%;
  }

  .site-header .nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 10px;
  }

  .site-header .ghost-link,
  .site-header .primary-link {
    width: auto;
    min-height: 42px;
    padding: 0 12px;
  }

  .site-header .site-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding-top: 4px;
    text-align: center;
    font-size: 0.82rem;
  }

  .auth-header {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .auth-header .ghost-link {
    width: min(100%, 220px);
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .auth-copy h1 {
    font-size: 2.35rem;
  }

  .section-heading h2,
  .access-copy h2,
  .app-topbar h1,
  .conversion-band h2 {
    font-size: 2rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .visual-grid,
  .calc-results,
  .web-chat-form,
  .disbursement-form {
    grid-template-columns: 1fr;
  }

  .section-grid,
  .benefits-section,
  .app-access-section,
  .faq-section,
  .conversion-band {
    margin-top: 58px;
  }

  .calculator-card,
  .auth-card,
  .panel-card,
  .app-access-section,
  .conversion-band {
    padding: 20px;
  }

  .capital-visual {
    padding: 16px;
  }

  .visual-card {
    padding: 20px;
  }

  .visual-card strong {
    font-size: 2.05rem;
  }

  .signal-chart {
    height: 132px;
    padding: 14px;
    gap: 8px;
  }

  .auth-copy {
    padding: 28px 22px;
  }

  .auth-copy::after {
    width: 190px;
    height: 52px;
    right: -92px;
    bottom: 30px;
  }

  .device-showcase {
    min-height: auto;
    grid-template-columns: 1fr;
    place-items: center;
    gap: 14px;
    padding: 0;
  }

  .device-showcase::before {
    display: none;
  }

  .phone-device {
    display: none;
  }

  .phone-screen strong {
    font-size: 1.75rem;
  }

  .access-points {
    position: relative;
    right: auto;
    width: 100%;
    gap: 14px;
  }

  .access-points article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.82);
  }

  .access-points span {
    width: 34px;
    height: 34px;
  }

  .access-points strong {
    font-size: 0.86rem;
  }

  .access-copy h2 {
    font-size: 2.15rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .store-badge,
  .online-badge {
    min-height: 66px;
    padding: 12px;
  }

  .site-footer {
    width: min(100% - 28px, 1160px);
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }

  .footer-brand {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-brand img {
    width: min(240px, 100%);
  }

  .footer-contact span {
    padding: 12px;
    overflow-wrap: anywhere;
  }

  .chat-bubble {
    max-width: 100%;
  }

  .landing-chat {
    right: 14px;
    bottom: 14px;
    left: 14px;
    justify-items: stretch;
  }

  .landing-chat-launcher,
  .landing-chat-panel {
    width: 100%;
  }

  .landing-chat-panel {
    max-height: calc(100vh - 28px);
  }

  .landing-message-form {
    grid-template-columns: 1fr;
  }
}
