@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f7f5f0; --surface: #fff; --dark: #1a1a1f;
  --text: #1a1a1f; --text2: #4a4a52; --muted: #8a8a92; --faint: #e8e5de;
  --accent: #3d3bff; --accent2: #5855ff; --accent3: #8b5cf6;
  --green: #22c55e; --cyan: #06b6d4; --orange: #f59e0b; --rose: #f43f5e;
  --gradient: linear-gradient(135deg, #3d3bff, #6c63ff, #8b5cf6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text); line-height: 1.6; background: #fff; }
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; font-weight: 700; line-height: 1.2; }

/* Page layout */
.doc-page { max-width: 800px; margin: 0 auto; padding: 48px; }

/* Logo header */
.doc-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--faint); margin-bottom: 32px; }
.doc-logo svg { height: 40px; width: auto; }
.doc-date { font-family: 'JetBrains Mono', monospace; font-size: .7rem; color: var(--muted); letter-spacing: 1px; }

/* Service badge */
.doc-badge { display: inline-block; font-family: 'Sora', sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 12px; }
.badge-indigo { background: rgba(61,59,255,.06); color: var(--accent); }
.badge-violet { background: rgba(139,92,246,.06); color: var(--accent3); }
.badge-teal { background: rgba(6,182,212,.06); color: var(--cyan); }
.badge-orange { background: rgba(201,65,12,.06); color: #c2410c; }
.badge-blue { background: rgba(3,105,161,.06); color: #0369a1; }
.badge-pink { background: rgba(190,24,93,.06); color: #be185d; }
.badge-red { background: rgba(255,59,92,.06); color: var(--rose); }

/* Title */
.doc-title { font-size: 2rem; letter-spacing: -1px; margin-bottom: 6px; }
.doc-subtitle { font-size: .9rem; color: var(--text2); margin-bottom: 24px; }

/* Sections */
.doc-section { margin-bottom: 28px; }
.doc-section h2 { font-size: 1.1rem; letter-spacing: -.3px; margin-bottom: 10px; padding-bottom: 6px; border-bottom: 2px solid var(--faint); }
.doc-section h3 { font-size: .9rem; margin-bottom: 6px; }
.doc-section p { font-size: .85rem; color: var(--text2); line-height: 1.7; margin-bottom: 10px; }
.doc-section ul, .doc-section ol { font-size: .85rem; color: var(--text2); line-height: 1.8; padding-left: 20px; margin-bottom: 10px; }

/* Pricing table */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
.price-card { border: 1px solid var(--faint); border-radius: 14px; padding: 20px; text-align: center; }
.price-card.featured { border: 2px solid var(--accent); background: rgba(61,59,255,.02); }
.price-tier { font-family: 'Sora', sans-serif; font-size: .7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.price-amount { font-family: 'Sora', sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--text); letter-spacing: -1px; margin-bottom: 4px; }
.price-period { font-size: .75rem; color: var(--muted); margin-bottom: 14px; }
.price-features { list-style: none; padding: 0; text-align: left; font-size: .78rem; }
.price-features li { padding: 4px 0; color: var(--text2); display: flex; align-items: flex-start; gap: 6px; }
.price-features li::before { content: '\2713'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* Audit checklist */
.audit-category { margin-bottom: 24px; }
.audit-category h3 { font-size: .95rem; padding: 8px 14px; background: var(--dark); color: #fff; border-radius: 8px; margin-bottom: 10px; }
.audit-item { display: grid; grid-template-columns: 1fr 120px 80px; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid var(--faint); font-size: .8rem; }
.audit-item:nth-child(even) { background: rgba(247,245,240,.5); }
.audit-score { display: flex; gap: 3px; }
.audit-dot { width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid var(--faint); display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 700; color: var(--muted); }
.audit-dot.filled { background: var(--accent); border-color: var(--accent); color: #fff; }
.audit-notes { font-size: .75rem; color: var(--muted); font-style: italic; }

/* Result box */
.result-box { background: rgba(61,59,255,.04); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 14px 0; }
.result-box p { font-size: .82rem; color: var(--text); margin: 0; }

/* CTA */
.doc-cta { text-align: center; padding: 28px; background: var(--dark); border-radius: 16px; margin-top: 28px; }
.doc-cta h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.doc-cta p { color: rgba(255,255,255,.5); font-size: .82rem; margin-bottom: 14px; }
.doc-cta a { display: inline-block; padding: 10px 28px; background: var(--accent); color: #fff; font-family: 'Sora', sans-serif; font-size: .8rem; font-weight: 600; border-radius: 100px; text-decoration: none; }

/* Proposal specific */
.sig-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--faint); }
.sig-line { border-bottom: 1px solid var(--text); margin-top: 48px; margin-bottom: 6px; }
.sig-label { font-size: .7rem; color: var(--muted); }

/* Editable fields */
.editable { color: var(--accent); border-bottom: 1px dashed var(--accent); }

/* Footer */
.doc-footer { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--faint); text-align: center; font-size: .65rem; color: var(--muted); letter-spacing: 1px; }

/* Print */
@media print {
  body { background: #fff; }
  .doc-page { padding: 24px; max-width: 100%; }
  .doc-cta a { color: var(--accent); border: 1px solid var(--accent); background: none; }
  .price-card.featured { border: 2px solid var(--accent); }
}
