:root {
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-soft: #eef5f3;
  --ink: #18232d;
  --muted: #5d6a75;
  --line: #d8dedb;
  --teal: #0c8f86;
  --teal-dark: #08645f;
  --amber: #d99a16;
  --blue: #3c7ca6;
  --coral: #cf5645;
  --green-soft: #dff3ec;
  --amber-soft: #fff1d1;
  --red-soft: #fbe1dc;
  --shadow: 0 18px 60px rgba(24, 35, 45, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 2rem;
  border-bottom: 1px solid rgba(216, 222, 219, 0.8);
  background: rgba(247, 245, 239, 0.92);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  overflow-x: auto;
  color: var(--muted);
  font-size: 0.94rem;
  white-space: nowrap;
}

.site-nav a {
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.flash-stack {
  position: fixed;
  top: 84px;
  right: 1rem;
  z-index: 30;
  display: grid;
  gap: 0.5rem;
  width: min(360px, calc(100% - 2rem));
}

.flash {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.flash-success {
  border-color: #9dd8cc;
  color: var(--teal-dark);
}

.flash-error {
  border-color: #f0aaa0;
  color: #923829;
}

.hero {
  position: relative;
  display: grid;
  min-height: 72svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: center right;
}

.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 245, 239, 0.96) 0%, rgba(247, 245, 239, 0.82) 38%, rgba(247, 245, 239, 0.22) 72%),
    linear-gradient(0deg, rgba(247, 245, 239, 0.66) 0%, rgba(247, 245, 239, 0) 46%);
}

.hero-copy {
  width: min(680px, calc(100% - 2rem));
  align-self: center;
  padding: 4.5rem 0 4.25rem;
  margin-left: max(1rem, calc((100% - 1160px) / 2));
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--teal-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.14;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 610px;
  margin: 1.25rem 0 0;
  color: #2f3b45;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 800;
}

.button svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.button-primary {
  background: var(--teal);
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--teal-dark);
  outline: none;
}

.button-secondary {
  border-color: rgba(24, 35, 45, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #ffffff;
  outline: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 640px;
  margin: 2rem 0 0;
}

.hero-metrics div {
  min-width: 0;
  border-left: 3px solid var(--amber);
  padding-left: 0.85rem;
}

.hero-metrics dt {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
}

.hero-metrics dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section,
.intro-band {
  padding: 5.5rem 2rem;
}

.section-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.intro-band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: start;
}

.intro-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading.narrow {
  max-width: 720px;
}

.stage-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 2rem;
}

.stage-tab {
  display: flex;
  min-height: 74px;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  padding: 0.85rem;
  text-align: left;
}

.stage-tab:hover,
.stage-tab:focus-visible,
.stage-tab.is-active {
  border-color: rgba(12, 143, 134, 0.45);
  background: var(--surface-soft);
  color: var(--ink);
  outline: none;
}

.stage-step {
  color: var(--amber);
  font-size: 0.78rem;
}

.stage-panels {
  margin-top: 0.75rem;
}

.stage-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
  border: 1px solid rgba(12, 143, 134, 0.28);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 12px 34px rgba(24, 35, 45, 0.08);
}

.stage-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.signal-list {
  display: grid;
  gap: 0.65rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  background: #fbfcfb;
  color: #32414c;
  font-weight: 700;
}

.signal-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--teal);
}

.product-band {
  background: #ffffff;
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: 2rem;
  align-items: center;
}

.dashboard-preview {
  display: grid;
  gap: 1rem;
  border: 1px solid #ccd8d3;
  border-radius: 8px;
  background: #f9fbfa;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.preview-header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  padding-bottom: 0.75rem;
}

.preview-header div {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(12, 143, 134, 0.14);
}

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

.metric-tile {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 0.8rem;
}

.metric-tile span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.metric-tile strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.18rem;
}

.preview-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.preview-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.preview-table th,
.preview-table td {
  border-bottom: 1px solid var(--line);
  padding: 0.8rem;
  text-align: left;
}

.preview-table th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.preview-table tr:last-child td {
  border-bottom: 0;
}

.risk {
  display: inline-flex;
  min-width: 62px;
  justify-content: center;
  border-radius: 4px;
  padding: 0.18rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.risk-low {
  background: var(--green-soft);
  color: var(--teal-dark);
}

.risk-watch {
  background: var(--amber-soft);
  color: #8a5a00;
}

.risk-high {
  background: var(--red-soft);
  color: #963828;
}

.doc-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.doc-rail span {
  display: inline-flex;
  min-height: 40px;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #34434d;
  padding: 0.5rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 750;
}

.doc-rail svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--blue);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.audience-card {
  display: grid;
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 1.25rem;
}

.audience-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--teal-dark);
}

.audience-icon svg {
  width: 22px;
  height: 22px;
}

.audience-card ul {
  display: grid;
  gap: 0.65rem;
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
}

.compliance-band {
  background: #24313a;
  color: #ffffff;
}

.compliance-band .eyebrow {
  color: #f3bf57;
}

.compliance-band .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.compliance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 2rem;
  align-items: center;
}

.compliance-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.compliance-list span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.78rem 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 750;
}

.demo-section {
  background: #ffffff;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 2rem;
  align-items: start;
}

.demo-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  padding: 1rem;
}

.demo-form label {
  display: grid;
  gap: 0.35rem;
  color: #34434d;
  font-weight: 800;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  border: 1px solid #cbd5d1;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.75rem 0.8rem;
}

.demo-form textarea {
  resize: vertical;
}

.demo-form input:focus,
.demo-form select:focus,
.demo-form textarea:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(12, 143, 134, 0.14);
}

.full-field {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.site-footer {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  padding: 1.25rem 2rem;
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 980px) {
  .hero {
    min-height: 68svh;
  }

  .hero-copy {
    padding: 3.5rem 0;
  }

  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .intro-grid,
  .platform-grid,
  .compliance-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .stage-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    padding: 0.75rem 1rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .site-nav {
    max-width: 54vw;
    padding-bottom: 0.2rem;
  }

  .hero {
    min-height: 70svh;
  }

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

  .hero-shade {
    background: rgba(247, 245, 239, 0.78);
  }

  .hero-copy {
    width: calc(100% - 2rem);
    padding: 2.6rem 0 2.4rem;
  }

  h1 {
    font-size: 2.7rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-metrics,
  .metric-grid,
  .doc-rail,
  .compliance-list,
  .demo-form {
    grid-template-columns: 1fr;
  }

  .section,
  .intro-band {
    padding: 3.7rem 1rem;
  }

  .stage-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stage-panel {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.25rem 1rem;
  }
}

@media (max-width: 420px) {
  .site-header {
    flex-direction: column;
  }

  .site-nav {
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }

  .stage-tabs {
    grid-template-columns: 1fr;
  }
}
