/* Oh My PDF — Design System
   Linear/Vercel aesthetic. Dark mode default.
   $9 once is the headline.
*/
:root {
  --bg: #0a0a0b; --bg-elevated: #131316; --bg-hover: #1a1a1f;
  --border: #232329; --border-hover: #2e2e36;
  --text: #ededf0; --text-secondary: #8b8b96; --text-muted: #5c5c66;
  --accent: #6366f1; --accent-hover: #7c7ff5; --accent-subtle: rgba(99,102,241,0.12);
  --success: #10b981; --warning: #f59e0b; --error: #ef4444;
  --radius: 10px; --radius-sm: 6px; --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
  --max-width: 1080px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'SF Mono', 'Fira Code', monospace;
}
[data-theme="light"] {
  --bg: #fff; --bg-elevated: #f7f7f8; --bg-hover: #eeeef1;
  --border: #e4e4e7; --border-hover: #d4d4d8;
  --text: #18181b; --text-secondary: #6b6b76; --text-muted: #a1a1aa;
  --accent-subtle: rgba(99,102,241,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* NAV */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10,10,11,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); padding: 14px 0; }
[data-theme="light"] .nav { background: rgba(255,255,255,0.8); }
.nav-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-secondary); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: white !important; padding: 8px 18px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; transition: background 0.15s; }
.nav-cta:hover { background: var(--accent-hover); }

/* HERO */
.hero { text-align: center; padding: 80px 24px 60px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--accent-subtle); border: 1px solid var(--border); padding: 6px 16px; border-radius: 100px; font-size: 13px; color: var(--text-secondary); margin-bottom: 24px; }
.hero-badge::before { content: '🔒'; }
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -2px; line-height: 1.1; max-width: 720px; margin: 0 auto 24px; }
.hero h1 .hl { color: var(--accent); }
.hero-sub { font-size: 20px; color: var(--text-secondary); max-width: 580px; margin: 0 auto 40px; }
.hero-price-compare { display: flex; max-width: 500px; margin: 0 auto 48px; border: 1px solid var(--border); border-radius: var(--radius); overflow: visible; }
.hero-price-box { flex: 1; padding: 24px 16px; text-align: center; }
.hero-price-box:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.hero-price-box.ours { background: var(--accent-subtle); border: 2px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; position: relative; }
.hero-price-box .price { font-size: 36px; font-weight: 800; }
.hero-price-box .price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.hero-price-box .label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.hero-price-box.ours::after { content: 'SAVE $171/yr'; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); background: var(--success); color: white; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px; white-space: nowrap; }
.hero-cta { display: flex; gap: 16px; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius-sm); font-weight: 600; font-size: 16px; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-hover); }

/* TOOL GRID */
.tools-grid { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-decoration: none; color: var(--text); transition: all 0.15s; display: flex; flex-direction: column; gap: 12px; }
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tool-card .icon { font-size: 32px; }
.tool-card .title { font-size: 18px; font-weight: 600; }
.tool-card .desc { font-size: 14px; color: var(--text-secondary); }

/* FEATURES */
.features { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 80px; }
.features h2 { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 48px; letter-spacing: -1px; }
.feature-row { display: flex; gap: 48px; align-items: center; margin-bottom: 48px; }
.feature-row:nth-child(even) { flex-direction: row-reverse; }
.feature-text { flex: 1; }
.feature-text h3 { font-size: 22px; font-weight: 600; margin-bottom: 12px; }
.feature-text p { font-size: 16px; color: var(--text-secondary); }
.feature-visual { flex: 1; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; text-align: center; font-size: 14px; color: var(--text-muted); }

/* FAQ */
.faq { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.faq h2 { font-size: 32px; font-weight: 700; text-align: center; margin-bottom: 48px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item summary { font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.faq-item summary::after { content: '+'; color: var(--text-muted); font-size: 20px; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 12px; color: var(--text-secondary); font-size: 15px; }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 40px 24px; text-align: center; color: var(--text-muted); font-size: 14px; }
.footer a { color: var(--text-secondary); }

/* TOOL PAGE */
.tool-page { max-width: var(--max-width); margin: 0 auto; padding: 40px 24px 80px; }
.tool-header { text-align: center; margin-bottom: 40px; }
.tool-header h1 { font-size: 36px; font-weight: 800; letter-spacing: -1px; margin-bottom: 12px; }
.tool-header p { color: var(--text-secondary); font-size: 17px; }
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 60px 40px; text-align: center; cursor: pointer; transition: all 0.15s; background: var(--bg-elevated); }
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-subtle); }
.dropzone .dz-icon { font-size: 48px; margin-bottom: 16px; }
.dropzone .dz-text { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.dropzone .dz-sub { font-size: 14px; color: var(--text-muted); }
.file-list { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.file-item { display: flex; align-items: center; gap: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.file-item .file-name { flex: 1; font-size: 14px; }
.file-item .file-size { font-size: 13px; color: var(--text-muted); }
.file-item .file-remove { color: var(--error); cursor: pointer; font-size: 18px; background: none; border: none; }
.tool-actions { margin-top: 32px; display: flex; gap: 16px; justify-content: center; }
.tool-options { margin-top: 24px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.tool-options label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.tool-options select, .tool-options input { width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 14px; font-family: var(--font); }
.tool-options .option-row { margin-bottom: 16px; }
.tool-options .option-row:last-child { margin-bottom: 0; }

/* PROGRESS + RESULT */
.progress-bar { width: 100%; height: 6px; background: var(--bg-elevated); border-radius: 100px; overflow: hidden; margin-top: 24px; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 100px; transition: width 0.3s; width: 0; }
.progress-text { text-align: center; margin-top: 12px; font-size: 14px; color: var(--text-secondary); }
.result-area { margin-top: 32px; text-align: center; }
.result-area .result-icon { font-size: 48px; margin-bottom: 16px; }
.result-area .result-text { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.result-area .result-sub { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }

/* FREE TIER */
.free-banner { background: var(--accent-subtle); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; margin-top: 24px; font-size: 14px; }
.free-banner .free-count { color: var(--text-secondary); }
.free-banner .free-cta { color: var(--accent); font-weight: 600; }

/* PRICING */
.pricing-page { max-width: 640px; margin: 0 auto; padding: 60px 24px 80px; text-align: center; }
.pricing-page h1 { font-size: 40px; font-weight: 800; letter-spacing: -1px; margin-bottom: 16px; }
.pricing-page .sub { font-size: 18px; color: var(--text-secondary); margin-bottom: 48px; }
.pricing-card { background: var(--bg-elevated); border: 2px solid var(--accent); border-radius: var(--radius-lg); padding: 48px 40px; box-shadow: var(--shadow-lg); }
.pricing-card .price-big { font-size: 64px; font-weight: 800; letter-spacing: -2px; }
.pricing-card .price-big small { font-size: 20px; font-weight: 500; color: var(--text-muted); }
.pricing-card .price-label { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; }
.pricing-card ul { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-card ul li { padding: 10px 0; font-size: 15px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.pricing-card ul li::before { content: '✓'; color: var(--success); font-weight: 700; }
.pricing-card ul li:last-child { border-bottom: none; }
.compare-table { width: 100%; margin-top: 48px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare-table th { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.compare-table td { font-size: 16px; }
.compare-table .ours { color: var(--accent); font-weight: 700; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .tools-grid { grid-template-columns: 1fr; }
  .feature-row { flex-direction: column !important; gap: 24px; }
  .hero-price-compare { flex-direction: column; margin-bottom: 56px; }
  .hero-price-box:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .hero-price-box.ours { border-radius: 0 0 var(--radius) var(--radius); }
  .nav-links { gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .pricing-card .price-big { font-size: 48px; }
}
