/* ==========================================================================
   EasyPDFTools — core stylesheet
   Lightweight, mobile-first, no external fonts or icon libraries.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --blue-light: #3b82f6;
  --blue-tint: #eff6ff;
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --purple-tint: #f5f3ff;
  --ink: #0f172a;
  --body: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --bg: #f8fafc;
  --white: #ffffff;
  --green: #15803d;
  --green-tint: #f0fdf4;
  --red: #b91c1c;
  --red-tint: #fef2f2;
  --amber: #b45309;
  --amber-tint: #fffbeb;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px rgba(15, 23, 42, .06);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, .10);
  --ring: 0 0 0 3px rgba(37, 99, 235, .28);
  --container: 1120px;
  --header-h: 68px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.4rem, 2.8vw, 2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .4rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .5); outline-offset: 2px; border-radius: 6px; }
::selection { background: #dbeafe; color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section--tight { padding: 36px 0; }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.16rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-accent { color: var(--blue); }
.brand-mark { flex: 0 0 auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--body); font-weight: 600; font-size: .94rem;
  padding: 9px 14px; border-radius: 9px; transition: background .15s, color .15s;
}
.site-nav a:hover { background: var(--blue-tint); color: var(--blue-dark); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--blue-dark); background: var(--blue-tint); }
.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); cursor: pointer; padding: 0; align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .18s;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .97rem; font-weight: 650; line-height: 1.2;
  padding: 13px 24px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .16s, box-shadow .16s, transform .06s, border-color .16s, color .16s;
  min-height: 48px; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 12px rgba(29, 78, 216, .22); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 18px rgba(29, 78, 216, .3); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--blue-light); color: var(--blue-dark); background: #fbfdff; }
.btn-ghost { background: transparent; color: var(--blue); border-color: transparent; padding-inline: 12px; }
.btn-ghost:hover { background: var(--blue-tint); }
.btn-lg { padding: 16px 32px; font-size: 1.03rem; min-height: 54px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .55; cursor: not-allowed; box-shadow: none; transform: none;
}
.btn-danger-ghost { background: transparent; color: var(--red); border-color: transparent; font-size: .9rem; padding: 8px 10px; min-height: 38px; }
.btn-danger-ghost:hover { background: var(--red-tint); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(124, 58, 237, .10), transparent 70%),
    radial-gradient(760px 420px at 8% 0%, rgba(37, 99, 235, .10), transparent 68%),
    var(--white);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 48px; padding: 68px 0 76px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue-tint); color: var(--blue-dark);
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px; margin-bottom: 20px; border: 1px solid #dbeafe;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .grad { background: linear-gradient(100deg, var(--blue) 10%, var(--purple) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--body); max-width: 30em; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: 100%; max-width: 440px; height: auto; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 44px 0 52px; text-align: left; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
}

/* ---------- Tool cards ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tool-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 26px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #dbeafe; }
.tool-icon {
  width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  background: var(--blue-tint); color: var(--blue); margin-bottom: 18px; flex: 0 0 auto;
}
.tool-card:nth-child(2) .tool-icon { background: var(--purple-tint); color: var(--purple); }
.tool-card:nth-child(3) .tool-icon { background: #ecfdf5; color: #047857; }
.tool-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.tool-card p { color: var(--body); font-size: .95rem; margin-bottom: 22px; }
.tool-card .btn { margin-top: auto; align-self: flex-start; }
.tool-tag {
  position: absolute; top: 18px; right: 18px; font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tool-grid { grid-template-columns: 1fr; } }

/* ---------- Benefits ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.benefit {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 14px; align-items: flex-start;
}
.benefit .ico { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.benefit h3 { font-size: 1rem; margin-bottom: 4px; }
.benefit p { font-size: .9rem; margin: 0; color: var(--muted); }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .benefit-grid { grid-template-columns: 1fr; } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff;
  font-weight: 700; font-size: .95rem; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .93rem; color: var(--muted); }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0; margin-bottom: 10px; overflow: hidden;
}
.faq details[open] { border-color: #bfdbfe; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 52px 17px 20px;
  font-weight: 650; color: var(--ink); position: relative; font-size: .98rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: #fbfdff; }
.faq .faq-body { padding: 0 20px 18px; color: var(--body); font-size: .95rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---------- Tool page ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--white), var(--bg));
  border-bottom: 1px solid var(--line); padding: 34px 0 40px;
}
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.page-hero h1 { margin-bottom: 10px; }
.page-hero .lede { font-size: 1.03rem; color: var(--body); max-width: 62ch; margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600;
  background: var(--white); border: 1px solid var(--line); color: var(--muted);
  border-radius: 999px; padding: 5px 12px;
}
.chip svg { flex: 0 0 auto; }

.tool-shell {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px;
}
@media (max-width: 640px) { .tool-shell { padding: 18px; border-radius: var(--radius); } }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line-strong); border-radius: var(--radius);
  background: #fbfdff; padding: 44px 24px; text-align: center; cursor: pointer;
  transition: border-color .16s, background .16s; display: block; width: 100%;
  font-family: inherit; color: inherit;
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--blue-light); background: var(--blue-tint); }
.dropzone.is-dragover { border-color: var(--blue); background: var(--blue-tint); box-shadow: inset 0 0 0 3px rgba(37, 99, 235, .08); }
.dropzone-icon {
  width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px;
  display: grid; place-items: center; background: var(--white); color: var(--blue);
  border: 1px solid #dbeafe; box-shadow: var(--shadow-sm);
}
.dropzone-title { font-weight: 700; color: var(--ink); font-size: 1.06rem; margin-bottom: 4px; }
.dropzone-title .link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.dropzone-hint { font-size: .87rem; color: var(--muted); margin: 0; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* File list */
.file-panel { margin-top: 22px; }
.file-panel[hidden] { display: none; }
.file-panel-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
}
.file-panel-head h2, .file-panel-head h3 { font-size: .95rem; margin: 0; color: var(--ink); }
.file-count { color: var(--muted); font-weight: 500; }
.file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.file-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 12px;
}
.file-thumb {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 8px; overflow: hidden;
  background: var(--bg); display: grid; place-items: center; border: 1px solid var(--line);
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-thumb .pdf-glyph { color: var(--red); }
.file-meta { min-width: 0; flex: 1 1 auto; }
.file-name {
  display: block; font-weight: 600; color: var(--ink); font-size: .92rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-size { font-size: .8rem; color: var(--muted); }
.file-actions { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.icon-btn {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px;
  border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer;
  transition: background .14s, color .14s, border-color .14s; padding: 0;
}
.icon-btn:hover { background: var(--bg); color: var(--ink); border-color: var(--line); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn.danger:hover { background: var(--red-tint); color: var(--red); border-color: #fecaca; }
.file-index {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 6px; background: var(--blue-tint);
  color: var(--blue-dark); font-size: .74rem; font-weight: 700; display: grid; place-items: center;
}

/* Settings */
.settings { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; }
.settings-title { font-size: .95rem; font-weight: 700; color: var(--ink); margin: 0 0 14px; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .field-grid { grid-template-columns: 1fr; } }
.field label, .field-label { display: block; font-size: .84rem; font-weight: 650; color: var(--ink); margin-bottom: 6px; }
.field select, .field input[type="number"] {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 12px; min-height: 46px; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
.field select:focus, .field input:focus { border-color: var(--blue-light); outline: none; box-shadow: var(--ring); }
.field select:disabled { opacity: .6; cursor: not-allowed; background-color: var(--bg); }
.field-note { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }

/* Radio cards (compression levels) */
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .radio-cards { grid-template-columns: 1fr; } }
.radio-card { position: relative; display: block; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-card .rc-body {
  display: block; height: 100%;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--white);
  padding: 16px 16px 15px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.radio-card input:checked + .rc-body { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 0 0 1px var(--blue); }
.radio-card input:focus-visible + .rc-body { box-shadow: var(--ring); }
.radio-card .rc-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 700; color: var(--ink); font-size: .95rem; margin-bottom: 6px; }
.radio-card .rc-dot {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); flex: 0 0 auto; position: relative;
}
.radio-card input:checked + .rc-body .rc-dot { border-color: var(--blue); }
.radio-card input:checked + .rc-body .rc-dot::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--blue);
}
.radio-card .rc-desc { display: block; font-size: .82rem; line-height: 1.5; color: var(--muted); margin: 0 0 0 24px; }
.rc-badge {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; background: var(--purple-tint); color: var(--purple);
  border-radius: 5px; padding: 2px 6px; margin-left: auto;
}

/* Action bar */
.action-bar { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.action-bar .btn-primary { min-width: 200px; }
.action-hint { font-size: .84rem; color: var(--muted); margin: 0; }

/* Progress */
.progress-wrap { margin-top: 18px; }
.progress-wrap[hidden] { display: none; }
.progress-label { display: flex; justify-content: space-between; font-size: .84rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.progress-track { height: 9px; background: #e8eefb; border-radius: 999px; overflow: hidden; }
.progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  transition: width .25s ease;
}
.progress-bar.indeterminate { width: 35%; animation: indet 1.1s ease-in-out infinite; }
@keyframes indet { 0% { margin-left: 0; } 50% { margin-left: 65%; } 100% { margin-left: 0; } }

/* Alerts */
.alert {
  display: flex; gap: 10px; align-items: flex-start;
  border-radius: 11px; padding: 13px 15px; font-size: .9rem; margin-top: 16px;
  border: 1px solid transparent;
}
.alert[hidden] { display: none; }
.alert svg { flex: 0 0 auto; margin-top: 2px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert-error { background: var(--red-tint); border-color: #fecaca; color: #7f1d1d; }
.alert-success { background: var(--green-tint); border-color: #bbf7d0; color: #14532d; }
.alert-info { background: var(--blue-tint); border-color: #dbeafe; color: #1e3a8a; }
.alert-warn { background: var(--amber-tint); border-color: #fde68a; color: #78350f; }

/* Result panel */
.result {
  margin-top: 22px; border: 1px solid #bbf7d0; background: var(--green-tint);
  border-radius: var(--radius); padding: 20px;
}
.result[hidden] { display: none; }
.result-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.result-head h2, .result-head h3 { margin: 0; font-size: 1.02rem; color: #14532d; }
.result-head .ok-badge {
  width: 30px; height: 30px; border-radius: 50%; background: #dcfce7; color: var(--green);
  display: grid; place-items: center; flex: 0 0 auto;
}
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 560px) { .stat-grid { grid-template-columns: 1fr; } }
.stat { background: var(--white); border: 1px solid #d1fae5; border-radius: 10px; padding: 12px 14px; }
.stat-label { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.stat-value { display: block; font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.stat-value.good { color: var(--green); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Content pages ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.08rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose .updated { font-size: .86rem; color: var(--muted); }
.card-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .card-panel { padding: 22px; } }

/* Other tools strip */
.other-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .other-tools { grid-template-columns: 1fr; } }
.other-tool {
  display: flex; align-items: center; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.other-tool:hover { text-decoration: none; border-color: #dbeafe; box-shadow: var(--shadow); transform: translateY(-2px); }
.other-tool .ot-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-tint); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.other-tool strong { display: block; color: var(--ink); font-size: .97rem; }
.other-tool span { font-size: .84rem; color: var(--muted); }

/* All tools page */
.tool-card.coming { opacity: .78; }
.tool-card.coming:hover { transform: none; box-shadow: var(--shadow-sm); border-color: var(--line); }
.tool-card.coming .tool-icon { background: var(--bg); color: var(--muted); }
.badge-soon {
  display: inline-flex; align-items: center; font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue) 55%, var(--purple));
  border-radius: var(--radius-lg); padding: 42px 32px; text-align: center; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 52ch; margin: 0 auto 22px; }
.cta-band .btn-secondary { background: #fff; color: var(--blue-dark); border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); margin-top: 64px; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding: 48px 20px 36px;
}
.footer-brand p { font-size: .9rem; color: var(--muted); max-width: 34ch; margin: 14px 0 0; }
.footer-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: var(--body); font-size: .92rem; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 18px 20px 24px;
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center;
}
.footer-bottom p { margin: 0; font-size: .84rem; color: var(--muted); }
.build-stamp { font-variant-numeric: tabular-nums; font-size: .78rem; color: #94a3b8; }
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 20px 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Utilities ---------- */
.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;
}
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
