/* ============================================================
   loopdf - Landing page stylesheet (scoped to .loopdf-landing)
   "Red Technical Minimal" - PDF-red brand, clean secretnote-style
   rhythm. Fraunces display + Geist body + Geist Mono labels.
   Light + Dark themes.
   ============================================================ */

/* Selection-lag fix: while the user is actively selecting text (body tagged
   .is-selecting from landing.js), suppress the decorative transform +
   box-shadow transitions on every interactive tile/card so a drag-select
   stays smooth across the ~35 tool cards. */
body.is-selecting .pdf-landing .pdf-tool-card,
body.is-selecting .pdf-landing .tool-card,
body.is-selecting .pdf-landing .benefit,
body.is-selecting .pdf-landing .pdf-quote,
body.is-selecting .pdf-landing .platform,
body.is-selecting .pdf-landing .base-testimonial__item,
body.is-selecting .pdf-landing .app-mock,
body.is-selecting .pdf-landing .collapse-container,
body.is-selecting .pdf-landing .stats-seg,
body.is-selecting .pdf-landing .pdf-tool-card .pdf-tool-icon-tile img {
  transition: none !important;
}
body.is-selecting .pdf-landing .pdf-tool-card:hover,
body.is-selecting .pdf-landing .tool-card:hover,
body.is-selecting .pdf-landing .benefit:hover,
body.is-selecting .pdf-landing .pdf-quote:hover,
body.is-selecting .pdf-landing .platform:hover,
body.is-selecting .pdf-landing .collapse-container:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
.pdf-landing {
  --pdf-bg: #fbf7f6;
  --pdf-bg-2: #f6eeec;
  --pdf-surface: #ffffff;
  --pdf-surface-2: #fbf3f2;
  --pdf-ink: #1b1110;
  --pdf-ink-2: #4a3b38;
  --pdf-muted: #80706b;
  --pdf-line: #efe0dd;
  --pdf-line-2: #e4ccc8;
  --pdf-tint: #fbedec;
  --pdf-tint-2: #f6dad8;
  /* Derived from brand_tokens.css so the landing can't drift from the rest
     of the site; the tints and the gradient below are landing-only. */
  --pdf-primary: var(--primary-blue);
  --pdf-primary-ink: var(--primary-blue-hover);
  --pdf-primary-soft: #fcebea;
  --pdf-red: #e5231d;
  --pdf-ember: #ff7a3d;
  --pdf-grad: linear-gradient(100deg, #a31621 0%, #e5231d 45%, #ff7a3d 100%);
  --pdf-shadow-sm:
    0 1px 0 rgba(163, 22, 33, 0.04), 0 2px 8px -2px rgba(163, 22, 33, 0.08);
  --pdf-shadow-md:
    0 1px 0 rgba(163, 22, 33, 0.05), 0 12px 24px -8px rgba(163, 22, 33, 0.12);
  --pdf-shadow-lg:
    0 1px 0 rgba(163, 22, 33, 0.06), 0 30px 60px -30px rgba(163, 22, 33, 0.22);

  background: var(--pdf-bg);
  color: var(--pdf-ink);
  font-family:
    'Fredoka',
    system-ui,
    -apple-system,
    sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  counter-reset: pdfsec;
}

/* Dark theme - neutral charcoal surfaces (aligned with the rest of the site),
   PDF-red as the accent that pops against the dark. */
body.theme-dark .pdf-landing,
[data-theme='dark'] .pdf-landing {
  /* Warm near-black rather than neutral charcoal: every surface carries a
     slight red cast so the dark theme reads as loopdf's dark, not a generic
     one. Still essentially black - the hue shift is small on purpose, the
     red is meant to be felt rather than seen. */
  --pdf-bg: #191315;
  --pdf-bg-2: #150f11;
  --pdf-surface: #261b1d;
  --pdf-surface-2: #211819;
  --pdf-ink: #f6f2f1;
  --pdf-ink-2: #c6bcba;
  --pdf-muted: #968b89;
  --pdf-line: #3e2e30;
  --pdf-line-2: #4d3a3c;
  --pdf-tint: #32211f;
  --pdf-tint-2: #402c2b;
  --pdf-primary: var(--primary-blue);
  --pdf-primary-ink: var(--primary-blue-hover);
  --pdf-primary-soft: #33211f;
  --pdf-red: #ff6b61;
  --pdf-ember: #ff9d6b;
  --pdf-grad: linear-gradient(100deg, #ff6b61 0%, #ff9d6b 100%);
  --pdf-shadow-sm:
    0 1px 0 rgba(0, 0, 0, 0.35), 0 2px 8px -2px rgba(0, 0, 0, 0.5);
  --pdf-shadow-md:
    0 1px 0 rgba(0, 0, 0, 0.45), 0 12px 24px -8px rgba(0, 0, 0, 0.55);
  --pdf-shadow-lg:
    0 1px 0 rgba(0, 0, 0, 0.55), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.pdf-landing a {
  color: inherit;
  text-decoration: none;
}
.pdf-landing button {
  font-family: inherit;
  cursor: pointer;
}
.pdf-landing :focus-visible {
  outline: 2px solid var(--pdf-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.pdf-landing .pdf-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
}
.pdf-landing .grad-text {
  background: var(--pdf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   SECTION HEADS - left aligned, numbered mono eyebrow
   ============================================================ */
.pdf-landing .eyebrow {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pdf-primary-ink);
  margin: 0 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* Auto section index (01, 02, ...) prefixing every section eyebrow */
.pdf-landing .eyebrow::before {
  counter-increment: pdfsec;
  content: counter(pdfsec, decimal-leading-zero);
  font-weight: 600;
  color: var(--pdf-primary);
  padding-right: 10px;
  border-right: 1px solid var(--pdf-line-2);
}

.pdf-landing .section-head {
  margin-bottom: 48px;
  max-width: 660px;
}
.pdf-landing .section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.pdf-landing .section-head.center .eyebrow {
  justify-content: center;
}
.pdf-landing .section-head h2 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  text-wrap: balance;
  color: var(--pdf-ink);
}
.pdf-landing .section-head .dek {
  font-size: 18px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  margin: 0;
  max-width: 58ch;
  text-wrap: pretty;
}

/* ============================================================
   HERO
   ============================================================ */
.pdf-landing .pdf-hero {
  /* The homepage is `nb-flush`, so the hero runs under the fixed navbar and the
     tint below (::before, inset:0) fills the strip behind the bar - with the bar
     transparent at rest, the red reads straight through it instead of stopping
     at a solid band. Top padding clears the bar height so the heading still sits
     below it; --nb-height already tracks the responsive bar height. */
  padding: calc(var(--nb-height, 74px) + clamp(20px, 3vw, 36px)) 0
    clamp(12px, 2vw, 20px);
  position: relative;
  overflow: hidden;
}
.pdf-landing .pdf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(54% 48% at 16% 16%, var(--pdf-tint) 0%, transparent 60%),
    radial-gradient(
      42% 42% at 94% 6%,
      rgba(229, 35, 29, 0.08) 0%,
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}
body.theme-dark .pdf-landing .pdf-hero::before,
[data-theme='dark'] .pdf-landing .pdf-hero::before {
  background:
    radial-gradient(
      54% 48% at 16% 16%,
      rgba(255, 107, 97, 0.1) 0%,
      transparent 60%
    ),
    radial-gradient(
      42% 42% at 94% 6%,
      rgba(255, 107, 97, 0.07) 0%,
      transparent 60%
    );
}
.pdf-landing .hero-grid {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}
.pdf-landing .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.pdf-landing .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pdf-primary-ink);
  margin-bottom: 26px;
  box-shadow: var(--pdf-shadow-sm);
}
.pdf-landing .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pdf-primary);
  box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.5);
  animation: pdf-pulse 2s infinite;
}
@keyframes pdf-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(214, 40, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 40, 40, 0);
  }
}
.pdf-landing .hero-h1 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 auto 20px;
  max-width: 24ch;
  text-wrap: balance;
  color: var(--pdf-ink);
}
.pdf-landing .hero-h1 em {
  font-style: italic;
  background: var(--pdf-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* italic glyphs overhang their box; pad each wrapped line fragment
     (box-decoration-break: clone) so the gradient covers the last letter
     instead of clipping it */
  padding-right: 0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.pdf-landing .hero-dek {
  font-size: 19px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  max-width: 68ch;
  margin: 0 auto 28px;
  text-wrap: pretty;
}
.pdf-landing .hero-dek strong {
  font-weight: 700;
  color: var(--pdf-ink);
}
.pdf-landing .hero-dek em {
  font-style: italic;
  font-weight: 500;
  color: var(--pdf-primary);
}
.pdf-landing .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 26px;
}
.pdf-landing .hero-ctas .button-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Hero CTAs ride on the project-wide .button / .button-primary styles
   (primary is now red). We only bump the hero-specific size + radius. */
body .pdf-landing .hero-cta,
body.theme-light .pdf-landing .hero-cta,
body.theme-dark .pdf-landing .hero-cta {
  padding: 14px 22px !important;
  font-size: 15px !important;
  font-family:
    'Fredoka',
    system-ui,
    -apple-system,
    sans-serif !important;
  margin: 0 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border-radius: 12px !important;
}

.pdf-landing .hero-upload-mount {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.pdf-landing .hero-upload-mount .hidden-file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pdf-landing .hero-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdf-landing .chip-label {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pdf-muted);
}
.pdf-landing .format-chip {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border-radius: 7px;
  background: var(--pdf-tint);
  color: var(--pdf-primary-ink);
  border: 1px solid var(--pdf-line);
  cursor: pointer;
  transition:
    transform 0.18s cubic-bezier(0.34, 1.4, 0.5, 1),
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.pdf-landing .format-chip:hover {
  transform: translateY(-3px);
  background: var(--pdf-primary);
  color: #fff;
  border-color: var(--pdf-primary);
  box-shadow: 0 6px 14px rgba(214, 40, 40, 0.28);
}

/* The old hero "floating PDF stack" visual (.stack / .page-* / .orbit-* /
   .sparkle) was removed with the loopdf rebrand: its markup had already
   been deleted from index.jinja2, leaving ~265 lines of unreachable CSS.
   The hero is copy + CTAs only; it carries no visual. */

/* ============================================================
   TRUST STRIP
   ============================================================ */
.pdf-landing .trust-strip {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 32px;
  border-top: 1px solid var(--pdf-line);
  border-bottom: 1px solid var(--pdf-line);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pdf-muted);
}
.pdf-landing .trust-strip .dot {
  color: var(--pdf-primary);
  opacity: 0.45;
}
.pdf-landing .trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.pdf-landing .trust-strip .trust-check {
  color: var(--pdf-primary);
  font-size: 10px;
}
.pdf-landing .trust-strip .trust-eu-flag,
.pdf-landing .trust-strip .trust-de-flag {
  width: 20px;
  height: auto;
  display: inline-block;
  vertical-align: -2px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.pdf-landing .trust-strip .trust-europe-text {
  display: inline;
}
.pdf-landing .trust-strip .trust-heart {
  color: var(--pdf-red);
  font-size: 13px;
  line-height: 1;
}

/* ============================================================
   TOOLS GRID
   ============================================================ */
.pdf-landing .pdf-tools {
  padding: 8px 32px clamp(56px, 8vw, 96px);
  max-width: 1600px;
  margin: 0 auto;
}
.pdf-landing .pdf-search-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 300px;
  max-width: 100%;
}
.pdf-landing .pdf-search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pdf-muted);
  pointer-events: none;
}
.pdf-landing .pdf-search-wrap input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 10px;
  border: 1px solid var(--pdf-line);
  background: var(--pdf-surface);
  color: var(--pdf-ink);
  font-family: inherit;
  font-size: 14px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.pdf-landing .pdf-search-wrap input::placeholder {
  color: var(--pdf-muted);
}
.pdf-landing .pdf-search-wrap input:focus {
  outline: none;
  border-color: var(--pdf-primary);
  box-shadow: 0 0 0 4px var(--pdf-primary-soft);
}

.pdf-landing .pdf-tools-controls {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px; /* dynamically centered regardless of content width */
  flex-wrap: wrap;
}

/* Glassy search orb — magnifier that expands right over the tabs (devswitch) */
.pdf-landing .pdf-search-orb {
  position: static; /* panel positions against .pdf-tools-controls */
  flex: none;
  width: 46px;
  align-self: stretch;
}
.pdf-landing .pdf-search-orb__panel {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 46px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--pdf-line);
  background: color-mix(in srgb, var(--pdf-surface) 82%, transparent);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: var(--pdf-shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition:
    width 0.28s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}
.pdf-landing .pdf-search-orb__icon {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--pdf-muted);
  transition: color 0.2s ease;
}
.pdf-landing .pdf-search-orb input,
.pdf-landing .pdf-search-orb input:focus,
.pdf-landing .pdf-search-orb input:focus-visible {
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  color: var(--pdf-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  transition: opacity 0.15s ease;
}
.pdf-landing .pdf-search-orb input::placeholder {
  color: var(--pdf-muted);
}
.pdf-landing .pdf-search-orb input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.pdf-landing .pdf-search-orb:hover .pdf-search-orb__panel,
.pdf-landing .pdf-search-orb:focus-within .pdf-search-orb__panel,
.pdf-landing
  .pdf-search-orb:has(input:not(:placeholder-shown))
  .pdf-search-orb__panel {
  width: 100%;
  cursor: text;
}
.pdf-landing .pdf-search-orb:focus-within .pdf-search-orb__panel,
.pdf-landing
  .pdf-search-orb:has(input:not(:placeholder-shown))
  .pdf-search-orb__panel {
  border-color: var(--pdf-primary);
  background: var(--pdf-surface);
  box-shadow: 0 0 0 4px var(--pdf-primary-soft);
}
.pdf-landing .pdf-search-orb:focus-within .pdf-search-orb__icon,
.pdf-landing
  .pdf-search-orb:has(input:not(:placeholder-shown))
  .pdf-search-orb__icon {
  color: var(--pdf-primary);
}
.pdf-landing .pdf-search-orb:hover input,
.pdf-landing .pdf-search-orb:focus-within input,
.pdf-landing .pdf-search-orb:has(input:not(:placeholder-shown)) input {
  opacity: 1;
}

.pdf-landing .pdf-cat-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 0;
  padding: 6px;
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  border-radius: 12px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  position: relative;
  box-shadow: var(--pdf-shadow-sm);
}

/* Sliding indicator - glassy, faintly red-tinted pill behind the active tab */
.pdf-landing .pdf-cat-indicator {
  position: absolute;
  top: 6px;
  left: 0;
  height: calc(100% - 12px);
  background: color-mix(in srgb, var(--pdf-primary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--pdf-primary) 32%, transparent);
  border-radius: 8px;
  transform: translateX(0);
  width: 0;
  box-shadow: none;
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.pdf-landing .pdf-cat-indicator.no-anim {
  transition: none;
}

.pdf-landing .pdf-cat-tabs button {
  background: transparent !important;
  border: 1px solid transparent !important;
  padding: 10px 16px !important;
  margin: 0 !important;
  border-radius: 8px !important;
  font-family: inherit;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--pdf-ink-2) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  cursor: pointer;
  transition:
    color 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.15s !important;
  box-shadow: none;
  position: relative;
  z-index: 1;
}
.pdf-landing .pdf-cat-tabs button:hover {
  color: var(--pdf-ink) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none;
  transform: none;
}
.pdf-landing .pdf-cat-tabs button.active,
.pdf-landing .pdf-cat-tabs button.active:hover {
  color: var(--pdf-primary) !important;
  font-weight: 600 !important;
  background: transparent !important;
  border-color: transparent !important;
}
.pdf-landing .pdf-cat-tabs button.active .count {
  background: color-mix(in srgb, var(--pdf-primary) 16%, transparent);
  color: var(--pdf-primary-ink);
  opacity: 1;
}
.pdf-landing .pdf-cat-tabs .count {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 11px;
  opacity: 0.85;
  background: rgba(255, 255, 255, 0.22);
  padding: 2px 6px;
  border-radius: 4px;
  transition:
    background 0.2s,
    color 0.2s,
    opacity 0.2s;
}
.pdf-landing .pdf-cat-tabs button:not(.active) .count {
  background: var(--pdf-tint);
  color: var(--pdf-primary-ink);
  opacity: 1;
}

.pdf-landing .featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.pdf-landing .pdf-tool-card {
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition:
    transform 0.18s,
    box-shadow 0.2s,
    border-color 0.15s;
  position: relative;
  overflow: hidden;
  color: inherit;
}
.pdf-landing .pdf-tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pdf-primary) 35%, var(--pdf-line));
  box-shadow: var(--pdf-shadow-md);
}
.pdf-landing .pdf-tool-card.featured {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}
.pdf-landing .pdf-tool-card.featured > .pdf-tool-body {
  flex: 1;
}
.pdf-landing .pdf-tool-card.featured .arrow {
  font-size: 18px;
  color: var(--pdf-primary);
  opacity: 0;
  transform: translateX(-4px);
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.pdf-landing .pdf-tool-card.featured:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Highlighted featured card (Edit PDF) — accent ring, tint, glow + badge */
.pdf-landing .pdf-tool-card--highlight {
  border: 1.5px solid var(--pdf-primary);
  background: linear-gradient(
    180deg,
    var(--pdf-tint) 0%,
    color-mix(in srgb, var(--pdf-tint) 55%, var(--pdf-surface)) 100%
  );
  box-shadow: 0 10px 26px -14px rgba(214, 40, 40, 0.45);
}
.pdf-landing .pdf-tool-card--highlight:hover {
  border-color: var(--pdf-primary);
  box-shadow: 0 16px 34px -16px rgba(214, 40, 40, 0.55);
}
.pdf-landing .pdf-tool-card--highlight .pdf-tool-icon-tile {
  background: var(--pdf-primary);
  border-color: transparent;
  box-shadow: 0 4px 12px -4px rgba(214, 40, 40, 0.5);
}
.pdf-landing .pdf-tool-card--highlight .arrow {
  opacity: 1;
  transform: translateX(0);
}
.pdf-landing .pdf-tool-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--pdf-primary);
  padding: 3px 8px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(214, 40, 40, 0.35);
}
.pdf-landing .pdf-tool-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--pdf-tint);
  color: var(--pdf-primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--pdf-line);
}
.pdf-landing .pdf-tool-icon-tile.gradient {
  background: var(--pdf-grad);
  color: #fff;
  border: 0;
}
/* Asset-icon variant - the branded per-tool SVGs already include their own
   rounded coloured background, so the tile becomes a transparent mount. */
.pdf-landing .pdf-tool-icon-tile--asset {
  background: transparent;
  border: 0;
  padding: 0;
  overflow: hidden;
}
.pdf-landing .pdf-tool-icon-tile--asset img {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 11px;
  object-fit: contain;
}

/* ---- Framed tool icons ----
   A clean rounded frame around each branded icon (no glass/gloss). Applied to
   the featured cards and the main grid alike. */
.pdf-landing .pdf-tool-icon-tile--asset,
.pdf-landing .pdf-tool-icon-tile--glass,
.pdf-landing .tool-card .tool-icon {
  position: relative;
  padding: 7px !important;
  border-radius: 15px !important;
  overflow: visible !important;
  background: var(--pdf-surface) !important;
  border: 1px solid var(--pdf-line) !important;
  box-shadow: none !important;
}
/* Tile sizes: featured icons a touch larger than the dense main grid */
.pdf-landing .pdf-tool-icon-tile--asset,
.pdf-landing .pdf-tool-icon-tile--glass {
  width: 58px !important;
  height: 58px !important;
}
.pdf-landing .tool-card .tool-icon {
  width: 54px !important;
  height: 54px !important;
  box-sizing: border-box;
}
.pdf-landing .pdf-tool-icon-tile--asset img,
.pdf-landing .pdf-tool-icon-tile--glass img,
.pdf-landing .tool-card .tool-icon img {
  width: 100% !important;
  height: 100% !important;
  position: relative;
  z-index: 1;
  border-radius: 10px;
}
.pdf-landing .pdf-tool-card:not(.featured) .pdf-tool-icon-tile {
  margin-bottom: 10px;
}
.pdf-landing .pdf-tool-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--pdf-ink);
}
.pdf-landing .pdf-tool-desc {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--pdf-muted);
}

/* Main tools grid - generic .tool-card (styled globally) re-skinned to match
   the featured cards: left aligned, compact icon tile, subtle red hover. */
.pdf-landing .pdf-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.pdf-landing .tool-card {
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
  /* Icon left, text right. Stacking them cost ~52px of height per card across
     a 30+ card grid; side-by-side reclaims that without shrinking anything.
     The grid is a CSS grid, so the row heights follow the tallest card - the
     title/desc column is what sets it now, not icon + title + desc. */
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 13px;
  row-gap: 2px;
  box-shadow: none;
  transition:
    transform 0.18s,
    box-shadow 0.2s,
    border-color 0.15s;
}
.pdf-landing .tool-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--pdf-primary) 35%, var(--pdf-line));
  box-shadow: var(--pdf-shadow-md);
}
.pdf-landing .tool-card .tool-icon {
  font-size: 0;
  /* Spans both text rows so the icon stays optically centred on the pair. */
  grid-row: 1 / span 2;
  margin: 0;
  /* The size lives on the container, not the <img>: a landing.css rule sets
     `.pdf-landing ... img { width: 100% }` and wins over any width set on the
     image itself, so the image just fills whatever this box is. */
  width: 44px;
  height: 44px;
}
/* Beats `.tool-icon img { width: 56px }` in styles.css, which otherwise sets a
   stacked-card size far too large for the horizontal row. */
.pdf-landing a.tool-card .tool-icon img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
  margin: 0;
}
.pdf-landing .tool-card:hover .tool-icon {
  transform: none;
  opacity: 1;
}
.pdf-landing .tool-card h3 {
  font-family:
    'Fredoka',
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: var(--pdf-ink);
  margin: 0;
}
.pdf-landing .tool-card p {
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0;
  color: var(--pdf-muted);
  margin: 0;
}

/* Card outline must be complete on all four sides. The cards are <a>
   elements and the base anchor styles repurpose border-bottom as a
   link-underline (zeroing its width + recolouring it to --link), which
   left the hover border open at the bottom. Force the full box border so
   every card hover shows a closed ring. */
.pdf-landing a.tool-card,
.pdf-landing a.pdf-tool-card {
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
  border-bottom-color: var(--pdf-line) !important;
}
.pdf-landing a.tool-card:hover,
.pdf-landing a.pdf-tool-card:hover {
  border-bottom-color: color-mix(
    in srgb,
    var(--pdf-primary) 35%,
    var(--pdf-line)
  ) !important;
}
/* The highlighted Edit PDF card keeps its full accent ring on all four
   sides — override the anchor border-bottom neutraliser above. */
.pdf-landing a.pdf-tool-card--highlight,
.pdf-landing a.pdf-tool-card--highlight:hover {
  border: 1.5px solid var(--pdf-primary) !important;
}

.pdf-landing .pdf-empty {
  grid-column: 1 / -1;
  padding: 60px;
  text-align: center;
  color: var(--pdf-muted);
  font-style: italic;
  background: var(--pdf-surface-2);
  border-radius: 16px;
  border: 1px dashed var(--pdf-line-2);
  display: none;
}
.pdf-landing.pdf-tools-empty .pdf-empty {
  display: block;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.pdf-landing .how-it-works {
  padding: clamp(72px, 9vw, 104px) 32px;
  max-width: 90%;
  margin: 0 auto;
}
.pdf-landing .how-it-works .hiw-accent {
  color: var(--pdf-primary);
}
/* Wider header here so the description reads on one line instead of the shared
   660px / 58ch section-head cap wrapping it early. */
/* ============================================================
   MASCOT MOTION
   The mascots are flat images, so every motion here moves the whole
   character - individual limbs were only animatable while loo was inline SVG.
   Each one is transform-only (compositor-friendly, no layout work) and the
   durations are deliberately mismatched so the four never fall into step and
   pulse together as the page scrolls.
   ============================================================ */
@keyframes loo-tinker {
  0%,
  100% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(4deg) translateY(-2px);
  }
}
/* Carries the -50% centring offset inside the keyframes on purpose: this
   element is centred with transform: translateY(-50%), and an animation that
   only said translateY(-9px) would silently overwrite that and drop it half
   its own height down the page. */
@keyframes loo-float-centred {
  0%,
  100% {
    transform: translateY(-50%);
  }
  50% {
    transform: translateY(calc(-50% - 9px));
  }
}
@keyframes loo-ponder {
  0%,
  100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-6deg);
  }
  65% {
    transform: rotate(5deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pdf-landing .hiw-loo,
  .pdf-landing .stats-loo,
  .pdf-landing .faq-loo,
  .pdf-landing .fr-hub-loo {
    animation: none;
  }
}

/* Step 02 swaps its document mock for loo holding a wrench - the tool belongs
   at the Edit step. loo sits fully inside the 104px tile like the other two
   steps' illustrations do; an earlier version let it overflow the tile to keep
   the wrench larger, which just read as broken clipping. */
.pdf-landing .hiw-loo {
  object-fit: contain;
  /* Working the wrench - the quickest of the four, pivoting low on the
     tentacles so it reads as effort rather than a wobble. */
  transform-origin: 50% 85%;
  animation: loo-tinker 1.9s ease-in-out infinite;
  /* flex:none - the tile is a flex container and would otherwise squeeze the
     image to an arbitrary width. */
  flex: none;
  width: 94px;
  height: auto;
  display: block;
}

.pdf-landing .how-it-works .section-head {
  max-width: 820px;
}
.pdf-landing .how-it-works .section-head .dek {
  max-width: 100%;
}

/* Vertical timeline: numbered nodes ride a fill-as-you-scroll rail in the
   left gutter, each step card revealing on scroll. */
.pdf-landing .hiw-rail {
  position: relative;
  max-width: 1080px;
  margin: 56px auto 0;
  padding-left: 96px;
}
.pdf-landing .hiw-track {
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 20px;
  width: 3px;
  border-radius: 3px;
  background: var(--pdf-line-2);
  overflow: hidden;
}
.pdf-landing .hiw-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  border-radius: 3px;
  background: var(--pdf-grad);
  transition: height 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.pdf-landing .hiw-step {
  position: relative;
}
.pdf-landing .hiw-step + .hiw-step {
  margin-top: 40px;
}

/* Numbered node in the gutter */
.pdf-landing .hiw-node {
  position: absolute;
  left: -96px;
  top: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: ui-monospace, 'SF Mono', 'Menlo', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--pdf-muted);
  background: var(--pdf-bg);
  box-shadow:
    0 0 0 2px var(--pdf-line-2),
    0 0 0 6px var(--pdf-bg);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pdf-landing .hiw-step.is-shown .hiw-node {
  color: #fff;
  background: var(--pdf-primary);
  box-shadow:
    0 8px 20px -6px color-mix(in srgb, var(--pdf-primary) 55%, transparent),
    0 0 0 6px var(--pdf-bg);
}

/* Card. Visible by default (progressive enhancement) - the JS adds
   `.is-animating` to the rail to opt into the scroll-reveal, so the content is
   never stuck invisible if the script fails to run. */
.pdf-landing .hiw-card {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 20px 50px -28px
    color-mix(in srgb, var(--pdf-primary) 32%, transparent);
  transition:
    opacity 0.55s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pdf-landing .hiw-rail.is-animating .hiw-card {
  opacity: 0;
  transform: translateY(22px);
}
.pdf-landing .hiw-rail.is-animating .hiw-step.is-shown .hiw-card {
  opacity: 1;
  transform: translateY(0);
}

.pdf-landing .hiw-tile {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 18px;
  background: var(--pdf-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px var(--pdf-line);
}
.pdf-landing .hiw-card-body {
  flex: 1;
  min-width: 0;
}
.pdf-landing .hiw-card-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.pdf-landing .hiw-card-head h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  margin: 0;
  color: var(--pdf-ink);
}
.pdf-landing .hiw-card-body p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  margin: 10px 0 0;
  text-wrap: pretty;
}

/* Shared PDF chip */
.pdf-landing .hiw-chip {
  font-family: ui-monospace, 'SF Mono', 'Menlo', monospace;
  font-size: 8px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 4px;
  background: var(--pdf-primary);
  color: #fff;
  align-self: flex-start;
}

/* Upload tile visual */
.pdf-landing .hiw-upload {
  position: relative;
  width: 68px;
  height: 68px;
  border: 2px dashed var(--pdf-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pdf-surface);
}
.pdf-landing .hiw-upload-arrow {
  color: var(--pdf-primary);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  animation: hwArrowUp 1.8s ease-in-out infinite;
}
.pdf-landing .hiw-upload-file {
  position: absolute;
  bottom: -11px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--pdf-surface);
  border-radius: 6px;
  padding: 4px 8px;
  box-shadow: var(--pdf-shadow-sm);
  white-space: nowrap;
}
.pdf-landing .hiw-upload-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--pdf-ink);
}

/* Edit + Download mini-doc visuals */
.pdf-landing .hiw-doc {
  position: relative;
  width: 60px;
  height: 72px;
  background: var(--pdf-surface);
  border-radius: 8px;
  box-shadow: 0 6px 16px -8px
    color-mix(in srgb, var(--pdf-primary) 35%, transparent);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
}
.pdf-landing .hiw-doc--edit {
  overflow: hidden;
}
.pdf-landing .hiw-line {
  height: 5px;
  border-radius: 3px;
  background: var(--pdf-tint-2);
}
/* In dark mode --pdf-tint-2 (#3a2a2a) is barely lighter than the mini-doc
   surface, so the "text lines" nearly vanish. Lighten to a visible grey. */
body.theme-dark .pdf-landing .hiw-line,
[data-theme='dark'] .pdf-landing .hiw-line {
  background: #57575f;
}
.pdf-landing .hiw-pen {
  position: absolute;
  left: 8px;
  bottom: 16px;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--pdf-primary);
  animation: hwPenWrite 1.9s ease-in-out infinite;
}
.pdf-landing .hiw-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--pdf-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 10px -3px
    color-mix(in srgb, var(--pdf-primary) 50%, transparent);
}
.pdf-landing .hiw-badge > span {
  animation: hwArrowDown 1.8s ease-in-out infinite;
  line-height: 1;
}

@keyframes hwArrowUp {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-5px);
    opacity: 0.55;
  }
}
@keyframes hwArrowDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(5px);
    opacity: 0.55;
  }
}
@keyframes hwPenWrite {
  0%,
  100% {
    transform: translateX(0) rotate(-8deg);
  }
  50% {
    transform: translateX(26px) rotate(-8deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pdf-landing .hiw-upload-arrow,
  .pdf-landing .hiw-pen,
  .pdf-landing .hiw-badge > span {
    animation: none;
  }
}

/* ============================================================
   BENEFITS
   ============================================================ */
/* ---- Four Reasons arena (Claude Design) — sits on the normal page bg,
   no panel/container. Central hub + 4 spokes radiating to 4 corner cards
   that reveal on scroll. ---- */
.pdf-landing .fr-section {
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) 32px;
}
.pdf-landing .fr-head {
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.pdf-landing .fr-head h2 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  color: var(--pdf-ink);
}
.pdf-landing .fr-head .dek {
  font-size: 18px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  margin: 16px auto 0;
  max-width: 58ch;
  text-wrap: pretty;
}

.pdf-landing .fr-arena {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 52px auto 0;
  aspect-ratio: 1000 / 560;
}

/* Hub */
.pdf-landing .fr-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
}
.pdf-landing .fr-hub-inner {
  position: relative;
  width: 164px;
  height: 164px;
  border-radius: 50%;
  background: radial-gradient(
    120% 120% at 30% 25%,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.6)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 30px 60px -24px rgba(124, 14, 19, 0.4),
    inset 0 2px 6px rgba(255, 255, 255, 0.9),
    inset 0 -6px 18px rgba(124, 14, 19, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdf-landing .fr-hub-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.pdf-landing .fr-hub-loo {
  object-fit: contain;
  width: 62px;
  height: auto;
  flex: none;
  /* Rocking the whole character is the only "wave" available now that the
     mascot is a flat image - individual tentacles were only animatable while
     it was inline SVG. Pivoting low, near the tentacles, keeps the motion
     reading as a greeting rather than a wobble. */
  transform-origin: 50% 88%;
  animation: loo-hub-wave 2.6s ease-in-out infinite;
}
@keyframes loo-hub-wave {
  0%,
  100% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(7deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pdf-landing .fr-hub-loo {
    animation: none;
  }
}
.pdf-landing .fr-hub-name {
  font-size: 15px;
  line-height: 1;
  color: var(--pdf-ink);
  white-space: nowrap;
}

/* Spokes */
.pdf-landing .fr-spokes {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  z-index: 1;
  pointer-events: none;
}
.pdf-landing .fr-arm {
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 232px;
  transform-origin: 0 50%;
}
.pdf-landing .fr-arm-tl {
  transform: rotate(-148deg) translateY(-50%);
}
.pdf-landing .fr-arm-tr {
  transform: rotate(-32deg) translateY(-50%);
}
.pdf-landing .fr-arm-bl {
  transform: rotate(148deg) translateY(-50%);
}
.pdf-landing .fr-arm-br {
  transform: rotate(32deg) translateY(-50%);
}
.pdf-landing .fr-fill {
  position: absolute;
  left: 82px;
  top: 0;
  width: 0;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--pdf-primary) 0%,
    var(--pdf-primary) 38%,
    var(--pdf-ember) 50%,
    var(--pdf-primary) 62%,
    var(--pdf-primary) 100%
  );
  background-size: 260% 100%;
  animation: fr-flow 2.2s linear infinite;
  box-shadow: 0 0 8px rgba(208, 40, 27, 0.3);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.pdf-landing .fr-arena.is-in .fr-fill {
  width: 150px;
}
.pdf-landing .fr-arm-tl .fr-fill {
  transition-delay: 0.2s;
}
.pdf-landing .fr-arm-tr .fr-fill {
  transition-delay: 0.3s;
}
.pdf-landing .fr-arm-bl .fr-fill {
  transition-delay: 0.4s;
}
.pdf-landing .fr-arm-br .fr-fill {
  transition-delay: 0.5s;
}
@keyframes fr-flow {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: 0 0;
  }
}

/* Cards */
.pdf-landing .fr-card {
  position: absolute;
  width: 41%;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s ease,
    transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pdf-landing .fr-arena.is-in .fr-card {
  opacity: 1;
  transform: translateY(0);
}
.pdf-landing .fr-card-tl {
  top: 0;
  left: 0;
  transition-delay: 0.15s;
}
.pdf-landing .fr-card-tr {
  top: 0;
  right: 0;
  transition-delay: 0.27s;
}
.pdf-landing .fr-card-bl {
  bottom: 0;
  left: 0;
  transition-delay: 0.39s;
}
.pdf-landing .fr-card-br {
  bottom: 0;
  right: 0;
  transition-delay: 0.51s;
}
.pdf-landing .fr-card-inner {
  background: var(--pdf-surface);
  border-radius: 22px;
  padding: 24px 26px;
  box-shadow:
    0 24px 55px -30px rgba(124, 14, 19, 0.45),
    0 0 0 1px rgba(28, 21, 18, 0.05);
  min-height: 150px;
  display: flex;
  flex-direction: column;
}
.pdf-landing .fr-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pdf-landing .fr-icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--pdf-tint);
  color: var(--pdf-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fr-float 3.6s ease-in-out infinite;
}
.pdf-landing .fr-card-tr .fr-icon {
  animation-delay: 0.3s;
}
.pdf-landing .fr-card-bl .fr-icon {
  animation-delay: 0.6s;
}
.pdf-landing .fr-card-br .fr-icon {
  animation-delay: 0.9s;
}
@keyframes fr-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.pdf-landing .fr-card h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--pdf-ink);
}
.pdf-landing .fr-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--pdf-muted);
  margin: 14px 0 0;
  text-wrap: pretty;
}
.pdf-landing .fr-card p .fr-big {
  font-size: 21px;
  font-weight: 700;
  color: var(--pdf-primary);
  line-height: 1;
  letter-spacing: -0.01em;
}
.pdf-landing .fr-card p a {
  color: var(--pdf-primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid
    color-mix(in srgb, var(--pdf-primary) 35%, transparent);
}
.pdf-landing .fr-card p a:hover {
  border-bottom-color: var(--pdf-primary);
}
body.theme-dark .pdf-landing .fr-card-inner {
  box-shadow:
    0 24px 55px -30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
body.theme-dark .pdf-landing .fr-hub-inner {
  /* Built from the theme surfaces plus a brand-tinted rim and glow. The white
     overlays this used before read as a grey blob dropped on the warm dark
     background - and left the hub unrelated to the red spokes running into it. */
  background: radial-gradient(
    120% 120% at 30% 25%,
    var(--pdf-surface),
    var(--pdf-bg-2)
  );
  box-shadow:
    0 30px 60px -24px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 color-mix(in srgb, var(--pdf-primary) 22%, transparent),
    0 0 0 1px color-mix(in srgb, var(--pdf-primary) 28%, transparent),
    0 0 44px -14px color-mix(in srgb, var(--pdf-primary) 40%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .pdf-landing .fr-icon,
  .pdf-landing .fr-fill {
    animation: none;
  }
  .pdf-landing .fr-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* Below the arena width: simple stacked grid, hub + spokes hidden */
@media (max-width: 860px) {
  .pdf-landing .fr-arena {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 640px;
  }
  .pdf-landing .fr-hub,
  .pdf-landing .fr-spokes {
    display: none;
  }
  .pdf-landing .fr-card {
    position: static;
    width: auto;
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 520px) {
  .pdf-landing .fr-arena {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   STATS
   ============================================================ */
.pdf-landing .pdf-stats {
  padding: clamp(72px, 9vw, 112px) 32px;
  max-width: 1600px;
  margin: 0 auto;
}
/* loo reads alongside the headline, vertically centred on it and sitting in
   the free space to the right of the centred text block. Two earlier spots
   were worse: the donut's bottom-left corner collided with the lower-left arc,
   and below the donut the mascot hung off the section, because the legend
   column is shorter than the 360px chart. */
.pdf-landing .stats-loo {
  position: absolute;
  top: 50%;
  /* Hung outside the 1000px heading box: the h2 text runs to within ~100px of
     that box's edges, so right:0 put loo on top of the last words. This keeps
     it clear of the text while staying inside the 1180px chart width. */
  right: -60px;
  transform: translateY(-50%);
  /* Reading loo gets the calmest motion of the four. */
  animation: loo-float-centred 5.2s ease-in-out infinite;
  width: 132px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}
/* Below ~1200px there is no longer room beside the heading without either
   colliding with the text or pushing past the viewport, so loo steps aside. */
@media (max-width: 1200px) {
  .pdf-landing .stats-loo {
    display: none;
  }
}

.pdf-landing .stats-head {
  position: relative;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto 48px;
}
.pdf-landing .stats-head .eyebrow {
  justify-content: center;
}
.pdf-landing .stats-head h2 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  text-wrap: balance;
  color: var(--pdf-ink);
}
.pdf-landing .stats-head .dek {
  font-size: 18px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  max-width: 72ch;
  margin: 0 auto;
}

/* ---- Quiet Giant interactive donut chart ---- */
/* ---- Donut segment ramp ----
   These five reds were inline `stroke=""` attributes and inline `--seg`
   custom properties on the markup, which meant the chart stayed in its
   light-theme ramp on dark backgrounds where the darkest two segments
   effectively vanished. Driving them from tokens fixes that and keeps the
   ramp editable in one place. --halo is the same colour at 18% for the
   legend hover glow. */
.pdf-landing .pdf-stats {
  --qg-1: #7c0e13;
  --qg-2: #a6141a;
  --qg-3: #cf2018;
  --qg-4: #e85138;
  --qg-5: #f0917e;
}
body.theme-dark .pdf-landing .pdf-stats,
[data-theme='dark'] .pdf-landing .pdf-stats {
  --qg-1: #c13a34;
  --qg-2: #e05046;
  --qg-3: #ff6b61;
  --qg-4: #ff8e7a;
  --qg-5: #ffb49f;
}
.pdf-landing .qg-arc[data-seg='0'] {
  stroke: var(--qg-1);
}
.pdf-landing .qg-arc[data-seg='1'] {
  stroke: var(--qg-2);
}
.pdf-landing .qg-arc[data-seg='2'] {
  stroke: var(--qg-3);
}
.pdf-landing .qg-arc[data-seg='3'] {
  stroke: var(--qg-4);
}
.pdf-landing .qg-arc[data-seg='4'] {
  stroke: var(--qg-5);
}
.pdf-landing .qg-row[data-seg='0'] {
  --seg: var(--qg-1);
}
.pdf-landing .qg-row[data-seg='1'] {
  --seg: var(--qg-2);
}
.pdf-landing .qg-row[data-seg='2'] {
  --seg: var(--qg-3);
}
.pdf-landing .qg-row[data-seg='3'] {
  --seg: var(--qg-4);
}
.pdf-landing .qg-row[data-seg='4'] {
  --seg: var(--qg-5);
}
.pdf-landing .qg-row {
  --halo: color-mix(in srgb, var(--seg) 18%, transparent);
}

.pdf-landing .qg-chart {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1180px;
  margin: 48px auto 0;
}
.pdf-landing .qg-donut {
  position: relative;
  width: 360px;
  height: 360px;
  justify-self: center;
}
.pdf-landing .qg-donut-svg {
  transform: rotate(-90deg);
  display: block;
}
.pdf-landing .qg-arc {
  cursor: pointer;
  transition:
    stroke-width 0.32s cubic-bezier(0.2, 0.85, 0.25, 1),
    opacity 0.3s ease;
}
.pdf-landing .qg-chart.has-active .qg-arc {
  opacity: 0.24;
}
.pdf-landing .qg-chart.has-active .qg-arc.is-active {
  stroke-width: 58;
  opacity: 1;
}

.pdf-landing .qg-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.pdf-landing .qg-big {
  font-weight: 700;
  font-size: 44px;
  line-height: 1;
  color: var(--pdf-ink);
}
.pdf-landing .qg-big span {
  font-size: 22px;
  color: var(--pdf-primary);
}
.pdf-landing .qg-big-sub {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pdf-muted);
  margin-top: 8px;
}
.pdf-landing .qg-hint {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pdf-primary-ink);
  margin-top: 12px;
}
.pdf-landing .qg-active-pct {
  font-weight: 700;
  font-size: 56px;
  line-height: 1;
}
.pdf-landing .qg-active-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--pdf-ink);
  margin-top: 6px;
  max-width: 150px;
}
.pdf-landing .qg-rise {
  animation: qg-rise 0.3s ease;
}
@keyframes qg-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pdf-landing .qg-legend {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pdf-landing .qg-row {
  padding: 16px 18px;
  border-radius: 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(28, 21, 18, 0.08);
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.pdf-landing .qg-row.is-active {
  background: var(--pdf-surface);
  box-shadow: 0 10px 30px -14px rgba(124, 14, 19, 0.4);
  border-bottom-color: transparent;
}
.pdf-landing .qg-row-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.pdf-landing .qg-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--seg);
  flex: none;
  align-self: center;
  box-shadow: 0 0 0 4px var(--halo);
}
.pdf-landing .qg-pct {
  font-weight: 700;
  font-size: 22px;
  color: var(--seg);
  min-width: 56px;
}
.pdf-landing .qg-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--pdf-ink);
}
.pdf-landing .qg-spacer {
  flex: 1;
}
.pdf-landing .qg-short {
  font-size: 14px;
  color: var(--pdf-muted);
}
.pdf-landing .qg-detail {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.3s ease;
}
.pdf-landing .qg-row.is-active .qg-detail {
  max-height: 220px;
  opacity: 1;
}
.pdf-landing .qg-detail p {
  margin: 12px 0 0;
  padding-left: 24px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  max-width: 600px;
  border-left: 2px solid var(--halo);
}
@media (max-width: 820px) {
  .pdf-landing .qg-chart {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pdf-landing .qg-short {
    display: none;
  }
}

/* ---- Live stats band (below the donut): one real counter + honest claims ---- */
.pdf-landing .qg-stats {
  /* No border-top: the section spacing already separates the stats band from
     the donut above it, and the rule read as a stray hairline across the page. */
  margin-top: 80px;
  padding-top: 44px;
}
.pdf-landing .qg-stats-head {
  text-align: center;
  margin-bottom: 34px;
}
.pdf-landing .qg-stats-eyebrow {
  font-family: ui-monospace, 'SF Mono', 'Menlo', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pdf-primary);
}
.pdf-landing .qg-stats-head h3 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  margin: 12px 0 0;
  color: var(--pdf-ink);
}
.pdf-landing .qg-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 900px;
  margin: 0 auto;
}
.pdf-landing .qg-stat {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 30px 26px 32px;
  background: var(--pdf-surface);
  box-shadow:
    0 22px 50px -32px color-mix(in srgb, var(--pdf-primary) 40%, transparent),
    0 0 0 1px var(--pdf-line);
}
/* Hero card: brand-red fill, white text - always this look in both themes. */
.pdf-landing .qg-stat--hero {
  background: linear-gradient(155deg, #d0281b, #7c0e13);
  box-shadow: 0 34px 60px -26px color-mix(in srgb, #7c0e13 60%, transparent);
}
.pdf-landing .qg-stat-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pdf-landing .qg-stat-chip {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--pdf-primary) 12%, transparent);
  color: var(--pdf-primary);
}
.pdf-landing .qg-stat--hero .qg-stat-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.pdf-landing .qg-stat-num {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  background: linear-gradient(
    150deg,
    var(--pdf-primary),
    var(--pdf-primary-ink)
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pdf-landing .qg-stat--hero .qg-stat-num {
  background: linear-gradient(180deg, #ffffff, #ffe4dc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pdf-landing .qg-stat-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--pdf-ink);
  margin-top: 18px;
}
.pdf-landing .qg-stat-sub {
  font-size: 13px;
  color: var(--pdf-muted);
  margin-top: 3px;
}
.pdf-landing .qg-stat--hero .qg-stat-label {
  color: #fff;
}
.pdf-landing .qg-stat--hero .qg-stat-sub {
  color: rgba(255, 255, 255, 0.72);
}
.pdf-landing .qg-stats-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--pdf-muted);
  margin: 22px 0 0;
}
@media (max-width: 640px) {
  .pdf-landing .qg-stats-grid {
    grid-template-columns: 1fr;
  }
}

.pdf-landing .stats-bar {
  display: flex;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--pdf-line);
}
.pdf-landing .stats-seg {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  transition: flex-grow 0.3s;
}
.pdf-landing .stats-seg:nth-child(1) {
  background: linear-gradient(135deg, #8c0d14, #b3121f);
}
.pdf-landing .stats-seg:nth-child(2) {
  background: linear-gradient(135deg, #b3121f, #d62828);
}
.pdf-landing .stats-seg:nth-child(3) {
  background: linear-gradient(135deg, #d62828, #ef4444);
}
.pdf-landing .stats-seg:nth-child(4) {
  background: linear-gradient(135deg, #ef4444, #f87171);
}
.pdf-landing .stats-seg:nth-child(5) {
  background: linear-gradient(135deg, #f87171, #fca5a5);
}
.pdf-landing .seg-pct {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.pdf-landing .stats-legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.pdf-landing .legend-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
  border-top: 2px solid;
}
.pdf-landing .legend-row:nth-child(1) {
  border-color: #8c0d14;
}
.pdf-landing .legend-row:nth-child(2) {
  border-color: #b3121f;
}
.pdf-landing .legend-row:nth-child(3) {
  border-color: #d62828;
}
.pdf-landing .legend-row:nth-child(4) {
  border-color: #ef4444;
}
.pdf-landing .legend-row:nth-child(5) {
  border-color: #f87171;
}
.pdf-landing .legend-pct {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pdf-primary-ink);
  margin-bottom: 2px;
}
.pdf-landing .legend-label {
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  color: var(--pdf-ink);
}
.pdf-landing .legend-desc {
  font-size: 13px;
  color: var(--pdf-ink-2);
  line-height: 1.5;
}

/* ============================================================
   TESTIMONIALS - rides on shared base_testimonial component
   ============================================================ */
.pdf-landing .reviews-testimonials {
  padding: clamp(72px, 9vw, 112px) 32px;
  max-width: 90%;
  margin: 0 auto;
}
.pdf-landing .reviews-testimonials .base-testimonial {
  --testimonial-bg: var(--pdf-surface);
  --testimonial-border: var(--pdf-line);
  --testimonial-ink: var(--pdf-ink);
  --testimonial-muted: var(--pdf-muted);
  --testimonial-accent: var(--pdf-primary);
  --testimonial-nav-bg: var(--pdf-surface);
  --testimonial-nav-ink: var(--pdf-primary-ink);
  --testimonial-radius: 18px;
}
.pdf-landing .reviews-testimonials .base-testimonial__avatar {
  background: var(--pdf-grad);
  color: #fff;
  font-family: 'Fredoka', system-ui, sans-serif;
}
.pdf-landing .reviews-testimonials .base-testimonial__role {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pdf-muted);
}

/* ============================================================
   APPS
   ============================================================ */
/* ---- Eduloo cross-promo section ---- */
.pdf-landing .eduloo-promo {
  --edu: #f8667b;
  --edu-ink: #c93a52;
  --edu-soft: #fdeaee;
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 88px) 32px;
}
.pdf-landing .eduloo-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 24px;
  border: 1px solid var(--pdf-line);
  background:
    radial-gradient(120% 130% at 0% 0%, var(--edu-soft), transparent 55%),
    var(--pdf-surface);
  overflow: hidden;
}
[data-theme='dark'] .pdf-landing .eduloo-inner,
body.theme-dark .pdf-landing .eduloo-inner {
  background:
    radial-gradient(
      120% 130% at 0% 0%,
      rgba(248, 102, 123, 0.14),
      transparent 55%
    ),
    var(--pdf-surface);
}
.pdf-landing .eduloo-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.pdf-landing .eduloo-brand-mascot {
  width: 52px;
  height: auto;
  display: block;
  flex: none;
  transform-origin: bottom center;
  animation: eduloo-hop 1.6s ease-in-out infinite;
}
@keyframes eduloo-hop {
  0%,
  100% {
    transform: translateY(0) scaleY(1);
  }
  15% {
    transform: translateY(0) scaleY(0.9);
  }
  45% {
    transform: translateY(-10px) scaleY(1.04);
  }
  70% {
    transform: translateY(0) scaleY(0.94);
  }
  82% {
    transform: translateY(0) scaleY(1.02);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pdf-landing .eduloo-brand-mascot {
    animation: none;
  }
}
.pdf-landing .eduloo-logo {
  height: 36px;
  width: auto;
  display: block;
}
.pdf-landing .eduloo-copy h2 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--pdf-ink);
  margin: 0 0 16px;
  text-wrap: balance;
}
.pdf-landing .eduloo-copy .dek {
  font-size: 17px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  max-width: 46ch;
  margin: 0 0 26px;
}
.pdf-landing .eduloo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.pdf-landing .eduloo-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 18px;
  background: var(--pdf-bg);
  border: 1px solid var(--pdf-line);
  color: inherit;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.2s ease;
}
/* The card is an <a>; base anchor styles repurpose border-bottom as an
   underline, so force the full box border (and the red hover ring). */
.pdf-landing a.eduloo-feature {
  border-bottom-width: 1px !important;
  border-bottom-style: solid !important;
  border-bottom-color: var(--pdf-line) !important;
}
.pdf-landing .eduloo-feature:hover {
  transform: translateY(-2px);
  border-color: var(--edu);
  box-shadow: 0 14px 30px -18px rgba(248, 102, 123, 0.5);
}
.pdf-landing a.eduloo-feature:hover {
  border-color: var(--edu) !important;
}
.pdf-landing .eduloo-feature-mascot {
  width: 78px;
  height: 78px;
  object-fit: contain;
  flex: none;
}
.pdf-landing .eduloo-feature-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--pdf-ink);
}
.pdf-landing .eduloo-feature-text p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--pdf-muted);
  margin: 5px 0 0;
}
@media (max-width: 900px) {
  .pdf-landing .eduloo-inner {
    grid-template-columns: 1fr;
  }
  .pdf-landing .eduloo-wave {
    display: none;
  }
}
@media (max-width: 560px) {
  .pdf-landing .eduloo-grid {
    grid-template-columns: 1fr;
  }
}

.pdf-landing .pdf-apps {
  padding: clamp(72px, 9vw, 112px) 32px;
  max-width: 90%;
  margin: 0 auto;
}
.pdf-landing .apps-inner {
  background: linear-gradient(
    135deg,
    var(--pdf-tint) 0%,
    var(--pdf-surface) 100%
  );
  border: 1px solid var(--pdf-line);
  border-radius: 32px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
  overflow: hidden;
  position: relative;
}
body.theme-dark .pdf-landing .apps-inner,
[data-theme='dark'] .pdf-landing .apps-inner {
  background: linear-gradient(
    135deg,
    var(--pdf-tint) 0%,
    var(--pdf-surface-2) 100%
  );
}
.pdf-landing .apps-inner::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(214, 40, 40, 0.14), transparent 60%);
  pointer-events: none;
}
.pdf-landing .apps-copy {
  position: relative;
  z-index: 1;
}
.pdf-landing .apps-copy h2 {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-weight: 600;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
  color: var(--pdf-ink);
}
.pdf-landing .apps-copy .dek {
  font-size: 17px;
  line-height: 1.6;
  color: var(--pdf-ink-2);
  margin: 0 0 32px;
  max-width: 46ch;
}
.pdf-landing .platforms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 420px;
}
.pdf-landing .platform {
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition:
    transform 0.15s,
    border-color 0.15s;
  color: var(--pdf-ink);
}
.pdf-landing .platform:hover {
  transform: translateY(-2px);
  border-color: var(--pdf-primary);
}
.pdf-landing .plat-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--pdf-ink);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.pdf-landing .plat-icon i {
  font-size: inherit;
  line-height: 1;
  color: inherit;
}
body.theme-dark .pdf-landing .plat-icon,
[data-theme='dark'] .pdf-landing .plat-icon {
  background: var(--pdf-surface-2);
}
.pdf-landing .plat-icon--android {
  background: #a4c639;
  color: #fff;
}
.pdf-landing .platform .plat-name {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--pdf-ink);
}
.pdf-landing .plat-sub {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 11px;
  color: var(--pdf-muted);
  letter-spacing: 0.04em;
}
.pdf-landing .platform.platform-disabled {
  cursor: not-allowed;
  opacity: 0.75;
  position: relative;
}
.pdf-landing .platform.platform-disabled:hover {
  transform: none;
  border-color: var(--pdf-line);
}
.pdf-landing .platform.platform-disabled .plat-icon,
.pdf-landing .platform.platform-disabled .plat-icon--android {
  background: var(--pdf-tint-2);
  color: var(--pdf-primary-ink);
  filter: grayscale(0.15);
}
.pdf-landing .platform.platform-disabled .plat-name {
  color: var(--pdf-muted);
}
.pdf-landing .plat-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 2px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pdf-tint);
  color: var(--pdf-primary-ink);
  border: 1px solid var(--pdf-line);
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}
.pdf-landing .apps-visual {
  position: relative;
  z-index: 1;
}
.pdf-landing .app-mock {
  transform: rotate(2deg);
  transition: transform 0.4s;
}
.pdf-landing .app-mock:hover {
  transform: rotate(0deg) scale(1.02);
}
.pdf-landing .app-window {
  background: var(--pdf-surface);
  border: 1px solid var(--pdf-line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--pdf-shadow-lg);
}
.pdf-landing .app-chrome {
  height: 36px;
  background: var(--pdf-surface-2);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 8px;
  border-bottom: 1px solid var(--pdf-line);
}
.pdf-landing .tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.pdf-landing .app-title {
  margin-left: 16px;
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 11px;
  color: var(--pdf-muted);
  letter-spacing: 0.04em;
}
.pdf-landing .app-body {
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 280px;
}
.pdf-landing .app-side {
  background: var(--pdf-surface-2);
  padding: 14px 10px;
  border-right: 1px solid var(--pdf-line);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pdf-landing .app-side-item {
  padding: 8px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--pdf-ink-2);
  font-weight: 500;
}
.pdf-landing .app-side-item.active {
  background: var(--pdf-primary-soft);
  color: var(--pdf-primary-ink);
}
.pdf-landing .app-main {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pdf-landing .app-file {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--pdf-surface-2);
  border: 1px solid var(--pdf-line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--pdf-ink);
}
.pdf-landing .app-file .chip {
  font-family: 'Fredoka', system-ui, sans-serif;
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--pdf-grad);
  color: #fff;
}
.pdf-landing .app-dropzone {
  margin-top: auto;
  padding: 20px;
  border: 2px dashed var(--pdf-line-2);
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  color: var(--pdf-muted);
}

/* ============================================================
   FAQ - rides on base_collapse.css; only the accent is remapped
   ============================================================ */
.pdf-landing .pdf-faq {
  padding: clamp(72px, 9vw, 112px) 32px;
  max-width: 900px;
  margin: 0 auto;
}
.pdf-landing .pdf-faq .pdf-faq-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 40px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible;
}
/* FAQ header row (title + "Still stuck?") spans the full FAQ column, not the
   narrower shared 660px section-head cap. */
/* "Still stuck?" gets loo alongside it - the one warm spot in an otherwise
   dense Q&A block. The mascot is decorative, so it shrinks away on phones
   where the header row is already tight. */
.pdf-landing .faq-help {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pdf-landing .faq-loo {
  object-fit: contain;
  /* A puzzled sway to match the question marks in the artwork. */
  transform-origin: 50% 85%;
  animation: loo-ponder 3.4s ease-in-out infinite;
  /* Bigger than the other inline mascots: the artwork carries its own question
     marks, which need the extra size to read. */
  width: 88px;
  height: auto;
  flex: none;
}
@media (max-width: 640px) {
  .pdf-landing .faq-loo,
  .pdf-landing .stats-loo {
    display: none;
  }
}

.pdf-landing .pdf-faq .section-head {
  max-width: 100%;
}
.pdf-landing .pdf-faq .section-head .dek {
  margin-top: 14px;
}
.pdf-landing .pdf-faq .collapse-container {
  --collapse-accent: var(--pdf-primary);
  --collapse-accent-rgb: 214, 40, 40;
}
body.theme-dark .pdf-landing .pdf-faq .collapse-container,
[data-theme='dark'] .pdf-landing .pdf-faq .collapse-container {
  --collapse-accent-rgb: 255, 107, 97;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .pdf-landing .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdf-landing .pdf-tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .pdf-landing .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdf-landing .apps-inner {
    grid-template-columns: 1fr;
    padding: 40px;
  }
  .pdf-landing .stats-legend {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdf-landing .steps-rail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .pdf-landing .rail-track {
    display: none;
  }
}
@media (max-width: 640px) {
  .pdf-landing .pdf-tools,
  .pdf-landing .pdf-benefits,
  .pdf-landing .pdf-stats,
  .pdf-landing .reviews-testimonials,
  .pdf-landing .pdf-apps,
  .pdf-landing .pdf-faq {
    padding-left: 20px;
    padding-right: 20px;
  }
  .pdf-landing .section-head h2 {
    font-size: 30px;
  }
  .pdf-landing .pdf-hero {
    padding: 40px 0 56px;
  }
  .pdf-landing .hero-grid {
    padding: 0 20px;
  }
  .pdf-landing .apps-visual {
    display: none;
  }
  .pdf-landing .pdf-tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pdf-landing .featured-grid {
    grid-template-columns: 1fr;
  }
  .pdf-landing .benefit-grid {
    grid-template-columns: 1fr;
  }
  .pdf-landing .stats-legend {
    grid-template-columns: 1fr;
  }
  .pdf-landing .apps-copy h2 {
    font-size: 30px;
  }
  .pdf-landing .platforms {
    grid-template-columns: 1fr;
  }
  .pdf-landing .how-it-works {
    padding: 56px 20px;
    margin: 40px 20px;
  }
  .pdf-landing .hiw-rail {
    padding-left: 60px;
  }
  .pdf-landing .hiw-track {
    left: 16px;
  }
  .pdf-landing .hiw-node {
    left: -60px;
    width: 36px;
    height: 36px;
    font-size: 13px;
    box-shadow:
      0 0 0 2px var(--pdf-line-2),
      0 0 0 5px var(--pdf-bg);
  }
  .pdf-landing .hiw-step.is-shown .hiw-node {
    box-shadow:
      0 8px 20px -6px color-mix(in srgb, var(--pdf-primary) 55%, transparent),
      0 0 0 5px var(--pdf-bg);
  }
  .pdf-landing .hiw-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .pdf-landing .hiw-tile {
    width: 88px;
    height: 88px;
  }

  /* Tool category tabs on mobile: icon stacked above the label, five equal
     columns in a single row so nothing scrolls or clips at the rounded
     container edge. The sliding indicator is hidden; the active tab is
     painted red directly. */
  .pdf-landing .pdf-tools-controls {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  /* On touch there's no hover — show the search as a normal full-width field */
  .pdf-landing .pdf-search-orb {
    width: 100%;
    order: 2;
  }
  .pdf-landing .pdf-search-orb__panel {
    position: static;
    width: 100%;
    height: 44px;
    cursor: text;
  }
  .pdf-landing .pdf-search-orb input {
    opacity: 1;
  }
  .pdf-landing .pdf-cat-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    flex-wrap: nowrap;
    gap: 2px;
    justify-content: stretch;
    align-items: stretch;
  }
  .pdf-landing .pdf-cat-indicator {
    display: none;
  }
  .pdf-landing .pdf-cat-tabs button {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    padding: 9px 2px !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
  }
  .pdf-landing .pdf-cat-tabs button i {
    font-size: 16px !important;
    line-height: 1 !important;
  }
  /* Labels wrap to two lines rather than clipping - "Protect & Enhance" is the
     longest and needs the second line at this column width. */
  .pdf-landing .pdf-cat-tabs button .cat-label {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    text-align: center !important;
  }
  .pdf-landing .pdf-cat-tabs button .count {
    display: none !important;
  }
  .pdf-landing .pdf-cat-tabs button.active,
  .pdf-landing .pdf-cat-tabs button.active:hover {
    background: var(--pdf-primary) !important;
    color: #fff !important;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .pdf-landing *,
  .pdf-landing *::before,
  .pdf-landing *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
