/* BrainPigeon site. Layout: light header, navy hero with a live text thread, then plain light sections. */
:root {
  --navy: #0D2240;
  --navy-2: #16305A;
  --teal: #10ACA0;
  --teal-ink: #0A7C73;      /* teal dark enough for text on white */
  --orange: #F57C22;
  --paper: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #13233A;
  --muted: #56657A;
  --line: #DFE3E0;
  --display: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--teal-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }

/* Header */
.site-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.site-head nav { display: flex; gap: clamp(12px, 2.5vw, 28px); align-items: center; font-weight: 600; font-size: 15px; }
.site-head nav a { color: var(--ink); text-decoration: none; }
.site-head nav a:hover { color: var(--teal-ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font: 800 16px/1 var(--display); text-decoration: none; border: 0; cursor: pointer; }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: #18C2B5; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
@media (max-width: 640px) { .site-head nav .hide-sm { display: none; } }

/* Hero */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.eyebrow { font: 800 13px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); margin: 0 0 18px; }
.hero h1 { font: 900 clamp(44px, 7vw, 84px)/0.98 var(--display); letter-spacing: -0.02em; margin: 0 0 22px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lede { font-size: clamp(18px, 2vw, 21px); color: #C9D4E5; max-width: 33em; margin: 0 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { font-size: 14px; color: #9FB0C9; }

/* Phone with a live thread */
.phone { width: min(360px, 100%); margin: 0 auto; background: #0A1A33; border: 1px solid #24406B; border-radius: 40px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.phone-screen { background: #F3F5F8; border-radius: 28px; padding: 16px 14px 18px; min-height: 520px; display: flex; flex-direction: column; }
.thread-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 12px; border-bottom: 1px solid #DDE3EA; margin-bottom: 12px; color: var(--ink); }
.thread-head img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 4px; }
.thread-head b { font: 800 14px/1 var(--display); }
.thread { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.35; flex: 1; justify-content: flex-end; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; white-space: pre-line; }
.msg.me { align-self: flex-end; background: var(--teal); color: #05221F; border-bottom-right-radius: 6px; }
.msg.bp { align-self: flex-start; background: #fff; color: var(--ink); border: 1px solid #DDE3EA; border-bottom-left-radius: 6px; }
.msg.typing { color: #8A97A8; font-style: italic; }
.msg.anim { animation: pop .28s ease-out both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg.anim { animation: none; } }

/* Sections */
section { padding: clamp(56px, 8vw, 104px) 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font: 900 clamp(32px, 4.4vw, 50px)/1.05 var(--display); letter-spacing: -0.015em; margin: 0 0 14px; text-wrap: balance; color: var(--navy); }
.section-lede { color: var(--muted); max-width: 40em; margin: 0 0 40px; font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
section.alt .card { background: var(--paper); }
.step-num { font: 900 15px/1 var(--display); color: var(--teal-ink); margin-bottom: 10px; display: block; }
.card h3 { font: 800 22px/1.2 var(--display); margin: 0 0 8px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.sample { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.sample span { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 7px 11px; }
section.alt .sample span { background: var(--surface); }
.kind { display: inline-block; font: 800 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; margin-bottom: 14px; }
.kind.task { background: #FDEBDD; color: #9A4508; }
.kind.idea { background: #E0F4F2; color: var(--teal-ink); }
.kind.note { background: #E6ECF5; color: var(--navy); }

/* Commands */
.commands { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 8px; }
.cmd { display: flex; gap: 12px; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.cmd code { font: 800 15px/1 var(--display); color: var(--navy); background: #E0F4F2; border-radius: 8px; padding: 6px 9px; white-space: nowrap; }
.cmd span { color: var(--muted); font-size: 15px; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 760px; }
@media (max-width: 640px) { .prices { grid-template-columns: 1fr; } }
.price { position: relative; }
.price .amt { font: 900 54px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.price .per { color: var(--muted); font-weight: 600; }
.price ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.price.best { border: 2px solid var(--teal); }
.badge { position: absolute; top: -13px; left: 24px; background: var(--orange); color: #2A1200; font: 800 12px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; }

/* Waitlist */
.join { background: var(--navy); color: #fff; }
.join h2 { color: #fff; }
.join .section-lede { color: #C9D4E5; }
form.waitlist { background: #fff; color: var(--ink); border-radius: 22px; padding: clamp(20px, 3vw, 32px); max-width: 620px; display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 15px; }
.field input { font: inherit; padding: 12px 14px; border: 1px solid #C8D0DA; border-radius: 12px; background: #fff; color: var(--ink); min-height: 48px; }
.field small { color: var(--muted); font-size: 13.5px; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; color: var(--muted); background: var(--paper); border-radius: 12px; padding: 14px; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--teal-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-weight: 600; min-height: 1.4em; margin: 0; }
.form-msg.ok { color: var(--teal-ink); }
.form-msg.err { color: #B42318; }

/* FAQ */
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font: 800 18px/1.3 var(--display); color: var(--navy); padding: 14px 0; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* Footer */
footer { background: #0A1A33; color: #A9B7CC; padding: 44px 0; font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
footer a { color: #DCE5F2; }
footer .legal { max-width: 34em; }

/* Legal pages */
.doc { background: var(--surface); }
.doc .wrap { max-width: 780px; padding-top: 56px; padding-bottom: 80px; }
.doc h1 { font: 900 clamp(34px, 5vw, 48px)/1.05 var(--display); color: var(--navy); margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 24px; margin: 36px 0 8px; }
.doc p, .doc li { color: #2C3A4F; }
.doc .callout { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.site-head nav a.btn-navy, .site-head nav a.btn-navy:hover { color: #fff; }
