:root {
  --bg: #f4f0e8;
  --bg-2: #ece5d9;
  --surface: #fffdf8;
  --ink: #17231f;
  --ink-2: #243a33;
  --muted: #64746d;
  --line: rgba(23, 35, 31, .14);
  --line-strong: rgba(23, 35, 31, .24);
  --accent: #a64f35;
  --accent-dark: #713322;
  --gold: #b79b5d;
  --green: #123b31;
  --shadow: 0 24px 70px rgba(31, 37, 34, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(18, 59, 49, .08) 0%, transparent 34%),
    linear-gradient(180deg, #fbf8f1 0%, var(--bg) 46%, #efe8db 100%);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.72;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(23, 35, 31, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 35, 31, .07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}

a { color: var(--accent-dark); text-underline-offset: 3px; }

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 16px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid rgba(255,255,255,.38);
  background: rgba(250, 247, 239, .86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 10px 34px rgba(31, 37, 34, .06);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease;
  will-change: transform;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font: 900 1.05rem/1.1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  letter-spacing: .02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), #214f42);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 12px 28px rgba(18, 59, 49, .22);
  font: 900 .82rem/1 Arial, Helvetica, sans-serif;
}

nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.nav-toggle {
  display: none;
}

nav a {
  color: var(--ink-2);
  padding: 9px 12px;
  border-radius: 999px;
  font: 800 .9rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

nav a:hover { background: rgba(18, 59, 49, .08); }

.nav-more {
  position: relative;
  font: 800 .9rem/1 Arial, Helvetica, sans-serif;
}

.nav-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 9px 12px;
  color: var(--ink-2);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
}

.nav-more summary::-webkit-details-marker { display: none; }

.nav-more summary::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-more summary:hover,
.nav-more[open] summary {
  background: rgba(18, 59, 49, .08);
}

.nav-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  min-width: 180px;
  padding: 8px;
  background: rgba(255, 253, 248, .98);
  border: 1px solid rgba(23, 35, 31, .14);
  box-shadow: 0 18px 44px rgba(31, 37, 34, .14);
}

.nav-menu a {
  display: block;
  border-radius: 2px;
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 76px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .55fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: 520px;
  padding: clamp(38px, 6vw, 76px) 0;
}

.hero::after {
  content: "";
  position: absolute;
  right: -36px;
  top: 58px;
  width: min(44vw, 560px);
  height: 420px;
  z-index: -1;
  border: 1px solid rgba(18, 59, 49, .13);
  background:
    linear-gradient(135deg, rgba(18, 59, 49, .16), rgba(183, 155, 93, .12)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(18,59,49,.08) 19px 20px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font: 900 .76rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--gold);
}

h1, h2, h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  margin: 0 0 20px;
  font-size: clamp(2.6rem, 6vw, 5.65rem);
  line-height: .96;
  font-weight: 900;
}

h2 {
  margin: 42px 0 14px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  line-height: 1.16;
  font-weight: 900;
}

h3 {
  margin: 28px 0 9px;
  font-size: 1.18rem;
  line-height: 1.25;
}

h4 {
  margin: 22px 0 8px;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.3;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.24rem);
}

.case-hero::after {
  display: none;
}

.case-visual {
  position: relative;
  min-height: 330px;
  border: 1px solid rgba(18, 59, 49, .16);
  background:
    linear-gradient(135deg, rgba(255,253,248,.92), rgba(238,231,217,.94)),
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(18,59,49,.07) 19px 20px);
  box-shadow: 0 24px 68px rgba(31, 37, 34, .12);
  overflow: hidden;
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(18, 59, 49, .12);
}

.report-stack,
.chart-card {
  position: absolute;
  background: #fffdf8;
  border: 1px solid rgba(18, 59, 49, .16);
  box-shadow: 0 18px 44px rgba(31, 37, 34, .12);
}

.report-stack {
  width: 178px;
  height: 226px;
  padding: 26px 22px;
}

.report-stack-a {
  left: 42px;
  top: 42px;
  transform: rotate(-4deg);
}

.report-stack-b {
  right: 42px;
  top: 72px;
  transform: rotate(5deg);
}

.report-stack::before {
  content: "REPORT";
  display: block;
  margin-bottom: 30px;
  color: var(--accent-dark);
  font: 900 .72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .12em;
}

.report-stack span {
  display: block;
  height: 9px;
  margin: 12px 0;
  background: linear-gradient(90deg, rgba(18,59,49,.34), rgba(183,155,93,.2), transparent);
}

.report-stack span:nth-child(3) { width: 78%; }
.report-stack span:nth-child(4) { width: 56%; }

.chart-card {
  left: 50%;
  bottom: 40px;
  width: 190px;
  height: 138px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 14px;
  padding: 18px;
  transform: translateX(-50%);
}

.chart-card i {
  display: block;
  width: 22px;
  background: linear-gradient(180deg, var(--gold), var(--accent));
}

.case-label {
  position: absolute;
  left: 26px;
  bottom: 22px;
  color: var(--green);
  font: 900 .75rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.panel,
.card,
.admin-card,
.flash,
.cta-band,
.proof-band,
.article {
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(23, 35, 31, .13);
  box-shadow: var(--shadow);
}

.panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,253,248,.94)),
    linear-gradient(135deg, rgba(18,59,49,.08), transparent);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--accent));
}

.panel h3 { margin-top: 8px; }
.panel ol { padding-left: 20px; }
.panel li { margin: 9px 0; }

.executive-brief {
  min-height: 360px;
}

.brief-lines {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.brief-lines span {
  display: block;
  height: 10px;
  background: linear-gradient(90deg, rgba(18,59,49,.22), rgba(183,155,93,.18), transparent);
}

.brief-lines span:nth-child(2) { width: 78%; }
.brief-lines span:nth-child(3) { width: 56%; }

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

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

.tool-grid {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tool-panel {
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 253, 248, .92);
  border: 1px solid rgba(23, 35, 31, .13);
  box-shadow: 0 18px 48px rgba(31, 37, 34, .08);
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(23, 35, 31, .12);
  background: rgba(18, 59, 49, .04);
}

.preset-row .meta {
  flex-basis: 100%;
  margin: 0 0 2px;
}

.preset-button {
  min-height: 36px;
  padding: 8px 11px;
  font-size: .82rem;
}

.tool-result-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.tool-result-head h2 {
  margin-top: 0;
}

.tool-output {
  min-height: 460px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(23, 35, 31, .12);
}

.tool-output h1 {
  margin-top: 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.1;
}

.tool-output h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.tool-output ul,
.tool-output ol {
  padding-left: 23px;
}

.tool-output li {
  margin: 7px 0;
}

.tool-raw-output {
  min-height: 180px;
  margin-top: 14px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92rem;
}

.filter-bar {
  margin: 0 0 22px;
  padding: 18px;
  background: rgba(255, 253, 248, .9);
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(31, 37, 34, .07);
}

.filter-bar form {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 320px) auto;
  gap: 14px;
  align-items: end;
}

.location-filter form {
  grid-template-columns: minmax(260px, 1fr) minmax(120px, 180px) minmax(170px, 220px) auto;
}

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

.proposal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: start;
  margin: 18px 0 26px;
}

.proposal-email-body {
  min-height: 620px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .95rem;
  line-height: 1.55;
}

.filter-bar label {
  margin-top: 0;
}

.filter-bar input,
.filter-bar select {
  margin: 0;
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-bar .meta {
  margin: 12px 0 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 28px 0 8px;
}

.pagination a {
  min-width: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(18, 59, 49, .22);
  color: var(--green);
  background: rgba(255, 253, 248, .9);
  text-align: center;
  text-decoration: none;
  font: 900 .9rem/1 Arial, Helvetica, sans-serif;
}

.pagination a.is-current {
  color: #fff;
  background: var(--green);
}

.card {
  min-height: 100%;
  padding: 22px;
  border-radius: 2px;
  box-shadow: 0 18px 48px rgba(31, 37, 34, .08);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(18, 59, 49, .28);
  box-shadow: 0 26px 60px rgba(31, 37, 34, .13);
}

.card h3 { margin-top: 0; font-size: 1.2rem; }

.meta {
  color: var(--accent-dark);
  font: 800 .78rem/1.4 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.price-card {
  position: relative;
  padding: 26px;
  background: rgba(255, 253, 248, .94);
  border: 1px solid rgba(23, 35, 31, .14);
  box-shadow: 0 20px 58px rgba(31, 37, 34, .1);
}

.price-card.is-featured {
  border-color: rgba(18, 59, 49, .34);
  box-shadow: 0 28px 74px rgba(31, 37, 34, .16);
}

.price-card.is-featured::before {
  content: "Most common";
  position: absolute;
  right: 18px;
  top: 18px;
  padding: 6px 9px;
  color: #fff;
  background: var(--green);
  font: 900 .72rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.price-card h2 {
  margin-top: 10px;
  font-size: 1.55rem;
}

.price {
  margin: 16px 0 14px;
  color: var(--accent-dark);
  font: 900 clamp(1.65rem, 3vw, 2.35rem)/1 Arial, Helvetica, sans-serif;
}

.timeline {
  padding: 10px 12px;
  color: var(--green);
  background: rgba(18, 59, 49, .08);
  border-left: 4px solid var(--gold);
  font-weight: 850;
}

.price-card ul {
  padding-left: 20px;
}

.price-card li {
  margin: 8px 0;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 2px;
  background: var(--green);
  color: #fff;
  padding: 12px 18px;
  font: 900 .92rem/1 Arial, Helvetica, sans-serif;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(18, 59, 49, .2);
}

.button:hover,
button:hover {
  background: #0f3028;
}

button:disabled {
  cursor: wait;
  opacity: .68;
}

.button.secondary {
  color: var(--green);
  background: transparent;
  border: 1px solid rgba(18, 59, 49, .28);
  box-shadow: none;
}

.cta-band,
.proof-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin: 34px 0;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 2px;
  overflow: hidden;
}

.cta-band {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(18,59,49,.98), rgba(24,69,58,.94)),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.08) 39px 40px);
}

.cta-band h2,
.cta-band p { color: #fff; }
.cta-band .button { background: #fff; color: var(--green); box-shadow: none; }
.cta-band .button.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}
.cta-band .button.secondary:hover {
  background: rgba(255, 255, 255, .12);
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.proof-band h2,
.cta-band h2 { margin-top: 0; }

.faq-list details {
  margin: 0 0 14px;
  padding: 18px 20px;
  background: rgba(255, 253, 248, .95);
  border: 1px solid rgba(23, 35, 31, .14);
  box-shadow: 0 14px 34px rgba(31, 37, 34, .08);
}

.faq-list summary {
  font: 900 1rem/1.4 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.faq-list summary::marker {
  color: var(--gold);
}

.faq-list details p {
  margin-bottom: 0;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font: 1rem/1.5 Arial, Helvetica, sans-serif;
  background: #fff;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(183, 155, 93, .25);
  border-color: var(--gold);
}

textarea { min-height: 150px; resize: vertical; }

label {
  display: block;
  margin: 16px 0 7px;
  color: var(--ink-2);
  font: 850 .9rem/1 Arial, Helvetica, sans-serif;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(31, 37, 34, .07);
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font: 900 .76rem/1.3 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lead-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  align-items: center;
}

.lead-status-form select {
  min-width: 150px;
  flex: 1 1 150px;
}

.lead-status-form button {
  padding: 10px 12px;
}

.admin-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.admin-nav a {
  padding: 9px 12px;
  border: 1px solid rgba(18, 59, 49, .18);
  color: var(--green);
  background: rgba(255, 253, 248, .72);
  text-decoration: none;
  font: 850 .86rem/1 Arial, Helvetica, sans-serif;
}

.admin-card {
  padding: clamp(22px, 4vw, 34px);
  border-radius: 2px;
}

.intake-loading {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(18, 59, 49, .16);
  background:
    linear-gradient(135deg, rgba(18,59,49,.06), rgba(183,155,93,.08)),
    rgba(255, 253, 248, .94);
}

.loading-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--green);
  font: 900 .96rem/1.3 Arial, Helvetica, sans-serif;
}

.loading-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 rgba(166, 79, 53, .3);
  animation: pulseDot 1.2s infinite;
}

.loading-bar {
  height: 8px;
  margin: 0 0 14px;
  overflow: hidden;
  background: rgba(18, 59, 49, .1);
}

.loading-bar span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--gold), var(--accent));
  animation: travelBar 1.5s infinite ease-in-out;
}

.intake-loading ol {
  margin: 0 0 8px;
  padding-left: 22px;
}

.intake-loading li {
  margin: 6px 0;
}

.tool-loading {
  margin: 16px 0;
  padding: 18px;
  border: 1px solid rgba(18, 59, 49, .16);
  background:
    linear-gradient(135deg, rgba(18,59,49,.06), rgba(183,155,93,.08)),
    rgba(255, 253, 248, .94);
}

.tool-loading ol {
  margin: 0 0 8px;
  padding-left: 22px;
}

.tool-loading li {
  margin: 6px 0;
}

.flash {
  margin-bottom: 20px;
  padding: 13px 15px;
  color: #173d2f;
  border-radius: 2px;
}

.article {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 2px;
}

.article[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

.article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--green), var(--gold), var(--accent));
}

.article[dir="rtl"]::before {
  inset: 0 0 0 auto;
}

.article h1 {
  margin-top: 8px;
  max-width: none;
  font-size: clamp(1.72rem, 3.25vw, 3.15rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.article h2 {
  padding-top: 8px;
  border-top: 1px solid rgba(23, 35, 31, .1);
}

.article p,
.article li {
  font-size: 1.04rem;
}

.article > p:first-of-type:not(.meta) {
  max-width: 760px;
  color: var(--ink-2);
  font-size: clamp(1.06rem, 1.7vw, 1.18rem);
  line-height: 1.7;
}

.article ul,
.article ol {
  padding-left: 24px;
}

.article[dir="rtl"] ul,
.article[dir="rtl"] ol {
  padding-left: 0;
  padding-right: 24px;
}

.article li {
  margin: 7px 0;
}

.article li.list-lead {
  margin-top: 16px;
  list-style: none;
  color: var(--ink);
  font-weight: 850;
}

.article li.list-lead::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 10px 1px -18px;
  border-radius: 50%;
  background: var(--accent);
}

.article li.list-detail {
  margin-left: 18px;
  color: #243a33;
  font-size: 1.02rem;
  line-height: 1.62;
}

.article li.list-detail::marker {
  color: #47635a;
}

.site-footer {
  padding: 34px 24px;
  text-align: center;
  color: rgba(255,255,255,.76);
  background: var(--green);
  border-top: 1px solid rgba(255,255,255,.08);
}

.site-footer a { color: #fff; }

.footer-links {
  margin-top: 8px;
  font-size: .9rem;
  opacity: .78;
}

.chat-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  font-family: Arial, Helvetica, sans-serif;
}

.chat-toggle {
  min-width: 104px;
  min-height: 48px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 18px 42px rgba(31, 37, 34, .22);
}

.chat-panel {
  width: min(380px, calc(100vw - 30px));
  background: var(--surface);
  border: 1px solid rgba(23, 35, 31, .18);
  box-shadow: 0 26px 80px rgba(31, 37, 34, .22);
}

.chat-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  background: var(--green);
}

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

.chat-head span {
  margin-top: 3px;
  color: rgba(255,255,255,.72);
  font-size: .82rem;
}

.chat-head button {
  min-height: 0;
  padding: 0;
  width: 30px;
  height: 30px;
  background: rgba(255,255,255,.12);
  box-shadow: none;
  font-size: 1.2rem;
}

.chat-messages {
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  background: #fbf8f1;
}

.chat-msg {
  max-width: 88%;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(23, 35, 31, .12);
  color: var(--ink);
  background: #fff;
  font-size: .94rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.chat-msg.user {
  margin-left: auto;
  color: #fff;
  background: var(--green);
}

.chat-msg.is-waiting {
  color: var(--muted);
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  min-height: 46px;
  margin: 0;
  resize: none;
}

.chat-form button {
  min-height: 46px;
  border-radius: 2px;
}

@keyframes pulseDot {
  0% {
    transform: scale(.92);
    box-shadow: 0 0 0 0 rgba(166, 79, 53, .32);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(166, 79, 53, 0);
  }
  100% {
    transform: scale(.92);
    box-shadow: 0 0 0 0 rgba(166, 79, 53, 0);
  }
}

@keyframes travelBar {
  0% { transform: translateX(-60%); }
  50% { transform: translateX(160%); }
  100% { transform: translateX(-60%); }
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 0;
    padding: 10px 14px 9px;
  }
  .site-header.is-hidden {
    transform: translateY(calc(-100% - 12px));
  }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 40px;
    padding: 8px 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--green), #214f42);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(18, 59, 49, .18);
    cursor: pointer;
  }
  .nav-toggle:hover,
  .site-header.nav-open .nav-toggle {
    color: #fff;
    background: linear-gradient(135deg, #0f3028, var(--green));
  }
  .nav-toggle span {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
  }
  .nav-toggle em {
    margin-left: 4px;
    font: 850 .82rem/1 Arial, Helvetica, sans-serif;
    font-style: normal;
  }
  .site-header nav {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    overflow-x: visible;
    overflow-y: visible;
    padding: 6px 0 2px;
  }
  .site-header.nav-open nav {
    display: flex;
  }
  .site-header nav a,
  .nav-more summary {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex: 0 0 auto;
    white-space: nowrap;
    min-height: 32px;
    padding: 10px 11px;
    border-radius: 6px;
    background: rgba(255, 253, 248, .68);
  }
  .hero,
  .grid,
  .card-grid,
  .tool-grid,
  .pricing-grid,
  .filter-bar form,
  .form-row,
  .proposal-layout,
  .cta-band,
  .proof-band {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 0;
    padding-top: 30px;
  }
  .hero::after {
    display: none;
  }
  main {
    width: min(100% - 28px, 1180px);
  }
  .nav-more {
    width: 100%;
    flex: 0 0 auto;
  }
  .nav-menu {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    padding: 4px 0 0 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 520px) {
  h1 { font-size: 2.45rem; }
  nav a { padding: 8px 9px; }
  .brand {
    gap: 9px;
    font-size: .98rem;
  }
  .brand-mark { width: 38px; height: 38px; }
  .article { padding: 24px 20px 28px; }
  .chat-widget {
    right: 14px;
    bottom: 14px;
  }
}
