:root {
  --ink: #15211f;
  --muted: #61706c;
  --line: #dce4df;
  --paper: #fbfcf9;
  --mist: #eef3ef;
  --green: #0d5f50;
  --green-dark: #073b34;
  --clay: #c7774b;
  --steel: #344a57;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(21, 33, 31, 0.14);
  --cream: #fbfcf9;
  --charcoal: #15211f;
  --radius: 18px;
  --shadow-soft: 0 16px 40px rgba(21, 33, 31, 0.1);
}

.admin-page {
  background:
    linear-gradient(120deg, rgba(7, 59, 52, 0.08), rgba(199, 119, 75, 0.05)),
    var(--cream);
}

.admin-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 7rem 0 4rem;
}

.admin-hero {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.admin-hero h1 {
  margin: 0.2rem 0 0.75rem;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  color: var(--ink);
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 140px auto auto;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(7, 59, 52, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.admin-toolbar label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.admin-toolbar input,
.admin-toolbar select {
  min-height: 46px;
  border: 1px solid rgba(7, 59, 52, 0.18);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}

.admin-status {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(13, 95, 80, 0.09);
  color: var(--ink);
  font-weight: 800;
}

.admin-status.is-error {
  background: rgba(199, 119, 75, 0.14);
  color: #7b3218;
}

.admin-results {
  display: grid;
  gap: 1rem;
}

.admin-empty,
.admin-card {
  padding: 1rem;
  border: 1px solid rgba(7, 59, 52, 0.14);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.admin-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.admin-card-header p {
  margin: 0 0 0.3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-card-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.35rem;
}

.admin-card-header span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(199, 119, 75, 0.16);
  color: var(--ink);
  font-weight: 900;
  white-space: nowrap;
}

.admin-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.admin-card dl div {
  padding: 0.75rem;
  border-radius: 10px;
  background: var(--mist);
}

.admin-card dt {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-card dd {
  margin: 0;
  color: var(--charcoal);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-card > p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(7, 59, 52, 0.12);
  color: var(--charcoal);
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 6rem;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-card-header {
    display: grid;
  }

  .admin-card dl {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

[id] {
  scroll-margin-top: 96px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(20px, 4vw, 56px);
  background: rgba(251, 252, 249, 0.9);
  border-bottom: 1px solid rgba(220, 228, 223, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 224px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--green-dark);
  color: var(--white);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo-wrap {
  display: grid;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  place-items: center;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.nav a:hover,
.mobile-nav a:hover {
  color: var(--green);
}

.nav-action {
  padding: 10px 14px;
  border: 1px solid var(--green);
  border-radius: 6px;
  color: var(--green);
  font-weight: 700;
}

.language-link {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  padding: 12px 20px 20px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav a {
  display: block;
  padding: 12px 0;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vw, 92px) clamp(20px, 4vw, 56px) clamp(34px, 5vw, 56px);
  background:
    linear-gradient(90deg, rgba(251, 252, 249, 1) 0%, rgba(251, 252, 249, 0.96) 47%, rgba(238, 243, 239, 0.82) 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.hero-brand-lockup img {
  width: clamp(72px, 8vw, 104px);
  height: clamp(72px, 8vw, 104px);
  object-fit: contain;
}

.hero-brand-lockup span {
  display: block;
  color: var(--green-dark);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.hero-brand-lockup small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 800;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(34px, 4.3vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(25px, 2.9vw, 36px);
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.24;
}

.hero-lede {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
}

.status-note {
  max-width: 720px;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 95, 80, 0.22);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-size: 14px;
}

.status-note strong {
  color: var(--green-dark);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
}

.button.primary {
  background: var(--green);
  color: var(--white);
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.button.language-button {
  border: 1px solid rgba(13, 95, 80, 0.25);
  background: var(--mist);
  color: var(--green-dark);
}

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

.hero-proof div {
  padding: 16px;
  border-left: 3px solid var(--green);
  background: var(--white);
  box-shadow: 0 10px 28px rgba(21, 33, 31, 0.06);
}

.hero-proof dt {
  margin-bottom: 4px;
  font-weight: 800;
}

.hero-proof dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-media {
  align-self: center;
  min-height: 420px;
  max-height: 540px;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-band,
.service-grid,
.split-section,
.requirements,
.standards,
.faq,
.about,
.contact,
.operating-flow,
.intake-hero,
.intake-shell,
.intake-next,
.disclaimer {
  padding: clamp(60px, 8vw, 104px) clamp(20px, 4vw, 56px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: end;
  background: var(--green-dark);
  color: var(--white);
}

.intro p:last-child {
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
}

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

.service-card {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.operating-flow {
  background: var(--white);
}

.flow-chain {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.flow-chain article {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.flow-chain article::after {
  position: absolute;
  top: 34px;
  right: -13px;
  z-index: 1;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--clay);
  border-right: 2px solid var(--clay);
  content: "";
  transform: rotate(45deg);
}

.flow-chain article:last-child::after {
  display: none;
}

.flow-chain span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-dark);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.flow-chain h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.flow-chain p {
  color: var(--muted);
  font-size: 14px;
}

.workflow-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.workflow-stack article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid rgba(13, 95, 80, 0.18);
  border-radius: 8px;
  background: var(--mist);
}

.workflow-stack h3 {
  color: var(--green-dark);
}

.workflow-stack p {
  color: var(--muted);
  font-size: 14px;
}

.flow-note {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--mist);
  color: var(--muted);
}

.flow-note strong {
  color: var(--green-dark);
}

.service-number {
  display: block;
  margin-bottom: 34px;
  color: var(--clay);
  font-weight: 900;
}

.service-card p,
.feature-list p,
.process-grid p,
.about-panel p,
.contact-copy p,
.disclaimer p {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(28px, 6vw, 86px);
}

.development {
  background: #192927;
  color: var(--white);
}

.commercial {
  background: #23333a;
  color: var(--white);
}

.section-copy {
  position: sticky;
  top: 110px;
  align-self: start;
}

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

.feature-list article {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.feature-list.dark article {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.feature-list.dark p {
  color: rgba(255, 255, 255, 0.72);
}

.mini-list {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.mini-list li {
  position: relative;
  padding-left: 24px;
}

.mini-list li::before {
  position: absolute;
  left: 0;
  color: var(--clay);
  content: "•";
  font-weight: 900;
}

.mini-list.light {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.requirements {
  background: var(--paper);
}

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

.requirements-grid article,
.faq-grid article {
  min-height: 235px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.requirements-grid p,
.faq-grid p {
  color: var(--muted);
}

.process {
  background: var(--mist);
}

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

.process-grid article {
  min-height: 245px;
  padding: 24px;
  border-radius: 8px;
  background: var(--white);
}

.process-grid span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-weight: 900;
}

.standards {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 82px);
  background: var(--white);
}

.standards-copy {
  align-self: start;
}

.standards-copy p {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.standards-panel article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mist);
}

.standards-panel span {
  display: block;
  margin-bottom: 24px;
  color: var(--clay);
  font-weight: 900;
}

.standards-panel p {
  color: var(--muted);
}

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

.about-panel,
.quote-panel {
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
}

.about-panel {
  background: var(--white);
  border: 1px solid var(--line);
}

.quote-panel {
  display: flex;
  align-items: end;
  min-height: 460px;
  background:
    linear-gradient(rgba(7, 59, 52, 0.76), rgba(7, 59, 52, 0.76)),
    url("assets/property-finance-visual.svg");
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.quote-panel p {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.12;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 6vw, 82px);
  background: var(--green-dark);
  color: var(--white);
}

.contact-copy p,
.contact .section-kicker {
  color: rgba(255, 255, 255, 0.76);
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.contact-methods a,
.contact-methods span {
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.appointment-box {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(13, 95, 80, 0.18);
  border-radius: 8px;
  background: var(--mist);
}

.appointment-title {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 20px;
  font-weight: 900;
}

.appointment-copy {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.appointment-link {
  width: fit-content;
}

.form-table {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.form-table label {
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.form-table label:nth-child(2n),
.form-table .full-row {
  border-right: 0;
}

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

.form-table label:last-child {
  border-bottom: 0;
}

label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
}

label span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

label em {
  color: var(--clay);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.submission-status {
  padding: 14px 16px;
  border: 1px solid rgba(13, 95, 80, 0.18);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--mist);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
}

.submission-status.is-error {
  border-color: rgba(199, 119, 75, 0.34);
  border-left-color: var(--clay);
  background: #fff7f1;
  color: #8a4a29;
}

.disclaimer {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.disclaimer h2 {
  font-size: 24px;
}

.disclaimer p {
  max-width: 980px;
  font-size: 14px;
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(58px, 8vw, 96px) clamp(20px, 4vw, 40px);
}

.legal-page h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 52px);
}

.legal-page h2 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
}

.legal-page section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.legal-page p {
  color: var(--muted);
}

.legal-page strong {
  color: var(--ink);
}

.legal-intro {
  max-width: 780px;
  margin-bottom: 34px;
  font-size: 18px;
}

.intake-hero,
.intake-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
}

.intake-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(7, 59, 52, 0.98), rgba(13, 95, 80, 0.92)),
    url("assets/financial-guru-hero.png") center / cover;
  color: var(--white);
}

.intake-hero-copy {
  align-self: center;
  max-width: 760px;
}

.intake-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
}

.intake-hero-copy > p:not(.section-kicker) {
  max-width: 680px;
  font-size: 18px;
}

.intake-hero-copy p,
.intake-hero .section-kicker {
  color: rgba(255, 255, 255, 0.76);
}

.intake-side-panel,
.chat-preview-panel,
.intake-next article {
  border: 1px solid rgba(220, 228, 223, 0.78);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.intake-side-panel {
  align-self: center;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.18);
}

.chat-preview-panel {
  align-self: center;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.2);
}

.chat-preview-header,
.chat-form-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  background: var(--green-dark);
  color: var(--white);
}

.chat-preview-header small,
.chat-form-header p {
  display: block;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.chat-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  font-weight: 900;
}

.preview-thread,
.chat-thread {
  display: grid;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(rgba(238, 243, 239, 0.88), rgba(238, 243, 239, 0.88)),
    repeating-linear-gradient(135deg, rgba(13, 95, 80, 0.08) 0 1px, transparent 1px 18px);
}

.preview-thread {
  padding: 22px;
}

.message-bubble {
  position: relative;
  width: fit-content;
  max-width: min(86%, 620px);
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(13, 95, 80, 0.08);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.72) inset,
    0 10px 24px rgba(21, 33, 31, 0.08);
}

.message-bubble.agent {
  justify-self: start;
  background: var(--white);
}

.message-bubble.client {
  justify-self: end;
  background: #d8f4dc;
  border-color: rgba(13, 95, 80, 0.12);
}

.message-bubble.agent::after,
.message-bubble.client::after {
  position: absolute;
  bottom: 9px;
  width: 10px;
  height: 10px;
  content: "";
  transform: rotate(45deg);
}

.message-bubble.agent::after {
  left: -4px;
  border-bottom: 1px solid rgba(13, 95, 80, 0.08);
  border-left: 1px solid rgba(13, 95, 80, 0.08);
  background: var(--white);
}

.message-bubble.client::after {
  right: -4px;
  border-top: 1px solid rgba(13, 95, 80, 0.12);
  border-right: 1px solid rgba(13, 95, 80, 0.12);
  background: #d8f4dc;
}

.intake-side-panel h2,
.intake-next h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}

.panel-kicker {
  margin: 0 0 8px;
  color: var(--clay);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.route-stack {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
}

.route-stack div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.route-stack span {
  grid-row: span 2;
  color: var(--green);
  font-weight: 900;
}

.route-stack small {
  color: var(--muted);
  font-size: 14px;
}

.intake-shell {
  background: var(--paper);
}

.intake-copy {
  align-self: start;
  position: sticky;
  top: 110px;
}

.intake-copy h2 {
  max-width: 560px;
}

.intake-mini-summary {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.intake-mini-summary span {
  padding: 12px 14px;
  border-left: 3px solid var(--green);
  background: var(--white);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.channel-chip {
  display: inline-flex;
  max-width: 100%;
  margin-top: 18px;
  padding: 9px 12px;
  border: 1px solid rgba(13, 95, 80, 0.18);
  border-radius: 999px;
  background: var(--mist);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.intake-form {
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(13, 95, 80, 0.12);
  box-shadow: var(--shadow);
}

.chat-intake-form {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.chat-form-header h2 {
  margin: 0;
  color: var(--white);
  font-size: 20px;
}

.chat-live-status {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.form-header {
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  padding: 8px 4px 18px;
  border-bottom: 1px solid var(--line);
}

.form-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.form-header > span {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
}

.intake-form .form-table {
  gap: 12px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.intake-form .chat-thread.form-table {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(16px, 2.6vw, 24px);
}

.intake-form .form-table label {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.intake-form .chat-thread label {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(21, 33, 31, 0.06);
}

.consent-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

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

.consent-row span {
  display: block;
  color: var(--muted);
  font-weight: 750;
}

.intake-form .form-table label:nth-child(2n),
.intake-form .form-table .full-row,
.intake-form .form-table label:last-child {
  border: 1px solid var(--line);
}

.intake-form input,
.intake-form select,
.intake-form textarea {
  border-color: rgba(97, 112, 108, 0.22);
  background: var(--white);
}

.intake-form input:focus,
.intake-form select:focus,
.intake-form textarea:focus {
  outline: 2px solid rgba(13, 95, 80, 0.18);
  border-color: var(--green);
}

.intake-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px clamp(16px, 2.6vw, 24px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

.chat-intake-form .submission-status,
.chat-intake-form .form-note {
  margin: 0 clamp(16px, 2.6vw, 24px) 18px;
}

.intake-next {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: var(--white);
}

.intake-next article {
  padding: clamp(22px, 3vw, 32px);
}

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

  .menu-button {
    display: block;
  }

  .mobile-nav.is-open {
    display: block;
  }

  .hero,
  .intro,
  .split-section,
  .standards,
  .about,
  .contact,
  .intake-hero,
  .intake-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .hero-media {
    width: 100%;
    min-height: 360px;
    aspect-ratio: 4 / 3;
  }


  .section-copy {
    position: static;
  }

  .intake-copy {
    position: static;
  }

  .service-grid,
  .standards-panel,
  .flow-chain,
  .workflow-stack,
  .requirements-grid,
  .faq-grid,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-chain article:nth-child(2n)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  [id] {
    scroll-margin-top: 78px;
  }

  .site-header {
    min-height: 66px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand small {
    display: none;
  }

  .brand-logo-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .hero-brand-lockup {
    align-items: center;
    flex-direction: row;
    gap: 12px;
  }

  .hero-brand-lockup img {
    width: 64px;
    height: 64px;
  }

  .hero-brand-lockup span {
    font-size: 32px;
  }

  .hero-brand-lockup small {
    font-size: 13px;
  }

  h1 {
    font-size: 34px;
  }

  .intake-hero {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .intake-hero h1 {
    font-size: 36px;
    line-height: 1.05;
  }

  .intake-hero-copy > p:not(.section-kicker) {
    font-size: 15px;
  }

  .intake-hero .status-note {
    padding: 14px;
    font-size: 13px;
  }

  .intake-side-panel,
  .chat-preview-panel {
    display: none;
  }

  .intake-shell {
    padding-top: 42px;
  }

  .form-header {
    display: grid;
  }

  .form-header > span {
    width: fit-content;
  }

  .hero-proof,
  .service-grid,
  .flow-chain,
  .workflow-stack,
  .feature-list,
  .requirements-grid,
  .faq-grid,
  .process-grid,
  .intake-next {
    grid-template-columns: 1fr;
  }

  .flow-chain article::after {
    display: none;
  }

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

  .intake-actions .button {
    width: 100%;
  }

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

  .intake-form .chat-thread.form-table {
    grid-template-columns: 1fr;
  }

  .chat-form-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-live-status {
    grid-column: 2;
    width: fit-content;
  }

  .appointment-grid {
    grid-template-columns: 1fr;
  }

  .appointment-link {
    width: 100%;
  }

  .form-table label {
    border-right: 0;
  }

  .service-card,
  .feature-list article,
  .process-grid article {
    min-height: auto;
  }

  .quote-panel {
    min-height: 320px;
  }

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