/* Brand and form additions layered on top of the preserved handoff styles. */
.brand {
  gap: 0.7rem;
  text-decoration: none;
}

.brand .locusfera-logo,
.chat-interface__identity .locusfera-logo {
  filter: none;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.locusfera-wordmark {
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  line-height: 1;
}

.chat-interface__identity {
  gap: 12px;
}

.brand-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-left: auto;
}

.brand-nav a {
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  opacity: 0.82;
  text-decoration: none;
  text-transform: uppercase;
}

.brand-nav a:hover {
  opacity: 1;
}

.chat-interface__identity .locusfera-wordmark {
  color: #171a17;
  font-size: 0.72rem;
}

.locusfera-footer-mark {
  filter: none;
  height: 50px;
  object-fit: contain;
  width: 50px;
}

.footer-wordmark span {
  color: var(--white, #f7f4ec);
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(3.4rem, 13vw, 11rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.82;
  white-space: nowrap;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  text-decoration: none;
}

.hero-action--primary {
  background: #f7f4ec;
  color: #10110f;
}

.hero-action--secondary {
  border: 1px solid rgba(247, 244, 236, 0.34);
  color: #f7f4ec;
}

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

.hero-proof {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 34px 0 0;
  max-width: 720px;
  padding: 0;
}

.hero-proof li {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 16px;
}

.hero-proof strong {
  color: #f7f4ec;
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.95;
}

.hero-proof span {
  color: rgba(247, 244, 236, 0.68);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 7px;
}

.landing-overview,
.product-suite,
.workflow-strip,
.team-benefits {
  margin-top: clamp(42px, 7vw, 92px);
}

.landing-overview {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.landing-copy,
.landing-panel,
.product-suite,
.workflow-strip,
.team-benefits {
  border-radius: 28px;
}

.landing-copy,
.landing-panel {
  background: rgba(247, 244, 236, 0.07);
  border: 1px solid rgba(247, 244, 236, 0.12);
  padding: clamp(24px, 4vw, 38px);
}

.landing-copy h2,
.suite-title,
.workflow-strip h2,
.team-benefits h2 {
  color: #f7f4ec;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.98;
  margin: 0;
  max-width: 920px;
}

.landing-copy p:not(.section-eyebrow),
.workflow-strip > p:not(.section-eyebrow),
.team-benefits > div:first-child p:not(.section-eyebrow) {
  color: rgba(247, 244, 236, 0.68);
  font-size: 17px;
  line-height: 1.55;
  margin: 18px 0 0;
  max-width: 680px;
}

.landing-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}

.landing-panel span {
  align-self: flex-start;
  background: #e9ff75;
  border-radius: 999px;
  color: #151711;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.landing-panel p {
  color: #f7f4ec;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.14;
  margin: 42px 0 0;
}

.product-suite,
.workflow-strip,
.team-benefits {
  background: #f7f4ec;
  color: #171a17;
  padding: clamp(28px, 5vw, 54px);
}

.product-suite .section-eyebrow,
.workflow-strip .section-eyebrow,
.team-benefits .section-eyebrow {
  color: #1f6246;
}

.product-suite .suite-title,
.workflow-strip h2,
.team-benefits h2 {
  color: #171a17;
}

.suite-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.suite-card {
  background: #fffdf8;
  border: 1px solid #ded8cc;
  border-radius: 22px;
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 22px;
}

.suite-card span {
  color: #1f6246;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.suite-card h3,
.benefit-grid h3,
.workflow-grid strong {
  color: #171a17;
  font-size: 21px;
  line-height: 1.15;
  margin: 0;
}

.suite-card p,
.benefit-grid p,
.workflow-grid p {
  color: #626960;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.suite-card--accent {
  background: #153f2d;
  border-color: #153f2d;
}

.suite-card--accent span,
.suite-card--accent h3,
.suite-card--accent p {
  color: #f7f4ec;
}

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

.workflow-grid li {
  background: #fffdf8;
  border: 1px solid #ded8cc;
  border-radius: 20px;
  display: grid;
  gap: 10px;
  padding: 20px;
}

.workflow-grid span {
  align-items: center;
  background: #1f6246;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.team-benefits {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.benefit-grid {
  display: grid;
  gap: 12px;
}

.benefit-grid article {
  background: #fffdf8;
  border: 1px solid #ded8cc;
  border-radius: 20px;
  display: grid;
  gap: 8px;
  padding: 20px;
}

body.dialog-open {
  overflow: hidden;
}

.chat-interface .result-dialog {
  box-sizing: border-box;
  max-height: calc(100dvh - 32px);
  max-width: calc(100vw - 28px);
  overflow: hidden;
  padding: 0;
}

.chat-interface .result-dialog__form {
  box-sizing: border-box;
  display: grid;
  max-height: calc(100dvh - 32px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 30px;
  scrollbar-gutter: stable;
}

.chat-interface .result-dialog__step {
  display: grid;
  gap: 12px;
}

.chat-interface .result-dialog__step[hidden] {
  display: none !important;
}

.chat-interface .result-dialog__step > p {
  margin: 0;
}

.chat-interface .result-dialog__step > h3 {
  margin: 0;
}

.chat-interface .result-dialog__step > label {
  display: grid;
  gap: 6px;
}

.result-dialog__form textarea {
  background: #fff;
  border: 1px solid #cdd4cd;
  border-radius: 10px;
  box-sizing: border-box;
  color: #171a17;
  font: inherit;
  min-height: 86px;
  padding: 11px 12px;
  resize: vertical;
  width: 100%;
}

.result-dialog__form textarea:focus {
  border-color: #6d786e;
  outline: 2px solid rgba(102, 122, 104, 0.2);
  outline-offset: 1px;
}

.lead-consent {
  align-items: flex-start;
  display: flex !important;
  gap: 9px;
  margin-top: 4px;
}

.lead-consent input {
  accent-color: #27472d;
  appearance: auto;
  border-radius: 3px;
  box-sizing: border-box;
  flex: 0 0 auto;
  height: 18px !important;
  margin-top: 2px;
  max-height: 18px;
  min-height: 18px !important;
  padding: 0;
  width: 18px !important;
}

.lead-consent span {
  color: #4c554d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.lead-consent a,
.result-dialog__fineprint a {
  color: #1f6246;
  text-underline-offset: 3px;
}

.result-plan-card {
  background: #f5f7f4;
  border: 1px solid #d9e1da;
  border-radius: 16px;
  display: grid;
  gap: 14px;
  margin: 4px 0 2px;
  padding: 18px;
}

.result-plan-card strong {
  color: #1d3124;
  display: block;
  font-size: 16px;
}

.result-plan-card span {
  color: #66716a;
  display: block;
  font-size: 13px;
  margin-top: 4px;
}

.result-plan-card p {
  align-items: baseline;
  display: flex;
  gap: 7px;
  margin: 0;
}

.result-plan-card p b {
  color: #1e5a3f;
  font-size: 30px;
  letter-spacing: 0;
}

.result-plan-card ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.result-plan-card li {
  color: #435147;
  font-size: 13px;
  line-height: 1.35;
  padding-left: 18px;
  position: relative;
}

.result-plan-card li::before {
  color: #1f6246;
  content: "✓";
  font-weight: 700;
  left: 0;
  position: absolute;
  top: 0;
}

.result-plan-card .payment-mark-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.payment-logo-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-logo {
  align-items: center;
  background: #fff;
  border: 1px solid #d5dfd5;
  border-radius: 10px;
  box-sizing: border-box;
  display: block;
  height: 34px;
  object-fit: contain;
  padding: 6px 9px;
  width: 88px;
}

.payment-logo--tbank {
  width: 114px;
}

.payment-logo--mastercard {
  width: 98px;
}

.result-dialog__fineprint {
  color: #66716a;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.result-dialog__actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.result-dialog__actions .chat-primary-button,
.result-dialog__actions .chat-secondary-button,
.result-dialog__submit {
  justify-content: center;
  width: 100%;
}

@media (max-width: 560px) {
  .brand .locusfera-logo,
  .chat-interface__identity .locusfera-logo {
    height: 32px;
    width: 32px;
  }

  .locusfera-wordmark {
    font-size: 0.68rem;
  }

  .chat-interface__identity .locusfera-wordmark {
    display: none;
  }

  .brand-nav {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-action {
    width: 100%;
  }

  .hero-proof,
  .landing-overview,
  .suite-grid,
  .workflow-grid,
  .team-benefits {
    grid-template-columns: 1fr;
  }

  .landing-panel {
    min-height: 210px;
  }

  .chat-interface .result-dialog {
    max-height: calc(100dvh - 20px);
    max-width: calc(100vw - 16px);
  }

  .chat-interface .result-dialog__form {
    max-height: calc(100dvh - 20px);
    padding: 26px 18px 18px;
  }

  .result-dialog__actions {
    flex-direction: column-reverse;
  }
}
