/* PDF Tools Hub — light card grid (browser-only tools) */
:root {
  --hub-bg: #f4f7fb;
  --hub-bg2: #e8eef6;
  --hub-card: #ffffff;
  --hub-tx: #0f172a;
  --hub-tx2: #475569;
  --hub-border: #dbe4f0;
  --hub-accent: #0d9488;
  --hub-accent-soft: rgba(13, 148, 136, 0.12);
  --hub-cat: #64748b;
  --hub-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.hub-body {
  background: linear-gradient(180deg, var(--hub-bg) 0%, var(--hub-bg2) 48%, #f8fafc 100%);
  color: var(--hub-tx2);
  font-family: "DM Sans", system-ui, sans-serif;
  min-height: 100vh;
}

body.hub-body::before {
  display: none;
}

.hub-gnav {
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--hub-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(12px);
}

.hub-glinks {
  display: flex;
  gap: 2px;
  justify-self: center;
}

.hub-glink {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.hub-glink:hover {
  background: var(--hub-accent-soft);
  color: var(--hub-tx);
}

.hub-glink.act {
  background: var(--hub-accent-soft);
  color: var(--hub-accent);
  font-weight: 600;
  border: 1px solid rgba(13, 148, 136, 0.35);
}

@media (max-width: 680px) {
  .hub-glinks {
    display: none;
  }
  .hub-gnav {
    padding: 0 16px;
  }
}

.hub-hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 24px 28px;
  text-align: center;
}

.hub-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hub-accent);
  background: var(--hub-accent-soft);
  border: 1px solid rgba(13, 148, 136, 0.25);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 20px;
}

.hub-trust svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-hero h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  color: var(--hub-tx);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hub-hero h1 em {
  font-style: italic;
  color: var(--hub-accent);
}

.hub-lead {
  margin-top: 14px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--hub-tx2);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hub-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 24px 56px;
}

.hub-cat {
  margin-top: 36px;
}

.hub-cat:first-child {
  margin-top: 8px;
}

.hub-cat-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hub-cat);
  margin-bottom: 14px;
  padding-left: 2px;
}

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

@media (max-width: 960px) {
  .hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--hub-card);
  border: 1.5px solid var(--hub-border);
  border-radius: 16px;
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--hub-shadow);
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  min-height: 168px;
}

.hub-card:hover {
  border-color: var(--hub-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(13, 148, 136, 0.12);
}

.hub-card:focus-visible {
  outline: 2px solid var(--hub-accent);
  outline-offset: 3px;
}

.hub-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--hub-accent-soft);
  color: var(--hub-accent);
}

.hub-ico svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-ico--organize {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}
.hub-ico--optimize {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}
.hub-ico--convert {
  background: rgba(124, 58, 237, 0.1);
  color: #7c3aed;
}
.hub-ico--security {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}

.hub-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hub-tx);
  letter-spacing: -0.01em;
}

.hub-card p {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--hub-tx2);
}

.hub-seo {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.hub-seo h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  color: var(--hub-tx);
  margin: 36px 0 12px;
  font-weight: 400;
}

.hub-seo p,
.hub-seo li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--hub-tx2);
  margin-bottom: 10px;
}

.hub-seo ol,
.hub-seo ul {
  padding-left: 1.25rem;
  margin-bottom: 12px;
}

.hub-seo a {
  color: var(--hub-accent);
  font-weight: 600;
}

.hub-faq details {
  border: 1px solid var(--hub-border);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
  padding: 14px 16px;
}

.hub-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--hub-tx);
  list-style: none;
}

.hub-faq summary::-webkit-details-marker {
  display: none;
}

.hub-faq .faq-a {
  margin-top: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--hub-tx2);
}

.hub-footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid var(--hub-border);
  background: rgba(255, 255, 255, 0.6);
}

.hub-footer a {
  color: var(--hub-accent);
  text-decoration: none;
  font-weight: 600;
}
