:root {
  --ink: #14211d;
  --muted: #5c6963;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #d9dfd8;
  --forest: #1f5d4e;
  --teal: #2f7d6d;
  --amber: #d9913d;
  --rust: #bc5a3f;
  --sky: #dcecef;
  --header-bg: #0d1117;
  --header-text: #ffffff;
  --header-muted: #e6e7ec;
  --header-accent: #ff6a00;
  --shadow: 0 18px 48px rgba(20, 33, 29, 0.16);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px clamp(18px, 4vw, 52px);
  color: var(--header-text);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(14px, 2vw, 28px);
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding-right: clamp(14px, 2vw, 24px);
  border-right: 1px solid rgba(230, 231, 236, 0.26);
  text-decoration: none;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: 346px;
  height: 346px;
  margin: -156px -74px -136px -94px;
  object-fit: contain;
  pointer-events: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: var(--header-text);
  line-height: 1.08;
}

.brand strong,
.brand-subtitle,
.brand small {
  display: block;
}

.brand strong {
  color: var(--header-text);
  font-size: clamp(1.02rem, 1.35vw, 1.28rem);
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-subtitle {
  color: var(--header-muted);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand small {
  color: var(--header-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.service-route {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--header-accent);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.2;
}

.route-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 4px solid var(--header-accent);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.route-icon::after {
  position: absolute;
  inset: 3px;
  content: "";
  border-radius: 50%;
  background: var(--header-bg);
}

.route-text {
  max-width: 185px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.6vw, 22px);
  color: var(--header-text);
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.phone-link {
  padding: 9px 13px;
  border: 1px solid rgba(230, 231, 236, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--header-text);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

[data-phone-display] {
  white-space: nowrap;
}

.language-selector {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 9px;
  border: 1px solid rgba(230, 231, 236, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--header-muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.language-button {
  min-width: 28px;
  padding: 2px 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--header-muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.language-button[aria-pressed="true"] {
  color: #0b0f14;
  background: var(--header-accent);
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 18, 15, 0.88) 0%, rgba(10, 18, 15, 0.66) 35%, rgba(10, 18, 15, 0.18) 72%),
    linear-gradient(180deg, rgba(10, 18, 15, 0.25), rgba(10, 18, 15, 0.38));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 88px);
  padding-top: 78px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 9vw, 6.8rem);
  line-height: 0.92;
}

h2 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

h3 {
  font-size: 1.14rem;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(217, 145, 61, 0.52);
  outline-offset: 3px;
}

.button.primary {
  color: #111916;
  background: var(--amber);
  box-shadow: 0 12px 28px rgba(217, 145, 61, 0.24);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.hero .button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.44);
}

.button.whatsapp {
  color: #fff;
  background: var(--forest);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(610px, 100%);
  margin: 38px 0 0;
}

.hero-metrics div {
  min-width: 0;
  padding: 14px 12px;
  border-left: 3px solid var(--amber);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.hero-metrics dt {
  font-size: 1.24rem;
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.86rem;
}

.section {
  padding: clamp(56px, 9vw, 104px) clamp(18px, 5vw, 64px);
}

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.intro-band {
  padding-block: 22px;
  background: var(--forest);
  color: #fff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.intro-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.text-link {
  color: #fff;
  font-weight: 900;
  text-decoration-color: var(--amber);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

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

.service-card {
  min-height: 238px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 33, 29, 0.06);
}

.service-card.accent {
  color: #fff;
  background: var(--rust);
  border-color: var(--rust);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-card.accent p {
  color: rgba(255, 255, 255, 0.86);
}

.service-icon {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 900;
}

.service-card.accent .service-icon {
  color: #ffe3bd;
}

.request-section {
  background: #eef4ef;
}

.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.advisor-panel {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid rgba(230, 231, 236, 0.18);
  border-radius: 8px;
  background: #0d1117;
  color: #fff;
  box-shadow: var(--shadow);
  scroll-margin-top: clamp(136px, 16vw, 210px);
}

.advisor-panel:focus {
  outline: 2px solid var(--header-accent);
  outline-offset: 4px;
}

.advisor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.advisor-header h3 {
  margin-bottom: 8px;
  color: #fff;
}

.advisor-header p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: rgba(230, 231, 236, 0.82);
  line-height: 1.55;
}

.advisor-meta {
  display: grid;
  gap: 4px;
  min-width: max-content;
  padding: 10px 12px;
  border: 1px solid rgba(230, 231, 236, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(230, 231, 236, 0.8);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}

.advisor-meta span:first-child {
  color: var(--header-accent);
}

.advisor-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.advisor-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--header-accent);
  transition: width 260ms ease;
}

.conversation-messages {
  display: grid;
  gap: 12px;
  max-height: 470px;
  overflow-y: auto;
  padding-right: 4px;
}

.message-bubble {
  display: grid;
  gap: 5px;
  width: fit-content;
  max-width: min(92%, 620px);
  padding: 13px 15px;
  border-radius: 8px;
  line-height: 1.5;
  animation: bubbleIn 180ms ease both;
}

.message-speaker {
  color: rgba(230, 231, 236, 0.68);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.message-text {
  display: block;
}

.message-bubble.assistant {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.message-bubble.user {
  justify-self: end;
  background: var(--header-accent);
  color: #0d1117;
  font-weight: 800;
}

.message-bubble.user .message-speaker {
  color: rgba(13, 17, 23, 0.68);
}

.conversation-controls {
  display: grid;
  gap: 14px;
}

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

.conversation-input-grid .span-2 {
  grid-column: 1 / -1;
}

.conversation-controls label {
  color: #fff;
}

.conversation-controls input,
.conversation-controls select,
.conversation-controls textarea {
  border-color: rgba(230, 231, 236, 0.28);
  background: rgba(255, 255, 255, 0.97);
}

.conversation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.conversation-option {
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid rgba(230, 231, 236, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.conversation-option:hover,
.conversation-option[aria-pressed="true"] {
  transform: translateY(-1px);
  border-color: var(--header-accent);
  background: rgba(255, 106, 0, 0.16);
}

.conversation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.conversation-error {
  min-height: 1.2em;
  color: #ffd2c2;
}

.conversation-status {
  min-height: 1.2em;
  margin: 0;
  color: #c9ffd8;
  font-weight: 850;
}

.conversation-final {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(230, 231, 236, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.conversation-ready {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(255, 106, 0, 0.36);
  border-radius: 999px;
  background: rgba(255, 106, 0, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 950;
}

.conversation-final dl,
.advisor-summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

.conversation-final div,
.advisor-summary div {
  display: grid;
  gap: 3px;
}

.conversation-final dt,
.advisor-summary dt {
  color: rgba(230, 231, 236, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.conversation-final dd,
.advisor-summary dd {
  margin: 0;
  line-height: 1.45;
}

.conversation-note {
  margin: 0;
  color: rgba(230, 231, 236, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.conversation-completion {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(111, 255, 160, 0.26);
  border-radius: 8px;
  background: rgba(111, 255, 160, 0.1);
}

.conversation-completion.closed {
  border-color: rgba(255, 106, 0, 0.3);
  background: rgba(255, 106, 0, 0.1);
}

.conversation-completion-text {
  margin: 0;
  color: #f8fff9;
  line-height: 1.55;
  font-weight: 750;
}

.form-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid rgba(230, 231, 236, 0.16);
  color: rgba(230, 231, 236, 0.8);
  font-weight: 800;
}

.full-form-panel {
  grid-column: 1 / -1;
  grid-row: 2;
}

.full-form-panel[hidden] {
  display: none;
}

.form-panel,
.insight-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.insight-panel {
  grid-column: 2;
  grid-row: 1;
}

.form-panel {
  display: grid;
  gap: 26px;
  padding: clamp(20px, 4vw, 34px);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 900;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd4ce;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(188, 90, 63, 0.12);
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

input[type="file"] {
  padding: 10px 12px;
}

textarea {
  resize: vertical;
  min-height: 132px;
  padding: 12px;
  line-height: 1.5;
}

.span-2 {
  grid-column: 1 / -1;
}

.field-helper,
.field-error {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.field-helper {
  color: var(--muted);
}

.field-error {
  color: var(--rust);
}

.check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.check-row legend {
  flex-basis: 100%;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--forest);
}

.form-status {
  min-height: 1.4em;
  margin: -12px 0 0;
  color: var(--forest);
  font-weight: 800;
}

.insight-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 24px;
  padding: 24px;
}

.score-block {
  display: grid;
  gap: 10px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.score-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

#priorityLabel {
  font-size: 1.8rem;
  line-height: 1;
}

meter {
  width: 100%;
  height: 14px;
}

.insight-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.insight-list div {
  display: grid;
  gap: 6px;
}

.insight-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-list dd {
  margin: 0;
  line-height: 1.45;
}

.note-box {
  padding: 14px;
  border-left: 4px solid var(--amber);
  background: #fff8ed;
  color: #584534;
  line-height: 1.45;
}

.advisor-summary-card {
  display: grid;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.advisor-summary-card h3 {
  margin: 0;
}

@keyframes bubbleIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.process-section {
  background: var(--paper);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 184px;
  padding: 22px;
  border-top: 4px solid var(--teal);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(20, 33, 29, 0.06);
}

.process-list li::before {
  counter-increment: process;
  content: "0" counter(process);
  display: block;
  margin-bottom: 28px;
  color: var(--rust);
  font-size: 0.78rem;
  font-weight: 900;
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list strong {
  margin-bottom: 8px;
}

.process-list span {
  color: var(--muted);
  line-height: 1.5;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 64px);
  background: var(--ink);
  color: #fff;
}

.site-footer span,
.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: flex-end;
}

@media (max-width: 1120px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    padding-block: 11px;
  }

  .brand-logo {
    width: 308px;
    height: 308px;
    margin: -139px -66px -121px -83px;
  }

  .service-route {
    font-size: 0.78rem;
  }

  .route-text {
    max-width: 210px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-content {
    margin-right: 18px;
  }

  .hero-metrics,
  .service-grid,
  .request-grid,
  .process-list,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .advisor-panel,
  .insight-panel,
  .full-form-panel {
    grid-column: 1;
    grid-row: auto;
  }

  .insight-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: center;
  }

  .brand {
    grid-column: 1 / -1;
    width: 100%;
    gap: 11px;
    padding-right: 0;
    border-right: 0;
  }

  .brand-logo {
    width: 256px;
    height: 256px;
    margin: -116px -51px -100px -69px;
  }

  .brand strong {
    font-size: 0.96rem;
  }

  .brand-subtitle {
    font-size: 0.62rem;
  }

  .brand small {
    font-size: 0.58rem;
  }

  .service-route {
    grid-column: 1;
    gap: 8px;
    min-width: 0;
    font-size: 0.72rem;
  }

  .route-icon {
    width: 16px;
    height: 16px;
    border-width: 4px;
  }

  .route-text {
    max-width: none;
    white-space: nowrap;
  }

  .phone-link {
    grid-column: 2;
    justify-self: end;
    padding: 8px 9px;
    font-size: 0.8rem;
  }

  .language-selector {
    grid-column: 1 / -1;
    justify-self: start;
    gap: 5px;
    padding-inline: 8px;
  }

  .hero {
    min-height: 720px;
  }

  .hero-image {
    object-position: 58% center;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(10, 18, 15, 0.9), rgba(10, 18, 15, 0.56));
  }

  .hero-content {
    width: calc(100% - 28px);
    margin-inline: 14px;
  }

  h1 {
    font-size: 3.2rem;
  }

  .field-grid,
  .hero-metrics,
  .conversation-input-grid {
    grid-template-columns: 1fr;
  }

  .advisor-header {
    display: grid;
  }

  .advisor-meta {
    min-width: 0;
    text-align: left;
  }

  .conversation-messages {
    max-height: none;
  }

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

  .conversation-option,
  .conversation-actions .button,
  .form-switch .button {
    width: 100%;
  }

  .form-actions .button,
  .hero-actions .button {
    width: 100%;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .header-inner {
    gap: 10px 8px;
  }

  .brand {
    gap: 9px;
  }

  .brand-logo {
    width: 244px;
    height: 244px;
    margin: -111px -49px -95px -66px;
  }

  .service-route {
    font-size: 0.66rem;
  }

  .phone-link {
    padding-inline: 8px;
    font-size: 0.76rem;
  }
}
