/* The FOUNDING offer, as ONE component sheet (2026-09-10).
 *
 * WHY IT IS ITS OWN FILE. `planner/_founding_offer.html` renders the same
 * offer in three shapes -- the full aside on the public product pages, the
 * homepage strip, and the compact one-liner on the authenticated locked
 * Product Center, the sponsor page and Account & access -- but its rules
 * lived in `navy/public_products.css`, which the authenticated surfaces do
 * not load. The compact line therefore shipped unstyled on all three of
 * them: no border, no background, no code chip, so the one thing that had
 * to be noticed read as ordinary paragraph text.
 *
 * The fix is the boundary, not a copy: every surface that includes the
 * partial links THIS sheet, and nothing else carries a `.nxp-founding` rule.
 * Colour is the offer's own gold, deliberately fixed rather than tokenised:
 * the panel must look the same on the public navy pages and inside the
 * product, and the offer is a commercial artefact rather than a product
 * surface. Logical properties throughout, so RTL needs no override.
 */

.nxp-founding {
  margin: 0.5rem auto 1.5rem;
  max-width: var(--nx-shell-max, 72rem);
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  border: 2px solid #f0b23a;
  background: linear-gradient(135deg, rgba(240, 178, 58, 0.16), rgba(240, 178, 58, 0.04));
}
.nxp-founding-kicker { margin: 0 0 0.25rem; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: #f0b23a; }
[dir="rtl"] .nxp-founding-kicker { letter-spacing: 0; text-transform: none; }
.nxp-founding-title { margin: 0 0 0.6rem; font-size: clamp(1.25rem, 2.4vw, 1.7rem); }
.nxp-founding-code-line { margin: 0 0 0.75rem; font-size: 1.05rem; }
.nxp-founding-code { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 0.4rem; background: #f0b23a; color: #101820; font-weight: 800; letter-spacing: 0.12em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nxp-founding-terms { margin: 0 0 0.75rem; padding-inline-start: 1.2rem; line-height: 1.55; }
.nxp-founding-terms li + li { margin-top: 0.3rem; }
.nxp-founding-howto { margin: 0; font-weight: 600; line-height: 1.5; }

/* The homepage strip: the offer's main statement beside its terms, one band. */
.nxp-founding--strip { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1rem 2.5rem; align-items: start; margin: 0; }
.nxp-founding-strip-main { min-width: 0; }
.nxp-founding-strip-main .nxp-founding-howto { margin-top: 0.9rem; }
.nxp-founding-terms--strip { margin: 0.35rem 0 0; font-size: 0.93rem; line-height: 1.6; opacity: 0.92; }
@media (max-width: 760px) { .nxp-founding--strip { grid-template-columns: 1fr; } }

/* The compact line, inside the product: the locked Product Center, the
   sponsor page and Account & access. Same offer, one row, no headline --
   the surrounding page has already said where the reader is. */
.nxp-founding--compact {
  margin: 0.6rem 0 0;
  max-width: none;
  padding: 0.6rem 0.9rem;
  border-radius: 0.6rem;
  border: 1px solid #f0b23a;
  background: rgba(240, 178, 58, 0.1);
  color: var(--nx-body, inherit);
  font-size: 0.95rem;
  line-height: 1.5;
}
[dir="rtl"] .nxp-founding--compact { line-height: 1.8; }
.nxp-founding--compact .nxp-founding-code { margin-inline-end: 0.4rem; padding: 0.05rem 0.45rem; }
.nxp-founding--compact a { color: var(--nx-cyan, #35cfe3); }
.nxp-founding--compact a:hover { color: var(--nx-link-hover, #7fdff0); }

@media (max-width: 640px) {
  .nxp-founding { padding: 1rem 1.1rem; }
}
