:root {
  --bg: #f7f1e7;
  --bg-alt: #eee4d6;
  --bg-shell: #fbf7f2;
  --ink: #112029;
  --ink-soft: #56636c;
  --ink-muted: #79858d;
  --line: rgba(17, 32, 41, 0.1);
  --line-strong: rgba(17, 32, 41, 0.16);
  --white-line: rgba(255, 255, 255, 0.72);
  --panel: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 243, 235, 0.8));
  --panel-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 247, 242, 0.9));
  --panel-dark: linear-gradient(160deg, #102127, #13323a 56%, #173d56);
  --accent: #0f665f;
  --accent-strong: #0b4541;
  --accent-deep: #173c5c;
  --accent-soft: rgba(15, 102, 95, 0.12);
  --warm: #8d6a44;
  --warm-soft: rgba(141, 106, 68, 0.14);
  --shadow-sm: 0 14px 30px rgba(12, 24, 32, 0.08);
  --shadow-md: 0 24px 56px rgba(12, 24, 32, 0.11);
  --shadow-lg: 0 34px 84px rgba(12, 24, 32, 0.14);
  --shadow-xl: 0 42px 110px rgba(10, 20, 28, 0.17);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 44px;
  --space-7: 64px;
  --space-8: 92px;
  --container: min(1220px, calc(100vw - 40px));
  --reading: min(69ch, 100%);
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: Aptos, "Segoe UI Variable", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 102, 95, 0.16), transparent 26%),
    radial-gradient(circle at 88% 6%, rgba(23, 60, 92, 0.12), transparent 30%),
    radial-gradient(circle at 82% 82%, rgba(141, 106, 68, 0.08), transparent 24%),
    linear-gradient(180deg, #f8f3ea 0%, #f2eadf 46%, #f7f3ec 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), transparent),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 79px,
      rgba(17, 32, 41, 0.018) 79px,
      rgba(17, 32, 41, 0.018) 80px
    );
  opacity: 0.58;
}

body::after {
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 255, 255, 0.8), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.4), transparent 34%);
  opacity: 0.8;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

button {
  border: 0;
  background: none;
  color: inherit;
}

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

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

p:last-child,
ul:last-child,
ol:last-child,
dl:last-child {
  margin-bottom: 0;
}

::selection {
  background: rgba(15, 102, 95, 0.18);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(15, 102, 95, 0.35);
  outline-offset: 4px;
}

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

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  top: -56px;
  left: 20px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: #102028;
  color: #f8fafb;
  box-shadow: var(--shadow-md);
}

.skip-link:focus {
  top: 18px;
}

.preview-ribbon {
  position: relative;
  z-index: 5;
  background: linear-gradient(90deg, #0f2522, #12313d 78%);
  color: #edf6f3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-ribbon__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 10px 0;
}

.preview-ribbon__eyebrow,
.eyebrow,
.footer-heading {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.preview-ribbon__eyebrow {
  color: #8fd6c7;
  white-space: nowrap;
}

.preview-ribbon__text {
  max-width: 72ch;
  font-size: 0.97rem;
  line-height: 1.45;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 18;
  backdrop-filter: blur(24px) saturate(1.12);
  background: rgba(248, 243, 236, 0.74);
  border-bottom: 1px solid rgba(17, 32, 41, 0.08);
  transition: box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 102, 95, 0.26), transparent);
}

.site-header.is-scrolled,
.site-header.is-nav-open {
  background: rgba(250, 246, 240, 0.92);
  box-shadow: 0 18px 44px rgba(12, 24, 32, 0.1);
  border-color: rgba(17, 32, 41, 0.12);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "brand nav actions";
  align-items: center;
  gap: 18px;
  min-height: 94px;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__mark {
  position: relative;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 18px 36px rgba(18, 53, 76, 0.24);
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brand__text {
  display: grid;
  gap: 2px;
}

.brand__text strong {
  font-size: 1.02rem;
  letter-spacing: 0.08em;
}

.brand__text span {
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.site-nav {
  grid-area: nav;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-sm);
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(15, 102, 95, 0.9), rgba(23, 60, 92, 0.85));
  opacity: 0;
  transform: scaleX(0.56);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.64);
  transform: translateY(-1px);
}

.nav-link.is-active,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-link.is-active::after,
.nav-link[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.header-capsule {
  display: grid;
  gap: 2px;
  padding: 12px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.header-capsule__label {
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.header-capsule__value {
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.nav-toggle__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-toggle__bars {
  display: inline-grid;
  gap: 4px;
}

.nav-toggle__bars span {
  width: 18px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  transition: transform 160ms ease, opacity 160ms ease;
}

.site-header.is-nav-open .nav-toggle__bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-nav-open .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.surface-rail {
  position: relative;
  z-index: 4;
  background: rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(17, 32, 41, 0.08);
  backdrop-filter: blur(18px) saturate(1.08);
}

.surface-rail::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(141, 106, 68, 0.28), transparent);
}

.surface-rail__inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.surface-rail__inner::-webkit-scrollbar {
  display: none;
}

.surface-rail__label {
  flex: 0 0 auto;
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.surface-rail__link {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.76);
  color: var(--ink-soft);
  font-size: 0.89rem;
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.surface-rail__link:hover,
.surface-rail__link:focus-visible {
  transform: translateY(-1px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.surface-rail__link.is-active,
.surface-rail__link[aria-current="page"] {
  color: var(--accent-strong);
  background: linear-gradient(135deg, rgba(15, 102, 95, 0.12), rgba(255, 255, 255, 0.82));
  border-color: rgba(15, 102, 95, 0.18);
}

.page-hero {
  position: relative;
  overflow: clip;
  padding: clamp(76px, 10vw, 124px) 0 clamp(40px, 6vw, 60px);
}

.page-hero--subpage {
  padding-top: clamp(60px, 8vw, 92px);
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-hero::before {
  inset: 0 0 auto;
  height: min(540px, 58vw);
  opacity: 0.92;
  background:
    radial-gradient(circle at 12% 12%, rgba(15, 102, 95, 0.22), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(23, 60, 92, 0.16), transparent 28%),
    radial-gradient(circle at 70% 82%, rgba(141, 106, 68, 0.12), transparent 22%);
}

.page-hero::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 30%),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.35), transparent 36%);
}

.page--about .page-hero::before,
.page--capabilities .page-hero::before,
.page--ecosystem .page-hero::before {
  background:
    radial-gradient(circle at 10% 12%, rgba(15, 102, 95, 0.18), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(23, 60, 92, 0.18), transparent 30%),
    radial-gradient(circle at 70% 84%, rgba(141, 106, 68, 0.1), transparent 22%);
}

.page--readiness .page-hero::before,
.page--privacy .page-hero::before,
.page--terms .page-hero::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(15, 102, 95, 0.17), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(141, 106, 68, 0.16), transparent 26%),
    radial-gradient(circle at 68% 82%, rgba(23, 60, 92, 0.1), transparent 20%);
}

.page--webhook-debugger .page-hero::before,
.page--hs-intelligence .page-hero::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(23, 60, 92, 0.22), transparent 30%),
    radial-gradient(circle at 84% 12%, rgba(15, 102, 95, 0.16), transparent 26%),
    radial-gradient(circle at 66% 84%, rgba(141, 106, 68, 0.1), transparent 20%);
}

.page--clause-atlas .page-hero::before,
.page--contact .page-hero::before {
  background:
    radial-gradient(circle at 12% 14%, rgba(141, 106, 68, 0.18), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(15, 102, 95, 0.16), transparent 28%),
    radial-gradient(circle at 66% 82%, rgba(23, 60, 92, 0.1), transparent 20%);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.84fr);
  gap: 26px;
  align-items: stretch;
}

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

.hero-panel,
.status-panel,
.panel,
.surface-card,
.boundary-band,
.cta-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(1.08);
}

.hero-panel::before,
.status-panel::before,
.panel::before,
.surface-card::before,
.boundary-band::before,
.cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(15, 102, 95, 0.32), rgba(255, 255, 255, 0.08));
}

.hero-panel::after,
.status-panel::after,
.panel::after,
.surface-card::after,
.boundary-band::after,
.cta-card::after {
  content: "";
  position: absolute;
  inset: auto -10% -46% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.5), transparent 70%);
  opacity: 0.32;
  z-index: -1;
}

.hero-panel,
.status-panel,
.panel,
.boundary-band {
  padding: clamp(26px, 3vw, 38px);
  border-radius: var(--radius-2xl);
}

.surface-card,
.cta-card {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-xl);
}

.hero-panel {
  background: var(--panel-strong);
  box-shadow: var(--shadow-xl);
}

.page-hero--subpage .hero-panel {
  max-width: 980px;
}

.status-panel {
  display: grid;
  align-content: end;
  gap: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(245, 241, 233, 0.84));
}

.panel--accent,
.cta-card:hover {
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(243, 249, 247, 0.9));
}

.panel--dark {
  background: var(--panel-dark);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 80px rgba(9, 20, 28, 0.26);
  color: #edf7f5;
}

.panel--dark::after {
  opacity: 0.12;
}

.panel--dark p,
.panel--dark li,
.panel--dark .eyebrow,
.panel--dark h2,
.panel--dark h3,
.panel--dark strong {
  color: inherit;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--warm);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.58;
}

.hero-panel h1,
.hero-panel h2,
.status-panel h2,
.panel h2,
.panel h3,
.boundary-band h2,
.footer-column--brand h2,
.cta-card strong,
.surface-card h3 {
  margin: 14px 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.hero-panel h1 {
  font-size: clamp(3rem, 6vw, 5.9rem);
  max-width: 11ch;
}

.page-hero--subpage .hero-panel h1 {
  font-size: clamp(2.45rem, 5vw, 4.4rem);
  max-width: 12ch;
}

.panel h2,
.boundary-band h2,
.footer-column--brand h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.panel h3,
.surface-card h3,
.cta-card strong,
.status-panel h2 {
  font-size: clamp(1.26rem, 2vw, 1.62rem);
  line-height: 1.14;
}

.hero-summary,
.category-statement,
.section-heading p,
.panel p,
.surface-card p,
.cta-card p,
.footer-column p,
.footer-note,
.status-list dd {
  color: var(--ink-soft);
  font-size: clamp(1rem, 0.38vw + 0.95rem, 1.12rem);
  line-height: 1.78;
}

.hero-summary,
.section-heading p,
.panel p,
.boundary-band p,
.footer-column p,
.footer-note {
  max-width: var(--reading);
}

.panel--dark p,
.panel--dark .feature-list,
.panel--dark .step-list {
  color: rgba(237, 247, 245, 0.82);
}

.category-statement {
  margin: 0 0 26px;
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.pill-row,
.button-row,
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pill,
.preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(17, 32, 41, 0.08);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill--accent,
.preview-tag {
  background: var(--accent-soft);
  border-color: rgba(15, 102, 95, 0.18);
  color: var(--accent-strong);
}

.preview-tag--quiet {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink-soft);
  border-color: rgba(17, 32, 41, 0.08);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 21px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

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

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 18px 34px rgba(15, 66, 82, 0.24);
}

.button--primary::after {
  content: "\2192";
  font-size: 0.95rem;
  transition: transform 160ms ease;
}

.button--primary:hover::after,
.button--primary:focus-visible::after {
  transform: translateX(3px);
}

.button--secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(17, 32, 41, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.status-list {
  margin: 0;
  display: grid;
  gap: 12px;
}

.status-list div {
  padding: 16px 16px 17px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.status-list dt {
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-list dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.62;
}

.section {
  position: relative;
  padding: clamp(54px, 8vw, 94px) 0;
}

.section--tinted::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(244, 238, 229, 0.52));
  border-top: 1px solid rgba(17, 32, 41, 0.06);
  border-bottom: 1px solid rgba(17, 32, 41, 0.06);
}

.section--tinted > .container {
  position: relative;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 12px 0 14px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 3.5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.032em;
}

.panel-grid,
.surface-grid,
.cta-grid,
.content-split,
.footer-grid {
  display: grid;
  gap: 24px;
}

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

.panel-grid--three,
.surface-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.content-split {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.surface-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 241, 233, 0.82));
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.surface-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.surface-card__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  background: var(--warm-soft);
  color: var(--warm);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.surface-card__label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.surface-card h3,
.cta-card strong {
  display: block;
  margin: 0;
}

.surface-card__audience,
.surface-card__role {
  padding-top: 14px;
  margin-top: 2px;
  border-top: 1px solid rgba(17, 32, 41, 0.08);
}

.surface-card .button-row,
.cta-card .button-row {
  margin-top: auto;
}

.feature-list,
.step-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.82;
}

.feature-list li + li,
.step-list li + li {
  margin-top: 8px;
}

.feature-list li::marker {
  color: var(--warm);
}

.step-list li::marker {
  color: var(--accent);
  font-weight: 700;
}

.boundary-band {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) auto;
  align-items: end;
  gap: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 246, 0.82));
}

.boundary-band .button-row {
  justify-content: flex-end;
}

.cta-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.cta-card:hover,
.cta-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.inline-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.site-footer {
  padding: clamp(58px, 8vw, 90px) 0 42px;
}

.footer-shell {
  padding: 34px;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(247, 242, 234, 0.54));
  box-shadow: var(--shadow-lg);
}

.footer-grid {
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.82fr));
}

.footer-column {
  min-width: 0;
}

.footer-column--brand {
  padding-right: 18px;
}

.footer-column--brand p {
  max-width: 44ch;
  margin-bottom: 18px;
}

.footer-heading {
  display: inline-flex;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.link-list {
  display: grid;
  gap: 8px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
  transition: color 160ms ease, transform 160ms ease;
}

.footer-link:hover,
.footer-link:focus-visible,
.footer-link.is-active,
.footer-link[aria-current="page"] {
  color: var(--ink);
  transform: translateX(2px);
}

.footer-note {
  margin-top: 16px;
  padding-left: 18px;
  border-left: 2px solid rgba(17, 32, 41, 0.08);
}

.footer-meta {
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 32, 41, 0.08);
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 460ms ease, transform 460ms ease;
}

html.has-js [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page--home .hero-panel {
  min-height: 100%;
}

.page--home .status-panel {
  align-self: end;
}

.page--privacy .panel,
.page--terms .panel,
.page--readiness .panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 244, 237, 0.84));
}

.page--contact .surface-card,
.page--readiness .panel--accent,
.page--home .panel--accent {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(240, 248, 246, 0.88));
}

.page--webhook-debugger .hero-panel,
.page--clause-atlas .hero-panel,
.page--hs-intelligence .hero-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 242, 235, 0.84));
}

.button-row--compact .button {
  min-height: 44px;
}

.surface-grid--deep {
  align-items: stretch;
}

.footer-grid--expanded {
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 0.82fr));
}

@media (max-width: 1180px) {
  .panel-grid--three,
  .surface-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  }
}

@media (max-width: 980px) {
  .hero-layout,
  .content-split,
  .footer-grid,
  .footer-grid--expanded {
    grid-template-columns: 1fr;
  }

  .cta-grid--wide {
    grid-template-columns: 1fr;
  }

  .footer-column--brand {
    padding-right: 0;
  }

  .boundary-band {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .boundary-band .button-row {
    justify-content: flex-start;
  }
}

@media (max-width: 920px) {
  .header-shell {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "nav nav";
    gap: 14px;
    min-height: 86px;
    padding: 16px 0;
  }

  .header-actions {
    gap: 10px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .header-capsule {
    padding: 11px 13px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  html.has-js .site-nav {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-md);
  }

  html.has-js .site-header.is-nav-open .site-nav {
    display: flex;
  }

  html.has-js .site-nav .nav-link {
    justify-content: flex-start;
  }

  html.has-js .site-nav .nav-link::after {
    left: 0;
    right: auto;
    width: 32px;
    bottom: 5px;
  }

  .surface-rail__inner {
    gap: 8px;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1220px, calc(100vw - 28px));
  }

  .preview-ribbon__inner,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-hero {
    padding-top: 52px;
  }

  .hero-panel,
  .status-panel,
  .panel,
  .surface-card,
  .boundary-band,
  .cta-card,
  .footer-shell {
    padding: 22px;
  }

  .panel-grid,
  .panel-grid--three,
  .surface-grid,
  .cta-grid,
  .cta-grid--wide,
  .content-split,
  .footer-grid,
  .footer-grid--expanded {
    grid-template-columns: 1fr;
  }

  .hero-panel h1 {
    max-width: none;
  }

  .page-hero--subpage .hero-panel h1 {
    max-width: none;
  }

  .surface-rail__label {
    min-width: 100%;
  }

  .surface-rail__link {
    min-height: 36px;
  }

  .header-capsule {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html.has-js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
