/* ================================================================
   Word to PDF Converter – Plugin Styles (scoped to .wtp-wrap)
   ================================================================ */

.wtp-wrap {
  --wtp-ink:      #0d1117;
  --wtp-paper:    #f4f6fb;
  --wtp-accent:   #1d4ed8;
  --wtp-accent2:  #059669;
  --wtp-red:      #dc2626;
  --wtp-muted:    #6b7280;
  --wtp-border:   #d1d9e6;
  --wtp-card:     #ffffff;
  --wtp-tag-bg:   #eff3ff;
  --wtp-tag-txt:  #1d4ed8;
  --wtp-mono:     'DM Mono', monospace;
  --wtp-sans:     'DM Sans', sans-serif;
  --wtp-display:  'Syne', sans-serif;
  --wtp-radius:   12px;

  font-family: var(--wtp-sans);
  color: var(--wtp-ink);
  line-height: 1.7;
  font-size: 16px;
  background: transparent;
}

.wtp-wrap *, .wtp-wrap *::before, .wtp-wrap *::after { box-sizing: border-box; }

/* ── HERO ──────────────────────────────── */
.wtp-hero {
  background: var(--wtp-ink);
  color: #fff;
  padding: 56px 24px 72px;
  text-align: center;
  border-radius: 18px 18px 0 0;
}
.wtp-hero-label {
  display: inline-block;
  background: var(--wtp-accent);
  color: #fff;
  font-family: var(--wtp-mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 18px;
  animation: wtpFadeUp .4s ease both;
}
.wtp-hero h1 {
  font-family: var(--wtp-display) !important;
  font-size: clamp(1.8rem, 4vw, 3rem) !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: -.03em !important;
  color: #fff !important;
  max-width: 720px;
  margin: 0 auto 16px !important;
  animation: wtpFadeUp .4s .1s ease both;
  border: none !important;
  padding: 0 !important;
}
.wtp-hero h1 em { color: #60a5fa; font-style: normal; }
.wtp-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,.72);
  max-width: 520px;
  margin: 0 auto;
  animation: wtpFadeUp .4s .2s ease both;
}

/* ── AD SLOTS ──────────────────────────── */
.wtp-ad-slot { width: 100%; text-align: center; clear: both; overflow: hidden; }
.wtp-ad-top    { margin: 0; padding: 20px 0; }
.wtp-ad-mid    { margin: 0; padding: 20px 0; }
.wtp-ad-inline { margin: 0 0 48px; padding: 20px 0; }
.wtp-ad-bottom { margin: 0; padding: 20px 0; }

/* ── TOOL CARD ─────────────────────────── */
.wtp-tool-wrap {
  background: var(--wtp-card);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
  overflow: visible;
  margin-bottom: 8px;
}
.wtp-tool-body { padding: 32px 28px; }

/* Drop zone */
.wtp-dropzone {
  border: 2.5px dashed var(--wtp-border);
  border-radius: var(--wtp-radius);
  background: var(--wtp-paper);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  position: relative;
}
.wtp-dropzone.drag-over {
  border-color: var(--wtp-accent);
  background: var(--wtp-tag-bg);
}
.wtp-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.wtp-dz-icon { font-size: 2.8rem; margin-bottom: 14px; display: block; }
.wtp-dz-title {
  font-family: var(--wtp-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--wtp-ink);
  margin-bottom: 6px;
}
.wtp-dz-or {
  font-family: var(--wtp-mono);
  font-size: .75rem;
  color: var(--wtp-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 10px 0;
}
.wtp-dz-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--wtp-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--wtp-display);
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: background .18s;
  pointer-events: none;
}
.wtp-dz-note {
  font-size: .78rem;
  color: var(--wtp-muted);
  margin-top: 14px;
  font-family: var(--wtp-mono);
}

/* Progress / states */
.wtp-status { margin-top: 20px; display: none; }
.wtp-status.show { display: block; }

.wtp-progress-bar-wrap {
  background: #e5e7eb;
  border-radius: 100px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.wtp-progress-bar {
  height: 100%;
  background: var(--wtp-accent);
  border-radius: 100px;
  width: 0%;
  transition: width .3s ease;
}
.wtp-status-text {
  font-family: var(--wtp-mono);
  font-size: .8rem;
  color: var(--wtp-muted);
  text-align: center;
}

/* Success box */
.wtp-success {
  display: none;
  align-items: center;
  gap: 16px;
  background: #f0fdf4;
  border: 2px solid #bbf7d0;
  border-radius: var(--wtp-radius);
  padding: 20px 22px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.wtp-success.show { display: flex; }
.wtp-success-icon { font-size: 2rem; flex-shrink: 0; }
.wtp-success-info { flex: 1; }
.wtp-success-filename {
  font-family: var(--wtp-display);
  font-weight: 700;
  font-size: .95rem;
  color: var(--wtp-ink);
  margin-bottom: 3px;
}
.wtp-success-size {
  font-family: var(--wtp-mono);
  font-size: .75rem;
  color: var(--wtp-muted);
}
.wtp-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: var(--wtp-accent2);
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-family: var(--wtp-display);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .18s;
  flex-shrink: 0;
}
.wtp-download-btn:hover { background: #047857 !important; }

/* Error box */
.wtp-error {
  display: none;
  background: #fef2f2;
  border: 2px solid #fca5a5;
  border-radius: var(--wtp-radius);
  padding: 14px 18px;
  margin-top: 16px;
  font-family: var(--wtp-mono);
  font-size: .8rem;
  color: var(--wtp-red);
}
.wtp-error.show { display: block; }

/* Reset btn */
.wtp-reset-btn {
  background: transparent;
  border: 2px solid var(--wtp-border);
  border-radius: 8px;
  font-family: var(--wtp-display);
  font-weight: 700;
  font-size: .85rem;
  color: var(--wtp-muted);
  padding: 8px 18px;
  cursor: pointer;
  margin-top: 14px;
  transition: border-color .18s, color .18s;
  display: none;
}
.wtp-reset-btn.show { display: inline-flex; align-items: center; gap: 6px; }
.wtp-reset-btn:hover { border-color: var(--wtp-ink); color: var(--wtp-ink); }

.wtp-privacy-note {
  font-size: .78rem;
  color: var(--wtp-muted);
  text-align: center;
  margin-top: 18px;
  font-family: var(--wtp-mono);
}
.wtp-privacy-note span { color: var(--wtp-accent2); }

/* ── CONTENT BODY ──────────────────────── */
.wtp-body { padding: 52px 0 64px; }
.wtp-section { margin-bottom: 52px; }

.wtp-section-tag {
  display: inline-block;
  background: var(--wtp-tag-bg);
  color: var(--wtp-tag-txt);
  font-family: var(--wtp-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 11px;
}

.wtp-wrap h2 {
  font-family: var(--wtp-display) !important;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.03em !important;
  line-height: 1.2 !important;
  margin-bottom: 13px !important;
  color: var(--wtp-ink) !important;
  border: none !important;
  padding: 0 !important;
}
.wtp-wrap h3 {
  font-family: var(--wtp-display) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -.02em !important;
  margin-bottom: 6px !important;
  color: var(--wtp-ink) !important;
  border: none !important;
  padding: 0 !important;
}
.wtp-wrap p { margin-bottom: 13px; color: #374151; }
.wtp-wrap p:last-child { margin-bottom: 0; }

/* ── FEATURE IMAGE ─────────────────────── */
.wtp-feature-img { margin: 18px 0 22px; border-radius: var(--wtp-radius); overflow: hidden; line-height: 0; }
.wtp-feature-img img { width: 100%; height: auto; border-radius: var(--wtp-radius); display: block; }

/* ── CARD GRID ─────────────────────────── */
.wtp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.wtp-info-card {
  background: var(--wtp-card);
  border: 2px solid var(--wtp-border);
  border-radius: var(--wtp-radius);
  padding: 20px 18px;
  transition: border-color .2s, transform .2s;
}
.wtp-info-card:hover { border-color: var(--wtp-accent); transform: translateY(-2px); }
.wtp-card-icon { font-size: 1.5rem; margin-bottom: 9px; }
.wtp-info-card p { font-size: .88rem; color: var(--wtp-muted); margin: 0; }

/* ── STEPS ─────────────────────────────── */
.wtp-steps { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.wtp-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--wtp-card); border: 2px solid var(--wtp-border);
  border-radius: var(--wtp-radius); padding: 18px;
}
.wtp-step-num {
  flex-shrink: 0; width: 34px; height: 34px;
  background: var(--wtp-ink); color: #fff;
  font-family: var(--wtp-display); font-weight: 800; font-size: .88rem;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.wtp-step p { margin: 0; font-size: .91rem; }

/* ── WHO GRID ──────────────────────────── */
.wtp-who-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px; margin-top: 22px;
}
.wtp-who-item {
  display: flex; align-items: center; gap: 11px;
  background: var(--wtp-card); border: 2px solid var(--wtp-border);
  border-radius: var(--wtp-radius); padding: 13px 15px;
  font-size: .9rem; font-weight: 500;
}
.wtp-who-item span:first-child { font-size: 1.25rem; }

/* ── TRUST BANNER ──────────────────────── */
.wtp-trust { background: var(--wtp-ink); color: #fff; border-radius: 16px; padding: 32px 28px; }
.wtp-trust h2 { color: #fff !important; margin-bottom: 8px !important; }
.wtp-trust .wtp-section-tag { background: rgba(255,255,255,.1); color: rgba(255,255,255,.8); }
.wtp-trust p { color: rgba(255,255,255,.7); }
.wtp-trust-pills { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.wtp-pill {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-family: var(--wtp-mono); font-size: .73rem;
  padding: 5px 13px; border-radius: 100px; display: inline-flex; align-items: center; gap: 5px;
}

/* ── USE CASES ─────────────────────────── */
.wtp-use-cases {
  list-style: none !important; margin: 18px 0 0 !important; padding: 0 !important;
  display: flex; flex-direction: column; gap: 9px;
}
.wtp-use-cases li {
  padding: 13px 17px; background: var(--wtp-card);
  border-left: 4px solid var(--wtp-accent);
  border-radius: 0 var(--wtp-radius) var(--wtp-radius) 0;
  font-size: .91rem; margin: 0 !important;
}
.wtp-use-cases li::before { display: none !important; }

/* ── FAQ ───────────────────────────────── */
.wtp-faq-list { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.wtp-wrap details {
  background: var(--wtp-card); border: 2px solid var(--wtp-border);
  border-radius: var(--wtp-radius); overflow: hidden; transition: border-color .2s;
}
.wtp-wrap details[open] { border-color: var(--wtp-accent); }
.wtp-wrap summary {
  padding: 17px 20px; cursor: pointer;
  font-family: var(--wtp-display); font-weight: 700; font-size: .95rem;
  list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; color: var(--wtp-ink);
}
.wtp-wrap summary::-webkit-details-marker { display: none; }
.wtp-wrap summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; color: var(--wtp-accent); flex-shrink: 0; }
.wtp-wrap details[open] summary::after { content: '−'; }
.wtp-faq-ans { padding: 0 20px 17px; font-size: .91rem; color: #374151; line-height: 1.7; }

/* ── MORE TOOLS ────────────────────────── */
.wtp-more-tools-section > p { color: var(--wtp-muted); margin-bottom: 28px; }
.wtp-tools-group { margin-bottom: 28px; }
.wtp-tools-group-label {
  font-family: var(--wtp-display); font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--wtp-muted);
  margin-bottom: 12px; padding-bottom: 8px; border-bottom: 2px solid var(--wtp-border);
}
.wtp-tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.wtp-tool-card {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  background: var(--wtp-card); border: 2px solid var(--wtp-border);
  border-radius: var(--wtp-radius); text-decoration: none !important;
  color: var(--wtp-ink) !important; font-size: .875rem; font-weight: 500;
  transition: border-color .18s, transform .18s, background .18s; line-height: 1.3;
}
.wtp-tool-card:hover { border-color: var(--wtp-accent); background: var(--wtp-tag-bg); transform: translateY(-2px); }
.wtp-tool-icon { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }

/* ── ANIMATIONS ────────────────────────── */
@keyframes wtpFadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
