/* ────────────────────────────────────────────────────────────────
   Intentional Platforms — intentionalplatforms.com
   One page, zero dependencies.

   Design tokens are vendored from the DoorChannel design system
   ("financial-grade calm") so the family shares one visual language.
   Source of truth: DoorChannel/App/src/styles/door.css (.dcx block)
   and DoorChannel/App/.claude/rules/design.md — re-copy the :root
   block below whenever the source tokens change.
   ──────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* ground */
  --ground: #ffffff;
  --ground-inset: #f5f6f8;
  --border: #e8eaee;

  /* ink */
  --ink: #0f1e36;
  --ink-secondary: #5c6470;
  --ink-tertiary: #9aa1ab;
  --ink-inverse: #ffffff;

  /* functional accents — states and actors, never decoration */
  --blue: #2f6bf0;
  --teal: #21c0bb;
  --teal-deep: #0e8783;
  --green: #18a957;
  --amber: #e8930c;
  --purple: #7c5cfc;
  --blue-tint: #ebf1fe;
  --teal-tint: #e6f8f8;
  --green-tint: #e6f5ec;
  --amber-tint: #fcf2e2;
  --purple-tint: #f0edfe;

  /* brand mark colors (logos only — never UI states) */
  --brand-cyan: #00d0d7;
  --brand-blue: #0465eb;

  /* lifecycle — state honesty */
  --state-organizing: var(--ink-tertiary);
  --state-live: var(--green);

  /* type */
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --mono-label-size: 11px;
  --mono-label-tracking: 0.08em;

  /* radius / hairlines / elevation */
  --radius-card: 14px;
  --radius-pill: 999px;
  --hairline: 1px solid var(--border);
  --shadow-whisper: 0 1px 2px rgba(15, 30, 54, 0.04);
  --spine-width: 3px;

  /* motion — quick functional eases only */
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  --duration-fast: 120ms;
  --ease-art: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── base ─────────────────────────────────────────────────────── */

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--blue); color: #ffffff; }

h1, h2, h3 { margin: 0; font-weight: 600; color: var(--ink); }
p { margin: 0; }

a:focus-visible, .btn-cta:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.col {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--mono-label-size);
  font-weight: 600;
  letter-spacing: var(--mono-label-tracking);
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

/* ── header ───────────────────────────────────────────────────── */

.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 0;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { display: block; flex: none; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }

.head-link {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.head-link:hover { color: var(--ink); text-decoration: underline; }

/* ── hero ─────────────────────────────────────────────────────── */

.hero { padding: clamp(80px, 15vh, 140px) 0 0; }

.hero h1 {
  font-size: clamp(34px, 6vw, 50px);
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-top: 14px;
  text-wrap: balance;
}

.lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 560px;
  margin-top: 16px;
  text-wrap: pretty;
}

/* ── sections ─────────────────────────────────────────────────── */

.platforms { margin-top: 88px; }
.principles { margin-top: 88px; }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: var(--hairline);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.sec-count {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
  white-space: nowrap;
}

/* ── platform cards — spines read like an order book ──────────── */

.stack { display: flex; flex-direction: column; gap: 12px; }

.card {
  display: flex;
  background: var(--ground);
  border: var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-whisper);
  overflow: hidden;
}

.spine { width: var(--spine-width); flex: none; }
.spine.live { background: var(--state-live); }
.spine.organizing { background: var(--state-organizing); }

.card-body {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title-wrap { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dc-mark { display: block; flex: none; }

.card-title {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.badge {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--mono-label-size);
  font-weight: 600;
  letter-spacing: var(--mono-label-tracking);
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: 1px;
}
.badge.live { background: var(--green-tint); color: var(--green); }
.badge.organizing { background: var(--ground-inset); color: var(--ink-secondary); }

.card-copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
  max-width: 54ch;
}

.term {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
}
.term.live { color: var(--green); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* the one dark CTA on the page */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-inverse);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}
.btn-cta:hover { background: #1c2e4d; border-color: #1c2e4d; }

.ledger-note {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-tertiary);
  margin-top: 16px;
}

/* ── principles — hairline ledger rows ────────────────────────── */

.prow {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 8px;
  padding: 16px 0;
}
.prow + .prow { border-top: var(--hairline); }

.pnum {
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-tertiary);
  padding-top: 2px;
}

.ptitle { font-size: 15px; font-weight: 600; }

.pcopy {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-secondary);
  margin-top: 3px;
  max-width: 54ch;
}

/* ── footer ───────────────────────────────────────────────────── */

.site-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: var(--hairline);
  margin-top: 96px;
  padding: 20px 0 48px;
}

.foot-copy { font-size: 13px; color: var(--ink-tertiary); }

.foot-links { display: flex; gap: 20px; }
.foot-links a {
  font-size: 13px;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
.foot-links a:hover { color: var(--ink); text-decoration: underline; }

/* ── entrance — transform only, so a stalled animation can never
      hide content ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.55s var(--ease-art) both; }
  .d1 { animation-delay: 0.06s; }
  .d2 { animation-delay: 0.12s; }
  .d3 { animation-delay: 0.18s; }
  .d4 { animation-delay: 0.24s; }
  .d5 { animation-delay: 0.3s; }
  @keyframes rise {
    from { transform: translateY(12px); }
    to { transform: none; }
  }
}

/* ── small screens ────────────────────────────────────────────── */

@media (max-width: 520px) {
  .head-link { display: none; }
  .hero { padding-top: 64px; }
  .platforms, .principles { margin-top: 64px; }
  .card-body { padding: 16px 18px; }
}
