:root {
   --bg: #f7f8f5;
   --surface: #ffffff;
   --surface-muted: #eef4ee;
   --ink: #13211a;
   --muted: #617064;
   --line: #dce4dc;
   --accent: #0f7b5c;
   --accent-strong: #095e46;
   --accent-soft: #dff3ec;
   --gold: #c07b25;
   --shadow: 0 24px 70px rgba(22, 39, 30, 0.12);
}

* {
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   margin: 0;
   min-width: 320px;
   background: var(--bg);
   color: var(--ink);
   font-family: "Inter", Arial, sans-serif;
   line-height: 1.5;
}

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

button,
a {
   -webkit-tap-highlight-color: transparent;
}

button {
   font: inherit;
}

.site-header,
.site-footer,
main {
   width: min(1180px, calc(100% - 40px));
   margin: 0 auto;
}

.site-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
   padding: 24px 0;
}

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

.brand-mark {
   display: grid;
   width: 38px;
   height: 38px;
   place-items: center;
   border-radius: 8px;
   background: var(--ink);
   color: #fff;
   font-size: 13px;
}

.nav-links,
.site-footer div {
   display: flex;
   align-items: center;
   gap: 22px;
   color: var(--muted);
   font-size: 14px;
   font-weight: 600;
}

.nav-links a:hover,
.site-footer a:hover {
   color: var(--accent-strong);
}

.hero {
   display: grid;
   grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
   gap: 48px;
   align-items: center;
   min-height: calc(100vh - 92px);
   padding: 48px 0 70px;
}

.hero-content {
   max-width: 690px;
}

.eyebrow {
   margin: 0 0 14px;
   color: var(--accent-strong);
   font-size: 13px;
   font-weight: 800;
   letter-spacing: 0.08em;
   text-transform: uppercase;
}

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

h1 {
   max-width: 720px;
   margin-bottom: 22px;
   font-size: clamp(44px, 7vw, 76px);
   line-height: 0.98;
   letter-spacing: 0;
}

h2 {
   margin-bottom: 0;
   font-size: clamp(30px, 4vw, 48px);
   line-height: 1.06;
   letter-spacing: 0;
}

h3 {
   margin-bottom: 10px;
   font-size: 20px;
}

.hero-copy {
   max-width: 620px;
   margin-bottom: 30px;
   color: var(--muted);
   font-size: 19px;
}

.hero-actions,
.setup-section {
   display: flex;
   align-items: center;
   gap: 14px;
   flex-wrap: wrap;
}

.primary-button,
.secondary-button {
   display: inline-flex;
   min-height: 52px;
   align-items: center;
   justify-content: center;
   gap: 10px;
   border-radius: 8px;
   padding: 0 20px;
   font-weight: 800;
}

.primary-button {
   border: 0;
   background: var(--accent);
   color: #fff;
   box-shadow: 0 14px 30px rgba(15, 123, 92, 0.24);
   cursor: pointer;
}

.primary-button:hover {
   background: var(--accent-strong);
}

.primary-button.compact {
   white-space: nowrap;
}

.secondary-button {
   border: 1px solid var(--line);
   background: rgba(255, 255, 255, 0.64);
   color: var(--ink);
}

.button-icon {
   display: grid;
   width: 24px;
   height: 24px;
   place-items: center;
   border-radius: 7px;
   background: rgba(255, 255, 255, 0.18);
   font-size: 20px;
   line-height: 1;
}

.hero-metrics {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 14px;
   max-width: 560px;
   margin: 38px 0 0;
}

.hero-metrics div {
   border-left: 1px solid var(--line);
   padding-left: 16px;
}

.metric-value {
   display: block;
   font-size: 24px;
   font-weight: 800;
}

.metric-label {
   display: block;
   margin-top: 2px;
   color: var(--muted);
   font-size: 14px;
}

.conversation-panel {
   border: 1px solid var(--line);
   border-radius: 8px;
   background: var(--surface);
   box-shadow: var(--shadow);
   overflow: hidden;
}

.panel-header {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   border-bottom: 1px solid var(--line);
   padding: 20px;
}

.panel-title,
.panel-subtitle {
   margin: 0;
}

.panel-title {
   font-weight: 800;
}

.panel-subtitle,
.workflow-card p {
   color: var(--muted);
   font-size: 14px;
}

.status-pill {
   border-radius: 999px;
   background: var(--accent-soft);
   color: var(--accent-strong);
   padding: 6px 10px;
   font-size: 12px;
   font-weight: 800;
}

.message-list {
   display: grid;
   gap: 12px;
   padding: 20px;
   background: linear-gradient(180deg, #f8fbf8 0%, #eef4ee 100%);
}

.message {
   width: fit-content;
   max-width: 86%;
   border-radius: 8px;
   padding: 12px 14px;
   font-size: 14px;
}

.message.inbound {
   background: #fff;
   border: 1px solid var(--line);
}

.message.outbound {
   justify-self: end;
   background: var(--ink);
   color: #fff;
}

.workflow-card {
   display: flex;
   gap: 12px;
   align-items: flex-start;
   margin: 20px;
   border: 1px solid var(--line);
   border-radius: 8px;
   padding: 16px;
   background: #fff;
}

.workflow-card p {
   margin: 4px 0 0;
}

.workflow-dot {
   flex: 0 0 auto;
   width: 12px;
   height: 12px;
   margin-top: 5px;
   border-radius: 999px;
   background: var(--gold);
   box-shadow: 0 0 0 6px rgba(192, 123, 37, 0.16);
}

.section-band {
   border-top: 1px solid var(--line);
   padding: 74px 0;
}

.section-heading {
   display: grid;
   grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
   gap: 40px;
   align-items: end;
   margin-bottom: 30px;
}

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

.feature-card {
   min-height: 248px;
   border: 1px solid var(--line);
   border-radius: 8px;
   padding: 22px;
   background: var(--surface);
}

.feature-icon {
   display: inline-grid;
   width: 42px;
   height: 42px;
   margin-bottom: 26px;
   place-items: center;
   border-radius: 8px;
   background: var(--surface-muted);
   color: var(--accent-strong);
   font-size: 13px;
   font-weight: 800;
}

.feature-card p {
   margin-bottom: 0;
   color: var(--muted);
}

.setup-section {
   justify-content: space-between;
   border-top: 1px solid var(--line);
   padding: 64px 0 76px;
}

.setup-section div {
   max-width: 720px;
}

.site-footer {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
   border-top: 1px solid var(--line);
   padding: 26px 0 34px;
   color: var(--muted);
   font-size: 14px;
}

.legal-page {
   min-height: 100vh;
}

.legal-content {
   width: min(820px, calc(100% - 40px));
   margin: 0 auto;
   padding: 54px 0 86px;
}

.legal-card {
   border: 1px solid var(--line);
   border-radius: 8px;
   background: var(--surface);
   padding: clamp(24px, 5vw, 44px);
   box-shadow: var(--shadow);
}

.legal-card h1 {
   margin-bottom: 20px;
   font-size: clamp(34px, 6vw, 56px);
}

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

.legal-card p:last-child {
   margin-bottom: 0;
}

@media (max-width: 920px) {
   .hero {
      grid-template-columns: 1fr;
      min-height: auto;
      padding-top: 28px;
   }

   .conversation-panel {
      max-width: 560px;
   }

   .section-heading,
   .feature-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 680px) {
   .site-header,
   .site-footer,
   main,
   .legal-content {
      width: min(100% - 28px, 1180px);
   }

   .site-header,
   .site-footer,
   .setup-section {
      align-items: flex-start;
      flex-direction: column;
   }

   .nav-links {
      width: 100%;
      justify-content: space-between;
      gap: 12px;
   }

   .hero {
      gap: 34px;
      padding-bottom: 54px;
   }

   h1 {
      font-size: 42px;
   }

   .hero-copy {
      font-size: 17px;
   }

   .hero-actions,
   .primary-button,
   .secondary-button,
   .setup-section .primary-button {
      width: 100%;
   }

   .hero-metrics,
   .section-heading,
   .feature-grid {
      grid-template-columns: 1fr;
   }

   .feature-card {
      min-height: 0;
   }
}
