/* ============ Backlog Desk ============ */
:root {
  --ink: #111827;
  --ink-soft: #374151;
  --muted: #6b7280;
  --paper: #fbfaf8;
  --paper-alt: #f4f1ec;
  --card: #ffffff;
  --line: #e7e2d9;
  --accent: #f59e0b;
  --accent-deep: #d97706;
  --accent-ink: #78350f;
  --ok: #15803d;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .08);
  --shadow-md: 0 6px 24px -6px rgba(17, 24, 39, .12);
  --shadow-lg: 0 24px 60px -18px rgba(17, 24, 39, .22);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent-deep); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: #1f2937; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 18px; font-size: .9rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 248, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark { color: var(--ink); display: inline-flex; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .lede {
  font-size: 1.22rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 30px;
}
.hero-copy h1 em {
  font-style: italic;
  color: var(--accent-deep);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-proof {
  list-style: none;
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero-proof li {
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-proof li::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero visual: stacked documents */
.hero-visual { display: flex; justify-content: center; }
.card-stack { position: relative; width: 100%; max-width: 380px; aspect-ratio: 1 / 1.05; }
.doc {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 20px 22px;
  width: 78%;
}
.doc-1 { top: 4%; left: 2%; transform: rotate(-4deg); z-index: 3; }
.doc-2 { top: 34%; left: 16%; transform: rotate(2.5deg); z-index: 2; }
.doc-3 { top: 62%; left: 4%; transform: rotate(-1.5deg); z-index: 1; }
.doc-head {
  display: flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--ink);
  margin-bottom: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.line {
  height: 9px;
  border-radius: 5px;
  background: linear-gradient(90deg, #eceae4, #f3f1ec);
  margin-bottom: 10px;
}
.w-90 { width: 90%; } .w-85 { width: 85%; } .w-80 { width: 80%; }
.w-70 { width: 70%; } .w-65 { width: 65%; } .w-60 { width: 60%; }
.stamp {
  position: absolute;
  right: 16px; bottom: 14px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ok);
  border: 1.5px solid currentColor;
  border-radius: 6px;
  padding: 3px 8px;
  transform: rotate(-6deg);
  opacity: .85;
}

/* ---------- Trust bar ---------- */
.trustbar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-alt);
}
.trustbar-inner {
  padding: 16px 24px;
  text-align: center;
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* ---------- Sections ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Steps */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; font-size: .98rem; }

/* Pricing */
.price-card {
  max-width: 460px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 38px 36px;
  text-align: center;
}
.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.price-name { font-weight: 600; color: var(--ink); }
.price-badge {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 4px 10px;
  border-radius: 999px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.price-amount-soon {
  font-size: 2.3rem;
  color: var(--accent-deep);
  padding: 14px 0 4px;
}
.price-cur { font-size: 1.6rem; vertical-align: 22%; margin-right: 2px; }
.price-per { font-size: 1.05rem; color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.price-desc { color: var(--muted); margin: 14px 0 24px; }
.price-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.price-list li {
  position: relative;
  padding: 7px 0 7px 30px;
  font-size: .97rem;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--ok);
  font-weight: 700;
}
.price-fine { font-size: .82rem; color: var(--muted); margin: 12px 0 0; }

/* Why */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 64px;
  align-items: center;
}
.why-copy p { font-size: 1.08rem; }
.checklist { list-style: none; margin: 26px 0 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 0 0 18px 30px;
  font-size: .99rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.why-panel {
  background: var(--ink);
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #e5e7eb;
  font-size: .95rem;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.panel-row:last-child { border-bottom: 0; }
.panel-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(245, 158, 11, .12);
  padding: 4px 10px;
  border-radius: 6px;
}
.panel-row.highlight { color: #fff; font-weight: 600; }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--accent-deep);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* Contact */
.contact { background: var(--paper-alt); border-top: 1px solid var(--line); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-copy p { font-size: 1.08rem; }
.contact-lines { list-style: none; margin: 22px 0 0; padding: 0; }
.contact-lines li { padding: 6px 0; font-size: 1.05rem; }
.contact-lines a { font-weight: 600; }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-status { font-size: .9rem; margin: 12px 0 0; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #b91c1c; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  background: var(--paper);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.footer-links a:hover { color: var(--ink); }
.footer-fine { margin: 0; font-size: .85rem; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .card-stack { max-width: 300px; }
  .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 44px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 68px 0; }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 24px 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 6px 0; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
  }
  .hero-cta .btn { width: 100%; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
