/* Brainwave Labs site. System font only, no outside requests. */
:root {
  --primary: #4338CA; --secondary: #1E3A8A; --accent: #0E7490;
  --ink: #071A22; --muted: #5A6472; --line: #E2E5EE;
  --page: #F6F7FB; --card: #FFFFFF; --tint: #EEF0FB;
  --shadow: 0 1px 2px rgba(7, 26, 34, .06), 0 12px 32px rgba(30, 58, 138, .12);
}
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #A5B4FC; --accent: #67C7DA;
    --ink: #E8EAF2; --muted: #A3A9B8; --line: #2B3142;
    --page: #0F121A; --card: #171B26; --tint: #1C2133;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--page); }
img { max-width: 100%; height: auto; }
a { color: var(--primary); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Header and footer */
header.site { color: #fff; background: linear-gradient(120deg, #4338CA, #1E3A8A); }
.bar { max-width: 1120px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
header.site a { color: #fff; text-decoration: none; }
.brand { font-weight: 800; font-size: 18px; letter-spacing: .01em; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; }
nav a { padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: rgba(255, 255, 255, .8); }
.nav-app { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.nav-app img { border-radius: 5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
footer.site { border-top: 1px solid var(--line); margin-top: 56px; }
.foot { max-width: 1120px; margin: 0 auto; padding: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; }
.foot-brand img { border-radius: 4px; }

/* Layout */
main { max-width: 760px; margin: 40px auto 0; padding: 0 24px; }
main.wide { max-width: 1120px; }
main.mid { max-width: 1000px; }
main.mid .prose { max-width: none; }
.prose { max-width: 760px; }
h1 { font-size: 44px; line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: 26px; line-height: 1.25; margin: 40px 0 10px; font-weight: 750; letter-spacing: -.01em; }
h3 { font-size: 18px; margin: 12px 0 6px; }
li { margin: 4px 0; }
em { color: var(--muted); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }

/* Privacy policy and other text pages: the card look from before */
.prose { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 36px 40px; }
.prose > h1:first-child, .prose > h2:first-child { margin-top: 0; }
.prose h1 { font-size: 34px; }
.prose h2 { font-size: 21px; margin-top: 32px; }
.glance { background: var(--tint); border: 1px solid var(--line); border-left: 4px solid #4338CA; border-radius: 10px; padding: 14px 20px; margin: 20px 0 8px; }
.glance p { margin: 6px 0; }

/* Hero */
.hero { text-align: center; padding: 24px 0 8px; }
.hero .lead { margin: 0 auto 24px; }
.app-icon { width: 128px; height: 128px; border-radius: 28px; box-shadow: var(--shadow); margin-bottom: 18px; }
.app-icon.small { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 12px; }
.tagline { font-size: 26px; font-weight: 650; margin: 0 0 12px; letter-spacing: -.01em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: center; align-items: center; }
.pill { display: inline-block; padding: 10px 20px; border-radius: 999px; color: #fff; font-weight: 650; font-size: 15px; background: linear-gradient(120deg, #4338CA, #1E3A8A); }
.req { color: var(--muted); font-size: 15px; }
.hero-shot { margin: 40px 0 24px; }

/* Screenshots */
.frame { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--card); line-height: 0; }
.shot { display: block; width: 100%; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; margin: 88px 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .copy { order: 2; }
.feature h2 { margin-top: 4px; }
.feature p { color: var(--muted); font-size: 18px; }
.kicker { color: var(--accent) !important; font-size: 13px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin: 0; }

/* Privacy band */
.privacy-band { background: var(--tint); border: 1px solid var(--line); border-radius: 20px; padding: 40px; margin: 96px 0 0; text-align: center; }
.privacy-band h2 { margin-top: 0; }
.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0; text-align: left; }
.promise { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.promise svg { color: var(--primary); }
.promise p { color: var(--muted); margin: 0; font-size: 16px; }
.fine { color: var(--muted); font-size: 15px; max-width: 680px; margin: 0 auto; }
.closing { text-align: center; margin: 72px 0 0; }
.closing p { color: var(--muted); }

/* Support */
.page-head { text-align: center; margin-bottom: 28px; }
.page-head .lead { margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.card svg { color: var(--primary); }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card p strong { color: var(--ink); }
.faq details { border-top: 1px solid var(--line); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 650; padding: 10px 28px 10px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 6px; font-size: 22px; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 14px; color: var(--muted); }

/* Home */
.hero.home { padding-top: 40px; }
.product-card { display: grid; grid-template-columns: 4fr 7fr; gap: 40px; align-items: center; margin: 48px 0 0; padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s ease; }
.product-card:hover { transform: translateY(-2px); }
.pc-copy img { border-radius: 16px; box-shadow: var(--shadow); }
.pc-copy h2 { margin: 14px 0 6px; }
.pc-copy p { color: var(--muted); }
.more { color: var(--primary); font-weight: 650; }
.follow-card { display: flex; align-items: center; gap: 20px; margin: 24px 0 0; padding: 22px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.follow-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.follow-icon { flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--ink); }
.follow-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.follow-copy strong { font-size: 18px; }
.follow-copy span { color: var(--muted); font-size: 15.5px; }
.follow-btn { flex: none; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 650; font-size: 15px; color: var(--ink); }
.follow-card:hover .follow-btn { border-color: var(--ink); }
.foot-ig { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
.foot-ig .ig { position: relative; top: -1px; }

/* Narrow screens: one column, 16px gutters */
@media (max-width: 820px) {
  .feature, .product-card { grid-template-columns: 1fr; gap: 20px; margin: 56px 0; }
  .feature.flip .copy { order: 0; }
  .promises, .cards { grid-template-columns: 1fr; }
  .product-card { margin-top: 32px; padding: 20px; }
  .follow-card { flex-wrap: wrap; padding: 18px 20px; }
  .follow-btn { width: 100%; text-align: center; }
}
@media (max-width: 600px) {
  main { padding: 0 16px; margin-top: 28px; }
  .bar { padding: 14px 16px; }
  h1 { font-size: 34px; }
  .tagline { font-size: 21px; }
  .prose { padding: 24px 20px; }
  .privacy-band { padding: 28px 18px; }
  .app-icon { width: 104px; height: 104px; border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) { .product-card { transition: none; } }
