/* ============================================================
   VerbalFlow — design tokens
   ============================================================ */
:root {
  /* color */
  --bg: #d9d9d1;
  --cream: #f4f4ec;
  --card: #fdfcf9;
  --ink: #17140f;
  --mist: #4a463f;
  --mist-dim: #8a8578;
  --mist-dimmer: #6b665c;
  --line: rgba(23, 20, 16, 0.10);
  --line-strong: rgba(23, 20, 16, 0.18);
  --teal: #1fb6c9;
  --teal-deep: #0c7c8c;
  --teal-bright: #8fe0e8;
  --amber: #c9822a;

  /* type */
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-serif: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Plus Jakarta Sans", system-ui, sans-serif;

  /* scale */
  --container: 1360px;
  --radius-sm: 100px;
  --radius-md: 20px;
  --radius-lg: 24px;

  /* motion */
  --ease: cubic-bezier(.16,.8,.24,1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

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

::selection { background: var(--teal); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--mist-dim);
  opacity: 0.8;
}

.eyebrow.muted { color: var(--mist-dim); }
.eyebrow.muted::before { background: var(--mist-dim); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.02;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ============================================================
   Nav — floating pill
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  transition: top 0.3s ease;
}

.nav .wrap {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-pill {
  background: rgba(217, 217, 209, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 30px -18px rgba(23, 20, 16, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 20px 8px 8px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(155deg, #ffffff 0%, #eeeee6 100%);
  padding: 5px;
  box-shadow:
    0 2px 6px rgba(23,20,16,0.12),
    0 0 0 1px rgba(23,20,16,0.05) inset,
    0 6px 18px -8px rgba(31,182,201,0.4);
  transform: rotate(-3deg);
  flex-shrink: 0;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-word {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.brand-word .flow { color: var(--teal-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 14px 26px;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--mist);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(23,20,16,0.02);
}
.btn-ghost:hover { border-color: var(--teal-deep); background: rgba(31,182,201,0.08); transform: translateY(-1px); }

.btn-dashed {
  border: 1px dashed var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-dashed:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--teal-deep);
}

.btn-lg { padding: 15px 30px; font-size: 0.92rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: center;
}

.hero-headline {
  margin-top: 22px;
  font-weight: 800;
  font-size: clamp(2.6rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 15ch;
}

.hero-headline em {
  font-style: normal;
  color: var(--teal-deep);
}

.hero-sub {
  margin-top: 24px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--mist);
  line-height: 1.6;
  max-width: 42ch;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-canvas-wrap {
  position: relative;
  height: clamp(500px, 56vw, 720px);
  margin: -20px -40px -20px 0;
}

.hero-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   Section scaffolding
   ============================================================ */
section { position: relative; }

.section-pad { padding: clamp(80px, 11vw, 140px) 0; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   Manifesto (pull-quote) section
   ============================================================ */
.manifesto {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manifesto-inner {
  max-width: 900px;
  margin: 0 auto;
}

.manifesto-inner .eyebrow { margin-bottom: 28px; }

.manifesto-quote {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.55;
  color: #3a362f;
}

.manifesto-quote .accent {
  color: var(--teal-deep);
  font-weight: 700;
}

.manifesto-quote + .manifesto-quote { margin-top: 28px; }

.manifesto-note {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mist-dimmer);
  max-width: 60ch;
}

/* ============================================================
   Process (how it works)
   ============================================================ */
.process-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.process-head h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  max-width: 14ch;
  letter-spacing: -0.01em;
}

.process-head p {
  color: var(--mist);
  max-width: 34ch;
  font-size: 0.95rem;
  line-height: 1.6;
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.process-item {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 70px 1fr 1.4fr;
  gap: 32px;
  align-items: center;
  transition: transform 0.3s ease;
  box-shadow: 0 20px 40px -30px rgba(23,20,16,0.5);
}
.process-item:hover { transform: translateY(-3px); }

.process-num {
  font-size: 0.85rem;
  color: var(--teal-bright);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.process-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.process-item p {
  color: #c9c6bd;
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   Signature — invoice flow diagram
   ============================================================ */
.flowline { background: var(--cream); }

.flowline-head { text-align: center; margin-bottom: 56px; }

.flowline-head h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  margin-top: 18px;
  letter-spacing: -0.01em;
}

.flowline-caption {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--mist-dim);
}

.flow-card {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(23,20,16,0.35);
}

.flow-card-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(23,20,16,0.08);
}

.flow-card-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(23,20,16,0.15);
  display: inline-block;
}

.flow-diagram { padding: 56px 40px; }

.flow-track {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.flow-track::before {
  content: "";
  position: absolute;
  left: 30px; right: 30px; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(23,20,16,0.18) 0 8px, transparent 8px 16px);
  transform: translateY(-50%);
}

.flow-track .dot-runner {
  position: absolute;
  top: 50%;
  left: 30px;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px 3px rgba(31,182,201,0.5);
  animation: runFlow 4.5s linear infinite;
}

@keyframes runFlow {
  0% { left: 30px; opacity: 0; }
  6% { opacity: 1; }
  92% { opacity: 1; }
  100% { left: calc(100% - 40px); opacity: 0; }
}

.flow-node {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 140px;
  text-align: center;
}

.flow-node-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  font-size: 1.35rem;
}

.flow-node.is-core .flow-node-icon {
  background: linear-gradient(155deg, var(--teal), #0e7f8e);
  border: none;
  animation: pulseCore 2.6s ease-in-out infinite;
}

@keyframes pulseCore {
  0%, 100% { box-shadow: 0 0 0 1px rgba(31,182,201,0.35), 0 16px 34px -10px rgba(31,182,201,0.5); }
  50% { box-shadow: 0 0 0 6px rgba(31,182,201,0.14), 0 16px 40px -8px rgba(31,182,201,0.65); }
}

.flow-node span.label { font-size: 0.84rem; font-weight: 700; }
.flow-node span.sub {
  font-size: 0.65rem;
  color: var(--mist-dim);
  letter-spacing: 0.04em;
}

.flow-extract-card {
  margin: 44px auto 0;
  max-width: 460px;
  padding: 18px 26px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
}

.flow-extract-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 12px;
}

.flow-extract-fields {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
}

.flow-extract-fields span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-deep);
}
.flow-extract-fields span::before { content: "\2713 "; }

.flow-metric-wrap { margin-top: 24px; text-align: center; }

.flow-metric {
  display: inline-flex;
  padding: 7px 18px;
  border-radius: var(--radius-sm);
  background: rgba(31,182,201,0.1);
  border: 1px solid rgba(31,182,201,0.3);
  color: var(--teal-deep);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ============================================================
   Features — split layout with network canvas
   ============================================================ */
.features { background: var(--bg); }

.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.features-head { margin-bottom: 44px; }
.features-head .eyebrow { margin-bottom: 14px; }

.features-head h2 {
  font-weight: 800;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
  max-width: 14ch;
}

.features-list { display: flex; flex-direction: column; }

.feature-row {
  padding: 24px 0;
  border-top: 1px solid var(--line-strong);
}
.feature-row:last-child { border-bottom: 1px solid var(--line-strong); }

.feature-row-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.feature-row-head span {
  font-size: 0.75rem;
  color: var(--mist-dim);
  font-weight: 700;
}

.feature-row-head h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-row p {
  margin: 10px 0 0 28px;
  color: var(--mist);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 44ch;
}

.features-canvas-wrap {
  position: relative;
  height: clamp(440px, 40vw, 600px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--ink);
}

.features-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ============================================================
   Founder
   ============================================================ */
.founder {
  background: var(--cream);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.founder-card {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 760px;
  margin: 0 auto;
}

.founder-monogram {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cream);
  background: var(--ink);
}

.founder-body h3 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 12px;
  letter-spacing: -0.01em;
}

.founder-credentials {
  font-size: 0.78rem;
  color: var(--teal-deep);
  letter-spacing: 0.02em;
  margin-top: 6px;
  font-weight: 700;
}

.founder-bio {
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 48ch;
}

.founder-link {
  display: inline-flex;
  margin-top: 16px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.founder-link:hover { color: var(--teal-deep); border-color: var(--teal-deep); }

/* ============================================================
   Also (secondary service mention)
   ============================================================ */
.also { background: var(--bg); }

.also-card {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.also-card h3 {
  font-weight: 700;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  margin-top: 14px;
  letter-spacing: -0.01em;
}

.also-card p {
  margin-top: 12px;
  color: var(--mist);
  font-size: 0.92rem;
  line-height: 1.6;
}

.also-card .founder-link { margin-top: 22px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}

.cta .eyebrow { color: var(--teal-bright); justify-content: center; }
.cta .eyebrow::before { background: var(--teal-bright); opacity: 0.8; }

.cta h2 {
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.1rem);
  max-width: 20ch;
  margin: 20px auto 20px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}

.cta h2 .accent { color: var(--teal); }

.cta p {
  color: #c9c6bd;
  max-width: 42ch;
  margin: 0 auto 40px;
  font-size: 1rem;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta .btn-primary {
  background: var(--cream);
  color: var(--ink);
}
.cta .btn-primary:hover { transform: translateY(-1px); background: #ffffff; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  padding: 56px 0 36px;
  background: var(--ink);
  color: #c9c6bd;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244,244,236,0.12);
}

.footer-brand .brand { margin-bottom: 16px; }
.footer-brand .brand-word { color: var(--cream); }

.footer-brand p {
  color: var(--mist-dim);
  font-size: 0.82rem;
  max-width: 30ch;
  line-height: 1.6;
}

.footer-compliance {
  margin-top: 12px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--mist-dimmer);
  max-width: none;
}

.footer-col h4 {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist-dim);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.86rem; color: #c9c6bd; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--teal); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.7rem;
  color: var(--mist-dimmer);
  letter-spacing: 0.02em;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-canvas-wrap { order: -1; height: clamp(300px, 60vw, 440px); margin: 0 0 20px; }
  .process-item { grid-template-columns: 50px 1fr; }
  .process-item p { grid-column: 2 / 3; }
  .features-inner { grid-template-columns: 1fr; }
  .features-canvas-wrap { order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .flow-track { flex-wrap: wrap; gap: 32px 12px; justify-content: center; }
  .flow-track::before, .dot-runner { display: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 1fr; gap: 10px; }
  .process-item p { grid-column: auto; }
  .founder-card { flex-direction: column; text-align: center; }
  .founder-bio { max-width: none; }
}
