/* Beaverbit landing on inquisitiveflow.ca only.
   Palette and type follow the app (src/ui/brand.css): near-black, red accent, Inter/system sans.
   No web fonts, no animations; the only motion is hover/focus and the play-once hero clip. */

.bb-landing {
  --bb-bg: #0a0a0a;
  --bb-surface: #141416;
  --bb-surface-2: #1a1a1d;
  --bb-line: #333338;
  --bb-line-strong: #4a4a52;
  --bb-text: #f5f5f6;
  --bb-quiet: #aaaab4;
  --bb-dim: #86868f;
  --bb-violet: #ff7b7b;        /* the app's red, lightened for text on near-black (6.5:1) */
  --bb-violet-line: #ef4444;
  --bb-fill: #ef4444;
  --bb-fill-ink: #ffffff;
  --bb-serif: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
  margin: 0;
  background: var(--bb-bg);
  color: var(--bb-text);
  font: 16px/1.6 var(--bb-serif);
  -webkit-text-size-adjust: 100%;
}
.bb-landing *, .bb-landing *::before, .bb-landing *::after { box-sizing: border-box; }
:where(.bb-landing) :where(h1, h2, h3, p, figure, ul, ol) { margin: 0; }
.bb-landing h1, .bb-landing h2, .bb-landing h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
.bb-landing em { font-style: normal; color: var(--bb-violet); }
:where(.bb-landing) a { color: inherit; text-decoration: none; }
:where(.bb-landing) button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.bb-landing img { display: block; max-width: 100%; height: auto; }
.bb-landing :focus-visible { outline: 2px solid var(--bb-violet); outline-offset: 3px; }
.bb-landing ::selection { background: var(--bb-violet); color: var(--bb-fill-ink); }

.bb-skip { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 14px; background: var(--bb-fill); color: var(--bb-fill-ink) !important; border-radius: 6px; }
.bb-skip:focus { top: 12px; }

.bb-wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Links and buttons */
.bb-text-link { color: var(--bb-violet); border-bottom: 1px solid transparent; }
.bb-text-link:hover { border-bottom-color: var(--bb-violet-line); }
.bb-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--bb-line-strong); white-space: nowrap; transition: background-color .15s, border-color .15s; }
.bb-button:hover { border-color: var(--bb-text); }
.bb-primary { background: var(--bb-fill); color: var(--bb-fill-ink); border-color: var(--bb-fill); }
.bb-primary:hover { background: #dc2626; border-color: #dc2626; }
.bb-outline { background: transparent; color: var(--bb-text); }
.bb-large { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }

/* Header */
.bb-header { display: flex; align-items: center; gap: 20px; width: min(1160px, 100% - 32px); margin-inline: auto; padding: 14px 0; border-bottom: 1px solid var(--bb-line); }
.bb-brand { display: flex; align-items: center; gap: 14px; }
.bb-brand-home img { width: 110px; height: 42px; object-fit: contain; }
.bb-brand-product { padding-left: 14px; border-left: 1px solid var(--bb-line); font-size: 1.2rem; color: var(--bb-violet); }
.bb-navigation { display: flex; gap: 22px; margin-left: 24px; color: var(--bb-quiet); }
.bb-navigation a:hover { color: var(--bb-text); }
.bb-navigation .bb-nav-signin { display: none; }
.bb-header-end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.bb-languages { display: flex; gap: 6px; margin-right: 6px; font-size: 0.9rem; color: var(--bb-dim); }
.bb-languages [aria-current] { color: var(--bb-text); }
.bb-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--bb-line-strong); border-radius: 8px; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.bb-menu span { display: block; width: 18px; height: 1.5px; background: var(--bb-text); }

/* Hero: copy beside the portrait (play-once clip, poster = the same portrait as WebP), then the workspace screen */
.bb-hero { padding: 48px 0 24px; }
.bb-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); gap: 32px 56px; align-items: start; }
.bb-hero-video, .bb-hero-still { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--bb-line); border-radius: 12px; background: var(--bb-surface); }
.bb-landing .bb-hero-still { display: none; }
.bb-eyebrow { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bb-dim); }
.bb-hero h1 { max-width: 22ch; margin-top: 16px; font-size: clamp(2rem, 4vw, 3.1rem); }
.bb-lede { max-width: 66ch; margin-top: 28px; font-size: 1.12rem; color: var(--bb-quiet); }
.bb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.bb-micro { margin-top: 14px; font-size: 0.92rem; color: var(--bb-dim); }
.bb-shot { margin-top: 40px; }
.bb-shot img { border: 1px solid var(--bb-line); border-radius: 10px; background: var(--bb-surface); }
.bb-shot figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--bb-dim); }
.bb-shot-wide img { width: 100%; }

/* Sections */
.bb-section { padding: 72px 0 8px; }
.bb-section-heading { max-width: 70ch; }
.bb-section-heading h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.bb-section-heading p { margin-top: 12px; font-size: 1.08rem; color: var(--bb-quiet); }
.bb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.bb-card { padding: 24px; border: 1px solid var(--bb-line); border-radius: 10px; background: var(--bb-surface); }
.bb-card h3 { font-size: 1.25rem; }
.bb-card p { margin-top: 10px; color: var(--bb-quiet); }
.bb-card .bb-text-link { display: inline-block; margin-top: 14px; }
.bb-hint { max-width: 70ch; margin-top: 20px; font-size: 0.92rem; color: var(--bb-dim); }

/* How a thread works */
.bb-how { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px 56px; align-items: start; }
.bb-steps { list-style: none; margin: 32px 0 0; padding: 0; }
.bb-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--bb-line); }
.bb-steps h3 { font-size: 1.2rem; }
.bb-steps p { margin-top: 6px; color: var(--bb-quiet); }
.bb-step-number { padding-top: 4px; font-size: 0.85rem; letter-spacing: 0.08em; color: var(--bb-violet); }
.bb-shot-phone { margin-top: 0; justify-self: end; width: 100%; max-width: 340px; }
.bb-shot-phone img { border-radius: 26px; border-color: var(--bb-line-strong); -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
.bb-shot-journey { grid-column: 1 / -1; margin-top: 8px; }

/* Four feature cards; pairs of screens */
.bb-cards-4 { grid-template-columns: repeat(4, 1fr); }
.bb-two-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 28px; margin-top: 32px; }
.bb-two-shots .bb-shot { margin-top: 0; }
#path .bb-steps { max-width: 760px; }
#about .bb-actions { margin-top: 28px; }

/* Plans */
.bb-plan-price { margin-top: 8px; font-size: 2.2rem; line-height: 1; }
.bb-plan-price small { font-size: 0.95rem; color: var(--bb-dim); }
.bb-plan ul { margin: 16px 0 0; padding-left: 18px; color: var(--bb-quiet); }
.bb-plan li + li { margin-top: 6px; }
.bb-plan .bb-button { width: 100%; margin-top: 22px; white-space: normal; }

/* FAQ */
.bb-faq h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 20px; }
.bb-faq details { border-top: 1px solid var(--bb-line); }
.bb-faq details:last-of-type { border-bottom: 1px solid var(--bb-line); }
.bb-faq summary { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; font-size: 1.08rem; cursor: pointer; list-style: none; }
.bb-faq summary::-webkit-details-marker { display: none; }
.bb-faq summary span { color: var(--bb-violet); flex: none; }
.bb-faq details[open] summary span { transform: rotate(45deg); display: inline-block; }
.bb-faq details p { max-width: 72ch; padding: 0 0 18px; color: var(--bb-quiet); }
.bb-faq-group { margin: 40px 0 12px; font-size: 1.3rem; }
.bb-policy-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; }
.bb-policy-links a { color: var(--bb-violet); }

/* Closing + footer */
.bb-closing { padding: 80px 0 72px; text-align: center; }
.bb-closing h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.bb-closing .bb-actions { justify-content: center; }
.bb-footer { display: grid; grid-template-columns: 1fr auto; gap: 16px 40px; padding: 28px 0 40px; border-top: 1px solid var(--bb-line); color: var(--bb-quiet); font-size: 0.95rem; }
.bb-footer-brand { color: var(--bb-violet); font-size: 1.1rem; }
.bb-footer p { margin-top: 4px; }
.bb-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-self: center; }
.bb-footer nav a:hover { color: var(--bb-text); }
.bb-footer small { grid-column: 1 / -1; font-size: 0.85rem; color: var(--bb-dim); }

/* Responsive */
@media (max-width: 1100px) {
  .bb-navigation { gap: 16px; }
  .bb-cards-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .bb-menu { display: flex; }
  .bb-navigation { display: none; position: absolute; left: 16px; right: 16px; top: 74px; z-index: 20; flex-direction: column; gap: 0; margin: 0; padding: 8px 0; background: var(--bb-surface-2); border: 1px solid var(--bb-line-strong); border-radius: 10px; }
  .bb-navigation.is-open { display: flex; }
  .bb-navigation a { padding: 12px 18px; }
  .bb-navigation .bb-nav-signin { display: block; }
  .bb-header { position: relative; }
  .bb-cards, .bb-cards-4 { grid-template-columns: 1fr; }
  .bb-two-shots { grid-template-columns: 1fr; }
  .bb-hero-grid { grid-template-columns: 1fr; }
  .bb-hero-art { max-width: 420px; }
  .bb-how { grid-template-columns: 1fr; }
  .bb-shot-phone { justify-self: start; margin-top: 8px; }
}
@media (max-width: 650px) {
  .bb-brand-product { display: none; }
  .bb-menu { order: 3; }
  .bb-header-end { order: 2; }
  .bb-shot-hero img { max-width: 340px; margin-inline: auto; border-radius: 26px; }
  .bb-how .bb-shot-phone { display: none; }   /* the hero already shows the phone screen at this width */
  .bb-header-cta { display: none; }   /* the hero's Start free sits just below; Sign in stays in the header */
  .bb-header { gap: 12px; padding: 12px 0; }
  .bb-header-end { gap: 8px; }
  .bb-hero { padding-top: 36px; }
  .bb-hero-copy { display: flex; flex-direction: column; }
  .bb-hero-copy .bb-eyebrow { order: 0; } .bb-hero-copy h1 { order: 1; } .bb-hero-copy .bb-actions { order: 2; } .bb-hero-copy .bb-micro { order: 3; } .bb-hero-copy .bb-lede { order: 4; margin-top: 22px; }
  .bb-hero-art { max-width: 340px; }
  .bb-section { padding-top: 56px; }
  .bb-footer { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bb-landing * { transition: none !important; }
  .bb-landing .bb-hero-video { display: none; }
  .bb-landing .bb-hero-still { display: block; }
}
