/* CLERK.AI — Augmented Mind AB studio aesthetic, ink-on-ledger palette */

:root {
  --paper: #f6f4ef;
  --paper-alt: #ebe6db;
  --ink: #1a1d22;
  --ink-muted: #5e6470;
  --rule: #d9d3c4;
  --accent: #20655a;
  --accent-hover: #134640;

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --max: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121417;
    --paper-alt: #1a1d22;
    --ink: #eef0ec;
    --ink-muted: #a0a8a4;
    --rule: #2e333a;
    --accent: #6cc6b3;
    --accent-hover: #8ad8c7;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
a:hover { color: var(--accent-hover); }

/* ---- Hero ---- */

.hero {
  padding: 96px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
}
.tm {
  font-size: .65em;
  vertical-align: super;
  margin-left: 1px;
  letter-spacing: 0;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}

.lede {
  font-size: clamp(18px, 2.2vw, 21px);
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
  max-width: 620px;
}
.lede--secondary {
  color: var(--ink-muted);
  margin-bottom: 36px;
}

.hero-cta { margin: 0 0 32px; }

.cta-row {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary {
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--paper);
}
.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--rule);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
}

.anchors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .04em;
}
.anchors a {
  color: var(--ink-muted);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.anchors a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- Sections ---- */

.section {
  padding: 72px 0;
  border-bottom: 1px solid var(--rule);
}
.section--alt { background: var(--paper-alt); }

.section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

.section p { margin: 0 0 18px; }
.section p:last-child { margin-bottom: 0; }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bullets > li {
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--rule);
  position: relative;
  font-size: 16.5px;
  line-height: 1.55;
}
.bullets > li:last-child { border-bottom: 1px solid var(--rule); }
.bullets > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.bullets > li strong { color: var(--ink); }

.section h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 12px;
  letter-spacing: -0.005em;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 18px;
}

.muted {
  color: var(--ink-muted);
  font-size: 15px;
}

/* ---- Phases (numbered workflow steps) ---- */

.phases {
  list-style: none;
  counter-reset: phase;
  padding: 0;
  margin: 0;
}
.phases > li {
  position: relative;
  padding: 28px 0 28px 64px;
  border-top: 1px solid var(--rule);
}
.phases > li:last-child {
  border-bottom: 1px solid var(--rule);
}
.phase-num {
  position: absolute;
  left: 0;
  top: 30px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--accent);
  font-weight: 600;
}
.phases h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}
.phases p {
  margin: 0 0 14px;
  font-size: 16.5px;
  line-height: 1.6;
}
.phases p:last-child { margin-bottom: 0; }

.works-with {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .03em;
  color: var(--ink-muted);
  line-height: 1.7;
}
.works-with-label {
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-right: 8px;
}

@media (max-width: 520px) {
  .phases > li {
    padding-left: 48px;
  }
  .phase-num {
    top: 30px;
    font-size: 12.5px;
  }
}

/* ---- Footer ---- */

.footer {
  padding: 36px 0 56px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
}
.footer p { margin: 0 0 10px; }
.footer p:last-child { margin: 0; }
.footer .legal {
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: .03em;
}

/* ---- Responsive ---- */

@media (max-width: 520px) {
  .hero { padding: 64px 0 40px; }
  .section { padding: 52px 0; }
}
