:root{
  --ps-blue-700:#003a6d;
  --ps-blue-600:#0b5ba5;
  --ps-blue-500:#0078d4;
  --ps-blue-400:#3aa0ff;
  --ink:#0e1726;
  --muted:#5b6b7c;
  --bg:#f6f8fb;
  --card:#ffffff;
  --border:#e6ebf2;
  --ok:#0f8b3d;
  --warn:#b44a00;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:"Segoe UI",system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg);line-height:1.55}

/* Header */
.psg-header{background:linear-gradient(0deg,var(--ps-blue-600),var(--ps-blue-700));color:#fff}
.container{max-width:1100px;margin:0 auto;padding:0 20px}
.nav{display:flex;justify-content:space-between;align-items:center;height:64px}
.brand{display:flex;align-items:center;color:#fff;text-decoration:none;font-weight:700;letter-spacing:.2px}
.brand-logo{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:4px;background:var(--ps-blue-400);margin-right:10px;color:#001730;font-weight:700}
.links a{color:#cfe8ff;text-decoration:none;margin-left:18px}
.links a:hover{color:#fff}

/* Hero */
.hero{background:linear-gradient(180deg,var(--ps-blue-600) 0%, var(--ps-blue-700) 100%);color:#fff;padding:42px 0}
.hero-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.hero h1{font-size:34px;margin:.1rem 0}
.sub{color:#e7f1ff}
.search{display:flex;align-items:center;margin:18px 0}
.search input{width:100%;padding:12px 14px;border-radius:4px 0 0 4px;border:none}
.search button{height:42px;width:48px;border:none;border-radius:0 4px 4px 0;background:#fff;cursor:pointer}
.stats{display:flex;gap:22px;margin-top:12px;flex-wrap:wrap}
.stat .num{font-size:20px;font-weight:700}
.stat .label{font-size:12px;color:#cfe8ff}
.ps-avatar{width:220px;height:220px;border-radius:14px;background:linear-gradient(160deg,#0f356b,#1a6ad1);box-shadow:0 8px 26px rgba(0,0,0,.25);}

/* Module look-alike */
.module{margin-top:28px}
.crumbs{color:var(--muted);font-size:13px;margin-bottom:8px}
.module-head{display:flex;justify-content:space-between;align-items:center;background:var(--card);border:1px solid var(--border);padding:16px;border-radius:10px}
.module-title{margin:.25rem 0}
.ver{font-size:14px;color:var(--muted);margin-left:6px}
.owner{font-size:13px;color:var(--muted)}
.module-icon{width:64px;height:64px;border-radius:8px;background:linear-gradient(135deg,#dfefff,#b8daff);border:1px solid #b6d0f2}

/* Cards & grids */
.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:16px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}
@media (max-width:900px){.hero-inner{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}}

.tabs .tabbar{display:flex;gap:6px;margin-bottom:8px}
.tabs .tab{border:1px solid var(--border);background:#f7fbff;color:#0a2a55;padding:8px 12px;border-radius:6px;cursor:pointer}
.tabs .tab.active{background:#e8f2ff;border-color:#cfe0fb}
.tabpanel{display:none}
.tabpanel.active{display:block}

.code-copy{display:flex;align-items:center;gap:10px;margin-top:8px;background:#0f1b2a;color:#d5e7ff;padding:10px;border-radius:8px}
.code-copy code{white-space:pre-wrap;font-family:ui-monospace, monospace}
.copy{border:none;background:#1f3350;color:#e6f1ff;padding:6px 8px;border-radius:6px;cursor:pointer}
.copy.disabled{opacity:.5;cursor:not-allowed}
.note{color:var(--muted);font-size:12px}

.accent{color:#ffe08a}
.muted{color:var(--muted)}
.small{font-size:13px}
.tight li{margin:6px 0}
.emph{font-weight:600}

.callout{border-left:4px solid var(--ps-blue-500);background:#f1f7ff;padding:12px;border-radius:8px}
.callout.impact{border-left-color:#7c3aed}
.callout.warn{border-left-color:#d97706}
.callout.good{border-left-color:#059669}
.callout.neutral{border-left-color:#64748b}

.image-col .sshot{margin:0}
.image-col img{width:100%;border-radius:8px;border:1px solid var(--border)}

/* Terminal: fixed viewport + no layout shifts */
.terminal{
  /* fixed size */
  height:260px;
  min-height:260px;
  max-height:260px;

  /* scrolling inside, no layout jumps when scrollbar appears */
  overflow:auto;
  scrollbar-gutter: stable both-edges;

  /* stop the browser from re-anchoring the page while content updates */
  overflow-anchor: none;

  /* wrap long lines so width never grows */
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;

  /* visuals */
  line-height:1.35;
  font-family:ui-monospace,monospace;
  background:#0b1220;
  color:#9fe694;
  border-radius:10px;
  padding:12px;
  border:1px solid #1b2942;
}

@media (min-width: 900px){
  .terminal{ height:300px; min-height:300px; max-height:300px; }
}


/* Comparison band */
.band.compare{background:#0f2040;color:#e6f1ff;padding:28px 0;margin:24px 0}
.band.compare h3{margin-top:0}
.band.compare .card{background:#0c1a34;border-color:#1d2f55}
.band.compare .card.good{border-left:4px solid var(--ok)}

/* Footer */
.psg-footer{background:#041a33;color:#b8d1f3;margin-top:28px}
.foot{display:flex;justify-content:space-between;align-items:center;height:64px}
.foot a{color:#b8d1f3;text-decoration:none;margin-left:16px}
.foot a:hover{color:#ffffff}

/* -------- Intro article (top narrative) -------- */
/* Hard-center the intro article by layout, not margins */
.container.intro-article{
  display:grid;                /* grid lets us center direct children */
  justify-items:center;        /* center the card horizontally */
  margin:32px auto;
}

/* Give the card a real, non-fluid width so it can't stretch */
.container.intro-article > .card{
  width:min(100%, 760px);
  max-width:760px;
  font-size:16px;
  line-height:1.7;
  padding:18px 22px;
  text-align:left;             /* neutralize any inherited centering */
  margin:0;                    /* grid centering handles placement */
}

/* Headings & paragraphs inside the intro */
.intro-article h2{
  margin-top:0;
  margin-bottom:14px;
  font-size:24px;
  color:var(--ps-blue-700);
}
.intro-article p{
  margin:0 0 14px;
  margin-inline-start:0;
  text-indent:0;
}
/* First paragraph after the h2: nuke any weird offsets */
.intro-article .card h2 + p{
  margin-left:0 !important;
  padding-left:0 !important;
  text-indent:0 !important;
  text-align:left !important;
}

/* -------- Phishing email demo -------- */
.phishing-demo .email-demo{
  border:1px solid var(--border);
  border-radius:8px;
  margin:16px 0;
  background:#fff;
  font-family:Segoe UI, system-ui, sans-serif;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
}
.email-header{
  background:#f1f5fb;
  padding:10px;
  font-size:14px;
  border-bottom:1px solid var(--border);
}
.email-body{
  padding:14px;
  font-size:15px;
  line-height:1.6;
}
.email-body .cta{
  display:inline-block;
  background:var(--ps-blue-500);
  color:#fff;
  padding:10px 16px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
}
.email-body .cta:hover{
  background:var(--ps-blue-600);
}

/* ----- Animated Bar Chart ----- */
.bar-chart{
  display:grid;
  gap:14px;
  margin-top:8px;
}

.bar{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:12px;
}

.bar-label{
  font-weight:600;
  color:var(--ink);
}

.bar-value{
  font-weight:700;
  color:var(--ps-blue-700);
  letter-spacing:.2px;
}

.bar-track{
  grid-column: 1 / -1;
  height:16px;
  background:#eef3fb;
  border:1px solid var(--border);
  border-radius:999px;
  overflow:hidden;
  position:relative;
}

.bar-fill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, var(--ps-blue-500), var(--ps-blue-400));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.45);
  border-radius:999px;
  transition:width 1.2s cubic-bezier(.2,.8,.2,1);
  position:relative;
}

/* subtle sheen pass */
.bar-fill::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(100deg, transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform:translateX(-100%);
  animation:shine 2.2s ease-in-out .4s forwards;
}

.bar-fill.animate{ width:var(--target-width); }

@keyframes shine{ to{ transform:translateX(100%); } }

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .bar-fill, .bar-fill::after{ transition:none; animation:none; }
}

/* Responsive nicety */
@media (max-width:700px){
  .bar-label{ font-size:14px; }
  .bar-value{ font-size:14px; }
}

