/* Newsletter / Pro waitlist boxes, the Scorecard and the 2BB Pro page.
   Loaded last, after brand.css, and uses its colour tokens. */

/* ---- Sign-up box ---------------------------------------------------------- */
.nl-box {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.25rem 2rem; align-items: center;
  margin: 2.5rem 0 1rem; padding: 1.5rem clamp(1rem, 3vw, 2rem);
  border: 1px solid color-mix(in srgb, var(--bull) 35%, var(--line)); border-radius: 16px;
  background:
    radial-gradient(28rem 16rem at 0% 0%, color-mix(in srgb, var(--bull) 14%, transparent), transparent 70%),
    color-mix(in srgb, var(--card) 92%, transparent);
  color: var(--text);
}
.nl-box .eyebrow { color: var(--bull); }
.nl-box h2 { margin: .3rem 0 .4rem; font-size: clamp(1.15rem, 2.2vw, 1.4rem); line-height: 1.25; }
.nl-box p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.nl-form { display: grid; gap: .6rem; min-width: 0; }
.nl-row { display: flex; gap: .5rem; min-width: 0; }
.nl-row input {
  flex: 1 1 auto; min-width: 0; padding: .75rem .9rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px;
}
.nl-row input:focus { outline: 2px solid color-mix(in srgb, var(--bull) 60%, transparent); outline-offset: 1px; }
.nl-row button {
  flex: 0 0 auto; padding: .75rem 1.1rem; font: inherit; font-weight: 700; cursor: pointer;
  color: var(--on-accent); background: var(--bull); border: 0; border-radius: 10px;
}
.nl-row button:hover { background: var(--bull-strong); }
.nl-row button:disabled { opacity: .6; cursor: default; }
.nl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.nl-consent { display: flex; gap: .5rem; align-items: flex-start; font-size: .78rem; line-height: 1.45; color: var(--muted-2); }
.nl-consent input { margin-top: .15rem; flex: 0 0 auto; accent-color: var(--bull); }
.nl-consent a { color: var(--muted); text-decoration: underline; }
.nl-msg { min-height: 1.2em; font-size: .88rem !important; }
.nl-msg.is-ok { color: var(--bull) !important; }
.nl-msg.is-error { color: var(--bear) !important; }
.nl-form.is-done .nl-row, .nl-form.is-done .nl-consent { display: none; }
.nl-form.is-done .nl-msg { font-size: 1rem !important; font-weight: 700; }
@media (max-width: 760px) {
  .nl-box { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .nl-row { flex-direction: column; }
}

/* Pro teaser on company pages */
.pro-teaser { border-color: color-mix(in srgb, var(--bear) 30%, var(--line)); }
.pro-teaser-list { margin: .3rem 0 .6rem; padding-left: 1.1rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.pro-teaser a { color: var(--bull); }

/* Footer sign-up: hidden when the page already has a box */
.footer-nl { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .75rem 2rem; align-items: center;
  padding: 1.1rem 0; border-top: 1px solid var(--line); }
.footer-nl strong { display: block; color: var(--text); }
.footer-nl span { font-size: .88rem; }
body:has(#app .nl-box) .footer-nl { display: none; }
@media (max-width: 700px) { .footer-nl { grid-template-columns: 1fr; } }

/* Nav: Pro link */
.top-nav a.nav-pro { color: var(--bull) !important; font-weight: 700; }

/* ---- Scorecard ------------------------------------------------------------ */
.sc-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: .8rem; margin: 1.25rem 0 1.75rem; }
.sc-tile {
  display: grid; gap: .25rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px;
  background: color-mix(in srgb, var(--card) 92%, transparent);
}
.sc-tile span { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.sc-tile strong { font-size: 1.7rem; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.sc-tile small { font-size: .82rem; color: var(--muted); }
.sc-tile.is-up strong, .sc-table .is-up { color: var(--bull) !important; }
.sc-tile.is-down strong, .sc-table .is-down { color: var(--bear) !important; }
.sc-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.sc-two h3 { margin: .5rem 0; font-size: 1rem; }
.sc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sc-table th, .sc-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.sc-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.sc-table td.num, .sc-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.sc-two .sc-table th:nth-child(2) { text-align: left; }
.sc-table td small { display: block; color: var(--muted-2); font-size: .78rem; }
.sc-table a { font-weight: 700; color: var(--text); }

/* ---- 2BB Pro page ---------------------------------------------------------- */
.pro-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-items: center; margin-top: 1rem !important; }
.pro-hero-actions .primary { display: inline-block; padding: .75rem 1.2rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.pro-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.pro-plan {
  display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem; border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent); color: var(--text);
}
.pro-plan.is-pro { border-color: color-mix(in srgb, var(--bull) 45%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bull) 20%, transparent); }
.pro-plan h2 { margin: 0; font-size: 1.35rem; }
.pro-price { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--bull); }
.pro-plus { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.pro-plan ul { margin: .25rem 0 1rem; padding-left: 1.1rem; color: var(--muted); line-height: 1.6; flex: 1 1 auto; }
.pro-plan > a { align-self: flex-start; padding: .65rem 1.1rem; border-radius: 10px; font-weight: 700; text-decoration: none; }
.pro-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.pro-trust div { padding: 1rem 1.1rem; border-left: 3px solid var(--bull); background: color-mix(in srgb, var(--card) 70%, transparent); border-radius: 0 12px 12px 0; }
.pro-trust strong { color: var(--text); }
.pro-trust p { margin: .3rem 0 0; color: var(--muted); font-size: .92rem; }
.pro-trust a { color: var(--bull); }
.pro-faq { margin: 2rem 0; max-width: 46rem; }
.pro-faq h2 { font-size: 1.3rem; }
.pro-faq-item { border-bottom: 1px solid var(--line); padding: .85rem 0; }
.pro-faq-item summary { cursor: pointer; font-weight: 700; color: var(--text); }
.pro-faq-item p { margin: .5rem 0 0; color: var(--muted); line-height: 1.55; }
#waitlist { scroll-margin-top: 6rem; }

/* Guides: "Try it on 2BB" links */
.guide-try ul { padding-left: 1.1rem; line-height: 1.8; }
.guide-try a { color: var(--bull); font-weight: 600; }
