/* ============================================================
   Safe Image Converter — Shared Landing Page Stylesheet
   ============================================================ */

/* Reset & Base
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #1a1d23;
  background: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Typography Scale
   ---------------------------------------------------------- */
h1 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1d23;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: #1a1d23;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1d23;
}

p {
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
}

small {
  font-size: 13px;
  color: #6b7280;
}

/* Layout Utilities
   ---------------------------------------------------------- */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
}

/* CTA Button
   ---------------------------------------------------------- */
.btn-primary {
  display: inline-block;
  background: #2563eb;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  text-decoration: none;
  color: #ffffff;
}

.btn-primary:active {
  transform: translateY(0);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #eff6ff, #f0fdf4);
  padding: 80px 0 72px;
  text-align: center;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 12px;
  border-radius: 100px;
}

.hero h1 {
  max-width: 640px;
}

.hero .subhead {
  max-width: 520px;
  font-size: 17px;
  color: #4b5563;
  line-height: 1.6;
}

.hero .btn-primary {
  margin-top: 4px;
}

/* Context Menu Visual */
.context-menu-visual {
  margin-top: 16px;
  display: inline-flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  min-width: 240px;
  text-align: left;
}

.context-menu-item {
  padding: 9px 16px;
  font-size: 13px;
  color: #4b5563;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.context-menu-item:last-child {
  border-bottom: none;
}

.context-menu-item.ghost {
  color: #d1d5db;
  font-style: italic;
}

.context-menu-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.08);
  margin: 2px 0;
}

.context-menu-item.extension {
  color: #1a1d23;
  font-weight: 500;
  background: rgba(37, 99, 235, 0.04);
  display: flex;
  align-items: center;
  gap: 8px;
}

.context-menu-item.extension::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2563eb;
  flex-shrink: 0;
}

/* ============================================================
   Replaces Section
   ============================================================ */
.replaces {
  background: #fefce8;
  padding: 64px 0;
}

.replaces-inner {
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 48px;
  background: rgba(255, 255, 255, 0.6);
}

.replaces h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.replaces p {
  margin-bottom: 16px;
}

.replaces p:last-of-type {
  margin-bottom: 24px;
}

.callout-box {
  background: rgba(255, 255, 255, 0.85);
  border-left: 4px solid #2563eb;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 500;
  color: #1a1d23;
  line-height: 1.6;
}

/* ============================================================
   How It Works Section
   ============================================================ */
.how-it-works {
  background: #ffffff;
  text-align: center;
}

.how-it-works h2 {
  margin-bottom: 48px;
}

.steps {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.step-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.step-icon.blue {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.step-icon.green {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.step-icon.purple {
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
}

.step h3 {
  font-size: 15px;
}

.step p {
  font-size: 14px;
  text-align: center;
}

/* ============================================================
   Features Section
   ============================================================ */
.features {
  background: #fafbfc;
}

.features h2 {
  text-align: center;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-card-icon {
  font-size: 24px;
  line-height: 1;
}

.feature-card h3 {
  font-size: 15px;
}

.feature-card p {
  font-size: 13px;
  line-height: 1.6;
}

/* ============================================================
   Privacy Section
   ============================================================ */
.privacy {
  background: linear-gradient(135deg, #f0fdf4, #eff6ff);
  text-align: center;
}

.privacy-lock {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 16px;
}

.privacy h2 {
  margin-bottom: 16px;
}

.privacy > .container > p {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 15px;
  color: #4b5563;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #1a1d23;
}

.badge-check {
  color: #16a34a;
  font-weight: 700;
  font-size: 14px;
}

/* ============================================================
   Footer CTA Section
   ============================================================ */
.footer-cta {
  background: #ffffff;
  padding: 72px 0;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer-cta h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.footer-cta p {
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: #6b7280;
}

.footer-links a:hover {
  color: #1a1d23;
}

/* ============================================================
   Privacy Policy Page
   ============================================================ */
.privacy-page {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px 80px;
}

.privacy-page h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.privacy-page .updated {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 40px;
}

.privacy-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 12px;
}

.privacy-page p {
  margin-bottom: 16px;
}

.privacy-page ul {
  margin: 0 0 16px 24px;
  color: #4b5563;
}

.privacy-page li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.7;
}

.privacy-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}

.privacy-page table th,
.privacy-page table td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.privacy-page table th {
  background: #fafbfc;
  font-weight: 600;
  color: #1a1d23;
}

.privacy-page table td {
  color: #4b5563;
}

.privacy-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 32px;
}

.privacy-page .back-link:hover {
  color: #1a1d23;
}

/* ============================================================
   Responsive — 768px breakpoint
   ============================================================ */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 22px;
  }

  /* Sections */
  section {
    padding: 40px 0;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero .subhead {
    font-size: 15px;
  }

  .replaces {
    padding: 40px 0;
  }

  .replaces-inner {
    padding: 28px 20px;
  }

  .replaces h2 {
    font-size: 20px;
  }

  .footer-cta {
    padding: 40px 0;
  }

  .footer-cta h2 {
    font-size: 20px;
  }

  /* Steps — stack vertically */
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step {
    max-width: 100%;
    width: 100%;
  }

  /* Features — single column */
  .features-grid {
    grid-template-columns: 1fr;
  }

  /* Badge row wraps naturally, already flex-wrap */
  .badge-row {
    gap: 8px;
  }

  /* Context menu visual */
  .context-menu-visual {
    min-width: 200px;
  }

  /* Privacy page */
  .privacy-page {
    margin-top: 32px;
  }

  .privacy-page h1 {
    font-size: 24px;
  }
}
