/* Paper Formatter — marketing site
   Restrained, research-credible. No marketing flash.
   Palette matches the app: dark-slate text, accent blue, soft greys. */

* { box-sizing: border-box; }

:root {
  --ink:        #1f2937;   /* primary text */
  --ink-soft:   #4b5563;   /* secondary text */
  --ink-muted:  #6b7280;   /* tertiary / captions */
  --accent:     #2980b9;   /* link / CTA */
  --accent-dk:  #1f6699;
  --done:       #28a745;
  --todo:       #dc3545;
  --blocker:    #c0392b;
  --rule:       #e5e7eb;
  --bg:         #ffffff;
  --bg-soft:    #f8f9fa;
  --bg-section: #fafbfc;
  --shadow:     0 1px 3px rgba(0, 0, 0, 0.04);
  --radius:     6px;
  --max-w:      860px;
}

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: "Charter", "Iowan Old Style", "Source Serif Pro",
               Georgia, "Times New Roman", serif;
  color: #2c3e50;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0;
  line-height: 1.25;
}
h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.5rem;  font-weight: 600; margin-top: 8px; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 24px; }

p { margin: 0 0 14px 0; }
.lead { font-size: 1.1rem; color: var(--ink-soft); }
.muted { color: var(--ink-muted); font-size: 0.9rem; }

ul, ol { padding-left: 22px; margin: 0 0 14px 0; }
li { margin: 4px 0; }

code {
  font-family: "SF Mono", Menlo, Monaco, Consolas, monospace;
  background: var(--bg-soft);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.92em;
}

/* ── Layout ───────────────────────────────────────────────────────────── */

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

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}
section:last-of-type { border-bottom: none; }
section.alt { background: var(--bg-section); }

/* ── Top bar ──────────────────────────────────────────────────────────── */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(6px);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand a { display: inline-block; line-height: 0; }
.brand-logo {
  display: block;
  height: 28px;
  width: auto;
}
@media (max-width: 640px) {
  .brand-logo { height: 24px; }
}
.topbar nav a {
  color: var(--ink-soft);
  margin-left: 22px;
  font-size: 0.95rem;
}
.topbar nav a:hover { color: var(--accent-dk); }

/* ── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 40px 0; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { max-width: 620px; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.hero-meta span strong { color: var(--ink); }

/* ── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; text-decoration: none; }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.btn-secondary:hover { background: var(--bg-soft); text-decoration: none; }
.btn-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Steps ────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}
.steps li {
  position: relative;
  padding: 14px 18px 14px 56px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  text-align: center;
  line-height: 28px;
  font-weight: 700;
  font-size: 0.9rem;
}
.steps strong { display: block; margin-bottom: 4px; color: var(--ink); }
.steps span { color: var(--ink-soft); font-size: 0.95rem; }

/* ── Sample report preview / screenshot frames ────────────────────────── */

.shot {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 18px 0 6px 0;
}
.shot-caption {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 22px 0;
}
.shot-placeholder {
  background: var(--bg-soft);
  border: 1px dashed #d0d7de;
  border-radius: var(--radius);
  padding: 36px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-style: italic;
  margin: 18px 0 6px 0;
}

/* ── Comparison / pricing ─────────────────────────────────────────────── */

.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 0.96rem;
}
.compare th, .compare td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.compare thead th {
  background: #f1f3f5;
  font-weight: 600;
  color: #2c3e50;
}
.compare td:first-child { color: var(--ink-soft); }

.pricing-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px 28px 24px 28px;
  box-shadow: var(--shadow);
  max-width: 460px;
  margin: 18px auto 0 auto;
}
.pricing-card h3 { margin-top: 0; }
.price {
  font-family: "Charter", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1;
  margin: 6px 0 4px 0;
}
.price small {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink-muted);
  margin-left: 6px;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 22px 0;
}
.pricing-card li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--ink-soft);
}
.pricing-card li::before {
  content: "✓";
  color: var(--done);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ── Journals list ────────────────────────────────────────────────────── */

.journals {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
}
.journals li {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.94rem;
}

/* ── Status markers (echoing the app) ─────────────────────────────────── */

.tag-done    { color: var(--done);    font-weight: 700; }
.tag-todo    { color: var(--todo);    font-weight: 700; }
.tag-blocker {
  background: var(--blocker);
  color: #fff;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq dt {
  font-weight: 600;
  color: #2c3e50;
  margin-top: 18px;
}
.faq dd {
  margin: 4px 0 0 0;
  color: var(--ink-soft);
}

/* ── Footer ───────────────────────────────────────────────────────────── */

footer {
  padding: 32px 0 40px 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--rule);
}
footer a { color: var(--ink-soft); margin-right: 18px; }
footer .copyright { float: right; }

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.3rem; }
  .hero { padding: 48px 0 28px 0; }
  section { padding: 40px 0; }
  .topbar nav a { margin-left: 14px; font-size: 0.88rem; }
  .journals { grid-template-columns: 1fr; }
  footer .copyright { float: none; display: block; margin-top: 8px; }
}
