/*!
 * Big Brain Labs — site design system (2026-11, "Big Brain Labs 2.0").
 * ─────────────────────────────────────────────────────────────────────
 * NO BUILD STEP. Every marketing / landing page links this ONE file:
 *   <link rel="stylesheet" href="/site.css">
 * App pages (morninglab, seatlab, pdflab, …) do NOT load it — apps keep
 * their own styles. polish.css is the OLD marketing layer; new pages do
 * not load it (the legal pages still carry it for their body copy).
 *
 * Layers:
 *   1. Tokens (brand palette — Ink / Blue / Mint / Gold / Cream)
 *   2. Base + typography + focus
 *   3. Layout helpers
 *   4. Shared chrome: skip link, .site-nav, .site-footer
 *   5. Components: buttons, badges, cards, tiles, hero, screenshot
 *      frames, feature rows, steps, pricing, FAQ, forms, callouts,
 *      directory, product page, doc (legal) pages
 *   6. Motion (all gated on prefers-reduced-motion: no-preference)
 *   7. Print
 * ─────────────────────────────────────────────────────────────────────
 */

/* ═══════════════════ 1. TOKENS ═══════════════════ */
:root {
  /* brand */
  --ink: #18243D;
  --ink-2: #243356;        /* hover / softer navy */
  --ink-soft: #4A5572;     /* 6.9:1 on cream */
  --ink-muted: #5E6886;    /* 5.2:1 on cream */
  --blue: #3867EF;         /* buttons (white text 4.8:1) */
  --blue-text: #2A55D6;    /* links on cream/white (5.8:1) */
  --blue-deep: #2448B8;
  --blue-tint: #E9EFFF;
  --mint: #37C7A2;         /* accents, never body text */
  --mint-text: #0F6650;    /* 4.9:1 on cream */
  --mint-tint: #E3F7F0;
  --gold: #F5BF45;
  --gold-text: #8A5B00;
  --gold-tint: #FFF4D6;
  --cream: #F8F7F2;
  --cream-2: #F1EFE7;      /* alt section bg */
  --paper: #FFFFFF;
  --line: #E4E4DC;
  --line-strong: #CFCFC4;
  --danger: #B42318;
  --ok: #157A62;

  /* type */
  --font-display: 'Nunito', 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* shape + depth */
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(24, 36, 61, .06), 0 2px 10px rgba(24, 36, 61, .06);
  --shadow-md: 0 10px 30px rgba(24, 36, 61, .12);
  --shadow-lg: 0 30px 70px rgba(24, 36, 61, .18);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --focus: #2563EB;

  /* layout */
  --wrap: 1160px;
  --wrap-narrow: 780px;
  --gutter: 20px;
  --nav-h: 68px;
}

/* ═══════════════════ 2. BASE ═══════════════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
svg { height: auto; }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .45em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue-text); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
strong, b { font-weight: 800; }
small { font-size: .86em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin: .3em 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--cream-2); padding: .1em .4em; border-radius: 6px; }
::selection { background: rgba(56, 103, 239, .2); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}
button { font-family: inherit; font-size: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-muted); }
.soft { color: var(--ink-soft); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* ═══════════════════ 3. LAYOUT ═══════════════════ */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { width: 100%; max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(48px, 5vw + 20px, 96px) 0; }
.section-tight { padding: clamp(32px, 3vw + 12px, 56px) 0; }
.section-alt { background: var(--cream-2); }
.section-ink { background: var(--ink); color: #E8ECF6; }
.section-ink h1, .section-ink h2, .section-ink h3 { color: #fff; }
.section-ink p { color: #CBD3E6; }
.section-ink a { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse > :first-child { order: 0; }
}
.stack > * + * { margin-top: 14px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--mint-text);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--mint); }
.eyebrow.gold { color: var(--gold-text); } .eyebrow.gold::before { background: var(--gold); }
.eyebrow.blue { color: var(--blue-text); } .eyebrow.blue::before { background: var(--blue); }
.lede { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; max-width: 620px; }
.hl { background: linear-gradient(180deg, transparent 62%, var(--gold) 62%, var(--gold) 92%, transparent 92%); padding: 0 .05em; }
.hl-mint { background: linear-gradient(180deg, transparent 62%, var(--mint) 62%, var(--mint) 92%, transparent 92%); padding: 0 .05em; }

/* ═══════════════════ 4. CHROME ═══════════════════ */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 800;
}
.skip:focus { top: 12px; }

.site-nav {
  position: sticky; top: 0; z-index: 90;
  background: rgba(248, 247, 242, .86);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(24, 36, 61, .08);
  transition: box-shadow .25s var(--ease);
}
.site-nav.is-scrolled { box-shadow: 0 8px 28px rgba(24, 36, 61, .10); }
.site-nav-inner { display: flex; align-items: center; gap: 8px; min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; }
.brand-name em { font-style: normal; color: var(--blue-text); }
.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; min-width: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  color: var(--ink-soft); text-decoration: none; background: transparent; border: 0; cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: rgba(24, 36, 61, .06); text-decoration: none; }
.nav-link[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); border-radius: var(--r-sm) var(--r-sm) 4px 4px; }
.nav-drop { position: relative; }
.nav-drop-btn .icon { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav-drop[data-open] .nav-drop-btn .icon { transform: rotate(180deg); }
.nav-drop-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  display: none; grid-template-columns: 1fr 1fr; gap: 6px 18px;
  min-width: 560px; padding: 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
}
.nav-drop[data-open] .nav-drop-menu { display: grid; }
.nav-drop-h { font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); padding: 8px 10px 4px; }
.nav-drop-menu a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 700; line-height: 1.25; }
.nav-drop-menu a:hover { background: var(--blue-tint); }
.nav-drop-menu a .tile { width: 34px; height: 34px; border-radius: 9px; font-size: 18px; }
.nav-drop-menu a small { display: block; color: var(--ink-muted); font-weight: 600; font-size: .78rem; }
.nav-drop-menu a.nav-drop-all { color: var(--blue-text); margin-top: 4px; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-founder { font-size: .76rem; color: var(--ink-muted); padding: 8px 8px; font-weight: 700; text-decoration: none; }
.nav-founder:hover { color: var(--ink); text-decoration: none; }
.nav-burger {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.site-nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.site-nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1040px) {
  .nav-burger { display: flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px var(--gutter) 18px; max-height: calc(100vh - var(--nav-h)); overflow: auto;
  }
  .site-nav.menu-open .nav-menu { display: flex; }
  .nav-link { padding: 12px 12px; font-size: 1.02rem; min-height: 44px; }
  .nav-drop-menu { position: static; display: none; min-width: 0; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px 8px; }
  .nav-drop[data-open] .nav-drop-menu { display: grid; }
  .nav-actions { margin: 10px 0 0; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
  .nav-actions .btn { width: 100%; justify-content: center; }
  .nav-founder { min-height: 44px; display: inline-flex; align-items: center; }
}
@media (max-width: 420px) { .brand-name { font-size: 1.05rem; } }

/* footer */
.site-footer { background: var(--ink); color: #C9D1E4; padding: 56px 0 28px; margin-top: 64px; }
.site-footer a { color: #DCE3F2; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.foot-top { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 28px; }
.foot-brand .brand { color: #fff; margin: 0 0 10px; }
.foot-brand .brand-name em { color: var(--mint); }
.foot-brand p { color: #A9B4CF; font-size: .95rem; max-width: 300px; }
.foot-col h4 { color: #fff; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
.foot-col a { display: block; padding: 4px 0; font-size: .95rem; }
.foot-socials { display: flex; gap: 10px; margin: 16px 0 0; }
.foot-socials a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #DCE3F2; }
.foot-socials a:hover { background: rgba(255, 255, 255, .16); }
.foot-socials svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: #A9B4CF; display: grid; gap: 10px; }
.foot-bottom .legal-note { max-width: 900px; color: #9AA5C2; }
.foot-line { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.foot-line a { color: #C9D1E4; }
@media (max-width: 960px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-top { grid-template-columns: 1fr; } }

/* ═══════════════════ 5. COMPONENTS ═══════════════════ */
/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-pill); border: 2px solid transparent;
  cursor: pointer; text-decoration: none; white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; min-height: 48px;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-mint { background: var(--mint); border-color: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #2FB592; border-color: #2FB592; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #EDB22E; border-color: #EDB22E; }
.btn-ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-ink { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost-ink:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn-link { background: transparent; border-color: transparent; color: var(--blue-text); padding-left: 6px; padding-right: 6px; }
.btn-link:hover { text-decoration: underline; }
.btn-sm { padding: 10px 16px; font-size: .9rem; min-height: 40px; }
.btn-lg { padding: 17px 28px; font-size: 1.08rem; min-height: 56px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.cta-note { font-size: .9rem; color: var(--ink-soft); margin-top: 14px; }
.cta-note b { color: var(--ink); }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .03em;
  padding: 4px 10px; border-radius: var(--r-pill); line-height: 1.3; white-space: nowrap;
  background: var(--cream-2); color: var(--ink-soft); border: 1px solid transparent;
}
.badge::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.is-live { background: var(--mint-tint); color: var(--mint-text); }
.badge.is-free { background: var(--mint-tint); color: var(--mint-text); }
.badge.is-preview { background: var(--blue-tint); color: var(--blue-text); }
.badge.is-beta { background: #F0E9FF; color: #5B3DB8; }
.badge.is-license { background: var(--gold-tint); color: var(--gold-text); }
.badge.is-soon { background: #ECECE6; color: var(--ink-muted); }
.badge.is-paused { background: #ECECE6; color: var(--ink-muted); }
.badge.no-dot::before { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .86rem; color: var(--ink-soft); }
.pill .icon { color: var(--mint-text); width: 16px; height: 16px; }

/* tiles (product icon blocks) */
.tile {
  --tile: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 14px;
  background: color-mix(in srgb, var(--tile) 16%, white);
  color: color-mix(in srgb, var(--tile) 70%, var(--ink));
}
.tile .icon { width: 56%; height: 56%; stroke-width: 1.9; }
.tile.blue { --tile: var(--blue); }
.tile.mint { --tile: var(--mint); }
.tile.gold { --tile: var(--gold); color: var(--gold-text); }
.tile.ink { --tile: var(--ink); background: var(--ink); color: #fff; }
.tile.coral { --tile: #F26B5B; }
.tile.violet { --tile: #7C5CFF; }
.tile.lg { width: 72px; height: 72px; border-radius: 20px; }
.tile.xl { width: 96px; height: 96px; border-radius: 26px; }
@supports not (background: color-mix(in srgb, red 10%, white)) {
  .tile { background: var(--blue-tint); color: var(--blue-text); }
  .tile.mint { background: var(--mint-tint); color: var(--mint-text); }
  .tile.gold { background: var(--gold-tint); color: var(--gold-text); }
}

/* cards */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 34px; }
.card h3 { margin-top: 0; }
.card p { color: var(--ink-soft); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 800; }
.card-link .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.card-link:hover .icon { transform: translateX(3px); }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); text-decoration: none; }
.card-soft { background: var(--cream-2); border-color: transparent; box-shadow: none; }
.card-mint { background: var(--mint-tint); border-color: transparent; box-shadow: none; }
.card-gold { background: var(--gold-tint); border-color: transparent; box-shadow: none; }
.card-blue { background: var(--blue-tint); border-color: transparent; box-shadow: none; }
.card-ink { background: var(--ink); color: #DCE3F2; border-color: transparent; }
.card-ink h2, .card-ink h3 { color: #fff; } .card-ink p { color: #C3CCE2; }

/* product card (homepage + for-teachers + directory) */
.tool-card { display: flex; flex-direction: column; gap: 12px; position: relative; }
.tool-card-head { display: flex; align-items: center; gap: 14px; }
.tool-card-head h3 { margin: 0; font-size: 1.2rem; }
.tool-card-head .badge { margin-left: auto; }
.tool-card p { margin: 0; color: var(--ink-soft); }
.tool-card .shot { margin: 6px 0 2px; }
.tool-card ul.checks { margin: 2px 0 0; }
.tool-card-foot { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.tool-card-foot .muted { font-size: .86rem; }
ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
ul.checks li::before { content: ''; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--mint-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157A62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
ul.checks.gold li::before { background-color: var(--gold-tint); }
.mini-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.mini-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); text-decoration: none; }
.mini-card .tile { width: 42px; height: 42px; border-radius: 12px; }
.mini-card b { display: block; font-family: var(--font-display); font-size: 1rem; }
.mini-card small { color: var(--ink-muted); font-weight: 600; display: block; line-height: 1.3; }
.mini-card .badge { margin-left: auto; }
.mini-card.is-off { background: var(--cream-2); border-style: dashed; }
.mini-card.is-off .tile { filter: grayscale(.65); opacity: .85; }
.site-nav .btn, .nav-actions .btn { white-space: nowrap; }
body:has(.site-nav.menu-open) #bbl-acct-chip, body:has(.site-nav.menu-open) #bbl-auth-chip { visibility: hidden; }
.section-ink .step p, .section-ink .steps p { color: #C3CCE2; }
.section-ink .step h3, .section-ink .steps h3 { color: #fff; }
.card-ink a:not(.btn), .section-ink a:not(.btn), .cta-band a:not(.btn) { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.55); text-underline-offset: 3px; }
.card-ink a:not(.btn):hover, .section-ink a:not(.btn):hover, .cta-band a:not(.btn):hover { text-decoration-color: #fff; }

/* hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 clamp(36px, 5vw, 72px); position: relative; overflow: hidden; }
.hero .lede { margin-top: 6px; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; }
.hero-bg .blob.mint { width: 420px; height: 420px; background: var(--mint); right: -120px; top: -140px; }
.hero-bg .blob.gold { width: 360px; height: 360px; background: var(--gold); left: -160px; bottom: -200px; opacity: .3; }
.hero-bg .blob.blue { width: 300px; height: 300px; background: var(--blue); right: 20%; bottom: -200px; opacity: .18; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-art { position: relative; }
.hero-stack { position: relative; aspect-ratio: 5 / 4; }
.hero-stack .shot { position: absolute; }
.hero-stack .shot.back { width: 76%; right: 0; top: 0; }
.hero-stack .shot.front { width: 68%; left: 0; bottom: 0; }
.hero-stack .mascot { position: absolute; width: 96px; right: 6%; bottom: 4%; z-index: 3; filter: drop-shadow(0 10px 20px rgba(24, 36, 61, .25)); }
.float-chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; font-weight: 800; font-size: .86rem; box-shadow: var(--shadow-md); font-family: var(--font-display); }
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
@media (max-width: 860px) { .hero-stack { aspect-ratio: 16 / 11; } .hero-stack .mascot { width: 70px; } }

/* screenshot frame (browser window) */
.shot { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); overflow: hidden; }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #D8D8CF; }
.shot-bar span:nth-child(1) { background: #F5A09A; } .shot-bar span:nth-child(2) { background: var(--gold); } .shot-bar span:nth-child(3) { background: var(--mint); }
.shot-bar .shot-url { margin-left: 8px; flex: 1; height: 16px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: .62rem; color: var(--ink-muted); padding: 0 8px; line-height: 14px; font-family: var(--font-display); font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.shot.tablet { border-radius: 26px; border: 6px solid var(--ink); background: var(--ink); box-shadow: var(--shadow-lg); }
.shot.tablet img { border-radius: 18px; aspect-ratio: 4 / 3; }
.shot.dark .shot-bar { background: #1E2A47; border-color: #2B3860; } .shot.dark .shot-url { background: #141D33; border-color: #2B3860; color: #AAB5D2; }

/* trust strip */
.trust-strip { background: var(--ink); color: #E3E8F4; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; align-items: center; padding-top: 14px; padding-bottom: 14px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; }
.trust-strip .icon { width: 18px; height: 18px; color: var(--mint); margin-right: 7px; }
.trust-strip span { display: inline-flex; align-items: center; }

/* feature rows + icon features */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .tile { width: 48px; height: 48px; border-radius: 13px; }
.feature h3 { margin: 2px 0 4px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--ink-soft); }
.feature-list { display: grid; gap: 22px; }
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { position: relative; padding-left: 62px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.step h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--ink-soft); }
.steps.row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px; }
.steps.row .step { padding-left: 0; padding-top: 58px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } }
.compare .card h3 { display: flex; align-items: center; gap: 10px; }
.compare ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--ink-soft); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 14px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--ink-muted); font-weight: 600; font-size: .9rem; }
.callout { border-radius: var(--r); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; background: var(--blue-tint); color: var(--ink); }
.callout .icon { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--blue-text); }
.callout.mint { background: var(--mint-tint); } .callout.mint .icon { color: var(--mint-text); }
.callout.gold { background: var(--gold-tint); } .callout.gold .icon { color: var(--gold-text); }
.callout p { margin: 0; }
.quote { border-left: 4px solid var(--gold); padding: 6px 0 6px 20px; font-size: 1.15rem; color: var(--ink); font-style: italic; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: .92rem; color: var(--ink-muted); font-weight: 700; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid var(--paper); box-shadow: var(--shadow-md); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .pill { font-size: .82rem; padding: 5px 11px; }
.device-chips .pill .icon { color: var(--ink-soft); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-md); }
.price-card .ribbon { position: absolute; top: -13px; left: 24px; background: var(--gold); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.price-card h3 { margin: 0; font-size: 1.3rem; }
.price-card .who { color: var(--ink-muted); font-weight: 700; font-size: .92rem; margin: -8px 0 0; }
.price-amt { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price-amt b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.price-amt span { color: var(--ink-muted); font-weight: 700; }
.price-alt { color: var(--ink-soft); font-weight: 700; font-size: .95rem; margin: -6px 0 0; }
.price-card .checks { margin: 4px 0 8px; }
.price-card .cta-stack { display: grid; gap: 10px; margin-top: auto; }
.price-card .fine { font-size: .82rem; color: var(--ink-muted); text-align: center; }
.toggle-group { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.toggle-group button { border: 0; background: transparent; border-radius: var(--r-pill); padding: 8px 16px; font-family: var(--font-display); font-weight: 800; cursor: pointer; color: var(--ink-soft); }
.toggle-group button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 4px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; color: var(--ink-soft); transition: transform .2s var(--ease), background-color .2s; }
.faq details[open] summary::after { content: '–'; background: var(--gold); color: var(--ink); }
.faq details > div { padding: 0 4px 20px; color: var(--ink-soft); max-width: 760px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* forms */
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field > span.label { font-family: var(--font-display); font-weight: 800; font-size: .9rem; color: var(--ink); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(56, 103, 239, .25); outline-offset: 0; }
.field .hint { font-size: .84rem; color: var(--ink-muted); }
.form-status { font-weight: 700; font-size: .95rem; min-height: 1.4em; color: var(--ink-soft); }
.form-status.ok { color: var(--ok); } .form-status.bad { color: var(--danger); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* directory */
.dir-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 24px; }
.dir-search { flex: 1 1 260px; position: relative; }
.dir-search input { width: 100%; font: inherit; padding: 12px 14px 12px 42px; min-height: 48px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); }
.dir-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-muted); }
.dir-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dir-filters button { border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink-soft); border-radius: var(--r-pill); padding: 9px 16px; font-family: var(--font-display); font-weight: 800; font-size: .9rem; cursor: pointer; min-height: 40px; }
.dir-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.dir-card { display: flex; flex-direction: column; gap: 10px; }
.dir-card .tool-card-head h3 { font-size: 1.12rem; }
.dir-card .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .82rem; color: var(--ink-muted); font-weight: 700; }
.dir-card.is-closed { background: var(--cream-2); border-color: transparent; box-shadow: none; }
.dir-card.is-closed .tile { filter: grayscale(.6); opacity: .8; }
.dir-empty { text-align: center; padding: 40px 20px; color: var(--ink-muted); }
.dir-count { color: var(--ink-muted); font-weight: 700; font-size: .9rem; margin-left: auto; }

/* product page */
.prod-hero .tile { margin-bottom: 18px; }
.prod-hero h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem); }
.prod-hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.prod-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin-top: 22px; }
.prod-meta div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.prod-meta b { display: block; font-family: var(--font-display); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 4px; }
.prod-meta span { font-weight: 700; color: var(--ink); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-top: 1px solid var(--line); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 0; }
.spec-table th { width: 220px; font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--cream-2); }
.spec-table td { color: var(--ink-soft); }
@media (max-width: 600px) { .spec-table th { width: 140px; } }
.prod-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.prod-nav a { font-size: .9rem; padding: 7px 12px; border-radius: var(--r-pill); background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft); }
.prod-nav a:hover { color: var(--ink); text-decoration: none; border-color: var(--line-strong); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }

/* doc (legal / long-form) pages */
.doc-hero { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.doc-hero h1 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); margin-bottom: 8px; }
.doc-hero .updated { color: var(--ink-muted); font-weight: 700; font-size: .92rem; }
.doc-hero .lede { margin-top: 10px; }
.doc-body { padding: 36px 0 60px; }
.doc-body h2 { font-size: 1.5rem; margin: 36px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.doc-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.doc-body th, .doc-body td { text-align: left; padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.doc-body th { background: var(--cream-2); font-family: var(--font-display); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }
.changelog-entry { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 24px 0; border-top: 1px solid var(--line); }
.changelog-entry:first-of-type { border-top: 0; }
.changelog-entry time { font-family: var(--font-display); font-weight: 800; color: var(--ink-muted); font-size: .9rem; padding-top: 4px; }
.changelog-entry h3 { margin: 0 0 8px; }
.changelog-entry li b { font-family: var(--font-display); color: var(--ink); }
@media (max-width: 600px) { .changelog-entry { grid-template-columns: 1fr; gap: 6px; } }
.link-list { display: grid; gap: 12px; }
.link-list a { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.link-list a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); text-decoration: none; }
.link-list a b { display: block; font-family: var(--font-display); }
.link-list a small { color: var(--ink-muted); font-weight: 600; }
.link-list a .icon.arrow { margin-left: auto; color: var(--ink-muted); }

/* final CTA band */
.cta-band { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #C3CCE2; margin: 0; }
.cta-band .cta-row { margin-top: 0; justify-content: flex-end; }
.cta-band::after { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: var(--mint); opacity: .18; filter: blur(60px); right: -80px; top: -120px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .cta-row { justify-content: flex-start; } }

/* ═══════════════════ 6. MOTION ═══════════════════ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
  .btn:active { transform: translateY(0); box-shadow: none; }
  a.card, .mini-card, .tool-card { transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
  a.card:hover, .mini-card:hover { transform: translateY(-3px); }
  @keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, -24px) scale(1.08); } }
  .hero-bg .blob { animation: drift 18s var(--ease) infinite alternate; }
  .hero-bg .blob.gold { animation-duration: 24s; }
  @keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
  .float-chip { animation: bob 3.2s ease-in-out infinite alternate; }
  .float-chip:nth-of-type(2) { animation-delay: -1.4s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════════════ 7. PRINT ═══════════════════ */
@media print {
  .site-nav, .site-footer, .skip, .cta-band, .hero-bg, .nav-burger { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .shot { box-shadow: none; }
  a { color: inherit; text-decoration: underline; }
}
