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

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f6f8fb;
  color: #1a1a1a;
  line-height: 1.4;
}

/* ================================
   Layout
================================ */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 20px 10px;
}

.header h1 {
  margin: 0;
  font-size: 28px;
}

.privacy {
  font-size: 14px;
  color: #666;
}

/* ================================
   Upload / Drop Zone
================================ */
.dropzone {
border:2px dashed #2563eb;
background:#eff6ff;
padding:30px;
text-align:center;
border-radius:10px;
cursor:pointer;
transition:all .2s ease;
}

.dropzone:hover {
background:#dbeafe;
border-color:#1d4ed8;
transform:translateY(-1px);
}

.dropzone.dragging {
background:#bfdbfe;
border-color:#1e40af;
}

/* ================================
   Dashboard
================================ */
#dashboard {
  margin-top: 25px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
  gap: 15px;
}

.card {
  background: #fff;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}

.card h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #666;
}

.card span {
  font-size: 22px;
  font-weight: 600;
}

/* ================================
   Summary
================================ */
.summary-box {
  margin-top: 20px;
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}


/* ================================
   Export Buttons
================================ */
.export-bar {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: none;
  background: #2563eb;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: .2s;
}

.btn:hover {
  background: #1d4ed8;
}

.btn.secondary {
  background: #e5e7eb;
  color: #111;
}

.btn.secondary:hover {
  background: #d1d5db;
}

/* ================================
   Paywall Modal
================================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-content {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  text-align: center;
}

.modal-content h3 {
  margin-top: 0;
}

.modal.hidden {
  display: none;
}

/* ================================
   Settings Panel
================================ */
.settings {
  margin-top: 20px;
  background: white;
  padding: 16px;
  border-radius: 10px;
}

/* ================================
   Toggle Switch
================================ */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 30px;
  transition: .2s;
}

.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  top: 3px;
  background: white;
  border-radius: 50%;
  transition: .2s;
}

input:checked + .slider {
  background: #2563eb;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* ================================
   Loading
================================ */
.loading {
  margin-top: 20px;
  text-align: center;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #ddd;
  border-top: 3px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ================================
   Dark Mode
================================ */
body.dark {
  background: #0f172a;
  color: #e5e7eb;
}

body.dark .dropzone {
background:#0b2447;
border-color:#3b82f6;
}

body.dark .dropzone:hover {
background:#102a56;
}

body.dark .card,
body.dark .dropzone,
body.dark .summary-box,
body.dark .settings,
body.dark .modal-content {
  background: #111827;
  color: #e5e7eb;
}

body.dark .btn.secondary {
  background: #374151;
  color: white;
}

/* ================================
   Utilities
================================ */
.hidden {
  display: none;
}

.center {
  text-align: center;
}

/* ================================
   Mobile
================================ */
@media (max-width: 600px) {
  .header h1 {
    font-size: 22px;
  }

  .dropzone {
    padding: 35px 15px;
  }

  .card span {
    font-size: 18px;
  }
}

/* =========================
   Marketing Sections
========================= */

.marketing {
margin-top:40px;
}

.marketing-block {
margin-bottom:40px;
}

.feature-grid {
display:grid;
grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
gap:15px;
}

.feature {
background:#fff;
padding:15px;
border-radius:8px;
}

.steps {
padding-left:20px;
}

.pricing-grid {
display:flex;
gap:20px;
flex-wrap:wrap;
}

.price-card {
background:#fff;
padding:20px;
border-radius:10px;
flex:1;
min-width:220px;
}

.price-card.pro {
border:2px solid #2563eb;
}

.faq h4 {
margin-bottom:5px;
}


.example-box {
background:#fff;
padding:20px;
border-radius:10px;
box-shadow:0 2px 6px rgba(0,0,0,.04);
}

/* Sticky Header */

.sticky {
position:sticky;
top:0;
background:#fff;
z-index:50;
border-bottom:1px solid #eee;
}

.header-inner {
display:flex;
justify-content:space-between;
align-items:center;
max-width:1100px;
margin:auto;
padding:12px 20px;
}

.logo {
font-weight:600;
}

.header-actions {
display:flex;
align-items:center;
gap:10px;
}

.privacy-badge {
font-size:12px;
color:#555;
background:#f3f4f6;
padding:4px 8px;
border-radius:6px;
}


/* Collapsible sections */

.collapse {
border-bottom:1px solid #eee;
padding:10px 0;
}

.collapse-header {
font-weight:600;
cursor:pointer;
}

.collapse-body {
display:none;
margin-top:8px;
color:#555;
}

.collapse.open .collapse-body {
display:block;
}

body.dark .feature,
body.dark .price-card,
body.dark .example-box {
  background:#111827;
  color:#e5e7eb;
}

body.dark .sticky {
  background:#0f172a;
  border-bottom:1px solid #1f2937;
}


button {
  -webkit-tap-highlight-color: transparent;
}

.dropzone,
.btn,
.card {
  will-change: transform;
}

.sticky {
box-shadow:0 1px 3px rgba(0,0,0,.05);
}

.sub{
font-size:12px;
color:#666;
margin-left:8px;
}

.price{
font-size:22px;
font-weight:600;
margin:10px 0;
}

.pro-list{
margin:10px 0;
padding-left:18px;
color:#555;
}

.paywall-actions{
display:flex;
gap:10px;
margin-top:15px;
}

.paywall-actions .btn{
flex:1;
}

@media (max-width:480px){
.paywall-actions{
flex-direction:column;
}
}