:root {
  --ink: #1d2524;
  --muted: #5d6966;
  --paper: #f8f7f3;
  --surface: #ffffff;
  --sage: #6f8c7f;
  --sage-dark: #3f6052;
  --clay: #c9795c;
  --mist: #dfe8e3;
  --line: #d7ded9;
  --shadow: 0 18px 50px rgba(24, 38, 34, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

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

.site-header {
  position: fixed;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #ffffff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  opacity: 0.9;
}

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

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 32, 29, 0.72) 0%, rgba(20, 32, 29, 0.46) 36%, rgba(20, 32, 29, 0.08) 74%),
    linear-gradient(0deg, rgba(248, 247, 243, 0.02), rgba(248, 247, 243, 0.02));
}

.hero-content {
  position: relative;
  width: min(620px, calc(100% - 40px));
  margin-left: clamp(20px, 7vw, 96px);
  padding-top: 56px;
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--clay);
}

.hero .eyebrow {
  color: #f1c5b4;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 11vw, 128px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.42;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.primary,
.submit {
  background: var(--clay);
  color: #ffffff;
}

.secondary {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.secondary.on-light {
  border-color: var(--sage-dark);
  color: var(--sage-dark);
  background: #ffffff;
}

.band,
.split-section {
  padding: clamp(56px, 8vw, 100px) clamp(20px, 5vw, 64px);
}

.intro-band {
  background: var(--paper);
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 34px;
}

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

.value-card {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(33, 45, 42, 0.06);
}

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

.mini-icon {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--sage-dark);
  font-weight: 700;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 520px);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  background: #eef3ef;
}

.form-copy {
  max-width: 660px;
}

.form-copy p {
  margin: 20px 0 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.quiet-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--ink);
}

.quiet-list li {
  padding-left: 18px;
  border-left: 3px solid var(--clay);
}

.interest-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cad4ce;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}

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

textarea {
  resize: vertical;
  min-height: 94px;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(111, 140, 127, 0.25);
  border-color: var(--sage-dark);
}

.form-result {
  min-height: 22px;
  margin: 0;
  color: var(--sage-dark);
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
}

.response-card {
  display: grid;
  gap: 12px;
  margin-top: 8px;
  padding: 18px;
  border: 1px solid rgba(63, 96, 82, 0.28);
  border-radius: 8px;
  background: #f7faf8;
}

.response-card[hidden] {
  display: none;
}

.response-card h3 {
  margin-bottom: 0;
}

.response-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.response-card pre {
  max-height: 220px;
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: 13px/1.45 Arial, Helvetica, sans-serif;
  white-space: pre-wrap;
}

.response-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.criteria-band {
  background: #ffffff;
}

.criteria-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.criteria-grid div {
  min-height: 146px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.criteria-grid strong,
.criteria-grid span {
  display: block;
}

.criteria-grid strong {
  margin-bottom: 12px;
  font-size: 18px;
}

.criteria-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.trust-band {
  background: var(--paper);
}

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

.trust-grid article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 10px;
}

.trust-grid span {
  color: var(--muted);
  line-height: 1.45;
}

.disclaimer {
  width: min(1160px, 100%);
  margin: 18px auto 0;
  padding: 16px 18px;
  border-left: 4px solid var(--clay);
  background: #ffffff;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 64px);
  background: var(--ink);
  color: #ffffff;
  font-size: 14px;
}

.footer a {
  color: #f1c5b4;
  font-weight: 700;
}

.assistant-widget {
  position: fixed;
  right: 26px;
  bottom: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  font-family: Arial, Helvetica, sans-serif;
}

.assistant-toggle {
  position: relative;
  display: grid;
  justify-items: center;
  width: 204px;
  min-height: 294px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform-origin: bottom center;
  animation: advisorFloat 3.4s ease-in-out infinite;
}

.assistant-toggle::after {
  content: "";
  position: absolute;
  right: 66px;
  bottom: 18px;
  width: 72px;
  height: 14px;
  border-radius: 50%;
  background: rgba(29, 37, 36, 0.16);
  filter: blur(3px);
  animation: advisorShadow 3.4s ease-in-out infinite;
}

.assistant-character {
  position: relative;
  display: block;
  width: 184px;
  height: 250px;
  pointer-events: none;
}

.assistant-character::before {
  content: "";
  position: absolute;
  inset: 32px 20px 10px;
  z-index: -1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 46px rgba(24, 38, 34, 0.18);
}

.assistant-character img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(24, 38, 34, 0.2));
  animation: advisorWave 2.6s ease-in-out infinite;
}

.assistant-bubble {
  position: relative;
  max-width: 190px;
  margin-bottom: 6px;
  padding: 10px 12px;
  border: 1px solid rgba(63, 96, 82, 0.2);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  box-shadow: 0 10px 26px rgba(24, 38, 34, 0.12);
  animation: bubblePulse 2.8s ease-in-out infinite;
}

.assistant-bubble::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -7px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  border-right: 1px solid rgba(63, 96, 82, 0.18);
  border-bottom: 1px solid rgba(63, 96, 82, 0.18);
  background: #ffffff;
}

.assistant-bubble strong,
.assistant-bubble span {
  display: block;
}

.assistant-bubble strong {
  margin-bottom: 3px;
  color: var(--sage-dark);
}

.assistant-bubble span {
  color: var(--ink);
  font-weight: 700;
}

@keyframes advisorFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@keyframes advisorWave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-2deg);
  }
}

@keyframes advisorShadow {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.95;
  }
  50% {
    transform: scaleX(0.82);
    opacity: 0.58;
  }
}

@keyframes bubblePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.035);
  }
}

.assistant-panel {
  width: min(340px, calc(100vw - 28px));
  max-height: min(520px, calc(100vh - 28px));
  margin-bottom: 12px;
  display: grid;
  grid-template-rows: auto minmax(132px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

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

.assistant-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  background: var(--ink);
  color: #ffffff;
}

.assistant-top strong,
.assistant-top span {
  display: block;
}

.assistant-top span {
  margin-top: 3px;
  color: #dfe8e3;
  font-size: 13px;
}

.assistant-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.assistant-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow: auto;
  background: #f7faf8;
}

.bot-message,
.user-message {
  max-width: 88%;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-line;
}

.bot-message {
  justify-self: start;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.user-message {
  justify-self: end;
  background: var(--sage-dark);
  color: #ffffff;
}

.assistant-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 0 14px 14px;
  background: #f7faf8;
}

.assistant-options button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(63, 96, 82, 0.22);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  text-align: left;
}

.assistant-options.is-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assistant-options button:hover,
.assistant-options button:focus {
  outline: none;
  border-color: var(--sage-dark);
  background: #edf4ef;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.assistant-form.is-hidden {
  display: none;
}

.assistant-form input {
  min-width: 0;
}

.assistant-form button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--clay);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 88vh;
  }

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

  .hero-shade {
    background: linear-gradient(90deg, rgba(20, 32, 29, 0.78), rgba(20, 32, 29, 0.28));
  }

  .hero-content {
    margin: 0 auto;
    padding-top: 72px;
  }

  .value-grid,
  .split-section,
  .criteria-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .split-section {
    gap: 34px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .assistant-widget {
    right: 12px;
    bottom: 10px;
  }

  .assistant-toggle {
    width: 142px;
    min-height: 210px;
  }

  .assistant-character {
    width: 128px;
    height: 176px;
  }

  .assistant-bubble {
    max-width: 150px;
    font-size: 11px;
  }

  .assistant-panel {
    width: min(330px, calc(100vw - 24px));
  }
}

@media (max-width: 520px) {
  .button {
    width: 100%;
  }

  .interest-form {
    padding: 20px;
  }
}
