/*
 * Brains Together — marketing landing.
 * Palette and the "slab" tactile language are lifted straight from DESIGN.md:
 * white canvas, deep-navy ink, yellow Primary, blue Secondary, 4px lips and
 * 0-blur hard shadows. Kept as a static stylesheet so the site needs no runtime.
 */

:root {
  --surface: #ffffff;
  --surface-soft: #f7f9fd;
  --surface-container: #e7eeff;
  --ink: #0a1d37;          /* deep navy */
  --ink-soft: #4c5666;
  --primary: #f8d653;      /* brand yellow */
  --primary-lip: #cbb000;  /* darker gold — the lip */
  --on-primary: #4a3d00;
  --secondary: #437df7;    /* brand blue */
  --secondary-lip: #2b5fd0;
  --on-secondary: #ffffff;
  --border: #e5e5e5;
  --error-ink: #93000a;

  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 9999px;
  --max-width: 1140px;
  --gutter: 16px;
}

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

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

body {
  font-family: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 2px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-lockup { display: flex; align-items: center; gap: 10px; }
.brand-lockup img { height: 34px; width: 34px; border-radius: 9px; display: block; }
.brand-lockup .brand-name { font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.brand-lockup:hover { text-decoration: none; }

/* ---- Buttons: the slab ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--primary-lip);
  border-bottom-width: 6px;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
  transition: transform 0.06s ease, border-bottom-width 0.06s ease;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.btn--secondary {
  background: var(--secondary);
  border-color: var(--secondary-lip);
  color: var(--on-secondary);
}
.btn--ghost {
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: #cfd4dd;
  color: var(--ink);
}
.btn--sm { padding: 12px 20px; font-size: 15px; border-bottom-width: 5px; }
.btn--sm:active { border-bottom-width: 2px; }

/* ---- Hero ---- */
.hero { padding: 88px 0 72px; text-align: center; }
.hero .app-icon {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: 0 6px 0 rgba(10, 29, 55, 0.12);
  margin: 0 auto 32px;
  display: block;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 14px;
}
.hero .tagline {
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero .tagline .accent { color: var(--secondary); }
.hero p.lede {
  font-size: clamp(17px, 2.4vw, 21px);
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 36px;
}
.cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-note {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

/* ---- Feature cards ---- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface-soft); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); }
.section h2 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.section .sub {
  text-align: center;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 44px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 4px 0 var(--border);
  padding: 28px 24px;
}
.card .emoji { font-size: 34px; line-height: 1; display: block; margin-bottom: 16px; }
.card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* ---- Closing CTA band ---- */
.band { text-align: center; padding: 80px 0; }
.band h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; margin-bottom: 28px; letter-spacing: -0.01em; }

/* ---- Footer ---- */
.site-footer {
  border-top: 2px solid var(--border);
  background: var(--surface-soft);
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer nav a { color: var(--ink); font-weight: 600; font-size: 15px; }
.site-footer .copy { color: var(--ink-soft); font-size: 14px; }

/* ---- Legal pages ---- */
.legal { padding: 64px 0 80px; }
.legal .doc { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.legal .effective { color: var(--ink-soft); font-size: 15px; font-weight: 600; margin: 8px 0 4px; }
.legal .intro { font-size: 18px; color: var(--ink-soft); margin: 20px 0 12px; }
.legal h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; }
.legal p { font-size: 17px; margin-bottom: 14px; }
.legal .back { display: inline-block; margin-bottom: 8px; font-weight: 600; }

@media (max-width: 860px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 48px; }
}
