/* ============ Base ============ */
:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --brand-light: #eef2ff;
  --success: #16a34a;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 800; letter-spacing: -.01em; text-align: center; }
h3 { font-size: 1.15rem; font-weight: 700; }

a { color: var(--brand); text-decoration: none; }

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 22px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  text-align: center;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(79, 70, 229, .35); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-success { background: var(--success); color: #fff; box-shadow: 0 6px 18px rgba(22, 163, 74, .3); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-large { padding: 15px 30px; font-size: 1.08rem; border-radius: 12px; }
.btn-small { padding: 8px 16px; font-size: .9rem; }
.btn-block { display: block; width: 100%; }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.logo span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }

/* ============ Hero ============ */
.hero {
  text-align: center;
  padding: 76px 0 64px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--brand-light) 0%, transparent 70%),
    var(--bg);
}
.badge {
  display: inline-block;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-sub { font-size: 1.2rem; color: var(--ink-soft); margin: 18px 0 30px; }
.hero-note { margin-top: 14px; font-size: .88rem; color: var(--ink-soft); }

/* ============ Tools ============ */
.tools-section { padding: 30px 20px 60px; }

.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.tab {
  font-family: inherit; font-size: .98rem; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-soft);
  cursor: pointer; transition: all .12s ease;
}
.tab:hover { border-color: var(--brand); color: var(--brand); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.tool-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.dropzone {
  border: 2px dashed #c7d2fe;
  border-radius: var(--radius);
  background: var(--bg-soft);
  text-align: center;
  padding: 44px 20px;
  transition: border-color .12s ease, background .12s ease;
}
.dropzone.dragover { border-color: var(--brand); background: var(--brand-light); }
.dropzone-icon { font-size: 2.6rem; }
.dropzone-title { font-size: 1.15rem; font-weight: 700; margin-top: 8px; }
.dropzone-sub { color: var(--ink-soft); margin: 6px 0 12px; font-size: .9rem; }
.dropzone-limit { margin-top: 14px; font-size: .82rem; color: var(--ink-soft); }

.file-list { list-style: none; margin-top: 16px; }
.file-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px;
  font-size: .95rem; background: var(--bg);
}
.file-list .file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .file-size { color: var(--ink-soft); font-size: .85rem; flex-shrink: 0; }
.file-list .file-remove {
  border: none; background: none; cursor: pointer; color: var(--ink-soft);
  font-size: 1rem; padding: 2px 6px; border-radius: 6px;
}
.file-list .file-remove:hover { background: #fee2e2; color: #dc2626; }

.tool-options { margin-top: 18px; text-align: center; }
.option-label { display: block; font-size: .9rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg {
  font-family: inherit; font-size: .92rem; font-weight: 600;
  padding: 9px 18px; border: none; background: var(--bg); color: var(--ink-soft); cursor: pointer;
}
.seg + .seg { border-left: 1px solid var(--line); }
.seg.active { background: var(--brand); color: #fff; }

.action-row { display: flex; gap: 10px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }

.progress { margin-top: 22px; text-align: center; }
.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress-fill { height: 100%; width: 0%; background: var(--brand); border-radius: 999px; transition: width .2s ease; }
.progress-text { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }

.result { text-align: center; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.result-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; }
.result-note { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); }

.quota-line { text-align: center; margin-top: 16px; font-size: .88rem; color: var(--ink-soft); }
.quota-line a { font-weight: 600; }

.trust-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 40px;
}
.trust-item {
  text-align: center; padding: 18px 10px;
  background: var(--bg-soft); border-radius: var(--radius);
}
.trust-item strong { display: block; font-size: 1rem; }
.trust-item span { font-size: .85rem; color: var(--ink-soft); }

/* ============ Pricing ============ */
.pricing-section { background: var(--bg-soft); padding: 70px 0; }
.section-sub { text-align: center; color: var(--ink-soft); margin: 10px 0 36px; font-size: 1.05rem; }

.pricing-cards {
  display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 18px;
  max-width: 940px; margin: 0 auto; align-items: start;
}
.pricing-footnote { text-align: center; margin-top: 22px; font-size: .85rem; color: var(--ink-soft); }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.card-featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow);
}
.card-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.price { font-size: 2.4rem; font-weight: 800; margin: 10px 0 4px; letter-spacing: -.02em; }
.price-sub { font-size: .95rem; font-weight: 500; color: var(--ink-soft); }
.feature-list { list-style: none; margin: 16px 0 22px; }
.feature-list li { padding: 5px 0; font-size: .96rem; }
.card-note { margin-top: 12px; text-align: center; font-size: .8rem; color: var(--ink-soft); }

/* ============ FAQ ============ */
.faq-section { padding: 70px 0; max-width: 700px; margin: 0 auto; }
.faq-section h2 { margin-bottom: 26px; }
.faq-section details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 10px; background: var(--bg);
}
.faq-section summary { font-weight: 600; cursor: pointer; }
.faq-section details p { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }

/* ============ Landing pages ============ */
.hero-sm { padding: 56px 0 44px; }
.more-tools { text-align: center; margin-top: 18px; font-size: .92rem; color: var(--ink-soft); }
.more-tools a { font-weight: 600; }

.steps-section { padding: 56px 0 10px; }
.steps-section h2 { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.step { text-align: center; padding: 22px 16px; background: var(--bg-soft); border-radius: var(--radius); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.step strong { display: block; margin-bottom: 4px; }
.step span { font-size: .9rem; color: var(--ink-soft); }

.cta-strip { text-align: center; padding: 56px 20px 64px; }
.cta-strip h2 { margin-bottom: 8px; }
.cta-strip p { color: var(--ink-soft); margin-bottom: 20px; }

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}

/* ============ Legal pages ============ */
.legal-page { max-width: 700px; padding-top: 50px; padding-bottom: 70px; }
.legal-page h1 { font-size: 2rem; }
.legal-page h2 { text-align: left; font-size: 1.15rem; margin-top: 28px; }
.legal-page p { color: var(--ink-soft); margin-top: 8px; }
.legal-updated { font-size: .85rem; margin-top: 6px; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; font-size: .88rem; color: var(--ink-soft); flex-wrap: wrap; gap: 8px; }

/* ============ Modal ============ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2, 6, 23, .55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg); border-radius: 18px; padding: 34px 30px;
  max-width: 420px; width: 100%; position: relative;
  box-shadow: 0 24px 60px rgba(2, 6, 23, .3);
  text-align: center;
}
.modal h3 { font-size: 1.4rem; }
.modal p { color: var(--ink-soft); margin-top: 8px; }
.modal .feature-list { text-align: left; display: inline-block; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  border: none; background: none; font-size: 1.1rem; color: var(--ink-soft);
  cursor: pointer; padding: 6px; border-radius: 8px;
}
.modal-close:hover { background: var(--bg-soft); }
.modal-guarantee { font-size: .82rem; margin-top: 12px; }

.link-btn {
  display: block; margin: 10px auto 0;
  border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .92rem; font-weight: 600;
  color: var(--brand); text-decoration: underline;
}

/* Pro badge state */
body.is-pro .nav-links [data-action="scroll-pricing"] { display: none; }

/* ============ Responsive ============ */
@media (max-width: 860px) {
  .pricing-cards { grid-template-columns: 1fr; max-width: 420px; }
  .card-featured { order: -1; }
}
@media (max-width: 720px) {
  .trust-strip { grid-template-columns: 1fr; }
  .nav-links a[href="#faq"] { display: none; }
  .tool-panel { padding: 18px; }
}
