/* Brigaidier landing page. Self-contained: self-hosted Inter, inline SVG, no external assets. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f5f0;
  --bg-alt: #eef2ec;
  --surface: #ffffff;
  --surface-soft: #fbfbf8;
  --ink: #1c3d31;
  --ink-strong: #143329;
  --text: #33463f;
  --muted: #66746b;
  --line: #e2e7df;
  --line-strong: #d2ddd3;
  --brand: #1c5144;
  --brand-hover: #154536;
  --brand-ink: #ffffff;
  --mint: #e6f3e8;
  --mint-line: #cfe5d4;
  --sage: #9cbda4;
  --accent: #2f7a5e;
  --accent-soft: #c7edb6;
  --warm: #b26b14;
  --warm-soft: #fbefdc;
  --dark-band: #173a31;
  --dark-band-2: #1f4a3e;
  --dark-band-text: #e8f1ea;
  --dark-band-muted: #b5cbbb;
  --focus: #3f9a72;
  --shadow: 0 1px 2px rgba(28, 61, 49, .05), 0 18px 48px rgba(28, 61, 49, .09);
  --shadow-soft: 0 1px 2px rgba(28, 61, 49, .04), 0 10px 26px rgba(28, 61, 49, .06);
  --radius: 18px;
  --gutter: 16px;
  --font: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Inter", ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1a16;
    --bg-alt: #13211c;
    --surface: #182a23;
    --surface-soft: #1b2f27;
    --ink: #e4efe7;
    --ink-strong: #f2f8f3;
    --text: #c5d4ca;
    --muted: #93a69a;
    --line: #253b32;
    --line-strong: #2f493e;
    --brand: #7fc79d;
    --brand-hover: #96d6b0;
    --brand-ink: #0d211a;
    --mint: #1d3a2f;
    --mint-line: #2a4d3f;
    --sage: #6f9c7e;
    --accent: #8fd3aa;
    --accent-soft: #c7edb6;
    --warm: #e8b46a;
    --warm-soft: #3a2c17;
    --dark-band: #193a30;
    --dark-band-2: #20473b;
    --dark-band-text: #eaf3ed;
    --dark-band-muted: #a9c3b2;
    --focus: #8fd3aa;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 48px rgba(0, 0, 0, .35);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 26px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

h1, h2, h3 { color: var(--ink); font-family: var(--font-display); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.3rem); line-height: 1.04; letter-spacing: -.025em; font-weight: 650; }
h2 { font-size: clamp(1.9rem, 3.9vw, 2.85rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 600; max-width: 22ch; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.012em; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
svg { flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--gutter); top: -60px; z-index: 50;
  background: var(--brand); color: var(--brand-ink); padding: 10px 14px;
  border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 720px; }

@media (min-width: 640px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }
@media (min-width: 1360px) { :root { --gutter: 64px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--accent); font-size: .76rem; font-weight: 650;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px;
}

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px; border-radius: 10px;
  border: 1px solid transparent; font-weight: 600; font-size: .95rem;
  text-decoration: none; white-space: nowrap; line-height: 1.2;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.button.large { min-height: 52px; padding: 14px 22px; font-size: 1rem; }
.button.primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 16px rgba(28, 81, 68, .18); }
.button.primary:hover { background: var(--brand-hover); transform: translateY(-1px); }
.button.quiet { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.quiet:hover { background: var(--mint); border-color: var(--mint-line); }
.button.on-dark { background: transparent; color: var(--dark-band-text); border-color: rgba(232, 241, 234, .35); }
.button.on-dark:hover { background: rgba(232, 241, 234, .08); border-color: rgba(232, 241, 234, .6); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) { .site-header { background: var(--bg); } }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  height: 68px; display: flex; align-items: center; gap: 20px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink-strong); font-family: var(--font-display);
  font-weight: 650; font-size: 1.18rem; letter-spacing: -.035em;
}
.wordmark-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: #1c5144; color: #fff; font-size: 1.05rem; position: relative;
}
.wordmark-mark::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px;
  border-radius: 50%; background: #c7edb6; border: 2px solid var(--bg);
}
.wordmark-ai { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav ul { display: flex; gap: 24px; }
.site-nav a:not(.button) {
  color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 600;
  padding: 6px 0; transition: color .15s ease;
}
.site-nav a:not(.button):hover { color: var(--ink); }
.nav-cta { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.signin-link {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem;
  padding: 8px 4px; white-space: nowrap;
}
.signin-link:hover { color: var(--accent); }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); align-items: center; justify-content: center; cursor: pointer;
}
.menu-toggle svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: inline; }

@media (max-width: 880px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
  /* With JavaScript, section links move into a toggled panel. */
  .js .menu-toggle:not([hidden]) { display: inline-flex; }
  .js .header-cta { display: none; }
  .js .site-nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    position: absolute; top: 68px; left: 0; right: 0; margin: 0;
    padding: 12px var(--gutter) 20px; background: var(--bg);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-soft);
  }
  .js .site-nav.is-open ul { flex-direction: column; gap: 0; }
  .js .site-nav.is-open a:not(.button) { display: block; padding: 13px 2px; font-size: 1rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .js .site-nav.is-open .nav-cta { display: inline-flex; margin-top: 10px; }
}
@media (max-width: 480px) {
  .header-cta { min-height: 40px; padding: 8px 12px; font-size: .86rem; }
  .header-actions { gap: 8px; }
}
@media (max-width: 400px) {
  /* Without JavaScript on very small screens, the hero carries the main call to action. */
  .header-cta { display: none; }
}

/* Hero */
.hero {
  padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 7vw, 104px); position: relative; overflow: hidden;
  display: flex; align-items: center;
}
/* On wide screens the hero is the whole first screen, so it reads in one glance. */
@media (min-width: 960px) { .hero { min-height: min(calc(100svh - 68px), 880px); } }
.hero > .container { flex: 1; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; max-width: 820px; aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--mint) 90%, transparent), transparent);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; gap: clamp(56px, 7vw, 96px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(56px, 7vw, 120px); } }
.hero-copy { max-width: 600px; }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); line-height: 1.06; letter-spacing: -.03em; }
.hero .eyebrow { margin-bottom: 28px; }
/* Each sentence of the headline on its own line, read in one glance. */
@media (min-width: 640px) { .hero h1 .h1-line { display: block; white-space: nowrap; } }
.h1-soft { color: var(--accent); }
.lede { margin-top: 32px; font-size: clamp(1rem, 1.15vw, 1.08rem); line-height: 1.7; color: var(--muted); max-width: 28em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.fineprint { margin-top: 28px; color: var(--muted); font-size: .86rem; }
@media (max-width: 420px) { .hero .cta-row .button { flex: 1 1 100%; } }

.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(47, 122, 94, .5); animation: pulse 2.4s ease-out infinite; }

/* Hero visual: a small, honest mock of real product objects. */
.hero-visual { margin: 0; position: relative; display: grid; gap: 18px; max-width: 470px; width: 100%; justify-self: end; }
.mock {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
}
.mock p { margin: 0; }
.mock-budget { padding: 26px 26px 22px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mock-label { font-size: .74rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pill { font-size: .74rem; font-weight: 650; padding: 4px 10px; border-radius: 99px; }
.pill-ok { background: var(--mint); color: var(--accent); border: 1px solid var(--mint-line); }
.mock-title { margin-top: 10px !important; color: var(--ink-strong); font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; letter-spacing: -.02em; }
.mock-purpose { margin-top: 6px !important; font-size: .92rem; color: var(--text); }
.mock-purpose span { color: var(--muted); font-weight: 600; margin-right: 4px; }
.meter { margin-top: 20px; }
.meter-row { display: flex; justify-content: space-between; font-size: .84rem; color: var(--muted); margin-bottom: 7px; }
.meter-row strong { color: var(--ink); }
.bar { height: 8px; border-radius: 99px; background: var(--bg-alt); overflow: hidden; border: 1px solid var(--line); }
.bar-fill { display: block; height: 100%; border-radius: inherit; width: var(--to); transform-origin: left; }
.bar-fill.spend { --to: 35.5%; background: linear-gradient(90deg, var(--sage), var(--brand)); }
.bar-fill.progress { --to: 66.6%; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); }
.mock-foot { margin-top: 16px !important; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: .8rem; color: var(--muted); }

.mock-session { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
@media (min-width: 560px) { .mock-session { margin-left: 36px; } }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: #3fae74; box-shadow: 0 0 0 4px rgba(63, 174, 116, .18); animation: breathe 2.6s ease-in-out infinite; }
.mock-line { font-size: .95rem; color: var(--ink); }
.mock-sub { font-size: .82rem; color: var(--muted); }

.mock-check { padding: 16px 18px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.checks li {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--ink);
  background: var(--surface-soft); border: 1px solid var(--line); border-radius: 99px; padding: 5px 10px 5px 7px;
}
.checks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%232f7a5e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* Sections */
.section { padding: clamp(88px, 12vw, 156px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.problem { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.card-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .card-grid.three { grid-template-columns: repeat(3, 1fr); } .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text); font-size: 1.02rem; }
.icon {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 24px; border-radius: 12px;
  background: var(--mint); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

/* Steps */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 24px; } }
.step {
  position: relative; padding: 30px 26px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.step-num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 650; font-size: .95rem; margin-bottom: 22px;
}
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { font-size: 1.02rem; }
@media (min-width: 1080px) {
  .step:not(:last-child)::after {
    content: ""; position: absolute; top: 46px; right: -25px; width: 26px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--sage) 0 4px, transparent 4px 8px);
  }
}

.providers { margin-top: 56px; display: grid; gap: 16px; }
.providers p { color: var(--muted); font-weight: 600; font-size: .92rem; }
.providers ul { display: flex; flex-wrap: wrap; gap: 8px; }
.providers li {
  font-size: .86rem; font-weight: 600; color: var(--ink); padding: 6px 12px;
  border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
}

/* Both sides */
.both { background: var(--bg-alt); }
.split { display: grid; gap: 22px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 28px; } }
.panel {
  border-radius: 22px; padding: clamp(30px, 4.5vw, 48px);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-soft);
}
.panel-lead { border-top: 4px solid var(--brand); }
.panel-eng { border-top: 4px solid var(--sage); }
.panel-kicker { color: var(--muted); font-size: .82rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.panel h3 { font-size: clamp(1.5rem, 2.5vw, 1.9rem); margin: 10px 0 28px; letter-spacing: -.025em; }
.feature-list { display: grid; gap: 24px; }
.feature-list li { position: relative; padding-left: 30px; font-size: 1.02rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 3px;
  background: var(--sage); transform: rotate(45deg);
}
.feature-list strong { color: var(--ink); display: block; margin-bottom: 4px; }

/* Trust */

/* Why */
.why { background: var(--surface-soft); border-top: 1px solid var(--line); }
.why h2 { margin-bottom: 28px; }
.why p { font-size: 1.2rem; line-height: 1.6; margin-bottom: 16px; }
.belief { margin: 48px 0 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--brand); }
.belief p {
  font-family: var(--font-display); color: var(--ink-strong); font-weight: 600;
  font-size: clamp(1.55rem, 3vw, 2.1rem); line-height: 1.25; letter-spacing: -.02em; margin: 0;
}

/* Pilot */
.pilot { padding-top: 0; background: var(--surface-soft); }
.pilot-card {
  display: grid; gap: 28px; align-items: center;
  background: linear-gradient(135deg, var(--dark-band), var(--dark-band-2));
  color: var(--dark-band-muted); border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  position: relative; overflow: hidden;
}
.pilot-card::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(199, 237, 182, .07); pointer-events: none;
}
@media (min-width: 900px) { .pilot-card { grid-template-columns: 1.4fr auto; } }
.pilot-card .eyebrow { color: #c7edb6; }
.pilot-card h2 { color: var(--dark-band-text); margin-bottom: 16px; }
.pilot-card p { max-width: 36em; }
.pilot-card .cta-row { margin-top: 0; position: relative; z-index: 1; }
.pilot-card .button.primary { background: #c7edb6; color: #143329; box-shadow: none; }
.pilot-card .button.primary:hover { background: #d8f4cb; }
.pilot-card :focus-visible { outline-color: #c7edb6; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; background: var(--bg); color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-inner a { text-decoration: none; font-weight: 600; color: var(--text); }
.footer-inner a:hover { color: var(--accent); }

/* Motion: only when JavaScript confirms it is wanted. Content is always visible without it. */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-ready .card-grid .reveal:nth-child(2), .reveal-ready .steps .reveal:nth-child(2), .reveal-ready .split .reveal:nth-child(2) { transition-delay: .08s; }
.reveal-ready .card-grid .reveal:nth-child(3), .reveal-ready .steps .reveal:nth-child(3) { transition-delay: .16s; }
.reveal-ready .card-grid .reveal:nth-child(4), .reveal-ready .steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual .mock { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-visual .mock-session { animation-delay: .15s; }
  .hero-visual .mock-check { animation-delay: .3s; }
  .bar-fill { animation: fill 1.4s cubic-bezier(.2, .7, .2, 1) .5s both; }
  .bar-fill.progress { animation-delay: .7s; }
  .checks li { animation: tick .45s ease both; }
  .checks li:nth-child(1) { animation-delay: .9s; }
  .checks li:nth-child(2) { animation-delay: 1.05s; }
  .checks li:nth-child(3) { animation-delay: 1.2s; }
  .checks li:nth-child(4) { animation-delay: 1.35s; }
  .checks li:nth-child(5) { animation-delay: 1.5s; }
}

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes tick { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 122, 94, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(47, 122, 94, 0); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 4px rgba(63, 174, 116, .18); } 50% { box-shadow: 0 0 0 7px rgba(63, 174, 116, .08); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
  .card:hover, .button.primary:hover { transform: none; }
}

.nowrap { white-space: nowrap; }
