/* PrepBank — mobile-first, accessible, type-driven styling.
   No image generation available (CAPABILITIES), so design is done with
   type, layout and CSS only. */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #1c1b18;
  --ink-soft: #4b4a45;
  --line: #e3e1da;
  --accent: #1f5d4f;
  --accent-ink: #ffffff;
  --accent-soft: #e9f2ee;
  --warn: #8a5a00;
  --warn-soft: #fdf3e2;
  --ok: #1f6b3a;
  --ok-soft: #e9f4ed;
  --err: #9c2b1f;
  --err-soft: #fdeceb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 18, 12, 0.06), 0 8px 24px rgba(20, 18, 12, 0.06);
  --maxw: 1040px;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: #144036; }

:focus-visible {
  outline: 3px solid #2b7f6d;
  outline-offset: 2px;
  border-radius: 4px;
}

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

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 10px 16px; z-index: 50;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 12px;
}
.brand {
  font-weight: 800; letter-spacing: 0.2px; font-size: 1.15rem;
  color: var(--ink); text-decoration: none;
}
.brand .brand-mark { color: var(--accent); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-nav a:hover, .site-nav a:focus { color: var(--accent); }

/* Hero */
.hero { padding: 44px 0 28px; }
.hero .kicker {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
  font-weight: 700; color: var(--accent);
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12; margin: 10px 0 14px; letter-spacing: -0.01em;
}
.hero .subhead { font-size: 1.12rem; color: var(--ink-soft); max-width: 40rem; }

.disclaimer {
  display: inline-block; margin-top: 14px;
  background: var(--warn-soft); color: var(--warn);
  border: 1px solid #ecd9b4; font-weight: 600; font-size: 0.92rem;
  padding: 7px 12px; border-radius: 999px;
}

/* Cards / blocks */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}
.hero-actions { margin-top: 26px; }
.hero-actions .card { padding: 24px; }

.eyebrow {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.75rem; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px;
}

/* Email gate form */
.gate-form { display: grid; gap: 12px; margin-top: 16px; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row .email-input { flex: 1 1 240px; }

.input {
  font: inherit; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); width: 100%;
}
.input:focus { border-color: var(--accent); }

.fineprint { font-size: 0.85rem; color: var(--ink-soft); margin: 12px 0 0; }
.gate-status { font-size: 0.9rem; min-height: 1.2em; margin: 8px 0 0; }
.gate-status.busy { color: var(--ink-soft); }
.gate-status.error { color: var(--err); font-weight: 600; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 700; cursor: pointer;
  padding: 13px 20px; border-radius: 10px;
  border: 1.5px solid transparent; text-decoration: none;
  transition: transform 0.04s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #174a3e; color: #fff; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--accent); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn:disabled, .btn[aria-disabled="true"] {
  background: var(--line); color: var(--ink-soft); cursor: not-allowed;
  border-color: var(--line);
}

.payment-note {
  display: block; margin-top: 10px; font-size: 0.9rem; font-weight: 600;
  color: var(--warn); background: var(--warn-soft);
  border: 1px solid #ecd9b4; border-radius: 8px; padding: 8px 12px;
}

/* Gate success box */
.gate-success {
  margin-top: 18px; background: var(--ok-soft); border: 1px solid #bfe0c9;
  border-radius: var(--radius); padding: 18px;
}
.gate-success[hidden] { display: none; }
.gate-success h3 { margin: 0 0 8px; color: var(--ok); }
.gate-success .downloads { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.gate-success .note { font-size: 0.88rem; color: var(--ink-soft); margin: 8px 0 0; }

/* Sections */
.section { padding: 30px 0; }
.section h2 { font-size: 1.5rem; margin: 0 0 14px; letter-spacing: -0.01em; }
.section .lead { color: var(--ink-soft); font-size: 1.05rem; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

ul.dashlist { padding-left: 20px; }
ul.dashlist li { margin: 8px 0; }

ol.howto { padding-left: 20px; }
ol.howto li { margin: 10px 0; }
.howto strong { color: var(--ink); }

.cta-band {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px; text-align: center;
}
.cta-band h2 { margin: 0 0 10px; }

/* Sample doc */
.sample-doc { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.sample-doc h1 { font-size: 1.6rem; margin: 0 0 10px; }
.sample-doc h2 { font-size: 1.2rem; margin-top: 26px; padding-top: 10px;
  border-top: 1px solid var(--line); }
.sample-doc p { margin: 10px 0; }
.sample-doc strong { color: var(--ink); }
.sample-doc ul, .sample-doc ol { padding-left: 22px; }
.sample-doc li { margin: 6px 0; }
.sample-doc pre {
  background: #10131a; color: #e6e8ef; padding: 16px; border-radius: 10px;
  overflow-x: auto; font-size: 0.86rem; line-height: 1.5;
}
.sample-doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.sample-doc p code, .sample-doc li code, .sample-doc strong code {
  background: #eef0f2; color: #14302a; padding: 1px 5px; border-radius: 5px; font-size: 0.9em;
}
.sample-doc blockquote {
  margin: 12px 0; padding: 8px 16px; border-left: 3px solid var(--accent);
  background: var(--accent-soft); color: var(--ink-soft); border-radius: 0 8px 8px 0;
}

.sample-cta { margin-top: 22px; }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin: 12px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem;
  list-style: none; position: relative; padding-right: 26px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 4px; color: var(--accent);
  font-weight: 800; font-size: 1.2rem;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .answer { margin-top: 10px; color: var(--ink-soft); }

/* Privacy placeholder */
.placeholder-callout {
  background: var(--warn-soft); border: 1px solid #ecd9b4; color: var(--warn);
  border-radius: var(--radius); padding: 18px 20px; font-weight: 600; margin: 18px 0;
}
.prose { max-width: 46rem; }
.prose h2 { margin-top: 26px; }
.prose h3 { margin-top: 18px; }
.prose p, .prose li { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* Footer */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 30px 0; margin-top: 30px; font-size: 0.9rem; color: var(--ink-soft);
}
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer .sign { font-weight: 700; color: var(--ink); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover, .site-footer a:focus { color: var(--accent); }

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