/* Pull Ahead AI. One stylesheet, mobile-first. Palette and font: see brand.md */
:root {
  --green: #166534;      /* Lead Green: buttons, links, accents */
  --green-dark: #14532d; /* hover */
  --ink: #1C1F1D;        /* text, dark sections */
  --paper: #FAF8F2;      /* page background */
  --tint: #4ADE80;       /* accent on Ink backgrounds only */
  --muted: #4B524E;      /* secondary text (7.5:1 on Paper) */
  --line: #E4E1D8;
  --card: #FFFFFF;
  --radius: 12px;
  --max: 68rem;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: 0.15em; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.4em; }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--paper); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: 0.5rem; top: 0.5rem; color: var(--paper); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand img { width: 180px; }
.nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; padding: 0; }
.nav li { margin: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.35rem 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--green); text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; background: var(--green); color: #fff; font-weight: 700;
  text-decoration: none; padding: 0.85rem 1.4rem; border-radius: 999px; border: 2px solid var(--green);
  min-height: 44px;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green); }
.btn-ghost:hover { background: var(--green); color: #fff; }

/* Sections */
section { padding: 3rem 0; }
.hero { padding: 3.5rem 0 3rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }
.kicker { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--green); margin-bottom: 0.75rem; }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--paper); }
.dark a { color: var(--tint); }
.dark .kicker { color: var(--tint); }
.dark .btn { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.dark .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.grid { display: grid; gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.alt .card { background: var(--paper); }
.card h3, .card .h3 { margin-bottom: 0.4em; }
.h3 { font-size: 1.2rem; font-weight: 700; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.price { font-size: 2.5rem; font-weight: 800; line-height: 1; margin: 0.25rem 0 0.5rem; }
.checks { list-style: none; padding: 0; }
.checks li { padding-left: 1.75rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.55rem; height: 0.9rem; border: solid var(--green); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.25rem; margin-bottom: 1.25rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }

.quote-box { border-left: 5px solid var(--green); background: var(--card); padding: 1.25rem 1.4rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: 1.15rem; }
.notice { border: 2px dashed var(--muted); border-radius: var(--radius); padding: 1.4rem; background: var(--card); }
.draft-flag { background: #FEF3C7; color: #5C3B00; border: 2px solid #B45309; border-radius: var(--radius); padding: 0.9rem 1.1rem; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding: 2.5rem 0; font-size: 0.95rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--tint); }
.site-footer .logo { width: 170px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-footer p { margin-bottom: 0.4em; }

@media (min-width: 48rem) {
  body { font-size: 1.125rem; }
  section { padding: 4.5rem 0; }
  .hero { padding: 5.5rem 0 4.5rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .brand img { width: 210px; }
}

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