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

:root {
  --ink: #18211f;
  --deep-moss: #28564a;
  --forest: #102f28;
  --paper: #f6f1e8;
  --surface: #ffffff;
  --surface-warm: #fbf8f1;
  --mist: #d9ded6;
  --mist-strong: #bac8bd;
  --data-blue: #2e5e87;
  --signal-amber: #d89b3d;
  --human-coral: #c7664b;
  --text-muted: #5d6b65;
  --text-soft: #74827c;
  --radius: 8px;
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.site-page--privacy {
  background: var(--surface-warm);
}

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

button,
input,
textarea {
  font: inherit;
}

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

.shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 8px 12px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--forest);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--mist);
}

.site-header__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

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

.brand__mark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--forest);
  color: var(--paper);
  font-weight: 800;
  line-height: 1;
}

.brand__copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  font-size: 18px;
  font-weight: 750;
  line-height: 1.15;
}

.brand__tag {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.3;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

.nav a,
.footer-links a,
.text-link {
  text-underline-offset: 3px;
}

.nav a:hover,
.nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--forest);
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.btn-primary {
  background: var(--forest);
  color: var(--surface);
  border-color: var(--forest);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--deep-moss);
  border-color: var(--deep-moss);
}

.btn-secondary {
  background: transparent;
  color: var(--forest);
  border-color: var(--mist-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--surface);
  border-color: var(--forest);
}

.hero {
  border-bottom: 1px solid var(--mist);
  background: var(--paper);
}

.hero__inner {
  min-height: 700px;
  padding: 56px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.kicker {
  margin: 0 0 16px;
  color: var(--deep-moss);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

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

h1 {
  max-width: 12ch;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__body {
  max-width: 660px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.hero__proof li {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface-warm);
  color: var(--text-muted);
  padding: 8px 10px;
  font-size: 13px;
}

.product-shell {
  border: 1px solid var(--forest);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.product-bar {
  min-height: 48px;
  border-bottom: 1px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  background: var(--surface-warm);
}

.product-bar__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 750;
  color: var(--forest);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--signal-amber);
}

.product-bar__meta {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 430px;
}

.product-sidebar {
  border-right: 1px solid var(--mist);
  background: var(--surface-warm);
  padding: 16px;
  display: grid;
  align-content: start;
  gap: 12px;
}

.sidebar-item {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px;
  display: grid;
  gap: 2px;
}

.sidebar-item.is-active {
  border-color: var(--forest);
  background: #f0f4ee;
}

.sidebar-item strong {
  font-size: 14px;
  line-height: 1.25;
}

.sidebar-item span {
  color: var(--text-muted);
  font-size: 12px;
}

.product-main {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.case-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--mist);
}

.case-header h2 {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.case-header p {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 14px;
}

.readiness {
  min-width: 126px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 10px;
  text-align: center;
}

.readiness strong {
  display: block;
  color: var(--forest);
  font-size: 26px;
  line-height: 1;
}

.readiness span {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-tab {
  min-height: 34px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  padding: 0 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.demo-tab:hover,
.demo-tab:focus-visible,
.demo-tab.is-active {
  border-color: var(--forest);
  color: var(--forest);
  background: #f0f4ee;
}

.demo-panels {
  display: grid;
}

.demo-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 14px;
}

.demo-panel.is-active {
  display: grid;
}

.knowledge-map,
.output-stack,
.capture-stack {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 14px;
}

.knowledge-map {
  display: grid;
  gap: 10px;
}

.map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.map-node {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  padding: 10px;
  background: var(--surface-warm);
}

.map-node strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.map-node span {
  color: var(--text-muted);
  font-size: 12px;
}

.map-link {
  height: 1px;
  background: var(--mist-strong);
}

.capture-stack,
.output-stack {
  display: grid;
  gap: 10px;
  align-content: start;
  background: var(--surface-warm);
}

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

.capture-stack .risk-pill {
  grid-column: 1 / -1;
}

.capture-card,
.output-card {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 11px;
}

.capture-card strong,
.output-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.capture-card span,
.output-card span {
  color: var(--text-muted);
  font-size: 12px;
}

.risk-pill {
  display: inline-flex;
  width: fit-content;
  border: 1px solid #e3c08a;
  border-radius: var(--radius);
  background: #fff8e8;
  color: #715018;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 750;
}

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--mist);
  background: var(--surface-warm);
}

.section--paper {
  background: var(--paper);
}

.section--dark {
  background: var(--forest);
  color: var(--surface);
}

.section--dark .section-heading p,
.section--dark .waitlist-copy p,
.section--dark .form-note,
.section--dark .field label {
  color: #dce7df;
}

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

.section-label {
  display: block;
  margin-bottom: 10px;
  color: var(--deep-moss);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 750;
}

.section--dark .section-label {
  color: #f0c77f;
}

.section-heading h2,
.waitlist-copy h2,
.privacy-hero h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-heading p,
.waitlist-copy p,
.privacy-hero p {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 18px;
}

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

.problem-copy {
  display: grid;
  gap: 20px;
}

.quote-panel {
  border-left: 3px solid var(--human-coral);
  background: var(--surface);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.quote-panel p {
  color: var(--ink);
  font-size: 18px;
}

.quote-panel cite {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 13px;
  font-style: normal;
}

.risk-list {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
}

.risk-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
}

.risk-item + .risk-item {
  border-top: 1px solid var(--mist);
}

.risk-index {
  width: 34px;
  height: 34px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: var(--deep-moss);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.risk-item h3 {
  font-size: 18px;
  line-height: 1.25;
}

.risk-item p {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 15px;
}

.flow-grid,
.use-case-grid,
.output-grid,
.faq-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.flow-card,
.use-case,
.output,
.faq-item,
.privacy-card {
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px;
}

.flow-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.flow-index {
  color: var(--deep-moss);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.flow-card h3,
.use-case h3,
.output h3,
.faq-item h3,
.privacy-card h2 {
  font-size: 19px;
  line-height: 1.25;
}

.flow-card p,
.use-case p,
.output p,
.faq-item p,
.privacy-card p,
.privacy-card li {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 15px;
}

.use-case,
.output {
  display: grid;
  gap: 12px;
  align-content: start;
}

.case-tag,
.output-tag {
  width: fit-content;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  color: var(--deep-moss);
  background: var(--surface-warm);
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 750;
}

.output-tag {
  color: var(--data-blue);
}

.faq-item {
  display: grid;
  align-content: start;
}

.waitlist__wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 42px;
  align-items: start;
}

.waitlist-copy {
  display: grid;
  gap: 22px;
}

.waitlist-points {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.waitlist-points li {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 12px;
  color: #eef6f0;
}

.form-shell {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 22px;
}

.form-shell h3 {
  font-size: 22px;
  line-height: 1.25;
}

.form-shell > p {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 14px;
}

.waitlist-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--mist-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 12px 13px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a9691;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.form-note {
  color: #dce7df;
  font-size: 13px;
}

.form-shell .form-note,
.section--dark .form-shell .field label {
  color: var(--text-muted);
}

.turnstile-wrap {
  display: none;
  margin-top: 2px;
}

.turnstile-wrap.is-visible {
  display: block;
}

.field--honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.form-status[data-state="success"] {
  color: var(--deep-moss);
}

.form-status[data-state="error"] {
  color: var(--human-coral);
}

.site-footer {
  background: var(--paper);
  padding: 24px 0 40px;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.privacy-main {
  padding: 56px 0 76px;
}

.privacy-hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.privacy-notice {
  margin-top: 18px;
  border: 1px solid var(--mist);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-muted);
  padding: 16px 18px;
}

.privacy-content {
  display: grid;
  gap: 16px;
}

.privacy-card ul {
  display: grid;
  gap: 10px;
  margin: 10px 0 0;
  padding-left: 18px;
}

.privacy-card .meta {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

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

@media (max-width: 1080px) {
  .hero__inner,
  .problem-layout,
  .waitlist__wrap {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: 0;
    padding: 44px 0 58px;
  }

  h1 {
    max-width: 13ch;
    font-size: 52px;
  }

  .product-grid {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .flow-grid,
  .use-case-grid,
  .output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 68px;
  }

  .shell {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .site-header__inner {
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__tag,
  .nav {
    display: none;
  }

  .site-header .btn {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero__inner {
    gap: 24px;
    padding: 26px 0 32px;
  }

  h1 {
    max-width: 12ch;
    font-size: 34px;
  }

  .hero__body {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.45;
  }

  .hero__actions {
    display: grid;
    margin-top: 20px;
  }

  .btn {
    width: 100%;
    min-height: 42px;
  }

  .product-grid,
  .demo-panel,
  .flow-grid,
  .use-case-grid,
  .output-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    min-height: 0;
  }

  .hero__proof {
    display: none;
  }

  .product-bar {
    min-height: 42px;
  }

  .product-sidebar,
  .demo-tabs,
  .capture-stack,
  .demo-panel:not(.is-active),
  .knowledge-map .map-row:nth-child(2),
  .case-header p {
    display: none;
  }

  .product-bar__meta {
    display: none;
  }

  .case-header {
    display: grid;
    padding-bottom: 10px;
  }

  .case-header h2 {
    font-size: 18px;
  }

  .readiness {
    display: none;
  }

  .product-main {
    padding: 12px;
    gap: 12px;
  }

  .demo-panel.is-active {
    display: block;
  }

  .knowledge-map {
    padding: 10px;
  }

  .product-shell .map-row {
    grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
  }

  .product-shell .map-link {
    width: auto;
    height: 1px;
    margin: 0;
  }

  .map-node {
    padding: 9px;
  }

  .map-node span {
    display: none;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading h2,
  .waitlist-copy h2,
  .privacy-hero h1 {
    font-size: 32px;
  }

  .section-heading p,
  .waitlist-copy p,
  .privacy-hero p {
    font-size: 16px;
  }
}

@media (max-width: 460px) {
  .brand__name {
    font-size: 16px;
  }

  .product-sidebar {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 33px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
