/* Trellis landing page. Brand Direction A "Signal" (mm-brain venture/brand.md):
   Archivo 800, ink hero field, white page, vermilion only on the button,
   8px radius, rules and whitespace instead of cards, no shadows, no gradients,
   no mono or all-caps labels. Static: no build step. */

:root {
  --ink: #101012;
  --white: #FFFFFF;
  --vermilion: #FF4B1F;
  --mist: #F4F4F2;
  --line: #E4E4E0;
  --line-dark: #2C2C31;
  --muted: #5A5A62;
  --muted-dark: #C9C9CE;
  --font: "Archivo", system-ui, sans-serif;
  --radius: 8px;
  --page-gutter: clamp(16px, 5vw, 64px);
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--white); color: var(--ink); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 var(--page-gutter); }

/* ---------- Header: ink, stays on top while the page scrolls ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid var(--line-dark);
}
.site-header-inner {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: baseline; gap: 10px; color: inherit; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.035em; }
.brand-by { font-size: 0.85rem; font-weight: 500; color: var(--muted-dark); }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 28px; align-items: center; color: var(--muted-dark); font-size: 0.95rem; font-weight: 500; }
.site-header nav a { white-space: nowrap; }
.site-header nav a:hover { color: var(--white); }
.nav-cta { background: var(--vermilion); color: var(--ink); font-weight: 700; padding: 12px 22px; border-radius: var(--radius); }
.nav-cta:hover, .site-header nav a.nav-cta:hover { color: var(--ink); opacity: 0.9; }

/* ---------- Type ---------- */
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(44px, 6.4vw, 96px); max-width: 14ch; margin-bottom: 28px; }
h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.0; letter-spacing: -0.03em; max-width: 20ch; margin-bottom: 0; }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 10px; }
p { line-height: 1.55; }
.eyebrow { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-bottom: 20px; }
.section-intro { max-width: 62ch; margin: 20px 0 48px; color: var(--muted); font-size: 1.25rem; line-height: 1.45; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 18px 30px;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--vermilion);
  color: var(--ink);
  border: 1px solid var(--vermilion);
  transition: opacity 140ms ease;
}
.button:hover { opacity: 0.9; color: var(--ink); }
.button svg { display: block; }

/* ---------- Hero: ink field, one statement, one button ---------- */
.hero { background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 120px) 0 clamp(56px, 7vw, 96px); }
.hero h1 { color: var(--white); }
.hero-tagline { font-size: 0.95rem; font-weight: 600; color: var(--muted-dark); margin-bottom: 28px; display: inline-flex; align-items: center; gap: 10px; }
.hero-tagline::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--vermilion); }
.hero-copy { max-width: 60ch; margin-bottom: 40px; color: var(--muted-dark); font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.45; text-wrap: pretty; }
.hero-copy strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.hero-proof { display: flex; align-items: center; gap: 16px; min-width: 0; }
.hero-portraits { display: inline-flex; align-items: center; flex: 0 0 auto; }
.hero-portrait-link { display: block; position: relative; border-radius: 50%; transition: opacity 140ms ease; }
.hero-portrait-link:hover { opacity: 0.82; }
.hero-portrait-link + .hero-portrait-link { margin-left: -14px; }
.hero-portraits img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: center 18%; border: 2px solid var(--ink); display: block; }
.hero-proof-lines { display: grid; gap: 2px; min-width: 0; }
.hero-call-line { color: var(--white); font-size: 0.95rem; font-weight: 600; }
.hero-team-line { color: var(--muted-dark); font-size: 0.95rem; }

/* What it runs: one row under the hero statement, on the ink field */
.hero-runs { margin-top: clamp(48px, 6vw, 80px); padding-top: 28px; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 32px; }
.hero-runs li { display: grid; gap: 4px; }
.hero-runs strong { color: var(--white); font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.hero-runs span { color: var(--muted-dark); font-size: 0.95rem; }

/* Previously: white strip under the hero */
.previously { padding: 28px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.previously-label { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.logo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.logo-row li { display: flex; align-items: center; }
.logo-mark { height: 22px; width: auto; display: block; opacity: 0.75; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 8.5vw, 120px) 0; scroll-margin-top: 80px; }
.section + .section { border-top: 1px solid var(--line); }
.section.on-mist { background: var(--mist); border-top: 0; }

/* How it works: four steps on one rule */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; border-top: 1px solid var(--ink); }
.step { padding-top: 24px; display: grid; align-content: start; gap: 6px; }
.step-n { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }
.line-under { margin: 48px 0 0; color: var(--muted); font-size: 1rem; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.line-under span { display: inline-flex; align-items: center; gap: 10px; }
.line-under span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

/* ---------- The board (product mock) ---------- */
.board { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.board-tabs { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--ink); font-size: 0.95rem; font-weight: 500; color: var(--muted); background: var(--mist); }
.board-tab { padding: 14px 18px; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.board-tab.is-active { color: var(--ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.board-badge { font-size: 12px; font-weight: 700; background: var(--vermilion); color: var(--ink); padding: 2px 7px; border-radius: 999px; }
.board-example { margin-left: auto; padding: 14px 18px; font-size: 0.85rem; color: var(--muted); }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-kind { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.card-status { font-size: 0.9rem; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.card-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vermilion); display: inline-block; }
.is-paused .card-status::before { background: var(--line); }

.root-card { border-bottom: 1px solid var(--ink); padding: 28px 32px; display: grid; gap: 18px; }
.root-goal { margin: 0; font-size: clamp(1.2rem, 1.9vw, 1.6rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; max-width: 40ch; text-wrap: pretty; }
.root-stats { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0; }
.root-stats div { display: grid; gap: 4px; }
.root-stats dt { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.root-stats dd { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.dd-sub { font-size: 0.95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }

.board-branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.branch-card { padding: 26px 28px 28px; display: grid; align-content: start; gap: 12px; }
.branch-card + .branch-card { border-left: 1px solid var(--line); }
.branch-card.is-paused { background: var(--mist); }
.branch-title { font-size: 1.2rem; margin: 0; line-height: 1.2; }
.branch-x { color: var(--muted); font-weight: 400; padding: 0 2px; }
.branch-why { margin: 0; color: var(--muted); font-size: 0.98rem; text-wrap: pretty; }
.wallet { height: 6px; background: var(--line); margin-top: 6px; border-radius: 999px; overflow: hidden; }
.wallet-bar { display: block; height: 100%; width: var(--pct); background: var(--ink); }
.is-paused .wallet-bar { background: var(--muted); }
.wallet-line { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.funnel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.funnel li { display: grid; gap: 3px; font-size: 0.78rem; font-weight: 500; color: var(--muted); min-width: 0; }
.funnel li span { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.next-step { margin-top: 8px; display: inline-flex; justify-content: center; align-items: center; width: 100%; padding: 14px 16px; border-radius: var(--radius); background: var(--vermilion); color: var(--ink); font-weight: 700; font-size: 0.98rem; text-align: center; }
.next-step.is-secondary { background: var(--white); border: 1px solid var(--ink); }

/* ---------- Why Trellis: rules, not cards ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; border-top: 1px solid var(--ink); }
.why-grid li { padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.why-grid h3 { margin-bottom: 10px; }
.why-grid p { margin: 0; color: var(--muted); font-size: 1.05rem; text-wrap: pretty; }

/* ---------- Signals ---------- */
.signal-list { display: flex; flex-wrap: wrap; gap: 12px; }
.signal-list li { border: 1px solid var(--ink); border-radius: var(--radius); padding: 12px 18px; font-weight: 600; font-size: 1rem; background: var(--white); }

/* ---------- Pricing ---------- */
.pricing { max-width: 900px; margin-top: 8px; border-top: 1px solid var(--ink); }
.pricing-row { display: grid; grid-template-columns: minmax(180px, 0.3fr) minmax(0, 0.7fr); gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pricing-label { color: var(--ink); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; }
.pricing-value { margin: 0; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 900px; border-top: 1px solid var(--ink); margin-top: 8px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 22px 0; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-weight: 400; font-size: 1.5rem; color: var(--muted); flex: 0 0 auto; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin: 0 0 24px; color: var(--muted); font-size: 1.06rem; max-width: 70ch; text-wrap: pretty; }

/* ---------- Final CTA: the one vermilion band on the page ---------- */
.final-cta { background: var(--vermilion); color: var(--ink); padding: clamp(72px, 8.5vw, 120px) 0; }
.final-cta h2 { color: var(--ink); margin-bottom: 16px; }
.final-cta-body { color: var(--ink); margin-bottom: 32px; font-size: 1.25rem; max-width: 56ch; }
.final-cta-button { background: var(--ink); color: var(--white); border: 1px solid var(--ink); }
.final-cta-button:hover { color: var(--white); opacity: 0.9; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding: 40px 0 56px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.site-footer .brand-name { font-size: 1.2rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 10px; color: var(--muted-dark); font-size: 0.95rem; }
.footer-links a { color: var(--white); }
.footer-links a:hover { color: var(--muted-dark); }
.footer-sep { color: var(--muted-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board-branches { grid-template-columns: 1fr; }
  .branch-card + .branch-card { border-left: 0; border-top: 1px solid var(--line); }
  .funnel { max-width: 520px; }
}
@media (max-width: 900px) {
  .site-header nav a:not(.nav-cta) { display: none; }
  .brand-by { display: none; }
  h1 { max-width: 100%; }
  .hero-runs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .step-n { margin-bottom: 8px; }
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .board-example { display: none; }
}
@media (max-width: 620px) {
  .site-header-inner { min-height: 64px; gap: 14px; }
  .brand-name { font-size: 1.2rem; }
  .nav-cta { padding: 11px 16px; font-size: 0.9rem; }
  .hero { padding: 56px 0 48px; }
  h1 { font-size: clamp(40px, 11vw, 52px); }
  h2 { font-size: clamp(30px, 8vw, 40px); }
  .hero-copy { font-size: 1.1rem; margin-bottom: 32px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero-cta { width: 100%; justify-content: center; }
  .hero-runs { grid-template-columns: 1fr; gap: 18px; }
  .section-intro { font-size: 1.1rem; }
  .root-card { padding: 22px; }
  .root-stats { gap: 14px 28px; }
  .branch-card { padding: 22px; }
  .pricing-row { grid-template-columns: 1fr; gap: 6px; padding: 22px 0; }
  .final-cta-button { width: 100%; justify-content: center; }
}
