/* ============================================
   WebToolsBetter — Base Styles
   Phase 0: foundation only. Tool-specific styles
   added in later phases.
   ============================================ */

/* CSS Variables — the locked brand palette */
:root {
    /* Purples */
    --color-primary: #4C1D95;
    --color-primary-dark: #2E1065;
    --color-primary-mid: #6D28D9;
    --color-primary-light: #8B5CF6;

    /* Amber accent */
    --color-accent: #F59E0B;
    --color-accent-dark: #B45309;
    --color-accent-light: #FCD34D;

    /* Backgrounds */
    --color-bg: #0A0612;
    --color-surface: #15101F;
    --color-surface-elevated: #1F1830;

    /* Text */
    --color-text: #F5F3FA;
    --color-text-secondary: #C4B8D9;

    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;

    /* Fonts */
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* ============================================
   Reset / base
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 var(--space-md) 0;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1.0625rem; letter-spacing: -0.005em; }

/* Bootstrap heading utility classes — match actual heading element sizes */
.h1 { font-size: clamp(2rem, 4vw, 3rem); }
.h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
.h3 { font-size: 1.5rem; }
.h4 { font-size: 1.25rem; }
.h5 { font-size: 1.125rem; }
.h6 { font-size: 1.0625rem; letter-spacing: -0.005em; }

p {
    margin: 0 0 var(--space-md) 0;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--color-accent-light);
}

/* ============================================
   Layout — container
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

/* ============================================
   Header
   ============================================ */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.brand-logo {
    height: 53px;
    width: auto;
    display: block;
    margin: 4px 0 0px;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
    opacity: 0.85;
}

.brand:hover {
    color: var(--color-text);
}

.site-nav {
    display: flex;
    gap: var(--space-lg);
    margin: 3px 0 0;
}

.site-nav a {
    color: var(--color-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:hover {
    color: var(--color-accent);
}

/* ============================================
   Main content area
   ============================================ */
.site-main {
    min-height: calc(100vh - var(--header-height) - 280px);
    padding: var(--space-lg) 0;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    padding: var(--space-2xl) 0 var(--space-lg) 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-col h4 {
    color: var(--color-text);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: var(--space-xs);
}

.footer-col a {
    color: var(--color-text-secondary);
}

.footer-col ul li a:hover {
    color: var(--color-accent);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(139, 92, 246, 0.1);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.footer-bottom p {
    margin: 0;
}

/* ============================================
   Hero — placeholder homepage
   ============================================ */
.hero {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--space-md);
}

.hero-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-lg) auto;
}

.hero-meta {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
}

/* ============================================
   Dashboard cards (Step 11)
   ============================================ */

   .dashboard-card {
    background-color: #15101F;
    border: 1px solid #1F1830;
    border-radius: 12px;
    padding: 28px;
    height: 100%;
  }
  
  .dashboard-card-danger {
    border-color: #2A1F2F;
  }
  
  .dashboard-card .card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #F5F3FA;
    margin: 0 0 20px 0;
  }
  
  .card-list {
    margin: 0 0 24px 0;
  }
  
  .card-list dt {
    font-size: 13px;
    color: #8B7FA0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    margin-top: 16px;
  }
  
  .card-list dt:first-child {
    margin-top: 0;
  }
  
  .card-list dd {
    font-size: 15px;
    color: #F5F3FA;
    margin: 4px 0 0 0;
  }
  
  .card-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .card-actions-spread {
    justify-content: space-between;
  }
  
  .card-action-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #F59E0B;
    text-decoration: none;
    cursor: pointer;
    font-size: 15px;
  }
  
  .card-action-link:hover {
    text-decoration: underline;
    color: #F59E0B;
  }
  
  .card-action-link.text-danger {
    color: #DC6E6E;
  }
  
  .card-action-link.text-danger:hover {
    color: #E88A8A;
  }
  
  .credit-balance {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
  }
  
  .credit-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    color: #F59E0B;
    line-height: 1;
  }
  
  .credit-label {
    font-size: 15px;
    color: #C4B8D9;
  }
  
  .activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .activity-list li {
    padding: 12px 0;
    border-bottom: 1px solid #1F1830;
    color: #C4B8D9;
  }
  
  .activity-list li:last-child {
    border-bottom: none;
  }



/* ============================================
   Responsive — mobile
   ============================================ */
@media (max-width: 640px) {
    :root {
        --header-height: 64px;
    }

    .site-nav {
        gap: var(--space-md);
    }

    .site-nav a {
        font-size: 0.875rem;
    }

    .brand-logo {
        height: 40px;
    }
}


/* ============================================
   Error pages (404, 500)
   ============================================ */
   .error-page {
    text-align: center;
    padding: var(--space-2xl) 0;
}

.error-code {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 700;
    line-height: 1;
    margin: 0 0 var(--space-md) 0;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.error-page h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.error-lead {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 560px;
    margin: 0 auto var(--space-xl) auto;
}

/* ============================================
   Buttons — three-tier system

   .btn-cta      Primary action. Solid amber, glow, lift.
                 Use for: signup, purchase, "the" CTA on a page.
                 Only ONE per primary action region.
   .btn-glass    Secondary action. Glassmorphic frosted.
                 Use for: side options, "learn more", supporting CTAs.
   .btn-ghost    Tertiary. Text-only with subtle hover.
                 Use for: cancel, back, footer-y actions.
   ============================================ */

/* Shared base — applies to all three */
.btn-cta,
.btn-glass,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
}

.btn-cta:focus-visible,
.btn-glass:focus-visible,
.btn-ghost:focus-visible {
    outline: 2px solid var(--color-accent-light);
    outline-offset: 2px;
}

/* --- Primary CTA: solid amber, glow halo, lift --- */
.btn-cta {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
    color: var(--color-bg);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.2);
}

.btn-cta:hover {
    background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
    color: var(--color-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5), 0 0 0 1px rgba(245, 158, 11, 0.4);
}

.btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* --- Glass: frosted, blurred backdrop, soft border --- */
.btn-glass {
    background: rgba(31, 24, 48, 0.5);
    color: var(--color-text);
    border: 1px solid rgba(139, 92, 246, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-glass:hover {
    background: rgba(31, 24, 48, 0.8);
    border-color: rgba(245, 158, 11, 0.6);
    color: var(--color-accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(76, 29, 149, 0.3);
}

.btn-glass:active {
    transform: translateY(0);
}

/* --- Ghost: text-only with subtle hover --- */
.btn-ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: 1px solid transparent;
    padding: 0.625rem 1rem;
}

.btn-ghost:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--color-text);
}

/* --- Size modifiers (use alongside button classes) --- */
.btn-lg {
    font-size: 1.0625rem;
    padding: 1.0625rem 2rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ============================================
   Bootstrap overrides — kill default light theme
   on table headers and other dark-theme conflicts
   ============================================ */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--color-text);
    color: var(--color-text);
}

.table > :not(caption) > * > * {
    background-color: transparent;
    color: var(--color-text);
}

.table thead th {
    background-color: transparent;
    color: var(--color-text-secondary);
}

/* Bootstrap text utility overrides for dark theme */
.text-secondary {
    color: var(--color-text-secondary) !important;
}

/* Bootstrap card-like surfaces in pricing/about pages */
.surface-card {
    background: var(--color-surface);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.surface-card-elevated {
    background: var(--color-surface-elevated);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

/* ============================================
   FAQ list — question/answer hierarchy
   ============================================ */
   .faq-item {
    margin-bottom: var(--space-lg);
}

.faq-item h3,
.faq-item h4,
.faq-item h5,
.faq-item h6 {
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.faq-item p {
    color: var(--color-text-secondary);
    margin-bottom: 0;
}

/* ============================================
   Form inputs — dark theme, branded
   ============================================ */
   .form-control {
    background: rgba(31, 24, 48, 0.5);
    color: var(--color-text);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    width: 100%;
    transition: all 0.2s ease;
}

.form-control:focus {
    background: rgba(31, 24, 48, 0.8);
    color: var(--color-text);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
    outline: none;
}

.form-control::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.5;
}

.form-label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.text-danger {
    color: #ff8a8a !important;
}

/* ====== Warning box (delete account) ====== */
.warning-box {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 16px 0 24px 0;
    color: #1a1a1a;
  }
  
  .warning-box p {
    margin: 0 0 8px 0;
    font-size: 15px;
  }
  
  .warning-box ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
  }
  
  .warning-box li {
    margin: 4px 0;
    font-size: 14px;
    line-height: 1.5;
  }
  
  .warning-box a {
    color: #4c1d95;
  }
  
  /* ====== Danger button (delete account) ====== */
  .btn-danger {
    background-color: #dc2626;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.15s ease;
  }
  
  .btn-danger:hover {
    background-color: #b91c1c;
  }
  
  .btn-danger:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
  }



/* ===== Tool UI — resize form ===== */
.tool-ui-card {
    background: #1a1626;
    border: 1px solid #2c2640;
    border-radius: 14px;
    padding: 28px;
    margin-top: 24px;
  }
  
  .resize-form .field-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: #c8c2d8;
    margin: 18px 0 6px;
  }
  .resize-form .field-label:first-child { margin-top: 0; }
  
  .resize-form .text-input,
  .resize-form .select-input,
  .resize-form .file-input {
    width: 100%;
    background: #110d1a;
    border: 1px solid #2c2640;
    border-radius: 8px;
    padding: 10px 12px;
    color: #f4f2f8;
    font-size: 0.95rem;
  }
  .resize-form .text-input:focus,
  .resize-form .select-input:focus {
    outline: none;
    border-color: #f5a623;
  }
  
  .resize-form .dim-row {
    display: flex;
    gap: 14px;
  }
  .resize-form .dim-field { flex: 1; }
  
  .resize-form .radio-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  .resize-form .radio-row label {
    color: #f4f2f8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
  }
  .resize-form .radio-row input { accent-color: #f5a623; }
  
  .resize-form .btn-resize {
    width: 100%;
    margin-top: 26px;
    background: #f5a623;
    color: #1a1626;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 9px;
    padding: 13px;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .resize-form .btn-resize:hover { background: #ffb83d; }  


  /* ===== Tool mode toggle ===== */
.mode-toggle {
    display: flex;
    gap: 0;
    background: #110d1a;
    border: 1px solid #2c2640;
    border-radius: 9px;
    padding: 4px;
    margin-bottom: 8px;
  }
  .mode-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #c8c2d8;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 9px;
    border-radius: 6px;
    cursor: pointer;
  }
  .mode-btn.active {
    background: #f5a623;
    color: #1a1626;
  }
  .checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f4f2f8;
    font-size: 0.95rem;
    margin: 16px 0 4px;
    cursor: pointer;
  }
  .checkbox-row input { accent-color: #f5a623; }
  .mode-note {
    color: #8e87a0;
    font-size: 0.85rem;
    margin-top: 10px;
    line-height: 1.4;
  }



/* ===== Batch drop zone ===== */
.drop-zone {
  display: block;
  background: #110d1a;
  border: 2px dashed #2c2640;
  border-radius: 10px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.drop-zone:hover { border-color: #f5a623; }
.drop-zone.drag-over {
  border-color: #f5a623;
  background: #1c1626;
}
.drop-zone-text {
  color: #c8c2d8;
  font-size: 0.95rem;
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.file-list li {
  color: #f4f2f8;
  font-size: 0.9rem;
  padding: 8px 12px;
  background: #1a1626;
  border: 1px solid #2c2640;
  border-radius: 7px;
  margin-bottom: 6px;
}


/* ===== Tool content sections (how / when / mistakes) ===== */
.tool-section {
    margin-top: 36px;
  }
  .tool-section h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.45rem;
    color: #f4f2f8;
    margin-bottom: 14px;
  }
  .tool-list {
    color: #d4cee0;
    font-size: 0.98rem;
    line-height: 1.7;
    padding-left: 22px;
  }
  .tool-list li {
    margin-bottom: 10px;
  }
  .tool-list li strong {
    color: #f4f2f8;
  }

  .resize-form .btn-resize:disabled {
    background: #2c2640;
    color: #6b6480;
    cursor: not-allowed;
  }
  .resize-form .btn-resize:disabled:hover {
    background: #2c2640;
  }


  /* ===== File list header + remove buttons ===== */
.file-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0 6px;
}
.file-header .field-label {
  margin: 0;
}
.clear-link {
  background: none;
  border: none;
  color: #c8c2d8;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.clear-link:hover { color: #f5a623; }

.file-row {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
.file-remove {
  background: none;
  border: none;
  color: #8e87a0;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
}
.file-remove:hover { color: #f5a623; }

/* ===== Tool error banner ===== */
.tool-error {
  background: #3a1a1a;
  border: 1px solid #6b2a2a;
  color: #ffd6d6;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  margin-bottom: 18px;
}


/* Step 3c — modal structure (polish in Step 4) */
.tool-success {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.tool-success[hidden] { display: none; }

.tool-success-modal {
  background: #fff;
  width: calc(100% - 2rem);
  max-width: 440px;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.success-headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem;
}

.success-detail {
  font-size: 1rem;
  color: #374151;
  line-height: 1.5;
  margin: 0 0 0.75rem;
}

.success-detail strong { color: #4C1D95; }

.success-detail a {
  color: #4C1D95;
  font-weight: 600;
}

.success-again {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background: #F59E0B;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

.success-again:hover { background: #d97f06; }


.recent-file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.recent-file-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  margin-top: 2px;
}

.pagination-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #1F1830;
}

.pagination-status {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.pagination-disabled {
  font-size: 15px;
  color: #4a4458;
  cursor: default;
}


/* ============================================
   Tools Hub — card grid
   ============================================ */
   .tools-hub-intro {
    max-width: 640px;
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.tools-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.tools-hub-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    color: var(--color-text);
    transition: all 0.2s ease;
}

.tools-hub-card:hover {
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(76, 29, 149, 0.25);
    color: var(--color-text);
}

.tools-hub-icon {
  color: var(--color-accent);
  line-height: 0;
  margin-bottom: var(--space-md);
}

.tools-hub-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-sm) 0;
}

.tools-hub-card-desc {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 var(--space-lg) 0;
    flex-grow: 1;
}

.tools-hub-card-cta {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.tools-hub-card:hover .tools-hub-card-cta {
    color: var(--color-accent-light);
}

/* Tools hub search */
.tools-hub-search-wrap {
  max-width: 440px;
  margin: 0 auto var(--space-xl) auto;
}
.tools-hub-search {
  width: 100%;
  background: rgba(31, 24, 48, 0.5);
  color: var(--color-text);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
}
.tools-hub-search:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
  background: rgba(31, 24, 48, 0.8);
}
.tools-hub-search::placeholder {
  color: var(--color-text-secondary);
  opacity: 0.6;
}

/* Header tools dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown-toggle {
  cursor: pointer;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--color-surface-elevated);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-xs);
  margin-top: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.15s ease;
  z-index: 200;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 0.875rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}
.nav-dropdown-menu a:hover {
  background: rgba(139, 92, 246, 0.12);
  color: var(--color-accent);
}
.nav-dropdown-all {
  border-top: 1px solid rgba(139, 92, 246, 0.15);
  margin-top: var(--space-xs);
  color: var(--color-accent) !important;
}

/* ===== PDF compressor — drop zone icon, file card, presets ===== */
.pdf-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pdf-drop-icon { color: var(--color-accent); opacity: 0.85; }

.pdf-file-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #110d1a;
  border: 1px solid #2c2640;
  border-radius: 10px;
  padding: 14px 16px;
}
.pdf-file-card-icon { color: var(--color-accent); flex-shrink: 0; }
.pdf-file-card-meta { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.pdf-file-card-name {
  color: #f4f2f8; font-size: 0.95rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pdf-file-card-size { color: #8e87a0; font-size: 0.85rem; margin-top: 2px; }
.pdf-file-remove {
  background: none; border: none; color: #8e87a0;
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 4px; flex-shrink: 0;
}
.pdf-file-remove:hover { color: var(--color-accent); }

.pdf-presets { gap: 10px; margin-bottom: 12px; }
.pdf-preset {
  background: #110d1a;
  border: 1px solid #2c2640;
  color: #c8c2d8;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pdf-preset:hover { border-color: var(--color-accent); color: var(--color-text); }
.pdf-preset.active {
  background: var(--color-accent);
  color: #1a1626;
  border-color: var(--color-accent);
}


/* ============================================
   Homepage — hero band
   ============================================ */
   .home-hero {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
  }
  
  .home-hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-xl);
    align-items: center;
  }
  
  .home-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
  }
  
  .home-hero .accent {
    color: var(--color-accent);
  }
  
  .home-hero-lead {
    font-size: 1.2rem;
    color: var(--color-text-secondary);
    max-width: 32rem;
    margin-bottom: var(--space-lg);
  }
  
  .home-hero-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
  }
  
  .home-hero-media {
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  }
  
  .home-hero-media img {
    width: 100%;
    height: auto;
    display: block;
  }
  
  @media (max-width: 820px) {
    .home-hero-inner {
      grid-template-columns: 1fr;
    }
  }

  /* ============================================
   Homepage — tool scroller (light band)
   ============================================ */
.home-tools {
  background: #f6f7f8;
  padding: var(--space-2xl) 0;
}

.home-tools-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.home-tools h2 {
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}

.home-tools-sub {
  color: #5b5668;
  font-size: 1.05rem;
  margin: 0;
}

.home-tools-all {
  color: var(--color-primary-mid);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.home-tools-all:hover { color: var(--color-primary); }

.home-tools-scroller-wrap {
  position: relative;
}

.home-tools-scroller {
  display: flex;
  gap: var(--space-md);
  list-style: none;
  padding: 0.5rem 0.25rem 1rem;
  margin: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.home-tool-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

.home-tool-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid rgba(46, 16, 101, 0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  color: var(--color-text);
  transition: all 0.2s ease;
}

.home-tool-card > a:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(46, 16, 101, 0.18);
  color: var(--color-text);
}

.home-tool-icon {
  color: var(--color-accent);
  line-height: 0;
  margin-bottom: var(--space-md);
}

.home-tool-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.home-tool-desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: var(--space-md);
}

.home-tool-cta {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.95rem;
}

.home-tools-arrow {
  position: absolute;
  top: 40%;
  right: -8px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
  transition: all 0.15s ease;
}
.home-tools-arrow:hover { background: var(--color-accent-light); transform: scale(1.08); }
.home-tools-arrow[hidden] { display: none; }

@media (max-width: 640px) {
  .home-tool-card { flex: 0 0 260px; }
  .home-tools-arrow { display: none; }
}



/* ============================================
   Homepage — why band (dark)
   ============================================ */
   .home-why {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
  }
  
  .home-why h2 {
    margin-bottom: 0.25rem;
  }
  
  .home-why-sub {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    max-width: 38rem;
    margin-bottom: var(--space-xl);
  }
  
  .home-why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }
  
  .home-why-item {
    border-left: 2px solid var(--color-accent);
    padding-left: var(--space-md);
  }
  
  .home-why-item h3 {
    font-size: 1.2rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
  }
  
  .home-why-item p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
  }
  
  @media (max-width: 640px) {
    .home-why-grid { grid-template-columns: 1fr; }
  }


  /* Homepage — why band featured lead */
.home-why-lead {
  background: var(--color-surface);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.home-why-lead h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.home-why-lead p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
  max-width: 46rem;
}


/* ============================================
   Homepage — how it works (light)
   ============================================ */
   .home-how {
    background: #f6f7f8;
    padding: var(--space-2xl) 0;
  }
  
  .home-how h2 {
    color: var(--color-primary-dark);
    margin-bottom: 0.25rem;
  }
  
  .home-how-sub {
    color: #5b5668;
    font-size: 1.1rem;
    margin-bottom: var(--space-xl);
  }
  
  .home-how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }
  
  .home-how-step {
    background: #ffffff;
    border: 1px solid rgba(46, 16, 101, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
  }
  
  .home-how-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: var(--space-md);
  }
  
  .home-how-step h3 {
    font-size: 1.2rem;
    color: var(--color-primary-dark);
    margin-bottom: 0.5rem;
  }
  
  .home-how-step p {
    color: #5b5668;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
  }
  
  .home-how-cta {
    margin-top: var(--space-xl);
  }
  
  .home-how-pricing {
    color: var(--color-primary-mid);
    font-weight: 600;
    font-size: 1.05rem;
  }
  .home-how-pricing:hover { color: var(--color-primary); }
  
  @media (max-width: 640px) {
    .home-how-grid { grid-template-columns: 1fr; }
  }


/* ============================================
   Homepage — final CTA (dark)
   ============================================ */
   .home-cta {
    background: var(--color-bg);
    padding: var(--space-2xl) 0;
    text-align: center;
  }
  
  .home-cta h2 {
    margin-bottom: var(--space-sm);
  }
  
  .home-cta-sub {
    color: var(--color-text-secondary);
    font-size: 1.15rem;
    max-width: 40rem;
    margin: 0 auto var(--space-lg) auto;
  }

