/* ilovepdf Pro — Public Marketing Site Styles */

:root {
  --red: #e5342a;
  --red-dark: #c8241b;
  --red-light: #fdeceb;
  --dark: #1a1a1a;
  --gray: #5f6470;
  --gray-light: #8a8f99;
  --border: #e6e6e9;
  --bg-alt: #f9f8f8;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1160px;
  --shadow: 0 6px 24px rgba(20, 20, 20, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
  color: var(--gray);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 760px;
}

.narrow h2 {
  color: var(--dark);
  margin-top: 1.5em;
}

.narrow p {
  color: var(--gray);
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.85rem;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(6px);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  white-space: nowrap;
}

.logo span {
  color: var(--red);
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}

.main-nav a {
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--red);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--dark);
  display: block;
}

/* Hero */

.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--red-light) 0%, var(--white) 100%);
  text-align: center;
}

.hero-inner h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  max-width: 820px;
  margin: 0 auto 0.6em;
  color: var(--dark);
}

.hero-subtitle {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 2em;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding: 72px 0 48px;
  background: var(--bg-alt);
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.5em;
}

.center-cta {
  text-align: center;
}

.center-cta h2 {
  margin-top: 0;
}

/* Tool grid */

.tool-category {
  margin-bottom: 2.5em;
}

.tool-category-title {
  font-size: 1.1rem;
  color: var(--dark);
  border-left: 4px solid var(--red);
  padding-left: 12px;
  margin-bottom: 1em;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.tool-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.15s ease;
}

.tool-card:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.tool-card h3 {
  margin: 4px 0 0;
  font-size: 1.05rem;
  color: var(--dark);
}

.tool-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  background: var(--red-light);
  padding: 4px 10px;
  border-radius: 999px;
}

/* Pricing */

.pricing-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 0 auto 2.5em;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  background: var(--white);
  position: relative;
}

.price-card-featured {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: scale(1.03);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0.2em 0;
}

.price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray);
}

.price-features {
  text-align: left;
  margin: 1.2em 0;
}

.price-features li {
  padding: 6px 0 6px 22px;
  position: relative;
  color: var(--gray);
  font-size: 0.92rem;
}

.price-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}

/* Trust */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 24px;
}

.trust-item h3 {
  color: var(--dark);
  font-size: 1.05rem;
}

/* Tool page hero */

.tool-hero {
  padding: 64px 0 48px;
  background: var(--bg-alt);
}

.tool-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-top: 0.3em;
}

.tool-intro {
  max-width: 640px;
  font-size: 1.05rem;
  margin-bottom: 1.6em;
}

.benefits-grid,
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-item {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.benefit-item p {
  margin: 0;
  color: var(--dark);
  font-weight: 500;
}

.step-item {
  padding: 24px;
  text-align: center;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
}

.step-item p {
  color: var(--dark);
  margin: 0;
}

/* CTA section */

.cta-section {
  background: var(--dark);
  color: var(--white);
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: #cfcfcf;
}

/* Misc pages */

.plain-list li {
  padding: 6px 0;
  color: var(--gray);
}

/* Footer */

.site-footer {
  background: var(--dark);
  color: #d8d8d8;
  padding: 56px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 280px;
}

.logo-light {
  color: var(--white);
}

.footer-brand p {
  color: #9a9a9a;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: #b7b7b7;
  padding: 5px 0;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--red);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: #8a8a8a;
}

/* Responsive */

@media (max-width: 860px) {
  .main-nav,
  .header-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 16px;
  }

  .site-header.nav-open .header-actions {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(72px + 190px);
    left: 0;
    right: 0;
    background: var(--white);
    padding: 0 24px 20px;
    gap: 10px;
  }

  .pricing-preview,
  .trust-grid,
  .benefits-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .price-card-featured {
    transform: none;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 64px 0 48px;
  }

  .section {
    padding: 48px 0;
  }
}
