/* ════════════════════════════════════════════════════════════════════════════
   DocToPDF — style.css
   3-Column layout: Left Sidebar Ad | Main Content | Right Sidebar Ad
   ════════════════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
:root {
  --clr-bg: #000000;
  --clr-surface: #0a0a0a;
  --clr-surface2: #121212;
  --clr-border: rgba(255, 255, 255, .07);
  --clr-border2: rgba(255, 255, 255, .12);

  --clr-primary: #7c3aed;
  --clr-primary-lt: #9d5ff3;
  --clr-accent: #0ea5e9;
  --clr-accent-lt: #38bdf8;
  --clr-success: #10b981;
  --clr-error: #ef4444;
  --clr-warn: #f59e0b;

  --clr-text: #e8eaf0;
  --clr-text-muted: #8892a4;
  --clr-text-dim: #545d72;

  --grad-brand: var(--clr-primary);
  --grad-shine: rgba(124, 58, 237, 0.1);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, .45), 0 1px 0 rgba(255, 255, 255, .04) inset;
  --shadow-glow: 0 0 40px rgba(124, 58, 237, .25);
  --shadow-btn: 0 4px 20px rgba(124, 58, 237, .45);

  --transition: .2s cubic-bezier(.4, 0, .2, 1);
}

/* ── Reset & Base ────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ══════════════════════════════════════════════════════════════════════════════
   TYPEWRITER ANIMATION
   ══════════════════════════════════════════════════════════════════════════════ */

.typewriter {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

/* The blinking cursor after the text */
.typewriter::after {
  content: '|';
  display: inline-block;
  animation: tw-blink .7s step-end infinite;
  color: var(--clr-accent);
  font-weight: 300;
  margin-left: 1px;
}

@keyframes tw-blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* Cursor hides briefly when erasing completes (smooth feel) */
.typewriter.tw-paused::after {
  opacity: 0;
}

/* ── Top Banner Ad ───────────────────────────────────────────────────────────── */
.ad-top-banner {
  width: 100%;
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 16px;
}

/* ── Page Shell — 3 columns ─────────────────────────────────────────────────── */
.page-shell {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 0;
  min-height: calc(100vh - 60px);
  max-width: 1440px;
  margin: 0 auto;
}

@media (max-width: 1200px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }
}

/* ── Sidebars ────────────────────────────────────────────────────────────────── */
.sidebar {
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ad-sidebar-sticky {
  position: sticky;
  top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* Show sidebar skyscrapers at full height */
.sidebar .ad-skyscraper {
  display: flex;
}

/* ── Main Content ────────────────────────────────────────────────────────────── */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 48px;
}

/* ── Header ──────────────────────────────────────────────────────────────────── */
.app-header {
  width: 100%;
  max-width: 960px;
  padding: 36px 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: -.3px;
}

.app-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.8px;
  color: var(--clr-text);
  /* Reserve space so layout doesn't jump during typewriter */
  min-height: 1.3em;
}

.app-title em {
  font-style: normal;
  color: var(--clr-primary);
}

/* Ensure the inline-block child also gets the color */
.app-title em .typewriter {
  color: var(--clr-primary);
}

/* Make the typewriter cursor inside em match color */
.app-title em .typewriter::after {
  color: var(--clr-primary);
}

.app-subtitle {
  font-size: 15px;
  color: var(--clr-text-muted);
  max-width: 620px;
  line-height: 1.7;
}

/* ── Engine Badge ────────────────────────────────────────────────────────────── */
.engine-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--clr-border2);
  background: var(--clr-surface2);
  transition: var(--transition);
}

.engine-badge.libre {
  border-color: rgba(16, 185, 129, .35);
  color: #34d399;
}

.engine-badge.libre .engine-dot {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.engine-badge.fallback {
  border-color: rgba(245, 158, 11, .35);
  color: #fbbf24;
}

.engine-badge.fallback .engine-dot {
  background: #f59e0b;
}

.engine-badge.error {
  border-color: rgba(239, 68, 68, .35);
  color: #f87171;
}

.engine-badge.error .engine-dot {
  background: #ef4444;
}

.engine-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--clr-text-dim);
  flex-shrink: 0;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

/* ── In-feed Ad (between header and main card) ───────────────────────────────── */
.ad-infeed-wrap {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 20px;
}

/* ── Main Card ───────────────────────────────────────────────────────────────── */
.main-card {
  width: 100%;
  max-width: 960px;
  /* wider than original 780px */
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  /* more padding for the bigger layout */
  box-shadow: var(--shadow-card), var(--shadow-glow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.main-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, .08) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Drop Zone ───────────────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed var(--clr-border2);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  /* much taller & wider padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  background: var(--clr-surface2);
  position: relative;
  text-align: center;
  min-height: 280px;
  /* enforce minimum height */
  justify-content: center;
}

.drop-zone:hover,
.drop-zone:focus-within {
  border-color: var(--clr-text-dim);
  background: rgba(255, 255, 255, .03);
  transform: translateY(-1px);
  outline: none;
}

.drop-zone.drag-over {
  border-color: var(--clr-text-muted);
  background: rgba(255, 255, 255, .05);
  transform: scale(1.01);
}

.drop-icon-wrap {
  position: relative;
  color: var(--clr-text-dim);
}

.drop-icon {
  width: 88px;
  height: 88px;
}

.drop-title {
  font-size: 20px;
  /* larger title */
  font-weight: 700;
  color: var(--clr-text);
  margin-top: 6px;
  min-height: 1.4em;
  /* prevent layout jump during typewriter */
}

/* Typewriter inside drop-title — plain white cursor */
.drop-title .typewriter::after {
  color: var(--clr-accent);
}

.drop-subtitle {
  font-size: 14px;
  color: var(--clr-text-muted);
  margin-bottom: 4px;
}

/* ── File Type Badges ─────────────────────────────────────────────────────────── */
.file-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.file-badge {
  padding: 4px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.file-badge.doc {
  background: rgba(124, 58, 237, .18);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, .3);
}

.file-badge.docx {
  background: rgba(14, 165, 233, .18);
  color: #7dd3fc;
  border: 1px solid rgba(14, 165, 233, .3);
}

.file-badge.txt {
  background: rgba(16, 185, 129, .18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, .3);
}

/* ── Browse Button ───────────────────────────────────────────────────────────── */
.browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--clr-text);
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  margin-top: 4px;
}

.browse-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-btn);
  transform: translateY(-1px);
}

/* ── Selected File ───────────────────────────────────────────────────────────── */
.selected-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.selected-file-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--clr-text-dim);
}

.selected-file-info {
  flex: 1;
  min-width: 0;
}

.selected-file-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-file-size {
  font-size: 12px;
  color: var(--clr-text-muted);
  margin-top: 2px;
}

.remove-file-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--clr-border2);
  background: transparent;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.remove-file-btn:hover {
  background: rgba(239, 68, 68, .15);
  border-color: rgba(239, 68, 68, .4);
  color: #f87171;
}

/* ── Convert Button ──────────────────────────────────────────────────────────── */
.convert-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 32px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: var(--clr-text);
  background: var(--clr-surface2);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: none;
  letter-spacing: .2px;
}

.convert-btn::after {
  display: none;
}

.convert-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--clr-text-dim);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.convert-btn:active:not(:disabled) {
  transform: translateY(0);
}

.convert-btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.convert-btn.loading .btn-icon {
  display: none;
}

.convert-btn:not(.loading) .btn-spinner {
  display: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

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

/* ── Progress ────────────────────────────────────────────────────────────────── */
.progress-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--clr-text-muted);
}

.progress-track {
  height: 7px;
  background: var(--clr-surface2);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--clr-text);
  border-radius: 100px;
  transition: width .3s ease;
}

/* ── Status / Error ──────────────────────────────────────────────────────────── */
.status-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 500;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #fca5a5;
  line-height: 1.5;
}

.status-message svg {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Result Panel ────────────────────────────────────────────────────────────── */
.result-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 4px;
}

.result-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px;
  background: rgba(16, 185, 129, .08);
  border: 1px solid rgba(16, 185, 129, .2);
  border-radius: var(--radius-md);
}

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 185, 129, .15);
  border: 1.5px solid rgba(16, 185, 129, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #34d399;
  flex-shrink: 0;
}

.result-title {
  font-size: 16px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 3px;
  min-height: 1.4em;
}

/* Cursor in result title uses success green */
.result-title .typewriter::after {
  color: #34d399;
}

.result-meta {
  font-size: 12.5px;
  color: var(--clr-text-muted);
}

/* ── Action Buttons ──────────────────────────────────────────────────────────── */
.result-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  flex: none;
  justify-content: center;
  white-space: nowrap;
}

.action-btn svg {
  width: 13px;
  height: 13px;
}

.action-btn.download {
  background: var(--clr-surface2);
  color: var(--clr-text);
  border: 1px solid var(--clr-border2);
  box-shadow: none;
}

.action-btn.download:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--clr-text-dim);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

.action-btn.secondary {
  background: transparent;
  color: var(--clr-text-muted);
  border: 1px solid var(--clr-border2);
}

.action-btn.secondary:hover {
  border-color: var(--clr-text-dim);
  color: var(--clr-text);
  background: rgba(255, 255, 255, 0.03);
}

/* ── Ad — Ribbon (near download) ─────────────────────────────────────────────── */
.ad-ribbon-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ── PDF Preview ─────────────────────────────────────────────────────────────── */
.preview-container {
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: slideDown .3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--clr-surface2);
  border-bottom: 1px solid var(--clr-border);
}

.preview-toolbar svg {
  color: var(--clr-text-muted);
  flex-shrink: 0;
}

.preview-toolbar-title {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.close-preview-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--clr-border2);
  background: transparent;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.close-preview-btn:hover {
  background: rgba(239, 68, 68, .15);
  border-color: rgba(239, 68, 68, .4);
  color: #f87171;
}

.pdf-frame {
  width: 100%;
  height: 75vh;
  border: none;
  background: #fff;
}

/* ── Below Preview Ad ────────────────────────────────────────────────────────── */
.ad-below-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

/* ── Mid-Page Ad ─────────────────────────────────────────────────────────────── */
.ad-midpage-wrap {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  margin-bottom: 4px;
}

/* ── Bottom Rectangle Ad ─────────────────────────────────────────────────────── */
.ad-bottom-rect-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* ── Feature Pills ───────────────────────────────────────────────────────────── */
.feature-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
  max-width: 960px;
  width: 100%;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--clr-text-muted);
  font-weight: 500;
}

.feature-pill svg {
  color: var(--clr-primary-lt);
  flex-shrink: 0;
}

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.app-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 12px;
  color: var(--clr-text-dim);
  padding-bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-nav {
  display: flex;
  gap: 24px;
  margin-top: 8px;
}

.footer-nav a {
  color: var(--clr-text-dim);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: var(--clr-primary-lt);
  text-decoration: underline;
}

.footer-heading {
  font-size: 15px;
  font-weight: 600;
  color: var(--clr-text-muted);
  min-height: 1.4em;
}

.footer-heading .typewriter::after {
  color: var(--clr-primary-lt);
}

/* ── Ad Placeholders (generic) ───────────────────────────────────────────────── */
.ad-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--clr-text-dim);
}

.ad-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--clr-surface2);
  border: 1px dashed rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  color: var(--clr-text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.ad-leaderboard {
  width: min(728px, 100%);
  height: 90px;
}

.ad-infeed {
  width: min(728px, 100%);
  height: 90px;
}

.ad-skyscraper {
  width: 156px;
  height: 600px;
}

.ad-rectangle {
  width: 300px;
  height: 250px;
}

.ad-ribbon {
  width: min(728px, 100%);
  height: 50px;
}

/* ── Utility: hidden ─────────────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

/* ── Scrollbar ───────────────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--clr-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--clr-surface2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--clr-primary);
}

/* ── Responsive tweaks ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-card {
    padding: 20px 16px;
  }

  .drop-zone {
    padding: 36px 20px;
    min-height: 220px;
  }

  .drop-icon {
    width: 64px;
    height: 64px;
  }

  .drop-title {
    font-size: 17px;
  }

  .ad-skyscraper {
    height: 120px;
  }
}

/* ── SEO Section ─────────────────────────────────────────────────────────────── */
.seo-section {
  width: 100%;
  max-width: 960px;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ── Legal Page Container ────────────────────────────────────────────── */
.legal-container {
  max-width: 800px;
  margin: 60px auto;
  padding: 40px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  line-height: 1.8;
  color: var(--clr-text-muted);
}

.legal-container h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
}

.legal-container h2 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 32px 0 16px;
}

.legal-container p {
  margin-bottom: 20px;
}

.legal-container ul {
  margin-bottom: 24px;
  padding-left: 20px;
}

.legal-container li {
  margin-bottom: 12px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--clr-primary);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 32px;
  transition: var(--transition);
}

.back-home:hover {
  filter: brightness(1.2);
}

.how-to-card {
  background: var(--clr-surface);
  border: 1px solid rgba(168, 85, 247, 0.2); /* Subtle purple border */
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.how-to-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--clr-primary), transparent);
}

.how-to-card:hover {
  border-color: rgba(168, 85, 247, 0.4);
  background: var(--clr-surface2);
  transform: translateY(-2px);
}

.seo-title {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: -0.02em;
}

.seo-steps {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 24px; /* Increased gap */
  max-width: 650px;
  margin: 0 auto;
}

.seo-steps li {
  position: relative;
  padding-left: 52px;
  font-size: 15.5px;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.seo-steps li strong {
  color: var(--clr-primary);
  font-weight: 600;
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.seo-steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 4px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #7e22ce 100%);
  color: #fff;
  border-radius: 10px; /* Squircle style */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.trust-content {
  margin-top: 48px;
  padding: 40px 24px 0;
  border-top: 1px solid var(--clr-border);
  width: 100%;
  max-width: 800px;
  margin: 48px auto 0;
  text-align: center;
}

.trust-content p {
  font-size: 15px;
  color: var(--clr-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ── Content Sections ─────────────────────────────────────────────────────────── */
.content-section {
  width: 100%;
  max-width: 960px;
  margin: 0 0 8px;
  padding: 40px 0 0;
}

.section-heading {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 15px;
  color: var(--clr-text-muted);
  line-height: 1.75;
  max-width: 700px;
  margin-bottom: 28px;
}

/* ── Content Cards (Why PDF grid) ─────────────────────────────────────────────── */
.content-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.content-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: 18px;
  padding: 20px;
  transition: border-color 0.25s, transform 0.25s;
}

.content-card:hover {
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.content-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(109,40,217,.25), rgba(14,165,233,.18));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.content-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: #a78bfa;
}

.content-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.content-card p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

/* ── Tips List ────────────────────────────────────────────────────────────────── */
.tips-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--clr-surface);
}

.tip-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 24px;
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.2s;
}

.tip-item:last-child { border-bottom: none; }
.tip-item:hover { background: rgba(255,255,255,.02); }

.tip-number {
  font-size: 28px;
  font-weight: 800;
  color: rgba(124,58,237,.3);
  min-width: 44px;
  line-height: 1;
  margin-top: 4px;
  font-feature-settings: 'tnum';
  flex-shrink: 0;
}

.tip-body h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.tip-body p {
  font-size: 0.875rem;
  color: var(--clr-text-muted);
  line-height: 1.7;
}

.tip-body strong { color: rgba(255,255,255,.8); }

/* ── FAQ Accordion ────────────────────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: 18px;
  overflow: hidden;
  background: var(--clr-surface);
}

.faq-item {
  border-bottom: 1px solid var(--clr-border);
}

.faq-item:last-child { border-bottom: none; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--clr-text);
  list-style: none;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  gap: 12px;
}

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

.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--clr-text-muted);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s;
}

details[open] .faq-q::after {
  transform: rotate(45deg);
  color: #a78bfa;
}

.faq-item:hover > .faq-q {
  background: rgba(255,255,255,.025);
  color: #a78bfa;
}

details[open] > .faq-q {
  color: #a78bfa;
  background: rgba(124,58,237,.06);
}

.faq-a {
  padding: 4px 24px 20px;
  animation: fadeIn 0.2s ease;
}

.faq-a p {
  font-size: 0.9rem;
  color: var(--clr-text-muted);
  line-height: 1.75;
  margin-bottom: 10px;
}

.faq-a p:last-child { margin-bottom: 0; }

.faq-a ul {
  padding-left: 1.25rem;
  margin: 8px 0 10px;
  color: var(--clr-text-muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.faq-a li { margin-bottom: 6px; }
.faq-a strong { color: rgba(255,255,255,.8); }
.faq-a a { color: #a78bfa; }
.faq-a a:hover { color: #c4b5fd; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Legal Container (used by Privacy/Terms pages with old style.css) ─────────── */
.legal-container {
  max-width: 820px;
  margin: 60px auto;
  padding: 40px;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border2);
  border-radius: 24px;
  color: var(--clr-text);
}

.legal-container h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.legal-container h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}

.legal-container h2:first-of-type { border-top: none; padding-top: 0; }

.legal-container p, .legal-container li {
  font-size: 0.925rem;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-container ul { padding-left: 1.5rem; }

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #a78bfa;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 2rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.back-home:hover { opacity: 1; }

