/*
  Bo Labs LLC — shared stylesheet.
  Design direction: a clean sans-serif system on a cool paper ground,
  a muted amber accent, and a dark ink band for the product section. See
  NOTES.md for the logo-asset rationale.
*/

/* ---------------------------------------------------------------------- */
/* Fonts                                                                   */
/* ---------------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---------------------------------------------------------------------- */
/* Tokens                                                                  */
/* ---------------------------------------------------------------------- */

:root {
  --ink: #12181f;
  --ink-soft: #3f4a56;
  --ink-faint: #6b7580;

  --paper: #f6f5f1;
  --paper-raised: #ffffff;
  --line: #e2ded4;
  --line-strong: #cfc9bb;

  --accent: #b5792a;
  --accent-deep: #7a4a17;
  --accent-tint: #f1e3cd;

  /* Unused now that the logo is a raster image (assets/bolabs-wordmark.png,
     favicon.png) with its own baked-in color, not a CSS-colored SVG glyph --
     kept in case a future SVG version of the mark needs it again. */
  --brand-red: #e8402d;

  --on-ink: #f2f0ea;
  --on-ink-soft: #b6bcc4;
  --on-ink-line: #2a323b;
  --accent-on-ink: #dba455;

  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --content-width: 1120px;
  --measure: 62ch;

  --radius-sm: 6px;
  --radius-md: 10px;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

button {
  font-family: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.on-ink :focus-visible {
  outline-color: var(--accent-on-ink);
}

/* ---------------------------------------------------------------------- */
/* Layout helpers                                                          */
/* ---------------------------------------------------------------------- */

.shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 32px;
}

.on-ink {
  background: var(--ink);
  color: var(--on-ink);
}

.eyebrow-line {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 22px;
}

.on-ink .eyebrow-line {
  background: var(--accent-on-ink);
}

/* ---------------------------------------------------------------------- */
/* Header / nav                                                            */
/* ---------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(246, 245, 241, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
}

/* The real "Bo Labs" wordmark (assets/bolabs-wordmark.png) -- two hand-
   drawn SVG attempts at recreating this as vector text+glyph both lost the
   flask's shape once shrunk to nav size (see NOTES.md), so this uses the
   actual artwork as a raster image instead, sized by height with the width
   following naturally from its aspect ratio. */
.brand-wordmark {
  display: block;
  height: 28px;
  width: auto;
}

.brand-wordmark--small {
  height: 20px;
}

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

.main-nav a {
  font-size: 15px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

.main-nav a:hover {
  color: var(--ink);
}

.main-nav a[aria-current='page'] {
  color: var(--ink);
}

.nav-cta {
  border: 1px solid var(--line-strong);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.nav-cta:hover {
  border-color: var(--accent);
  background: var(--accent-tint);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  width: 18px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ---------------------------------------------------------------------- */
/* Hero                                                                     */
/* ---------------------------------------------------------------------- */

.hero {
  padding: 88px 0 96px;
}

/* Centered single-column layout -- this used to sit beside a "ledger"
   illustration in a two-column grid; with that gone (see NOTES.md), a
   left-aligned block left a large dead gap on the right at desktop widths,
   so this is centered instead rather than trying to fill that space. */
.hero .shell {
  max-width: 640px;
  text-align: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 15ch;
  margin-left: auto;
  margin-right: auto;
}

.hero-copy p {
  margin-top: 24px;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-secondary {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
}

.on-ink .btn-secondary {
  border-color: var(--on-ink-line);
  color: var(--on-ink);
}

.on-ink .btn-secondary:hover {
  border-color: var(--accent-on-ink);
  color: var(--accent-on-ink);
}

/* ---------------------------------------------------------------------- */
/* Product band (on ink)                                                   */
/* ---------------------------------------------------------------------- */

.product-band {
  padding: 104px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.product-logo {
  display: block;
  height: clamp(30px, 3.2vw, 38px);
  width: auto;
}

.product-tagline {
  margin-top: 14px;
  color: var(--on-ink-soft);
  font-size: 16px;
  max-width: 32ch;
}

.product-copy p {
  color: var(--on-ink-soft);
  font-size: 16.5px;
  line-height: 1.72;
  max-width: 58ch;
}

.product-copy p + p {
  margin-top: 18px;
}

.product-integrations {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--on-ink-line);
}

.product-integrations-label {
  font-size: 13px;
  color: var(--on-ink-soft);
}

.integration-list {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.integration-list li {
  font-size: 13.5px;
  color: var(--on-ink);
  border: 1px solid var(--on-ink-line);
  border-radius: 999px;
  padding: 6px 14px;
}

.product-link {
  display: inline-block;
  margin-top: 32px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-on-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(219, 164, 85, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.15s var(--ease);
}

.product-link:hover {
  border-color: var(--accent-on-ink);
}

/* ---------------------------------------------------------------------- */
/* Footer                                                                   */
/* ---------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}

.site-footer .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-soft);
}

.footer-copy {
  font-size: 13.5px;
  color: var(--ink-faint);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-deep);
}

/* ---------------------------------------------------------------------- */
/* Inner pages (support / privacy)                                         */
/* ---------------------------------------------------------------------- */

.page-header {
  padding: 76px 0 48px;
  border-bottom: 1px solid var(--line);
}

.page-header .shell {
  max-width: 780px;
}

.page-kicker {
  display: block;
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 22px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  letter-spacing: -0.01em;
}

.page-header p {
  margin-top: 18px;
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 56ch;
}

.page-body {
  padding: 64px 0 120px;
}

.page-body .shell {
  max-width: 780px;
}

/* --- Support form -------------------------------------------------- */

.support-alt {
  margin-bottom: 44px;
  padding: 18px 22px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--ink-soft);
}

.support-alt a {
  color: var(--accent-deep);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(181, 121, 42, 0.35);
}

.contact-form {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  margin-bottom: 22px;
}

.form-row .field {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.field .hint {
  font-weight: 400;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.55;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--ink-faint);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--paper-raised);
}

.form-submit {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.form-note {
  font-size: 13px;
  color: var(--ink-faint);
}

/* --- Privacy policy ---------------------------------------------------- */

.policy section {
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.policy section:last-child {
  border-bottom: none;
}

.policy h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.005em;
  margin-bottom: 14px;
}

.policy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  max-width: var(--measure);
}

.policy p + p {
  margin-top: 14px;
}

.policy ul {
  margin-top: 14px;
  padding-left: 20px;
  max-width: var(--measure);
}

.policy li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 8px;
}

.policy .updated {
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 8px;
}

/* ---------------------------------------------------------------------- */
/* Responsive                                                               */
/* ---------------------------------------------------------------------- */

@media (max-width: 880px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 72px;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .product-band {
    padding: 72px 0;
  }
}

@media (max-width: 700px) {
  .shell {
    padding: 0 20px;
  }

  .main-nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  }

  .main-nav[data-open='true'] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .main-nav .nav-cta {
    margin-top: 14px;
    text-align: center;
    border: 1px solid var(--line-strong);
  }

  .nav-toggle {
    display: flex;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 26px;
  }

  .site-footer .shell {
    flex-direction: column;
    align-items: flex-start;
  }
}
