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

:root {
  --bg:            #ffffff;
  --bg-soft:       #f6f4ef;
  --rule:          rgba(20, 18, 14, 0.08);
  --text:          rgba(20, 18, 14, 0.92);
  --text-soft:     rgba(40, 36, 28, 0.72);
  --text-mid:      rgba(40, 36, 28, 0.55);
  --text-faint:    rgba(40, 36, 28, 0.45);
  --accent:        #1e4dd8;
  --accent-soft:   rgba(30, 77, 216, 0.10);
  --glass-bg:      rgba(255, 255, 255, 0.55);
  --glass-border:  rgba(0, 0, 0, 0.08);
  --shadow:        0 10px 30px rgba(60, 40, 20, 0.10);
}

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Nav ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 30;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: rgba(255, 255, 255, 0.78);
}
.nav .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.brand {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--text-soft);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-cta {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  background: rgba(20, 18, 14, 0.92);
  color: var(--bg);
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--text); }

/* ── Page padding under fixed nav ────────────────────────────────── */
main { padding-top: 60px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  display: flex; flex-direction: column;
  align-items: center;
  padding: 44px 28px 48px;
  gap: 20px;
}
.hero-canvas {
  position: relative;
  width: 100%;
  max-width: 1080px;
  height: 42vh;
  min-height: 320px;
  max-height: 460px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}
.hero-canvas iframe {
  width: 100%; height: 100%;
  border: none; display: block;
}
.hero-text {
  width: 100%;
  max-width: 760px;
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center;
}
.hero h1 {
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}
.hero .lede {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 20px;
  max-width: 560px;
}
.hero .cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
  justify-content: center;
}
.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--glass-border);
}
.btn-secondary:hover { background: var(--glass-bg); }

/* ── Section ─────────────────────────────────────────────────────── */
.section {
  padding: 100px 0;
}
.section-eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  margin-bottom: 18px;
  max-width: 760px;
}
.section .lede {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 40px;
}

/* ── Cards / grids ───────────────────────────────────────────────── */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
}
.card .icon {
  display: inline-flex;
  color: var(--accent);
  margin-bottom: 14px;
}
.card .icon svg {
  display: block;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 {
  font-size: 19px;
  margin-bottom: 8px;
  font-weight: 500;
}
.card p {
  font-size: 14.5px;
  color: var(--text-soft);
}

/* ── Steps (how it works) ────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  counter-reset: step;
}
.step {
  counter-increment: step;
  position: relative;
  padding-top: 56px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0; left: 0;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-weight: 500;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.step h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--text-soft);
}

/* ── Annotated comment feed (What we look for) ────────────────────
   Reuses the .comment-card markup from the problem section so the
   visual treatment stays consistent. Feed is left-aligned; tags sit in
   a column to the right of each card with thin SVG connector lines
   from the marked phrase to the tag. */
.annotated-feed {
  width: 100%;
  max-width: 720px;
  margin: 56px auto 0;
  height: 540px;
  overflow: hidden;
  text-align: left;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 12%, black 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 12%, black 88%, transparent 100%);
}
.annotated-track {
  display: flex;
  flex-direction: column;
  gap: 28px;
  animation: anno-scroll 80s linear infinite;
}
@keyframes anno-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.annotated-comment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 420px) 240px;
  gap: 36px;
  align-items: start;
}
.ann-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.annotated-comment .comment-card { position: relative; z-index: 2; }
.annotated-comment .comment-card .text mark {
  background: rgba(30, 77, 216, 0.14);
  color: var(--text);
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 500;
}
.ann-tag {
  position: absolute;
  left: calc(100% - 240px);
  padding-left: 12px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: -0.005em;
  line-height: 1.35;
  max-width: 220px;
  transform: translateY(-50%);
  z-index: 2;
  text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  .annotated-track { animation: none; }
}
@media (max-width: 900px) {
  .annotated-feed { max-width: 100%; height: auto; }
  .annotated-track { animation: none; gap: 24px; }
  .annotated-comment {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .ann-svg { display: none; }
  .ann-tag {
    position: static;
    transform: none;
    max-width: none;
    left: auto;
    padding: 4px 0 0 14px;
    border-left: 1px solid var(--accent);
  }
}

/* ── Audience list (Who we work with) ────────────────────────────── */
.audience-list {
  margin-top: 40px;
}
.audience-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.audience-item:first-child {
  padding-top: 4px;
  border-top: none;
}
.audience-num {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 22px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.audience-text h3 {
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}
.audience-text p {
  font-size: 16px;
  color: var(--text-soft);
  max-width: 720px;
  line-height: 1.55;
}
@media (max-width: 900px) {
  .audience-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 28px 0;
  }
}

/* ── Pricing tiles ───────────────────────────────────────────────── */
.tier {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 36px 30px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
.tier.featured {
  border-color: rgba(30, 77, 216, 0.40);
  box-shadow: 0 14px 40px rgba(30, 77, 216, 0.18);
}
.tier .tier-name {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.tier .tier-price {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: 44px;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.tier .tier-price-suffix {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 400;
  letter-spacing: 0;
}
.tier .tier-tagline {
  color: var(--text-soft);
  font-size: 14.5px;
  margin-bottom: 26px;
  min-height: 42px;
}
.tier ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--rule);
}
.tier li {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14.5px;
  color: var(--text-soft);
  display: flex; align-items: flex-start; gap: 10px;
}
.tier li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
}
.tier .btn { margin-top: auto; }

/* ── Doc page typography ─────────────────────────────────────────── */
.doc-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 28px 120px;
}
.doc-body h1 {
  font-size: clamp(36px, 4vw, 56px);
  margin-bottom: 22px;
}
.doc-body h2 {
  font-size: 24px;
  margin: 56px 0 14px;
  font-weight: 500;
}
.doc-body h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  font-weight: 500;
}
.doc-body p {
  margin-bottom: 16px;
  color: var(--text-soft);
}
.doc-body ul, .doc-body ol {
  margin: 0 0 20px 22px;
  color: var(--text-soft);
}
.doc-body li { margin-bottom: 6px; }
.doc-body code {
  font-family: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  background: rgba(20, 18, 14, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text);
}
.doc-body pre {
  background: rgba(20, 18, 14, 0.92);
  color: #f6f2ea;
  padding: 18px 22px;
  border-radius: 12px;
  overflow-x: auto;
  margin: 14px 0 24px;
  font-size: 13px;
  line-height: 1.55;
}
.doc-body pre code {
  background: none;
  color: inherit;
  padding: 0;
}

/* ── Problem section: text + vertical feed in two columns ────────── */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem-text .lede { margin-bottom: 0; }

.comment-feed {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-left: auto;
  height: 400px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, black 8%, black 92%, transparent 100%);
}
.comment-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  animation: comment-scroll 50s linear infinite;
}
.comment-feed:hover .comment-track { animation-play-state: paused; }
@keyframes comment-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.comment-card {
  flex: 0 0 auto;
  background: transparent;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.comment-card .head {
  display: flex; align-items: center; gap: 8px;
}
.comment-card .logo {
  width: 18px; height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  background: white;
  object-fit: contain;
}
.comment-card .platform {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}
.comment-card .handle {
  font-size: 11px;
  color: var(--text-faint);
  margin-left: auto;
}
.comment-card .text {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.4;
}
@media (prefers-reduced-motion: reduce) {
  .comment-track { animation: none; }
}

/* ── Careers page ────────────────────────────────────────────────── */
.careers-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  padding: 100px 0 80px;
  align-items: start;
}
.careers-hero h1 {
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 500;
  letter-spacing: -0.03em;
  margin: 14px 0 22px;
}
.careers-hero .lede {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 480px;
}

.roles {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.roles-header {
  padding: 16px 22px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
  border-bottom: 1px solid var(--rule);
}
.role {
  padding: 22px 24px;
  border-bottom: 1px solid var(--rule);
}
.role:last-of-type { border-bottom: none; }
.role .role-cat {
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.01em;
  margin-bottom: 8px;
  display: inline-block;
}
.role .role-title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text);
}
.role .role-loc {
  font-size: 13.5px;
  color: var(--text-mid);
}
.roles-cta {
  display: block;
  padding: 16px;
  text-align: center;
  background: var(--accent);
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
}
.roles-cta:hover { background: #1840b8; }

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--rule);
  padding: 36px 0;
  color: var(--text-mid);
  font-size: 13px;
}
footer .inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
footer .links { display: flex; gap: 20px; }
footer a:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    padding: 32px 20px 60px;
    gap: 20px;
  }
  .hero-canvas {
    height: 44vh;
    min-height: 320px;
  }
  .grid-3, .grid-2, .steps {
    grid-template-columns: 1fr;
  }
  .section { padding: 70px 0; }
  .careers-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 70px 0 50px;
  }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .comment-feed { height: 420px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-cta { font-size: 13px; padding: 8px 14px; }
}
