/* ============================================================
   PDF Cracker — site stylesheet
   Minimal, lightweight, responsive. No framework.
   ============================================================ */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-ink: #0f172a;
  --green: #16a34a;
  --green-dark: #15803d;
  --amber: #b45309;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--brand-ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--brand-ink); color: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.15rem; color: var(--brand-ink);
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 6px; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--text); font-weight: 500; font-size: .95rem;
}
.nav-links a:hover { background: var(--bg-soft); color: var(--brand); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--brand); }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: 8px; padding: 8px 12px; font-size: 1.2rem; line-height: 1;
  color: var(--brand-ink); cursor: pointer;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); }

.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--bg-soft); }

.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.hero h1 { margin-bottom: .4em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 24px; }
.hero-facts { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; font-size: .9rem; color: var(--muted); }
.hero-facts span { display: inline-flex; align-items: center; gap: 6px; }
.hero-art { text-align: center; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Sections ---------- */

.section { padding: 48px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 46rem; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 8px;
}

/* ---------- Grids & cards ---------- */

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

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }

.feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: #eff6ff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-icon svg { width: 24px; height: 24px; }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; }
.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: 12px;
}

/* ---------- Notice / callouts ---------- */

.notice {
  border: 1px solid #fde68a; background: #fffbeb; color: #78350f;
  border-radius: var(--radius); padding: 16px 18px; font-size: .95rem;
}
.notice strong { color: #78350f; }
.notice.info { border-color: #bfdbfe; background: #eff6ff; color: #1e3a8a; }
.notice.info strong { color: #1e3a8a; }

/* ---------- Table ---------- */

.table-wrap { overflow-x: auto; }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.spec th, table.spec td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line);
}
table.spec th { width: 34%; color: var(--brand-ink); font-weight: 600; background: var(--bg-soft); }
table.spec td { color: var(--text); }

/* ---------- Pricing ---------- */

.pricing { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.plan {
  border: 2px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: #fff; position: relative;
}
.plan.selected { border-color: var(--brand); box-shadow: var(--shadow); }
.plan .price { font-size: 2rem; font-weight: 800; color: var(--brand-ink); }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan .was { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.plan ul { margin: 16px 0; padding-left: 20px; }
.plan input[type="radio"] { margin-right: 8px; }
.badge-save {
  position: absolute; top: -12px; right: 20px; background: var(--green); color: #fff;
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}

/* ---------- Forms ---------- */

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--brand-ink); }
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--text);
}
.form-field input:focus, .form-field textarea:focus {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--brand-ink); color: #cbd5e1; padding: 48px 0 32px;
  font-size: .93rem;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr 1fr; }
.site-footer h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: #94a3b8;
}

/* ---------- Misc ---------- */

.muted { color: var(--muted); }
.center { text-align: center; }
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
.article { max-width: 46rem; }
.article img { border-radius: 8px; border: 1px solid var(--line); }

.figure { text-align: center; margin: 24px 0; }
.figure img { border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.figure figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }

ol.steps-list { padding-left: 20px; }
ol.steps-list li { margin-bottom: 20px; }

.breadcrumb { font-size: .85rem; color: var(--muted); padding: 18px 0 0; }
.breadcrumb a { color: var(--muted); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid, .steps { grid-template-columns: 1fr; }
  .grid-2, .pricing { grid-template-columns: 1fr; }
  .hero { padding: 36px 0 28px; }
  .section { padding: 36px 0; }

  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 8px; }
  .nav-cta { margin: 8px 0 0; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-facts { flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
