:root {
  /* Digital Keel design tokens (design-keel-landing.md §5) */
  --color-deep: #0B3A5E;        /* deep-keel navy — primary, headings, hero bg, dark sections */
  --color-hull: #F4F1EA;        /* warm off-white — page background */
  --color-ink: #1A2430;         /* near-black blue — body text */
  --color-steel: #5C6B78;       /* harbor steel — secondary text, meta, captions */
  --color-signal: #E85D2A;      /* signal orange — CTA, single accent */
  --color-signal-strong: #C94415; /* deeper signal orange — button bg (AA contrast w/ white text) */
  --color-waterline: #E2E8EE;   /* pale waterline — borders, dividers */
  --color-proof: #F0F5F1;       /* proof-pale — evidence/quote callout bg */

  --font-display: "Segoe UI", "Helvetica Neue", Arial, "Nimbus Sans", sans-serif;
  --font-body: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  /* Modular type scale: 2.25 / 1.5 / 1.25 / 1.0 / 0.875 / 0.75 rem */
  --text-xxl: 2.25rem;
  --text-xl: 1.5rem;
  --text-lg: 1.25rem;
  --text-md: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Spacing: base 8px; section rhythm 64px desktop / 40px mobile */
  --space-base: 8px;
  --section-y: 64px;
  --section-y-mobile: 40px;

  --radius-card: 8px;
  --radius-cta: 999px;

  --measure: 640px;
  --container: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-hull);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.prose { max-width: var(--measure); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--color-deep);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: var(--text-xxl); }
h2 { font-size: var(--text-xl); }
h3 { font-size: var(--text-lg); }

p { margin: 0 0 1em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--color-hull);
  border-bottom: 1px solid var(--color-waterline);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.01em;
}

.wordmark-mark {
  width: 26px;
  height: 26px;
  border: 2px solid var(--color-deep);
  border-radius: 6px;
  position: relative;
}

.wordmark-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 14%;
  width: 2px;
  height: 72%;
  background: var(--color-deep);
  transform: translateX(-50%);
}

.wordmark-mark::after {
  content: "";
  position: absolute;
  left: 24%;
  top: 50%;
  width: 52%;
  height: 2px;
  background: var(--color-deep);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: var(--radius-cta);
  padding: 12px 26px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn-signal {
  background: var(--color-signal-strong);
  color: #fff;
}

.btn-lg { padding: 14px 34px; font-size: var(--text-lg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--color-hull);
  padding: var(--section-y-mobile) 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-media video {
  width: 100%;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-waterline);
  background: var(--color-deep);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-video-wrap {
  position: relative;
}

.hero-video-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(11, 58, 94, 0.85);
  color: var(--color-hull);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(244, 241, 234, 0.35);
  text-transform: uppercase;
}

.hero-media-caption {
  color: var(--color-steel);
  font-size: var(--text-sm);
  margin: 10px 0 0;
  line-height: 1.5;
}

.hero-copy h1 {
  font-size: 2.6rem;
  margin-bottom: 0.4em;
}

.hero-subhead { font-size: var(--text-lg); margin-bottom: 0.4em; }
.hero-lede { color: var(--color-ink); margin-bottom: 1.25em; }

.hero-cta { margin-bottom: 0.75em; }

.hero-trust {
  color: var(--color-steel);
  font-size: var(--text-sm);
  margin: 0;
}

/* ---------- Sections ---------- */
section { padding: var(--section-y-mobile) 0; }

.problem {
  background: var(--color-deep);
  color: var(--color-hull);
}

.problem h2 { color: var(--color-hull); }
.problem p { color: #DDE5EC; }

/* ---------- Workflows ---------- */
.workflow-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 32px 0;
}

.card {
  background: #fff;
  border: 1px solid var(--color-waterline);
  border-radius: var(--radius-card);
  padding: 24px;
}

.card h3 { margin-bottom: 0.75em; }

.card-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-steel);
  margin: 0.75em 0 0.25em;
}

.card-label:first-of-type { margin-top: 0; }

.card-proof {
  background: var(--color-proof);
  border-color: #D4E4D8;
}

.honesty-note { color: var(--color-steel); }

/* ---------- How it works ---------- */
.how-it-works { background: var(--color-hull); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.steps .card { counter-increment: step; }

.steps .card h3::before {
  content: counter(step) ". ";
  color: var(--color-signal);
}

/* ---------- Trust ---------- */
.trust { background: #fff; }

.trust-list {
  list-style: none;
  margin: 28px 0 16px;
  padding: 0;
  max-width: var(--measure);
  display: grid;
  gap: 16px;
}

.trust-list li {
  padding: 16px 20px;
  border-left: 3px solid var(--color-deep);
  background: var(--color-hull);
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
}

/* ---------- Honesty appendix ---------- */
.appendix {
  background: var(--color-proof);
}

.appendix h2 { color: var(--color-deep); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-deep);
  color: var(--color-hull);
  padding: 48px 0 40px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-hull);
  margin-bottom: 0.25em;
}

.footer-tagline { color: #C9D6E1; margin-bottom: 0.25em; }

.footer-scope, .footer-legal {
  color: #9FB2C1;
  font-size: var(--text-sm);
}

.footer-legal { margin: 0; }

/* ---------- Media queries ---------- */
@media (min-width: 820px) {
  section { padding: var(--section-y) 0; }
  .hero { padding: var(--section-y) 0; }

  .hero-grid {
    grid-template-columns: 7fr 5fr;
    gap: 48px;
  }

  .hero-copy h1 { font-size: 2.85rem; }

  .workflow-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
