/* Quantum PDF -- site-wide styles
   Brand blue (#185FA5) matches the desktop app's own accent color
   (used on its bookmark "+" button and ribbon theme). */

:root {
  --brand: #185fa5;
  --brand-dark: #0f3f70;
  --brand-light: #eaf2fa;
  --ink: #202531;
  --ink-soft: #5b6472;
  --border: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --success: #1f9d55;
  --danger: #d64545;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(20, 40, 70, 0.08);
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

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

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

h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 12px; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 16px; color: var(--ink-soft); }

.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-header h2 { color: var(--ink); }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
  text-decoration: none !important;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-nav { margin-left: 8px; }

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-logo { width: 34px; height: 34px; border-radius: 7px; object-fit: cover; }
.brand-name { font-weight: 700; font-size: 1.15rem; color: var(--ink); }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a {  font-weight: 500; }
.main-nav a.active { color: var(--brand); }
.main-nav a:hover { text-decoration: none; color: var(--brand); }

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle-label span {
  width: 24px; height: 2px; background: var(--ink);
}

/* Hero */
.hero {
  padding: 72px 0 40px;
  background: linear-gradient(180deg, var(--brand-light) 0%, #ffffff 100%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 0.88rem; color: var(--ink-soft); }
.hero-visual {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.hero-visual img { border-radius: 6px; }

/* Unique feature highlight cards */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.highlight-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.highlight-card .icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 1.4rem;
}

/* Feature grid (full list) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  transition: box-shadow .15s ease, transform .15s ease;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-card .icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 700;
}
.feature-card h4 { margin-bottom: 6px; font-size: 1rem; }
.feature-card p { margin: 0; font-size: 0.9rem; }
.feature-group-title {
  grid-column: 1 / -1;
  margin: 24px 0 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.feature-group-title:first-child { margin-top: 0; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.testimonial-card .stars { color: #f5a623; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card .author { font-weight: 700; margin-top: 12px; color: var(--ink); }
.testimonial-card .role { color: var(--ink-soft); font-size: 0.85rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured::before {
  content: "Most Popular";
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { text-transform: uppercase; font-size: 0.9rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.price-amount { font-size: 2rem; font-weight: 800; margin: 6px 0 14px; color: var(--ink); }
.price-amount span { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.price-card li { padding: 6px 0; font-size: 0.92rem; color: var(--ink-soft); }
.price-card li::before { content: "✓ "; color: var(--success); font-weight: 700; }

/* Download */
.download-box {
  background: var(--brand);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  color: #fff;
}
.download-box h2 { color: #fff; }
.download-box p { color: rgba(255,255,255,0.85); }
.download-box .btn-primary { background: #fff; color: var(--brand); }
.download-box .btn-primary:hover { background: #eef4fb; }
.system-req { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-top: 18px; }

/* Forms */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.92rem; }
.form-row input[type=text],
.form-row input[type=email],
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 0.96rem;
  font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.star-rating { display: flex; gap: 6px; font-size: 1.6rem; }
.star-rating input { display: none; }
.star-rating label { cursor: pointer; color: #d9dee6; }
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: #f5a623; }
.star-rating { flex-direction: row-reverse; justify-content: flex-end; }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 0.94rem; }
.alert-success { background: #e8f8ee; color: #146c37; border: 1px solid #bfe9cf; }
.alert-error { background: #fdecec; color: #a32020; border: 1px solid #f5c2c2; }

/* Blog */
.blog-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.blog-card time { font-size: 0.82rem; color: var(--ink-soft); }
.blog-card h3 a { color: var(--ink); }
.post-body { max-width: 720px; margin: 0 auto; }
.post-body h1 { margin-bottom: 8px; }
.post-meta { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 28px; }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 220px; background: var(--ink); color: #fff; padding: 24px 18px; flex-shrink: 0;
}
.admin-sidebar a { display: block; color: #cfd6e3; padding: 10px 8px; border-radius: 6px; margin-bottom: 4px; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.admin-main { flex: 1; padding: 32px; background: var(--bg-alt); }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th, .admin-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.admin-table th { background: var(--bg-alt); font-weight: 700; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.badge-new { background: #fdecec; color: #a32020; }
.badge-read { background: #eef4fb; color: var(--brand); }
.badge-resolved, .badge-replied { background: #e8f8ee; color: #146c37; }
.badge-used { background: #eef0f2; color: #5a6570; }
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-alt); }

/* Footer */
.site-footer { background: #101724; color: #b7c0cf; padding: 56px 0 0; margin-top: 40px; }
.site-footer .brand-name { color: #fff; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-tagline { margin-top: 12px; font-size: 0.9rem; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #b7c0cf; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; font-size: 0.82rem; text-align: center; }

/* Responsive */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .highlight-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
@media (max-width: 640px) {
  h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-toggle-label { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; padding: 16px 24px; gap: 14px;
  }
  .nav-toggle:checked ~ .main-nav { display: flex; }
  .btn-nav { margin-left: 0; }
}
