/* ─── Hero component — full-width centered ──────────────────────────────── */

.ps-hero {
  padding-top: 96px;
  background: var(--bg-page);
  overflow: hidden;
  position: relative;
}

.ps-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FAF8F5 0%, #F8F6F3 40%, #F4F1EC 100%);
  pointer-events: none;
  z-index: 0;
}

/* Dual radial glow — mint left, blue right */
.ps-hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 60%;
  background:
    radial-gradient(ellipse at 25% 100%, rgba(0,158,122,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 100%, rgba(44,125,224,0.13) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.ps-hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 56px var(--gutter) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* ── Copy: centered block ── */
.ps-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 820px;
  width: 100%;
  padding-bottom: 20px;
}

.ps-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--fb);
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ps-hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: var(--r-full);
  animation: ps-pulse 2s ease-in-out infinite;
}

@keyframes ps-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.ps-hero__h1 {
  font-family: var(--fd);
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

.ps-hero__ai-svg {
  display: inline;
  height: 0.9em;
  width: auto;
  vertical-align: -0.055em;
  color: var(--blue);
  overflow: visible;
}

.ps-hero__sub {
  font-family: var(--fb);
  font-size: clamp(var(--fs-15), 1.3vw, var(--fs-17));
  line-height: 1.7;
  color: var(--muted);
  max-width: 680px;
  white-space: nowrap;
}

.ps-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-16);
  flex-wrap: wrap;
}

.ps-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--fb);
  font-size: var(--fs-15);
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  text-decoration: none;
  padding: 16px 32px;
  border-radius: var(--r-8);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(44,125,224,0.22), 0 6px 20px rgba(44,125,224,0.34);
  transition: background 0.15s ease,
              transform 0.15s ease,
              box-shadow 0.15s ease;
  white-space: nowrap;
}

.ps-hero__cta-primary:hover {
  background: var(--blue-2);
  transform: scale(0.97);
  box-shadow: 0 2px 4px rgba(44,125,224,0.18), 0 6px 16px rgba(44,125,224,0.26);
}

.ps-hero__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--fb);
  font-size: var(--fs-14);
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  padding: 16px 24px;
  border-radius: var(--r-8);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              transform var(--dur-fast) var(--ease);
  white-space: nowrap;
}

.ps-hero__cta-secondary:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: scale(0.97);
  background: var(--border-subtle);
}

.ps-hero__trust {
  font-family: var(--fb);
  font-size: var(--fs-13);
  color: var(--muted);
  margin: 0;
}

/* Social proof row */
.ps-hero__social {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
}

.ps-hero__avatars {
  display: flex;
  align-items: center;
}

.ps-hero__avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--r-full);
  background: var(--bg-elevated);
  border: 2px solid var(--bg);
  margin-right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
}

.ps-hero__avatar:last-child { margin-right: 0; }

.ps-hero__social-text {
  font-family: var(--fb);
  font-size: var(--fs-13);
  color: var(--muted);
  line-height: 1.4;
}

.ps-hero__stars {
  color: var(--amber);
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* ── Demo: 3/4 width, centered ── */
.ps-hero__demo-wrap {
  width: 90%;
  max-width: 1325px;
  margin: 0 auto;
  position: relative;
}

/* ── Browser window frame ── */
.ps-hero__browser {
  width: 100%;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 1px rgba(26,39,64,0.07),
    0 8px 24px rgba(26,39,64,0.06),
    0 24px 48px rgba(26,39,64,0.08),
    0 48px 96px rgba(26,39,64,0.05);
  background: #fff;
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 80%, transparent 100%);
}

.ps-hero__browser-chrome {
  display: flex;
  align-items: center;
  gap: var(--sp-12);
  padding: 10px 16px 10px 24px;
  background: #F0F0F2;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.ps-hero__browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.ps-hero__browser-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.ps-hero__browser-dots span:nth-child(1) { background: #FF5F57; }
.ps-hero__browser-dots span:nth-child(2) { background: #FEBC2E; }
.ps-hero__browser-dots span:nth-child(3) { background: #28C840; }

.ps-hero__browser-bar {
  flex: 1;
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--fb);
  font-size: 12px;
  color: #666;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 360px;
  margin: 0 auto;
}

cc-demo {
  display: block;
  width: 100%;
}

/* Static fallback */
.ps-hero__demo-static {
  display: none;
  width: 100%;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: var(--sh-lg);
}

/* ── Mobile static mock styles ── */
.ps-hsm {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  font-family: var(--fb);
  -webkit-font-smoothing: antialiased;
}

.ps-hsm__bg {
  padding: var(--sp-12) var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  opacity: 0.4;
  border-bottom: 1px solid var(--border-subtle);
}

.ps-hsm__bg-bar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-4);
  padding: 6px var(--sp-10);
  font-size: var(--fs-11);
  color: var(--muted);
}

.ps-hsm__bg-brow {
  display: flex;
  align-items: center;
  gap: var(--sp-10);
}

.ps-hsm__bg-cover {
  width: 36px;
  height: 48px;
  border-radius: var(--r-4);
  background: var(--c);
  flex-shrink: 0;
}

.ps-hsm__bg-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.ps-hsm__bg-lines > div {
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--r-4);
}

.ps-hsm__bg-lines > div:nth-child(1) { width: 80%; }
.ps-hsm__bg-lines > div:nth-child(2) { width: 55%; }
.ps-hsm__bg-lines > div:nth-child(3) { width: 35%; }

.ps-hsm__bg-pill {
  flex-shrink: 0;
  font-size: var(--fs-10);
  font-weight: 600;
  padding: 3px var(--sp-8);
  border-radius: var(--r-full);
}

.ps-hsm__panel {
  display: flex;
  flex-direction: column;
}

.ps-hsm__tabs {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-10) var(--sp-16) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ps-hsm__tab {
  font-size: var(--fs-12);
  font-weight: 500;
  color: var(--label);
  padding: var(--sp-6) var(--sp-10);
  border-radius: var(--r-6);
}

.ps-hsm__tab--active {
  background: var(--bg-elevated);
  color: var(--text);
  font-weight: 600;
}

.ps-hsm__body {
  padding: var(--sp-12) var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.ps-hsm__sub {
  font-size: var(--fs-11);
  color: var(--label);
}

.ps-hsm__pills {
  display: flex;
  gap: var(--sp-6);
  flex-wrap: wrap;
}

.ps-hsm__pill {
  font-size: var(--fs-11);
  font-weight: 600;
  padding: 3px var(--sp-8);
  border-radius: var(--r-full);
}

.ps-hsm__pill--high,
.ps-hsm__pill--mint  { background: var(--mint-bg);  color: var(--mint);  }
.ps-hsm__pill--mod,
.ps-hsm__pill--amber { background: var(--amber-bg); color: var(--amber); }
.ps-hsm__pill--blue  { background: var(--blue-bg);  color: var(--blue);  }

.ps-hsm__hl {
  font-size: var(--fs-13);
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.ps-hsm__scores {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.ps-hsm__score-row {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.ps-hsm__score-lbl {
  font-size: var(--fs-11);
  color: var(--label);
  width: 72px;
  flex-shrink: 0;
}

.ps-hsm__track {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: var(--r-4);
  overflow: hidden;
}

.ps-hsm__bar {
  height: 100%;
  border-radius: var(--r-4);
}

.ps-hsm__bar--mint  { background: var(--mint);  }
.ps-hsm__bar--amber { background: var(--amber); }
.ps-hsm__bar--blue  { background: var(--blue);  }

.ps-hsm__score-num {
  font-size: var(--fs-11);
  font-weight: 600;
  color: var(--text);
  width: 20px;
  text-align: right;
  flex-shrink: 0;
}

.ps-hsm__pos {
  font-size: var(--fs-11);
  color: var(--muted);
  line-height: 1.5;
  border-top: 1px solid var(--border-subtle);
  padding-top: var(--sp-8);
}

.ps-hsm__pos-lbl {
  font-size: var(--fs-10);
  font-weight: 700;
  color: var(--mint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 3px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .ps-hero__copy {
    padding-bottom: var(--sp-40);
  }

  .ps-hero__h1 {
    font-size: clamp(28px, 8vw, 40px);
  }

  .ps-hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .ps-hero__cta-primary,
  .ps-hero__cta-secondary {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  cc-demo { display: none; }
  .ps-hero__browser { display: none; }
  .ps-hero__demo-static { display: block; }
  .ps-hero__demo-wrap { padding: 0; }
}

/* ── Dark mode ── */
[data-theme="dark"] .ps-hero {
  background: var(--bg-hero);
}

/* Gradient: deep navy tint at top fades into warm dark — gives depth, nods to blue theme */
[data-theme="dark"] .ps-hero::after {
  background: linear-gradient(180deg, #1A1F2E 0%, #1E1D22 45%, #17161B 100%);
}

/* Glows: boost opacity so they actually glow on dark */
[data-theme="dark"] .ps-hero::before {
  background:
    radial-gradient(ellipse at 25% 100%, rgba(0,158,122,0.26) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 100%, rgba(44,125,224,0.26) 0%, transparent 55%);
}

/* Browser chrome: light SERP bg fills behind the radial mask — no white glow */
[data-theme="dark"] .ps-hero__browser {
  background: #D8D6D2;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.10),
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 8px 24px rgba(0,0,0,0.3),
    0 24px 48px rgba(0,0,0,0.25),
    0 48px 96px rgba(0,0,0,0.18);
}
[data-theme="dark"] .ps-hero__browser-chrome {
  background: #13141A;
  border-bottom-color: rgba(255,255,255,0.07);
}
[data-theme="dark"] .ps-hero__browser-dots span:nth-child(1) { background: #6B3030; }
[data-theme="dark"] .ps-hero__browser-dots span:nth-child(2) { background: #6B5520; }
[data-theme="dark"] .ps-hero__browser-dots span:nth-child(3) { background: #1F5230; }
[data-theme="dark"] .ps-hero__browser-bar {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.09);
  color: #6B7A94;
}

/* Secondary CTA: make border/text legible on dark */
[data-theme="dark"] .ps-hero__cta-secondary {
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
}
[data-theme="dark"] .ps-hero__cta-secondary:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.06);
}

