/* Resume PDF Builder — style.css */
:root {
  --bg: #ffffff;
  --ink: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --surface: #f9fafb;
  --border: #e5e7eb;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 8px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --ink: #e2e8f0;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --surface: #1e293b;
    --border: #334155;
  }
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
a { color: var(--accent); }

/* --- Hero --- */
.hero { text-align: center; padding: 4rem 1rem 2rem; }
.hero h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; line-height: 1.2; }
.hero .privacy-note { font-size: 0.875rem; color: var(--muted); margin-top: 0.75rem; }
.cta-buttons { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; cursor: pointer; border: none; font-size: 1rem; transition: background 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }

/* --- Sections --- */
section { padding: 2rem 0; border-top: 1px solid var(--border); }
section h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.demo-preview { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; }
.features ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0.75rem; }
.features li::before { content: '✓ '; color: var(--success); font-weight: bold; }

/* --- Pricing --- */
.pricing-card { text-align: center; background: var(--surface); border-radius: var(--radius); padding: 2rem; }
.price { font-size: 3rem; font-weight: 800; color: var(--accent); margin: 1rem 0; }
.price-sub { color: var(--muted); margin-bottom: 1rem; }
.price-anchor { font-size: 0.875rem; color: var(--muted); margin-bottom: 1rem; }

/* --- FAQ --- */
.faq-item { margin-bottom: 1rem; padding: 0.75rem; background: var(--surface); border-radius: var(--radius); }

/* --- Footer --- */
footer { text-align: center; padding: 2rem 0; color: var(--muted); font-size: 0.875rem; border-top: 1px solid var(--border); margin-top: 2rem; }

/* ===================== */
/* APP.HTML — Editor     */
/* ===================== */
.app-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 100vh; }
@media (max-width: 768px) { .app-layout { grid-template-columns: 1fr; } }

.editor-pane { padding: 1.5rem; border-right: 1px solid var(--border); overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }
.preview-pane { background: var(--surface); padding: 1.5rem; overflow-y: auto; max-height: 100vh; position: sticky; top: 0; }

.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 1.25rem 0 0.5rem; }
.field { margin-bottom: 0.75rem; }
.field label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.25rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.5rem 0.625rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--ink); font-size: 0.875rem; }
.field textarea { resize: vertical; min-height: 60px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
button.add-row { background: none; border: 1px dashed var(--border); color: var(--muted); padding: 0.5rem; border-radius: var(--radius); cursor: pointer; width: 100%; font-size: 0.875rem; margin-top: 0.5rem; }
button.add-row:hover { border-color: var(--accent); color: var(--accent); }
.bullet-list { list-style: none; margin-top: 0.25rem; }
.bullet-list li { display: flex; gap: 0.5rem; margin-bottom: 0.25rem; }
.bullet-list input { flex: 1; border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 0.25rem 0; font-size: 0.875rem; }
.tag-input-wrap { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tag { background: var(--accent); color: #fff; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.8rem; display: flex; align-items: center; gap: 0.25rem; }
.tag button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; font-size: 0.9rem; line-height: 1; }
.tag-input { border: none; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; padding: 0.25rem 0; font-size: 0.875rem; width: 120px; }

/* Template selector */
.template-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem; margin: 1rem 0; }
.template-btn { padding: 0.5rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--bg); cursor: pointer; text-align: center; font-size: 0.875rem; transition: border-color 0.15s; }
.template-btn.selected { border-color: var(--accent); }
.template-btn.locked { opacity: 0.6; }
.template-btn .badge { display: block; font-size: 0.7rem; background: var(--accent); color: #fff; border-radius: 4px; padding: 0.1rem 0.3rem; margin-top: 0.25rem; }

/* Actions bar */
.actions-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1rem 0; padding: 0.75rem; background: var(--surface); border-radius: var(--radius); }
.actions-bar button { padding: 0.5rem 1rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); cursor: pointer; font-size: 0.875rem; }
.actions-bar button:hover { background: var(--border); }
.usage-counter { font-size: 0.875rem; color: var(--muted); margin-left: auto; display: flex; align-items: center; }

/* Preview iframe */
.preview-frame { width: 100%; height: 700px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }

/* Watermark */
.resume-preview-wrap { position: relative; }
.watermark { position: absolute; bottom: 8px; right: 12px; font-size: 0.65rem; color: rgba(0,0,0,0.25); pointer-events: none; }

/* Upsell modal */
#upsell-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 100; align-items: center; justify-content: center; }
#upsell-modal.active { display: flex; }
.modal-box { background: var(--bg); border-radius: var(--radius); padding: 2rem; max-width: 400px; text-align: center; }
.modal-box h2 { margin-bottom: 0.75rem; }
.modal-box p { color: var(--muted); margin-bottom: 1.5rem; }
.modal-box .btn { width: 100%; margin-bottom: 0.5rem; }

/* Comparison table */
.comparison-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.comparison-table th, .comparison-table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
.comparison-table th { background: var(--surface); font-weight: 600; }
.comparison-table tr:nth-child(even) { background: var(--surface); }
.tagline { font-size: 1.125rem; color: var(--muted); margin-bottom: 1rem; }
