/* vector-space.ai — styles.css
   Source of truth: SPEC.md §5–§8 and design/Tokens.dc.html (Stage 1.2a, frozen 11 Oct 2026).
   No build step. No JavaScript. Teal palette only. */

/* ---------- 1. Tokens ---------- */

:root {
  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --container: 1296px;
  --gutter: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* Paper: light sections */
.paper {
  --bg: #FAFAF8;
  --bg2: #F1F2EF;
  --card: #FFFFFF;
  --ink: #0C1116;
  --muted: #4F5860;
  --rule: #E1E3DF;
  --accent: #0B6E62;
  --btn: #0B6E62;
  --btn-h: #095A50;
  --btn-ink: #FFFFFF;
}

/* Night: header, hero, offers band, CTA card, one tile */
.night {
  --bg: #0B1114;
  --bg2: #0F1518;
  --card: #131C20;
  --ink: #EEF2F1;
  --muted: #9AA6A9;
  --rule: #223035;
  --accent: #5FE0C8;
  --btn: #5FE0C8;
  --btn-h: #8BEBD9;
  --btn-ink: #061A17;
}

/* Dark mode: paper turns into night-family greys; night stays as it is */
@media (prefers-color-scheme: dark) {
  .paper {
    --bg: #0F1518;
    --bg2: #131B1F;
    --card: #161E22;
    --ink: #EEF2F1;
    --muted: #9AA6A9;
    --rule: #223035;
    --accent: #5FE0C8;
    --btn: #5FE0C8;
    --btn-h: #8BEBD9;
    --btn-ink: #061A17;
  }
}

/* ---------- 2. Base ---------- */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 30px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { list-style: none; padding: 0; }

.paper, .night { background: var(--bg); color: var(--ink); }
.alt { background: var(--bg2); }

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.muted { color: var(--muted); }
.accent { color: var(--accent); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: #0B6E62;
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Type ---------- */

.display {
  max-width: 1080px;
  font-size: 80px;
  line-height: 84px;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.h2 {
  font-size: 52px;
  line-height: 58px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.h2-narrow { max-width: 820px; }

.lead { font-size: 21px; line-height: 33px; color: var(--muted); }
.body { font-size: 18px; line-height: 30px; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.num {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--accent);
}

/* ---------- 4. Links and buttons ---------- */

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color 150ms ease, transform 100ms ease;
}
.btn:hover { background: var(--btn-h); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

.nav-link {
  color: var(--muted);
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); }

/* ---------- 5. Header ---------- */

.site-header { position: relative; z-index: 2; border-bottom: 1px solid var(--rule); }

.header-bar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-mark { flex-shrink: 0; color: var(--ink); }
.logo-fill { fill: var(--accent); }

.nav { display: flex; align-items: center; gap: 36px; }

.menu { display: none; position: relative; }
.menu-button {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.menu-button::-webkit-details-marker { display: none; }
.menu-panel {
  position: absolute;
  right: 0;
  top: 56px;
  width: 280px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}
.menu-panel .nav-link { font-size: 17px; line-height: 24px; }
.menu-panel .btn { margin-top: 4px; }

/* ---------- 6. Shared surfaces ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.section { padding-block: 128px; }
.stack { display: flex; flex-direction: column; gap: 56px; }

/* ---------- 7. Block 1 — Hero ---------- */

.hero-body { padding-top: 120px; padding-bottom: 104px; }

.hero-row {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: end;
}
.hero-row .lead { grid-column: 1 / span 7; }
.hero-cta { grid-column: 9 / span 4; display: flex; justify-content: flex-end; }

/* Pipeline schematic (decorative, aria-hidden) */
.pipeline {
  margin-top: 80px;
  padding: 32px;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) 204px;
  column-gap: 32px;
  align-items: center;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 14px;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  color: var(--muted);
}

.ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--rule); }
.w40 { width: 40%; } .w45 { width: 45%; } .w50 { width: 50%; } .w55 { width: 55%; }
.w60 { width: 60%; } .w65 { width: 65%; } .w70 { width: 70%; } .w75 { width: 75%; }
.w80 { width: 80%; } .w85 { width: 85%; } .w90 { width: 90%; }

.inbox { display: flex; flex-direction: column; gap: 10px; }
.inbox .chip:nth-child(1) { transform: rotate(-1.5deg); }
.inbox .chip:nth-child(2) { transform: translateX(10px) rotate(1deg); }
.inbox .chip:nth-child(3) { transform: translateX(-4px) rotate(-0.5deg); }
.inbox .chip:nth-child(4) { transform: translateX(6px) rotate(2deg); }
.inbox .chip:nth-child(5) { transform: rotate(-1deg); }

.flow { display: flex; align-items: center; }
.link { flex: 1 1 0; min-width: 10px; height: 1px; background: var(--rule); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink);
  white-space: nowrap;
}
.pill b { color: var(--accent); font-weight: 500; }

.filed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.folder { height: 56px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.folder.is-current { border-color: var(--accent); color: var(--accent); }

/* The one animation: each step pill takes the accent border in turn. */
@keyframes step-highlight {
  0%, 30%, 100% { border-color: var(--rule); background: var(--bg2); }
  6%, 20% { border-color: var(--accent); background: var(--card); }
}
.pill.s1, .pill.s2, .pill.s3, .pill.s4, .pill.s5 { animation: step-highlight 7.5s ease-in-out infinite; }
.pill.s2 { animation-delay: 1.5s; }
.pill.s3 { animation-delay: 3s; }
.pill.s4 { animation-delay: 4.5s; }
.pill.s5 { animation-delay: 6s; }

/* ---------- 8. Block 2 — The problem ---------- */

.section-lg { padding-block: 144px; }

.split {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
}
.split-head { grid-column: 1 / span 5; display: flex; flex-direction: column; gap: 20px; }
.split-body { grid-column: 7 / span 6; display: flex; flex-direction: column; gap: 36px; padding-top: 40px; }

.callout {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 28px;
  line-height: 38px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ---------- 9. Block 3 — What we automate ---------- */

.section-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: end;
}
.section-head-main { grid-column: 1 / span 6; display: flex; flex-direction: column; gap: 20px; }
.section-head > .body { grid-column: 8 / span 5; }

.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.step { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.step.is-last { border-color: var(--accent); }
.step-title { font-size: 21px; line-height: 28px; font-weight: 600; }
.step-text { font-size: 15px; line-height: 24px; color: var(--muted); }

/* Five tiles plus the closing note fill a 3 × 2 grid */
.fits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-top: 16px; }
.fits-title { grid-column: 1 / -1; margin-bottom: 8px; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.01em; }
.tiles { display: contents; }
.tile { padding: 24px; display: flex; gap: 16px; align-items: flex-start; font-size: 16px; line-height: 26px; }
.tile-ico { width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.fit-note { border-radius: var(--radius-md); padding: 24px; display: flex; align-items: center; font-size: 16px; line-height: 26px; }

/* ---------- 10. Block 4 — How we work ---------- */

.timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  margin-bottom: -32px;
}
.tl { display: flex; align-items: center; gap: 12px; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--rule); flex-shrink: 0; }
.tl-dot.is-on { background: var(--accent); border-color: var(--accent); }
.tl-dot.is-next { border-color: var(--accent); }
.tl-line { flex: 1; height: 1px; background: var(--rule); }
.tl-line.is-on { background: var(--accent); }

.offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.offer { padding: 36px 32px; display: flex; flex-direction: column; gap: 20px; }
.offer.is-first { border-color: var(--accent); }
.offer-title { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; }
.offer-meta {
  display: block;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.offer-text { font-size: 16px; line-height: 27px; color: var(--muted); }

/* ---------- 11. Block 6 — Team ---------- */

.team { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
.team-label { grid-column: 1 / span 3; padding-top: 12px; }
.statement {
  grid-column: 4 / span 9;
  font-size: 40px;
  line-height: 52px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* ---------- 12. Block 7 — Call to action ---------- */

.cta-section { padding-bottom: 120px; }
.cta {
  border-radius: var(--radius-lg);
  padding: 88px 80px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 32px;
  align-items: end;
}
.cta-main { grid-column: 1 / span 8; display: flex; flex-direction: column; gap: 20px; }
.cta-title { font-size: 60px; line-height: 64px; }
.cta-text { max-width: 600px; font-size: 20px; line-height: 32px; color: var(--muted); }
.cta-action { grid-column: 9 / span 4; display: flex; justify-content: flex-end; }

/* ---------- 13. Footer ---------- */

.site-footer { border-top: 1px solid var(--rule); }
.footer-bar {
  padding-top: 36px;
  padding-bottom: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  line-height: 24px;
}

/* ---------- 14. Responsive ---------- */

/* Pipeline stacks below 1100 */
@media (max-width: 1099px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); row-gap: 18px; padding: 20px; margin-top: 56px; }
  .inbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .inbox .chip:nth-child(n+4) { display: none; }
  .inbox .chip:nth-child(2) { transform: rotate(1.5deg); }
  .inbox .chip:nth-child(3) { transform: rotate(-1deg); }
  .flow {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px dashed var(--rule);
    border-bottom: 1px dashed var(--rule);
  }
  .flow .link { display: none; }
  .filed { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .filed .chip:nth-child(n+4) { display: none; }
  .folder { height: 44px; flex-direction: row; align-items: center; }
  .folder .bar { flex: 1; }

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

/* 1100–1199: the five pills need ~570px but the middle column is narrower, so pill 05
   slid under the folders. Wrap the pills and drop the connectors, as the stacked layout does. */
@media (min-width: 1100px) and (max-width: 1199px) {
  .flow { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .flow .link { display: none; }
}

@media (max-width: 1000px) {
  .timeline { display: none; }
  .offers { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .cta { padding: 64px 48px; }
  .cta-main { grid-column: 1 / -1; }
  .cta-action { grid-column: 1 / -1; justify-content: flex-start; margin-top: 32px; }
}

/* Phone layout (design/Mobile.dc.html) */
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  body { font-size: 16px; line-height: 26px; }

  .nav { display: none; }
  .menu { display: block; }
  .header-bar { height: 64px; }
  .logo { font-size: 18px; }

  .display { font-size: 44px; line-height: 47px; }
  .h2 { font-size: 34px; line-height: 38px; }
  .lead { font-size: 17px; line-height: 27px; }
  .body { font-size: 16px; line-height: 26px; }
  .eyebrow { font-size: 12px; line-height: 18px; }

  .hero-body { padding-top: 56px; padding-bottom: 48px; }
  .hero-row { display: flex; flex-direction: column; align-items: stretch; gap: 28px; margin-top: 20px; }
  .hero-cta { justify-content: stretch; }
  .hero-cta .btn, .cta-action .btn { width: 100%; }
  .pipeline { margin-top: 48px; }
  .chip { height: 38px; padding: 0 12px; gap: 10px; }
  .folder { height: 38px; }
  .pill { height: 30px; padding: 0 10px; gap: 6px; font-size: 12px; }

  .section, .section-lg { padding-block: 72px; }
  .stack { gap: 20px; }

  .split, .section-head, .team { display: flex; flex-direction: column; gap: 20px; }
  .split-body { padding-top: 4px; gap: 28px; }
  .callout { padding-top: 24px; font-size: 22px; line-height: 30px; }

  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 12px; }
  .step { padding: 22px 20px; gap: 8px; }
  .step-title { font-size: 19px; line-height: 26px; }

  .fits { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 28px; }
  .fits-title { font-size: 21px; line-height: 28px; margin-bottom: 6px; }
  .tile { padding: 18px; gap: 14px; font-size: 15px; line-height: 24px; }
  .tile-ico { width: 20px; height: 20px; }
  .fit-note { padding: 20px; font-size: 15px; line-height: 24px; border-radius: 12px; }
  .card { border-radius: 12px; }

  .offers { margin-top: 12px; }
  .offer { padding: 26px 22px; gap: 14px; }
  .offer-title { font-size: 25px; line-height: 30px; }
  .offer-meta { margin-top: 8px; font-size: 13px; line-height: 18px; }
  .offer-text { font-size: 15px; line-height: 25px; }

  .team-label { padding-top: 0; }
  .statement { font-size: 25px; line-height: 34px; letter-spacing: -0.015em; }

  .cta-section { padding-bottom: 56px; }
  .cta-section .wrap { padding-inline: 16px; }
  .cta { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 44px 24px; border-radius: 16px; }
  .cta-title { font-size: 36px; line-height: 40px; }
  .cta-text { font-size: 16px; line-height: 26px; }
  .cta-action { margin-top: 12px; }

  .footer-bar { padding-top: 28px; padding-bottom: 36px; gap: 12px; font-size: 14px; line-height: 22px; flex-wrap: nowrap; align-items: flex-start; }
}

/* ---------- 15. Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill.s1, .pill.s2, .pill.s3, .pill.s4, .pill.s5 { animation: none; }
  .pill.s5 { border-color: var(--accent); }
  .btn { transition: none; }
}
