/* =====================================================================
   DSPDF — Design System + Components
   Dark-mode-first. Light mode via [data-theme="light"] on <html>.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg-dark:        #0A1929;
  --bg-card:        #1E293B;
  --bg-elevated:    #334155;
  --bg-subtle:      #14283D;

  --accent:         #2563EB;
  --accent-hover:   #1D4ED8;
  --accent-soft:    rgba(37, 99, 235, 0.14);

  --success:        #10B981;
  --warning:        #F59E0B;
  --danger:         #EF4444;

  --text-primary:   #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted:     #64748B;

  --border:         #334155;
  --border-soft:    rgba(148, 163, 184, 0.16);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.30);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.40);

  --space-1: 4px;  --space-2: 8px;  --space-3: 12px;
  --space-4: 16px; --space-5: 24px; --space-6: 32px;
  --space-7: 48px; --space-8: 64px;

  --maxw: 1200px;
  --header-h: 64px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --transition: 160ms ease;
}

[data-theme="light"] {
  --bg-dark:        #F8FAFC;
  --bg-card:        #FFFFFF;
  --bg-elevated:    #F1F5F9;
  --bg-subtle:      #EFF6FF;

  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-muted:     #64748B;

  --border:         #E2E8F0;
  --border-soft:    rgba(15, 23, 42, 0.08);

  --accent-soft:    rgba(37, 99, 235, 0.10);

  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.08);
  --shadow-lg: 0 12px 40px rgba(15,23,42,0.12);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
button { font-family: inherit; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--space-4);
}
.section { padding: var(--space-8) 0; }
.section--tight { padding: var(--space-6) 0; }
.stack > * + * { margin-top: var(--space-4); }
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-3); font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.375rem, 3vw, 2rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 var(--space-4); color: var(--text-primary); }
.lead { font-size: 1.125rem; color: var(--text-secondary); }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-card); color: var(--text-primary); text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: transparent;
}
.btn-ghost:hover { background: var(--bg-elevated); color: var(--text-primary); text-decoration: none; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #DC2626; color: #fff; text-decoration: none; }

.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 25, 41, 0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
[data-theme="light"] .navbar { background: rgba(248, 250, 252, 0.9); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: var(--header-h);
}
.navbar__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-primary);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}
.navbar__brand:hover { color: var(--text-primary); text-decoration: none; }
.navbar__brand svg { height: 32px; width: auto; color: var(--text-primary); }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__menu a {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}
.navbar__menu a:hover { color: var(--text-primary); background: var(--bg-elevated); text-decoration: none; }

.navbar__actions { display: flex; align-items: center; gap: var(--space-2); }

.navbar__toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
}

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--bg-elevated); }

@media (max-width: 860px) {
  .navbar__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .navbar__menu {
    position: absolute;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: var(--space-2);
    gap: 0;
    display: none;
  }
  .navbar__menu.is-open { display: flex; }
  .navbar__menu a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-8) 0 var(--space-7);
  background:
    radial-gradient(1200px 500px at 50% -10%, var(--accent-soft), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
  border-bottom: 1px solid var(--border-soft);
  overflow: hidden;
}
.hero__inner { text-align: center; max-width: 820px; margin: 0 auto; }
.hero h1 { margin-bottom: var(--space-4); }
.hero h1 .accent { color: var(--accent); }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
}
.hero__tagline {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-5);
}

/* ---------- Upload zone (used by hero + tools) ---------- */
.upload-zone {
  border: 2px dashed var(--border);
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
  max-width: 640px;
  margin: 0 auto;
}
.upload-zone:hover { border-color: var(--accent); background: var(--bg-subtle); }
.upload-zone.is-dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.005);
}
.upload-zone__icon {
  width: 48px; height: 48px;
  margin: 0 auto var(--space-3);
  color: var(--accent);
}
.upload-zone__title { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.upload-zone__hint { font-size: 0.875rem; color: var(--text-secondary); margin: 0; }

/* ---------- Trust badges ---------- */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-5);
  list-style: none;
  padding: 0;
}
.trust-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 6px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
}
.trust-badges .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.18);
}

/* ---------- Tool cards ---------- */
.grid {
  display: grid;
  gap: var(--space-4);
}
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.tool-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: transform var(--transition), border-color var(--transition),
              background var(--transition), box-shadow var(--transition);
  min-height: 160px;
}
.tool-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--text-primary);
}
.tool-card__icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--space-3);
  font-size: 1.15rem;
  font-weight: 700;
}
.tool-card__title { font-size: 1.05rem; font-weight: 700; margin-bottom: var(--space-2); }
.tool-card__desc { font-size: 0.9rem; color: var(--text-secondary); margin: 0; flex: 1; }
.tool-card__meta {
  margin-top: var(--space-3);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex; align-items: center; gap: var(--space-2);
}

/* ---------- Category chips ---------- */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-5);
}
.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 40px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}
.category-chip:hover, .category-chip.is-active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}

/* ---------- Feature / step cards ---------- */
.step {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.step__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.step h3 { margin: 0 0 var(--space-2); }
.step p { margin: 0; color: var(--text-secondary); }

/* ---------- Alerts ---------- */
.alert {
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 0.95rem;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}
.alert-success { border-color: rgba(16,185,129,0.4); background: rgba(16,185,129,0.08); }
.alert-error   { border-color: rgba(239,68,68,0.4);  background: rgba(239,68,68,0.08); }
.alert-warning { border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.08); }
.alert-info    { border-color: rgba(37,99,235,0.4);  background: var(--accent-soft); }

/* ---------- Progress bar ---------- */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 200ms ease;
}
.progress__bar.is-success { background: var(--success); }
.progress__bar.is-error { background: var(--danger); }

/* ---------- File list ---------- */
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-2);
}
.file-list__name { flex: 1; font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list__size { font-size: 0.82rem; color: var(--text-muted); }

/* ---------- Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 500;
  display: none;
  align-items: center; justify-content: center;
  padding: var(--space-4);
  background: rgba(0,0,0,0.6);
}
.modal.is-open { display: flex; }
.modal__panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px; width: 100%;
  max-height: 90vh; overflow: auto;
  padding: var(--space-6);
  box-shadow: var(--shadow-lg);
}

/* ---------- Toasts ---------- */
.toast-host {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0) + 20px);
  left: 50%; transform: translateX(-50%);
  z-index: 900;
  display: flex; flex-direction: column; gap: var(--space-2);
  max-width: calc(100vw - 32px);
}
.toast {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.92rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  cursor: pointer;
  animation: toastIn 200ms ease;
}
.toast--success { border-color: var(--success); }
.toast--error   { border-color: var(--danger); }
.toast--info    { border-color: var(--accent); }
.toast--out     { opacity: 0; transform: translateY(8px); transition: all 200ms ease; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Breadcrumbs ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--space-2); }
.breadcrumb li + li::before { content: "/"; color: var(--text-muted); margin-right: var(--space-2); }
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--text-primary); font-weight: 500; }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq-accordion { max-width: 820px; margin: 0 auto; }
.faq-accordion details {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  overflow: hidden;
}
.faq-accordion summary {
  padding: var(--space-4) var(--space-5);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex; justify-content: space-between; gap: var(--space-3);
  align-items: center;
}
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform var(--transition);
  line-height: 1;
}
.faq-accordion details[open] summary::after { content: "–"; }
.faq-accordion details > p,
.faq-accordion details > div {
  padding: 0 var(--space-5) var(--space-4);
  color: var(--text-secondary);
  margin: 0;
}

/* ---------- Article layout (blog) ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: var(--space-7);
  align-items: start;
}
.toc-sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--space-4));
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  font-size: 0.9rem;
}
.toc-sidebar h4 { margin: 0 0 var(--space-3); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.toc-sidebar ul { list-style: none; padding: 0; margin: 0; }
.toc-sidebar li { margin-bottom: 6px; }
.toc-sidebar a { color: var(--text-secondary); }
.toc-sidebar a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc-sidebar { position: static; }
}

/* ---------- Related grid ---------- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}

/* ---------- Ad slot placeholder ---------- */
.ad-slot {
  display: none; /* hidden until real AdSense enabled */
  margin: var(--space-6) auto;
  min-height: 90px;
  max-width: 970px;
  background: var(--bg-card);
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-md);
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
[data-ads="on"] .ad-slot { display: flex; }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-soft);
  padding: var(--space-7) 0 var(--space-5);
  margin-top: var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 var(--space-3);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: var(--space-2); }
.footer a { color: var(--text-secondary); font-size: 0.92rem; }
.footer a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  font-size: 0.85rem; color: var(--text-muted);
}
.footer__badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.85rem; color: var(--text-secondary);
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  top: -100px; left: 8px;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { top: 8px; color: #fff; text-decoration: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .section { padding: var(--space-6) 0; }
  .hero { padding: var(--space-6) 0; }
  .hero h1 { font-size: 1.75rem; }
  .upload-zone { padding: var(--space-5) var(--space-3); }
}
/* PDF tool live preview */
.tool-preview canvas { width: 100%; height: auto; max-height: none; object-fit: contain; background: #fff; }
@media (max-width: 768px) { .tool-preview canvas { max-height: none; } }
.alert.is-loading { display:flex !important; align-items:center; gap:9px; min-height:38px; }

@keyframes dspdf-spin { to { transform:rotate(360deg); } }

.dspdf-loading-spinner{width:18px;height:18px;flex:0 0 18px;display:inline-block;box-sizing:border-box;border:2px solid currentColor;border-right-color:transparent;border-bottom-color:transparent;border-radius:50%;animation:dspdf-spin .7s linear infinite;vertical-align:-3px}.alert.is-loading{display:flex!important;align-items:center;gap:9px;min-height:38px}@keyframes dspdf-spin{to{transform:rotate(360deg)}}

/* v12: always honor the HTML hidden attribute even when component CSS sets display. */
[hidden]{display:none!important}


/* v12 shared branding: replace the one logo.svg file later and every page updates automatically. */
.dspdf-shared-logo{display:block;width:140px;height:32px;max-width:100%;object-fit:contain;object-position:left center;}
.editor-header__brand .dspdf-shared-logo{width:112px;height:26px;}
.creator-brand{display:inline-flex;align-items:center;gap:7px;color:var(--text-secondary);font-size:.82rem;letter-spacing:.02em;}
.creator-brand strong{color:var(--accent);font-weight:700;}
.creator-brand__dot{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);}
@media(max-width:640px){.dspdf-shared-logo{width:124px;height:30px}.creator-brand{width:100%;order:-1;margin-bottom:4px;font-size:.8rem;}}


/* v12: always-visible lightweight loading indicator for PDF operations */
#dspdf-global-loading{position:fixed;top:calc(env(safe-area-inset-top,0px) + 12px);left:50%;transform:translate(-50%,-12px);z-index:10000;display:flex;align-items:center;gap:9px;max-width:min(92vw,520px);padding:9px 14px;border:1px solid var(--border);border-radius:999px;background:color-mix(in srgb,var(--bg-card) 94%,transparent);box-shadow:0 8px 30px rgba(0,0,0,.22);font-size:.85rem;color:var(--text-primary);opacity:0;pointer-events:none;transition:opacity .16s ease,transform .16s ease;}
#dspdf-global-loading.is-visible{opacity:1;transform:translate(-50%,0);}
.dspdf-global-loading__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

/* v14: homepage creator branding — uses the same single logo.svg source as every page. */
.home-brand-lockup{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:4px auto 22px;text-align:center;}
.home-brand-lockup__logo{display:block;width:min(250px,62vw);height:auto;max-height:70px;object-fit:contain;filter:drop-shadow(0 10px 22px rgba(37,99,235,.18));}
.home-brand-lockup__creator{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:9px;color:var(--text-secondary);font-size:.9rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;}
.home-brand-lockup__line{width:34px;height:1px;background:linear-gradient(90deg,transparent,var(--accent));opacity:.7;}
.home-brand-lockup__line:last-child{background:linear-gradient(90deg,var(--accent),transparent);}
@media(max-width:640px){.home-brand-lockup{margin-bottom:18px}.home-brand-lockup__logo{width:min(220px,68vw)}.home-brand-lockup__creator{font-size:.76rem;letter-spacing:.11em;gap:8px}.home-brand-lockup__line{width:24px;}}


/* v15: creator profile at the top of About. Replace images/profile.jpg with the
   creator's photo; the SVG fallback keeps the layout polished until then. */
.about-profile{display:flex;flex-direction:column;align-items:center;text-align:center;margin:0 auto 30px;padding:8px 0 2px;}
.about-profile__photo{width:150px;height:150px;border-radius:50%;object-fit:cover;display:block;border:5px solid var(--bg-card);box-shadow:0 10px 30px rgba(0,0,0,.18),0 0 0 2px var(--accent);background:var(--bg-elevated);}
.about-profile__title{margin-top:16px;font-size:clamp(1rem,2.2vw,1.28rem);font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);line-height:1.35;}
@media(max-width:640px){.about-profile{margin-bottom:24px}.about-profile__photo{width:124px;height:124px}.about-profile__title{font-size:.9rem;letter-spacing:.09em;padding:0 10px;}}
