:root {
  --bg: #f4efe6;
  --surface: #ffffff;
  --surface-soft: #faf7f1;
  --ink: #0a0a0a;
  --ink-soft: #4b5563;
  --ink-muted: #6b7280;
  --border: #e7e2d7;
  --divider: #ececec;
  --accent-blue: #1e3a8a;
  --accent-blue-2: #2563eb;
  --good: #16a34a;
  --danger: #dc2626;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
  --shadow: 0 4px 12px rgba(15,23,42,.06), 0 12px 32px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.14);
  --max: 1200px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "ss02";
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 .5rem; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); line-height: 1.1; margin-bottom: 1rem; }
h3 { font-size: 1.05rem; line-height: 1.3; }
p  { margin: .5rem 0; color: var(--ink-soft); }
.muted { color: var(--ink-muted); }
.muted.small, .small { font-size: .85rem; }
.center { text-align: center; }

.kicker {
  display: inline-block;
  padding: .35rem .8rem;
  background: rgba(15,23,42,.06);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.kicker.light {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
}

.lede {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 1rem auto 2rem;
}
.lede-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }

/* ========== Header ========== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  max-width: var(--max);
  margin: 1rem auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--ink); }
.brand-glyph { display: block; flex: 0 0 auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 1.05rem; font-weight: 700; }
.brand-sub { font-size: .76rem; color: var(--ink-muted); font-weight: 500; }
.brand-name-caps { letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--ink-muted); }

.site-nav { display: flex; gap: 1.4rem; align-items: center; font-size: .92rem; }
.site-nav a { color: var(--ink-soft); transition: color .15s; }
.site-nav a:hover { color: var(--ink); }
.site-nav .btn { color: #fff; }
.site-nav-link { cursor: pointer; }

/* ========== Language switcher ========== */
.lang-switcher { position: relative; }
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem .8rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  font: inherit;
  font-size: .9rem;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.lang-button:hover { color: var(--ink); border-color: var(--ink); }
.lang-globe { color: currentColor; }
.lang-caret { transition: transform .15s; }
.lang-switcher.is-open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  min-width: 200px;
  margin: 0;
  padding: .35rem;
  list-style: none;
  background: #1f2937;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0,0,0,.32);
  z-index: 50;
  display: none;
}
.lang-switcher.is-open .lang-menu { display: block; }
.lang-menu li {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .8rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  transition: background .12s, color .12s;
}
.lang-menu li:hover { background: rgba(255,255,255,.08); color: #fff; }
.lang-menu li.is-active {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-blue-2));
  color: #fff;
}
.lang-check {
  width: 14px;
  display: inline-flex;
  justify-content: center;
  font-size: .85rem;
  color: #fff;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s, background .2s, border-color .2s, color .2s, opacity .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-blue-2) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30,58,138,.25);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-outline { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-outline:hover:not(:disabled) { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover:not(:disabled) { filter: brightness(.98); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.14); }
.btn-lg { padding: 1rem 1.6rem; font-size: 1rem; }
.btn-sm { padding: .55rem 1rem; font-size: .88rem; }
.btn-block { width: 100%; }

/* ========== Main ========== */
main { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1.5rem 4rem; }

/* ========== Hero ========== */
.hero {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero h1 { max-width: 22ch; margin-left: auto; margin-right: auto; }
.hero .lede { margin-bottom: 1.5rem; }

/* Quota banner */
.quota-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 auto 1.5rem;
  max-width: 760px;
  padding: .75rem 1.1rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--ink);
  font-size: .95rem;
}
.quota-banner.quota-zero {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #78350f;
}
.quota-cta {
  font-weight: 600;
  color: var(--accent-blue-2);
  white-space: nowrap;
}
.quota-cta:hover { text-decoration: underline; }
.quota-banner.quota-zero .quota-cta { color: #b45309; }
.pro-status {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: .8rem 1.1rem;
  background: rgba(22,163,74,.1);
  border: 1px solid rgba(22,163,74,.26);
  border-radius: 14px;
  color: #166534;
  font-weight: 700;
}
.is-pro .quota-banner,
.is-pro .upsell,
.is-pro .site-nav .btn[href="#pricing"],
.is-pro .pricing .plans .plan:not(.plan-dark) {
  display: none !important;
}
.is-pro .pricing .plans-two {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}
.is-pro #activateLicenseLink {
  color: #166534;
  font-weight: 700;
}

/* Drop zone */
.drop-zone {
  margin: 0 auto;
  max-width: 880px;
  border: 2px dashed #d4cdbf;
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 3rem 1.5rem;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.drop-zone:focus { outline: none; border-color: var(--accent-blue-2); }
.drop-zone.is-drag { border-color: var(--accent-blue-2); background: #eef4ff; transform: scale(.997); }
.drop-inner { display: flex; flex-direction: column; align-items: center; gap: .6rem; color: var(--ink); }
.drop-glyph {
  width: 56px; height: 56px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink-soft);
}
.drop-title { font-size: 1.4rem; font-weight: 700; }
.drop-sub { color: var(--ink-muted); font-size: .95rem; }
.drop-trust {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .8rem;
  padding: .35rem .9rem;
  background: rgba(15,23,42,.05);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: .82rem;
}
.drop-zone .btn-lg { margin-top: .4rem; background: var(--ink); color: #fff; box-shadow: none; }

/* Controls */
.controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  margin: 1.5rem auto 0;
  max-width: 880px;
  box-shadow: var(--shadow-sm);
}
.control { display: flex; flex-direction: column; gap: .35rem; }
.control label { font-size: .88rem; font-weight: 600; color: var(--ink); }
.slider-row { display: flex; align-items: center; gap: .8rem; }
.slider-row input[type=range] { flex: 1; accent-color: var(--accent-blue-2); }
.slider-val { color: var(--ink-soft); width: 3rem; text-align: right; }
.control select {
  padding: .55rem .75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.control-actions { display: flex; gap: .6rem; }

/* Summary */
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .5rem;
  margin: 1.5rem auto 0;
  max-width: 880px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}
.summary-cell { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.summary-cell.accent span:last-child { color: var(--good); font-weight: 700; }
.summary-cell span:last-child { font-size: 1.05rem; font-weight: 700; }
.summary-label { font-size: .72rem; color: var(--ink-muted); letter-spacing: .04em; text-transform: uppercase; }

/* File list */
.file-list { margin: 1.5rem auto 0; max-width: 880px; display: flex; flex-direction: column; gap: .6rem; }
.file-row {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: .8rem;
  padding: .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.file-row.is-error { border-color: #fecaca; }
.file-row.is-working { background: var(--surface-soft); }
.file-thumb {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-soft);
}
.file-meta { display: flex; flex-direction: column; min-width: 0; }
.file-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { color: var(--ink-muted); font-size: .82rem; }
.file-saved { font-weight: 700; color: var(--good); }
.file-saved.bad { color: var(--danger); }
.file-actions { display: flex; gap: .35rem; }
.file-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: transparent;
}
.file-progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-blue-2));
  width: 0%;
  transition: width .2s;
}

/* Upsell */
.upsell {
  margin: 1.5rem auto 0;
  max-width: 880px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.upsell-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
  justify-content: space-between;
}
.upsell-inner strong { font-size: 1.05rem; }
.upsell-inner span { color: rgba(255,255,255,.75); font-size: .92rem; flex: 1 1 280px; }
.upsell .btn-primary {
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 6px 16px rgba(37,99,235,.4);
}

/* ========== Features ========== */
.features {
  margin: 4rem 0 0;
  padding: 0 .5rem;
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.feature h3 { margin-bottom: .5rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.feature a { color: var(--accent-blue-2); }

/* ========== Testimonials ========== */
.testimonials {
  margin: 4rem 0 0;
  text-align: center;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}
.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.stars { color: #f59e0b; letter-spacing: .15em; font-size: 1rem; }
.testimonial blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.55;
}
.testimonial cite {
  font-style: normal;
  display: flex;
  flex-direction: column;
  margin-top: auto;
}
.testimonial cite strong { font-weight: 700; }
.testimonial cite span { color: var(--ink-muted); font-size: .88rem; }

/* ========== Pricing ========== */
.pricing { margin: 4rem 0 0; text-align: center; }
.pricing-page { margin-top: 2rem; }
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
  text-align: left;
}
.plans-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .plans-two { grid-template-columns: 1fr; }
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}
.plan-head {
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
}
.plan h3 { font-size: 1.25rem; }
.price { display: flex; align-items: baseline; gap: .6rem; margin: .25rem 0 .5rem; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .period { color: var(--ink-muted); font-size: .95rem; }
.plan-badge {
  display: inline-block;
  align-self: flex-start;
  padding: .35rem .8rem;
  background: rgba(34,197,94,.14);
  color: #16a34a;
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.check-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.check-list li {
  position: relative;
  padding: .7rem .9rem .7rem 2.4rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: .92rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: .9rem; top: 50%;
  width: 18px; height: 18px;
  margin-top: -9px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat;
}

/* Featured / dark plan */
.plan-dark {
  background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
  color: #fff;
  border-color: #0a0a0a;
  box-shadow: var(--shadow-lg);
}
.plan-dark .plan-head { color: rgba(255,255,255,.6); }
.plan-dark .price .period { color: rgba(255,255,255,.65); }
.plan-dark .check-list li {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: #fff;
}
.plan-dark .plan-badge {
  background: rgba(34,197,94,.16);
  color: #4ade80;
}
.plan-dark .btn-primary {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  box-shadow: 0 8px 24px rgba(37,99,235,.45);
}

/* ========== FAQ ========== */
.faq { margin: 4rem 0 0; }
.faq h2 { text-align: center; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: .6rem;
  box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--ink-soft); margin: .8rem 0 0; }
.faq a { color: var(--accent-blue-2); }

/* ========== CTA Band ========== */
.cta-band {
  margin: 4rem 0 0;
  padding: 3rem 2.5rem;
  background: linear-gradient(180deg, #0a0a0a 0%, #111827 100%);
  color: #fff;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; max-width: 22ch; }
.cta-band .lede { color: rgba(255,255,255,.7); margin: 1rem 0 1.5rem; max-width: 60ch; }
.cta-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ========== Footer ========== */
.site-footer {
  max-width: var(--max);
  margin: 3rem auto 1.5rem;
  padding: 0 1.5rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) { .footer-main { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.brand-block { display: flex; align-items: center; gap: .8rem; }
.footer-col { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--ink-soft); font-size: .92rem; }
.footer-col a:hover { color: var(--ink); }
.footer-head {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: .35rem;
}
.social-icons { display: flex; gap: .5rem; }
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-soft);
  transition: color .15s, border-color .15s;
}
.social-icon:hover { color: var(--ink); border-color: var(--ink); }
.footer-bottom {
  text-align: center;
  margin-top: 1.2rem;
  color: var(--ink-muted);
  font-size: .85rem;
}

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: .75rem 1.2rem;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  max-width: 90vw;
  z-index: 50;
  font-size: .92rem;
}

/* ========== Page card (success / cancel) ========== */
.page-card {
  max-width: 600px;
  margin: 4rem auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.page-card h1 { margin-bottom: .8rem; }
.page-card p { color: var(--ink-soft); }

/* License card */
.license-card {
  margin: 1.5rem 0;
  padding: 1.2rem 1.4rem;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
}
.license-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin-bottom: .6rem;
}
.license-key-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .6rem; }
.license-key-row code {
  flex: 1 1 auto;
  padding: .65rem .9rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1rem;
  letter-spacing: .04em;
  word-break: break-all;
  color: var(--ink);
}

/* ========== Modal ========== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.45); backdrop-filter: blur(3px); }
.modal-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  width: min(460px, 92vw);
  z-index: 1;
}
.modal-card h2 { margin: 0 0 .5rem; font-size: 1.4rem; }
.modal-card label { display: block; margin: 1rem 0 .35rem; font-weight: 600; font-size: .9rem; }
.modal-card input[type=email],
.modal-card input[type=text] {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface-soft);
  color: var(--ink);
}
.modal-card input:focus { outline: none; border-color: var(--accent-blue-2); background: var(--surface); box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.modal-card .small { font-size: .8rem; margin-top: .35rem; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--surface-soft); cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--ink-soft);
}
.modal-close:hover { color: var(--ink); border-color: var(--ink); }
.modal-actions { display: flex; gap: .6rem; margin-top: 1.4rem; }
.modal-actions .btn { flex: 1; }
.modal-error {
  margin-top: .8rem;
  padding: .7rem .9rem;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  color: #991b1b;
  font-size: .9rem;
}

/* ========== Responsive ========== */
@media (max-width: 700px) {
  .site-header { border-radius: var(--radius); flex-wrap: wrap; }
  .site-nav { flex-wrap: wrap; gap: .8rem 1rem; font-size: .88rem; }
  .hero { padding: 2rem 1.2rem; }
  .controls { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .file-row { grid-template-columns: 48px 1fr auto; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
