/* Fonts load via <link> in HTML (not @import) to avoid blocking FCP/LCP. */

:root {
  --pc-bg: #f6f7f9;
  --pc-surface: #ffffff;
  --pc-surface-muted: #f0f2f6;
  --pc-ink: #0b1220;
  --pc-ink-secondary: #334155;
  --pc-muted: #64748b;
  --pc-line: #e2e8f0;
  --pc-line-soft: #eef1f6;
  --pc-accent: #1d4ed8;
  --pc-accent-dark: #1e3a8a;
  --pc-accent-soft: #eff6ff;
  --pc-teal: #0f766e;
  --pc-teal-soft: #ecfdf5;
  --pc-radius: 14px;
  --pc-radius-lg: 22px;
  --pc-shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.04);
  --pc-shadow: 0 4px 24px rgba(11, 18, 32, 0.06);
  --pc-shadow-lg: 0 24px 64px rgba(11, 18, 32, 0.1);
  --pc-font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --pc-dark: #0b1220;
  --pc-dark-elevated: #141c2e;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.pc-body {
  margin: 0;
  font-family: var(--pc-font);
  background: var(--pc-bg);
  color: var(--pc-ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}

.pc-container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.pc-container-narrow { max-width: 42rem; margin: 0 auto; padding: 0 1.5rem; }

@media (max-width: 639px) {
  .pc-container,
  .pc-container-narrow { padding: 0 1rem; }
  .pc-section { padding: 3rem 0; }
  .pc-section-tight { padding: 2.5rem 0; }
  .pc-hero { padding: 2.5rem 0 3rem; }
  .pc-card,
  .pc-pricing-card { padding: 1.5rem; }
  .pc-lead { font-size: 1rem; }
  .pc-countdown-value { font-size: 2rem; }
  .pc-price { font-size: 2.25rem; }
  .pc-price-custom { font-size: 1.625rem; }
  .pc-header-inner { padding: 0.75rem 0; }
}

/* Header */
.pc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pc-line-soft);
}
.pc-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  min-height: 3.5rem;
}
.pc-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--pc-ink);
  font-family: var(--pc-font);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  line-height: 1;
  min-width: 0;
  flex-shrink: 1;
}
.pc-logo-mark {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0f172a;
}
.pc-logo-mark .pc-logo-icon,
.pc-logo-mark svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
  shape-rendering: geometricPrecision;
}
.pc-logo-word {
  font-family: var(--pc-font);
  font-weight: 900;
  font-size: inherit;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #0f172a;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-nav { display: none; align-items: center; gap: 1.25rem; flex-wrap: nowrap; }
@media (min-width: 960px) { .pc-nav { display: flex; } }
.pc-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pc-muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.pc-nav a:hover, .pc-nav a.active { color: var(--pc-ink); }
.pc-nav a.active { font-weight: 600; }

.pc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.pc-btn:active { transform: scale(0.98); }
.pc-btn[hidden] { display: none !important; }
.pc-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.pc-btn-primary {
  background: var(--pc-ink);
  color: #fff;
  box-shadow: var(--pc-shadow-sm);
}
.pc-btn-primary:hover { background: #1e293b; box-shadow: var(--pc-shadow); }
.pc-btn-primary:disabled:hover {
  background: var(--pc-ink);
  box-shadow: var(--pc-shadow-sm);
}
.pc-btn-secondary {
  background: var(--pc-surface);
  color: var(--pc-ink);
  border: 1px solid var(--pc-line);
}
.pc-btn-secondary:hover { border-color: var(--pc-muted); background: var(--pc-surface-muted); }
.pc-btn-accent {
  background: var(--pc-accent);
  color: #fff;
}
.pc-btn-accent:hover { background: var(--pc-accent-dark); }
.pc-btn-ghost {
  background: transparent;
  color: var(--pc-ink-secondary);
  border: 1px solid transparent;
}
.pc-btn-ghost:hover { background: var(--pc-surface-muted); }
.pc-btn-lg { padding: 0.875rem 1.75rem; font-size: 0.9375rem; }
.pc-btn-full { width: 100%; }

.pc-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 60;
  min-width: 44px;
  min-height: 44px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  color: var(--pc-ink);
  cursor: pointer;
  padding: 0.35rem;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.pc-mobile-toggle:hover,
.pc-mobile-toggle:focus-visible {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
  outline: none;
}
.pc-mobile-toggle svg { display: block; pointer-events: none; }
.pc-mobile-toggle .pc-mobile-icon-close { display: none; }
.pc-mobile-toggle.is-open .pc-mobile-icon-open { display: none; }
.pc-mobile-toggle.is-open .pc-mobile-icon-close { display: block; }
@media (min-width: 960px) { .pc-mobile-toggle { display: none !important; } }

.pc-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 1.15rem;
  border-top: 1px solid var(--pc-line-soft);
  background: var(--pc-surface);
  max-height: min(75vh, calc(100dvh - 4.5rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
@media (max-width: 639px) {
  .pc-mobile-menu { padding-left: 1rem; padding-right: 1rem; }
}
.pc-mobile-menu.open { display: flex; }
.pc-mobile-menu a {
  display: block;
  padding: 0.85rem 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--pc-ink-secondary);
  text-decoration: none;
  border-radius: 8px;
  min-height: 44px;
  line-height: 1.3;
}
.pc-mobile-menu a:hover,
.pc-mobile-menu a:focus-visible,
.pc-mobile-menu a.active {
  color: var(--pc-ink);
  font-weight: 600;
  background: var(--pc-surface-muted);
}
.pc-mobile-menu .pc-btn {
  margin-top: 0.35rem;
  width: 100%;
  justify-content: center;
}
.pc-mobile-menu .pc-btn + .pc-btn { margin-top: 0.5rem; }

/* Prevent background scroll / horizontal bleed while mobile nav is open */
body.pc-nav-open {
  overflow: hidden;
  touch-action: none;
}
body.pc-body {
  overflow-x: clip;
}

/* Typography */
.pc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pc-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pc-accent);
}
.pc-h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--pc-ink);
  margin: 0;
}
.pc-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--pc-ink);
  margin: 0 0 0.75rem;
}
.pc-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--pc-muted);
  margin: 0;
}
.pc-section { padding: 5rem 0; }
.pc-section-tight { padding: 3.5rem 0; }
.pc-section-dark {
  background: var(--pc-dark);
  color: #e2e8f0;
}
.pc-section-dark .pc-h2 { color: #fff; }
.pc-section-dark .pc-lead { color: #94a3b8; }

/* Cards */
.pc-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  padding: 2rem;
  box-shadow: var(--pc-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.pc-card:hover {
  box-shadow: var(--pc-shadow);
  border-color: #cbd5e1;
}
.pc-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: var(--pc-accent-soft);
  color: var(--pc-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.pc-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--pc-ink);
}
.pc-card p { font-size: 0.9375rem; line-height: 1.6; color: var(--pc-muted); margin: 0; }

.pc-grid-3 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .pc-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.pc-grid-2 {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .pc-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.pc-grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 700px) { .pc-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .pc-grid-4 { grid-template-columns: repeat(4, 1fr); } }
.pc-arch-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.pc-arch-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pc-accent);
}
.pc-arch-audience {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pc-ink-secondary);
  letter-spacing: -0.01em;
}
.pc-arch-card .pc-checklist { margin: 0 0 1.5rem; }
.pc-arch-card .pc-btn { margin-top: auto; }
.pc-gateway-grid { display: grid; gap: 0.85rem; }
@media (min-width: 640px) { .pc-gateway-grid { grid-template-columns: 1fr 1fr; gap: 1rem; } }
.pc-gateway-choice {
  text-align: left;
  width: 100%;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: #fff;
  padding: 1.15rem 1.1rem 1.05rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.pc-gateway-choice:hover,
.pc-gateway-choice:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.pc-gateway-choice h3 {
  margin: 0 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pc-ink);
}
.pc-gateway-choice p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--pc-muted);
}
.pc-gateway-choice .pc-gateway-price {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-accent);
}
.pc-header-actions {
  display: none;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
@media (min-width: 960px) {
  .pc-header-actions { display: flex; }
}
.pc-header-actions .pc-btn {
  padding: 0.42rem 0.8rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}
#nav-signup-desktop { display: inline-flex !important; }
#nav-cta-desktop { display: none !important; }
@media (min-width: 1100px) {
  #nav-cta-desktop { display: inline-flex !important; }
}
.pc-auth-card.is-wide { max-width: 52rem; }

/* Hero */
.pc-hero {
  padding: 4rem 0 5rem;
  overflow: hidden;
  position: relative;
}
.pc-hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .pc-hero-grid { grid-template-columns: 1fr 1fr; padding-top: 2rem; }
}
.pc-hero-visual {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--pc-shadow-lg);
}
.pc-mock-panel {
  border-radius: 12px;
  border: 1px solid var(--pc-line);
  padding: 1rem;
  background: #fff;
}
.pc-hero-mock {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  flex-direction: column;
}
@media (min-width: 480px) {
  .pc-hero-mock { flex-direction: row; }
}
.pc-hero-demo-qr-wrap {
  flex-shrink: 0;
  text-align: center;
}
.pc-hero-demo-qr-link {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  border-radius: 8px;
  transition: box-shadow 0.15s ease;
}
.pc-hero-demo-qr-link:hover {
  box-shadow: 0 0 0 2px var(--pc-accent-soft);
}
.pc-hero-demo-qr {
  width: 132px;
  height: 132px;
  border-radius: 8px;
  border: 1px solid var(--pc-line);
  background: #fff;
  overflow: hidden;
  padding: 6px;
  box-sizing: border-box;
}
.pc-hero-demo-qr img,
.pc-hero-demo-qr canvas {
  display: block;
  width: 120px !important;
  height: 120px !important;
}
.pc-hero-demo-qr-caption {
  margin: 0.5rem 0 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pc-accent);
  line-height: 1.3;
  max-width: 88px;
}

/* Trust strip */
.pc-trust {
  border-y: 1px solid var(--pc-line-soft);
  background: var(--pc-surface);
  padding: 1.25rem 0;
}
.pc-trust-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pc-muted);
  margin-bottom: 0.75rem;
}
.pc-trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #94a3b8;
}

/* Countdown */
.pc-countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .pc-countdown-grid { grid-template-columns: repeat(4, 1fr); } }
.pc-countdown-grid--bar {
  gap: 0.375rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (min-width: 640px) { .pc-countdown-grid--bar { grid-template-columns: repeat(5, 1fr); } }
.pc-countdown-bar {
  background: var(--pc-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pc-countdown-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}
@media (min-width: 768px) {
  .pc-countdown-bar-inner {
    flex-direction: row;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.625rem 0;
  }
}
.pc-countdown-bar-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
  line-height: 1.4;
}
@media (min-width: 768px) { .pc-countdown-bar-label { text-align: left; white-space: nowrap; } }
.pc-countdown-bar-label strong { color: #fff; font-weight: 700; }
.pc-countdown-grid--bar .pc-countdown-unit {
  padding: 0.5rem 0.375rem;
  border-radius: 10px;
  background: var(--pc-dark-elevated);
}
.pc-countdown-grid--bar .pc-countdown-value {
  font-size: 1.25rem;
  line-height: 1.1;
}
@media (min-width: 640px) {
  .pc-countdown-grid--bar .pc-countdown-value { font-size: 1.5rem; }
}
.pc-countdown-grid--bar .pc-countdown-label {
  margin-top: 0.25rem;
  font-size: 0.5625rem;
  letter-spacing: 0.08em;
}
.pc-countdown-unit {
  background: var(--pc-dark-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--pc-radius);
  padding: 1.5rem 1rem;
  text-align: center;
}
.pc-countdown-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  min-width: 2.5ch;
  min-height: 1.1em;
}
.pc-countdown-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
  margin-top: 0.5rem;
}

/* Pricing */
.pc-pricing-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pc-pricing-card.featured {
  border-color: var(--pc-accent);
  box-shadow: var(--pc-shadow-lg);
  position: relative;
}
.pc-pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pc-accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
}
.pc-price {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pc-ink);
}
.pc-price span { font-size: 0.875rem; font-weight: 500; color: var(--pc-muted); }
.pc-price-custom {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pc-checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1; }
.pc-checklist li {
  display: flex;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--pc-ink-secondary);
  padding: 0.375rem 0;
}
.pc-checklist li::before {
  content: '✓';
  color: var(--pc-teal);
  font-weight: 700;
}

/* Forms */
.pc-input, .pc-select, .pc-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--pc-line);
  background: var(--pc-surface);
  color: var(--pc-ink);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pc-form-row-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 480px) {
  .pc-form-row-2 { grid-template-columns: 1fr 1fr; }
}
.pc-input:focus, .pc-select:focus, .pc-textarea:focus {
  outline: none;
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12);
}
.pc-input::placeholder { color: #94a3b8; }
.pc-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pc-muted);
  margin-bottom: 0.375rem;
}
.pc-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Book-a-call modal */
.pc-modal[hidden] { display: none !important; }
.pc-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 480px) {
  .pc-modal {
    align-items: center;
    padding: 1.5rem;
  }
}
.pc-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.pc-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 28rem;
  max-height: min(92dvh, calc(100vh - 1rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg) var(--pc-radius-lg) 0 0;
  box-shadow: var(--pc-shadow-lg);
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 480px) {
  .pc-modal-dialog {
    border-radius: var(--pc-radius-lg);
    max-height: calc(100vh - 3rem);
    padding: 2rem 1.75rem;
  }
}
.pc-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--pc-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pc-modal-close:hover { background: var(--pc-surface-muted); color: var(--pc-ink); }
.pc-modal-success {
  margin: 0;
  color: var(--pc-teal);
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}
.pc-modal-error {
  margin: 0.75rem 0 0;
  color: #dc2626;
  font-weight: 600;
  font-size: 0.875rem;
  text-align: center;
}
body.pc-modal-open { overflow: hidden; }

/* Contact Sales / Request a Quote modal */
.pc-contact-sales-dialog {
  max-width: 34rem;
}
.pc-quote-progress {
  margin-bottom: 1.25rem;
}
.pc-quote-progress-track {
  height: 0.375rem;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.pc-quote-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pc-accent), #38bdf8);
  transition: width 0.25s ease;
}
.pc-quote-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}
.pc-quote-step-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pc-muted);
}
.pc-quote-step-label.is-active { color: var(--pc-accent); }
.pc-quote-step-title {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--pc-ink);
}
.pc-quote-step {
  animation: pc-quote-fade 0.2s ease;
}
@keyframes pc-quote-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pc-field { margin: 0; }
.pc-field-error {
  margin: 0.375rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #dc2626;
  font-weight: 500;
}
.pc-input.is-invalid,
.pc-select.is-invalid {
  border-color: #fca5a5;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.pc-radio-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.pc-radio-fieldset.is-invalid .pc-radio-grid {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
  border-radius: 12px;
}
.pc-radio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 480px) {
  .pc-radio-grid { grid-template-columns: 1fr 1fr; }
}
.pc-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--pc-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--pc-ink-secondary);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.pc-radio-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}
.pc-radio-card:has(input:checked),
.pc-radio-card.is-selected {
  border-color: var(--pc-accent);
  background: #eff6ff;
  color: var(--pc-ink);
  box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.12);
}
.pc-radio-card input {
  margin-top: 0.125rem;
  accent-color: var(--pc-accent);
  flex-shrink: 0;
}
.pc-quote-actions { margin-top: 0.25rem; }
.pc-quote-actions-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 480px) {
  .pc-quote-actions-split { grid-template-columns: 1fr 1.4fr; }
}
.pc-quote-success {
  text-align: center;
  padding: 0.5rem 0 0.25rem;
}

/* Footer */
.pc-footer {
  border-top: 1px solid var(--pc-line);
  background: var(--pc-surface);
  padding: 2.5rem 0;
}
.pc-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 640px) {
  .pc-footer-inner { flex-direction: row; }
}
.pc-footer-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; justify-content: center; }
.pc-footer-links a {
  font-size: 0.875rem;
  color: var(--pc-muted);
  text-decoration: none;
}
.pc-footer-links a:hover { color: var(--pc-ink); }

/* Cookie consent banner */
.pc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 23, 42, 0.96);
  color: #e2e8f0;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.18);
  transform: translateY(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.pc-cookie-banner.is-hiding {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.pc-cookie-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: stretch;
}
@media (min-width: 640px) {
  .pc-cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
  }
}
.pc-cookie-banner-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.pc-cookie-banner-text a {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.pc-cookie-banner .pc-btn {
  flex-shrink: 0;
  align-self: flex-end;
}
@media (min-width: 640px) {
  .pc-cookie-banner .pc-btn { align-self: center; }
}

/* Login / auth card */
.pc-auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}
@media (max-width: 639px) {
  .pc-auth-wrap { padding: 2rem 1rem; }
}
.pc-auth-card {
  width: 100%;
  max-width: 28rem;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  box-shadow: var(--pc-shadow-lg);
  overflow: hidden;
}
.pc-tabs {
  display: flex;
  border-bottom: 1px solid var(--pc-line);
  background: var(--pc-surface-muted);
}
.pc-tab-btn {
  flex: 1;
  padding: 0.875rem;
  min-height: 44px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--pc-muted);
  cursor: pointer;
  font-family: inherit;
}
.pc-tab-btn.active {
  color: var(--pc-accent);
  border-bottom-color: var(--pc-accent);
  background: var(--pc-surface);
}
.tab-panel { display: none; padding: 1.75rem; }
.tab-panel.active { display: block; }

/* Dashboard */
.form-input, .pc-form-input {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 10px;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  color: var(--pc-ink);
  font-size: 1rem;
  font-family: inherit;
}
.form-input:focus, .pc-form-input:focus {
  outline: none;
  border-color: var(--pc-accent);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}
.form-input.is-invalid,
.pc-form-input.is-invalid,
select.is-invalid,
textarea.is-invalid {
  border-color: #dc2626 !important;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.form-input.is-invalid:focus,
.pc-form-input.is-invalid:focus,
select.is-invalid:focus,
textarea.is-invalid:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}
.form-label.is-invalid-label,
.pc-form-label.is-invalid-label {
  color: #dc2626;
}
.form-label, .pc-form-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pc-muted);
  margin-bottom: 0.375rem;
}
.mono { font-family: ui-monospace, 'JetBrains Mono', monospace; }

.status-badge-lmt { background: var(--pc-teal-soft); color: var(--pc-teal); border: 1px solid #99f6e4; }
.status-badge-ev { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.status-badge-ind { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }

.pc-panel {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--pc-shadow-sm);
}
.pc-badge {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--pc-accent-soft);
  color: var(--pc-accent-dark);
}

/* Legal */
.legal-prose h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pc-ink);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.legal-prose h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pc-ink-secondary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.legal-prose p, .legal-prose li {
  color: var(--pc-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}
.legal-prose a { color: var(--pc-accent); }
.toc-link.active {
  color: var(--pc-accent);
  border-left-color: var(--pc-accent);
  background: var(--pc-accent-soft);
}

.netlify-identity-widget { display: none !important; }
.netlify-identity-modal { z-index: 9999 !important; }

#factory-workspace.scan-hidden { display: none !important; }
#compliance-portal { display: none; }
#compliance-portal.scan-active { display: block; }
body.public-passport-mode #factory-workspace { display: none !important; }
body.public-passport-mode #compliance-portal { display: block !important; }
body.public-passport-mode .pc-nav,
body.public-passport-mode .pc-mobile-toggle,
body.public-passport-mode .pc-mobile-menu,
body.public-passport-mode #logout-btn,
body.public-passport-mode #mobile-logout-btn { display: none !important; }
body.public-passport-mode .pc-header-inner::after {
  content: 'Public Registry · Read Only';
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pc-teal);
  margin-left: auto;
  padding-right: 0.25rem;
}
@media (max-width: 639px) {
  body.public-passport-mode .pc-header-inner::after { display: none; }
}
.public-portal-loading {
  text-align: center;
  padding: 4rem 1.5rem;
  color: var(--pc-muted);
}
.public-portal-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 640px) {
  .public-portal-hero { grid-template-columns: auto 1fr; align-items: start; }
}
.category-panel.hidden { display: none !important; }

#qrcode-container img, #qrcode-container canvas {
  margin: 0 auto;
  display: block;
  border-radius: 4px;
}
#qrcode-container {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Dashboard layout helpers (Tailwind-free zones) */
.pc-dashboard main-wrap { padding: 2rem 0; }
.pc-dash-section {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--pc-shadow-sm);
}
.pc-dash-section h2 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pc-accent);
  margin: 0 0 1rem;
}
.pc-tool-card {
  position: relative;
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  padding: 1.25rem;
  box-shadow: var(--pc-shadow-sm);
}
.pc-tool-card .plan-lock-overlay {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--pc-line);
}
.pc-accent-text { color: var(--pc-accent); }
.pc-ink-text { color: var(--pc-ink); }
.pc-muted-text { color: var(--pc-muted); }
.pc-subtle-text { color: var(--pc-ink-secondary); }
.pc-btn-sm {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.5rem 0.875rem;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--pc-line);
  background: var(--pc-surface);
  color: var(--pc-accent);
  cursor: pointer;
  font-family: inherit;
}
.pc-btn-sm.primary { background: var(--pc-ink); color: #fff; border-color: var(--pc-ink); }
.pc-btn-sm.primary:hover { background: #1e293b; }
.pc-usage-bar {
  height: 0.625rem;
  border-radius: 999px;
  background: var(--pc-surface-muted);
  border: 1px solid var(--pc-line);
  overflow: hidden;
}
.pc-usage-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pc-accent), var(--pc-teal));
  border-radius: 999px;
  transition: width 0.5s;
}
.pc-usage-fill.warn { background: linear-gradient(90deg, #d97706, #f59e0b); }
.pc-usage-fill.danger { background: linear-gradient(90deg, #dc2626, #ef4444); }
.pc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius);
  background: var(--pc-surface);
}
.pc-table-wrap table { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: 0.8125rem; }
.pc-table-wrap th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--pc-muted);
  border-bottom: 1px solid var(--pc-line);
  background: var(--pc-surface-muted);
}
.pc-table-wrap td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--pc-line-soft);
  color: var(--pc-ink-secondary);
}
.status-success { color: var(--pc-teal); }
.status-warn { color: #b45309; }
.status-error { color: #dc2626; }
.status-published { color: var(--pc-teal); font-weight: 600; }
.btn-success-flash { background: var(--pc-teal-soft) !important; border-color: var(--pc-teal) !important; }

/* Blog */
body.pc-body.pc-blog-body { display: flex; flex-direction: column; }
.pc-blog-header {
  border-bottom: 1px solid var(--pc-line);
  background: var(--pc-surface);
  padding: 2.5rem 0;
}
.pc-blog-main { flex: 1; padding: 3rem 0; width: 100%; }
.pc-blog-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 640px) { .pc-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pc-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.pc-blog-card {
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: var(--pc-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--pc-shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.pc-blog-card:hover {
  box-shadow: var(--pc-shadow);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.pc-blog-card-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pc-accent-dark);
  background: var(--pc-accent-soft);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
  width: fit-content;
}
.pc-blog-card h2 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--pc-ink);
  margin: 0 0 0.625rem;
  letter-spacing: -0.02em;
}
.pc-blog-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--pc-muted);
  margin: 0 0 1rem;
  flex: 1;
}
.pc-blog-card-meta {
  font-size: 0.75rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: auto;
}
.pc-blog-card-read {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pc-accent);
  margin-top: 0.75rem;
}
.pc-blog-card[hidden] { display: none !important; }
.pc-blog-card:not([hidden]) {
  content-visibility: auto;
  contain-intrinsic-size: auto 220px;
}
.pc-blog-pagination-status {
  text-align: center;
  font-size: 0.875rem;
  color: var(--pc-muted);
  margin: 2rem 0 1rem;
}
.pc-blog-pagination {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  overflow-x: auto;
}
.pc-blog-page-numbers {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}
.pc-blog-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  color: var(--pc-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  user-select: none;
}
.pc-blog-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  min-height: 44px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  color: var(--pc-ink-secondary);
  background: var(--pc-surface);
  border: 1px solid var(--pc-line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.pc-blog-page-btn:hover:not(:disabled) {
  border-color: var(--pc-accent);
  color: var(--pc-accent);
}
.pc-blog-page-btn.active {
  background: var(--pc-ink);
  border-color: var(--pc-ink);
  color: #fff;
}
.pc-blog-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pc-blog-page-arrow {
  min-width: auto;
  gap: 0.35rem;
}
@media (max-width: 639px) {
  .pc-blog-page-arrow { font-size: 0.8125rem; padding: 0.5rem 0.7rem; }
  .pc-blog-page-arrow-label { display: none; }
  .pc-blog-page-btn { min-width: 2.25rem; padding: 0.5rem 0.65rem; }
}
.pc-article-layout {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .pc-article-layout { flex-direction: row; align-items: flex-start; }
}
.pc-article-content { flex: 1; min-width: 0; max-width: 42rem; }
.pc-article-sidebar { flex-shrink: 0; width: 100%; }
@media (min-width: 1024px) { .pc-article-sidebar { width: 16rem; } }
.pc-article-sidebar nav { position: sticky; top: 5.5rem; }
.pc-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--pc-muted);
  margin-bottom: 1.25rem;
}
.pc-breadcrumb a { color: var(--pc-accent); text-decoration: none; }
.pc-breadcrumb a:hover { text-decoration: underline; }
.pc-breadcrumb span { color: #94a3b8; }
.pc-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--pc-muted);
  margin-bottom: 1.5rem;
}
.pc-article-prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--pc-ink);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.02em;
}
.pc-article-prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--pc-ink-secondary);
  margin: 1.75rem 0 0.75rem;
}
.pc-article-prose p, .pc-article-prose li {
  color: var(--pc-muted);
  line-height: 1.75;
  font-size: 0.9375rem;
}
.pc-article-prose ul, .pc-article-prose ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  padding: 0;
}
.pc-article-prose li { margin-bottom: 0.5rem; }
.pc-article-prose a { color: var(--pc-accent); }
.pc-article-prose strong { color: var(--pc-ink-secondary); }
.pc-article-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin: 1.25rem 0 1.75rem;
  overflow-x: auto;
  display: block;
}
@media (min-width: 640px) { .pc-article-prose table { display: table; } }
.pc-article-prose th, .pc-article-prose td {
  border: 1px solid var(--pc-line);
  padding: 0.625rem 0.875rem;
  text-align: left;
}
.pc-article-prose th {
  background: var(--pc-surface-muted);
  font-weight: 600;
  color: var(--pc-ink-secondary);
}
.pc-article-cta {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--pc-radius-lg);
  background: linear-gradient(135deg, var(--pc-accent-soft) 0%, var(--pc-teal-soft) 100%);
  border: 1px solid var(--pc-line);
}
.pc-article-cta h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pc-ink);
  margin: 0 0 0.5rem;
}
.pc-article-cta p {
  font-size: 0.875rem;
  color: var(--pc-muted);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}
.pc-sidebar-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pc-muted);
  margin: 0 0 0.75rem;
}
.pc-sidebar-link {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  color: var(--pc-muted);
  text-decoration: none;
  line-height: 1.4;
  border-bottom: 1px solid var(--pc-line-soft);
}
.pc-sidebar-link:hover { color: var(--pc-accent); }
.pc-sidebar-link:last-child { border-bottom: none; }
@media (max-width: 639px) {
  .pc-blog-header { padding: 2rem 0; }
  .pc-blog-main { padding: 2rem 0; }
}

/* Shared mobile safeguards */
img, video, canvas {
  max-width: 100%;
  height: auto;
}
@media (max-width: 959px) {
  .pc-header { z-index: 60; }
  .tab-panel { padding: 1.25rem; }
  .pc-article-cta { padding: 1.5rem 1.25rem; }
}
@media (max-width: 479px) {
  .pc-h1 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .pc-btn-lg { width: 100%; }
}
