/* =================================================================== PDFCrate — Design System (shares tokens with the pdftools project for visual continuity across sites) =================================================================== */ :root { --accent: #4F46E5; --accent-dark: #4338CA; --accent-light: #EEF0FF; --accent-lighter: #F5F6FF; --ink-900: #0F1222; --ink-700: #3D4159; --ink-500: #6B7089; --ink-300: #A8ACC2; --surface: #FFFFFF; --surface-alt: #F8F9FC; --border: #E6E8F0; --border-strong: #D5D8E6; --success: #16A34A; --success-bg: #ECFDF3; --danger: #DC2626; --danger-bg: #FEF2F2; --warning: #D97706; --warning-bg: #FFFBEB; --radius-sm: 8px; --radius-md: 14px; --radius-lg: 20px; --shadow-sm: 0 1px 2px rgba(15, 18, 34, 0.06); --shadow-md: 0 4px 16px rgba(15, 18, 34, 0.06), 0 1px 3px rgba(15, 18, 34, 0.05); --shadow-lg: 0 12px 32px rgba(15, 18, 34, 0.10); --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } /* ============================= Dark Mode ============================= The design system already routes every surface/border/text color through these variables, so redefining them here is enough to re-theme the whole site — no per-component overrides needed except for .site-footer, which is intentionally a fixed dark band in BOTH themes (built from --ink-900/--ink-300) and would otherwise invert to a light band once those variables flip. */ [data-theme="dark"] { /* Hints the browser to render native controls (date/color pickers, scrollbars, the default checkbox/radio look) in dark style instead of assuming light. */ color-scheme: dark; --accent: #6366F1; --accent-dark: #4F46E5; --accent-light: #1E1B4B; --accent-lighter: #1E1B4B; --ink-900: #F4F4F5; --ink-700: #D4D4D8; --ink-500: #A1A1AA; --ink-300: #52525B; --surface: #18181B; --surface-alt: #09090B; --border: #27272A; --border-strong: #3F3F46; --success: #4ADE80; --success-bg: #052E16; --danger: #F87171; --danger-bg: #450A0A; --warning: #FBBF24; --warning-bg: #451A03; --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4); --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4), 0 1px 3px rgba(0, 0, 0, 0.3); --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5); } [data-theme="dark"] body { background: var(--surface-alt); color: var(--ink-900); } /* .site-footer is a fixed dark band by design (built from ink-900/ink-300 in light mode) — pin it to those same literal values in dark mode so it doesn't invert to a light band along with the rest of the page. */ [data-theme="dark"] .site-footer { background: #0F1222; color: #A8ACC2; } [data-theme="dark"] .footer-brand p, [data-theme="dark"] .footer-links a { color: #A8ACC2; } /* .site-header uses a hardcoded translucent white (rgba(255,255,255,.85)) for its frosted-glass effect in light mode — pin it to a translucent dark equivalent here, otherwise it stays a light-gray bar in dark mode. */ [data-theme="dark"] .site-header { background: rgba(24, 24, 27, 0.85); } /* Smooth, non-jarring color flip on toggle. Uses the universal selector's low specificity so components with their own `transition` (.btn, .tool-card, etc.) keep their existing hover animations untouched. */ *, *::before, *::after { transition: background-color 0.2s ease, border-color 0.2s ease, color 0.15s ease; } /* ============================= Theme Toggle Button ============================= */ .theme-toggle { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--ink-500); flex-shrink: 0; padding: 0; line-height: 1; } .theme-toggle:hover { background: var(--surface-alt); border-color: var(--border-strong); color: var(--ink-900); } * { box-sizing: border-box; } html, body { margin: 0; padding: 0; } body { font-family: var(--font); color: var(--ink-900); background: var(--surface-alt); line-height: 1.6; -webkit-font-smoothing: antialiased; } .container { max-width: 1100px; margin: 0 auto; padding: 0 24px; } a { color: inherit; text-decoration: none; } h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; } p { margin: 0; color: var(--ink-500); } ul { margin: 0; padding: 0; list-style: none; } .text-accent { color: var(--accent); } .section { padding: 88px 0; } .section-alt { background: var(--surface); } .section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; } .section-head h2 { font-size: 34px; margin-bottom: 12px; } .section-head p { font-size: 16px; } .eyebrow { display: inline-block; color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; } /* ============================= Buttons ============================= */ .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-sm); padding: 12px 22px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: all 0.15s; } .btn-sm { padding: 8px 16px; font-size: 14px; } .btn-lg { padding: 15px 28px; font-size: 16px; } .btn-primary { background: var(--accent); color: #fff; } .btn-primary:hover { background: var(--accent-dark); } .btn-ghost { background: transparent; color: var(--ink-700); border-color: var(--border-strong); } .btn-ghost:hover { background: var(--surface-alt); } .btn-outline { background: var(--surface); color: var(--accent); border-color: var(--accent); } .btn-outline:hover { background: var(--accent-lighter); } .btn-block { width: 100%; } .btn:disabled, .btn.is-disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; } /* ============================= Header ============================= */ .site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; } .header-inner { display: flex; align-items: center; gap: 32px; height: 68px; } .logo { font-size: 18px; font-weight: 700; color: var(--ink-900); display: flex; align-items: center; gap: 2px; } .logo-mark { background: var(--accent); color: #fff; border-radius: 6px; padding: 3px 6px; font-size: 13px; font-weight: 700; margin-right: 4px; } .logo-img { max-height: 65px; width: auto; display: block; object-fit: contain; } .site-nav { display: flex; gap: 28px; margin-left: 8px; } .site-nav a { font-size: 14px; font-weight: 500; color: var(--ink-500); transition: color 0.15s; } .site-nav a:hover { color: var(--ink-900); } .header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; } .nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 8px; margin-left: 8px; } .nav-toggle span { width: 20px; height: 2px; background: var(--ink-900); border-radius: 2px; } /* ============================= Footer ============================= */ .site-footer { background: var(--ink-900); color: var(--ink-300); padding-top: 56px; } .footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-bottom: 40px; } .footer-brand .logo { color: #fff; } .footer-brand p { color: var(--ink-300); margin-top: 12px; font-size: 14px; max-width: 280px; } .social-icons { display: flex; gap: 12px; margin-top: 18px; } .social-icons a { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.08); border-radius: 999px; color: #fff; transition: background 0.15s; } .social-icons a:hover { background: var(--accent); } .footer-links { grid-column: span 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; } .footer-links h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; } .footer-links a { display: block; color: var(--ink-300); font-size: 14px; margin-bottom: 10px; } .footer-links a:hover { color: #fff; } .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 24px; font-size: 13px; color: var(--ink-300); } /* Dashboard footer links reuse .footer-links but sit on the light dashboard-content background rather than the dark .site-footer band, so the colors above (white headings, --ink-300 link text) would be invisible here — override both for a light-background context. */ .dashboard-footer-links { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); } .dashboard-footer-links h4 { color: var(--ink-900); } .dashboard-footer-links a { color: var(--ink-500); } .dashboard-footer-links a:hover { color: var(--accent); } /* ============================= Hero ============================= */ .hero { padding: 88px 0 64px; text-align: center; } .hero h1 { font-size: 48px; line-height: 1.15; max-width: 760px; margin: 0 auto 20px; } .hero-sub { font-size: 18px; max-width: 560px; margin: 0 auto 32px; } .hero-ctas { display: flex; gap: 14px; justify-content: center; margin-bottom: 28px; } .trust-badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 14px; color: var(--ink-500); } .trust-badges span { display: inline-flex; align-items: center; gap: 6px; } .hero-rating { margin-top: 24px; font-size: 14px; color: var(--ink-500); } /* ============================= Tool grid ============================= */ .tool-group { margin-bottom: 8px; } .tool-group h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); margin: 32px 0 16px; } .tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; } .tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: all 0.15s; } .tool-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); } .tool-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--accent-lighter); color: var(--accent); border-radius: var(--radius-sm); margin-bottom: 12px; } .tool-card h4 { font-size: 15px; margin-bottom: 4px; } .tool-card p { font-size: 13px; } /* ============================= AI Tools (landing page) ============================= AI tool cards reuse .tool-card/.tool-icon/.tool-grid as-is (same family as the free tools) — only a PRO badge and a credit-cost hint distinguish them. */ .credit-pill { display: inline-block; background: var(--accent-lighter); color: var(--accent); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; } .tool-card--pro { position: relative; } .pro-badge { position: absolute; top: 12px; right: 12px; background: var(--accent); color: #ffffff; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; pointer-events: none; } .group-pro-badge { display: inline-block; font-size: 10px; font-weight: 700; background: var(--accent); color: #ffffff; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: middle; margin-left: 8px; position: relative; top: -1px; } .tool-credit-hint { font-size: 11px; color: var(--ink-300); margin-top: 6px; display: block; } /* ============================= How it works ============================= */ .timeline { display: flex; gap: 24px; justify-content: center; text-align: center; } .timeline-step { flex: 1; max-width: 260px; } .timeline-num { width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 16px; } .timeline-step h4 { font-size: 16px; margin-bottom: 6px; } .timeline-step p { font-size: 14px; } /* ============================= Benefits ============================= */ .benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; } .benefit-card { text-align: center; padding: 4px; } .benefit-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--accent-lighter); border-radius: var(--radius-md); font-size: 26px; margin: 0 auto 18px; } .benefit-card h3 { font-size: 17px; margin-bottom: 8px; } .benefit-card p { font-size: 14px; } /* ============================= AI showcase ============================= */ .ai-showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; } .ai-showcase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; display: flex; flex-direction: column; } .ai-showcase-card .tool-icon { width: 48px; height: 48px; margin-bottom: 18px; } .ai-showcase-card h3 { font-size: 19px; margin-bottom: 8px; } .showcase-desc { font-size: 14px; color: var(--ink-700); margin-bottom: 18px; } .showcase-for-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); margin-bottom: 10px; } .showcase-for-list { margin-bottom: 22px; flex: 1; } .showcase-for-list li { font-size: 13.5px; color: var(--ink-700); padding: 3px 0 3px 16px; position: relative; } .showcase-for-list li::before { content: '\2022'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; } .ai-showcase-card .btn { align-self: flex-start; } .showcase-note { text-align: center; font-size: 13px; color: var(--ink-500); margin-top: 32px; } .showcase-note a { color: var(--accent); font-weight: 600; } /* ============================= Tool categories (condensed) ============================= */ .category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; } .category-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 18px; } .category-card h4 { font-size: 14.5px; margin-bottom: 14px; } .category-card ul { margin-bottom: 10px; } .category-card li { margin-bottom: 9px; } .category-card li a { font-size: 13.5px; color: var(--ink-700); } .category-card li a:hover { color: var(--accent); } .category-more { font-size: 13px; font-weight: 600; color: var(--accent); } .full-toolkit-head { text-align: center; margin: 48px 0 32px; } .full-toolkit-head h3 { font-size: 20px; margin-bottom: 6px; } .full-toolkit-head p { font-size: 14px; } /* ============================= Use cases ============================= */ .usecase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .usecase-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; display: flex; gap: 14px; align-items: flex-start; } .usecase-emoji { font-size: 22px; line-height: 1; flex-shrink: 0; } .usecase-card h4 { font-size: 15px; margin-bottom: 4px; } .usecase-card p { font-size: 13.5px; } /* ============================= Stats band ============================= */ /* Fixed dark band in BOTH themes by design, same reasoning as .site-footer above: --ink-900/--ink-300 flip to near-white in dark mode, which would invert this to an unreadable light band — pin literal hex instead. */ .stats-band { background: #0F1222; padding: 56px 0; } .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; } .stat-value { font-size: 36px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; } .stat-label { font-size: 13.5px; color: #A8ACC2; margin-top: 6px; } /* ============================= Pricing ============================= */ .pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; font-size: 14px; font-weight: 600; color: var(--ink-500); } .switch { position: relative; width: 46px; height: 26px; background: var(--border-strong); border-radius: 999px; cursor: pointer; border: none; } .switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 999px; transition: transform 0.15s; box-shadow: var(--shadow-sm); } .switch.is-on { background: var(--accent); } .switch.is-on::after { transform: translateX(20px); } .save-badge { background: var(--success-bg); color: var(--success); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; } .pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; } .plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; } .plan-card.is-featured { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; } .plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; } .plan-name { font-size: 15px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 12px; } .plan-price { font-size: 42px; font-weight: 800; margin-bottom: 4px; } .plan-price span { font-size: 15px; font-weight: 500; color: var(--ink-500); } .plan-credits { font-size: 14px; color: var(--ink-500); margin-bottom: 24px; } .plan-features { margin: 24px 0; } .plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; margin-bottom: 12px; color: var(--ink-700); } .plan-features svg { flex-shrink: 0; color: var(--success); margin-top: 2px; } .cost-table, .compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; margin-top: 20px; } .cost-table th, .cost-table td, .compare-table th, .compare-table td { padding: 14px 18px; text-align: left; font-size: 14px; border-bottom: 1px solid var(--border); } .cost-table th, .compare-table th { background: var(--surface-alt); font-weight: 700; color: var(--ink-700); } .cost-table tr:last-child td, .compare-table tr:last-child td { border-bottom: none; } .compare-table td.yes { color: var(--success); font-weight: 700; } .compare-table td.no { color: var(--ink-300); } /* ============================= Testimonials ============================= */ .testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; } .testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; } .testimonial-card p { font-size: 14px; color: var(--ink-700); margin-bottom: 16px; } .testimonial-author { display: flex; align-items: center; gap: 10px; } .avatar-circle { width: 36px; height: 36px; border-radius: 999px; background: var(--accent-light); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; } .testimonial-author strong { font-size: 13px; display: block; } .testimonial-author span { font-size: 12px; color: var(--ink-500); } /* ============================= FAQ ============================= */ .faq-list { max-width: 720px; margin: 0 auto; } .faq-item { border-bottom: 1px solid var(--border); } .faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; cursor: pointer; } .faq-question .chevron { transition: transform 0.15s; color: var(--ink-500); } .faq-item.is-open .chevron { transform: rotate(180deg); } .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; } .faq-answer p { padding-bottom: 20px; font-size: 14px; } .faq-item.is-open .faq-answer { max-height: 240px; } /* ============================= CTA banner ============================= */ .cta-banner { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; margin: 0 24px; } .cta-banner h2 { color: #fff; font-size: 30px; margin-bottom: 10px; } .cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 24px; } .cta-banner .btn-primary { background: #fff; color: var(--accent); } .cta-banner .btn-primary:hover { background: var(--accent-lighter); } /* ============================= Forms (auth, contact) ============================= */ .auth-wrap { max-width: 420px; margin: 64px auto; padding: 0 24px; } .auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-md); } .auth-card h1 { font-size: 24px; margin-bottom: 6px; } .auth-card .sub { font-size: 14px; margin-bottom: 24px; } .auth-footer { text-align: center; font-size: 14px; margin-top: 20px; color: var(--ink-500); } .auth-footer a { color: var(--accent); font-weight: 600; } .form-group { margin-bottom: 18px; } .form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; } .form-control { width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-family: var(--font); font-size: 14px; background: var(--surface); color: var(--ink-900); } .form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-lighter); } .form-control.has-error { border-color: var(--danger); } .field-error { color: var(--danger); font-size: 12px; margin-top: 6px; } .form-row-check { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 20px; } .form-row-check label { display: flex; align-items: center; gap: 8px; color: var(--ink-500); font-weight: 500; } .alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; } .alert-success { background: var(--success-bg); color: var(--success); } .alert-error { background: var(--danger-bg); color: var(--danger); } .alert-info { background: var(--accent-lighter); color: var(--accent-dark); } .contact-wrap { max-width: 640px; margin: 0 auto; } /* ============================= Policy pages ============================= */ .policy-layout { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; } .policy-sidebar { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; } .policy-sidebar a { display: block; font-size: 13px; color: var(--ink-500); padding: 8px 0; } .policy-sidebar a:hover { color: var(--accent); } .policy-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 40px; } .policy-content h2 { font-size: 20px; margin: 32px 0 12px; } .policy-content h2:first-child { margin-top: 0; } .policy-content p, .policy-content li { font-size: 14px; color: var(--ink-700); margin-bottom: 12px; } .policy-content ul { list-style: disc; padding-left: 20px; } .policy-updated { font-size: 13px; color: var(--ink-300); margin-bottom: 24px; } /* ============================= Responsive ============================= */ @media (max-width: 768px) { .site-nav { display: none; } .header-actions { display: none; } .nav-toggle { display: flex; } .hero h1 { font-size: 32px; } .hero-ctas { flex-direction: column; } .tool-grid { grid-template-columns: repeat(2, 1fr); } .timeline { flex-direction: column; align-items: center; } .pricing-grid { grid-template-columns: 1fr; } .testimonial-grid { grid-template-columns: 1fr; } .footer-inner { grid-template-columns: 1fr; } .footer-links { grid-column: 1; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; } .policy-layout { grid-template-columns: 1fr; } .policy-sidebar { position: static; } .cta-banner { margin: 0; border-radius: 0; padding: 40px 24px; } .compare-table { display: block; overflow-x: auto; } .benefit-grid { grid-template-columns: 1fr 1fr; } .ai-showcase-grid { grid-template-columns: 1fr; } .category-grid { grid-template-columns: 1fr 1fr; } .usecase-grid { grid-template-columns: 1fr; } .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px 16px; } } /* Mobile nav drawer (JS toggles .nav-open on body) */ body.nav-open .site-nav { display: flex; flex-direction: column; position: fixed; top: 68px; left: 0; right: 0; background: var(--surface); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 4px; z-index: 49; } body.nav-open .site-nav a { padding: 12px 0; font-size: 15px; } body.nav-open .header-actions { display: flex; position: fixed; top: 148px; left: 0; right: 0; background: var(--surface); padding: 0 24px 20px; z-index: 49; border-bottom: 1px solid var(--border); } /* =================================================================== User Dashboard Layout =================================================================== */ body.dashboard-body { background: var(--surface-alt); } .dashboard-layout { display: flex; min-height: 100vh; } .dashboard-sidebar { width: 240px; flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--border); padding: 20px 0; display: flex; flex-direction: column; gap: 20px; } .sidebar-profile { display: flex; align-items: center; gap: 12px; padding: 0 24px; } .sidebar-profile strong { display: block; font-size: 14px; } .sidebar-profile span { font-size: 12px; color: var(--ink-500); word-break: break-all; } .sidebar-nav { display: flex; flex-direction: column; padding: 0 12px; gap: 2px; } .sidebar-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--ink-700); } .sidebar-nav a svg { flex-shrink: 0; } .sidebar-nav a:hover { background: var(--surface-alt); } .sidebar-nav a.is-active { background: var(--accent-lighter); color: var(--accent); font-weight: 700; } .sidebar-nav a.sidebar-logout { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 14px; color: var(--danger); } .dashboard-main { flex: 1; min-width: 0; } .dashboard-topbar { height: 68px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; position: sticky; top: 0; z-index: 40; } .breadcrumb { font-size: 14px; color: var(--ink-500); display: flex; gap: 8px; } .breadcrumb a { color: var(--ink-500); } .breadcrumb span:last-child { color: var(--ink-900); font-weight: 600; } .topbar-right { display: flex; align-items: center; gap: 16px; } .credit-widget { display: flex; align-items: center; gap: 10px; } .credit-ring { width: 44px; height: 44px; border-radius: 999px; display: flex; align-items: center; justify-content: center; position: relative; } .credit-ring::before { content: ''; position: absolute; inset: 4px; background: var(--surface); border-radius: 999px; } .credit-ring span { position: relative; font-size: 11px; font-weight: 700; color: var(--ink-900); } .credit-widget-text { display: flex; flex-direction: column; line-height: 1.3; } .credit-widget-text strong { font-size: 13px; } .credit-widget-text span { font-size: 11px; color: var(--ink-500); } .admin-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #ffffff; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; } .notif-bell { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--border); background: none; color: var(--ink-500); display: flex; align-items: center; justify-content: center; cursor: pointer; } .dashboard-content { padding: 32px; max-width: 1200px; } /* Stat cards */ .stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; } .stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; } .stat-card .stat-label { font-size: 12px; color: var(--ink-500); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; } .stat-card .stat-value { font-size: 26px; font-weight: 800; } .dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; } .panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 20px; } .panel h3 { font-size: 16px; margin-bottom: 16px; } .data-table { width: 100%; border-collapse: collapse; } .data-table th, .data-table td { text-align: left; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--border); } .data-table th { color: var(--ink-500); font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.03em; } .data-table tr:last-child td { border-bottom: none; } .empty-state { text-align: center; padding: 32px 16px; color: var(--ink-500); font-size: 14px; } .status-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; } .status-badge.success, .status-badge.active, .status-badge.paid { background: var(--success-bg); color: var(--success); } .status-badge.failed, .status-badge.cancelled { background: var(--danger-bg); color: var(--danger); } .status-badge.past_due, .status-badge.pending, .status-badge.trialing, .status-badge.paused { background: var(--warning-bg); color: var(--warning); } .quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; } .quick-action-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; text-align: center; } .quick-action-card h4 { font-size: 14px; margin: 12px 0 6px; } .quick-action-card p { font-size: 12px; margin-bottom: 14px; } .progress-bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; } .progress-bar-fill { height: 100%; background: var(--accent); border-radius: 999px; } /* ============================= AI tool upload UI ============================= */ .ai-dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius-md); padding: 40px 24px; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; } .ai-dropzone:hover, .ai-dropzone.is-dragover { border-color: var(--accent); background: var(--accent-lighter); } .ai-dropzone svg { color: var(--ink-300); margin-bottom: 12px; } .ai-dropzone .ai-dropzone-hint { font-size: 12px; color: var(--ink-300); margin-top: 6px; } .ai-file-selected { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--accent-lighter); border-radius: var(--radius-sm); font-size: 14px; margin-top: 12px; } .ai-file-selected button { margin-left: auto; background: none; border: none; color: var(--danger); cursor: pointer; font-size: 13px; } .ai-progress-steps { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 24px; text-align: center; } .ai-spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 999px; animation: ai-spin 0.8s linear infinite; } @keyframes ai-spin { to { transform: rotate(360deg); } } .ai-result-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; } .ai-result-text { font-size: 14px; line-height: 1.7; color: var(--ink-700); max-height: 500px; overflow-y: auto; padding: 16px; background: var(--surface-alt); border-radius: var(--radius-sm); } .ai-result-text p { color: var(--ink-700); margin-bottom: 14px; } .ai-result-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; } .ai-warning-banner { background: var(--warning-bg); color: var(--warning); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 13px; margin-bottom: 20px; } .ai-preview-table-wrap { overflow-x: auto; } /* Tabs */ .tab-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; } .tab-nav a { padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; } .tab-nav a.is-active { color: var(--accent); border-color: var(--accent); } .filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; align-items: flex-end; } .filter-bar .form-group { margin-bottom: 0; } .filter-bar .form-control { min-width: 160px; } .pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; } .pagination a, .pagination span { padding: 8px 13px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid var(--border); color: var(--ink-700); } .pagination a:hover { background: var(--surface-alt); } .pagination .is-current { background: var(--accent); color: #fff; border-color: var(--accent); } /* Modal */ .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(15, 18, 34, 0.5); align-items: center; justify-content: center; z-index: 100; padding: 24px; overflow-y: auto; /* lets the overlay itself scroll on very short viewports */ } .modal-overlay.is-open { display: flex; } .modal-box { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; max-width: 420px; width: 100%; max-height: calc(100vh - 48px); /* never taller than the viewport */ display: flex; flex-direction: column; box-shadow: var(--shadow-lg); /* Content below (h3, p, form) scrolls; .modal-actions is pinned via position:sticky so Save/Cancel stay reachable without scrolling all the way down — needed once a form (e.g. the plan edit modal) has more fields than fit in the viewport. */ overflow-y: auto; } .modal-box h3 { font-size: 18px; margin-bottom: 10px; flex-shrink: 0; } .modal-box p { font-size: 14px; margin-bottom: 18px; } .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 20px -32px -32px; padding: 16px 32px; position: sticky; bottom: -32px; background: var(--surface); flex-shrink: 0; } @media (max-width: 900px) { .dashboard-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; transform: translateX(-100%); transition: transform 0.2s; } body.sidebar-open .dashboard-sidebar { transform: translateX(0); } .stat-grid { grid-template-columns: repeat(2, 1fr); } .dash-grid { grid-template-columns: 1fr; } .quick-actions { grid-template-columns: 1fr; } .dashboard-content { padding: 20px; } } /* ============================= Ad Slots ============================= */ .ad-slot { width: 100%; overflow: hidden; text-align: center; } .ad-slot--header { max-width: 1100px; margin: 0 auto; padding: 12px 24px 0; } .ad-slot--footer { max-width: 1100px; margin: 0 auto; padding: 24px 24px 0; } .ad-slot--sidebar { max-width: 640px; margin: 24px auto 0; padding: 0 24px; } .ad-slot:empty { display: none; } /* Required by most ad networks' terms of service. */ .ad-slot::before { content: 'Advertisement'; display: block; font-size: 10px; color: var(--ink-300); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; } .ad-slot:empty::before { display: none; } /* ============================= Tool Content Sections ============================= */ .tool-page-h1 { font-size: 28px; margin-bottom: 20px; letter-spacing: -0.02em; } .tool-content-section { max-width: 640px; margin: 48px auto 0; padding: 0 24px; } .tool-content-block { margin-bottom: 40px; } .tool-content-h2 { font-size: 20px; font-weight: 600; color: var(--ink-900); margin: 0 0 16px; letter-spacing: -0.01em; } .tool-steps { list-style: none; margin: 0; padding: 0; counter-reset: steps; } .tool-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--border); counter-increment: steps; font-size: 14px; color: var(--ink-700); line-height: 1.6; } .tool-steps li:last-child { border-bottom: none; } .tool-steps li::before { content: counter(steps); width: 28px; height: 28px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; } .tool-steps li strong { color: var(--ink-900); display: block; margin-bottom: 2px; } .tool-features { list-style: none; margin: 0; padding: 0; } .tool-features li { padding: 10px 0 10px 24px; position: relative; font-size: 14px; color: var(--ink-700); border-bottom: 1px solid var(--border); line-height: 1.6; } .tool-features li:last-child { border-bottom: none; } .tool-features li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; } .tool-features li strong { color: var(--ink-900); } .tool-faq { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; } .faq-item { border-bottom: 1px solid var(--border); } .faq-item:last-child { border-bottom: none; } .faq-q { padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ink-900); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; user-select: none; } .faq-q::after { content: "+"; font-size: 18px; font-weight: 400; color: var(--accent); flex-shrink: 0; margin-left: 12px; } details[open] .faq-q::after { content: "−"; } .faq-a { padding: 0 16px 14px; font-size: 13px; color: var(--ink-500); line-height: 1.7; } .tool-related { display: flex; flex-wrap: wrap; gap: 10px; } .related-tool-link { display: inline-block; padding: 8px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; transition: background 0.15s, border-color 0.15s; } .related-tool-link:hover { background: var(--accent-light); border-color: var(--accent); } [data-theme="dark"] .tool-content-h2 { color: var(--ink-900); } [data-theme="dark"] .faq-item { border-color: var(--border); } [data-theme="dark"] .related-tool-link { background: var(--surface); border-color: var(--border); } 