:root {
  --ink: #0b1b16;
  --ink-2: #3b4f48;
  --ink-3: #6d7d77;
  --bg: #fbfaf7;
  --surface: #ffffff;
  --line: #e4e3dc;
  --line-strong: #d2d1c8;
  --primary: #106b4f;
  --primary-dark: #0a4a36;
  --primary-soft: #eaf3ef;
  --accent: #c6f24e;
  --warn: #b45309;
  --danger: #b42318;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 27, 22, 0.04), 0 8px 24px rgba(11, 27, 22, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.9);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14.5px;
}
.nav a:not(.btn) { color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: none; }
.nav .btn-primary,
.nav .btn-primary:hover { color: #fff; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(10, 74, 54, 0.2);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: #f3f2ec; }

.btn-sm { padding: 8px 14px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 48px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 320px at 80% -10%, rgba(198, 242, 78, 0.22), transparent 65%),
    var(--bg);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid #d5e6de;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 22px;
}

h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  font-weight: 780;
  max-width: 15ch;
}

h1 em {
  font-style: normal;
  background: linear-gradient(180deg, transparent 62%, var(--accent) 62%);
  padding: 0 2px;
}

.lede {
  font-size: 18.5px;
  color: var(--ink-2);
  max-width: 56ch;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.55;
}

/* ---------- sections ---------- */
section { padding: 64px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
  font-weight: 720;
  line-height: 1.2;
}

.section-sub {
  color: var(--ink-2);
  max-width: 62ch;
  margin: 0 0 36px;
  font-size: 16.5px;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}

.step-num {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
}

.step h3 {
  font-size: 17px;
  margin: 0 0 8px;
  font-weight: 660;
  letter-spacing: -0.015em;
}

.step p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- audience ---------- */
.audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.aud-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aud-icon {
  flex: 0 0 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary-soft);
  display: grid;
  place-items: center;
  font-size: 17px;
}

.aud-card h4 {
  margin: 0 0 4px;
  font-size: 15.5px;
  font-weight: 660;
}
.aud-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ---------- bank chips ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 13.5px;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 500;
}

a.chip { color: var(--ink-2); }
a.chip:hover {
  border-color: var(--primary);
  color: var(--ink);
  text-decoration: none;
}

.note {
  font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 18px;
}

/* ---------- faq ---------- */
.faq { max-width: 800px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
details[open] { padding-bottom: 22px; }

summary {
  cursor: pointer;
  font-weight: 620;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-weight: 400;
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
}
details[open] summary::after { content: "\2212"; }

details p {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  max-width: 72ch;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-3); }
.footer-links a:hover { color: var(--ink); }

/* ---------- app / converter ---------- */
.app-shell { padding: 40px 0 80px; }

.app-head { margin-bottom: 28px; }
.app-head h1 { font-size: clamp(26px, 3vw, 36px); max-width: none; margin-bottom: 10px; }
.app-head p { color: var(--ink-2); margin: 0; font-size: 16px; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dropzone {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 52px 24px;
  text-align: center;
  background: var(--bg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover,
.dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone h3 {
  margin: 14px 0 6px;
  font-size: 17px;
  font-weight: 660;
}
.dropzone p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13.5px;
}
.drop-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto;
  border-radius: 12px;
  background: var(--primary);
  display: grid;
  place-items: center;
  color: #fff;
}

.panel-body { padding: 24px; }

.formats {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.fmt {
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f0efe9;
  color: var(--ink-2);
  border: 1px solid var(--line);
}

/* progress */
.status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid #d5e6de;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.status.error {
  background: #fdf2f0;
  border-color: #f3d6d1;
  color: var(--danger);
}
.status.warn {
  background: #fdf8ec;
  border-color: #f0e2c4;
  color: var(--warn);
}

.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(16, 107, 79, 0.25);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* result */
.result { margin-top: 28px; }

.result-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.result-stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  font-weight: 600;
}
.stat-value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow: auto;
  max-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
table.data th {
  position: sticky;
  top: 0;
  background: #f6f5f0;
  text-align: left;
  padding: 10px 14px;
  font-weight: 650;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  z-index: 1;
}
table.data td {
  padding: 9px 14px;
  border-bottom: 1px solid #f0efe9;
  white-space: nowrap;
  color: var(--ink);
}
table.data tr:last-child td { border-bottom: none; }
table.data td.num { text-align: right; font-family: var(--mono); font-size: 12.5px; }
table.data td.neg { color: var(--danger); }
table.data td.pos { color: var(--primary); }

.result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.plan.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), var(--shadow);
  position: relative;
}
.plan-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.plan h3 { margin: 0 0 6px; font-size: 17px; font-weight: 660; }
.plan .price {
  font-size: 36px;
  font-weight: 760;
  letter-spacing: -0.03em;
  margin: 0 0 2px;
  line-height: 1.1;
}
.plan .price span { font-size: 15px; font-weight: 500; color: var(--ink-3); }
.plan .price-desc { font-size: 13.5px; color: var(--ink-3); margin: 0 0 20px; }
.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.plan ul li {
  padding: 7px 0 7px 24px;
  position: relative;
  line-height: 1.45;
}
.plan ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }

/* utilities */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- long-tail pages ---------- */
.breadcrumb {
  padding: 13px 0;
  font-size: 12.5px;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.breadcrumb .wrap { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-3); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .crumb-current { color: var(--ink-2); font-weight: 500; }

.hero.compact { padding: 44px 0 36px; }
.h1-page { font-size: clamp(27px, 3.5vw, 41px); max-width: 22ch; }

.prose { padding: 54px 0; }
.prose h2 { margin: 0 0 10px; }
.prose .wrap > h2:not(:first-child) { margin-top: 46px; }
.prose p {
  color: var(--ink-2);
  max-width: 72ch;
  font-size: 16px;
  line-height: 1.68;
  margin: 0 0 14px;
}
.prose ul {
  max-width: 72ch;
  color: var(--ink-2);
  padding-left: 20px;
  margin: 0;
}
.prose ul li { margin: 9px 0; line-height: 1.6; }
.prose .table-scroll { background: var(--surface); }

.link-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.link-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, transform 0.12s ease;
}
.link-card:hover {
  border-color: var(--primary);
  text-decoration: none;
  transform: translateY(-1px);
}
.link-card-title { font-weight: 640; font-size: 15px; color: var(--ink); }
.link-card-desc { font-size: 13px; color: var(--ink-3); line-height: 1.45; }

.try-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 42px 24px;
  box-shadow: var(--shadow);
}
.try-box h2 { margin: 0 0 10px; }
.try-box p {
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 auto 24px;
  font-size: 16px;
}

@media (max-width: 860px) {
  .steps, .plans, .link-cards { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .nav { gap: 16px; font-size: 14px; }
  .nav .nav-hide { display: none; }
  .hero { padding: 48px 0 36px; }
  .hero.compact { padding: 32px 0 28px; }
  section { padding: 48px 0; }
  .prose { padding: 40px 0; }
}
