/* ===========================================================================
   The public company website (PH-2, extended by PH-3): the home page
   (public/pending-home.html), the about page (public/about.html) and the
   support page (public/support.html)
   ===========================================================================
   Three static pages with no JavaScript. Each loads only tokens.css, the three
   Burrow font sheets, this file and footer.css, so every value below is a
   canonical token (docs/design-system.md) or a deliberate literal noted beside
   it. None links bb-public.css: that sheet belongs to the real home deck, and
   these pages must neither depend on it nor change it.

   Layout (PH-1's approved frame): a white card on the page background, with
   Patch peeking over its top edge, and the shared footer (footer.css) at the
   foot of the page. Home and About open with a quiet top navigation. The home
   page stacks its hero card, the five feature cards and the maker card; the
   about and support cards are a wider, left-aligned reading column. Desktop is
   the reference; at phone width (≤900px, the public breakpoint) everything
   becomes one column.
   =========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.bb-site {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--color-base-2);
  color: var(--color-base-17);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: var(--tracking-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* :where() keeps this reset at zero specificity, so a component's own margin
   (.bb-site-lede's auto centring) always wins over it. */
.bb-site :where(p, h1, h2, ul, address) { margin: 0; }

/* ── Top navigation (Home and About) ──────────────────────────────────────
   Four links in a row at the top right of the page. The current page wears a
   raised white pill (LAW-1 ring); "Sign in" is the primary pill, written with
   the public button standard's values (.bb-btn-primary in bb-public.css:
   base-14 fill, base-16 hover, the scale(0.9) press over 300ms --ease-calm).
   The list is a flex row, so each link renders as its own line of text. */
.bb-site-head {
  display: flex;
  justify-content: center;
  padding: var(--space-1-5) var(--space-2) 0;
}
.bb-site-nav { width: 100%; max-width: 64rem; }
.bb-site-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-0-5);
  padding: 0;
  list-style: none;
}
.bb-site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;          /* a 44px touch target */
  padding: 0 var(--space-1);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-base-14);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) var(--ease-out),
              transform 300ms var(--ease-calm);
}
.bb-site-nav-link:hover {
  color: var(--color-base-16);
  background: var(--color-base-3);
  box-shadow: var(--outline-default);
}
.bb-site-nav-link[aria-current="page"] {
  color: var(--color-base-20);
  background: var(--color-white);
  box-shadow: var(--outline-default);
}
.bb-site-nav-link[aria-current="page"]:hover { box-shadow: 0 0 0 var(--outline-width) var(--color-base-7); }
.bb-site-nav-link--signin {
  margin-left: var(--space-0-5);
  padding: 0 var(--space-1-5);
  color: var(--color-white);
  background: var(--color-base-14);
}
.bb-site-nav-link--signin:hover {
  color: var(--color-white);
  background: var(--color-base-16);
  box-shadow: none;
}
.bb-site-nav-link--signin:active { transform: scale(0.9); }
.bb-site-nav-link:focus-visible {
  outline: 2px solid var(--color-blue-16);
  outline-offset: 3px;
}

/* A page with the top navigation needs less air above its card. */
.bb-site-head + .bb-site-main { padding-top: var(--space-2); }

.bb-site-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-2) var(--space-3);
}

/* The stage holds Patch and the card as siblings, so the card (later in the
   DOM, positioned) paints OVER the bottom of his image: he reads as peeking
   from behind the card's top edge rather than sitting on it. */
.bb-site-stage {
  width: 100%;
  max-width: 36rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bb-site-stage--doc { max-width: 42rem; }

/* mascot-peeking.png is 256×256 with his face cut flat at the bottom edge.
   The negative margin tucks the last few pixels of that edge behind the card. */
.bb-site-patch {
  display: block;
  width: 8rem;
  height: auto;
  margin-bottom: -0.5rem;
  user-select: none;
  -webkit-user-drag: none;
}

/* A raised surface: white on base-2, the 1px base-5 shadow ring (LAW 1). */
.bb-site-card {
  position: relative;
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--outline-default);
  padding: var(--space-3) var(--space-3) var(--space-2-5);
  text-align: center;
}
.bb-site-card--doc { text-align: left; }

.bb-site-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(2.125rem, 1.25rem + 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: var(--tracking-title);
  color: var(--color-base-20);
}

.bb-site-h2 {
  margin-top: var(--space-2-5);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.25;
  letter-spacing: var(--tracking-title);
  color: var(--color-base-20);
}

.bb-site-lede {
  max-width: 30rem;
  margin: var(--space-1-25) auto 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-base-17);
  text-wrap: balance;
}
.bb-site-card--doc .bb-site-lede { max-width: none; margin-left: 0; margin-right: 0; text-wrap: pretty; }

.bb-site-text {
  margin-top: var(--space-1-25);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-base-17);
  text-wrap: pretty;
}

.bb-site-text strong,
.bb-site-faq strong,
.bb-site-lede strong,
.bb-site-feature-text strong { font-weight: 700; color: var(--color-base-20); }

/* ── Home: the hero card, the five feature cards, the maker card ─────────── */
.bb-site-main--home {
  flex-direction: column;
  justify-content: flex-start;
  gap: var(--space-2-5);
}

/* The five sections: a six-track grid where each card spans two tracks, so
   the first row holds three and the second row's two sit centred beneath. */
.bb-site-features {
  width: 100%;
  max-width: 64rem;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-1-5);
}
.bb-site-feature {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  padding: var(--space-2);
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--outline-default);
}
.bb-site-feature:nth-child(4) { grid-column: 2 / span 2; }
.bb-site-feature:nth-child(5) { grid-column: 4 / span 2; }

/* The section's glyph: the platform's own left-nav icon for it (the five
   path constants are named in docs/pending-home.md), base-14 on a base-1
   tile with the LAW-1 ring. Decorative: the run-in name is the text. */
.bb-site-feature-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-base-1);
  box-shadow: var(--outline-default);
  color: var(--color-base-14);
}
.bb-site-feature-icon svg { display: block; width: 1.5rem; height: 1.5rem; }

.bb-site-feature-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-base-17);
  text-wrap: pretty;
}

/* Who makes it, and how to reach us: a narrower, quieter card. */
.bb-site-card--maker {
  max-width: 36rem;
  padding: var(--space-2) var(--space-2-5) var(--space-1-5);
}
.bb-site-card--maker .bb-site-text { margin-top: 0; }

/* The card's foot: a hairline, then the contact line. */
.bb-site-contact {
  margin-top: var(--space-2);
  padding-top: var(--space-1-5);
  border-top: 1px solid var(--color-base-3);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-base-13);
  overflow-wrap: anywhere;
}

.bb-site-faq {
  margin-top: var(--space-1);
  padding: 0;
  list-style: none;
}
.bb-site-faq li {
  padding: var(--space-1) 0;
  border-top: 1px solid var(--color-base-3);
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.bb-site-faq li:first-child { border-top: 0; }

/* The company block (an <address>): small, muted, set apart by a hairline. */
.bb-site-company {
  margin-top: var(--space-2);
  padding-top: var(--space-1-5);
  border-top: 1px solid var(--color-base-3);
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-base-13);
}
.bb-site-company .bb-site-sep { color: var(--color-base-8); }
.bb-site-company strong { font-weight: 700; color: var(--color-base-17); }

/* A closing note under the company block (About's legal-pages sentence): the
   block's own small, muted voice, so the card ends as one quiet unit. */
.bb-site-text--note {
  margin-top: var(--space-0-75);
  font-size: 0.875rem;
  color: var(--color-base-13);
}

/* Text links: the platform link treatment PH-1 used (base-14, base-5 underline;
   +2 darker on hover). */
.bb-site-link {
  color: var(--color-base-14);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-base-5);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
  transition: color var(--motion-fast) var(--ease-out),
              text-decoration-color var(--motion-fast) var(--ease-out);
}
.bb-site-link:hover {
  color: var(--color-base-16);
  text-decoration-color: var(--color-base-14);
}
.bb-site-link:focus-visible {
  outline: 2px solid var(--color-blue-16);
  outline-offset: 3px;
}

/* Phone web (the public pages' breakpoint). */
@media (max-width: 900px) {
  .bb-site-main { padding: var(--space-3) var(--space-1) var(--space-2); }
  .bb-site-patch { width: 6.5rem; }
  .bb-site-card { padding: var(--space-2-5) var(--space-1-5) var(--space-1-5); }
  .bb-site-lede { font-size: 1.0625rem; }
  .bb-site-h2 { font-size: 1.25rem; }

  /* The navigation centres and tightens so its four links fit one row at 320px. */
  .bb-site-head { padding: var(--space-1) var(--space-1) 0; }
  .bb-site-nav-list { justify-content: center; gap: var(--space-0-25); }
  .bb-site-nav-link { padding: 0 var(--space-0-75); font-size: 0.9rem; }
  .bb-site-nav-link--signin { margin-left: var(--space-0-25); padding: 0 var(--space-1); }
  .bb-site-head + .bb-site-main { padding-top: var(--space-1-5); }

  /* One column of feature cards, each with its glyph beside the text. */
  .bb-site-main--home { gap: var(--space-1-5); }
  .bb-site-features { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
  .bb-site-features > .bb-site-feature { grid-column: auto; }
  .bb-site-feature { flex-direction: row; gap: var(--space-1); padding: var(--space-1-5); }
  .bb-site-card--maker { padding: var(--space-1-5) var(--space-1-5) var(--space-1-25); }
}

/* The pages have no animation; the colour fades and the Sign in press are
   their only motion. */
@media (prefers-reduced-motion: reduce) {
  .bb-site-link,
  .bb-site-nav-link { transition: none; }
  .bb-site-nav-link--signin:active { transform: none; }
}
