:root {
  --limestone-50: #fbfaf6;
  --limestone-100: #f4f0e6;
  --limestone-200: #e6decc;
  --limestone-300: #d1c4a9;
  --limestone-500: #927f5d;
  --ink: #18201d;
  --ink-soft: #4d5852;
  --water: #27677a;
  --water-dark: #174856;
  --water-pale: #d7e8e9;
  --moss: #52664d;
  --amber: #b46f24;
  --amber-pale: #f1dfc5;
  --white: #fffefb;
  --border: rgba(24, 32, 29, 0.16);
  --border-strong: rgba(24, 32, 29, 0.3);
  --shadow: 0 28px 70px rgba(39, 44, 37, 0.12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --content: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--limestone-50);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(39, 103, 122, 0.18);
}

a:hover {
  color: var(--water-dark);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 4px;
}

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

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

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2[id],
section[id] {
  scroll-margin-top: 6.5rem;
}

p {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  color: var(--white);
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 2.5rem), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 32, 29, 0.1);
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(16px);
}

.site-nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.72rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  overflow: hidden;
  flex: 0 0 34px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background:
    linear-gradient(to bottom,
      var(--limestone-200) 0 24%,
      var(--limestone-300) 24% 46%,
      #bca983 46% 65%,
      var(--water) 65% 100%);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.36);
}

.brand-mark::after {
  position: absolute;
  top: -4px;
  left: 14px;
  width: 6px;
  height: 30px;
  border-radius: 0 0 8px 8px;
  background: var(--water-dark);
  content: "";
  transform: rotate(10deg);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand-note {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: var(--water-dark);
  background: var(--water-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.button.secondary {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
  background: var(--white);
  color: var(--ink);
}

.button.compact {
  min-height: 42px;
  padding-inline: 1rem;
  font-size: 0.8rem;
}

.button .arrow {
  font-size: 1.05em;
  transition: transform 160ms ease;
}

.button:hover .arrow {
  transform: translateX(3px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  color: var(--water-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  padding: clamp(4rem, 9vw, 8.5rem) 0 3.5rem;
}

.hero::before {
  position: absolute;
  top: 0;
  right: -8vw;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 103, 122, 0.11), rgba(39, 103, 122, 0) 68%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.75fr);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 850px;
  margin-bottom: 1.55rem;
  font-size: clamp(3.3rem, 6.9vw, 6.5rem);
}

.hero h1 em {
  color: var(--water-dark);
  font-style: normal;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 1.75rem;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.7vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.maturity-note {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.maturity-note::before {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(180, 111, 36, 0.12);
  content: "";
}

.karst-card {
  position: relative;
  display: flex;
  min-height: 540px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow);
  flex-direction: column;
  isolation: isolate;
}

.karst-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 2;
  height: 4px;
  background: linear-gradient(90deg, var(--water-dark), var(--water) 72%, var(--amber));
  content: "";
}

.signal-preview-header {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-preview-label {
  color: var(--ink);
}

.signal-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.signal-preview-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--water);
  box-shadow: 0 0 0 4px rgba(39, 103, 122, 0.1);
}

.message-preview {
  display: grid;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  border-block: 1px solid var(--border);
  background: var(--limestone-200);
  grid-template-columns: 50px minmax(0, 1fr);
}

.message-icon {
  display: grid;
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--white);
  color: var(--water-dark);
  place-items: center;
}

.message-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.message-copy {
  min-width: 0;
}

.message-type {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.message-copy h2 {
  margin: 0 0 0.25rem;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.1;
  text-wrap: balance;
}

.message-copy p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.64rem;
}

.analysis-path {
  display: grid;
  margin: 0;
  padding: 0 1.25rem;
  flex: 1;
  list-style: none;
}

.analysis-step {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  padding-block: 0.65rem;
  border-bottom: 1px solid var(--border);
  grid-template-columns: 30px minmax(0, 1fr) auto;
}

.analysis-step:last-child {
  border-bottom: 0;
}

.analysis-number {
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--water-dark);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  place-items: center;
}

.analysis-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.analysis-copy strong {
  font-size: 0.82rem;
  line-height: 1.2;
}

.analysis-copy small {
  overflow-wrap: anywhere;
  color: var(--ink-soft);
  font-size: 0.68rem;
}

.analysis-state {
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  background: var(--water-pale);
  color: var(--water-dark);
  font-family: var(--mono);
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.analysis-state.ready {
  background: var(--ink);
  color: var(--white);
}

.analysis-result {
  display: grid;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem 1.15rem;
  background: var(--water-dark);
  color: var(--white);
  grid-template-columns: 34px minmax(0, 1fr);
}

.analysis-result-mark {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  place-items: center;
}

.analysis-result-copy {
  display: grid;
  gap: 0.2rem;
}

.analysis-result-copy small {
  display: block;
  color: #b8e3ea;
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.analysis-result-copy strong {
  font-size: 0.78rem;
  line-height: 1.35;
}

.signal-band {
  border-block: 1px solid var(--border);
  background: var(--white);
}

.signal-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(4, 1fr);
}

.signal-intro,
.signal-item {
  min-width: 0;
  padding: 1.35rem 1.5rem;
}

.signal-item {
  border-left: 1px solid var(--border);
}

.signal-intro {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signal-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.86rem;
}

.signal-item span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.75rem;
  line-height: 1.4;
}

.section {
  padding: clamp(5.5rem, 10vw, 9rem) 0;
}

.section.tinted {
  border-block: 1px solid var(--border);
  background: var(--limestone-100);
}

.section.dark {
  background: var(--ink);
  color: var(--white);
}

.section-heading {
  display: grid;
  align-items: end;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5.4vw, 4.8rem);
}

.section-heading p {
  margin-bottom: 0.25rem;
  color: var(--ink-soft);
}

.dark .section-heading p {
  color: rgba(255, 255, 255, 0.68);
}

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

.outcome-card {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 1.7rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--white);
}

.outcome-card::after {
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 170px;
  height: 170px;
  border: 28px solid var(--water-pale);
  border-radius: 50%;
  content: "";
}

.outcome-card:nth-child(2)::after {
  border-color: var(--amber-pale);
}

.outcome-card:nth-child(3)::after {
  border-color: var(--limestone-200);
}

.card-index {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  margin-bottom: 4.5rem;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--water-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
}

.outcome-card h3 {
  position: relative;
  z-index: 2;
  margin-bottom: 0.75rem;
  font-size: 1.8rem;
}

.outcome-card p {
  position: relative;
  z-index: 2;
  max-width: 31ch;
  margin: 0;
  color: var(--ink-soft);
}

.flow {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.24);
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-step {
  position: relative;
  min-width: 0;
  min-height: 300px;
  padding: 1.5rem 1.3rem;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.flow-step:last-child {
  border-right: 0;
}

.flow-step::before {
  display: block;
  width: 14px;
  height: 14px;
  margin-bottom: 5rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--water-pale);
  box-shadow: 0 0 0 1px var(--water-pale);
  content: "";
}

.flow-number {
  display: block;
  margin-bottom: 0.6rem;
  color: #a9d7df;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.flow-step h3 {
  margin-bottom: 0.65rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.flow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
  line-height: 1.55;
}

.boundary-grid {
  display: grid;
  align-items: stretch;
  gap: clamp(2rem, 6vw, 5.5rem);
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
}

.boundary-copy h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

.boundary-copy > p {
  max-width: 55ch;
  color: var(--ink-soft);
}

.commitment-list {
  display: grid;
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.commitment-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.commitment-list li::before {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  margin-top: 0.48rem;
  border-radius: 50%;
  background: var(--water);
  content: "";
}

.boundary-map {
  display: grid;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--white);
  grid-template-rows: 1fr auto 1fr;
}

.boundary-zone {
  display: grid;
  align-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.boundary-zone.private {
  background: var(--limestone-200);
}

.boundary-zone.safe {
  background: var(--water-dark);
  color: var(--white);
}

.boundary-zone small {
  margin-bottom: 0.65rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.boundary-zone strong {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
}

.boundary-gate {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-block: 1px dashed var(--border-strong);
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.boundary-gate span:last-child {
  color: var(--water-dark);
  font-weight: 700;
}

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

.shipping-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--white);
}

.shipping-card.roadmap {
  background: transparent;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--moss);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.status-pill::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.roadmap .status-pill {
  color: var(--amber);
}

.shipping-card h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.shipping-card > p {
  max-width: 55ch;
  color: var(--ink-soft);
}

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

.feature-list li {
  display: grid;
  gap: 0.8rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  grid-template-columns: 1.1fr 1.7fr;
  font-size: 0.84rem;
}

.feature-list strong {
  font-weight: 700;
}

.feature-list span {
  color: var(--ink-soft);
}

.self-hosted {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.self-hosted-copy h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
}

.self-hosted-copy p {
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.68);
}

.operator-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: #202a26;
}

.operator-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.operator-dots {
  display: flex;
  gap: 5px;
}

.operator-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.operator-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.operator-list li {
  display: grid;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  grid-template-columns: auto 1fr auto;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.operator-list li:last-child {
  border-bottom: 0;
}

.operator-list .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8fc29a;
}

.operator-list .name {
  color: rgba(255, 255, 255, 0.86);
}

.operator-list .detail {
  color: rgba(255, 255, 255, 0.48);
  text-align: right;
}

.cta-section {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.cta-card {
  position: relative;
  display: grid;
  overflow: hidden;
  align-items: end;
  gap: 2rem;
  padding: clamp(2rem, 7vw, 5.5rem);
  border-radius: 30px;
  background: var(--water-dark);
  color: var(--white);
  grid-template-columns: minmax(0, 1fr) auto;
}

.cta-card::after {
  position: absolute;
  top: -90px;
  right: 18%;
  width: 220px;
  height: 400px;
  border: 46px solid rgba(168, 217, 225, 0.13);
  border-radius: 50%;
  content: "";
  transform: rotate(25deg);
}

.cta-card h2 {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 5vw, 4.6rem);
}

.cta-card p {
  position: relative;
  z-index: 2;
  max-width: 62ch;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.cta-card .button {
  position: relative;
  z-index: 2;
  border-color: var(--white);
  background: var(--white);
  color: var(--water-dark);
}

.cta-card .button:hover {
  border-color: var(--limestone-200);
  background: var(--limestone-200);
  color: var(--ink);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--limestone-100);
}

.footer-main {
  display: grid;
  gap: 3rem;
  padding: 3.5rem 0;
  grid-template-columns: 1.4fr repeat(2, 0.7fr);
}

.footer-brand p {
  max-width: 46ch;
  margin: 1rem 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.footer-group h2 {
  margin-bottom: 1rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  font-size: 0.84rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
}

/* Supporting content pages */
.page-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  border-bottom: 1px solid var(--border);
  background: var(--limestone-100);
}

.page-hero h1 {
  max-width: 940px;
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 7vw, 6rem);
}

.page-hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.8vw, 1.2rem);
}

.prose-layout {
  display: grid;
  align-items: start;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(4rem, 8vw, 7rem) 0;
  grid-template-columns: minmax(180px, 0.36fr) minmax(0, 1fr);
}

.prose-aside {
  position: sticky;
  top: 7rem;
}

.prose-aside p {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.6;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  margin: 3.5rem 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin: 2.25rem 0 0.65rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

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

.prose a {
  color: var(--water-dark);
}

.prose ul {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.55rem;
}

.callout {
  margin: 2.5rem 0;
  padding: 1.4rem 1.5rem;
  border-left: 4px solid var(--water);
  border-radius: 0 14px 14px 0;
  background: var(--water-pale);
}

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

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

.contact-card {
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

.contact-card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.contact-card p {
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.contact-card a {
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 0.75rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .boundary-grid,
  .self-hosted {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 800px;
  }

  .karst-card {
    width: min(100%, 620px);
    min-height: 540px;
  }

  .section-heading {
    align-items: start;
    grid-template-columns: 1fr;
  }

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

  .flow-step:nth-child(3) {
    border-right: 0;
  }

  .flow-step:nth-child(n + 4) {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }
}

@media (max-width: 800px) {
  .shell {
    width: min(calc(100% - 1.5rem), var(--content));
  }

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

  .brand-note,
  .nav-links {
    display: none;
  }

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

  .signal-intro {
    grid-column: 1 / -1;
  }

  .signal-item {
    border-top: 1px solid var(--border);
  }

  .signal-item:nth-child(2),
  .signal-item:nth-child(4) {
    border-left: 0;
  }

  .outcome-grid,
  .shipping-grid,
  .footer-main,
  .prose-layout {
    grid-template-columns: 1fr;
  }

  .outcome-card {
    min-height: 280px;
  }

  .card-index {
    margin-bottom: 2.8rem;
  }

  .prose-aside {
    position: static;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .cta-card {
    align-items: start;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-mark {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .brand-name {
    font-size: 1.24rem;
  }

  .button.compact {
    min-height: 40px;
    padding-inline: 0.8rem;
    font-size: 0.72rem;
  }

  .hero {
    padding-top: 3.6rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.3rem);
  }

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

  .karst-card {
    min-height: 0;
    border-radius: 22px;
  }

  .signal-preview-header,
  .message-preview,
  .analysis-result {
    padding-inline: 1rem;
  }

  .message-preview {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .message-icon {
    width: 42px;
    height: 42px;
  }

  .message-copy h2 {
    font-size: 1.2rem;
  }

  .analysis-path {
    padding-inline: 1rem;
  }

  .analysis-step {
    gap: 0.65rem;
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .analysis-number {
    width: 28px;
    height: 28px;
  }

  .signal-grid,
  .flow,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .signal-item {
    border-left: 0;
  }

  .flow-step,
  .flow-step:nth-child(3) {
    min-height: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-right: 0;
  }

  .flow-step::before {
    margin-bottom: 2.5rem;
  }

  .boundary-gate,
  .feature-list li {
    grid-template-columns: 1fr;
  }

  .boundary-gate {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

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