/* VitalForg public site */
:root {
  --bg: #f6f5f1;
  --bg-alt: #edebe4;
  --surface: #ffffff;
  --ink: #141414;
  --ink-2: #3d3d3a;
  --muted: #5f5e58;
  --line: #dedbd3;
  --accent: #c4320e;
  --dark: #141414;
  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-head: 'Barlow', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--ink); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 0.98; letter-spacing: -0.01em; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(246,245,241,0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.nav { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; text-decoration: none; text-transform: lowercase; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover, .nav-links a[aria-current=page] { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { margin-left: auto; display: flex; gap: 0.75rem; }
.menu-btn { display: none; margin-left: auto; font: inherit; font-weight: 600; background: none; border: 1px solid var(--ink); border-radius: 6px; padding: 0.4rem 0.8rem; cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; font: inherit; font-weight: 600; font-size: 0.95rem; padding: 0.7rem 1.25rem; border-radius: 6px; text-decoration: none; border: 1px solid var(--ink); cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: #a92a0b; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.link { font-weight: 600; color: var(--accent); text-underline-offset: 4px; }

/* Sections */
section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: #eeece6; }
.section-dark .eyebrow, .section-dark .muted { color: #b3b0a7; }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }

/* Hero */
.hero { padding: 4.5rem 0 3rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.1rem); }
.hero .lead { max-width: 36rem; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 1.75rem 0 1rem; }
.hero-note { font-size: 0.88rem; color: var(--muted); }
.shot { border-radius: 10px; border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(20,20,20,0.12); background: var(--surface); overflow: hidden; }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* Workflow */
.flow { display: grid; gap: 4rem; }
.flow-step { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 3rem; align-items: center; }
.flow-step:nth-child(even) .flow-text { order: 2; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; color: var(--accent); letter-spacing: 0.05em; }
.flow-text ul { padding-left: 1.1rem; color: var(--ink-2); }
.flow-text li { margin-bottom: 0.35rem; }

/* Cards / grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.section-dark .card { background: #1f1f1e; border-color: #343432; }
.card h3 { margin-bottom: 0.5rem; }
.card p:last-child { margin-bottom: 0; }
.kind { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 99px; border: 1px solid currentColor; margin-bottom: 0.75rem; opacity: 0.85; }
.formula { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.82rem; background: var(--bg); padding: 0.5rem 0.65rem; border-radius: 6px; margin: 0.5rem 0 0.75rem; }
.section-dark .formula { background: #2a2a28; color: #eeece6; }
.status-list { list-style: none; padding: 0; margin: 0; }
.status-list li { padding: 0.65rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.75rem; }
.status-list li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }
.dot-live { background: #1d6b3a; }
.dot-dev { background: #c99a1a; }

/* Pricing (terms unchanged from the original site) */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.75rem; display: flex; flex-direction: column; }
.plan-featured { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan-name { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; }
.plan-price { font-family: var(--font-display); font-weight: 800; font-size: 2rem; margin: 0.5rem 0; }
.plan-price span { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--ink-2); margin-left: 0.15rem; }
.plan ul { padding-left: 1.1rem; color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.plan .btn { margin-top: 1rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* Sub pages */
.page-hero { padding: 4rem 0 2.5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.prose { padding: 3.5rem 0 5rem; }
.prose h2 { font-family: var(--font-head); font-size: 1.35rem; font-weight: 700; margin-top: 2.5rem; line-height: 1.25; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 6px; padding: 1.1rem 1.25rem; margin: 0 0 2rem; }
.callout p:last-child { margin: 0; }
.updated { color: var(--muted); font-size: 0.9rem; }
details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
details summary { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details summary::after { content: '+'; font-weight: 400; }
details[open] summary::after { content: '−'; }
details summary::-webkit-details-marker { display: none; }
details > div { padding-top: 0.75rem; color: var(--ink-2); }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.team img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; filter: grayscale(100%); margin-bottom: 1rem; width: 100%; }
.team .role { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

/* Forms */
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.92rem; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 0.85rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 0.7rem 0.8rem; border: 1px solid #bdb9ae; border-radius: 6px; background: var(--surface); color: var(--ink); width: 100%; }
.form textarea { min-height: 140px; resize: vertical; }
.form-msg { padding: 0.75rem 1rem; border-radius: 6px; font-size: 0.92rem; }
.form-msg.ok { background: #e8f3ec; color: #1d6b3a; }
.form-msg.err { background: #fbeceb; color: #a3200a; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; }

/* Footer */
.site-footer { background: var(--dark); color: #cfccc3; padding: 3.5rem 0 2rem; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer h4 { font-family: var(--font-head); color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid #333; margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #9a978e; font-size: 0.85rem; }

/* Responsive */
@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-block; }
  .nav.is-open { flex-wrap: wrap; height: auto; padding-top: 1rem; padding-bottom: 1rem; }
  .nav.is-open > nav { order: 3; width: 100%; }
  .nav.is-open .nav-links { display: flex; flex-direction: column; width: 100%; gap: 0.25rem; border-top: 1px solid var(--line); padding-top: 0.5rem; }
  .nav.is-open .nav-links a { display: block; padding: 0.5rem 0; }
  .nav.is-open .nav-cta { display: flex; width: 100%; order: 4; margin: 0.5rem 0 0; }
  .hero-grid, .flow-step, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .flow-step:nth-child(even) .flow-text { order: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .plans, .team { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  section { padding: 3.5rem 0; }
  .wrap { padding: 0 1rem; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero .actions .btn, .cta-band .btn { width: 100%; }
}

/* Sign-in link and contact form extras */
.nav-signin { align-self: center; font-weight: 600; font-size: 0.92rem; color: var(--ink); text-decoration: none; padding: 0 0.25rem; }
.nav-signin:hover { text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form [aria-invalid="true"] { border-color: #a3200a; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 1100px) { .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grid-5 { grid-template-columns: minmax(0, 1fr); } }

/* Code samples scroll inside their own box instead of widening the page */
.prose pre { overflow-x: auto; max-width: 100%; background: var(--bg-alt); border: 1px solid var(--line); padding: 12px 14px; border-radius: 8px; font-size: 0.85rem; line-height: 1.5; }
.prose pre code { white-space: pre; }

/* Methods page */
.method { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem 1.5rem 1rem; margin: 1.5rem 0; }
.method .eyebrow { margin: 0 0 0.25rem; }
.method h2 { margin: 0 0 1rem; }
.method .defs { display: grid; grid-template-columns: 11rem 1fr; gap: 0.5rem 1.25rem; margin: 0 0 1rem; }
.method .defs dt { font-weight: 600; color: var(--ink); }
.method .defs dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) { .method .defs { grid-template-columns: 1fr; gap: 0.15rem; } .method .defs dd { margin-bottom: 0.6rem; } }
