/* Homepage Hero (Approved 4KATE Visual) */
.hero-section.ps-hero-approved {
  background:
    radial-gradient(circle at 82% 24%, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0) 52%),
    radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.08) 0%, rgba(56, 189, 248, 0) 45%),
    linear-gradient(180deg, #F3F7FF 0%, #FFFFFF 100%);
  padding-block: 44px 36px;
  border-bottom: 1px solid var(--ps-border);
  overflow: hidden;
}

.ps-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: center;
}

.ps-hero-approved .hero-title {
  font-size: clamp(2.35rem, 4.1vw, 3.25rem);
  font-weight: 900;
  line-height: 1.09;
  letter-spacing: -0.035em;
  color: var(--ps-navy);
  margin-bottom: 16px;
  max-width: 15ch;
}

.ps-hero-approved .hero-desc {
  font-size: 1.06rem;
  line-height: 1.6;
  color: #475569;
  max-width: 48ch;
  margin-bottom: 24px;
}

.ps-hero-mini-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin-top: 22px;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--ps-text);
}

.ps-hero-mini-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ps-hero-mini-trust svg {
  color: var(--ps-primary);
}

/* Laptop Illustration + Abstract Shapes + Floating File Badges */
.ps-hero-visual {
  position: relative;
  padding: 28px 20px 24px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1100px;
}

.ps-hero-blob {
  position: absolute;
  border-radius: 9999px;
  pointer-events: none;
  z-index: 0;
}

.ps-blob-1 {
  width: 310px;
  height: 310px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(37, 99, 235, 0) 70%);
  top: -16px;
  inset-inline-end: 0;
}

.ps-blob-2 {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18) 0%, rgba(56, 189, 248, 0) 70%);
  bottom: 4px;
  inset-inline-start: 4px;
}

.ps-hero-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 9999px;
  border: 1.5px solid rgba(37, 99, 235, 0.1);
  z-index: 0;
  pointer-events: none;
}

.ps-laptop {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 452px;
  transform: rotateY(-4deg) rotateX(1.5deg);
  transform-style: preserve-3d;
}

.ps-laptop-lid {
  background: linear-gradient(155deg, #1E293B 0%, #0F172A 100%);
  border-radius: 18px 18px 6px 6px;
  padding: 11px 11px 14px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 28px 50px -14px rgba(15, 23, 42, 0.3),
    0 8px 20px -6px rgba(37, 99, 235, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  position: relative;
}

.ps-laptop-cam {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.45);
  margin: 0 auto 8px auto;
}

.ps-laptop-screen {
  background: #F8FAFC;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.18);
  position: relative;
}

.ps-screen-topbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--ps-border);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ps-screen-dots {
  display: inline-flex;
  gap: 5px;
}

.ps-screen-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.ps-screen-dots .dot-red { background: #F87171; }
.ps-screen-dots .dot-amber { background: #FBBF24; }
.ps-screen-dots .dot-green { background: #34D399; }

.ps-screen-url {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ps-muted);
  background: #F1F5F9;
  padding: 2px 10px;
  border-radius: 9999px;
}

.ps-screen-brand {
  font-family: var(--ps-font-display);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ps-navy);
}

.ps-screen-brand strong {
  color: var(--ps-primary);
}

.ps-screen-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ps-screen-upload {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FBFF 100%);
  border: 1.5px dashed #93C5FD;
  border-radius: 12px;
  padding: 20px 14px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ps-screen-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, #DBEAFE 0%, #EFF6FF 100%);
  color: var(--ps-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.14);
}

.ps-screen-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ps-navy);
  margin-bottom: 3px;
}

.ps-screen-sub {
  font-size: 0.74rem;
  color: var(--ps-muted);
  margin-bottom: 12px;
}

.ps-screen-btn {
  display: inline-block;
  background: linear-gradient(180deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.ps-screen-queue {
  background: #FFFFFF;
  border: 1px solid var(--ps-border);
  border-radius: 9px;
  padding: 7px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.ps-queue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--ps-navy);
}

.ps-queue-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22C55E;
  display: inline-block;
}

.ps-queue-status {
  font-weight: 700;
  color: #16A34A;
  background: #F0FDF4;
  padding: 2px 8px;
  border-radius: 9999px;
}

.ps-laptop-base {
  height: 15px;
  width: 109%;
  margin-inline-start: -4.5%;
  background: linear-gradient(180deg, #E2E8F0 0%, #CBD5E1 52%, #94A3B8 100%);
  border-radius: 0 0 14px 14px;
  display: flex;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
}

.ps-laptop-notch {
  width: 68px;
  height: 4px;
  background: #64748B;
  border-radius: 0 0 4px 4px;
}

.ps-laptop-shadow {
  width: 92%;
  height: 16px;
  margin: 4px auto 0 auto;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.2) 0%, rgba(15, 23, 42, 0) 72%);
}

.ps-float-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 12px;
  font-family: var(--ps-font-display);
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.14), 0 4px 8px -2px rgba(15, 23, 42, 0.06);
}

.ps-float-pdf { top: 8px; inset-inline-start: 2px; color: #DC2626; transform: rotate(-5deg); }
.ps-float-doc { top: 18px; inset-inline-end: -2px; color: #2563EB; transform: rotate(5deg); }
.ps-float-jpg { bottom: 36px; inset-inline-start: -2px; color: #D97706; transform: rotate(4deg); }
.ps-float-png { bottom: 30px; inset-inline-end: 4px; color: #16A34A; transform: rotate(-4deg); }

/* Bottom Trust Bar */
.ps-hero-trust-bar {
  margin-top: 32px;
  background: #FFFFFF;
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  box-shadow: var(--ps-shadow-sm);
}

.ps-trust-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-inline: 16px;
  border-inline-end: 1px solid var(--ps-border);
}

.ps-trust-bar-item:first-child {
  padding-inline-start: 4px;
}

.ps-trust-bar-item:last-child {
  padding-inline-end: 4px;
  border-inline-end: none;
}

.ps-trust-bar-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ps-primary-light);
  color: var(--ps-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-trust-bar-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ps-navy);
  line-height: 1.25;
}

.ps-trust-bar-item span {
  display: block;
  font-size: 0.8rem;
  color: var(--ps-muted);
  line-height: 1.35;
}

@media (max-width: 1024px) {
  .ps-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .ps-hero-approved .hero-title {
    max-width: none;
  }
  .ps-laptop {
    max-width: 400px;
    transform: none;
  }
  .ps-hero-trust-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .ps-trust-bar-item {
    padding-inline: 0;
    border-inline-end: none;
  }
}

@media (max-width: 560px) {
  .hero-section.ps-hero-approved {
    padding-block: 30px 26px;
  }
  .ps-hero-approved .hero-title {
    font-size: 2rem;
  }
  .ps-hero-trust-bar {
    padding: 14px;
    gap: 14px 12px;
  }
  .ps-trust-bar-item {
    align-items: flex-start;
    gap: 9px;
  }
  .ps-float-badge {
    padding: 5px 9px;
    font-size: 0.7rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--ps-radius-full);
  background: var(--ps-primary-light);
  color: var(--ps-primary);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.1rem, 4vw, 3rem);
  line-height: 1.14;
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--ps-text);
  margin-bottom: 24px;
  max-width: 560px;
}

/* Hero Tool Search */
.hero-search-wrap {
  position: relative;
  max-width: 480px;
  margin-bottom: 22px;
}

.hero-search-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  font-size: 0.96rem;
  color: var(--ps-navy);
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  box-shadow: var(--ps-shadow-sm);
}

.hero-search-icon {
  position: absolute;
  inset-inline-start: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ps-muted);
  pointer-events: none;
}

.hero-search-results {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  box-shadow: var(--ps-shadow-card);
  max-height: 280px;
  overflow-y: auto;
  display: none;
  z-index: 50;
}

.hero-search-results.is-open {
  display: block;
}

.hero-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--ps-border);
  font-size: 0.9rem;
}

.hero-search-item:last-child {
  border-bottom: none;
}

.hero-search-item:hover {
  background: var(--ps-primary-light);
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Lightweight SaaS Visual Card */
.hero-visual-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-xl);
  padding: 24px;
  box-shadow: var(--ps-shadow-card);
}

.hero-visual-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-md);
  margin-bottom: 10px;
  background: var(--ps-background);
}

.hero-visual-row:last-child {
  margin-bottom: 0;
}

/* Steps, Why 4KATE, Use Cases & Knowledge Cards */
.ps-feature-card {
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: var(--ps-radius-lg);
  padding: 26px 22px;
  box-shadow: var(--ps-shadow-sm);
}

.ps-step-num {
  width: 34px;
  height: 34px;
  border-radius: var(--ps-radius-full);
  background: var(--ps-primary-light);
  color: var(--ps-primary);
  font-weight: 800;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.ps-feature-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.ps-feature-card p {
  font-size: 0.9rem;
  color: var(--ps-muted);
  line-height: 1.6;
}

.ps-badge-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--ps-radius-full);
  background: var(--ps-primary-light);
  color: var(--ps-primary);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Organized for Fast Workflow (Compact 4-Card Category Section) */
.ps-workflow-section {
  padding-block: 44px 24px;
}

.ps-workflow-heading {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  text-align: center;
  margin-bottom: 8px;
}

.ps-workflow-subtitle {
  font-size: 0.98rem;
  color: var(--ps-muted);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 28px auto;
  line-height: 1.55;
}

.ps-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.ps-workflow-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--ps-shadow-sm);
  transition: transform var(--ps-transition), box-shadow var(--ps-transition), border-color var(--ps-transition);
}

.ps-workflow-card:hover {
  transform: translateY(-2px);
  border-color: var(--ps-primary);
  box-shadow: var(--ps-shadow-card-hover);
}

.ps-workflow-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ps-primary-light);
  color: var(--ps-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.ps-workflow-card h3 {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ps-navy);
  margin-bottom: 6px;
}

.ps-workflow-card p {
  font-size: 0.87rem;
  color: var(--ps-muted);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 12px;
}

.ps-workflow-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ps-primary);
}

@media (max-width: 1024px) {
  .ps-workflow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .ps-workflow-section {
    padding-block: 36px 18px;
  }
  .ps-workflow-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ps-workflow-card {
    padding: 18px;
  }
}

/* Why 4KATE (Compact 4-Column Benefit Grid) */
.ps-benefits-section {
  padding-block: 40px 24px;
}

.ps-section-head-compact {
  text-align: center;
  margin-bottom: 24px;
}

.ps-section-head-compact h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin-bottom: 6px;
}

.ps-section-head-compact p {
  font-size: 0.96rem;
  color: var(--ps-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.55;
}

.ps-benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ps-benefit-item {
  background: var(--ps-background);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ps-benefit-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--ps-primary-light);
  color: var(--ps-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-benefit-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ps-navy);
}

.ps-benefit-item p {
  font-size: 0.85rem;
  color: var(--ps-muted);
  line-height: 1.48;
}

/* Built for Every Document Workflow (3+2 Balanced Editorial Grid on Subtle Light-Blue Surface) */
.ps-audiences-section {
  padding-block: 36px 44px;
  background: linear-gradient(180deg, var(--ps-primary-subtle) 0%, var(--ps-background) 100%);
  border-block: 1px solid var(--ps-border);
}

.ps-audiences-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.ps-audience-item {
  grid-column: span 2;
  background: var(--ps-surface);
  border: 1px solid var(--ps-border);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--ps-shadow-sm);
}

.ps-audience-item:nth-child(4),
.ps-audience-item:nth-child(5) {
  grid-column: span 3;
}

.ps-audience-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ps-primary-light);
  color: var(--ps-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-audience-item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ps-navy);
  margin-bottom: 4px;
}

.ps-audience-item p {
  font-size: 0.86rem;
  color: var(--ps-muted);
  line-height: 1.48;
}

@media (max-width: 1024px) {
  .ps-benefits-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-audiences-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ps-audience-item,
  .ps-audience-item:nth-child(4),
  .ps-audience-item:nth-child(5) {
    grid-column: span 1;
  }
  .ps-audience-item:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 560px) {
  .ps-benefits-section {
    padding-block: 30px 18px;
  }
  .ps-audiences-section {
    padding-block: 28px 32px;
  }
  .ps-benefits-grid,
  .ps-audiences-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .ps-audience-item:nth-child(5) {
    grid-column: span 1;
  }
}
