/* ============================================================================
 * ui.css — styling for the shared components in templates/ui/.
 * ============================================================================
 * References tokens only (see tokens.css). No raw hex, so every component here
 * inherits dark mode and the per-product .product-* palettes automatically.
 * ========================================================================== */

/* ── Paywall ─────────────────────────────────────────────────────────────── */

.ui-paywall {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
}

.ui-paywall__icon {
  flex: 0 0 auto;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--warning-subtle);
  color: var(--warning);
  font-size: 1.25rem;
}

.ui-paywall__body { flex: 1 1 auto; min-width: 0; }

.ui-paywall__title {
  margin: 0 0 var(--space-2);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.ui-paywall__message {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: .925rem;
  line-height: 1.6;
}

.ui-paywall__meter {
  height: .5rem;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  overflow: hidden;
}

.ui-paywall__meter-fill {
  display: block;
  height: 100%;
  background: var(--warning);
  border-radius: var(--radius-pill);
  transition: width var(--dur-base) ease;
}

.ui-paywall__meter-label {
  margin: var(--space-1) 0 var(--space-3);
  font-size: .8rem;
  color: var(--text-subtle);
}

.ui-paywall__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.ui-paywall__dismiss { color: var(--text-muted); text-decoration: none; }
.ui-paywall__dismiss:hover { color: var(--text); }

.ui-paywall__reassure {
  margin: var(--space-3) 0 0;
  font-size: .8rem;
  color: var(--text-subtle);
}

/* Variants ---------------------------------------------------------------- */

.ui-paywall--inline { margin-bottom: var(--space-4); }

.ui-paywall--page {
  max-width: 34rem;
  margin: var(--space-8) auto;
  box-shadow: var(--shadow-md);
}

.ui-paywall--drawer {
  border: 0;
  border-radius: 0;
  height: 100%;
  flex-direction: column;
  padding: var(--space-6) var(--space-5);
}

.ui-paywall--drawer .ui-paywall__icon { width: 3rem; height: 3rem; font-size: 1.5rem; }
.ui-paywall--drawer .ui-paywall__title { font-size: 1.25rem; }
.ui-paywall--drawer .ui-paywall__cta { width: 100%; }
.ui-paywall--drawer .ui-paywall__actions { flex-direction: column; align-items: stretch; }

/* ── Drawer shell ────────────────────────────────────────────────────────── */
/* A right-side panel rather than a modal: the point of the paywall is that the
 * user's work stays visible and untouched behind it. A navigation — which is
 * what the old redirect did — cannot make that promise. */

.ui-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(26rem, 100vw);
  background: var(--surface-raised);
  border-inline-start: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--dur-base) ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.ui-drawer.is-open { transform: translateX(0); }

.ui-drawer__close {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-end: var(--space-3);
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.ui-drawer__close:hover { color: var(--text); }

.ui-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .45);
  z-index: calc(var(--z-drawer) - 1);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) ease;
}

.ui-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 576px) {
  .ui-drawer { width: 100vw; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-drawer, .ui-drawer-backdrop, .ui-paywall__meter-fill { transition: none; }
}

/* ── Payment status (M-Pesa STK polling) ─────────────────────────────────── */

.ui-paystatus { text-align: center; padding: var(--space-5) var(--space-4); }

.ui-paystatus__phone {
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto var(--space-4);
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--success-subtle);
  color: var(--success);
  font-size: 1.75rem;
  animation: ui-pulse 1.6s ease-in-out infinite;
}

@keyframes ui-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.06); opacity: .85; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-paystatus__phone { animation: none; }
}

.ui-paystatus__title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-2); }
.ui-paystatus__hint  { color: var(--text-muted); font-size: .9rem; margin-bottom: var(--space-4); }

.ui-paystatus__countdown {
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
  color: var(--text-subtle);
  margin-bottom: var(--space-4);
}

.ui-paystatus__actions { display: flex; flex-direction: column; gap: var(--space-2); }

.ui-paystatus--failed .ui-paystatus__phone { background: var(--danger-subtle); color: var(--danger); animation: none; }
.ui-paystatus--succeeded .ui-paystatus__phone { animation: none; }

/* ── Job progress ────────────────────────────────────────────────────────── */

.ui-progress {
  padding: var(--space-6) var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.ui-progress__head { display: flex; gap: var(--space-4); align-items: center; margin-bottom: var(--space-5); }
.ui-progress__title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.ui-progress__subtitle { margin: var(--space-1) 0 0; color: var(--text-muted); font-size: .9rem; }

.ui-progress__spinner {
  width: 2.5rem; height: 2.5rem; flex: 0 0 auto;
  border-radius: var(--radius-pill);
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  animation: ui-spin 900ms linear infinite;
}

@keyframes ui-spin { to { transform: rotate(360deg); } }

.ui-progress__bar {
  height: .6rem; border-radius: var(--radius-pill);
  background: var(--surface-sunken); overflow: hidden;
}

.ui-progress__bar-fill {
  display: block; height: 100%; width: 0;
  background: var(--brand); border-radius: var(--radius-pill);
  transition: width var(--dur-base) ease;
}

.ui-progress__bar-fill.is-failed { background: var(--danger); }

.ui-progress__meta {
  display: flex; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-2); font-size: .85rem; color: var(--text-muted);
}

.ui-progress__phase { font-weight: 600; color: var(--text); }
.ui-progress__timings { display: flex; gap: var(--space-3); font-variant-numeric: tabular-nums; }

.ui-progress__steps { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.ui-progress__step { display: flex; align-items: center; gap: var(--space-2); font-size: .875rem; color: var(--text-subtle); }
.ui-progress__step-dot { width: .5rem; height: .5rem; border-radius: var(--radius-pill); background: var(--border-strong); flex: 0 0 auto; }
.ui-progress__step.is-current { color: var(--text); font-weight: 600; }
.ui-progress__step.is-current .ui-progress__step-dot { background: var(--brand); }
.ui-progress__step.is-done { color: var(--text-muted); }
.ui-progress__step.is-done .ui-progress__step-dot { background: var(--success); }

.ui-progress__stall,
.ui-progress__error { margin: var(--space-4) 0 0; font-size: .875rem; }
.ui-progress__stall { color: var(--text-muted); }
.ui-progress__error { color: var(--danger); }

.ui-progress__skeletons { display: grid; gap: var(--space-3); margin-top: var(--space-5); }

.ui-skeleton {
  height: 4.5rem; border-radius: var(--radius-md);
  background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--border) 37%, var(--surface-sunken) 63%);
  background-size: 400% 100%;
  animation: ui-shimmer 1.4s ease infinite;
}

@keyframes ui-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (prefers-reduced-motion: reduce) {
  .ui-progress__spinner, .ui-skeleton { animation: none; }
  .ui-progress__bar-fill { transition: none; }
}

/* ── Stepper ─────────────────────────────────────────────────────────────── */

.ui-stepper__list { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--space-2); }
.ui-stepper--vertical .ui-stepper__list { flex-direction: column; }
.ui-stepper__item { flex: 1 1 0; min-width: 0; }
.ui-stepper__link { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--text-subtle); }

.ui-stepper__dot {
  width: 1.75rem; height: 1.75rem; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--surface-sunken);
  border: 2px solid var(--border);
  font-size: .8rem; font-weight: 700;
}

.ui-stepper__label { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ui-stepper__item.is-done .ui-stepper__dot { background: var(--success); border-color: var(--success); color: var(--white); }
.ui-stepper__item.is-done .ui-stepper__link { color: var(--text-muted); }
.ui-stepper__item.is-current .ui-stepper__dot { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.ui-stepper__item.is-current .ui-stepper__link { color: var(--text); font-weight: 600; }
.ui-stepper__item.is-locked { opacity: .55; }

/* Labels are hidden visually but stay in the accessible name — the wizard this
 * replaces used display:none below 768px, leaving five unlabelled dots. */
.ui-stepper--compact .ui-stepper__label,
.ui-stepper__item:not(.is-current) .ui-stepper__label:where(.ui-stepper--compact *) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

@media (max-width: 576px) {
  .ui-stepper__item:not(.is-current) .ui-stepper__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* ── Empty state ─────────────────────────────────────────────────────────── */

.ui-empty { text-align: center; padding: var(--space-8) var(--space-4); color: var(--text-muted); }
.ui-empty__icon { font-size: 2.5rem; color: var(--text-subtle); margin-bottom: var(--space-3); }
.ui-empty__title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: var(--space-2); }
.ui-empty__body { max-width: 32rem; margin: 0 auto var(--space-4); font-size: .925rem; }
.ui-empty__actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.ui-empty--onboarding { background: var(--surface-sunken); border-radius: var(--radius-lg); }

/* ── Stat card ───────────────────────────────────────────────────────────── */

.ui-stat {
  display: flex; flex-direction: column; gap: var(--space-1);
  padding: var(--space-4);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
}

.ui-stat--link:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.ui-stat__icon { color: var(--text-subtle); }
.ui-stat__value { font-size: 1.75rem; font-weight: 800; line-height: 1.1; }
.ui-stat__label { font-size: .85rem; color: var(--text-muted); }
.ui-stat__sublabel { font-size: .75rem; color: var(--text-subtle); }
.ui-stat--positive .ui-stat__value { color: var(--success); }
.ui-stat--warning .ui-stat__value { color: var(--warning); }
.ui-stat--danger .ui-stat__value { color: var(--danger); }
.ui-stat__meter { display: block; height: .35rem; border-radius: var(--radius-pill); background: var(--surface-sunken); overflow: hidden; margin-top: var(--space-1); }
.ui-stat__meter-fill { display: block; height: 100%; background: var(--brand); }

/* ── Action rail ─────────────────────────────────────────────────────────── */

.ui-rail { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.ui-rail--stacked { flex-direction: column; align-items: stretch; }
.ui-rail--sticky { position: sticky; bottom: 0; padding: var(--space-3); background: var(--surface-raised); border-top: 1px solid var(--border); }
.ui-rail__form { margin: 0; }

.ui-rail__item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 600;
  cursor: pointer;
}

.ui-rail__item:hover { border-color: var(--brand); color: var(--brand); }
.ui-rail__item--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-contrast); }
.ui-rail__item--primary:hover { background: var(--brand-hover); color: var(--brand-contrast); }
.ui-rail__item--danger { color: var(--danger); border-color: var(--danger); }
.ui-rail__item.is-gated { opacity: .6; }
.ui-rail__lock { font-size: .75rem; }

/* ── Exports ─────────────────────────────────────────────────────────────── */

.ui-exports__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); margin-bottom: var(--space-2); }
.ui-exports__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.ui-exports__link { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md); text-decoration: none; color: var(--text); }
.ui-exports__link:hover { border-color: var(--brand); }
.ui-exports__ext { font-size: .7rem; font-weight: 800; letter-spacing: .05em; color: var(--text-inverse); background: var(--text-subtle); padding: .15rem .4rem; border-radius: var(--radius-sm); }
.ui-exports__label { flex: 1 1 auto; font-size: .9rem; }
.ui-exports__size { font-size: .75rem; color: var(--text-subtle); }
.ui-exports__item.is-gated .ui-exports__link { opacity: .55; cursor: not-allowed; }

/* ── Share ───────────────────────────────────────────────────────────────── */

.ui-share__title { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); margin-bottom: var(--space-2); }
.ui-share__row { display: flex; gap: var(--space-2); margin-bottom: var(--space-3); }
.ui-share__url { flex: 1 1 auto; font-size: .8rem; }
.ui-share__channels { display: flex; gap: var(--space-3); }
.ui-share__channel { display: inline-flex; align-items: center; gap: var(--space-1); font-size: .85rem; text-decoration: none; color: var(--text-muted); }
.ui-share__channel:hover { color: var(--brand); }
.ui-share__note { font-size: .75rem; color: var(--text-subtle); margin: var(--space-2) 0 0; }

/* ── Primary navigation ──────────────────────────────────────────────────── */
/* Structure follows landing-page.io: a sticky translucent bar, a `1fr auto 1fr`
 * grid so the links are centred in the viewport rather than wherever the brand
 * happens to end, and a ghost/solid button pair closing the right-hand side.
 *
 * Written mobile-first: the base rules are the stacked panel, and the grid only
 * assembles itself at ≥992px. */

/* `position: sticky` is constrained to the nearest block container, and
 * base.html wraps every navbar in a bare `<header>` whose height is exactly
 * this bar's — so a sticky declaration on .nav-primary alone has nowhere to
 * travel and the bar scrolls away (which is what it did before this rule). The
 * wrapper is the element that has to be promoted. Browsers without :has() fall
 * back to that same non-sticky behaviour rather than breaking. */
header:has(> .nav-primary) {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

/* No `position` of its own — the wrapper above carries it. A sticky here would
 * be dead code that reads as if it were doing the work. */
.nav-primary {
  /* Translucent + blurred rather than opaque: content scrolling under the bar
   * stays faintly visible, which is what stops a fixed header reading as a lid
   * on the page. Falls back to the flat surface where backdrop-filter is
   * unsupported — @supports, because a translucent bar with no blur is a
   * smear, not a softer version of the effect. */
  background: var(--surface-raised);
  border-bottom: 1px solid var(--border);

  /* The shadow: a hairline contact edge plus a wide, soft cast that fades out
   * ~24px down. Two layers, because a single blurred shadow at this spread
   * looks like fog and at a tighter one looks like a border. */
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .04),
    0 8px 24px -14px rgba(0, 0, 0, .28);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav-primary {
    background: color-mix(in srgb, var(--surface-raised) 78%, transparent);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }
}

.nav-primary__inner {
  display: grid;
  grid-template-columns: 1fr auto;   /* brand | toggle, until the grid opens up */
  align-items: center;
  gap: var(--space-3);
  min-height: var(--nav-primary-h, 4.5rem);
  position: relative;
}

.nav-primary__brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  min-width: 0;
  text-decoration: none;
  color: var(--text);
}

.nav-primary__wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -.02em;
  white-space: nowrap;
}

/* The panel is a real box on mobile and nothing at all on desktop — see the
 * template comment for why the auth cluster is not duplicated instead. */
.nav-primary__panel {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: 100%;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .35);
}

.nav-primary__panel.is-open { display: flex; }

.nav-primary__links,
.nav-primary__auth { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-1); }

.nav-primary__item { position: relative; }

.nav-primary__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: 100%;
  padding: .5rem .75rem;
  background: none;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--dur-fast, 150ms) ease, color var(--dur-fast, 150ms) ease;
}

.nav-primary__link:hover,
.nav-primary__link:focus-visible { background: var(--surface-sunken); color: var(--text); }

.nav-primary__caret {
  font-size: .75rem;
  transition: transform var(--dur-base) ease;
}

.nav-primary__link[aria-expanded="true"] .nav-primary__caret { transform: rotate(180deg); }

/* Compact buttons, deliberately smaller than the page's own CTAs. */
.nav-primary__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
  padding: 0 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-fast, 150ms) ease, border-color var(--dur-fast, 150ms) ease;
}

.nav-primary__btn--ghost {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  color: var(--text);
}
.nav-primary__btn--ghost:hover { background: var(--surface-sunken); color: var(--text); }

.nav-primary__btn--solid {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}
.nav-primary__btn--solid:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-contrast); }

.nav-primary__toggle {
  grid-column: 2;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: var(--text);
}
.nav-primary__toggle:hover { background: var(--surface-sunken); }

/* Dropdowns are positioned by Bootstrap's Popper — only the surface is ours. */
.nav-primary__item .dropdown-menu {
  margin-top: .25rem;
  padding: var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .05);
}

.nav-primary__item .dropdown-item {
  border-radius: var(--radius-md);
  padding: .45rem .6rem;
  font-size: .9rem;
}

.nav-primary__dropdown { min-width: 22rem; }
.nav-primary__product { display: flex; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); text-decoration: none; color: var(--text); }
.nav-primary__product:hover { background: var(--surface-sunken); }
.nav-primary__product i { font-size: 1.25rem; color: var(--brand); }
.nav-primary__product small { display: block; color: var(--text-muted); font-size: .8rem; }

@media (min-width: 992px) {
  .nav-primary__inner { grid-template-columns: 1fr auto 1fr; }

  /* Wrapper dissolves; its two children become grid items 2 and 3. `.is-open`
   * is matched too — it survives a resize from a phone-width open menu, and it
   * outranks the bare class, so leaving it out lets a stale flex box tear the
   * grid apart at desktop width. */
  .nav-primary__panel,
  .nav-primary__panel.is-open {
    display: contents;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav-primary__links {
    grid-column: 2;
    justify-self: center;
    flex-direction: row;
    align-items: center;
    gap: .25rem;
  }

  .nav-primary__link { width: auto; padding: .5rem 1.25rem; }

  .nav-primary__auth {
    grid-column: 3;
    justify-self: end;
    flex-direction: row;
    align-items: center;
    gap: var(--space-2);
  }

  .nav-primary__toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-primary__caret,
  .nav-primary__link,
  .nav-primary__btn { transition: none; }
}

/* ── Landing page ────────────────────────────────────────────────────────── */

.lp-hero { padding: var(--space-10) 0 var(--space-8); text-align: center; }
.lp-hero__title { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 800; line-height: 1.15; max-width: 22ch; margin: 0 auto var(--space-4); }
.lp-hero__sub { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 60ch; margin: 0 auto var(--space-8); }
.lp-hero__note { margin-top: var(--space-6); font-size: .85rem; color: var(--text-subtle); }

/* ── Split hero: copy left, artwork right ────────────────────────────────── */
/* Only the new elements live here. The overrides that unpick the centred
 * defaults above are in the .lp-page block, because `.lp-page .lp-hero__title`
 * already binds those properties at the same specificity and would win on
 * source order from up here. */

.lp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

.lp-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 var(--space-4);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

/* A lime square instead of lime text: the accent is a fill, and at 12px it
 * disappears entirely as ink on white. */
.lp-hero__eyebrow::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 2px;
  background: var(--brand);
  flex: 0 0 auto;
}

.lp-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.lp-hero__ticks {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
  font-size: .85rem;
  color: var(--text-subtle);
}
.lp-hero__ticks li { display: inline-flex; align-items: center; gap: .35rem; }
.lp-hero__ticks i { color: var(--text); }

/* The artwork carries its own rounded ground and shadows, so no card wrapper. */
.lp-hero__figure { min-width: 0; }
.lp-hero__figure img { display: block; width: 100%; height: auto; }

@media (min-width: 992px) {
  .lp-hero__grid { grid-template-columns: 0.95fr 1.05fr; gap: var(--space-10); }
  .lp-hero__figure { justify-self: end; max-width: 40rem; }
}

/* Four cards in the fold — the router. */
.lp-products { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); text-align: left; }

.lp-product {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none; color: var(--text);
  transition: border-color var(--dur-base) ease, transform var(--dur-base) ease;
}

.lp-product:hover { border-color: var(--brand); transform: translateY(-2px); }
.lp-product__icon { font-size: 1.75rem; color: var(--brand); }
.lp-product__name { font-size: 1.05rem; font-weight: 700; margin: 0; }
.lp-product__job { color: var(--text-muted); font-size: .9rem; flex-grow: 1; margin: 0; }
.lp-product__deliverable { font-size: .85rem; margin: 0; }
.lp-product__cta { color: var(--brand); font-weight: 600; font-size: .9rem; }
.lp-product__time { color: var(--text-subtle); font-size: .8rem; }

.lp-proof { padding: var(--space-6) 0; background: var(--surface-sunken); }
.lp-proof__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-5); justify-content: center; font-size: .875rem; color: var(--text-muted); }
.lp-proof__list i { color: var(--success); margin-right: .35rem; }

.lp-section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; text-align: center; margin-bottom: var(--space-6); }
.lp-how, .lp-who, .lp-cta { padding: var(--space-10) 0; }
.lp-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.lp-how__num { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-contrast); font-weight: 800; margin-bottom: var(--space-3); }
.lp-how__steps h3, .lp-who__grid h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.lp-how__steps p, .lp-who__grid p { color: var(--text-muted); font-size: .925rem; margin: 0; }
.lp-who { background: var(--surface-sunken); }
.lp-who__grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

@media (prefers-reduced-motion: reduce) { .lp-product { transition: none; } }

/* ── Outcomes, FAQ and sample gallery (product landing pages) ────────────── */

.lp-outcomes { list-style: none; margin: 0 auto; padding: 0; max-width: 40rem; display: grid; gap: var(--space-3); }
.lp-outcomes li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: 1rem; }
.lp-outcomes i { color: var(--success); margin-top: .2rem; }

.lp-faq { display: grid; gap: var(--space-2); }
.lp-faq__item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); background: var(--surface-raised); }
.lp-faq__item summary { cursor: pointer; font-weight: 600; }
.lp-faq__item p { margin: var(--space-3) 0 0; color: var(--text-muted); font-size: .925rem; }

.lp-samples { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.lp-samples--compact { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.lp-sample { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); }
.lp-sample:hover { border-color: var(--brand); }
.lp-sample__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-sunken); }
.lp-sample__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex-grow: 1; }
.lp-sample__detail { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); margin: 0; }
.lp-sample__title { font-size: 1rem; font-weight: 700; margin: 0; }
.lp-sample__blurb { font-size: .875rem; color: var(--text-muted); margin: 0; flex-grow: 1; }
.lp-sample__cta { font-size: .85rem; font-weight: 600; color: var(--brand); }

/* ── "The Process" pillar rail (Strategy Builder) ─────────────────────────── */
/* A single vertical rail rather than the 3-up `.lp-how__steps` grid: seven
 * items read as a sequence, and a sequence reads better as a list scanned top
 * to bottom than as cards fighting for a scanning order. */
.lp-pillars__intro {
  text-align: center;
  color: var(--text-muted);
  font-size: .925rem;
  margin: calc(var(--space-6) * -1 + var(--space-2)) 0 var(--space-6);
}

.lp-pillars { list-style: none; margin: 0; padding: 0; }

.lp-pillars__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
}

.lp-pillars__item + .lp-pillars__item { margin-top: var(--space-1); }

/* The connecting line sits behind the numbered circles, one per gap between
 * items — not on the last, which has nothing below it to lead to. */
.lp-pillars__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--space-4) + 1.125rem - 1px);
  top: 2.75rem;
  bottom: calc(var(--space-1) * -1);
  width: 2px;
  background: var(--border);
}

.lp-pillars__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  border: 2px solid var(--border);
  color: var(--text-muted);
  font-weight: 800;
  font-size: .9rem;
  position: relative;
  z-index: 1;
}

.lp-pillars__body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  padding-top: .3rem;
  min-height: 2.25rem;
}

.lp-pillars__title { font-weight: 700; font-size: 1rem; color: var(--text); }

.lp-pillars__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand);
  color: var(--brand-contrast);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.lp-pillars__item.is-active {
  background: var(--brand-subtle);
  border-color: var(--shine-line-strong, var(--border));
}

.lp-pillars__item.is-active .lp-pillars__num {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-contrast);
}

/* ── Marketing page shell (.lp-page) ─────────────────────────────────────── */
/* Applied by the router, the product landings and the solar demo. */

/* project.css gives .site-main an 85px padding-top to clear the digalu navbar,
 * which is `position: fixed`. This bar is sticky and so still occupies real
 * layout space, so that padding is a dead gap on these pages. */
.lp-page .site-main { padding-top: 0; }
.lp-page { background: var(--surface); color: var(--text); }

.lp-hero {
  position: relative;
  padding: var(--space-10) 0 var(--space-8);
  text-align: center;
  background:
    radial-gradient(60rem 30rem at 50% -10%, var(--brand-subtle), transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.lp-hero__title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 22ch;
  margin: 0 auto var(--space-4);
}

.lp-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto var(--space-8);
}

.lp-hero__note { margin-top: var(--space-6); font-size: .85rem; color: var(--text-subtle); }

.lp-products {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  text-align: left;
}

.lp-product {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--dur-base) ease, transform var(--dur-base) ease;
}

.lp-product:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.lp-product__icon {
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  color: var(--brand);
  font-size: 1.35rem;
}

.lp-product__name { font-size: 1.05rem; font-weight: 700; margin: 0; }
.lp-product__job { color: var(--text-muted); font-size: .9rem; flex-grow: 1; margin: 0; }
.lp-product__deliverable { font-size: .85rem; margin: 0; color: var(--text-muted); }
.lp-product__deliverable strong { color: var(--text); }
.lp-product__cta { color: var(--brand); font-weight: 600; font-size: .9rem; }
.lp-product__time { color: var(--text-subtle); font-size: .8rem; }

.lp-proof { padding: var(--space-6) 0; background: var(--surface-sunken); }
.lp-proof__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-5);
  justify-content: center; font-size: .875rem; color: var(--text-muted);
}
.lp-proof__list li { display: inline-flex; align-items: center; gap: .4rem; }
.lp-proof__list i { color: var(--success); }

.lp-section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
  margin-bottom: var(--space-6);
}

.lp-how, .lp-who, .lp-cta { padding: var(--space-10) 0; }
.lp-how__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.lp-how__num {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: var(--radius-pill);
  background: var(--brand); color: var(--brand-contrast);
  font-weight: 800; margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
}
.lp-how__steps h3, .lp-who__grid h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.lp-how__steps p, .lp-who__grid p { color: var(--text-muted); font-size: .925rem; margin: 0; }

.lp-who { background: var(--surface-sunken); }
.lp-who__grid { display: grid; gap: var(--space-6); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.lp-cta { background: var(--surface-sunken); border-top: 1px solid var(--border); }

/* Outcomes / FAQ / samples — used by the product landing pages. */
.lp-outcomes { list-style: none; margin: 0 auto; padding: 0; max-width: 40rem; display: grid; gap: var(--space-3); }
.lp-outcomes li { display: flex; gap: var(--space-3); align-items: flex-start; }
.lp-outcomes i { color: var(--success); margin-top: .2rem; }

.lp-faq { display: grid; gap: var(--space-2); }
.lp-faq__item { border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); background: var(--surface-raised); }
.lp-faq__item summary { cursor: pointer; font-weight: 600; }
.lp-faq__item p { margin: var(--space-3) 0 0; color: var(--text-muted); font-size: .925rem; }

.lp-samples { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.lp-samples--compact { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.lp-sample { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--text); }
.lp-sample:hover { border-color: var(--brand); }
.lp-sample__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface-sunken); }
.lp-sample__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); flex-grow: 1; }
.lp-sample__detail { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-subtle); margin: 0; }
.lp-sample__title { font-size: 1rem; font-weight: 700; margin: 0; }
.lp-sample__blurb { font-size: .875rem; color: var(--text-muted); margin: 0; flex-grow: 1; }
.lp-sample__cta { font-size: .85rem; font-weight: 600; color: var(--brand); }

@media (max-width: 575.98px) {
  .lp-products { grid-template-columns: 1fr; }
  .lp-proof__list { gap: var(--space-3); flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-product { transition: none; }
  .lp-product:hover { transform: none; }
}

/* ── Primary navbar brand ────────────────────────────────────────────────── */
/* Pinned here as well as on the img attributes: these marketing pages load no
 * theme stylesheet that constrains images, so an unsized logo renders at its
 * natural 412x384 and pushes the whole page down.
 *
 * 40px, not the 85px the digalu homepage navbar uses. That height was what set
 * this bar's height, and an 85px mark is the reason the old bar read as a
 * banner; landing-page.io runs a 48px mark in a 64px bar, and the mark has to
 * clear the bar's own padding here too. */

.nav-primary__brand img {
  height: 2.5rem;
  width: auto;
  max-width: 3rem;
  object-fit: contain;
  display: block;
}

/* ============================================================================
 * MARKETING SHELL (.lp-page)
 * ============================================================================
 * Layout from mobirise.com/extensions/shinem5/demoblocks.html, measured in the
 * browser rather than eyeballed:
 *
 *   buttons     radius 16px, padding 8px 24px, weight 500, 18px, no uppercase
 *               plus a circular arrow badge on the right
 *   cards       radius 30px, no shadow
 *   sections    80px top and bottom, white, with one full-accent block
 *   type        "Stack Sans Headline", heading weight 400 — light, not bold
 *
 * Colour is NOT ShineM5's. Its acid lime was replaced with the blue the
 * account pages already run, so signing up is not a jump between two palettes;
 * the values and the reasoning are in tokens.css.
 *
 * The accent changed category in that swap — lime is a light fill that takes
 * black type, blue is a mid fill that takes white — so every ink-on-accent
 * pairing below is inverted rather than recoloured. That is the part of a
 * palette swap that is not find-and-replace.
 *
 * Implemented as token overrides on .lp-page, so it repaints these marketing
 * pages without touching the app shell or the digalu homepage. That is the
 * whole reason the token layer exists.
 * ========================================================================== */

.lp-page {
  /* Palette.
   *
   * `--lp-accent`, not `--accent`: --accent is a platform token and every
   * .product-* class in tokens.css redefines it, so a bare alias here is
   * captured by any element carrying one — the four product cards on this very
   * page each took their own product colour instead of the shell's. */
  --lp-accent:      var(--shine-accent);
  --lp-accent-deep: var(--shine-accent-deep);
  --ink:         var(--shine-ink);

  --brand:          var(--lp-accent);
  --brand-hover:    var(--lp-accent-deep);
  --brand-contrast: var(--shine-on-accent);
  --brand-subtle:   var(--shine-accent-subtle);

  --surface:         var(--white);
  --surface-raised:  var(--white);
  --surface-sunken:  var(--shine-paper);
  --surface-inverse: var(--ink);

  --text:        var(--ink);
  --text-muted:  var(--shine-muted);
  --text-subtle: var(--shine-subtle);
  --border:        var(--shine-line);
  --border-strong: var(--shine-line-strong);

  /* This shell is markedly rounder than the platform default. */
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  30px;

  /* The headline size for a split hero, named because TWO things must share
   * it exactly: `.lp-hero--figure-first .lp-hero__title` and the `.lp-kicker`
   * label above the hero. Copying the clamp into both is how they silently
   * drift apart the first time one is tuned. */
  --lp-split-title-size: clamp(1.7rem, 2.7vw, 2.5rem);

  font-family: "Stack Sans Headline", "Epunda Sans", system-ui, sans-serif;
  background: var(--surface);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* Headings are LIGHT and large here — weight 400, not 800. Copying the size
 * without the weight is what makes a homage look like a knock-off. */
.lp-page h1, .lp-page h2, .lp-page h3,
.lp-page .lp-hero__title, .lp-page .lp-section-title {
  font-family: "Stack Sans Headline", system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lp-page .lp-hero__title { font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.02; max-width: 18ch; }

/* A headline several times longer than the display scale above assumes.
 *
 * 18ch at 4.5rem is a two-line headline of about 55 characters, which is what
 * these pages were written to. A 180-character one renders as eight lines
 * nearly 600px tall and pushes the CTA off the bottom of a laptop viewport —
 * the headline wins the page and the button never gets seen.
 *
 * Steps the size down and WIDENS the measure: both are needed. Shrinking the
 * type alone leaves 18ch, so a long title just becomes eight small lines.
 *
 * Applied by character count in landing/product_pages.py (HERO_TITLE_LONG_CHARS)
 * rather than hand-set on the one page that needs it today. Must stay after
 * the rule above — same specificity, so source order is what wins. */
.lp-page .lp-hero__title--long {
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.18;
  max-width: 46ch;
}

.lp-page .lp-section-title { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.08; }
.lp-page .lp-hero__sub { font-size: clamp(1rem, 1.5vw, 1.15rem); color: var(--text-muted); }

/* ── Buttons: pill + circular arrow badge ────────────────────────────────── */

.lp-page .btn {
  border-radius: 16px;
  padding: 8px 24px;
  font-weight: 500;
  font-size: 18px;
  text-transform: none;
  letter-spacing: normal;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-width: 1px;
}

.lp-page .btn-lg { padding: 12px 28px; font-size: 19px; }

.lp-page .btn-primary {
  --bs-btn-bg: var(--lp-accent);
  --bs-btn-border-color: var(--lp-accent);
  --bs-btn-color: var(--shine-on-accent);
  --bs-btn-hover-bg: var(--lp-accent-deep);
  --bs-btn-hover-border-color: var(--lp-accent-deep);
  --bs-btn-hover-color: var(--shine-on-accent);
  --bs-btn-active-bg: var(--lp-accent-deep);
  --bs-btn-active-border-color: var(--lp-accent-deep);
}

/* The arrow-in-a-circle that gives the shell its signature. Drawn with the
 * bootstrap-icons font already loaded on the page, so no extra request and no
 * markup change in six templates. Geometry only — the two buttons sit on
 * opposite grounds, so each sets its own two colours below. */
.lp-page .btn-primary::after,
.lp-page .btn-ghost::after {
  content: "\F138";                 /* bi-arrow-right */
  font-family: "bootstrap-icons";
  font-size: 15px;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* On lime this badge was ink-on-accent. On blue that would be a dark disc on a
 * mid-blue button — near-invisible — so it inverts to a light disc. */
.lp-page .btn-primary::after { background: var(--white); color: var(--lp-accent-deep); }

.lp-page .btn-ghost {
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.lp-page .btn-ghost::after { background: var(--lp-accent); color: var(--shine-on-accent); }
.lp-page .btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ── Navigation ──────────────────────────────────────────────────────────── */
/* The component in the block above already carries the structure. What this
 * shell changes is only the paint: the accent hover tint, and dropping the border in
 * favour of the shadow alone — a hairline plus a cast reads as two edges on a
 * white-on-white page, and landing-page.io's bar has no visible border at all.
 *
 * The pill-shaped nav group this replaced came from the mobirise demo, where it
 * sits over photography and needs the fill to stay legible. On a white page it
 * was just a grey slab, and it forced the links off-centre. */

/* No background here: --surface-raised is already --white under .lp-page, so
 * the component's own @supports rule paints the translucent version and the
 * opaque fallback in the right order. Overriding it flat would re-introduce the
 * blur-less smear on browsers without backdrop-filter. */
.lp-page .nav-primary { border-bottom: 0; }

.lp-page .nav-primary__link { color: var(--ink); }
.lp-page .nav-primary__link:hover,
.lp-page .nav-primary__link:focus-visible { background: var(--brand-subtle); color: var(--ink); }

.lp-page .nav-primary__wordmark { font-weight: 500; }

/* This shell's .btn is 18px/16px-radius with a circular arrow badge — right for a
 * hero CTA, far too loud for a 40px navbar button, so these use their own
 * .nav-primary__btn class and pick up only the palette. */
.lp-page .nav-primary__btn { border-radius: 12px; font-weight: 500; }
.lp-page .nav-primary__btn--ghost { border-color: var(--shine-line-strong); }
.lp-page .nav-primary__btn--solid { box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .5); }

.lp-page .nav-primary__item .dropdown-menu { border-radius: 18px; }

/* The accent as an icon colour is thin on white — it is a fill, not an ink.
 * The product cards already solve this with a filled chip; the dropdown reuses
 * it so the menu and the cards below read as the same four things. */
.lp-page .nav-primary__product i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  background: var(--lp-accent);
  color: var(--shine-on-accent);
  font-size: 1rem;
}

/* ── Section rhythm: a flat 80px, as measured ────────────────────────────── */

.lp-page .lp-hero { padding: 96px 0 32px; background: var(--white); border-bottom: 0; }
.lp-page .lp-how,
.lp-page .lp-who,
.lp-page .lp-cta { padding: 80px 0; }
.lp-page .lp-proof { padding: 28px 0; background: var(--surface-sunken); border-block: 0; }
.lp-page .lp-router { padding: 0 0 80px; background: var(--white); }

/* ── Split hero ──────────────────────────────────────────────────────────── */
/* Undoing the centred hero for the router page. Scoped here rather than beside
 * the .lp-hero__grid rules because `.lp-page .lp-hero__title` binds the same
 * properties at equal specificity and sits later in the file. */

.lp-page .lp-hero--split { padding: 72px 0 56px; text-align: left; }

.lp-page .lp-hero--split .lp-hero__title {
  margin: 0 0 var(--space-5);
  max-width: 15ch;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
}

.lp-page .lp-hero--split .lp-hero__sub {
  margin: 0 0 var(--space-7);
  max-width: 44ch;
}

/* Two-tone headline. Not --lp-accent: a fill colour used as type is thin at
 * display weight, and this shell sets headings at weight 400. --shine-accent-ink
 * is the same hue cut for reading — 6.3:1 on white. */
.lp-page .lp-hero__accent { color: var(--shine-accent-ink); }

/* ── Split hero, artwork FIRST ───────────────────────────────────────────── */
/* The router's split puts copy left and artwork right. This reverses it for a
 * product page whose artwork is the evidence for its headline — the reader
 * should meet the artefact before the claim about it.
 *
 * Everything here is scoped to `--figure-first` rather than to `--split`, so
 * the router keeps its own headline scale untouched.
 *
 * Source order matters: this must stay after the `.lp-page .lp-hero--split`
 * block above, which binds the same properties at equal specificity. */

.lp-page .lp-hero--figure-first .lp-hero__figure { justify-self: start; }

/* The centred hero's 18ch measure is meant for a display headline across the
 * full container. In a half-width column it produces a very narrow column of
 * very large type, so the measure is released and the size stepped down to
 * suit the column it actually occupies. */
.lp-page .lp-hero--figure-first .lp-hero__title {
  max-width: 100%;
  font-size: var(--lp-split-title-size);
  line-height: 1.12;
  margin: 0 0 var(--space-4);
}

/* ── Page label between the navbar and the hero ──────────────────────────── */
/* Aligned to the container's left edge — the same grid line the hero, the
 * deliverable cards and every other section sit on, and the line the logo
 * lockup starts from. (The word "IndustryAI" itself begins ~65px further in,
 * after the mark; matching THAT would put this label off the page grid.) */

.lp-kicker { padding-top: var(--space-6); }

/* Matches the split hero's headline in family, weight and size — the shell
 * gives those to h1/h2/h3 by element, and this is deliberately a <p>, so it
 * has to ask for them. Size comes from the shared token, never a copy. */
.lp-page .lp-kicker__text {
  margin: 0;
  font-family: "Stack Sans Headline", system-ui, sans-serif;
  font-size: var(--lp-split-title-size);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* The hero's own 72px top padding assumes it opens the page. With a label
 * above it, that gap reads as a dropped section. */
.lp-page .lp-kicker + .lp-hero { padding-top: var(--space-5); }

.lp-page .lp-hero--figure-first .lp-hero__sub { max-width: 48ch; }

/* The headline's second level. Sized in `em` so it tracks the clamp above
 * rather than needing its own breakpoints, and set in accent-as-ink — the same
 * treatment `.lp-hero__accent` uses, for the same reason: #3b82f6 is a fill and
 * manages only 3:1 as type, while #1d4ed8 reads at 6.3:1. */
.lp-hero__title-follow {
  display: block;
  margin-top: .55em;
  font-size: .46em;
  line-height: 1.32;
  color: var(--shine-accent-ink);
}

/* ── Reassurance band + deliverable cards (product landings) ─────────────── */
/* Deliberately NOT `.lp-proof` / `.lp-outcomes`. Both of those are shared with
 * the router page and, in the outcomes' case, with the solar demo's result
 * panel, where a compact tick list is exactly right. These are the heavier
 * treatments the product landings need and nothing else should inherit. */

.lp-proofbar { background: var(--surface-sunken); border-block: 1px solid var(--border); }

.lp-proofbar__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.lp-proofbar__list li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-4);
  text-align: start;
}

/* Rules BETWEEN the items, never around the block — the section already has a
 * border top and bottom, and a fourth edge would box it in. The divider has to
 * follow the axis the grid is currently on, hence the pair of rules. */
.lp-proofbar__list li + li { border-block-start: 1px solid var(--border); }

@media (min-width: 48rem) {
  .lp-proofbar__list { grid-template-columns: repeat(3, 1fr); }
  .lp-proofbar__list li + li {
    border-block-start: 0;
    border-inline-start: 1px solid var(--border);
  }
}

.lp-proofbar__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  color: var(--shine-accent-ink);
  font-size: 1.1rem;
}

.lp-proofbar__label { display: block; font-size: .98rem; font-weight: 600; color: var(--text); }
.lp-proofbar__note  { display: block; margin-top: .1rem; font-size: .84rem; color: var(--text-muted); }

.lp-deliverables {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  text-align: start;
}

/* Column count follows the card count rather than being fixed at three.
 *
 * Fixed columns were fine while every card was an icon and a sentence. They are
 * not once a card carries a drawing: a page with two cards left a third of the
 * row empty, and a page with three squeezed each drawing into ~420px, which is
 * under what a floor plan needs to be read at all. auto-fit gives the two-card
 * page two ~640px slots and still gives the three-card pages their three.
 *
 * The `min()` keeps the 20rem track from overflowing a viewport narrower than
 * it — the bare minmax would otherwise force a horizontal scrollbar at 320px. */
@media (min-width: 48rem) {
  .lp-deliverables {
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  }
}

.lp-deliverables li {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--dur-base) ease,
              box-shadow var(--dur-base) ease,
              border-color var(--dur-base) ease;
}

/* A hairline of brand across the top edge. Inset from the corners so it reads
   as a detail of the card rather than as a fill that lost its bottom half. */
.lp-deliverables li::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: var(--space-5);
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--lp-accent, var(--brand));
}

.lp-deliverables li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--shine-line-strong);
}

.lp-deliverables__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--space-4);
  border-radius: 14px;
  background: var(--brand-subtle);
  color: var(--shine-accent-ink);
  font-size: 1.3rem;
}

/* The picture-card variant. The artwork is inset rather than bled to the card's
 * edges, because the card already draws a 3px accent hairline across its top —
 * bleeding the image under it would put a blue line across the drawing.
 *
 * `contain`, not `cover`: these are drawings authored at exactly 16:10, and the
 * day one is redrawn at a different ratio a cover crop would quietly cut a
 * dimension line off rather than letterbox it where it can be seen. */
.lp-deliverables__figure {
  display: block;
  width: 100%;
  /* 5:4, because that is the plan sheet's own shape — see the note on
   * CARD_RATIO in industryai_dev/scripts/build_deliverable_cards.py. A 16:10
   * slot letterboxed the sheet to 78% of the width available to it, which on
   * the one image people actually try to read is the whole argument. Both
   * assets are produced at this ratio; keep the two numbers in step. */
  aspect-ratio: 5 / 4;
  margin-bottom: var(--space-4);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--white);
  object-fit: contain;
}

/* Picture cards carry more air above the title than icon cards need: the drawing
 * runs the full width of the card, so the title has to clear it rather than sit
 * beside a 3rem chip. */
.lp-deliverables__item--figure { padding-top: var(--space-5); }

.lp-deliverables__text {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.32;
  color: var(--text);
}

.lp-deliverables__detail {
  display: block;
  margin-top: var(--space-2);
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ── Promo band (product landings) ───────────────────────────────────────── */
/* An accent panel carrying one offer, with a cropped preview of the artefact
 * beside it. Layout follows the reference exactly: a ~37/63 split, the panel's
 * copy stacked lockup → headline → offer → pill button, and the preview
 * bleeding off its own right edge so it reads as a window onto something
 * larger.
 *
 * No vertical padding on the section. It sits between two .lp-how bands that
 * already carry 80px each, so anything here would read as a dropped section.
 *
 * The crop is done INSIDE the artwork (its back sheet overruns the viewBox) and
 * by `object-fit: cover` here, not by a fixed overflow offset — the column's
 * width is fluid, and a hand-tuned negative margin only holds at one viewport. */

.lp-promo { padding: 0; }

.lp-promo__band {
  display: grid;
  grid-template-columns: minmax(0, 37fr) minmax(0, 63fr);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-sunken);
  min-height: 26rem;
}

/* The accent is a mid fill here as everywhere else in this shell, so the ink on
 * it flips to white — same pairing the .lp-who band makes. */
.lp-promo__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 2.6vw, 2.25rem);
  padding: clamp(2rem, 3.6vw, 3.5rem);
  background: var(--lp-accent);
  color: var(--shine-on-accent);
}

.lp-promo__lockup {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0;
}

.lp-promo__lockup i {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, .18);
  font-size: 1.35rem;
}

.lp-promo__wordmark {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.15;
}

/* This shell sets every heading to weight 400 in ink — both wrong on an accent
 * panel, where the headline is the loudest thing on the page and sits on a mid
 * fill. Class selectors, so they outrank `.lp-page h2` rather than tie with it. */
.lp-page .lp-promo__title {
  margin: 0;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--shine-on-accent);
}

/* The reference sets the headline on two lines. A forced break, not a measure:
 * where the line falls is the design, and a width can only guess at it. */
.lp-page .lp-promo__title span { display: block; }

.lp-promo__offer {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 600;
  color: var(--shine-on-accent);
}

/* A true pill, unlike this shell's 16px-radius .btn — and deliberately NOT a
 * .btn, which would bolt the shell's trailing arrow badge onto a button whose
 * mark belongs at the front. */
.lp-promo__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1.9rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .75);
  transition: transform var(--dur-base) ease, box-shadow var(--dur-base) ease;
}

.lp-promo__btn i { font-size: 1.25rem; color: var(--shine-accent-ink); }

.lp-promo__btn:hover,
.lp-promo__btn:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .8);
}

.lp-promo__preview { overflow: hidden; background: var(--surface-sunken); }

/* `cover` with the origin pinned left: the artwork's left edge — the plan
 * document — is the part that must always be whole, and the crop is taken off
 * the workbook behind it, which is meant to be cut. */
.lp-promo__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
}

@media (max-width: 991.98px) {
  /* Stacked, panel first: the offer is the point of the band, and a preview
   * above it would be an image with no caption for the length of a scroll. */
  .lp-promo__band { grid-template-columns: 1fr; min-height: 0; }
  .lp-promo__preview { height: 18rem; }
}

/* ── Browse band: banner + style wall (product landings) ─────────────────── */
/* For the product whose output is a look rather than a document. A photographic
 * banner with the copy set over its quiet side, then a style list beside a
 * masonry wall of houses.
 *
 * Like .lp-promo it takes no vertical padding: it sits between two .lp-how
 * bands that already carry 80px each. */

.lp-explore { padding: 0; }

.lp-explore__banner {
  position: relative;
  display: grid;
  align-items: center;
  /* A wide band, but not a letterbox: the container runs to 1320px, so a
   * shorter one crops these photographs to a horizontal strip in which the
   * house is above the frame and only its lawn and fence are left. */
  min-height: clamp(20rem, 34vw, 30rem);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--surface-sunken);
}

.lp-explore__banner-figure { position: absolute; inset: 0; z-index: 0; }

/* Pinned right: every shot in this set has its house on the right and its
 * ground on the left, which is the half the copy sits over. */
.lp-explore__banner-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Above centre. A 2.7:1 crop out of a 3:2 photograph is decided on the
   * VERTICAL axis — cover scales to the width and throws away top and bottom —
   * so this is the only axis worth setting, and a house shot with its garden in
   * front of it loses its roof to a centred crop. Which side of the frame the
   * house sits on is settled when the photograph is chosen, not here. */
  object-position: center 38%;
}

/* The scrim. A photograph's "quiet side" is only quiet until someone reshoots
 * it, and 400-weight ink on bare sky is unreadable well before it looks wrong.
 * White rather than dark because this shell's ink is navy on paper — a dark
 * scrim would mean flipping the type, and then the banner would be the only
 * dark thing on the page. */
.lp-explore__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, .95) 0%,
    rgba(255, 255, 255, .90) 34%,
    rgba(255, 255, 255, .55) 56%,
    rgba(255, 255, 255, 0) 76%
  );
}

.lp-explore__banner-copy {
  position: relative;
  z-index: 2;
  max-width: 32rem;
  padding: clamp(1.75rem, 3.4vw, 3.25rem);
}

/* 600, not the shell's 400: this line sits on a photograph, and light display
 * type over any texture at all goes soft. Class selector so it outranks the
 * `.lp-page h2` rule rather than tying with it. */
.lp-page .lp-explore__banner-title {
  margin: 0 0 var(--space-3);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
}

.lp-page .lp-explore__banner-title span { display: block; }

.lp-explore__banner-sub {
  margin: 0 0 var(--space-5);
  max-width: 34ch;
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: var(--text-muted);
}

/* Squarer than this shell's .btn on purpose — it is a section-level button on
 * a photograph, not the page's primary call to action, and giving it the 16px
 * pill and the arrow badge would let it compete with the hero's. */
.lp-explore__banner-btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: 10px;
  background: var(--lp-accent);
  color: var(--shine-on-accent);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background var(--dur-base) ease;
}

.lp-explore__banner-btn:hover,
.lp-explore__banner-btn:focus-visible {
  background: var(--lp-accent-deep);
  color: var(--shine-on-accent);
}

.lp-page .lp-explore__title { margin-top: clamp(3rem, 6vw, 5rem); }

.lp-explore__grid {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
  align-items: start;
}

/* The reference's search field, rendered as a link. It goes to the page where
 * searching actually works — see the note in landing/product_page.html. */
.lp-explore__search {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-raised);
  color: var(--text-subtle);
  font-size: .9rem;
  text-decoration: none;
}

.lp-explore__search:hover { border-color: var(--border-strong); color: var(--text); }

.lp-explore__cats { list-style: none; margin: var(--space-4) 0 0; padding: 0; }

.lp-explore__cats a {
  display: block;
  padding: .7rem .25rem;
  border-inline-end: 2px solid transparent;
  color: var(--text-muted);
  font-size: .95rem;
  text-decoration: none;
}

.lp-explore__cats a:hover { color: var(--text); }

/* The marker sits on the INLINE-END edge, as in the reference — the list is
 * to the left of what it describes, so the rule points at the wall. */
.lp-explore__cats a.is-current {
  color: var(--text);
  font-weight: 600;
  border-inline-end-color: var(--lp-accent);
}

/* Columns, not grid: the reference's wall staggers, and a grid with equal rows
 * cannot stagger without hand-assigned spans that break the moment the number
 * of styles changes. */
.lp-explore__cards { columns: 2; column-gap: var(--space-4); }

.lp-explore__card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--surface-sunken);
}

.lp-explore__card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 400ms ease;   /* slower than --dur-base: a photograph
                                        growing at 200ms reads as a twitch. */
}

/* The one tall card is what makes the two columns fall out of step with each
 * other; without it the wall is a plain 2x3 grid wearing a masonry class. */
.lp-explore__card--feature img,
/* The FOURTH card is tall too, and that is arithmetic rather than taste: one
 * tall card among six leaves the two columns 0.5 card-widths out of step at
 * the bottom, whichever way the browser balances them. A second tall card,
 * first in the second column, makes both columns 2.75 card-widths and the
 * wall ends level. Re-do the sum if the number of styles changes. */
.lp-explore__card:nth-child(4) img { aspect-ratio: 4 / 5; }

.lp-explore__card:hover img { transform: scale(1.05); }

/* A name on every card, which the reference does not do — its plain tiles are
 * unlabelled and the sidebar carries the names. That works when the sidebar's
 * order is the wall's order; here the wall is column-major, so the third name
 * down the list is the first card in the second column. The chip is how a
 * visitor knows which house is which style. */
.lp-explore__card-body {
  position: absolute;
  inset-inline-start: .85rem;
  inset-block-end: .85rem;
}

.lp-explore__card-name {
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .93);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
}

/* One card carries the overlay treatment. Two would make the wall a menu. */
.lp-explore__card--feature .lp-explore__card-body {
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  text-align: center;
  background: linear-gradient(180deg, rgba(16, 26, 58, .12), rgba(16, 26, 58, .55));
}

.lp-explore__card--feature .lp-explore__card-name {
  padding: 0;
  background: none;
  color: var(--white);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 500;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}

.lp-explore__card-cta {
  display: inline-block;
  padding: .4rem 1.2rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  /* The list goes above the wall as a row of chips. Kept, not dropped: it is
   * the only place the full set of styles is readable in one glance. */
  .lp-explore__grid { grid-template-columns: 1fr; }
  .lp-explore__cats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-3); }
  .lp-explore__cats a {
    padding: .4rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
  }
  .lp-explore__cats a.is-current { border-color: var(--lp-accent); }
}

@media (max-width: 575.98px) {
  .lp-explore__cards { columns: 1; }
  /* On one column the tall card is just tall, and it pushes everything below
   * it a screen further down. */
  .lp-explore__card--feature img,
  .lp-explore__card:nth-child(4) img { aspect-ratio: 4 / 3; }
  /* The banner stops being an overlay and becomes two stacked blocks. A scrim
   * that has to carry type across a 430px-wide photograph leaves so little of
   * the picture showing that the photograph may as well not be there. */
  .lp-explore__banner { min-height: 0; }
  .lp-explore__banner::before { display: none; }
  .lp-explore__banner-figure { position: static; }
  .lp-explore__banner-figure img { height: 12rem; }
  .lp-explore__banner-copy { max-width: none; }
}

/* The hero pair is the one place both button styles appear together, and the
 * ghost needs the same visual weight as the lime one to read as a real choice. */
.lp-page .lp-hero__actions .btn-ghost { border-color: var(--shine-line-strong); }

/* Between the split kicking in and a wide desktop, the copy column is ~425px
 * and the two 19px buttons with their arrow badges need ~460px, so they wrap to
 * a ragged second row. Trimming them one step keeps the pair on one line; they
 * go back to full size once the column can hold them. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .lp-page .lp-hero__actions .btn-lg { padding: 10px 20px; font-size: 17px; }
  .lp-page .lp-hero__actions .btn-lg::after { width: 28px; height: 28px; }
}

@media (max-width: 991.98px) {
  /* Single column, so the 15ch measure that keeps the desktop headline inside
   * its column just makes it needlessly narrow. */
  .lp-page .lp-hero--split { padding: 48px 0 40px; }
  .lp-page .lp-hero--split .lp-hero__title { max-width: 18ch; }
}

/* One full-accent block for emphasis — used sparingly, which is what stops the
 * accent becoming noise. Type flips to white here: the band went from a light
 * fill to a mid one. */
.lp-page .lp-who { background: var(--lp-accent); }
.lp-page .lp-who .lp-section-title,
.lp-page .lp-who h3 { color: var(--shine-on-accent); }
.lp-page .lp-who p { color: var(--shine-on-accent-muted); }

.lp-page .lp-cta { background: var(--surface-sunken); border-top: 0; }

/* ── "How it works" and "Who it's for" as card rows ──────────────────────── */
/* Both were bare text in a grid, which on a full-bleed band reads as a wall of
 * copy with no edges. Same treatment as the reference: centred heading, three
 * equal panels, each a padded box with a 1px border and a fill one step off the
 * section behind it.
 *
 * The section grounds are untouched — white and accent respectively — so the
 * two rows resolve the panel fill in opposite directions: on white the only
 * "one step off" available is a tint darker, on the accent band it is a
 * translucent white lighter. Same rule, two directions.
 *
 * No button in these panels, unlike the reference: its cards each linked to an
 * example page, and a step in a process has nothing to link to. Three identical
 * CTAs stacked under three personas would also undo the one-primary-button rule
 * the rest of this shell holds to. */

/* Three explicit columns, not the shared `auto-fit, minmax(15rem, 1fr)`. Both
 * rows hold exactly three items, and auto-fit lands on two columns anywhere
 * between ~530px and ~780px — which left a single orphan card on the second
 * row. As bare text that read as a paragraph break; as a bordered panel it
 * reads as a bug. */
.lp-page .lp-how__steps,
.lp-page .lp-who__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 991.98px) {
  .lp-page .lp-how__steps,
  .lp-page .lp-who__grid { grid-template-columns: 1fr; }
}

.lp-page .lp-how__steps > li,
.lp-page .lp-who__grid > * {
  padding: var(--space-6) var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-sunken);
}

.lp-page .lp-who__grid > * {
  /* On the accent band --border and --surface-sunken are both invisible: they
   * are tuned for a white ground. Translucent white is the only fill that
   * tracks the band if the accent is ever re-tuned. */
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .10);
}

/* Once the text is boxed it needs its own hierarchy — at the shared 400 the
 * card title and its body were the same colour, size and weight, so the panel
 * read as one paragraph. 500, not 700: this shell sets headings light. */
.lp-page .lp-how__steps h3,
.lp-page .lp-who__grid h3 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: var(--space-2);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.lp-page .lp-product {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: none;
  padding: 28px;
}

.lp-page .lp-product:hover {
  border-color: var(--ink);
  transform: none;
  box-shadow: 0 8px 30px rgba(0,0,0,.07);
}

.lp-page .lp-product__icon {
  border-radius: 14px;
  background: var(--lp-accent);
  color: var(--shine-on-accent);
}

.lp-page .lp-product__name { font-size: 1.2rem; font-weight: 500; }
.lp-page .lp-product__cta { color: var(--ink); font-weight: 500; }
.lp-page .lp-product__cta i { margin-left: 4px; }

.lp-page .lp-how__num {
  background: var(--lp-accent);
  color: var(--shine-on-accent);
  font-weight: 500;
  box-shadow: none;
  width: 2.5rem; height: 2.5rem;
}

.lp-page .lp-faq__item,
.lp-page .lp-sample { border-radius: var(--radius-xl); }

.lp-page .lp-proof__list i { color: var(--ink); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.lp-page footer { background: var(--ink); }

@media (max-width: 991.98px) {
  /* The open panel is the one place the bar goes fully opaque — it sits over
   * page content, and the header's blur does not extend past the header box. */
  .lp-page .nav-primary__panel { background: var(--white); border-radius: var(--radius-xl); }
}

/* The vendor footer ships its own gradient submit button, which reads as a
 * leftover next to the accent palette. Repainted to match, scoped so the footer
 * is unchanged everywhere else it renders. */
.lp-page footer .btn,
.lp-page footer button[type="submit"],
.lp-page footer input[type="submit"] {
  background: var(--lp-accent) !important;
  border-color: var(--lp-accent) !important;
  color: var(--shine-on-accent) !important;
  border-radius: 16px;
  font-weight: 500;
}

.lp-page footer a { color: var(--shine-footer-link); }
.lp-page footer a:hover { color: var(--shine-accent-lift); }

/* ---------------------------------------------------------------------------
 * MORE TOOLS — /app/ hub
 * The secondary products used to be identical `.btn-outline-secondary` pills
 * — five buttons a glance couldn't tell apart. Each chip now carries its own
 * product color (the `.product-*` classes in tokens.css, applied via
 * `theme_class`) as a left edge and an icon badge, brightening into a glow on
 * hover/focus so the row reads as distinct tools rather than one repeated
 * button.
 * ------------------------------------------------------------------------ */
.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: .875rem;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.tool-chip:hover,
.tool-chip:focus-visible {
  color: var(--text);
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 8px 24px -6px var(--brand);
  transform: translateY(-1px);
}
.tool-chip__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--brand) 16%, transparent);
  color: var(--brand);
  font-size: 1rem;
  flex: 0 0 auto;
}
