/* ==========================================================================
   PortalShield — B2B Storefront & Marketing Landing Styles
   Zero external CDN / font dependencies (100/100 Lighthouse & Offline Ready)
   ========================================================================== */

:root {
  --lp-bg-dark: #070d19;
  --lp-bg-dark-card: #0f172a;
  --lp-bg-light: #f8fafc;
  --lp-bg-white: #ffffff;
  --lp-text-main: #0f172a;
  --lp-text-body: #334155;
  --lp-text-muted: #64748b;
  --lp-text-light: #f8fafc;
  --lp-text-slate: #94a3b8;
  --lp-border: #e2e8f0;
  --lp-border-dark: #1e293b;
  --lp-primary: #2563eb;
  --lp-primary-hover: #1d4ed8;
  --lp-indigo: #4f46e5;
  --lp-emerald: #10b981;
  --lp-critical: #ef4444;
  --lp-high: #f97316;
  --lp-font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --lp-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--lp-font-sans);
  color: var(--lp-text-main);
  background: var(--lp-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

code,
pre {
  font-family: var(--lp-font-mono);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 13, 25, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--lp-border-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--lp-primary), var(--lp-indigo));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-ctas {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Buttons */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.15rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.lp-btn-lg {
  padding: 0.85rem 1.45rem;
  font-size: 0.98rem;
  border-radius: 10px;
}

.lp-btn-primary {
  background: var(--lp-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.lp-btn-primary:hover {
  background: var(--lp-primary-hover);
  transform: translateY(-1px);
}

.lp-btn-emerald {
  background: var(--lp-emerald);
  color: #022c22;
  font-weight: 700;
}

.lp-btn-emerald:hover {
  background: #34d399;
}

.lp-btn-ghost-dark {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.16);
}

.lp-btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.lp-btn-outline {
  background: #ffffff;
  color: var(--lp-text-main);
  border-color: #cbd5e1;
}

.lp-btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.lp-btn-block {
  width: 100%;
}

/* Hero Section */
.hero {
  background: radial-gradient(circle at 80% 15%, rgba(79, 70, 229, 0.22), transparent 45%),
              radial-gradient(circle at 15% 80%, rgba(16, 185, 129, 0.12), transparent 40%),
              var(--lp-bg-dark);
  color: var(--lp-text-light);
  padding: 4.5rem 0 5rem;
  border-bottom: 1px solid var(--lp-border-dark);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.csp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.csp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lp-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.95rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.15rem;
  font-weight: 800;
}

.hero h1 .accent {
  background: linear-gradient(90deg, #60a5fa, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.08rem;
  color: #cbd5e1;
  margin: 0 0 1.75rem;
  max-width: 580px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.hero-reassurance {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  font-size: 0.82rem;
  color: var(--lp-text-slate);
}

.hero-reassurance span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero Terminal / Report Preview Card */
.hero-preview-card {
  background: var(--lp-bg-dark-card);
  border: 1px solid #334155;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.preview-window-bar {
  background: #1e293b;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #334155;
  font-size: 0.76rem;
  color: #94a3b8;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.window-dots i:nth-child(1) { background: #ef4444; }
.window-dots i:nth-child(2) { background: #f59e0b; }
.window-dots i:nth-child(3) { background: #10b981; }

.preview-body {
  padding: 1.15rem;
}

.preview-gate-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.9rem;
}

.preview-gate-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #ef4444;
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.2rem;
}

.preview-gate-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: #fecaca;
}

.preview-score {
  text-align: right;
  font-family: var(--lp-font-mono);
}

.preview-score strong {
  font-size: 1.35rem;
  color: #f87171;
}

.preview-finding {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  border-left: 3px solid var(--lp-critical);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
  font-size: 0.81rem;
}

.preview-finding.high {
  border-left-color: var(--lp-high);
}

.pf-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.25rem;
  flex-wrap: wrap;
}

.pf-sev {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 0.1rem 0.42rem;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.pf-sev.high {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}

.pf-rule {
  font-family: var(--lp-font-mono);
  font-size: 0.72rem;
  color: #94a3b8;
}

.pf-xref {
  font-size: 0.68rem;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  padding: 0.08rem 0.42rem;
  border-radius: 4px;
}

.pf-title {
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.2rem;
}

.pf-loc {
  font-family: var(--lp-font-mono);
  font-size: 0.72rem;
  color: #64748b;
}

.preview-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  font-size: 0.8rem;
  color: #93c5fd;
}

.preview-footer-link a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
}

.preview-footer-link a:hover {
  text-decoration: underline;
}

/* Generic Sections */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--lp-bg-light);
  border-top: 1px solid var(--lp-border);
  border-bottom: 1px solid var(--lp-border);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lp-primary);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.25rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  color: var(--lp-text-body);
  font-size: 1.02rem;
}

/* 3 Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--lp-bg-white);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 1.65rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--lp-primary);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--lp-text-body);
}

/* InfoSec Comparison Table */
.table-wrap {
  overflow-x: auto;
  background: var(--lp-bg-white);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 680px;
}

.comp-table th,
.comp-table td {
  padding: 0.95rem 1.15rem;
  text-align: left;
  border-bottom: 1px solid var(--lp-border);
}

.comp-table thead th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--lp-text-main);
}

.comp-table th.highlight-col,
.comp-table td.highlight-col {
  background: #eff6ff;
}

.comp-table thead th.highlight-col {
  background: #dbeafe;
  color: #1e3a8a;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.good {
  color: #047857;
  font-weight: 600;
}

.bad {
  color: #b91c1c;
}

/* Rules Matrix */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.35rem;
}

.rule-pillar {
  background: var(--lp-bg-white);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.rule-pillar h3 {
  margin: 0 0 0.85rem;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pillar-tag {
  font-size: 0.72rem;
  font-family: var(--lp-font-mono);
  background: #f1f5f9;
  color: #475569;
  padding: 0.18rem 0.5rem;
  border-radius: 5px;
}

.rule-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rule-list li {
  font-size: 0.88rem;
  color: var(--lp-text-body);
  padding-left: 0.65rem;
  border-left: 2px solid #cbd5e1;
}

.rule-list code {
  font-size: 0.78rem;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  color: #0f172a;
  font-weight: 600;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--lp-bg-white);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.price-card.featured {
  border: 2px solid var(--lp-primary);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.14);
}

.popular-ribbon {
  position: absolute;
  top: -13px;
  right: 20px;
  background: var(--lp-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
}

.tier-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.tier-desc {
  font-size: 0.86rem;
  color: var(--lp-text-muted);
  margin: 0 0 1.25rem;
  min-height: 2.6em;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-term {
  font-size: 0.84rem;
  color: var(--lp-text-muted);
  font-weight: 500;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.89rem;
  color: var(--lp-text-body);
  flex-grow: 1;
}

.tier-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.check-icon {
  color: var(--lp-emerald);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-footnote {
  text-align: center;
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--lp-text-muted);
}

/* FAQ */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.faq-item {
  background: var(--lp-bg-white);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 1.1rem 1.35rem;
}

.faq-item summary {
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  color: var(--lp-text-main);
}

.faq-item p {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--lp-text-body);
}

/* Footer */
.site-footer {
  background: var(--lp-bg-dark);
  color: var(--lp-text-slate);
  padding: 3rem 0;
  border-top: 1px solid var(--lp-border-dark);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Legal Pages Layout */
.legal-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}

.legal-main h1 {
  font-size: 2rem;
  margin-bottom: 0.35rem;
}

.legal-updated {
  color: var(--lp-text-muted);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.legal-main h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-main p,
.legal-main li {
  color: var(--lp-text-body);
  font-size: 0.95rem;
}

/* Toast */
.lp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 420px;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
  padding: 0.85rem 1.15rem;
  border-radius: 10px;
  font-size: 0.85rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.lp-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .hero-grid,
  .steps-grid,
  .rules-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}
