/* DocChase landing — shared styles. Mobile-first, system fonts, no external assets. */

:root {
  --ink: #16212c;
  --muted: #5b6b7b;
  --bg: #ffffff;
  --soft: #f4f7fa;
  --line: #dfe6ec;
  --brand: #1f4e8c;
  --brand-dark: #173a68;
  --ok: #0e7a55;
  --warn: #b54708;
  --radius: 12px;
  --maxw: 68rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3.8vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 0.9rem; padding-bottom: 0.9rem; gap: 1rem;
}
.logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo .dot { color: var(--brand); }
.site-nav { display: none; gap: 1.25rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--ink); }
@media (min-width: 720px) { .site-nav { display: flex; align-items: center; } }

/* Buttons */
.btn {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px;
  background: var(--brand); color: #fff; text-decoration: none; font-weight: 700;
  border: 0; font-size: 1rem; cursor: pointer;
}
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-ghost {
  display: inline-block; padding: 0.8rem 1.5rem; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Hero */
.hero { padding: 3.5rem 0 2.5rem; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--brand); background: var(--soft);
  border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.9rem; margin-bottom: 1.1rem;
}
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }
.hero-note { margin-top: 0.75rem; }

/* Sections */
section { padding: 3rem 0; }
section.soft { background: var(--soft); }
.section-lead { color: var(--muted); max-width: 44rem; margin-bottom: 2rem; }

/* Quote cards */
.quotes { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 0; padding: 0; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem; margin: 0; display: flex; flex-direction: column; gap: 0.6rem;
}
section.soft .quote { background: #fff; }
.quote p { margin: 0; font-size: 1rem; }
.quote p::before { content: "\201C"; color: var(--brand); font-weight: 800; }
.quote p::after { content: "\201D"; color: var(--brand); font-weight: 800; }
.quote footer { font-size: 0.85rem; color: var(--muted); }
.quote footer a { color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li {
  counter-increment: step; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem;
}
section.soft .steps li { background: #fff; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 1.8rem; height: 1.8rem;
  border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700;
  align-items: center; justify-content: center; margin-bottom: 0.6rem; font-size: 0.95rem;
}
.steps h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.steps p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Feature cards */
.cards { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem;
}
section.soft .card { background: #fff; }
a.card-link { display: block; text-decoration: none; color: inherit; }
a.card-link:hover { border-color: var(--brand); box-shadow: 0 4px 18px rgba(31, 78, 140, 0.10); }
a.card-link h3 { color: var(--brand); }
.card .tag {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ok); background: #e8f5ef; border-radius: 6px;
  padding: 0.15rem 0.5rem; margin-bottom: 0.6rem;
}
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Comparison table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.compare { border-collapse: collapse; width: 100%; min-width: 34rem; background: #fff; }
table.compare th, table.compare td { padding: 0.8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--soft); font-size: 0.95rem; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare td.yes { color: var(--ok); font-weight: 700; }
table.compare td.no { color: var(--muted); }
table.compare td small { color: var(--muted); font-weight: 400; }

/* Pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: 1fr; max-width: 46rem; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.plan.featured { border-color: var(--brand); box-shadow: 0 4px 18px rgba(31, 78, 140, 0.10); }
.plan .price { font-size: 2.1rem; font-weight: 800; letter-spacing: -0.02em; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0 0 1rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.plan .btn { text-align: center; margin-top: auto; }

/* Waitlist */
.waitlist-box {
  background: var(--brand); color: #fff; border-radius: var(--radius);
  padding: 2rem 1.5rem; max-width: 46rem;
}
.waitlist-box h2 { color: #fff; }
.waitlist-box p { color: #dbe6f4; }
.waitlist-form { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
@media (min-width: 560px) { .waitlist-form { flex-direction: row; } }
.waitlist-form input[type="email"] {
  flex: 1; padding: 0.8rem 1rem; border-radius: 999px; border: 1px solid transparent;
  font-size: 1rem; min-width: 0;
}
.waitlist-form button { background: #10233c; }
.waitlist-form button:hover { background: #0a1830; }
/* Links on dark/colored panels must stay visible: white + underline (contrast ~8:1 on --brand). */
.waitlist-box a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.waitlist-box a:not(.btn):hover { color: #dbe6f4; }
.hp-field {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden; user-select: none; -webkit-user-select: none; pointer-events: none;
}
#waitlist-msg { margin-top: 0.75rem; font-weight: 600; min-height: 1.4em; }
#waitlist-msg.ok { color: #b7f4d8; }
#waitlist-msg.err { color: #ffd7c9; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.9rem 0; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; margin-top: 1rem; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.875rem; }
.site-footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); font-size: 0.875rem; }

/* Legal pages */
.legal { max-width: 46rem; padding: 3rem 0; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal li { margin-bottom: 0.4rem; }
