﻿/* ==========================================================================
   PdfMag Landing Page - Unified Card & Grid System
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (scoped to landing)
   -------------------------------------------------------------------------- */
:root {
  --pm-card-radius: 16px;
  --pm-card-padding: 24px;
  --pm-card-padding-sm: 18px;
  --pm-card-bg: #ffffff;
  --pm-card-border: #e2e8f0;
  --pm-card-shadow: 0 4px 16px rgba(16, 24, 40, 0.06), 0 1px 4px rgba(16, 24, 40, 0.04);
  --pm-card-shadow-hover: 0 12px 28px rgba(16, 24, 40, 0.1), 0 4px 12px rgba(16, 24, 40, 0.06);
  --pm-grid-gap: 20px;
  --pm-grid-gap-sm: 14px;
  --pm-section-py: 48px;
  --pm-section-py-sm: 32px;
}

/* --------------------------------------------------------------------------
   .pm-card - Universal card component
   -------------------------------------------------------------------------- */
.pm-card {
  background: var(--pm-card-bg);
  border: 1px solid var(--pm-card-border);
  border-radius: var(--pm-card-radius);
  padding: var(--pm-card-padding);
  box-shadow: var(--pm-card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

/* Focus styles for keyboard navigation */
.pm-card:focus-within {
  outline: 2px solid var(--pm-primary, #3498db);
  outline-offset: 2px;
}

/* Hover effect - only on devices with hover capability */
@media (hover: hover) and (pointer: fine) {
  .pm-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pm-card-shadow-hover);
    border-color: #cbd5e1;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .pm-card {
    transition: none;
  }
  .pm-card:hover {
    transform: none;
  }
}

/* Card accent variations */
.pm-card--accent {
  border-top: 4px solid var(--pm-accent, #10b981);
}

.pm-card--info {
  border-top: 4px solid var(--pm-primary, #3498db);
}

.pm-card--highlight {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Card internal structure */
.pm-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--pm-primary, #3498db);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.pm-card__icon svg {
  width: 22px;
  height: 22px;
}

.pm-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark, #2c3e50);
  margin: 0 0 10px;
  line-height: 1.35;
}

.pm-card__desc {
  font-size: 0.9375rem;
  color: var(--pm-muted, #64748b);
  margin: 0 0 12px;
  line-height: 1.55;
  flex-grow: 1;
}

.pm-card__list {
  margin: 0;
  padding-left: 20px;
  color: var(--text-dark, #2c3e50);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.pm-card__list li {
  margin-bottom: 6px;
}

.pm-card__list li:last-child {
  margin-bottom: 0;
}

.pm-card__cta {
  margin-top: auto;
  padding-top: 16px;
}

/* --------------------------------------------------------------------------
   .pm-grid - Responsive grid layout
   -------------------------------------------------------------------------- */
.pm-grid {
  display: grid;
  gap: var(--pm-grid-gap);
  grid-template-columns: 1fr;
}

/* Two column layout */
.pm-grid--2 {
  grid-template-columns: repeat(1, 1fr);
}

/* Three column layout */
.pm-grid--3 {
  grid-template-columns: repeat(1, 1fr);
}

/* Responsive breakpoints */
@media (min-width: 640px) {
  .pm-grid--2,
  .pm-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pm-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Equal height cards in grid */
.pm-grid > .pm-card {
  height: 100%;
}

/* --------------------------------------------------------------------------
   .pm-section - Consistent section spacing
   -------------------------------------------------------------------------- */
.pm-section {
  padding: var(--pm-section-py) 0;
}

.pm-section--alt {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--pm-border, #e5e7eb);
  border-bottom: 1px solid var(--pm-border, #e5e7eb);
}

.pm-section--dark {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #fff;
}

.pm-section__container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.pm-section__header {
  text-align: center;
  margin-bottom: 32px;
}

.pm-section__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-dark, #2c3e50);
  margin: 0 0 12px;
}

.pm-section__subtitle {
  font-size: 1.0625rem;
  color: var(--pm-muted, #64748b);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Hero section updates - Full width edge-to-edge
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px;
  background-color: #0b0d0f;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

/* Logo placeholder styling */
.hero__logo-placeholder {
  height: 80px;
  width: 200px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.25rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
}

.hero__logo {
  height: 80px;
  width: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 24px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.5;
}

.hero__bullets {
  max-width: 580px;
  margin: 0 auto 28px;
  text-align: left;
}

.hero__bullets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero__bullets li {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9375rem;
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.hero__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--pm-accent, #10b981);
  font-weight: 600;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero__ctas .btn {
  min-width: 160px;
  padding: 12px 24px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Mobile responsive adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 639px) {
  :root {
    --pm-card-padding: var(--pm-card-padding-sm);
    --pm-grid-gap: var(--pm-grid-gap-sm);
    --pm-section-py: var(--pm-section-py-sm);
  }

  .pm-card__title {
    font-size: 1.0625rem;
  }

  .pm-card__desc,
  .pm-card__list {
    font-size: 0.875rem;
  }

  .pm-section__title {
    font-size: 1.5rem;
  }

  .pm-section__subtitle {
    font-size: 1rem;
  }

  .hero {
    min-height: 380px;
    padding: 40px 16px;
  }

  .hero__logo {
    height: 60px;
  }

  .hero__logo-placeholder {
    height: 60px;
    width: 150px;
  }

  .hero__bullets li {
    font-size: 0.875rem;
  }

  .hero__ctas .btn {
    width: 100%;
    min-width: auto;
  }
}

/* Ensure touch targets are at least 44px for accessibility */
@media (pointer: coarse) {
  .pm-card a,
  .pm-card button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Navbar logo
   -------------------------------------------------------------------------- */
.navbar-logo {
  height: 32px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

/* --------------------------------------------------------------------------
   Step card variations (numbered steps with images)
   -------------------------------------------------------------------------- */
.pm-card__step-header {
  margin-bottom: 12px;
}

.pm-card__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pm-primary, #3498db);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.pm-card__step-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
  background: #f5f8fb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}

.pm-card__step-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pm-card__step-image:hover img {
    transform: scale(1.03);
  }
}

/* --------------------------------------------------------------------------
   Utility classes
   -------------------------------------------------------------------------- */
.pm-text-center {
  text-align: center;
}

.pm-mb-0 {
  margin-bottom: 0 !important;
}

.pm-mt-auto {
  margin-top: auto;
}

/* ==========================================================================
   NEW HERO - Split Layout (Step 1 Redesign)
   ========================================================================== */

.hero-split {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 80px 20px 60px;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero-split__container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-split__container {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

.hero-split__content {
  max-width: 560px;
}

.hero-split__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  color: #1e293b;
  line-height: 1.15;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero-split__highlight {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-split__subtitle {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 32px;
}

.hero-split__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-split__ctas .btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
}

.hero-split__ctas .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.hero-split__ctas .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.hero-split__ctas .btn-outline-dark {
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #475569;
}

.hero-split__ctas .btn-outline-dark:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* Trust Badges */
.hero-split__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #64748b;
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.trust-badge__icon {
  width: 18px;
  height: 18px;
  color: #3b82f6;
}

/* Product Mockup Frame */
.hero-split__visual {
  display: flex;
  justify-content: center;
}

.mockup-frame {
  background: #1e293b;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  max-width: 500px;
  width: 100%;
}

.mockup-frame__header {
  display: flex;
  gap: 6px;
  padding: 0 4px 12px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot--red { background: #ef4444; }
.mockup-dot--yellow { background: #f59e0b; }
.mockup-dot--green { background: #22c55e; }

.mockup-frame__content {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.mockup-placeholder {
  padding: 16px;
  min-height: 300px;
}

.mockup-placeholder__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mockup-placeholder__title-bar {
  height: 24px;
  width: 140px;
  background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
  border-radius: 4px;
}

.mockup-placeholder__actions {
  height: 32px;
  width: 80px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 6px;
}

.mockup-placeholder__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.mockup-placeholder__card {
  height: 80px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.mockup-placeholder__card--urgent {
  border-left: 3px solid #ef4444;
  background: linear-gradient(135deg, #fef2f2 0%, #fff 100%);
}

.mockup-placeholder__calendar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.mockup-placeholder__cal-header {
  height: 20px;
  width: 100px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 12px;
}

.mockup-placeholder__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mockup-placeholder__cal-grid::before {
  content: '';
  display: block;
  padding-bottom: 100%;
  background: #e2e8f0;
  border-radius: 4px;
  grid-column: span 7;
  height: 60px;
}

/* ==========================================================================
   Problem & Solution Cards
   ========================================================================== */

.pm-card--problem {
  border-top: 3px solid #ef4444;
}

.pm-card__icon--problem {
  background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
  color: #dc2626;
}

.pm-card--solution {
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* 4 column grid */
.pm-grid--4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .pm-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pm-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   Use Case Cards
   ========================================================================== */

.pm-card--usecase {
  position: relative;
  padding-top: 48px;
}

.pm-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 4px;
}

.pm-card__badge--featured {
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  color: #fff;
}

.pm-card--featured {
  border: 2px solid #3b82f6;
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.15);
}

.pm-section__cta {
  text-align: center;
  margin-top: 32px;
}

/* ==========================================================================
   Horizontal Steps (How It Works)
   ========================================================================== */

.steps-horizontal {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .steps-horizontal {
    flex-direction: row;
    align-items: flex-start;
  }
}

.step {
  flex: 1;
  text-align: center;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.step__desc {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.step__connector {
  display: none;
}

@media (min-width: 768px) {
  .step__connector {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    flex-shrink: 0;
    margin-top: 48px;
  }
  
  .step__connector::before {
    content: '';
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
  }
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */

.feature-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
}

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card__icon svg {
  width: 28px;
  height: 28px;
  color: #3b82f6;
}

.feature-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px;
}

.feature-card__desc {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Trust Grid (Social Proof)
   ========================================================================== */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  font-size: 0.8125rem;
  color: #475569;
  text-align: center;
}

.trust-item__icon {
  font-size: 1.5rem;
}

/* ==========================================================================
   Final CTA Block
   ========================================================================== */

.pm-section--cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 80px 20px;
}

.cta-block {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-block__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
}

.cta-block__subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 32px;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-block__actions .btn {
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
}

.cta-block__actions .btn-light {
  background: #fff;
  color: #1e293b;
}

.cta-block__actions .btn-light:hover {
  background: #f8fafc;
}

.cta-block__actions .btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.cta-block__actions .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Mobile Responsive Adjustments for New Components
   ========================================================================== */

@media (max-width: 639px) {
  .hero-split {
    padding: 48px 16px 40px;
    min-height: auto;
  }
  
  .hero-split__ctas {
    flex-direction: column;
  }
  
  .hero-split__ctas .btn {
    width: 100%;
    text-align: center;
  }
  
  .hero-split__trust {
    flex-direction: column;
  }
  
  .trust-badge {
    justify-content: center;
  }
  
  .mockup-frame {
    max-width: 100%;
  }
  
  .mockup-placeholder__cards {
    grid-template-columns: 1fr;
  }
  
  .pm-section--cta {
    padding: 48px 16px;
  }
}
