/* Jersey Empire — public shell v2 (RECOVERY-P2, home only)
   Translated from prototype/components.jsx + pages-public.jsx + app.jsx.
   Owned by CR0236; lives alongside legacy public-shell.css for non-home
   public pages until RECOVERY-P3 lands. */

/* ---------- Base typography & reset ---------- */
.ps2 * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.ps2 { font-family: var(--font-body, 'Inter', system-ui, sans-serif); color: var(--ink); background: var(--bg); min-height: 100vh; }
.ps2 h1, .ps2 h2, .ps2 h3, .ps2 h4 {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  font-variation-settings: "opsz" 144, "SOFT" 50, "wght" 600;
}
.ps2 p { margin: 0; line-height: 1.55; color: var(--ink-mute); }
.ps2 a { color: inherit; text-decoration: none; }
.ps2 button { font-family: inherit; cursor: pointer; }
.ps2 .serif { font-family: var(--font-display, 'Fraunces', Georgia, serif); }
.ps2 .mono { font-family: var(--font-mono, ui-monospace, monospace); }

/* ---------- Header ---------- */
.ps2-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 251, 241, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
}
.ps2-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.ps2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.ps2-brand__mark {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}
.ps2-brand__text { display: flex; flex-direction: column; line-height: 1; }
.ps2-brand__name {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.012em;
  color: var(--ink);
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 700;
  white-space: nowrap;
}
.ps2-brand__tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin-top: 4px;
  white-space: nowrap;
}
.ps2-nav {
  flex: 1;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.ps2-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-mute);
  letter-spacing: 0.005em;
  transition: color 0.18s var(--ease, ease);
}
.ps2-nav a:hover,
.ps2-nav a:focus-visible { color: var(--ink); }

.ps2-header__actions {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ps2-burger {
  background: var(--surface-3);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.ps2-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.ps2-mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-mute);
  background: transparent;
}
.ps2-mobile-nav a:hover,
.ps2-mobile-nav a:focus-visible { background: var(--surface-3); color: var(--ink); }
.ps2-header[data-nav-open="true"] .ps2-mobile-nav { display: flex; }

/* ---------- Buttons ---------- */
.ps2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--ease, ease), background 0.18s var(--ease, ease), box-shadow 0.18s var(--ease, ease);
  white-space: nowrap;
  box-shadow: none;
}
.ps2-btn:hover { transform: translateY(-1px); }
.ps2-btn--primary {
  background: var(--primary);
  color: var(--primary-fg);
  box-shadow: var(--shadow-sm);
}
.ps2-btn--accent {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: var(--shadow-sm);
}
.ps2-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.ps2 a.ps2-btn--primary,
.ps2 button.ps2-btn--primary { color: var(--primary-fg); }
.ps2 a.ps2-btn--accent,
.ps2 button.ps2-btn--accent { color: var(--accent-fg); }
.ps2 a.ps2-btn--ghost,
.ps2 button.ps2-btn--ghost { color: var(--ink); }
.ps2-btn--lg { height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }

/* ---------- Hero ---------- */
.ps2-hero {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: 72px 28px 88px;
}
.ps2-hero__motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--primary);
  opacity: 0.08;
}
.ps2-hero__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  text-align: center;
}
.ps2-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ps2-display { color: var(--ink); }
.ps2-display--h1 {
  font-size: clamp(36px, 6.4vw, 64px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 600;
  margin-bottom: 18px;
}
.ps2-display--h2 {
  font-size: clamp(28px, 4.8vw, 44px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.018em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 600;
}
.ps2-display--h3 {
  font-size: clamp(22px, 3.2vw, 30px);
  font-weight: 600;
  line-height: 1.05;
}
.ps2-heritage-em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 100, "wght" 500;
}
.ps2-hero__lede {
  font-size: 18px;
  max-width: 620px;
  margin: 0 auto 30px;
  color: var(--ink-mute);
  line-height: 1.55;
}
.ps2-cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.ps2-trust-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
  color: var(--ink-soft);
  font-size: 13px;
}
.ps2-trust-row span i { margin-right: 6px; }

/* ---------- Section + grid ---------- */
.ps2-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 28px;
}
.ps2-section--alt {
  max-width: none;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 28px;
}
.ps2-section--alt > .ps2-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.ps2-section__head { text-align: center; margin-bottom: 40px; }
.ps2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.ps2-grid--exp { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Card ---------- */
.ps2-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s var(--ease, ease), box-shadow 0.2s var(--ease, ease);
}
.ps2-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ps2-card--lg { padding: 28px; }
.ps2-card__num {
  display: inline-block;
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 36px;
  color: var(--accent-deep);
  font-weight: 600;
  font-variation-settings: "opsz" 144;
  line-height: 1;
}
.ps2-card__title {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 20px;
  margin: 8px 0 6px;
  color: var(--ink);
}
.ps2-card__title--lg { font-size: 22px; margin-bottom: 8px; }
.ps2-card__body { font-size: 14px; color: var(--ink-mute); }
.ps2-card__body--lg { font-size: 15px; }
.ps2-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--accent-tint);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
  margin-bottom: 16px;
  font-size: 22px;
}

/* ---------- Pricing CTA ---------- */
.ps2-pricing {
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 28px;
  padding: 48px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-lg);
}
.ps2-pricing__motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.10;
}
.ps2-pricing__inner { position: relative; }
.ps2-pricing .ps2-eyebrow { color: var(--accent); }
.ps2-pricing__price {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: clamp(64px, 10vw, 96px);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 18px;
  font-variation-settings: "opsz" 144;
}
.ps2-pricing__body {
  color: rgba(255, 255, 255, 0.78);
  max-width: 460px;
  margin: 0 auto 28px;
  font-size: 15px;
  line-height: 1.55;
}

/* ---------- Trust card ---------- */
.ps2-trust-card { padding: 28px; }
.ps2-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.ps2-trust-grid h4 {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-size: 16px;
  margin: 0 0 6px;
  color: var(--primary);
}
.ps2-trust-grid p { font-size: 14px; color: var(--ink-mute); }

/* ---------- Footer ---------- */
.ps2-footer {
  background: var(--primary);
  color: var(--primary-fg);
  padding: 40px 28px 30px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}
.ps2-footer__motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.06;
}
.ps2-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
}
.ps2-footer__brand-row { display: flex; align-items: center; gap: 12px; }
.ps2-footer__brand-name {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--primary-fg);
  letter-spacing: -0.012em;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wght" 700;
}
.ps2-footer__brand-tag {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-top: 4px;
}
.ps2-footer__lede {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.55;
  max-width: 280px;
}
.ps2-footer__col h4 {
  font-family: var(--font-display, 'Fraunces', Georgia, serif);
  color: var(--accent);
  font-size: 14px;
  margin: 0 0 10px;
}
.ps2-footer__col a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  padding: 4px 0;
}
.ps2-footer__col a:hover,
.ps2-footer__col a:focus-visible { color: var(--accent); }
.ps2-footer__legal {
  max-width: 1200px;
  margin: 24px auto 0;
  position: relative;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

/* ---------- Staging banner (preserved behaviour) ---------- */
.ps2-stage-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--accent);
  color: var(--accent-fg);
  text-align: center;
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  height: 24px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}
.ps2-stage-banner img { width: 16px; height: 16px; display: block; }

/* ---------- Responsive ---------- */
@media (min-width: 720px) {
  .ps2-nav { display: inline-flex; }
  .ps2-burger { display: none; }
  .ps2-header { padding: 14px 28px; }
}
@media (min-width: 1024px) {
  .ps2-brand__name { font-size: 17px; }
  .ps2-hero { padding: 96px 28px 112px; }
  .ps2-section, .ps2-section--alt { padding: 80px 28px; }
}
